Author Topic: Receiving Davis Vantage weather data with a RTL-SDR dongle  (Read 10629 times)

0 Members and 1 Guest are viewing this topic.

Offline kobuki

  • Forecaster
  • *****
  • Posts: 838
Re: Receiving Davis Vantage weather data with a RTL-SDR dongle
« Reply #75 on: November 30, 2021, 04:34:54 AM »
...
However I have searched far and wide and cannot find any information on where in the packet is this Repeater ID stored.
...

You should've searched near and narrow instead: https://www.wxforum.net/index.php?topic=24271.0

Offline amino1958

  • Member
  • *
  • Posts: 22
Re: Receiving Davis Vantage weather data with a RTL-SDR dongle
« Reply #76 on: November 30, 2021, 06:06:21 AM »
...
However I have searched far and wide and cannot find any information on where in the packet is this Repeater ID stored.
...

You should've searched near and narrow instead: https://www.wxforum.net/index.php?topic=24271.0

Wow! Very impressive. You guys deserve the Nobel Prize for [reverse] Engineering.
Thanks!

Offline Kidney514

  • Member
  • *
  • Posts: 8
Re: Receiving Davis Vantage weather data with a RTL-SDR dongle
« Reply #77 on: August 18, 2023, 04:25:43 PM »
Just takin a chance on a old thread....

Is this data any good, can't seem to sort that out.... I'm capturing anything?

Quote
pi@raspberrypi:~ $ $GOPATH/bin/rtldavis -tf US -tr 1 -v
11:44:56.552958 rtldavis.go VERSION=0.15
11:44:56.553842 tr=1 fc=0 ppm=0 gain=0 maxmissed=51 ex=0 receiveWindow=300 actChan=[0] maxChan=1
11:44:56.553964 undefined=false verbose=true disableAfc=false deviceString=0
11:44:56.554511 BitRate: 19200
11:44:56.554598 SymbolLength: 14
11:44:56.554696 SampleRate: 268800
11:44:56.554764 Preamble: 1100101110001001
11:44:56.554832 PreambleSymbols: 16
11:44:56.554898 PreambleLength: 224
11:44:56.554967 PacketSymbols: 80
11:44:56.555034 PacketLength: 1120
11:44:56.555101 BlockSize: 512
11:44:56.555168 BufferLength: 2048
Found Rafael Micro R820T tuner
11:44:56.997711 tr=0 ch=0 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:44:56.997888 Hop: {ChannelIdx:0 ChannelFreq:902419338 FreqError:0 Transmitter:0}
Exact sample rate is: 268800.001367 Hz
11:44:57.173541 GetTunerGain: 0 Db
11:44:57.173658 SetFreqCorrection 0 ppm Successful
11:44:57.177383 Init channels: wait max 135 seconds for a message of each transmitter
11:46:54.903890 m1: -0.206245 l: 224 c: 16 x: [0.07 -0.25 0.23 0.08 -0.29 -0.30 -0.27 -0.32 -0.25 -0.32 -0.24 -0.31 -0.26 -0.32 -0.25 -0.31]
11:46:54.903978 TRANSMITTER 0 SEEN
11:46:54.904240 tr=0 ch=19 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:46:54.904455 Hop: {ChannelIdx:19 ChannelFreq:911952597 FreqError:0 Transmitter:0}
11:46:54.904490 applied freqCorrection=0
11:46:57.467942 m1: -0.202643 l: 224 c: 16 x: [0.08 -0.32 -0.21 0.11 -0.30 -0.21 0.12 -0.31 -0.28 -0.27 -0.28 -0.28 -0.27 -0.27 -0.27 -0.27]
11:46:57.468127 E0027E8B0300B16C 2 0 0 0 0 msg.ID=0
11:46:57.468256 tr=0 ch=41 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:46:57.468396 Hop: {ChannelIdx:41 ChannelFreq:922991108 FreqError:0 Transmitter:0}
11:46:57.468474 applied freqCorrection=0
11:47:00.030153 m1: -0.126773 l: 224 c: 16 x: [0.13 0.18 0.15 0.04 -0.18 0.14 0.05 -0.32 -0.28 -0.27 -0.31 -0.26 -0.28 -0.26 -0.30 -0.24]
11:47:00.030281 50027E0C6300FF20 3 0 0 0 0 msg.ID=0
11:47:00.030425 tr=0 ch=25 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:00.030527 Hop: {ChannelIdx:25 ChannelFreq:914963100 FreqError:0 Transmitter:0}
11:47:00.030655 applied freqCorrection=0
11:47:02.592249 m1: -0.151604 l: 224 c: 16 x: [-0.26 0.26 0.27 0.10 -0.28 0.08 -0.29 -0.32 -0.23 -0.29 -0.27 -0.22 -0.28 -0.29 -0.20 -0.22]
11:47:02.592675 90017C06038BAEA2 4 0 0 0 0 msg.ID=0
11:47:02.592897 tr=0 ch=8 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:02.593092 Hop: {ChannelIdx:8 ChannelFreq:906433342 FreqError:0 Transmitter:0}
11:47:02.593131 applied freqCorrection=0
11:47:05.156032 m1: -0.204303 l: 224 c: 16 x: [-0.32 -0.19 0.21 0.18 0.06 -0.34 -0.33 -0.29 -0.29 -0.28 -0.28 -0.29 -0.28 -0.26 -0.28 -0.29]
11:47:05.156126 80007A273B0024C7 5 0 0 0 0 msg.ID=0
11:47:05.156202 tr=0 ch=47 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:05.156293 Hop: {ChannelIdx:47 ChannelFreq:926001611 FreqError:0 Transmitter:0}
11:47:05.156328 applied freqCorrection=0
11:47:07.718175 m1: -0.152207 l: 224 c: 16 x: [0.12 -0.29 0.10 -0.26 0.16 0.21 0.09 -0.31 -0.30 -0.30 -0.28 -0.27 -0.29 -0.28 -0.30 -0.25]
11:47:07.718267 E001748B03003715 6 0 0 0 0 msg.ID=0
11:47:07.718347 tr=0 ch=32 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:07.718436 Hop: {ChannelIdx:32 ChannelFreq:918475353 FreqError:0 Transmitter:0}
11:47:07.718472 applied freqCorrection=0
11:47:10.280310 m1: -0.135695 l: 224 c: 16 x: [0.23 0.11 -0.26 -0.30 0.14 0.25 0.13 -0.23 -0.30 -0.28 -0.31 -0.25 -0.29 -0.25 -0.32 -0.25]
11:47:10.280889 50006D166100D918 7 0 0 0 0 msg.ID=0
11:47:10.281202 tr=0 ch=13 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:10.281682 Hop: {ChannelIdx:13 ChannelFreq:908942094 FreqError:0 Transmitter:0}
11:47:10.281983 applied freqCorrection=0
11:47:12.842363 m1: -0.184743 l: 224 c: 16 x: [-0.24 0.09 -0.21 0.19 0.08 -0.23 0.06 -0.31 -0.33 -0.30 -0.31 -0.28 -0.29 -0.30 -0.29 -0.29]
11:47:12.842457 A0004A9239004E4B 8 0 0 0 0 msg.ID=0
11:47:12.842537 tr=0 ch=36 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:12.842621 Hop: {ChannelIdx:36 ChannelFreq:920482355 FreqError:0 Transmitter:0}
11:47:12.842656 applied freqCorrection=0
11:47:12.844395 m1: -0.184743 l: 224 c: 16 x: [-0.24 0.09 -0.21 0.19 0.08 -0.23 0.06 -0.31 -0.33 -0.30 -0.31 -0.28 -0.29 -0.30 -0.29 -0.29]
11:47:12.844454 duplicate packet: A0004A9239004E4B
11:47:15.406544 m1: -0.176146 l: 224 c: 16 x: [0.17 -0.35 -0.35 -0.19 0.15 0.14 0.18 -0.31 -0.30 -0.24 -0.30 -0.29 -0.26 -0.31 -0.22 -0.33]
11:47:15.407189 800046273B00471C 9 0 0 0 0 msg.ID=0
11:47:15.407517 tr=0 ch=22 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:15.408054 Hop: {ChannelIdx:22 ChannelFreq:913457849 FreqError:0 Transmitter:0}
11:47:15.408135 applied freqCorrection=0
11:47:17.968769 m1: -0.252854 l: 224 c: 16 x: [-0.24 -0.33 -0.28 -0.26 0.18 -0.27 -0.32 -0.27 -0.29 -0.29 -0.25 -0.33 -0.23 -0.31 -0.24 -0.31]
11:47:17.968865 E0002C8B01000BDE 10 0 0 0 0 msg.ID=0
11:47:17.968939 tr=0 ch=3 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:17.969031 Hop: {ChannelIdx:3 ChannelFreq:903924589 FreqError:0 Transmitter:0}
11:47:17.969064 applied freqCorrection=0
11:47:20.530735 m1: -0.218968 l: 224 c: 16 x: [-0.26 -0.30 -0.25 0.20 0.17 -0.28 -0.31 -0.29 -0.28 -0.28 -0.27 -0.28 -0.28 -0.25 -0.27 -0.28]
11:47:20.530832 50002A206300F7CE 11 0 0 0 0 msg.ID=0
11:47:20.530909 tr=0 ch=29 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:20.530996 Hop: {ChannelIdx:29 ChannelFreq:916970102 FreqError:0 Transmitter:0}
11:47:20.531030 applied freqCorrection=0
11:47:23.094678 m1: -0.191310 l: 224 c: 16 x: [0.18 0.16 0.17 -0.35 -0.34 -0.24 -0.31 -0.24 -0.30 -0.26 -0.23 -0.30 -0.23 -0.29 -0.26 -0.24]
11:47:23.094772 A00028923900FAF1 12 0 0 0 0 msg.ID=0
11:47:23.094852 tr=0 ch=44 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:23.094944 Hop: {ChannelIdx:44 ChannelFreq:924496359 FreqError:0 Transmitter:0}
11:47:23.094979 applied freqCorrection=0
11:47:25.656670 m1: -0.238868 l: 224 c: 16 x: [0.22 -0.28 -0.26 -0.30 -0.25 -0.31 -0.23 -0.31 -0.25 -0.25 -0.31 -0.21 -0.31 -0.24 -0.23 -0.32]
11:47:25.656768 800126273900D2FD 13 0 0 0 0 msg.ID=0
11:47:25.656843 tr=0 ch=16 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:25.656930 Hop: {ChannelIdx:16 ChannelFreq:910447346 FreqError:0 Transmitter:0}
11:47:25.656964 applied freqCorrection=0
11:47:28.218736 m1: -0.151279 l: 224 c: 16 x: [0.15 0.19 0.15 0.17 0.11 -0.31 -0.33 -0.28 -0.28 -0.29 -0.28 -0.29 -0.27 -0.32 -0.27 -0.26]
11:47:28.218892 E000278B010015C1 14 0 0 0 0 msg.ID=0
11:47:28.219012 tr=0 ch=5 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:28.219150 Hop: {ChannelIdx:5 ChannelFreq:904928090 FreqError:0 Transmitter:0}
11:47:28.219225 applied freqCorrection=0
11:47:30.782903 m1: -0.167285 l: 224 c: 16 x: [0.11 -0.26 0.21 0.13 -0.32 -0.27 0.17 -0.29 -0.25 -0.29 -0.26 -0.28 -0.27 -0.27 -0.27 -0.27]
11:47:30.782999 5000F82A63007564 15 0 0 0 0 msg.ID=0
11:47:30.783080 tr=0 ch=27 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:30.783171 Hop: {ChannelIdx:27 ChannelFreq:915966601 FreqError:0 Transmitter:0}
11:47:30.783253 applied freqCorrection=0
11:47:33.345053 m1: -0.159781 l: 224 c: 16 x: [-0.34 0.16 0.27 0.19 -0.23 -0.31 0.13 -0.21 -0.34 -0.26 -0.29 -0.25 -0.29 -0.23 -0.30 -0.26]
11:47:33.345155 60019F2241003163 16 0 0 0 0 msg.ID=0
11:47:33.345233 tr=0 ch=38 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:33.345322 Hop: {ChannelIdx:38 ChannelFreq:921485856 FreqError:0 Transmitter:0}
11:47:33.345414 applied freqCorrection=0
11:47:35.906693 m1: -0.183007 l: 224 c: 16 x: [-0.26 0.06 -0.27 0.18 0.17 -0.33 0.09 -0.26 -0.31 -0.35 -0.26 -0.29 -0.28 -0.29 -0.30 -0.24]
11:47:35.906858 8001A7274B00174A 17 0 0 0 0 msg.ID=0
11:47:35.906980 tr=0 ch=10 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:35.907122 Hop: {ChannelIdx:10 ChannelFreq:907436843 FreqError:0 Transmitter:0}
11:47:35.907197 applied freqCorrection=0
11:47:38.470953 m1: -0.122826 l: 224 c: 16 x: [0.17 0.17 0.09 -0.27 0.15 0.19 0.11 -0.32 -0.32 -0.29 -0.27 -0.28 -0.26 -0.28 -0.29 -0.27]
11:47:38.471050 E001BC8B01006710 18 0 0 0 0 msg.ID=0
11:47:38.471127 tr=0 ch=49 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:38.471222 Hop: {ChannelIdx:49 ChannelFreq:927005112 FreqError:0 Transmitter:0}
11:47:38.471257 applied freqCorrection=0
11:47:41.032950 m1: -0.245111 l: 224 c: 16 x: [-0.26 0.18 -0.26 -0.30 -0.28 -0.29 -0.27 -0.26 -0.28 -0.27 -0.27 -0.28 -0.26 -0.28 -0.28 -0.28]
11:47:41.033170 5001B8356300DEFB 19 0 0 0 0 msg.ID=0
11:47:41.033361 tr=0 ch=21 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:41.033510 Hop: {ChannelIdx:21 ChannelFreq:912956099 FreqError:0 Transmitter:0}
11:47:41.033584 applied freqCorrection=0
11:47:43.595080 m1: -0.086938 l: 224 c: 16 x: [0.14 0.21 0.13 0.21 0.14 0.21 0.13 -0.31 -0.35 -0.25 -0.30 -0.25 -0.30 -0.25 -0.27 -0.28]
11:47:43.595312 4002B71B41000300 20 0 0 0 0 msg.ID=0
11:47:43.595434 tr=0 ch=2 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:43.595574 Hop: {ChannelIdx:2 ChannelFreq:903422839 FreqError:0 Transmitter:0}
11:47:43.595650 applied freqCorrection=0
11:47:46.157104 m1: -0.174368 l: 224 c: 16 x: [0.06 -0.29 0.16 0.08 -0.29 0.15 0.09 -0.34 -0.33 -0.29 -0.30 -0.30 -0.28 -0.31 -0.31 -0.29]
11:47:46.157202 8001BD2749000224 21 0 0 0 0 msg.ID=0
11:47:46.157279 tr=0 ch=30 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:46.157367 Hop: {ChannelIdx:30 ChannelFreq:917471852 FreqError:0 Transmitter:0}
11:47:46.157402 applied freqCorrection=0
11:47:48.720949 m1: -0.172409 l: 224 c: 16 x: [0.19 -0.26 -0.27 0.16 -0.22 0.16 0.10 -0.32 -0.34 -0.32 -0.25 -0.30 -0.29 -0.25 -0.32 -0.25]
11:47:48.721538 E001D38B0100EA2C 22 0 0 0 0 msg.ID=0
11:47:48.721854 tr=0 ch=42 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:48.722241 Hop: {ChannelIdx:42 ChannelFreq:923492858 FreqError:0 Transmitter:0}
11:47:48.722582 applied freqCorrection=0
11:47:51.283050 m1: -0.134756 l: 224 c: 16 x: [-0.30 0.12 0.13 -0.20 0.09 0.28 0.18 -0.23 -0.30 -0.27 -0.34 -0.23 -0.32 -0.23 -0.32 -0.24]
11:47:51.283149 5001DE3F61000113 23 0 0 0 0 msg.ID=0
11:47:51.283225 tr=0 ch=14 freqCorr=0 lastFreqError=0, freqerrTrChList=[0 0 0 0 0 0 0 0 0 0]
11:47:51.283316 Hop: {ChannelIdx:14 ChannelFreq:909443845 FreqError:0 Transmitter:0}
11:47:51.283352 applied freqCorrection=0
11:47:53.84

Offline amino1958

  • Member
  • *
  • Posts: 22
Re: Receiving Davis Vantage weather data with a RTL-SDR dongle
« Reply #78 on: August 18, 2023, 04:53:39 PM »
You sure are. These are the 8-byte packets coming in from the ISS:

11:47:46.157202 8001BD2749000224 21 0 0 0 0 msg.ID=0
11:47:48.721538 E001D38B0100EA2C 22 0 0 0 0 msg.ID=0
11:47:51.283149 5001DE3F61000113 23 0 0 0 0 msg.ID=0
.
.
.

Offline Kidney514

  • Member
  • *
  • Posts: 8
Re: Receiving Davis Vantage weather data with a RTL-SDR dongle
« Reply #79 on: August 18, 2023, 04:57:45 PM »
ok good news.... Now need to figure out why weewx is not decoding anything then. Any suggestion ?

Quote
Aug 18 17:19:55 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Aug 18 17:19:56 raspberrypi weewx[2177] INFO __main__: Initializing weewx version 4.10.2
Aug 18 17:19:56 raspberrypi weewx[2177] INFO __main__: Using Python 3.9.2 (default, Mar 12 2021, 04:06:34) #012[GCC 10.2.1 20210110]
Aug 18 17:19:56 raspberrypi weewx[2177] INFO __main__: Located at /bin/python3
Aug 18 17:19:56 raspberrypi weewx[2177] INFO __main__: Platform Linux-6.1.45-v7+-armv7l-with-glibc2.31
Aug 18 17:19:56 raspberrypi weewx[2177] INFO __main__: Locale is 'en_US.UTF-8'
Aug 18 17:19:56 raspberrypi weewx[2177] INFO __main__: Using configuration file /etc/weewx/weewx.conf
Aug 18 17:19:56 raspberrypi weewx[2177] INFO __main__: Debug is 1
Aug 18 17:19:56 raspberrypi weewx[2177] INFO __main__: PID file is /var/run/weewx.pid
Aug 18 17:19:56 raspberrypi weewx[2180] DEBUG __main__: Initializing engine
Aug 18 17:19:56 raspberrypi weewx[2180] INFO weewx.engine: Loading station type Rtldavis (user.rtldavis)
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: driver version is 0.20
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: using rain_bucket_type 1
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: sensor map is: {'pressure': 'pressure', 'inTemp': 'temp_in', 'windSpeed': 'wind_speed', 'windDir': 'wind_dir', 'outTemp': 'temperature', 'outHumidity': 'humidity', 'inHumidity': 'humidity_in', 'rainRate': 'rain_rate', 'radiation': 'solar_radiation', 'UV': 'uv', 'soilTemp1': 'soil_temp_1', 'soilTemp2': 'soil_temp_2', 'soilTemp3': 'soil_temp_3', 'soilTemp4': 'soil_temp_4', 'leafTemp1': 'leaf_temp_1', 'extraHumid1': 'humid_1', 'extraHumid2': 'humid_2', 'soilMoist1': 'soil_moisture_1', 'soilMoist2': 'soil_moisture_2', 'soilMoist3': 'soil_moisture_3', 'soilMoist4': 'soil_moisture_4', 'leafWet1': 'leaf_wetness_1', 'leafWet2': 'leaf_wetness_2', 'rxCheckPercent': 'pct_good_all', 'txBatteryStatus': 'bat_iss', 'supplyVoltage': 'supercap_volt', 'referenceVoltage': 'solar_power', 'windBatteryStatus': 'bat_anemometer', 'rainBatteryStatus': 'bat_leaf_soil', 'outTempBatteryStatus': 'bat_th_1', 'inTempBatteryStatus': 'bat_th_2', 'extraTemp1': 'pct_good_0', 'extraTemp2': 'pct_good_1', 'extraTemp3': 'pct_good_2', 'leafTemp2': 'pct_good_3', 'consBatteryVoltage': 'freqError0', 'hail': 'freqError1', 'hailRate': 'freqError2', 'heatingTemp': 'freqError3', 'heatingVoltage': 'freqError4'}
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: sensor map is {}
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: using frequency US
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: using iss_channel 1
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: using anemometer_channel 0
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: using leaf_soil_channel 0
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: using temp_hum_1_channel 0
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: using temp_hum_2_channel 0
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: using transmitters 1
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: log_humidity_raw False
Aug 18 17:19:56 raspberrypi weewx[2180] INFO user.rtldavis: startup process '/home/pi/work/bin/rtldavis [options] -tf US -tr 1'
Aug 18 17:19:56 raspberrypi weewx[2180] DEBUG user.rtldavis: start async reader for stderr-thread
Aug 18 17:19:56 raspberrypi weewx[2180] DEBUG user.rtldavis: start async reader for stdout-thread
Aug 18 17:19:56 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.engine.StdTimeSynch
Aug 18 17:19:56 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.engine.StdTimeSynch
Aug 18 17:19:56 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.engine.StdConvert
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.engine: StdConvert target unit is 0x1
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.engine.StdConvert
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.engine.StdCalibrate
Aug 18 17:19:57 raspberrypi weewx[2166]: Starting weewx weather system: weewx.
Aug 18 17:19:57 raspberrypi systemd[1]: Started LSB: weewx weather system.
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.engine.StdCalibrate
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.engine.StdQC
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.engine.StdQC
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.wxservices.StdWXCalculate
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.manager: Daily summary version is 4.0
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.wxservices.StdWXCalculate
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdWXXTypes
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdWXXTypes
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdPressureCooker
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdPressureCooker
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdRainRater
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdRainRater
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.wxxtypes.StdDelta
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.wxxtypes.StdDelta
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.engine.StdArchive
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.engine: Archive will use data binding wx_binding
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.engine: Record generation will be attempted in 'hardware'
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.engine: Using archive interval of 300 seconds (specified in weewx configuration)
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Use LOOP data in hi/low calculations: 1
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.engine.StdArchive
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.restx.StdStationRegistry
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.restx: StationRegistry: Registration not requested.
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.restx.StdStationRegistry
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.restx.StdWunderground
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.restx: WU essentials: {}
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.restx: Wunderground-PWS: Data for station ISAINT6175 will be posted
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.restx.StdWunderground
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.restx.StdPWSweather
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.restx: PWSweather: Posting not enabled.
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.restx.StdPWSweather
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.restx.StdCWOP
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.restx: CWOP: Posting not enabled.
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.restx.StdCWOP
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.restx.StdWOW
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.restx: WOW: Posting not enabled.
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.restx.StdWOW
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.restx.StdAWEKAS
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.restx: AWEKAS: Posting not enabled.
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.restx.StdAWEKAS
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.engine.StdPrint
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.engine.StdPrint
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Loading service weewx.engine.StdReport
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.engine: 'pyephem' not detected, extended almanac data is not available
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Finished loading service weewx.engine.StdReport
Aug 18 17:19:57 raspberrypi weewx[2180] INFO __main__: Starting up weewx version 4.10.2
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.engine: Station does not support reading the time
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.manager: Starting backfill of daily summaries
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.manager: Empty database
Aug 18 17:19:57 raspberrypi weewx[2180] INFO weewx.engine: Starting main packet loop.
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.024012 rtldavis.go VERSION=0.15
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.024758 tr=1 fc=0 ppm=0 gain=0 maxmissed=51 ex=0 receiveWindow=300 actChan=[0] maxChan=1
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.024850 undefined=false verbose=false disableAfc=false deviceString=0
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025393 BitRate: 19200
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025433 SymbolLength: 14
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025453 SampleRate: 268800
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025472 Preamble: 1100101110001001
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025490 PreambleSymbols: 16
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025508 PreambleLength: 224
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025526 PacketSymbols: 80
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025899 PacketLength: 1120
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025930 BlockSize: 512
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.025950 BufferLength: 2048
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: Found Rafael Micro R820T tuner
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG weewx.manager: Daily summary version is 4.0
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: chan: 17:19:57.538838 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: Don't store freqErrors for frequency band US
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: Exact sample rate is: 268800.001367 Hz
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.716809 GetTunerGain: 0 Db
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.716889 SetFreqCorrection 0 ppm Successful
Aug 18 17:19:57 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:19:57.723239 Init channels: wait max 17 seconds for a message of each transmitter
Aug 18 17:20:15 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:20:15.661560 Init channels: wait max 17 seconds for a message of each transmitter
Aug 18 17:20:15 raspberrypi weewx[2180] DEBUG user.rtldavis: chan: 17:20:15.661816 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Aug 18 17:20:15 raspberrypi weewx[2180] DEBUG user.rtldavis: Don't store freqErrors for frequency band US
Aug 18 17:20:33 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:20:33.600380 Init channels: wait max 17 seconds for a message of each transmitter
Aug 18 17:20:33 raspberrypi weewx[2180] DEBUG user.rtldavis: chan: 17:20:33.600493 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Aug 18 17:20:33 raspberrypi weewx[2180] DEBUG user.rtldavis: Don't store freqErrors for frequency band US
Aug 18 17:20:51 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:20:51.539274 Init channels: wait max 17 seconds for a message of each transmitter
Aug 18 17:20:51 raspberrypi weewx[2180] DEBUG user.rtldavis: chan: 17:20:51.541042 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Aug 18 17:20:51 raspberrypi weewx[2180] DEBUG user.rtldavis: Don't store freqErrors for frequency band US
Aug 18 17:21:09 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:21:09.478028 Init channels: wait max 17 seconds for a message of each transmitter
Aug 18 17:21:09 raspberrypi weewx[2180] DEBUG user.rtldavis: chan: 17:21:09.478139 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Aug 18 17:21:09 raspberrypi weewx[2180] DEBUG user.rtldavis: Don't store freqErrors for frequency band US
Aug 18 17:21:27 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:21:27.416842 Init channels: wait max 17 seconds for a message of each transmitter
Aug 18 17:21:27 raspberrypi weewx[2180] DEBUG user.rtldavis: chan: 17:21:27.416962 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Aug 18 17:21:27 raspberrypi weewx[2180] DEBUG user.rtldavis: Don't store freqErrors for frequency band US
Aug 18 17:21:45 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:21:45.355723 Init channels: wait max 17 seconds for a message of each transmitter
Aug 18 17:21:45 raspberrypi weewx[2180] DEBUG user.rtldavis: chan: 17:21:45.355835 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Aug 18 17:21:45 raspberrypi weewx[2180] DEBUG user.rtldavis: Don't store freqErrors for frequency band US
Aug 18 17:22:03 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:22:03.294663 Init channels: wait max 17 seconds for a message of each transmitter
Aug 18 17:22:03 raspberrypi weewx[2180] DEBUG user.rtldavis: chan: 17:22:03.295092 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Aug 18 17:22:03 raspberrypi weewx[2180] DEBUG user.rtldavis: Don't store freqErrors for frequency band US
Aug 18 17:22:21 raspberrypi weewx[2180] DEBUG user.rtldavis: info: 17:22:21.233490 Init channels: wait max 17 seconds for a message of each transmitter
Aug 18 17:22:21 raspberrypi weewx[2180] DEBUG user.rtldavis: chan: 17:22:21.233911 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 Transmitter:0}
Aug 18 17:22:21 raspberrypi weewx[2180] DEBUG user.rtldavis: Don't store freqErrors for frequency band US
Aug 18 17:22:31 raspberrypi weewx[2180] INFO weewx.engine: Main loop exiting. Shutting engine down.
Aug 18 17:22:31 raspberrypi weewx[2180] DEBUG weewx.restx: Shut down Wunderground-PWS thread.
Aug 18 17:22:31 raspberrypi weewx[2180] INFO user.rtldavis: shutdown process /home/pi/work/bin/rtldavis [options] -tf US -tr 1
Aug 18 17:22:31 raspberrypi weewx[2180] INFO user.rtldavis: rtldavis with pid 2182 killed
Aug 18 17:22:31 raspberrypi weewx[2180] CRITICAL __main__: Caught WeeWxIOError: rtldavis process stalled
Aug 18 17:22:31 raspberrypi weewx[2180] CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
« Last Edit: August 18, 2023, 05:23:18 PM by Kidney514 »

Offline Storm017

  • Senior Contributor
  • ****
  • Posts: 172
Re: Receiving Davis Vantage weather data with a RTL-SDR dongle
« Reply #80 on: August 18, 2023, 06:33:00 PM »
Can you post your [Rtldavis] section of the weewx config file?


*****Edit********

Here is my config that worked:

Code: [Select]
[Rtldavis]

    # This section is for the rtldavis sdr-rtl USB receiver.
   
    cmd = /home/pi/work/bin/rtldavis -tf us -tr 1
    # Options:
    # -ex = extra loopTime in ms
    # -fc = frequency correction for all channels
    # -u  = log undefined signals
    #
    # The options below will autoamically be set
    # -tf = transmitter frequencies, EU, or US
    # -tr = transmitters: tr1=1,  tr2=2,  tr3=4,  tr4=8,
    # tr5=16, tr6=32, tr7=64, tr8=128
   
    # Radio frequency to use between USB transceiver and console: US or EU
    # US uses 915 MHz, EU uses 868.3 MHz.  Default is EU.
    transceiver_frequency = US
   
    # Used channels: 0=not present, 1-8)
    # The channel of the Vantage Vue ISS or Vantage Pro or Pro2 ISS
    iss_channel = 1
    # The values below only apply for Vantage Pro or Pro2
    anemometer_channel = 0
    leaf_soil_channel = 0
    temp_hum_1_channel = 0
    temp_hum_2_channel = 0
    # rain bucket type (0: 0.01 inch, 1: 0.2 mm)
    rain_bucket_type = 1
   
    # Print debug messages
    # 0=no logging; 1=minimum logging; 2=normal logging; 3=detailed logging
    debug_parse = 2
    debug_rain = 0
    debug_rtld = 3    # rtldavis logging: 1=inf; 2=(1)+data+chan; 3=(2)+pkt
   
    log_unknown_sensors = True
    log_unmapped_sensors = True
   
    # The driver to use:
    driver = user.rtldavis



If
Code: [Select]
cmd = /home/pi/work/bin/rtldavis -tf us -tr 1 does not work, try

Code: [Select]
cmd = /home/pi/work/bin/rtldavis
« Last Edit: August 18, 2023, 07:23:31 PM by Storm017 »

Offline Kidney514

  • Member
  • *
  • Posts: 8
Re: Receiving Davis Vantage weather data with a RTL-SDR dongle
« Reply #81 on: August 19, 2023, 09:24:15 PM »
well it work, and I really don't what made it work, but my weewx is getting populated with data.

« Last Edit: August 19, 2023, 09:27:32 PM by Kidney514 »

Offline N0NB

  • Amateur weather observer
  • Contributor
  • ***
  • Posts: 130
    • N0NB.us
Re: Receiving Davis Vantage weather data with a RTL-SDR dongle
« Reply #82 on: January 27, 2024, 04:42:46 PM »
Well, I have decided to give this RTL-SDR driver a test and all is well when running it directly from the command line:

Code: [Select]
$ $GOPATH/bin/rtldavis -tr 3 -tf US
15:06:48.637542 rtldavis.go VERSION=0.15
15:06:48.637618 tr=3 fc=0 ppm=0 gain=0 maxmissed=51 ex=0 receiveWindow=300 actChan=[0 1] maxChan=2
15:06:48.637623 undefined=false verbose=false disableAfc=false deviceString=0
15:06:48.637680 BitRate: 19200
15:06:48.637684 SymbolLength: 14
15:06:48.637687 SampleRate: 268800
15:06:48.637689 Preamble: 1100101110001001
15:06:48.637691 PreambleSymbols: 16
15:06:48.637694 PreambleLength: 224
15:06:48.637696 PacketSymbols: 80
15:06:48.637698 PacketLength: 1120
15:06:48.637699 BlockSize: 512
15:06:48.637709 BufferLength: 2048
Detached kernel driver
Found Rafael Micro R820T tuner
15:06:49.120403 Hop: {ChannelIdx:0 ChannelFreq:902419338 FreqError:0 Transmitter:0}
Exact sample rate is: 268800.001367 Hz
15:06:49.300839 GetTunerGain: 0 Db
15:06:49.300865 SetFreqCorrection 0 ppm Successful
15:06:49.304341 Init channels: wait max 139 seconds for a message of each transmitter
Allocating 1 zero-copy buffers
15:07:35.517485 TRANSMITTER 1 SEEN
15:08:35.092807 TRANSMITTER 0 SEEN
15:08:35.092840 ALL TRANSMITTERS SEEN
15:08:35.092900 Hop: {ChannelIdx:14 ChannelFreq:909443845 FreqError:0 Transmitter:1}
15:08:35.894721 E100008005000A37 1 2 0 0 0 msg.ID=1
15:08:35.894751 Hop: {ChannelIdx:19 ChannelFreq:911952597 FreqError:0 Transmitter:0}
15:08:37.654697 8003E3178B002455 2 2 0 0 0 msg.ID=0
15:08:37.654736 Hop: {ChannelIdx:48 ChannelFreq:926503361 FreqError:0 Transmitter:1}
15:08:38.519685 510000FF75000DFB 2 3 0 0 0 msg.ID=1
15:08:38.519761 Hop: {ChannelIdx:41 ChannelFreq:922991108 FreqError:0 Transmitter:0}
15:08:40.218590 E003E334030036EA 3 3 0 0 0 msg.ID=0
15:08:40.218674 Hop: {ChannelIdx:7 ChannelFreq:905931591 FreqError:0 Transmitter:1}
15:08:41.144152 91000000050074F1 3 4 0 0 0 msg.ID=1
15:08:41.144207 Hop: {ChannelIdx:25 ChannelFreq:914963100 FreqError:0 Transmitter:0}
15:08:42.780487 5002E4FF71008E07 4 4 0 0 0 msg.ID=0
15:08:42.780536 Hop: {ChannelIdx:24 ChannelFreq:914461350 FreqError:0 Transmitter:1}
15:08:43.768957 81000096C500B2B8 4 5 0 0 0 msg.ID=1
15:08:43.769018 Hop: {ChannelIdx:8 ChannelFreq:906433342 FreqError:0 Transmitter:0}
15:08:45.342238 6003EF3083006AA0 5 5 0 0 0 msg.ID=0

My /etc/weewx/weewx.conf driver section looks like:
Code: [Select]
[Rtldavis]
    # This section is for the rtldavis sdr-rtl USB receiver.

    cmd = /home/nate/go/bin/rtldavis
    # Options:
    # -ppm = frequency correction of rtl dongle in ppm; default = 0
    # -gain = tuner gain in tenths of Db; default = 0 means "auto gain"
    # -ex = extra loopTime in ms; default = 0
    # -fc = frequency correction for all channels; default = 0
    # -u  = log undefined signals
    #
    # The options below will autoamically be set
    # -tf = transmitter frequencies, US, NZ or EU
    # -tr = transmitters: tr1=1,  tr2=2,  tr3=4,  tr4=8,
    #                     tr5=16, tr6=32, tr7=64, tr8=128

    # Radio frequency to use between USB transceiver and console: US, NZ or EU
    # US uses 915 MHz, NZ uses 921 MHz and EU uses 868.3 MHz.  Default is EU.
    transceiver_frequency = US
   
    # Used channels: 0=not present, 1-8)
    # The channel of the Vantage Vue ISS or Vantage Pro or Pro2 ISS
    iss_channel = 1
    # The values below only apply for Vantage Pro or Pro2
    anemometer_channel = 0
    leaf_soil_channel = 0
    temp_hum_1_channel = 2
    temp_hum_2_channel = 0
    # rain bucket type (0: 0.01 inch, 1: 0.2 mm)
    rain_bucket_type = 1
   
    # Print debug messages
    # 0=no logging; 1=minimum logging; 2=normal logging; 3=detailed logging
    debug_parse = 0
    debug_rain = 0
    debug_rtld = 2    # rtldavis logging: 1=inf; 2=(1)+data+chan; 3=(2)+pkt

    # The pct_good per transmitter can be saved to the database
    # This has only effect with 2 transmitters or more
    save_pct_good_per_transmitter = True

    # The driver to use:
    driver = user.rtldavis

Attempting to start the WeeWX driver directly resulted in an error so I edited the extension file to point to the correct path to the Go driver.  Now I get the following Python error:

Code: [Select]
$ PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/rtldavis.py
/usr/share/weewx/user/rtldavis.py:406: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
  self.setDaemon(True)
/usr/share/weewx/user/rtldavis.py:407: DeprecationWarning: setName() is deprecated, set the name attribute instead
  self.setName(label)
/usr/share/weewx/user/rtldavis.py:410: DeprecationWarning: getName() is deprecated, get the name attribute instead
  logdbg("start async reader for %s" % self.getName())
15:23:26.544929 rtldavis.go VERSION=0.15
15:23:26.544996 tr=3 fc=0 ppm=0 gain=0 maxmissed=51 ex=0 receiveWindow=300 actChan=[0 1] maxChan=2
15:23:26.544999 undefined=false verbose=false disableAfc=false deviceString=0
15:23:26.545041 BitRate: 19200
15:23:26.545043 SymbolLength: 14
15:23:26.545044 SampleRate: 268800
15:23:26.545046 Preamble: 1100101110001001
15:23:26.545047 PreambleSymbols: 16
15:23:26.545048 PreambleLength: 224
15:23:26.545049 PacketSymbols: 80
15:23:26.545050 PacketLength: 1120
15:23:26.545051 BlockSize: 512
15:23:26.545052 BufferLength: 2048
Found Rafael Micro R820T tuner
15:23:26.963900 Hop: {ChannelIdx:0 ChannelFreq:902419338 FreqError:0 Transmitter:0}
Exact sample rate is: 268800.001367 Hz
15:23:27.144203 GetTunerGain: 0 Db
15:23:27.144219 SetFreqCorrection 0 ppm Successful
Allocating 1 zero-copy buffers
15:23:27.148780 Init channels: wait max 139 seconds for a message of each transmitter
Traceback (most recent call last):
  File "/usr/share/weewx/user/rtldavis.py", line 1407, in <module>
    payload = lines[0].strip()
              ~~~~~^^^
IndexError: list index out of range

The traceback message appears about ten seconds after the Allocating 1 zero-copy buffers line is printed.

I am testing this with WeeWX 4.10.2 and Python 3.11.2 on my desktop running Debian 12.4.

I've not yet tried running WeeWx as a daemon to see if there error occurs then.  This is a test setup so I can delete the database and start over at any time.

Offline N0NB

  • Amateur weather observer
  • Contributor
  • ***
  • Posts: 130
    • N0NB.us
Re: Receiving Davis Vantage weather data with a RTL-SDR dongle
« Reply #83 on: January 27, 2024, 08:45:13 PM »
It appears the error was only when running in stand-alone mode.  This seem to be working under WeeWX as the database is being populated and the Seasons report is being generated.

Perhaps this patch will be of use to someone else that gets the stand-alone error:

Code: [Select]
diff --git a/bin/user/rtldavis.py b/bin/user/rtldavis.py
index 11ac5b5..75db887 100644
--- a/bin/user/rtldavis.py
+++ b/bin/user/rtldavis.py
@@ -1404,12 +1404,14 @@ Actions:
                     ld_library_path=options.ld_library_path)
         while mgr.running():
             for lines in mgr.get_stderr():
-                payload = lines[0].strip()
-                if payload:
-                    print(payload)
-                lines.pop(0)
+                if lines:
+                    payload = lines[0].strip()
+                    if payload:
+                        print(payload)
+                    lines.pop(0)
             for lines in mgr.get_stdout():
-                err = lines[0].strip()
-                if err:
-                    print(err)
-                lines.pop(0)
+                if lines:
+                    err = lines[0].strip()
+                    if err:
+                        print(err)
+                    lines.pop(0)

 

anything