I’m struggeling a few weeks to get RTL-SDR running on my Rpi 3+ with a NooElec nano v2 https://www.nooelec.com/store/nesdr-nano2.html
I wanted to minimize the possible misconfigurations so i didn’t install Weewx, this should bet he next step but before that i want be sure RTL-SDR is functioning OK.
I installed Debian 10 (Buster), and installed thet pre-requisites form http://weewx.com/docs/setup.htm
After this is followed the folowing steps:
https://github.com/lheijst/rtldavis/blob/master/README.md
The test after installation looks like this:.
pi@wsb-meteo:~/work/src/github.com/lheijst/rtldavis $ $GOPATH/bin/rtldavis -ex 200
14:30:11.389438 rtldavis.go VERSION=0.15
14:30:11.390879 tr=1 fc=0 ppm=0 gain=0 maxmissed=51 ex=200 receiveWindow=300 actChan=[0] maxChan=1
14:30:11.391160 undefined=false verbose=false disableAfc=false deviceString=0
14:30:11.392226 BitRate: 19200
14:30:11.392380 SymbolLength: 14
14:30:11.392476 SampleRate: 268800
14:30:11.392573 Preamble: 1100101110001001
14:30:11.392668 PreambleSymbols: 16
14:30:11.392763 PreambleLength: 224
14:30:11.392859 PacketSymbols: 80
14:30:11.392954 PacketLength: 1120
14:30:11.393048 BlockSize: 512
14:30:11.393143 BufferLength: 2048
Found Rafael Micro R820T tuner
14:30:11.843016 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Exact sample rate is: 268800.001367 Hz
14:30:12.018160 GetTunerGain: 0 Db
14:30:12.018311 SetFreqCorrection 0 ppm Successful
Allocating 1 zero-copy buffers
14:30:12.021978 Init channels: wait max 17 seconds for a message of each transmitter
14:30:29.961383 Init channels: wait max 17 seconds for a message of each transmitter
14:30:29.961516 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
14:30:47.900464 Init channels: wait max 17 seconds for a message of each transmitter
14:30:47.900594 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
14:31:05.839529 Init channels: wait max 17 seconds for a message of each transmitter
14:31:05.839662 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
After that i tested the following:
pi@wsb-meteo:~/work/src/github.com/lheijst/rtldavis $ $GOPATH/bin/rtldavis -tr 1 -startfreq 868315000 -endfreq 86832100 -stepfreq 500
13:43:04.106356 rtldavis.go VERSION=0.15
13:43:04.107193 tr=1 fc=0 ppm=0 gain=0 maxmissed=51 ex=0 receiveWindow=300 actChan=[0] maxChan=1
13:43:04.107295 undefined=false verbose=false disableAfc=false deviceString=0
13:43:04.107345 TEST: startFreq=868315000 endFreq=86832100 stepFreq=500
13:43:04.108215 BitRate: 19200
13:43:04.108286 SymbolLength: 14
13:43:04.108328 SampleRate: 268800
13:43:04.108367 Preamble: 1100101110001001
13:43:04.108406 PreambleSymbols: 16
13:43:04.108446 PreambleLength: 224
13:43:04.108484 PacketSymbols: 80
13:43:04.108526 PacketLength: 1120
13:43:04.108566 BlockSize: 512
13:43:04.108604 BufferLength: 2048
Found Rafael Micro R820T tuner
13:43:04.569158 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Exact sample rate is: 268800.001367 Hz
13:43:04.744014 GetTunerGain: 0 Db
13:43:04.744066 SetFreqCorrection 0 ppm Successful
Allocating 1 zero-copy buffers
13:43:04.748731 Init channels: wait max 17 seconds for a message of each transmitter
13:43:22.686845 Test reached endfreq; test ended
pi@wsb-meteo:~/work/src/github.com/lheijst/rtldavis $
i searched internet and found this:
https://www.wxforum.net/index.php?topic=36267.0
if i compare the result (see below which give results) to my version it looks like something went wrong??. Does anyone have some suggestions?
Thanks!
$GOPATH/bin/rtldavis -tr 1 -startfreq 868315000
-endfreq 868321000 -stepfreq 500
12:31:03.070259 TESTFREQ 1: Frequency 868315000
(freqError=-523): OK, msg.data: 800000330D003E89
12:31:15.883647 TESTFREQ 2: Frequency 868315500
(freqError=2514): OK, msg.data: E00000080500DD6C
12:31:28.694940 TESTFREQ 3: Frequency 868316000
(freqError=2540): OK, msg.data: 50000021650035BD
12:31:41.508008 TESTFREQ 4: Frequency 868316500
(freqError=1646): OK, msg.data: A000007A3D008D28
12:31:54.320391 TESTFREQ 5: Frequency 868317000
(freqError=1261): OK, msg.data: 800000330D003E89
12:32:09.696444 TESTFREQ 6: Frequency 868317500: NOK
12:32:19.944829 TESTFREQ 7: Frequency 868318000
(freqError=460): OK, msg.data: 500000396500DF7F
12:32:32.758386 TESTFREQ 8: Frequency 868318500 (freqError=-110):
OK, msg.data: A000007B3D00BA18 <== pick this frequency for the
p.channels list in protocol.go
12:32:45.569193 TESTFREQ 9: Frequency 868319000
(freqError=-1030): OK, msg.data: 800000330D003E89
12:32:58.382205 TESTFREQ 10: Frequency 868319500
(freqError=-1063): OK, msg.data: E00000090500EA5C
12:33:11.193817 TESTFREQ 11: Frequency 868320000
(freqError=-1940): OK, msg.data: 500000396500DF7F
12:33:24.007724 TESTFREQ 12: Frequency 868320500
(freqError=-2365): OK, msg.data: A000007A3D008D28
12:33:36.818709 TESTFREQ 13: Frequency 868321000
(freqError=-2779): OK, msg.data: 800000330D003E89
12:33:36.818921 TEST REACHED ENDFREQ
12:33:36.819006 Test reached endfreq; test ended
============================================================