Issues I was facing during radiosonde_auto_rx install

I was facing this error:

$ sudo python auto_rx.py
2021-07-26 08:50:15,471 INFO:Reading configuration file…
2021-07-26 08:50:15,472 WARNING:Config - Web Password not set, disabling web control
2021-07-26 08:50:15,949 INFO:RTLSDR - Attempting to reset: Bus: 1 Device: 9
2021-07-26 08:50:18,712 INFO:RTLSDR - Attempting to reset: Bus: 1 Device: 9
2021-07-26 08:50:21,457 INFO:RTLSDR - Attempting to reset: Bus: 1 Device: 9
2021-07-26 08:50:24,219 INFO:RTLSDR - Attempting to reset: Bus: 1 Device: 9
2021-07-26 08:50:26,993 INFO:RTLSDR - Attempting to reset: Bus: 1 Device: 9
2021-07-26 08:50:29,430 ERROR:RTLSDR - RTLSDR with serial #0 was not recovered after 5 reset attempts.
2021-07-26 08:50:29,430 WARNING:Config - SDR #0 invalid.
2021-07-26 08:50:29,430 ERROR:Config - No working SDRs! Cannot run…
2021-07-26 08:50:29,430 CRITICAL:Error in configuration file! Exiting…

Note I was using “sudo” to run the auto_rx.py command, because normal user was receiving permission error. Then searching in the Internet I didn’t find a solution, but started to suspect it could be related to the permission.

Then I downloaded the udev rule: https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules and copied it:

$ sudo mv rtl-sdr.rules /etc/udev/rules.d/70-rtl-sdr.rules

And restarted the udev:

$ sudo udevadm trigger

Then the reset error disappeared but other error happened:

$ python auto_rx.py
2021-07-26 09:01:51,636 INFO:Reading configuration file…
2021-07-26 09:01:51,637 WARNING:Config - Web Password not set, disabling web control
2021-07-26 09:01:54,536 INFO:Config - Tested SDR #0 OK
2021-07-26 09:01:54,537 CRITICAL:Binary mp3h1mod does not exist - did you run build.sh?

Then I moved to depmod and compiled the mp3h1mod:

$ cd ../demod/mod/
$ vi Makefile:

PROGRAMS := rs41mod dfm09mod rs92mod lms6mod lms6Xmod meisei100mod m10mod mXXmod imet54mod mp3h1mod

mp3h1mod: mp3h1mod.o demod_mod.o


$ cd ../..
$ make
$ cp demod/mod/mp3h1mod auto_rx/

Then everything worked as expected:

$ python auto_rx.py
2021-07-26 09:05:35,025 INFO:Reading configuration file…
2021-07-26 09:05:35,026 WARNING:Config - Web Password not set, disabling web control
2021-07-26 09:05:37,900 INFO:Config - Tested SDR #0 OK
2021-07-26 09:05:37,902 INFO:Started Flask server on http://0.0.0.0:5000
2021-07-26 09:05:37,902 INFO:Telemetry Logger - Started Telemetry Logger Thread.
2021-07-26 09:05:37,902 INFO:OziMux - Started OziMux / Payload Summary Exporter
2021-07-26 09:05:37,903 INFO:Sondehub Uploader - Started Sondehub Uploader Thread.
2021-07-26 09:05:38,710 INFO:Sondehub Uploader - Uploaded station information to Sondehub.
2021-07-26 09:05:43,675 INFO:Version - Local Version: 1.5.4 - Up to date!
2021-07-26 09:05:43,675 INFO:Task Manager - SDR #0 has been allocated to Scanner.
2021-07-26 09:05:46,593 INFO:Scanner #0 - Starting Scanner Thread
2021-07-26 09:05:46,600 INFO:Scanner #0 - Running frequency scan.
2021-07-26 09:06:07,174 INFO:Scanner #0 - Detected peaks on 2 frequencies (MHz): [400.79 402.26]

More info: https://github.com/projecthorus/radiosonde_auto_rx/wiki

[location]
station_lat = -27.543275
station_lon = -48.509017
station_alt = 0.0

ppm = 2

http://www.om3bc.com/docs/RS/autofile.tar.gz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s