robotastic / trunk-recorder

Records calls from a Trunked Radio System (P25 & SmartNet)
GNU General Public License v3.0
864 stars 194 forks source link

What am I learning from these error messages? #253

Closed rpdale closed 5 years ago

rpdale commented 5 years ago

Monitoring MPSCS Tower 1-001: https://www.radioreference.com/apps/db/?sid=100

{ "sources": [{ "center": 852200000.0, "rate": 8000000.0, "error": 23300, "gain": 33, "driver": "osmosdr", "device": "rtl=00000001", "modulation": "qpsk", "digitalRecorders": 4 }], "systems": [{ "control_channels": [853475000], "type": "p25", "talkgroupsFile": "ChanList.csv", "shortName": "mpscs" }], "captureDir": "/home/pi/radio/" }

[2019-08-10 00:03:48.846062] (info)

SYSTEMS

0 [2019-08-10 00:03:48.846184] (info)

System Number: 1

1 [2019-08-10 00:03:48.846233] (info) Short Name: mpscs [2019-08-10 00:03:48.846262] (info) System Type: p25 [2019-08-10 00:03:48.846293] (info) Control Channels: [2019-08-10 00:03:48.846418] (info) 8.53475e+08 [2019-08-10 00:03:48.846482] (info) API Key: [2019-08-10 00:03:48.846510] (info) Upload Script: [2019-08-10 00:03:48.846536] (info) Call Log: true [2019-08-10 00:03:48.846570] (info) Audio Archive: true [2019-08-10 00:03:48.846596] (info) Loading Talkgroups... [2019-08-10 00:03:48.865871] (info) Read 1898 talkgroups. [2019-08-10 00:03:48.865963] (info) Talkgroups File: ChanList.csv [2019-08-10 00:03:48.865997] (info) Record Unknown Talkgroups: true [2019-08-10 00:03:48.866050] (info) Talkgroup Display Format: Id [2019-08-10 00:03:48.866084] (info) Hide Encrypted Talkgroups: false [2019-08-10 00:03:48.866112] (info) Hide Unknown Talkgroups: false [2019-08-10 00:03:48.866139] (info) Minimum Call Duration (in seconds): 0 [2019-08-10 00:03:48.866178] (info)
[2019-08-10 00:03:48.866212] (info)


SOURCES

[2019-08-10 00:03:48.866309] (info) Driver: osmosdr [2019-08-10 00:03:48.866336] (info) Center: 8.570000e+08 [2019-08-10 00:03:48.866399] (info) Rate: 8000000 [2019-08-10 00:03:48.866443] (info) Error: 23300 [2019-08-10 00:03:48.866480] (info) PPM Error: 0 [2019-08-10 00:03:48.866509] (info) Gain: 33 [2019-08-10 00:03:48.866544] (info) IF Gain: 0 [2019-08-10 00:03:48.866573] (info) BB Gain: 0 [2019-08-10 00:03:48.866602] (info) LNA Gain: 0 [2019-08-10 00:03:48.866630] (info) PGA Gain: 0 [2019-08-10 00:03:48.866658] (info) TIA Gain: 0 [2019-08-10 00:03:48.866686] (info) MIX Gain: 0 [2019-08-10 00:03:48.866714] (info) VGA1 Gain: 0 [2019-08-10 00:03:48.866742] (info) VGA2 Gain: 0 [2019-08-10 00:03:48.866769] (info) Squelch: 0 [2019-08-10 00:03:48.866797] (info) Idle Silence: false [2019-08-10 00:03:48.866823] (info) Digital Recorders: 4 [2019-08-10 00:03:48.866855] (info) Debug Recorders: 0 [2019-08-10 00:03:48.866880] (info) SigMF Recorders: 0 [2019-08-10 00:03:48.866906] (info) Analog Recorders: 0 [2019-08-10 00:03:48.866935] (info) Modulation: qpsk [2019-08-10 00:03:48.866972] (info) Source Device: rtl=00000001 gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4 built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp Using device #0 Realtek RTL2838UHIDIR SN: 00000001 Detached kernel driver Found Rafael Micro R820T tuner [R82XX] PLL not locked! [2019-08-10 00:03:49.567949] (info) SOURCE TYPE OSMOSDR (osmosdr) [2019-08-10 00:03:49.568110] (info) Setting sample rate to: 8000000 Invalid sample rate: 8000000 Hz [2019-08-10 00:03:49.568329] (info) Actual sample rate: 1024000 [2019-08-10 00:03:49.568435] (info) Tunning to 8.570233e+08 [2019-08-10 00:03:49.623959] (info) Gain Stage: LNA supported values: 0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48 49.6 [2019-08-10 00:03:49.624185] (info) Max Freqency: 8.610000e+08 [2019-08-10 00:03:49.624328] (info) Min Freqency: 8.530000e+08 [2019-08-10 00:03:49.649690] (info) LNA Gain set to: 0 [2019-08-10 00:03:49.675638] (info) TIA Gain set to: 0 [2019-08-10 00:03:49.700653] (info) PGA Gain set to: 0 [2019-08-10 00:03:49.725029] (info) Gain set to: 32.8 [2019-08-10 00:03:49.725164] (info) Setting antenna to [RX] [2019-08-10 00:03:49.747359] (info) P25 Recorder Initial Rate: 500000 Resampled Rate: 31250 Initial Decimation: 16 Decimation: 16 System Rate: 30000 ARB Rate: 0.96 [2019-08-10 00:03:49.747514] (info) P25 Recorder Taps - initial: 1213 channel: 1515 ARB: 757 Total: 3485 Project 25 IMBE Encoder/Decoder Fixed-Point implementation Developed by Pavel Yazev E-mail: pyazev@gmail.com Version 1.0 (c) Copyright 2009 This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the file ``LICENSE'' for details. [2019-08-10 00:03:49.777053] (info) P25 Recorder Initial Rate: 500000 Resampled Rate: 31250 Initial Decimation: 16 Decimation: 16 System Rate: 30000 ARB Rate: 0.96 [2019-08-10 00:03:49.777259] (info) P25 Recorder Taps - initial: 1213 channel: 1515 ARB: 757 Total: 3485 [2019-08-10 00:03:49.800236] (info) P25 Recorder Initial Rate: 500000 Resampled Rate: 31250 Initial Decimation: 16 Decimation: 16 System Rate: 30000 ARB Rate: 0.96 [2019-08-10 00:03:49.800361] (info) P25 Recorder Taps - initial: 1213 channel: 1515 ARB: 757 Total: 3485 [2019-08-10 00:03:49.825451] (info) P25 Recorder Initial Rate: 500000 Resampled Rate: 31250 Initial Decimation: 16 Decimation: 16 System Rate: 30000 ARB Rate: 0.96 [2019-08-10 00:03:49.825549] (info) P25 Recorder Taps - initial: 1213 channel: 1515 ARB: 757 Total: 3485 [2019-08-10 00:03:49.835755] (info)

[2019-08-10 00:03:49.835825] (info)


INSTANCE

[2019-08-10 00:03:49.835906] (info) Capture Directory: /home/pi/radio [2019-08-10 00:03:49.835936] (info) Upload Server: [2019-08-10 00:03:49.835962] (info) Status Server: [2019-08-10 00:03:49.835987] (info) Instance Key: [2019-08-10 00:03:49.836012] (info) Instance Id: [2019-08-10 00:03:49.836037] (info) Default Mode: digital [2019-08-10 00:03:49.836062] (info) Call Timeout (seconds): 3 [2019-08-10 00:03:49.836089] (info) Log to File: false [2019-08-10 00:03:49.836116] (info) Control channel warning rate: 10 [2019-08-10 00:03:49.836143] (info) Control channel retune limit: 0 [2019-08-10 00:03:49.836172] (info) Frequency format: 0 [2019-08-10 00:03:49.836197] (info) Status as String: false [2019-08-10 00:03:49.836235] (info) [mpscs] Started with Control Channel: 8.534750e+08 [2019-08-10 00:03:49.894887] (info) P25 Trunking - SysNum: 0 [2019-08-10 00:03:49.894970] (info) P25 Trunking Initial Rate: 500000 Resampled Rate: 50000 Initial Decimation: 16 Decimation: 10 System Rate: 48000 ARB Rate: 0.96 [2019-08-10 00:03:49.895201] (info) P25 Trunking Taps - initial: 1213 channel: 1137 ARB: 757 Total: 3107 Allocating 15 zero-copy buffers [2019-08-10 00:03:52.005621] (error) [mpscs] There is only one control channel defined [2019-08-10 00:03:52.005780] (error) [mpscs] Control Channel Message Decode Rate: 0.333333/sec, count: 1 [2019-08-10 00:03:55.002754] (error) [mpscs] There is only one control channel defined [2019-08-10 00:03:55.002904] (error) [mpscs] Control Channel Message Decode Rate: 0.666667/sec, count: 2 [2019-08-10 00:03:58.004963] (error) [mpscs] There is only one control channel defined [2019-08-10 00:03:58.005122] (error) [mpscs] Control Channel Message Decode Rate: 1/sec, count: 3 [2019-08-10 00:04:01.007708] (error) [mpscs] There is only one control channel defined [2019-08-10 00:04:01.007870] (error) [mpscs] Control Channel Message Decode Rate: 0.666667/sec, count: 2 [2019-08-10 00:04:04.003635] (error) [mpscs] There is only one control channel defined [2019-08-10 00:04:04.003791] (error) [mpscs] Control Channel Message Decode Rate: 0.666667/sec, count: 2 [2019-08-10 00:04:07.009689] (error) [mpscs] There is only one control channel defined [2019-08-10 00:04:07.009803] (error) [mpscs] Control Channel Message Decode Rate: 0.666667/sec, count: 2 [2019-08-10 00:04:10.002099] (error) [mpscs] There is only one control channel defined [2019-08-10 00:04:10.002365] (error) [mpscs] Control Channel Message Decode Rate: 1/sec, count: 3

rpdale commented 5 years ago

I let it run all night - nothing was recorded, and scrolling back I would occasionally see:

[2019-08-10 08:09:36.007553] (info) Currently Active Calls: 0 [2019-08-10 08:09:36.007762] (info) Recorders: [2019-08-10 08:09:36.007965] (info) [ rtl=00000001 ]
[2019-08-10 08:09:36.008171] (info) [ D0 ] State: 2 [2019-08-10 08:09:36.008382] (info) [ D1 ] State: 2 [2019-08-10 08:09:36.008588] (info) [ D2 ] State: 2 [2019-08-10 08:09:36.008790] (info) [ D3 ] State: 2

rpdale commented 5 years ago

Running gqrx led me a different error number - I'm using 1000 now. No change. Am I missing something? I've tried gain 0, gain 3, 30, gain 40, no change.

gqrx

mattames commented 5 years ago

What type of dongle is it? If the offset keeps changing then it is probably thermal drift in the XO.

Cheers, Matt

On Sun, 11 Aug 2019 at 11:13, rpdale notifications@github.com wrote:

Running gqrx led me a different error number - I'm using 1000 now. No change. Am I missing something?

[image: gqrx] https://user-images.githubusercontent.com/11564694/62828411-bd3de100-bbb3-11e9-9164-51e79622d852.jpg

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/robotastic/trunk-recorder/issues/253?email_source=notifications&email_token=AAFTIC4REW4PGKCR2XQOVTLQD5RVJA5CNFSM4IKYQDE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4AX7VY#issuecomment-520191959, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFTICZ3OIAAMNIYY55D7FLQD5RVJANCNFSM4IKYQDEQ .

frameshift18 commented 5 years ago

That site has 700mhz freqs too so youre going to need two rtl dongles to be able to hear all the voice traffic.

Your center freq for the 800mhz channels looks good, although centered would be 852.3625

If you are using a rtl sdr the max rate you can use without problems is 2.4mhz, not 8mhz as you have set.

Looks like trunk-recorder is setting the sample rate to 1.024mhz cause the 8mhz is incorrect, then its setting the center freq to ~857.02mhz which is out of the range of your control channel at 853.475 when using the fallback 1.024mhz rate.

I would set the center to 852.3625mhz, set rate to 2.4mhz. If you are using a decent rtl sdr your freq error should be no more than +/- 1000hz or so.

"center": 852362500, "rate": 2400000,

The signal strength on gqrx doesnt look that high either, in my experience trunk-recorder needs a fairly good SNR to decode.

Which sdr are you using?

rpdale commented 5 years ago

Thanks all. Using RTL-SDR v3. I edited the center and rate to no avail. I swapped out for a NooElec R820T, ran gqrx to find the new error, and ran it again with the same outcome.

Using these dongles I can hear the system fairly well (not perfect) running Unitrunker on Windows but I am in a basement - I'll move the setup outside later today where I have a clear shot to the tower and see if that changes anything.

[2019-08-11 09:01:29.471134] (info)

SYSTEMS

0 [2019-08-11 09:01:29.471253] (info)

System Number: 1

1 [2019-08-11 09:01:29.471300] (info) Short Name: mpscs [2019-08-11 09:01:29.471331] (info) System Type: p25 [2019-08-11 09:01:29.471363] (info) Control Channels: [2019-08-11 09:01:29.471547] (info) 8.53475e+08 [2019-08-11 09:01:29.471692] (info) API Key: [2019-08-11 09:01:29.471722] (info) Upload Script: [2019-08-11 09:01:29.471749] (info) Call Log: true [2019-08-11 09:01:29.471784] (info) Audio Archive: true [2019-08-11 09:01:29.471812] (info) Loading Talkgroups... [2019-08-11 09:01:29.490814] (info) Read 1898 talkgroups. [2019-08-11 09:01:29.490904] (info) Talkgroups File: ChanList.csv [2019-08-11 09:01:29.490939] (info) Record Unknown Talkgroups: true [2019-08-11 09:01:29.490991] (info) Talkgroup Display Format: Id [2019-08-11 09:01:29.491026] (info) Hide Encrypted Talkgroups: false [2019-08-11 09:01:29.491056] (info) Hide Unknown Talkgroups: false [2019-08-11 09:01:29.491085] (info) Minimum Call Duration (in seconds): 0 [2019-08-11 09:01:29.491127] (info)
[2019-08-11 09:01:29.491164] (info)


SOURCES

[2019-08-11 09:01:29.491272] (info) Driver: osmosdr [2019-08-11 09:01:29.491300] (info) Center: 8.523625e+08 [2019-08-11 09:01:29.491367] (info) Rate: 2400000 [2019-08-11 09:01:29.491412] (info) Error: 1000 [2019-08-11 09:01:29.491449] (info) PPM Error: 0 [2019-08-11 09:01:29.491478] (info) Gain: 33 [2019-08-11 09:01:29.491514] (info) IF Gain: 0 [2019-08-11 09:01:29.491543] (info) BB Gain: 0 [2019-08-11 09:01:29.491572] (info) LNA Gain: 0 [2019-08-11 09:01:29.491601] (info) PGA Gain: 0 [2019-08-11 09:01:29.491629] (info) TIA Gain: 0 [2019-08-11 09:01:29.491659] (info) MIX Gain: 0 [2019-08-11 09:01:29.491688] (info) VGA1 Gain: 0 [2019-08-11 09:01:29.491717] (info) VGA2 Gain: 0 [2019-08-11 09:01:29.491745] (info) Squelch: 0 [2019-08-11 09:01:29.491774] (info) Idle Silence: false [2019-08-11 09:01:29.491801] (info) Digital Recorders: 4 [2019-08-11 09:01:29.491833] (info) Debug Recorders: 0 [2019-08-11 09:01:29.491859] (info) SigMF Recorders: 0 [2019-08-11 09:01:29.491885] (info) Analog Recorders: 0 [2019-08-11 09:01:29.491916] (info) Modulation: qpsk [2019-08-11 09:01:29.491953] (info) Source Device: rtl gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4 built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp Using device #0 Realtek RTL2838UHIDIR SN: 00000001 Found Rafael Micro R820T tuner [R82XX] PLL not locked! [2019-08-11 09:01:30.084016] (info) SOURCE TYPE OSMOSDR (osmosdr) [2019-08-11 09:01:30.084149] (info) Setting sample rate to: 2400000 [R82XX] PLL not locked! [2019-08-11 09:01:30.200839] (info) Actual sample rate: 2400000 [2019-08-11 09:01:30.201064] (info) Tunning to 8.523635e+08 [2019-08-11 09:01:30.253179] (info) Gain Stage: LNA supported values: 0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48 49.6 [2019-08-11 09:01:30.253332] (info) Max Freqency: 8.535625e+08 [2019-08-11 09:01:30.253447] (info) Min Freqency: 8.511625e+08 [2019-08-11 09:01:30.278961] (info) LNA Gain set to: 0 [2019-08-11 09:01:30.304415] (info) TIA Gain set to: 0 [2019-08-11 09:01:30.330544] (info) PGA Gain set to: 0 [2019-08-11 09:01:30.355392] (info) Gain set to: 32.8 [2019-08-11 09:01:30.355527] (info) Setting antenna to [RX] [2019-08-11 09:01:30.373180] (info) P25 Recorder Initial Rate: 480000 Resampled Rate: 30000 Initial Decimation: 5 Decimation: 16 System Rate: 30000 ARB Rate: 1 [2019-08-11 09:01:30.373284] (info) P25 Recorder Taps - initial: 363 channel: 1455 ARB: 727 Total: 2545 Project 25 IMBE Encoder/Decoder Fixed-Point implementation Developed by Pavel Yazev E-mail: pyazev@gmail.com Version 1.0 (c) Copyright 2009 This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; see the file ``LICENSE'' for details. [2019-08-11 09:01:30.397197] (info) P25 Recorder Initial Rate: 480000 Resampled Rate: 30000 Initial Decimation: 5 Decimation: 16 System Rate: 30000 ARB Rate: 1 [2019-08-11 09:01:30.397432] (info) P25 Recorder Taps - initial: 363 channel: 1455 ARB: 727 Total: 2545 [2019-08-11 09:01:30.463619] (info) P25 Recorder Initial Rate: 480000 Resampled Rate: 30000 Initial Decimation: 5 Decimation: 16 System Rate: 30000 ARB Rate: 1 [2019-08-11 09:01:30.463740] (info) P25 Recorder Taps - initial: 363 channel: 1455 ARB: 727 Total: 2545 [2019-08-11 09:01:30.486960] (info) P25 Recorder Initial Rate: 480000 Resampled Rate: 30000 Initial Decimation: 5 Decimation: 16 System Rate: 30000 ARB Rate: 1 [2019-08-11 09:01:30.487073] (info) P25 Recorder Taps - initial: 363 channel: 1455 ARB: 727 Total: 2545 [2019-08-11 09:01:30.495700] (info)

[2019-08-11 09:01:30.495769] (info)


INSTANCE

[2019-08-11 09:01:30.495855] (info) Capture Directory: /home/pi/radio [2019-08-11 09:01:30.495936] (info) Upload Server: [2019-08-11 09:01:30.495967] (info) Status Server: [2019-08-11 09:01:30.495994] (info) Instance Key: [2019-08-11 09:01:30.496021] (info) Instance Id: [2019-08-11 09:01:30.496048] (info) Default Mode: digital [2019-08-11 09:01:30.496075] (info) Call Timeout (seconds): 3 [2019-08-11 09:01:30.496104] (info) Log to File: false [2019-08-11 09:01:30.496131] (info) Control channel warning rate: 10 [2019-08-11 09:01:30.496159] (info) Control channel retune limit: 0 [2019-08-11 09:01:30.496188] (info) Frequency format: 0 [2019-08-11 09:01:30.496215] (info) Status as String: false [2019-08-11 09:01:30.496253] (info) [mpscs] Started with Control Channel: 8.534750e+08 [2019-08-11 09:01:30.508857] (info) P25 Trunking - SysNum: 0 [2019-08-11 09:01:30.508937] (info) P25 Trunking Initial Rate: 480000 Resampled Rate: 48000 Initial Decimation: 5 Decimation: 10 System Rate: 48000 ARB Rate: 1 [2019-08-11 09:01:30.509165] (info) P25 Trunking Taps - initial: 363 channel: 1091 ARB: 727 Total: 2181 Allocating 15 zero-copy buffers

rpdale commented 5 years ago

I'm showing the output of Unitrunker on the Windows 10 box that is sitting right next to my RPI. All I did was unplug the RTLSDRv3 from the RPI and plug it in to Windows. Should I change any settings?

{ "sources": [{ "center": 852362500.0, "rate": 2400000.0, "error": 1875, "gain": 30, "driver": "osmosdr", "device": "rtl", "modulation": "qpsk", "digitalRecorders": 4 }], "systems": [{ "control_channels": [853475000], "type": "p25", "talkgroupsFile": "ChanList.csv", "shortName": "mpscs" }], "captureDir": "/home/pi/radio/" }

unitrunker signal

rpdale commented 5 years ago

For the fun of it, I installed op25 on this RPI4. Audio sounds weird, but it appears to be tracking it just fine?

./rx.py --args 'rtl' -N 'LNA:47' -S 2400000 -f 853.4750e6 -o 25000 -q -2 -T trunk.tsv -V -2 -U 2> stderr.2 op25

robotastic commented 5 years ago

The only thing could think of changing is the error, try -1875

Also - maybe try fsk4 for the modulation instead.

On Aug 11, 2019, at 10:34 AM, rpdale notifications@github.com wrote:

I'm showing the output of Unitrunker on the Windows 10 box that is sitting right next to my RPI. All I did was unplug the RTLSDRv3 from the RPI and plug it in to Windows. Should I change any settings?

{ "sources": [{ "center": 852362500.0, "rate": 2400000.0, "error": 1875, "gain": 30, "driver": "osmosdr", "device": "rtl", "modulation": "qpsk", "digitalRecorders": 4 }], "systems": [{ "control_channels": [853475000], "type": "p25", "talkgroupsFile": "ChanList.csv", "shortName": "mpscs" }], "captureDir": "/home/pi/radio/" }

https://user-images.githubusercontent.com/11564694/62835208-87d0dc00-bc23-11e9-9b38-c2a8775a99ae.jpg — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/robotastic/trunk-recorder/issues/253?email_source=notifications&email_token=AAA3TXD4YXM55BQVRZL5PY3QEAPN3A5CNFSM4IKYQDE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4BCA2I#issuecomment-520233065, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA3TXEUTXIOVRA26OBYAPDQEAPN3ANCNFSM4IKYQDEQ.

rpdale commented 5 years ago

robotastic is the winner :) fsk4 worked. Here are a few files:

http://skywatch.org/11/