New test function in program rtldavis

To all,

The rtldavis program has now an embedded frequency test function.
With this function the frequencies can be detected used by Davis Vantage 
weather stations.

Usage: $GOPATH/bin/rtldavis -tr 1 -tf US -startfreq 902000000 -endfreq 
928000000 -stepfreq 40000

Warning: For the US, AU and NZ bands this test will take a long time!

-stepfreq 10000: 4 days!
-stepfreq 20000: 2 days!
-stepfreq 40000: 24 h
-stepfreq 80000: 12 h


Below the output of the test for the EU frequency band
============================================================
My command was: $GOPATH/bin/rtldavis -tr 15 -startfreq 868000000 -endfreq 
868600000 -stepfreq 2000
Note: I used -tr 15 because I have 4 transmitters, but you will get better 
results to do the test with just one sensor.

$GOPATH/bin/rtldavis -tr 1 -startfreq 868000000 -endfreq 868600000 
-stepfreq 2000

08:33:08.507848 TESTFREQ 1: Frequency 868000000: NOK
08:33:25.009595 TESTFREQ 2: Frequency 868002000: NOK
...
08:39:11.631768 TESTFREQ 23: Frequency 868044000: NOK
08:39:28.132553 TESTFREQ 24: Frequency 868046000: NOK
08:39:42.645072 TESTFREQ 25: Frequency 868048000 (freqError=3999): OK, 
msg.data: F20AF7FF80C09F85
08:39:56.081804 TESTFREQ 26: Frequency 868050000 (freqError=335): OK, 
msg.data: F269FFFFC0C0E084
08:40:12.582245 TESTFREQ 27: Frequency 868052000: NOK
08:40:29.083291 TESTFREQ 28: Frequency 868054000: NOK
...
08:42:08.090752 TESTFREQ 34: Frequency 868066000: NOK
08:42:24.591295 TESTFREQ 35: Frequency 868068000: NOK
08:42:31.260564 TESTFREQ 36: Frequency 868070000 (freqError=-1309): OK, 
msg.data: E000007A05006B04
08:42:31.643522 TESTFREQ 37: Frequency 868072000 (freqError=7117): OK, 
msg.data: 83016F31190076D3
08:42:34.643106 TESTFREQ 38: Frequency 868074000 (freqError=5597): OK, 
msg.data: F2498A5000C091F9
08:42:44.073708 TESTFREQ 39: Frequency 868076000 (freqError=2658): OK, 
msg.data: 500000FF7500485B
08:42:45.392137 TESTFREQ 40: Frequency 868078000 (freqError=1285): OK, 
msg.data: E3006F120100D6D6
08:42:48.081458 TESTFREQ 41: Frequency 868080000 (freqError=-310): OK, 
msg.data: F229FFFFC0C0F1EC
08:42:55.757607 TESTFREQ 42: Frequency 868082000 (freqError=-2895): OK, 
msg.data: 51006AFF73009624
08:42:56.886751 TESTFREQ 43: Frequency 868084000 (freqError=-4454): OK, 
msg.data: A00000733D0013B9
08:43:08.883213 TESTFREQ 44: Frequency 868086000 (freqError=-6600): OK, 
msg.data: A1016A0003006AF3
08:43:25.389468 TESTFREQ 45: Frequency 868088000: NOK
08:43:41.890787 TESTFREQ 46: Frequency 868090000: NOK
...
08:53:52.563306 TESTFREQ 83: Frequency 868164000: NOK
08:54:09.069653 TESTFREQ 84: Frequency 868166000: NOK
08:54:24.140318 TESTFREQ 85: Frequency 868168000 (freqError=-8497): OK, 
msg.data: F2498A5040C09C35
08:54:37.578287 TESTFREQ 86: Frequency 868170000 (freqError=142): OK, 
msg.data: F229FFFFC0C0F1EC
08:54:54.079549 TESTFREQ 87: Frequency 868172000: NOK
08:55:10.580273 TESTFREQ 88: Frequency 868174000: NOK
...
08:56:49.587907 TESTFREQ 94: Frequency 868186000: NOK
08:57:06.089362 TESTFREQ 95: Frequency 868188000: NOK
08:57:16.139749 TESTFREQ 96: Frequency 868190000 (freqError=-2123): OK, 
msg.data: F209CEFFC0C0A305
08:57:16.757656 TESTFREQ 97: Frequency 868192000 (freqError=6352): OK, 
msg.data: 51006BFF710086F2
08:57:19.888636 TESTFREQ 98: Frequency 868194000 (freqError=5415): OK, 
msg.data: 43007CFFC30025D3
08:57:23.001305 TESTFREQ 99: Frequency 868196000 (freqError=4096): OK, 
msg.data: E000007A05006B04
08:57:29.577161 TESTFREQ 100: Frequency 868198000 (freqError=2329): OK, 
msg.data: F22A00FF40C04F05
08:57:29.881575 TESTFREQ 101: Frequency 868200000 (freqError=-1211): OK, 
msg.data: 41006BFFC100827B
08:57:33.652214 TESTFREQ 102: Frequency 868202000 (freqError=-2126): OK, 
msg.data: 83007C315B003757
08:57:35.814617 TESTFREQ 103: Frequency 868204000 (freqError=-1629): OK, 
msg.data: 500000FF7500485B
08:57:47.390072 TESTFREQ 104: Frequency 868206000 (freqError=-5924): OK, 
msg.data: E3007C12030030CF
08:58:03.891633 TESTFREQ 105: Frequency 868208000: NOK
08:58:20.393632 TESTFREQ 106: Frequency 868210000: NOK
08:58:36.909603 TESTFREQ 107: Frequency 868212000: NOK
...
09:08:47.506290 TESTFREQ 144: Frequency 868286000: NOK
09:09:04.007169 TESTFREQ 145: Frequency 868288000: NOK
09:09:05.635746 TESTFREQ 146: Frequency 868290000 (freqError=-7983): OK, 
msg.data: F209CEFF40C0B89D
09:09:22.136064 TESTFREQ 147: Frequency 868292000: NOK
09:09:38.637292 TESTFREQ 148: Frequency 868294000: NOK
...
09:11:34.191784 TESTFREQ 155: Frequency 868308000: NOK
09:11:50.692624 TESTFREQ 156: Frequency 868310000: NOK
09:11:50.881275 TESTFREQ 157: Frequency 868312000 (freqError=-885): OK, 
msg.data: C1012A0003005B77
09:11:54.386142 TESTFREQ 158: Frequency 868314000 (freqError=6129): OK, 
msg.data: E3011D120300B5F8
09:11:57.651033 TESTFREQ 159: Frequency 868316000 (freqError=3815): OK, 
msg.data: F20AFCFF40C097CE
09:12:01.928609 TESTFREQ 160: Frequency 868318000 (freqError=1144): OK, 
msg.data: 80000032AD0014C7
09:12:04.005218 TESTFREQ 161: Frequency 868320000 (freqError=261): OK, 
msg.data: 81012AFFC300E850
09:12:08.134538 TESTFREQ 162: Frequency 868322000 (freqError=-1843): OK, 
msg.data: 53001DFF73000E3C
09:12:11.071864 TESTFREQ 163: Frequency 868324000 (freqError=-4239): OK, 
msg.data: F269FFFFC0C0E084
09:12:14.740295 TESTFREQ 164: Frequency 868326000 (freqError=-6620): OK, 
msg.data: E000007A05006B04
09:12:31.241327 TESTFREQ 165: Frequency 868328000: NOK
09:12:47.741935 TESTFREQ 166: Frequency 868330000: NOK
...
09:26:16.450669 TESTFREQ 215: Frequency 868428000: NOK
09:26:32.969307 TESTFREQ 216: Frequency 868430000: NOK
09:26:38.131148 TESTFREQ 217: Frequency 868432000 (freqError=-7484): OK, 
msg.data: E107438001005467
09:26:39.130943 TESTFREQ 218: Frequency 868434000 (freqError=5775): OK, 
msg.data: F2498A5040C09C35
09:26:40.856634 TESTFREQ 219: Frequency 868436000 (freqError=3331): OK, 
msg.data: 600000FFC50079DA
09:26:42.632321 TESTFREQ 220: Frequency 868438000 (freqError=1783): OK, 
msg.data: 83012C328B00A44A
09:26:51.255188 TESTFREQ 221: Frequency 868440000 (freqError=-153): OK, 
msg.data: 51064EFF7100C07C
09:26:52.567413 TESTFREQ 222: Frequency 868442000 (freqError=-1852): OK, 
msg.data: F229FFFFC0C0F1EC
09:26:53.668192 TESTFREQ 223: Frequency 868444000 (freqError=-4517): OK, 
msg.data: 800000333D003B1C
09:26:56.381746 TESTFREQ 224: Frequency 868446000 (freqError=-5883): OK, 
msg.data: E3034F1201000F4A
09:27:12.883597 TESTFREQ 225: Frequency 868448000: NOK
09:27:29.383883 TESTFREQ 226: Frequency 868450000: NOK
...
09:55:02.188634 TESTFREQ 37: Frequency 868548000: NOK
09:55:18.689354 TESTFREQ 38: Frequency 868550000: NOK
09:55:25.403823 TESTFREQ 39: Frequency 868552000 (freqError=3727): OK, 
msg.data: 800000348D00A081
09:55:27.188215 TESTFREQ 40: Frequency 868554000 (freqError=6680): OK, 
msg.data: F269FFFFC0C0E084
09:55:38.218456 TESTFREQ 41: Frequency 868556000 (freqError=3304): OK, 
msg.data: E000007A05006B04
09:55:38.508171 TESTFREQ 42: Frequency 868558000 (freqError=2961): OK, 
msg.data: 810430FFC300B80B
09:55:40.626282 TESTFREQ 43: Frequency 868560000 (freqError=1118): OK, 
msg.data: F2498A5080C08A61
09:55:43.380402 TESTFREQ 44: Frequency 868562000 (freqError=-2209): OK, 
msg.data: E3032812010007B5
09:55:51.030007 TESTFREQ 45: Frequency 868564000 (freqError=-3799): OK, 
msg.data: 500000FF7500485B
09:55:51.633061 TESTFREQ 46: Frequency 868566000 (freqError=-4811): OK, 
msg.data: E10333800300F976
09:56:08.134940 TESTFREQ 47: Frequency 868568000: NOK
09:56:24.635754 TESTFREQ 48: Frequency 868570000: NOK
...
10:00:15.650909 TESTFREQ 62: Frequency 868598000: NOK
10:00:32.151288 TESTFREQ 63: Frequency 868600000: NOK
10:00:32.151760 TEST REACHED ENDFREQ
10:00:32.152009 Test reached endfreq; test ended

The test can be refined by using a smaller stepFreq for one of the detected 
frequency bands like:

$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
============================================================

Luc

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to