-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GPIO control in PTT feature #1558
Comments
In my opinion due to the vast variety of TRX switch controls including custom ones this should be handled via a call to an external command. |
Having the ability to call an external command would be useful as well, but will an external command be able to write the GPIO registers of an SDR that SDRangel has open? I would have thought not, but haven't tried. |
Sure but what's the point to turn on the GPIO of an SDR that in turn will turn on a TX/RX switch. It should be possible to control this TX/RX switch outside the SDR. |
Moreover since the GPIO control comes with the device support (in its interface library) it is more a device thing than a PTT feature thing so I'd rather see this functionality implemented in the device controller (i.e. plugin) connected to the start/stop action of the device. For things that cannot be controlled with the device the external command still makes sense. |
Yes, that makes sense if you want it to work when starting the TX device without using PTT feature as well. |
Currently I have no other way to do it. I could buy a USB relay controller, but why not use something that already exists? It's what they are for. |
Well changing my mind eventually since I have (re)discovered the Using this interface it is possible to abstract the device type and hence the best place to deal with GPIO and Rx/Tx is indeed the PTT feature. If the device has no GPIO it simply does nothing. |
Hello, dear developers,
I would be thankful, if you point me to point to start from. |
I think I called it ChannelWebAPIUtils, because it was originally used from within a channel. But have often thought most of the code that doesn't use a channel number, should probably be moved to DeviceWebAPIUtils, or something like that. |
Re @Radiomix2000 If Python is the dominant technology for your case you may as well control SDRangel from a Python script using its Web API interface. You have plenty of examples in the scriptsapi folder |
I undestand |
I notice some GUI elements have been added to the PTT for RX/TX commands - but they don't appear to be connected. Was that an accidental/partial commit? Someone was asking about it on the forum: http://sdrangel.org/forum/viewtopic.php?t=80 |
Yes this is a partial commit not to loose track too much from master. I have swapped priorities a bit... |
I was thinking it would be useful to add to the PTT feature, the ability to write user-defined values to device GPIOs, in order to support external TRX switch control.
Currently the Lime device has gpioPins and gpioDir exposed via its API. Similar could be added for USRP, RTL SDR, BladeRF (and perhaps other SDRs that have GPIOs), so there's a consistent API for the PTT feature to use.
The text was updated successfully, but these errors were encountered: