robotastic / trunk-recorder

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

Can't get this working in Seattle with HackRF #83

Closed timothyclemansinsea closed 7 years ago

timothyclemansinsea commented 7 years ago

I'm so lost. I have no clue what I'm doing. I used kalibrate-hackrf to get the ppm but don't know how to figure out the gain values. I tried the ones from another HackRF issue on here.

{
    "sources": [{
        "center": 853000000.0,
        "rate": 10000000,
        "squelch": -50,
        "error": 0,
        "gain": 14,
        "ppm": -29,
        "ifGain": 16,
        "bbGain": 42,
        "antenna": "TX/RX",
        "analogRecorders": 2,
        "driver": "osmosdr"
    }],
    "systems": [{
        "control_channels": [853175000,851412500,853675000,854362500],
        "type": "smartnet",
        "talkgroupsFile": "ChanList.csv"
    }],
    "captureDir": "/home/timclemans/audio/"
}

Output of the recorder:

linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

[2017-01-09 23:33:13.093549] [0xb3969800] [info]    System Type: smartnet
[2017-01-09 23:33:13.093702] [0xb3969800] [info]    Control Channels: 
[2017-01-09 23:33:13.093807] [0xb3969800] [info]    8.53175e+08 
[2017-01-09 23:33:13.093843] [0xb3969800] [info]    8.51412e+08 
[2017-01-09 23:33:13.093877] [0xb3969800] [info]    8.53675e+08 
[2017-01-09 23:33:13.093910] [0xb3969800] [info]    8.54362e+08 
[2017-01-09 23:33:13.093924] [0xb3969800] [info]    
[2017-01-09 23:33:13.093940] [0xb3969800] [info]    API Key: 
[2017-01-09 23:33:13.093960] [0xb3969800] [info]    Short Name: sys_1
[2017-01-09 23:33:13.093975] [0xb3969800] [info]    Upload Script: 
[2017-01-09 23:33:13.093990] [0xb3969800] [info]    Talkgroups File: ChanList.csv
[2017-01-09 23:33:13.094043] [0xb3969800] [info]    Capture Directory: /home/timclemans/audio
[2017-01-09 23:33:13.094063] [0xb3969800] [info]    Config Directory: /home/timclemans/radio/trunk-recorder
[2017-01-09 23:33:13.094079] [0xb3969800] [info]    Upload Server: encode-upload.sh
[2017-01-09 23:33:13.094094] [0xb3969800] [info]    Default Mode: digital
[2017-01-09 23:33:13.094110] [0xb3969800] [info]    Call Timeout (seconds): 3
[2017-01-09 23:33:13.094200] [0xb3969800] [info]    Center: 8.53e+08
[2017-01-09 23:33:13.094228] [0xb3969800] [info]    Rate: 1e+07
[2017-01-09 23:33:13.094254] [0xb3969800] [info]    Error: 0
[2017-01-09 23:33:13.094281] [0xb3969800] [info]    PPM Error: -29
[2017-01-09 23:33:13.094300] [0xb3969800] [info]    Gain: 14
[2017-01-09 23:33:13.094319] [0xb3969800] [info]    IF Gain: 16
[2017-01-09 23:33:13.094338] [0xb3969800] [info]    BB Gain: 42
[2017-01-09 23:33:13.094352] [0xb3969800] [info]    LNA Gain: 0
[2017-01-09 23:33:13.094367] [0xb3969800] [info]    MIX Gain: 0
[2017-01-09 23:33:13.094392] [0xb3969800] [info]    Squelch: -50
[2017-01-09 23:33:13.094414] [0xb3969800] [info]    Idle Silence: false
[2017-01-09 23:33:13.094430] [0xb3969800] [info]    Digital Recorders: 0
[2017-01-09 23:33:13.094445] [0xb3969800] [info]    Debug Recorders: 0
[2017-01-09 23:33:13.094465] [0xb3969800] [info]    Analog Recorders: 2
[2017-01-09 23:33:13.094480] [0xb3969800] [info]    Driver: osmosdr
[2017-01-09 23:33:13.094499] [0xb3969800] [info]    Source Device not specified
[2017-01-09 23:33:13.874444] [0xb3969800] [info]    SOURCE TYPE OSMOSDR (osmosdr)
[2017-01-09 23:33:13.874491] [0xb3969800] [info]    Setting sample rate to: 1e+07
[2017-01-09 23:33:13.876791] [0xb3969800] [info]    Actual sample rate: 1e+07
[2017-01-09 23:33:13.876836] [0xb3969800] [info]    Tunning to 8.53e+08hz
[2017-01-09 23:33:13.877562] [0xb3969800] [info]    Max HZ: 8.58e+08
[2017-01-09 23:33:13.877589] [0xb3969800] [info]    Min HZ: 8.48e+08
Using Volk machine: sse4_2_32_orc
decim: 104 channel rate: 16000 pre_channel_rate: 32051 divider: 3
decim: 104 channel rate: 16000 pre_channel_rate: 32051 divider: 3
[2017-01-09 23:33:14.683498] [0xb3969800] [info]    Loading Talkgroups...

[2017-01-09 23:33:14.689708] [0xb3969800] [info]    Read 524 talkgroups.
[2017-01-09 23:33:14.689763] [0xb3969800] [info]    Control Channel: 8.53175e+08
SmartNet Trunking - SysId: 0
Control channel offset: 174976
Control channel: 8.53175e+08
Decim: 925
Samples per symbol: 3.003
Number of LPF taps: 6023
[2017-01-09 23:33:20.109731] [0xb3969800] [error]   Retuning to Control Channel: 8.51412e+08
[2017-01-09 23:33:20.109769] [0xb3969800] [info]    Min: 8.48e+08 Max: 8.58e+08
Offset set to: -1587500 Freq: 8.51412e+08
[2017-01-09 23:33:20.109860] [0xb3969800] [info]    Finished retuning
[2017-01-09 23:33:20.109888] [0xb3969800] [error]       Control Channel Message Decode Rate: 0/sec, count:  0
[2017-01-09 23:33:23.112547] [0xb3969800] [error]   Retuning to Control Channel: 8.53675e+08
[2017-01-09 23:33:23.112583] [0xb3969800] [info]    Min: 8.48e+08 Max: 8.58e+08
Offset set to: 675000 Freq: 8.53675e+08
[2017-01-09 23:33:23.112665] [0xb3969800] [info]    Finished retuning
[2017-01-09 23:33:23.112686] [0xb3969800] [error]       Control Channel Message Decode Rate: 0/sec, count:  0
[2017-01-09 23:33:26.115192] [0xb3969800] [error]   Retuning to Control Channel: 8.54362e+08
[2017-01-09 23:33:26.115230] [0xb3969800] [info]    Min: 8.48e+08 Max: 8.58e+08
Offset set to: 1362500 Freq: 8.54362e+08
[2017-01-09 23:33:26.115317] [0xb3969800] [info]    Finished retuning
[2017-01-09 23:33:26.115338] [0xb3969800] [error]       Control Channel Message Decode Rate: 0/sec, count:  0
[2017-01-09 23:33:29.117772] [0xb3969800] [error]   Retuning to Control Channel: 8.53175e+08
[2017-01-09 23:33:29.117814] [0xb3969800] [info]    Min: 8.48e+08 Max: 8.58e+08
Offset set to: 175000 Freq: 8.53175e+08
[2017-01-09 23:33:29.117902] [0xb3969800] [info]    Finished retuning
[2017-01-09 23:33:29.117927] [0xb3969800] [error]       Control Channel Message Decode Rate: 0/sec, count:  0
[2017-01-09 23:33:32.120814] [0xb3969800] [error]   Retuning to Control Channel: 8.51412e+08
[2017-01-09 23:33:32.120850] [0xb3969800] [info]    Min: 8.48e+08 Max: 8.58e+08
Offset set to: -1587500 Freq: 8.51412e+08
[2017-01-09 23:33:32.120936] [0xb3969800] [info]    Finished retuning
[2017-01-09 23:33:32.120957] [0xb3969800] [error]       Control Channel Message Decode Rate: 0/sec, count:  0
[2017-01-09 23:33:35.123688] [0xb3969800] [error]   Retuning to Control Channel: 8.53675e+08
[2017-01-09 23:33:35.123725] [0xb3969800] [info]    Min: 8.48e+08 Max: 8.58e+08
Offset set to: 675000 Freq: 8.53675e+08
[2017-01-09 23:33:35.123820] [0xb3969800] [info]    Finished retuning
[2017-01-09 23:33:35.123842] [0xb3969800] [error]       Control Channel Message Decode Rate: 0/sec, count:  0
[2017-01-09 23:33:38.127046] [0xb3969800] [error]   Retuning to Control Channel: 8.54362e+08
[2017-01-09 23:33:38.127083] [0xb3969800] [info]    Min: 8.48e+08 Max: 8.58e+08
Offset set to: 1362500 Freq: 8.54362e+08
[2017-01-09 23:33:38.127171] [0xb3969800] [info]    Finished retuning
[2017-01-09 23:33:38.127192] [0xb3969800] [error]       Control Channel Message Decode Rate: 0/sec, count:  0
[2017-01-09 23:33:41.130939] [0xb3969800] [error]   Retuning to Control Channel: 8.53175e+08
[2017-01-09 23:33:41.130976] [0xb3969800] [info]    Min: 8.48e+08 Max: 8.58e+08
Offset set to: 175000 Freq: 8.53175e+08
[2017-01-09 23:33:41.131054] [0xb3969800] [info]    Finished retuning
[2017-01-09 23:33:41.131075] [0xb3969800] [error]       Control Channel Message Decode Rate: 0/sec, count:  0
[2017-01-09 23:33:44.133587] [0xb3969800] [error]   Retuning to Control Channel: 8.51412e+08
[2017-01-09 23:33:44.133623] [0xb3969800] [info]    Min: 8.48e+08 Max: 8.58e+08
Offset set to: -1587500 Freq: 8.51412e+08
[2017-01-09 23:33:44.133752] [0xb3969800] [info]    Finished retuning
[2017-01-09 23:33:44.133773] [0xb3969800] [error]       Control Channel Message Decode Rate: 0/sec, count:  0

 Signal caught!
[2017-01-09 23:33:46.880177] [0xb3969800] [info]    stopping flow graph
robotastic commented 7 years ago

Sorry about that - I have started to put together some better docs. Here is the start: https://github.com/robotastic/trunk-recorder/wiki/Tuning-in-a-System