robotastic / trunk-recorder

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

Unable to setup a System to record, exiting... #352

Closed gocougs05 closed 4 years ago

gocougs05 commented 4 years ago

Hi all,

I've managed to find and overcome just about every issue to get to this point. Right now, I am monitoring a P25 Phase I system in Northwestern Indiana with a single RTL-SDR dongle, running on a dedicated Ubuntu 18.04x machine. I've gotten everything compiled to date (tried it first with 17x, then 16x, then 20x, and finally found that 18x worked). Hoping I can get some help on this one. Thank you in advance!

Here is my config.json file:

{ "sources": [{ "center": 770200000, "rate": 2148000, "ppm": 69.0, "gain": 35.0, "digitalLevels": 3, "digitalRecorders": 4, "driver": "osmosdr", "device": "rtl=00000001,buflen=65536", "modulation": "fsk4" }], "systems": [{ "control_channels": [771568750,771556250,771293750], "type": "p25", "shortName": "Indiana SAFE-T (Porter)", "broadcastifyApiKey": "XXXXXXXXX", "broadcastifySystemId": "XXX", "audioArchive": false, "talkgroupsFile": "chanlist.csv" }], "broadcastifyCallsServer": "https://api.broadcastify.com/call-upload", "controlWarnRate": 5, "callTimeout": 0.75, "frequencyFormat": "mhz" }

However, when I run ./recorder it spits out the following, and then hangs until I open a new term and sudo kill the process:

:~/trunk-recorder$ sudo ./recorder linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

[2020-05-03 19:36:53.814291] (info) Using Config file: ./config.json

[2020-05-03 19:36:53.814805] (info)

 Trunk Recorder

[2020-05-03 19:36:53.814829] (info)

SYSTEMS

[2020-05-03 19:36:53.814923] (info)

System Number: 1

[2020-05-03 19:36:53.814950] (info) Short Name: Indiana SAFE-T (Porter) [2020-05-03 19:36:53.814973] (info) System Type: p25 [2020-05-03 19:36:53.814996] (info) Control Channels: [2020-05-03 19:36:53.815054] (info) 771.568750 MHz [2020-05-03 19:36:53.815163] (info) 771.556250 MHz [2020-05-03 19:36:53.815196] (info) 771.293750 MHz [2020-05-03 19:36:53.815224] (info) API Key: [2020-05-03 19:36:53.815247] (info) Broadcastify API Key: XXXXXXX [2020-05-03 19:36:53.815274] (info) Broadcastify Calls System ID: XXX [2020-05-03 19:36:53.815295] (info) Upload Script: [2020-05-03 19:36:53.815317] (info) Call Log: true [2020-05-03 19:36:53.815345] (info) Audio Archive: false [2020-05-03 19:36:53.815366] (info) Loading Talkgroups... [2020-05-03 19:36:53.816134] (info) Read 137 talkgroups. [2020-05-03 19:36:53.816182] (info) Talkgroups File: chanlist.csv [2020-05-03 19:36:53.816205] (info) Loading Unit Tags... [2020-05-03 19:36:53.816227] (info) Unit Tags File: [2020-05-03 19:36:53.816250] (info) Record Unknown Talkgroups: true [2020-05-03 19:36:53.816273] (info) Decode MDC: false [2020-05-03 19:36:53.816296] (info) Decode FSync: false [2020-05-03 19:36:53.816318] (info) Decode Star: false [2020-05-03 19:36:53.816340] (info) Decode TPS: false [2020-05-03 19:36:53.816365] (info) Talkgroup Display Format: Id [2020-05-03 19:36:53.816389] (info) Hide Encrypted Talkgroups: false [2020-05-03 19:36:53.816412] (info) Hide Unknown Talkgroups: false [2020-05-03 19:36:53.816435] (info) Minimum Call Duration (in seconds): 0 [2020-05-03 19:36:53.816460] (info)
[2020-05-03 19:36:53.816481] (info)


SOURCES

[2020-05-03 19:36:53.816526] (info) Driver: osmosdr [2020-05-03 19:36:53.816546] (info) Center: 770.200000 MHz [2020-05-03 19:36:53.816579] (info) Rate: 2148000 [2020-05-03 19:36:53.816611] (info) Error: 0 [2020-05-03 19:36:53.816634] (info) PPM Error: 69 [2020-05-03 19:36:53.816662] (info) Gain: 35 [2020-05-03 19:36:53.816690] (info) IF Gain: 0 [2020-05-03 19:36:53.816714] (info) BB Gain: 0 [2020-05-03 19:36:53.816738] (info) LNA Gain: 0 [2020-05-03 19:36:53.816761] (info) PGA Gain: 0 [2020-05-03 19:36:53.816785] (info) TIA Gain: 0 [2020-05-03 19:36:53.816809] (info) MIX Gain: 0 [2020-05-03 19:36:53.816833] (info) VGA1 Gain: 0 [2020-05-03 19:36:53.816857] (info) VGA2 Gain: 0 [2020-05-03 19:36:53.816881] (info) Squelch: 0 [2020-05-03 19:36:53.816905] (info) Idle Silence: false [2020-05-03 19:36:53.816927] (info) Digital Recorders: 4 [2020-05-03 19:36:53.816952] (info) Debug Recorder: false [2020-05-03 19:36:53.816974] (info) SigMF Recorders: 0 [2020-05-03 19:36:53.816996] (info) Analog Recorders: 0 [2020-05-03 19:36:53.817022] (info) Modulation: fsk4 [2020-05-03 19:36:53.817047] (info) Source Device: rtl=00000001,buflen=65536 gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11 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 Using 15 buffers of size 65536. Found Rafael Micro R820T tuner [R82XX] PLL not locked! [2020-05-03 19:36:54.470000] (info) SOURCE TYPE OSMOSDR (osmosdr) [2020-05-03 19:36:54.470062] (info) Setting sample rate to: 2148000 Exact sample rate is: 2148000.084500 Hz [R82XX] PLL not locked! [2020-05-03 19:36:54.595787] (info) Actual sample rate: 2148000 [2020-05-03 19:36:54.595917] (info) Tunning to 770.200000 MHz [2020-05-03 19:36:54.650650] (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 [2020-05-03 19:36:54.650781] (info) Max Freqency: 771.273956 MHz [2020-05-03 19:36:54.650880] (info) Min Freqency: 769.126044 MHz [2020-05-03 19:36:54.679205] (info) Gain set to: 33.8 [2020-05-03 19:36:54.679320] (info) Setting antenna to [RX] Nothing found [2020-05-03 19:36:54.746020] (info) P25 Recorder single-stage decimator - Initial decimated rate: 0 Second decimated rate: 0 Initial Decimation: 32 System Rate: 2148000 [2020-05-03 19:36:54.904320] (info) P25 Recorder ARB - Initial Rate: 2148000 Resampled Rate: 24134 Initial Decimation: 89 System Rate: 24000 ARB Rate: 0.994448 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. Nothing found [2020-05-03 19:36:54.909493] (info) P25 Recorder single-stage decimator - Initial decimated rate: 0 Second decimated rate: 0 Initial Decimation: 7377872706825630007 System Rate: 2148000 [2020-05-03 19:36:54.917946] (info) P25 Recorder ARB - Initial Rate: 2148000 Resampled Rate: 24134 Initial Decimation: 89 System Rate: 24000 ARB Rate: 0.994448 Nothing found [2020-05-03 19:36:54.921845] (info) P25 Recorder single-stage decimator - Initial decimated rate: 0 Second decimated rate: 0 Initial Decimation: 8387503678547823145 System Rate: 2148000 [2020-05-03 19:36:54.929701] (info) P25 Recorder ARB - Initial Rate: 2148000 Resampled Rate: 24134 Initial Decimation: 89 System Rate: 24000 ARB Rate: 0.994448 Nothing found [2020-05-03 19:36:54.935153] (info) P25 Recorder single-stage decimator - Initial decimated rate: 0 Second decimated rate: 0 Initial Decimation: 7364285307247671349 System Rate: 2148000 [2020-05-03 19:36:54.942590] (info) P25 Recorder ARB - Initial Rate: 2148000 Resampled Rate: 24134 Initial Decimation: 89 System Rate: 24000 ARB Rate: 0.994448 [2020-05-03 19:36:54.946885] (info)

[2020-05-03 19:36:54.946932] (info)


INSTANCE

[2020-05-03 19:36:54.946998] (info) Capture Directory: /home/ian/trunk-recorder [2020-05-03 19:36:54.947027] (info) Upload Server: [2020-05-03 19:36:54.947051] (info) Broadcastify Calls Server: https://api.broadcastify.com/call-upload [2020-05-03 19:36:54.947073] (info) Status Server: [2020-05-03 19:36:54.947096] (info) Instance Key: [2020-05-03 19:36:54.947118] (info) Instance Id: [2020-05-03 19:36:54.947140] (info) Broadcast Signals: false [2020-05-03 19:36:54.947164] (info) Default Mode: digital [2020-05-03 19:36:54.947191] (info) Call Timeout (seconds): 3 [2020-05-03 19:36:54.947212] (info) Log to File: false [2020-05-03 19:36:54.947238] (info) Control channel warning rate: 5 [2020-05-03 19:36:54.947260] (info) Control channel retune limit: 0 [2020-05-03 19:36:54.947281] (info) Frequency format: 1 [2020-05-03 19:36:54.947304] (info) Status as String: true [2020-05-03 19:36:54.947327] (info) Log Level: info [2020-05-03 19:36:54.947358] (info) [Indiana SAFE-T (Porter)] Started with Control Channel: 771.568750 MHz [2020-05-03 19:36:54.947408] (error) Unable to setup a System to record, exiting...

gocougs05 commented 4 years ago

Also, I am trying to scan the Indiana SAFE-T Hoosier P25 system, specifically the Porter County system.

gocougs05 commented 4 years ago

I figured out the solution to my problem in two parts: 1) My center frequency was set too low. I took all of my control frequencies, subtracted the lowest frequency from the highest frequency, halved that number (to find the center between the two). That ended up bringing my SDR within range of the control frequencies. 2) I had to set an error rate. This took some playing around. I'm still not sure how temperature will affect frequency drift, but I'll find out in a couple days.

I'm posting my config.json file for the benefit of those who are also having similar problems:

{ "sources": [{ "center": 771431250.0, "rate": 2048000, "error": 500, "gain": 25.0, "digitalLevels": 3, "digitalRecorders": 4, "driver": "osmosdr", "modulation": "qpsk" }], "systems": [{ "control_channels": [771568750,771556250,771293750], "type": "p25", "talkgroupsFile": "chanlist.csv", "shortName": "ISTP", "broadcastifyApiKey": "REAL-KEY-GOES-HERE", "broadcastifySystemId": "REAL-SID-GOES-HERE", "audioArchive": false }], "broadcastifyCallsServer": "https://api.broadcastify.com/call-upload", "controlWarnRate": 5, "callTimeout": 0.75, "frequencyFormat": "mhz", "captureDir": "audio", "logFile": true }