Topics

Simplify script USRPAudio.py for monitoring audio only. #analog_bridge #USRPAudio.py #analog_bridge

Philippe, f5rvx
 

Hi all,
Firstly I'm not sure that my question is acceptable on this group ... but I do not see what subgroup would be more appropriate (it may be missing a subgroup "stupid questions> / dev / null"
;)

I would like to use USRPAudio.py only for audio monitoring (no screen, no keyboard on my orange pi). So I want to run this script as a service in systemd ... but there is no console and it ends logically with errors!
Ok: it's normal since it is not intended for this purpose ... but I am not able to modify this script to remove only the minimum: a track or a little help would be nice ;)
Thank you !
----
That's what I find as errors (from /var/log/daemon.log) :
Dec  2 12:52:52 localhost USRPAudio.py[1953]:   File "/opt/Analog_Bridge/./USRPAudio.py", line 164, in <module>
Dec  2 12:52:52 localhost USRPAudio.py[1953]:     ch = getch()
Dec  2 12:52:52 localhost USRPAudio.py[1953]:   File "/opt/Analog_Bridge/./USRPAudio.py", line 145, in _getch
Dec  2 12:52:52 localhost USRPAudio.py[1953]:     old_settings = termios.tcgetattr(fd)
Dec  2 12:52:52 localhost USRPAudio.py[1953]: termios.error: (25, 'Inappropriate ioctl for device')
Dec  2 12:52:52 localhost USRPAudio.py[1953]: Start audio thread
Dec  2 12:52:52 localhost USRPAudio.py[1953]: Unhandled exception in thread started by
Dec  2 12:52:52 localhost USRPAudio.py[1953]: sys.excepthook is missing
Dec  2 12:52:52 localhost USRPAudio.py[1953]: lost sys.stderr
Dec  2 12:52:52 localhost USRPAudio.py[1953]: Unhandled exception in thread started by
Dec  2 12:52:52 localhost USRPAudio.py[1953]: sys.excepthook is missing
Dec  2 12:52:52 localhost USRPAudio.py[1953]: lost sys.stderr
Dec  2 12:52:52 localhost systemd[1]: usrpaudio.service: Main process exited, code=exited, status=1/FAILURE
Dec  2 12:52:52 localhost systemd[1]: usrpaudio.service: Failed with result 'exit-code'.