[arm-allstar] simpleusb realtime RX telemetry
Richard Bateman
richard at batemansr.us
Sun Oct 1 14:23:40 EST 2017
Oh believe me, I'd much rather do that =] This will work until then --
but again, if you'll tell me where to start looking I'm happy to try
to figure out a more elegant solution.
Richard
On Sun, Oct 1, 2017 at 1:16 PM, "David McGough via arm-allstar"
<arm-allstar at hamvoip.org> wrote:
>
> Hi Guys,
>
> Well, yes, via hackery telemetry results can be obtained.
>
> THIS IS NOT RECOMMENDED! That internal interface was designed for
> simpleusb-tune-menu, not other applications, and may change at any time! I
> can almost guarantee it will change!
>
> The better solution is to get results from the Asterisk Manager interface,
> similar to the mechanisms used by AllMon and Supermon.
>
> As the old sports car adage goes: Your mileage will vary between the
> required tune-ups!
>
> 73, David KB4FXC
>
>
>
>
> On Sun, 1 Oct 2017, "Tony Ross via arm-allstar" wrote:
>
>> On 10/01/2017 12:14 AM, "Richard Bateman via arm-allstar" wrote:
>
>> Does anyone know if there is a way from a script (or the asterisk
>> console) to get the simpleusb RX telemetry like in the "V" option of
>> simpleusb-tune-menu?
>>
>> REALTIME RX TELEMETRY DISPLAY:
>> COS | COS | COS | CTCSS | CTCSS | PTT
>> (composite) | (input) | (test) | (input) | (override) |
>> ^C CLEAR | KEYED | CLEAR | CLEAR | CLEAR | CLEAR
>>
>> I just want to get the status of those 6 items for use in a monitoring script.
>
> Use "expect" after installing it via "pacman -S expect". Then build the
> script:
>
> autoexpect /usr/bin/simpleusb-tune-menu
>
> and after entering the desired inputs "V" etc., run the resultant script
> from the command line or via cron, and parse its output to get what you
> want, e.g.:
>
> # ./script.exp | grep -A3 "^REAL"
> REALTIME RX TELEMETRY DISPLAY:
> Â Â Â COSÂ Â Â Â |Â Â COSÂ Â |Â COSÂ Â |Â CTCSSÂ |Â Â CTCSSÂ Â Â | PTT
> (composite) | (input) | (test) | (input) | (override) |
> Â Â CLEARÂ Â Â |Â CLEARÂ | CLEARÂ | IGNOREÂ |Â Â CLEARÂ Â Â | CLEAR
>
> The man pages for expect and autoexpect are of course more informative,
> but this simple example should pique your interest as it meets your request.
>
> .
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
More information about the arm-allstar
mailing list