f4exb / sdrangel

SDR Rx/Tx software for Airspy, Airspy HF+, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay and FunCube
GNU General Public License v3.0
2.87k stars 435 forks source link

PTT button #161

Closed bdn76 closed 6 years ago

bdn76 commented 6 years ago

Extremely nice soft. Cool! But what about PTT button for auto switch R/T for single device (HackRF for example)? Switch between tab, play stop, play start and play stop again very annoing.

f4exb commented 6 years ago

You will have to use the REST API for this and write a script that executes the R/T switchover commands. Then this script can be triggered within the application using the commands feature. You can see an example of such a script written in Python here: https://github.com/f4exb/sdrangel/blob/master/swagger/sdrangel/examples/ptt.py

This question has already been raised and discussed extensively (see https://github.com/f4exb/sdrangel/issues/49) . To summarize this is addressed with REST API and command feature which is described here: https://github.com/f4exb/sdrangel/tree/master/sdrgui#5b-commands

The REST API is not complete but BladeRF, HackRF, LimeSDR and RTL-SDR interfaces are already implemented.

bdn76 commented 6 years ago

ok