vsergeev/luaradio

Correct mode for terminate a luaradio istance

frspin opened this issue · 0 comments

I am programming a "no gui" USB only receiver with my SDRPlay for reception of FT8 and WSPR
The only requirement is change frequency when changing band or mode.

For this I am using your rtlsdr_ssb.lua example, modified for SDRPlay, as a standalone program and this is working OK.
For controlling frequency change I am using a Python program with a socket that is talking hamlib protocol. When is receiving a request for frequency change it need to kill luaradio and restart it with new frequency. This is not working.
After killing current luaradio and start a new instance there is an error message with SDRPlay non available.

The question is: which is correct mode to terminate a luaradio run from an external program? If I use my keyboard I can kill (Ctrl-C) it and restart. There is some time requirements before restart a new luaradio?

Regards

Franco Spinelli
IW2DHW