<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1472579863420_4173"><span id="yui_3_16_0_ym19_1_1472579863420_4310">After following all the instructions I find this script does not start on a keyup.</span></div><div id="yui_3_16_0_ym19_1_1472579863420_4173"><span><br></span></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">In doing some hacking on the app_rpt_fan.sh I can make it work by replacing</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">PTTSTATE="/tmp/RPT_TXKEYED$1" with</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">PTTSTATE="/tmpRPT_TXKEHED42285" (42285 my node) and</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">FANON="/usr/bin/asterisk -rx \"rpt fun $1 *880\"" with</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">FANON="/usr/bin/asterisk -rx \"rpt fun 42285 *880\"" and<br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">FANOFF="/usr/bin/asterisk -rx \"rpt fun $1 *881\"" with<br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">FANOFF="/usr/bin/asterisk -rx \"rpt fun 42285 *881\"" <br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">The file that get's written and removed from the tmp directory is</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"> [events 42285]</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">touch /tmp/RPT_KEYED42285 = s|t|RPT_TXKEYED</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">rm -f /tmp/RPT_KEYED42285 = s|f|RPT_TXKEYED</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">work fine. In a test script PTTSTATE="/tmp/RPT_TXKEYED$1" tells me</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">file or directory does not exist even though I can see it on a keyup and command</div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr">ls /tmp. Why is it not liking $1? </div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1472579863420_4173" dir="ltr"><br></div><div></div><div id="yui_3_16_0_ym19_1_1472579863420_4156"> </div><div class="signature" id="yui_3_16_0_ym19_1_1472579863420_5253">Eric (N7JYS) Marshall's Communications</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1472579863420_5776"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Roselito de los Reyes via arm-allstar <arm-allstar@hamvoip.org><br> <b><span style="font-weight: bold;">To:</span></b> ARM Allstar <arm-allstar@hamvoip.org> <br><b><span style="font-weight: bold;">Cc:</span></b> Roselito de los Reyes <tolitski@hotmail.com><br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, August 26, 2016 5:31 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [arm-allstar] Fan Control Using URI (or RIM) I/O<br> </font> </div> <div class="y_msg_container"><br><div id="yiv8891561504"><style>#yiv8891561504 #yiv8891561504 --
.yiv8891561504hmmessage P
{
margin:0px;padding:0px;}
#yiv8891561504 body.yiv8891561504hmmessage
{
font-size:12pt;font-family:Calibri;}
#yiv8891561504 </style><div><div dir="ltr">Hi John,<div><br clear="none"></div><div>I did try to recreate the issue using the Hamvoip code and I was able to create the state file in the '/tmp' folder. and from there you can reference that location in the script that K0KN has written.</div><div><br clear="none"></div><div>This is what I added in the rpt.conf file inside your node stanza</div><div><div>events=events1968 ; change 1968 to your own node number or don't put one</div><div><br clear="none"></div><div>After the node stanzas in the rpt.conf file, add this :</div><div><br clear="none"></div><div>[events1968]</div><div>touch /tmp/RPT_TXKEYED1968 = S|T|RPT_TXKEYED</div><div>rm -f /tmp/RPT_TXKEYED1968 = S|F|RPT_TXKEYED</div></div><div><br clear="none"></div><div><br clear="none"></div><div>Then on the txfan script change the following</div><div><pre style="word-wrap:break-word;white-space:pre-wrap;">PTTSTATE="/dev/shm/~pttstate" to</pre><pre style="word-wrap:break-word;white-space:pre-wrap;">PTTSTATE="/tmp/RPT_TXKEYED1968"</pre><pre style="word-wrap:break-word;white-space:pre-wrap;"><br clear="none"></pre><pre style="word-wrap:break-word;white-space:pre-wrap;">This should work using the HamVOIP version.</pre><pre style="word-wrap:break-word;white-space:pre-wrap;">73,</pre><pre style="word-wrap:break-word;white-space:pre-wrap;"><br clear="none"></pre><pre style="word-wrap:break-word;white-space:pre-wrap;">Lito KI9H</pre></div><div><br clear="none"><div><hr id="yiv8891561504stopSpelling">Date: Fri, 26 Aug 2016 17:18:38 -0500<br clear="none">To: arm-allstar@hamvoip.org<br clear="none">Subject: Re: [arm-allstar] Fan Control Using URI (or RIM) I/O<br clear="none">From: arm-allstar@hamvoip.org<br clear="none">CC: wb5nfc@gmail.com<br clear="none"><br clear="none"><div class="yiv8891561504yqt6784185103" id="yiv8891561504yqt77646"><div dir="ltr">Thanks for the info, Roselito. One of the things I have not been able to resolve is a reference to a folder that does not exist. At first, I thought that it was just a difference in the distributions (I'm using <span style="color:rgb(0,0,0);font-family:Verdana, Arial, Helvetica, sans-serif;background-color:rgb(238,238,238);">RPi2-3 V1.02beta - with simpleusb - but attempting to follow the instructions on the latinovoip site)</span>. So I downloaded the latinovoip distro maintained by KP4TR, unzipped it, loaded it on a fresh micro SSD card, and booted it. I then went looking for the /etc/asterisk/local folder... but it does not exist in that version, either. The /etc/asterisk/local folder is mentioned a couple of times in the instructions on the latinovoip site...<div><br clear="none"></div><div>J. <div><br clear="none"></div><div><br clear="none"><div class="yiv8891561504ecxgmail_extra"><br clear="none"><div class="yiv8891561504ecxgmail_quote">On Fri, Aug 26, 2016 at 4:51 PM, Roselito de los Reyes via arm-allstar <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>></span> wrote:<br clear="none"><blockquote class="yiv8891561504ecxgmail_quote" style="border-left:1px solid rgb(204,204,204);padding-left:1ex;">
<div><div dir="ltr">John,<div><br clear="none"></div><div>Also, make sure the file that you're monitoring ie. <span style="white-space:pre-wrap;font-size:12pt;">PTTSTATE="/dev/shm/~pttstate" is in the right folder. the Latinovoip version is located in /tmp</span></div><div><span style="white-space:pre-wrap;"><br clear="none"></span></div><div><span style="white-space:pre-wrap;">73</span></div><div><span style="white-space:pre-wrap;"><br clear="none"></span></div><div><span style="white-space:pre-wrap;">Lito KI9H<br clear="none"></span><br clear="none"><div><hr>To: <a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br clear="none">Date: Fri, 26 Aug 2016 14:44:05 -0700<br clear="none">Subject: Re: [arm-allstar] Fan Control Using URI (or RIM) I/O<br clear="none">From: <a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br clear="none">CC: <a rel="nofollow" shape="rect" ymailto="mailto:tolitski@hotmail.com" target="_blank" href="mailto:tolitski@hotmail.com">tolitski@hotmail.com</a><br clear="none"><br clear="none">
<div dir="ltr">my mistake .. it looks like you DO have to make changes to your rpt.conf file to create the /dev/shm/~pttstate file.<div><br clear="none"></div><div>Lito<br clear="none"><br clear="none"><div><hr>To: <a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br clear="none">Date: Fri, 26 Aug 2016 14:42:40 -0700<br clear="none">Subject: Re: [arm-allstar] Fan Control Using URI (or RIM) I/O<br clear="none">From: <a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br clear="none">CC: <a rel="nofollow" shape="rect" ymailto="mailto:tolitski@hotmail.com" target="_blank" href="mailto:tolitski@hotmail.com">tolitski@hotmail.com</a><br clear="none"><br clear="none">
<div dir="ltr">John,<div><br clear="none"></div><div>the k0kn version refers to an old code from the Acid release. it looks like a file is generated whenever the PTT is pressed and that is what K0KN's code is looking for. I don't think this is valid with the HamVOIP code. I could be wrong.</div><div><br clear="none"></div><div>73,</div><div><br clear="none"></div><div>Lito KI9H<br clear="none"><br clear="none"><div><hr>Date: Fri, 26 Aug 2016 16:01:08 -0500<br clear="none">To: <a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br clear="none">Subject: [arm-allstar] Fan Control Using URI (or RIM) I/O<br clear="none">From: <a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br clear="none">CC: <a rel="nofollow" shape="rect" ymailto="mailto:wb5nfc@gmail.com" target="_blank" href="mailto:wb5nfc@gmail.com">wb5nfc@gmail.com</a><br clear="none"><br clear="none"><div dir="ltr">Can anyone point me in the direction of documentation on how to set up a node radio cooling fan using an I/O port on a URI or RIM? I don't want to use a temperature sensor.<div><br clear="none"></div><div>I've found the K0KN script (<a rel="nofollow" shape="rect" target="_blank" href="http://www.qsl.net/k0kn/txfan">http://www.qsl.net/k0kn/txfan</a> ), but I'm not having any luck making it work. I've looked through the How To's on the ARM Allstar site, but I'm only finding info for using USB with a FTDI chip. Thought I could figure it out with info from <a rel="nofollow" shape="rect" target="_blank" href="http://latinovoip.net/allstar-and-the-gpio-fan-script-for-dmk-engineering-uri/">http://latinovoip.net/ allstar-and-the-gpio-fan- script-for-dmk-engineering- uri/</a> but I'm not having any luck with that information either. Suggestions appreciated....</div><div><br clear="none"></div><div>John </div></div>
<br clear="none">______________________________ _________________
arm-allstar mailing list
<a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi- bin/mailman/listinfo/arm- allstar</a>
Visit the BBB and RPi2 web page - <a rel="nofollow" shape="rect" target="_blank" href="http://hamvoip.org/">http://hamvoip.org</a></div></div> </div>
<br clear="none">______________________________ _________________
arm-allstar mailing list
<a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi- bin/mailman/listinfo/arm- allstar</a>
Visit the BBB and RPi2 web page - <a rel="nofollow" shape="rect" target="_blank" href="http://hamvoip.org/">http://hamvoip.org</a></div></div> </div>
<br clear="none">______________________________ _________________
arm-allstar mailing list
<a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a>
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi- bin/mailman/listinfo/arm- allstar</a>
Visit the BBB and RPi2 web page - <a rel="nofollow" shape="rect" target="_blank" href="http://hamvoip.org/">http://hamvoip.org</a></div></div> </div></div>
<br clear="none">______________________________ _________________<br clear="none">
<br clear="none">
arm-allstar mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" target="_blank" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar">http://lists.hamvoip.org/cgi- bin/mailman/listinfo/arm- allstar</a><br clear="none">
<br clear="none">
Visit the BBB and RPi2 web page - <a rel="nofollow" shape="rect" target="_blank" href="http://hamvoip.org/">http://hamvoip.org</a><br clear="none"></blockquote></div><br clear="none"></div></div></div></div></div>
<br clear="none">_______________________________________________
arm-allstar mailing list
arm-allstar@hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB and RPi2 web page - http://hamvoip.org</div></div> </div></div></div><br><div class="yqt6784185103" id="yqt29989">_______________________________________________<br clear="none"><br clear="none">arm-allstar mailing list<br clear="none"><a shape="rect" ymailto="mailto:arm-allstar@hamvoip.org" href="mailto:arm-allstar@hamvoip.org">arm-allstar@hamvoip.org</a><br clear="none"><a shape="rect" href="http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar" target="_blank">http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar</a><br clear="none"><br clear="none">Visit the BBB and RPi2 web page - <a shape="rect" href="http://hamvoip.org/" target="_blank">http://hamvoip.org</a></div><br><br></div> </div> </div> </div></div></body></html>