<div dir="ltr">I have made some progress in debugging. What I found is that I like to use short hang time of 5 because the transmitters that we use have built in time out timers and so it is necessary for the repeater transmitter to drop between users. If I have a 2 second hang time then the transmitter never goes off the air and the repeater transmitter built in time out timer is always expiring.<div>
If I set hang time to 21 then the tail messages work fine, but each number less than 21 and the tail message gets increasingly flaky. With a hangtime of 5 then the tail message totally ignores that the repeater is in use and sends the initial message right on top of the first user and then seems to be always quashed after that. </div>
<div><br></div><div>the code where this happens is </div><div><br></div><div><div> i = myrpt->tailtimer;</div><div> if (myrpt->tailtimer) myrpt->tailtimer -= elap;</div><div> if (myrpt->tailtimer < 0) myrpt->tailtimer = 0;</div>
<div> if((i) && (myrpt->tailtimer == 0)){</div><div> myrpt->tailevent = 1;</div><div> ast_log(LOG_NOTICE,"Tail Event SET tailtimer before decrement= %d elap= %d\n", i, elap); //CAH I added this debugging line</div>
<div> }</div><div> if ((!myrpt->p.s[myrpt->p.sysstate_cur].totdisable) && myrpt->totimer) myrpt->totimer -= elap;</div><div> if (myrpt->totimer < 0) myrpt->totimer = 0;</div>
<div> if (myrpt->idtimer) myrpt->idtimer -= elap;</div><div> if (myrpt->idtimer < 0) myrpt->idtimer = 0;</div><div> if (myrpt->tmsgtimer) myrpt->tmsgtimer -= elap;</div>
<div> if (myrpt->tmsgtimer < 0) myrpt->tmsgtimer = 0;</div><div> if (myrpt->voxtotimer) myrpt->voxtotimer -= elap;</div><div> if (myrpt->voxtotimer < 0) myrpt->voxtotimer = 0;</div>
<div> </div></div><div>Previously in code "tailtimer" is set to hangtime. In my case that is 5 for a half second hang time.</div><div>"elap" varies from 7 to 20 for each pass here.</div><div>So for every pass the "tailtimer == 0" evaluates true and sets "tailevent" true and that causes the "tailmessage" to be sent immediately on key down elsewhere in code.</div>
<div>If "hangtime" is 21 or more than the "tailtimer == 0" only evaluates true if the input signal is gone and the hang time has expired.</div><div>But with a value of 21, my transmitter is almost always timed out.</div>
<div><br></div><div>I am still trying to learn what causes "elap" to vary and what sets it. I think I will find it and fix it eventually, unless someone else beats me to it. :)</div><div><br></div><div>oksy I found that elap is set to MSWAIT which is set to 20 in the following line.</div>
<div><div> #define MSWAIT 20</div></div><div><br></div><div>and this code</div><div><div> ms = MSWAIT;</div><div> who = ast_waitfor_n(cs,n,&ms);</div><div> if (who == NULL) ms = 0;</div>
<div> elap = MSWAIT - ms;</div><div> </div></div><div>maybe I can just change the define for MSWAIT and that might fix it, but 20ms is important in relation to the voter so maybe changing it will break everything.</div>
<div><br></div><div>Hmmmmmmmmm.</div><div><br></div><div>Jim, HELP!!!</div><div><br></div><div><br></div><div>Chuck, ccie2285(retired), WB9UUS</div><div><br></div><div><br></div><div> </div><div><br></div><div><br></div>
<div><br></div><div><br></div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 23, 2014 at 1:59 PM, Tim Sawyer <span dir="ltr"><<a href="mailto:tim.sawyer@mac.com" target="_blank">tim.sawyer@mac.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I use RTCMs exclusively and tail messages work fine. I’ve never had one go off on top of a user. In fact if someone keys up the tail message stops and replays after tailsquashtime. What doesn’t work for me is a coma separated list of tail messages. If I set up "tailmessagelist=message1,message2" it won’t work, nothing ever plays. But that’s another subject.<br>
<br>
The way tail messages work is that the message will transmit every x milliseconds just before the repeater TX (hang timer) drops. So with your setting of 60 seconds the message will occur only 60 seconds after the last tail message as the carrier drops. If the repeater is quite for longer that 60 seconds the tail message won’t be heard until something keys it and the carrier drops.<br>
<br>
Two things for you:<br>
1. You are putting the settings in the [node] stanza correct?<br>
2. Don’t you want (shouldn’t) the squash time be less than the message time? I suspect this is the what causing your strange tail message behavior.<br>
<br>
--<br>
Tim<br>
:wq<br>
<div><div class="h5"><br>
On Jan 22, 2014, at 11:35 PM, Chuck Henderson <<a href="mailto:rpt2@chuck.midlandsnetworking.com">rpt2@chuck.midlandsnetworking.com</a>> wrote:<br>
<br>
> I put these 3 lines in my rpt.conf file expecting to have a tail message on unkey every 60 seconds or more.<br>
><br>
> tailmessagetime=60000<br>
> tailsquashedtime=70000<br>
> tailmessagelist=tailmessage<br>
><br>
><br>
> So if someone makes a 2 minute transmission, then I expect a tail message when they unkey.<br>
><br>
> If someone makes a 10 second transmission than I would not expect a tail message unless 60 seconds have passed since the last tail message.<br>
><br>
> Unfortunately what I get is not what I expect.<br>
><br>
> When the repeater has not been used for a long time.... the first person to key down gets the tail message right on top of the beginning of their transmission.<br>
> The repeater can be in use with various people each making random length transmissions from 10 seconds to 2 minutes long and there is never a tail message after the first one that tromps on top of the first person talking.<br>
><br>
> I remember using tailmessage long ago back when I was using the USB fob and I think it worked fine back then.<br>
> Now I am using only RTCM's and I can not get the tailmessage feature to work properly.<br>
><br>
> Has anyone else been successfully using tail messages with RTCM's or USB fobs?<br>
</div></div>> _______________________________________________<br>
> App_rpt-users mailing list<br>
> <a href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a><br>
> <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a><br>
><br>
> To unsubscribe from this list please visit <a href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users" target="_blank">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"<br>
> You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.<br>
<br>
</blockquote></div><br></div>