Still no data - Sample Rate Error

All my observations have failed. I find this in the log “ERROR - No waterfall data file found”
I have run satnogs_afsk1200_ax25.py and can make a large audio and waterfall file.
I can run rtl_test and do not see errors.
However, when I schedule an observation, part way through the observation I get an error saying the sample rate is wrong (see below). The sample rates that are mentioned in the error are nothing like what I get with SoapySDRUtil probe.
A little before the error message, I get this message “Found Rafael Micro R820T tuner” but up until that everything looks fine.

Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Initial frequency: 137100000
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Rigctld msg: 137102481
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Observer data: {'lon': -88.0, 'lat': 42.25, 'elev': 200}
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Satellite data: {'tle0': '0 NOAA 19', 'tle1': '1 33591U 09005A   22091.77916833  .000001
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Calculated data: {'alt': 0.26655933260917664, 'az': 3.5331718921661377, 'rng': 2103470.2
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Initial frequency: 137100000
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Rigctld msg: 137102481
Apr 02 01:37:39 raspberrypi satnogs-client[349]: Found Rafael Micro R820T tuner
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Observer data: {'lon': -88.0, 'lat': 42.25, 'elev': 200}
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Satellite data: {'tle0': '0 NOAA 19', 'tle1': '1 33591U 09005A   22091.77916833  .000001
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Calculated data: {'alt': 0.26672279834747314, 'az': 3.5333762168884277, 'rng': 2102910.5
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Initial frequency: 137100000
Apr 02 01:37:39 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Rigctld msg: 137102480
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Observer data: {'lon': -88.0, 'lat': 42.25, 'elev': 200}
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Satellite data: {'tle0': '0 NOAA 19', 'tle1': '1 33591U 09005A   22091.77916833  .000001
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Calculated data: {'alt': 0.26688677072525024, 'az': 3.533581495285034, 'rng': 2102349.5,
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Initial frequency: 137100000
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Rigctld msg: 137102480
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Observer data: {'lon': -88.0, 'lat': 42.25, 'elev': 200}
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Satellite data: {'tle0': '0 NOAA 19', 'tle1': '1 33591U 09005A   22091.77916833  .000001
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Calculated data: {'alt': 0.267050564289093, 'az': 3.5337865352630615, 'rng': 2101789.0, 
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Initial frequency: 137100000
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Rigctld msg: 137102480
Apr 02 01:37:40 raspberrypi satnogs-client[349]: Traceback (most recent call last):
Apr 02 01:37:40 raspberrypi satnogs-client[349]:   File "/usr/bin/satnogs_noaa_apt_decoder.py", line 484, in <module>
Apr 02 01:37:40 raspberrypi satnogs-client[349]:     main()
Apr 02 01:37:40 raspberrypi satnogs-client[349]:   File "/usr/bin/satnogs_noaa_apt_decoder.py", line 467, in main
Apr 02 01:37:40 raspberrypi satnogs-client[349]:     tb = top_block_cls(antenna=options.antenna, bb_freq=options.bb_freq, bw=options.bw, dc_removal=options.dc_removal, decoded_da
Apr 02 01:37:40 raspberrypi satnogs-client[349]:   File "/usr/bin/satnogs_noaa_apt_decoder.py", line 91, in __init__
Apr 02 01:37:40 raspberrypi satnogs-client[349]:     tune_args, settings, samp_rate_rx, "fc32")
Apr 02 01:37:40 raspberrypi satnogs-client[349]:   File "/usr/lib/python3/dist-packages/soapy/soapy_swig.py", line 166, in make
Apr 02 01:37:40 raspberrypi satnogs-client[349]:     return _soapy_swig.source_make(nchan, device, dev_args, stream_args, tune_args, other_settings, sampling_rate, type)
Apr 02 01:37:40 raspberrypi satnogs-client[349]: RuntimeError: soapy::source: Unsupported sample rate (2880000.000000).  Rate must be in the range [8000.000000, 8000.000000] [160
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Observer data: {'lon': -88.0, 'lat': 42.25, 'elev': 200}
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Satellite data: {'tle0': '0 NOAA 19', 'tle1': '1 33591U 09005A   22091.77916833  .000001
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Calculated data: {'alt': 0.26721471548080444, 'az': 3.533992052078247, 'rng': 2101227.75
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Initial frequency: 137100000
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.worker - DEBUG - Rigctld msg: 137102479
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogsclient.observer.orbital - DEBUG - Observer data: {'lon': -88.0, 'lat': 42.25, 'elev': 200}
Apr 02 01:37:40 raspberrypi satnogs-client[349]: satnogs

The error and the solution is pretty obvious in this line :slight_smile:

You need to use a different value for the sample rate, something between 8000 and 8000, which means 8000.

Unfortunately the line you pointed out got truncated. Here is the entire remainder of the line. It looks like it is looking for a serial connection e.g. 9600 baud. I have also included the sample rates given by SoapyUtil.
Rate must be in the range [8000.000000, 8000.000000] [16000.000000, 16000.000000] [22050.000000, 22050.000000] [32000.000000, 32000.000000] [44100.000000, 44100.000000] [48000.000000, 48000.000000] [96000.000000, 96000.000000]
From SoapyUtil
Sample rates: 0.25, 1.024, 1.536, 1.792, 1.92, 2.048, 2.16, 2.56, 2.88, 3.2 MSps

Support info
{
“versions”: {
“satnogs-client”: “1.6”,
“satnogs-client-ansible”: “202109022142”,
“satnogs-flowgraphs”: “1.4-1”,
“gr-satnogs”: “2.3.1.1-1”,
“gr-soapy”: “2.1.3.1-1”,
“gnuradio”: “3.8.2.0-14satnogs2”,
“satnogs-config”: “0.12”
},
“state”: {
“is-applied”: true,
“pending-tags”: null
},
“system”: {
“date”: “2022-04-02T18:02:54.885806+00:00”,
“distribution”: {
“DESCRIPTION”: “Raspbian GNU/Linux 10 (buster)”,
“RELEASE”: “10”,
“CODENAME”: “buster”,
“ID”: “Raspbian”
},
“pending-updates”: true,
“platform”: {
“system”: “Linux”,
“node”: “raspberrypi”,
“release”: “5.10.103-v7l+”,
“version”: “#1529 SMP Tue Mar 8 12:24:00 GMT 2022”,
“machine”: “armv7l”,
“processor”: “”
},
“memory”: {
“total”: 4025208832,
“available”: 3766136832,
“percent”: 6.4,
“used”: 119193600,
“free”: 3533029376,
“active”: 143507456,
“inactive”: 290725888,
“buffers”: 23965696,
“cached”: 349020160,
“shared”: 8830976,
“slab”: 32706560
},
“disk”: {
“total”: 31172087808,
“used”: 3425792000,
“free”: 26425327616,
“percent”: 11.5
}
},
“configuration”: {
“satnogs_antenna”: “RX”,
“satnogs_api_token”: “[redacted]”,
“satnogs_complete_output_path”: “/tmp/.satnogs/data/complete”,
“satnogs_log_level”: “DEBUG”,
“satnogs_remove_raw_files”: false,
“satnogs_rx_samp_rate”: “1.92e6”,
“satnogs_soapy_rx_device”: “rtlsdr”,
“satnogs_station_elev”: “200”,
“satnogs_station_id”: “2579”,
“satnogs_station_lat”: “42.25”,
“satnogs_station_lon”: “-88”,
“sentry_enabled”: true
}
}
------------[ copy end ]-------------

1 Like

Choosing this one should make it work and I think it is a good value as higher values may be not processed by RPi CPU. However if this works fine you can experiment to find out.

Still no luck with the slowest supported speed of the RTLSDR
soapy::source: Unsupported sample rate (250000.000000). Rate must be in the range [8000.000000, 8000.000000] …
So I tried 96e3 and go no errors, but there was no change in the result – No Waterfall Data.
There was this message during the observation
Assertion ‘close_nointr(fd) != -EBADF’ failed at …/src/basic/fd-util.c:67, function safe_close(). Aborting.
However, it looked like the observation continued to the end.

I gave up and tried to reload the artifact file. No luck. I get firmware not found, but on the same SD I can load the standard pi 32 bit os and it works just fine. I will revisit this project in a few months. Thanks for your help.

I got everything to work when I burned from a Linux machine and closely followed the instructions.

4 Likes