robotastic / trunk-recorder

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

Unable to setup a system #285

Closed rpdale closed 4 years ago

rpdale commented 4 years ago

I had a SD card go bad, and of all my Pi's that are running, somehow this is the one I never backed up! So hardware is all the same, I installed a new system using the same settings in config.json and everything looks good - until the end?

config.json { "sources": [{ "center": 852362500.0, "rate": 2040000.0, "error": 1000, "gain": 48, "digitalRecorders": 5, "modulation": "fsk4", "driver": "osmosdr", "device": "rtl=1" }, { "center": 770543750.0, "rate": 1800000, "error": -32000, "gain": 48, "digitalRecorders": 3, "modulation": "fsk4", "driver": "osmosdr", "device": "rtl=2" }], "systems": [{ "control_channels": [853475000], "talkgroupsFile": "ChanList.csv", "type": "p25", "shortName": "mpscs" }], "captureDir": "/home/pi/mpscs/" }

[2019-12-22 09:27:20.448843] (info) Using Config file: ./config.json

[2019-12-22 09:27:20.449949] (info)

SYSTEMS

0 [2019-12-22 09:27:20.450171] (info)

System Number: 1

1 [2019-12-22 09:27:20.450290] (info) Short Name: mpscs [2019-12-22 09:27:20.450323] (info) System Type: p25 [2019-12-22 09:27:20.450355] (info) Control Channels: [2019-12-22 09:27:20.450468] (info) 8.53475e+08 [2019-12-22 09:27:20.450530] (info) API Key: [2019-12-22 09:27:20.450556] (info) Upload Script: [2019-12-22 09:27:20.450581] (info) Call Log: true [2019-12-22 09:27:20.450615] (info) Audio Archive: true [2019-12-22 09:27:20.450641] (info) Loading Talkgroups... [2019-12-22 09:27:20.451157] (info) Read 43 talkgroups. [2019-12-22 09:27:20.451197] (info) Talkgroups File: ChanList.csv [2019-12-22 09:27:20.451225] (info) Record Unknown Talkgroups: true [2019-12-22 09:27:20.451261] (info) Talkgroup Display Format: Id [2019-12-22 09:27:20.451292] (info) Hide Encrypted Talkgroups: false [2019-12-22 09:27:20.451318] (info) Hide Unknown Talkgroups: false [2019-12-22 09:27:20.451343] (info) Minimum Call Duration (in seconds): 0 [2019-12-22 09:27:20.451373] (info)
[2019-12-22 09:27:20.451402] (info)


SOURCES

[2019-12-22 09:27:20.451487] (info) Driver: osmosdr [2019-12-22 09:27:20.451513] (info) Center: 8.523625e+08 [2019-12-22 09:27:20.451568] (info) Rate: 2040000 [2019-12-22 09:27:20.451611] (info) Error: 1000 [2019-12-22 09:27:20.451646] (info) PPM Error: 0 [2019-12-22 09:27:20.451674] (info) Gain: 48 [2019-12-22 09:27:20.451707] (info) IF Gain: 0 [2019-12-22 09:27:20.451735] (info) BB Gain: 0 [2019-12-22 09:27:20.451762] (info) LNA Gain: 0 [2019-12-22 09:27:20.451789] (info) PGA Gain: 0 [2019-12-22 09:27:20.451816] (info) TIA Gain: 0 [2019-12-22 09:27:20.451843] (info) MIX Gain: 0 [2019-12-22 09:27:20.451870] (info) VGA1 Gain: 0 [2019-12-22 09:27:20.451897] (info) VGA2 Gain: 0 [2019-12-22 09:27:20.451924] (info) Squelch: 0 [2019-12-22 09:27:20.451951] (info) Idle Silence: false [2019-12-22 09:27:20.451975] (info) Digital Recorders: 5 [2019-12-22 09:27:20.452032] (info) Debug Recorders: 0 [2019-12-22 09:27:20.452061] (info) SigMF Recorders: 0 [2019-12-22 09:27:20.452086] (info) Analog Recorders: 0 [2019-12-22 09:27:20.452117] (info) Modulation: fsk4 [2019-12-22 09:27:20.452153] (info) Source Device: rtl=1 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: 1 Detached kernel driver Found Rafael Micro R820T tuner [R82XX] PLL not locked! [2019-12-22 09:27:21.217587] (info) SOURCE TYPE OSMOSDR (osmosdr) [2019-12-22 09:27:21.217735] (info) Setting sample rate to: 2040000 Exact sample rate is: 2040000.121593 Hz [R82XX] PLL not locked! [2019-12-22 09:27:21.333511] (info) Actual sample rate: 2040000 [2019-12-22 09:27:21.333608] (info) Tunning to 8.523635e+08 [2019-12-22 09:27:21.384455] (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-12-22 09:27:21.384554] (info) Max Freqency: 8.533825e+08 [2019-12-22 09:27:21.384618] (info) Min Freqency: 8.513425e+08 [2019-12-22 09:27:21.410881] (info) LNA Gain set to: 0 [2019-12-22 09:27:21.436965] (info) TIA Gain set to: 0 [2019-12-22 09:27:21.463198] (info) PGA Gain set to: 0 [2019-12-22 09:27:21.489711] (info) Gain set to: 48 [2019-12-22 09:27:21.489984] (info) Setting antenna to [RX] [2019-12-22 09:27:21.508100] (info) P25 Recorder Initial Rate: 510000 Resampled Rate: 30000 Initial Decimation: 4 Decimation: 17 System Rate: 30000 ARB Rate: 1 [2019-12-22 09:27:21.508285] (info) P25 Recorder Taps - initial: 309 channel: 1545 ARB: 727 Total: 2581 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-12-22 09:27:21.533654] (info) P25 Recorder Initial Rate: 510000 Resampled Rate: 30000 Initial Decimation: 4 Decimation: 17 System Rate: 30000 ARB Rate: 1 [2019-12-22 09:27:21.533796] (info) P25 Recorder Taps - initial: 309 channel: 1545 ARB: 727 Total: 2581 [2019-12-22 09:27:21.555941] (info) P25 Recorder Initial Rate: 510000 Resampled Rate: 30000 Initial Decimation: 4 Decimation: 17 System Rate: 30000 ARB Rate: 1 [2019-12-22 09:27:21.556136] (info) P25 Recorder Taps - initial: 309 channel: 1545 ARB: 727 Total: 2581 [2019-12-22 09:27:21.577810] (info) P25 Recorder Initial Rate: 510000 Resampled Rate: 30000 Initial Decimation: 4 Decimation: 17 System Rate: 30000 ARB Rate: 1 [2019-12-22 09:27:21.577988] (info) P25 Recorder Taps - initial: 309 channel: 1545 ARB: 727 Total: 2581 [2019-12-22 09:27:21.603588] (info) P25 Recorder Initial Rate: 510000 Resampled Rate: 30000 Initial Decimation: 4 Decimation: 17 System Rate: 30000 ARB Rate: 1 [2019-12-22 09:27:21.603805] (info) P25 Recorder Taps - initial: 309 channel: 1545 ARB: 727 Total: 2581 [2019-12-22 09:27:21.614893] (info)

[2019-12-22 09:27:21.615268] (info) Driver: osmosdr [2019-12-22 09:27:21.615388] (info) Center: 7.705437e+08 [2019-12-22 09:27:21.615549] (info) Rate: 1800000 [2019-12-22 09:27:21.615634] (info) Error: -32000 [2019-12-22 09:27:21.615707] (info) PPM Error: 0 [2019-12-22 09:27:21.615761] (info) Gain: 48 [2019-12-22 09:27:21.615829] (info) IF Gain: 0 [2019-12-22 09:27:21.615883] (info) BB Gain: 0 [2019-12-22 09:27:21.615938] (info) LNA Gain: 0 [2019-12-22 09:27:21.615996] (info) PGA Gain: 0 [2019-12-22 09:27:21.616051] (info) TIA Gain: 0 [2019-12-22 09:27:21.616107] (info) MIX Gain: 0 [2019-12-22 09:27:21.616159] (info) VGA1 Gain: 0 [2019-12-22 09:27:21.616213] (info) VGA2 Gain: 0 [2019-12-22 09:27:21.616264] (info) Squelch: 0 [2019-12-22 09:27:21.616316] (info) Idle Silence: false [2019-12-22 09:27:21.616365] (info) Digital Recorders: 3 [2019-12-22 09:27:21.616439] (info) Debug Recorders: 0 [2019-12-22 09:27:21.616491] (info) SigMF Recorders: 0 [2019-12-22 09:27:21.616539] (info) Analog Recorders: 0 [2019-12-22 09:27:21.616601] (info) Modulation: fsk4 [2019-12-22 09:27:21.616666] (info) Source Device: rtl=2 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 #1 Realtek RTL2838UHIDIR SN: 2 Detached kernel driver Found Rafael Micro R820T tuner [R82XX] PLL not locked! [2019-12-22 09:27:22.383604] (info) SOURCE TYPE OSMOSDR (osmosdr) [2019-12-22 09:27:22.383698] (info) Setting sample rate to: 1800000 [R82XX] PLL not locked! [2019-12-22 09:27:22.499951] (info) Actual sample rate: 1800000 [2019-12-22 09:27:22.500144] (info) Tunning to 7.705117e+08 [2019-12-22 09:27:22.552926] (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-12-22 09:27:22.553233] (info) Max Freqency: 7.714438e+08 [2019-12-22 09:27:22.553393] (info) Min Freqency: 7.696438e+08 [2019-12-22 09:27:22.579295] (info) LNA Gain set to: 0 [2019-12-22 09:27:22.605573] (info) TIA Gain set to: 0 [2019-12-22 09:27:22.631405] (info) PGA Gain set to: 0 [2019-12-22 09:27:22.656546] (info) Gain set to: 48 [2019-12-22 09:27:22.656670] (info) Setting antenna to [RX] [2019-12-22 09:27:22.669721] (info) P25 Recorder Initial Rate: 600000 Resampled Rate: 30000 Initial Decimation: 3 Decimation: 20 System Rate: 30000 ARB Rate: 1 [2019-12-22 09:27:22.669912] (info) P25 Recorder Taps - initial: 273 channel: 1819 ARB: 727 Total: 2819 [2019-12-22 09:27:22.691887] (info) P25 Recorder Initial Rate: 600000 Resampled Rate: 30000 Initial Decimation: 3 Decimation: 20 System Rate: 30000 ARB Rate: 1 [2019-12-22 09:27:22.692125] (info) P25 Recorder Taps - initial: 273 channel: 1819 ARB: 727 Total: 2819 [2019-12-22 09:27:22.715217] (info) P25 Recorder Initial Rate: 600000 Resampled Rate: 30000 Initial Decimation: 3 Decimation: 20 System Rate: 30000 ARB Rate: 1 [2019-12-22 09:27:22.715435] (info) P25 Recorder Taps - initial: 273 channel: 1819 ARB: 727 Total: 2819 [2019-12-22 09:27:22.724933] (info)

[2019-12-22 09:27:22.725114] (info)


INSTANCE

[2019-12-22 09:27:22.725314] (info) Capture Directory: /home/pi/mpscs [2019-12-22 09:27:22.725375] (info) Upload Server: [2019-12-22 09:27:22.725421] (info) Status Server: [2019-12-22 09:27:22.725448] (info) Instance Key: [2019-12-22 09:27:22.725474] (info) Instance Id: [2019-12-22 09:27:22.725500] (info) Default Mode: digital [2019-12-22 09:27:22.725528] (info) Call Timeout (seconds): 3 [2019-12-22 09:27:22.725556] (info) Log to File: false [2019-12-22 09:27:22.725584] (info) Control channel warning rate: 10 [2019-12-22 09:27:22.725613] (info) Control channel retune limit: 0 [2019-12-22 09:27:22.725642] (info) Frequency format: 0 [2019-12-22 09:27:22.725669] (info) Status as String: false [2019-12-22 09:27:22.725712] (info) [mpscs] Started with Control Channel: 8.534750e+08 [2019-12-22 09:27:22.725784] (error) Unable to setup a System to record, exiting...

gofaster commented 4 years ago

The control channel freq is above the max frequency of your source. Either increase it's bandwidth/sample rate or change the center freq.

Using device #0 Realtek RTL2838UHIDIR SN: 1 ... [2019-12-22 09:27:21.217735] (info) Setting sample rate to: 2040000 Exact sample rate is: 2040000.121593 Hz [2019-12-22 09:27:21.333608] (info) Tunning to 8.523635e+08 ... [2019-12-22 09:27:21.384554] (info) Max Freqency: 8.533825e+08
[2019-12-22 09:27:21.384618] (info) Min Freqency: 8.513425e+08 ... [2019-12-22 09:27:22.725712] (info) [mpscs] Started with Control Channel: 8.534750e+08 [2019-12-22 09:27:22.725784] (error) Unable to setup a System to record, exiting...

bctrainers commented 4 years ago

@gofaster is correct. Your RTL-SDR's frequency bandwidth isn't large enough to capture the control channel and the rest of the desired frequencies.

There are multiple 853.475 MHz control channels on the MPSC P25 system, so I am unsure which one you're trying to connect and lock to.

rpdale commented 4 years ago

Ugh - awkward :) Thanks. That must have been an old config file I backed up before I was all set. I've expanded the rate just a bit (using site 1 - 001) and all is good. Now I just have to recreate all my priorities in the talkgroup file.