External PTT Relay Control

General SDR and HW discussion for anything not covered elsewhere
KS7ROH
Posts: 9
Joined: Mon Apr 17, 2023 8:42 pm

External PTT Relay Control

Post by KS7ROH »

Hi all,

I've put together an SDR transceiver based on the Pluto+ and am using a T/R switch which requires an external relay to trigger it. I purchased the USB relay board below which is compatible with SDR Console and works great so far in that software. I'd like to know if I can figure out a way to do the same functionality in SDRangel. Can anyone guide me in the right direction?

https://www.amazon.com/dp/B07CFQMDJ3

Thanks!
srcejon
Posts: 549
Joined: Thu Jan 19, 2023 2:30 pm
Location: London
Contact:

Re: External PTT Relay Control

Post by srcejon »

Some support was recently added to the Simple PTT feature for executing a command when switching between Rx/Tx - so give that a try.

If you need something outside of that, perhaps comment on this issue: https://github.com/f4exb/sdrangel/issues/1558
KS7ROH
Posts: 9
Joined: Mon Apr 17, 2023 8:42 pm

Re: External PTT Relay Control

Post by KS7ROH »

I noticed some new items in the Simple PTT block that looked like they might be applicable but nothing happens when I click on them other than the buttons highlighting, which doesn't seem to do anything. I can't figure out how to configure any of the command features and the help section doesn't contain any info about this. Can you provide any guidance?
srcejon
Posts: 549
Joined: Thu Jan 19, 2023 2:30 pm
Location: London
Contact:

Re: External PTT Relay Control

Post by srcejon »

Ah - looks like it isn't quite ready. Have commented on the issue mentioned above.
srcejon
Posts: 549
Joined: Thu Jan 19, 2023 2:30 pm
Location: London
Contact:

Re: External PTT Relay Control

Post by srcejon »

This has been implemented in the latest release: https://github.com/f4exb/sdrangel/releases/tag/v7.14.2
KS7ROH
Posts: 9
Joined: Mon Apr 17, 2023 8:42 pm

Re: External PTT Relay Control

Post by KS7ROH »

EDIT: I figured out the problem. I had to include the full directory to the application in the scripts.

Hi again. Sorry to resurrect this thread but I'm revisiting this after giving it a break for a while.

I figured out how to write very basic batch scripts that successfully open and close the relays of the USB relay board I have but when I try to use these via SDRangel, they don't work. On reviewing the documentation, it seems SDRangel is actually passing arguments on to the script, which is probably breaking the script because it's not written to handle any inputs. How can I get around this?

RX-TX script:

Code: Select all

CommandApp_USBRelay BITFT open 01
ping /n 1 /w 100 localhost >nul
CommandApp_USBRelay BITFT open 02
TX-RX script:

Code: Select all

CommandApp_USBRelay BITFT close 02
ping /n 1 /w 100 localhost >nul
CommandApp_USBRelay BITFT close 01
Running version 7.15.2 on Windows 11
KS7ROH
Posts: 9
Joined: Mon Apr 17, 2023 8:42 pm

Re: External PTT Relay Control

Post by KS7ROH »

Hi again.

I've been successfully using this PTT plugin with a combination of an RTL-SDR and a HackRF. I just got an upgraded Pluto+ SDR that I'd like to use with the plugin but the plugin doesn't seem to be compatible with the Pluto. If I try to use it with the Pluto+ MIMO device, it doesn't recognize the MIMO device as an option for RX/TX. If I try to use the normal single channel RX and TX devices separately, SDRangel crashes.

Any advice?
KS7ROH
Posts: 9
Joined: Mon Apr 17, 2023 8:42 pm

Re: External PTT Relay Control

Post by KS7ROH »

Can I please get a response on my last post? I'd really like to get SDRangel working with my SDR. Right now, I'm forced to use SDR Console but I'd rather use SDRangel if I could. I'd really appreciate some help here!
srcejon
Posts: 549
Joined: Thu Jan 19, 2023 2:30 pm
Location: London
Contact:

Re: External PTT Relay Control

Post by srcejon »

Open an issue on github:

https://github.com/f4exb/sdrangel/issues

Include a stack trace of the crash, if you can. I don't have a pluto, so can't really help.
KS7ROH
Posts: 9
Joined: Mon Apr 17, 2023 8:42 pm

Re: External PTT Relay Control

Post by KS7ROH »

Will do. What's the process for pulling a stack trace?
Post Reply