Commands to Pi-Star via RF

General support for the Pi-Star System
Post Reply
n3gwg
Posts: 17
Joined: Fri Sep 22, 2023 3:12 am
Location: Las Vegas, NV, USA

Commands to Pi-Star via RF

Post by n3gwg »

Andy, et alia:

Let me first start off by saying thank you to Andy and everyone else that works so hard to make Pi-Star such a useful tool.

I am interested in being able to send commands to Pi-Star (i.e. shutdown, reboot, read me my IP address, etc...) via RF by replacing something like "REF020CL" (a link command for REF020C) with something like "reboot" or "shutdown" or "READIP", or that.

Can anyone speak to how I might go about effectuating the implementation of such functionality?

Thanks!
73,
Stuart, N3GWG
KN2TOD
Posts: 335
Joined: Sun Nov 11, 2018 6:36 pm

Re: Commands to Pi-Star via RF

Post by KN2TOD »

Out of curiosity, have you looked at what Pi-Star offers already?

dashboard --> configuration --> expert --> PiStar-Remote
n3gwg
Posts: 17
Joined: Fri Sep 22, 2023 3:12 am
Location: Las Vegas, NV, USA

Re: Commands to Pi-Star via RF

Post by n3gwg »

KN2TOD, et alia:

No, I had not (as there seems to be no formal documentation for Pi-Star that I have ever found). I did just try enabling the capabilities and was able to shutdown and reboot my hot-spot using this technique (as well as using the "GETIP" function).

I am interested in finding the scripts that control this or is it done in ircddbgateway program?

1) I'd like to change the frequency of the time announcement
2) I'd like to be able to command Pi-Star to announce the IP LAN address and also gateway address (voice over the air locally).
3) I'd like to modify the code to provide via message the gateway address not just LAN IP address.
4) The dashboard shows call-signs it hears; I'd like to setup a trap to be able to monitor for certain call-signs from a list and send a radio message and make an announcement if any of those call-signs appear on the air.

Those are a few changes I'd like to make, so I would like to gain some greater insight into where I get the proper source code to fork, any build instructions, etc...

Can Pi-Star be built under QEMU for testing so one does not have to keep imaging the microSD card and removing/inserting back into the Raspberry Pi?
73,
Stuart, N3GWG
KN2TOD
Posts: 335
Joined: Sun Nov 11, 2018 6:36 pm

Re: Commands to Pi-Star via RF

Post by KN2TOD »

n3gwg wrote: Sun Jul 28, 2024 3:41 am KN2TOD, et alia:

No, I had not (as there seems to be no formal documentation for Pi-Star that I have ever found). I did just try enabling the capabilities and was able to shutdown and reboot my hot-spot using this technique (as well as using the "GETIP" function).

I am interested in finding the scripts that control this or is it done in ircddbgateway program?
There is a lot of formal documentation if you know where to look

Alas, most all the documentation is geared towards users and not developers, so you will not find anything there about modifying or compiling Pi-Star.

The PiStar-Remote "commands" are handled by the pistar-watchdog (python) program (not ircddbgateway). You can easily modify that program (if you know what you're doing) to add additional functions, limited by the functionality built into Pi-Star and Debian.
1) I'd like to change the frequency of the time announcement
2) I'd like to be able to command Pi-Star to announce the IP LAN address and also gateway address (voice over the air locally).
3) I'd like to modify the code to provide via message the gateway address not just LAN IP address.
Changes like these are not for the casual user or even casual developer, as they involve/invoke components not provided in the core Pi-Star code and may require modifications external to Pi-Star as well.
4) The dashboard shows call-signs it hears; I'd like to setup a trap to be able to monitor for certain call-signs from a list and send a radio message and make an announcement if any of those call-signs appear on the air.
You might want to take a look at this program: <https://github.com/kencormack/pistar-la ... creenshots>
Can Pi-Star be built under QEMU for testing so one does not have to keep imaging the microSD card and removing/inserting back into the Raspberry Pi?
It's a mixed system of compiled and interpreted/scripted components which you can modify or replace in situ - no need to reimage. As Pi-Star is a collaborative effort where development and compilations are done elsewhere, there are no instructions for modifying and generating the system as a whole from scratch.

Be advised: this a forum for users of Pi-Star, and not developers (although bug fixes are discussed when need be). The kind of developmental information you're seeking needs to be asked elsewhere.
M1DNS
Pi-Star Team
Posts: 1469
Joined: Thu Apr 05, 2018 5:30 am

Re: Commands to Pi-Star via RF

Post by M1DNS »

Why not just use the pistar remote feature?
It was created for just this purpose. You only need to configure it in expert (change false to true and add the ID of who gets control)


Frequency of the time annoucements can be set in ircddbgateway expert page by simply changing a value.


Sent via smoke signals using my SM-G935F



Andrew M1DNS.
Pi-star Admin Team.
n3gwg
Posts: 17
Joined: Fri Sep 22, 2023 3:12 am
Location: Las Vegas, NV, USA

Re: Commands to Pi-Star via RF

Post by n3gwg »

All concerned,

I have modified the pistar-remote script to add two commands:

getgw (transmits back the gateway address to the radio)
getup (transmits back the length of time the hotspot has been up)

What is the proper manner by which I submit my code?

I have a patch file available for the pistar-remote script.

Thanks!
73,
Stuart, N3GWG
Post Reply