Trunk recorder setup (conventional analog)

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
Hello all,

I am new to linux and trunk recorder. Although there will probably be more problems of the setup in the future, I am requesting someone's example of the config.json and the format for the frequencies and info in the chanlist.csv. There are all examples for the digital trunk systems but I have not been able to find anything on conventional analog. My current road block is receiving an error of "failed parsing Config: No such node (channels)". I am guessing it is the .csv file but not sure.
 

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
I was able to get past the node error as I added a "channels" the "systems".
 

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
Thanks for the info. I have been scouring both sites. I think I have figured out my original problem but I am having another one and I believe it is because SDRPlay doesn't play nice with trunk recorder or should I say it is a more difficult setup. I am receiving more errors. Anyways, I think I have the chanlist correct now and although I am not finished adding/deleting things in it, here it is.

{
"sources": [{
"center": "1533625000",
"rate": "000000",
"gain": "0",
"squelch": "-60",
"ifGain": "20",
"ppm": 0,
"antenna": "TX/RX",
"analogRecorders": "11",
"analogLevels": "8",
"modulation": "qpsk",
"driver": "osmosdr",
"device": "Soapy,driver=sdrplay"
}],
"systems": [{
"type": "conventional",
"talkgroupsFile": "Chanlist.csv",
"channels": "151.220 151.310 151.355 151.025 151.175 151.385 153.770 154.100 154.145 154.445 151.265",
"shortName": "RVC",
"alphaTags": "true"
}],
"defaultMode": "analog",
"captureDir": "/root/trunk-build/audio_files",
"callTimeout": "3",
"logFile": "1",
"frequencyFormat": "mhz"
}
 

dave3825

Member
Premium Subscriber
Joined
Feb 17, 2003
Messages
2,677
Location
New York
Below is my airspy mini set up. The bandwidth on the mini is 3 mhz or 6 mhz and in my json I used 3mhz.

In your json, your rate has no value.

"rate": "000000",


Code:
{
    "sources": [
    { 
        "center": 852443750,
        "rate": 3000000,
        "ppm": 0.2,
        "error": 0,
        "gain": 25.4,
    "mixGain": 10,
    "lnaGain": 10,
        "squelch": -45,
        "debugRecorders": 0,
        "digitalRecorders": 2,
    "analogRecorders": 12,
    "digitalLevels" : 9,
        "analogLevels" : 16,
        "modulation" : "fsk4",
        "driver": "osmosdr",
        "device": "airspy"
    }],
    "systems": [{
        "control_channels": [ 852287500, 851362500, 851412500, 851687500 ],
    "type": "smartnet",
    "talkgroupsFile": "tg_720.csv",
    "bandplan": "800_reband",
    "shortName": "suff",
    "callLog": true,
    "talkgroupDisplayFormat": "tag_id",
    "frequencyFormat": "mhz",
    "recordUnknown": true,
    "hideUnknown": false
    }],
    "captureDir": "/var/www/html"
}
 

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
Ok, thanks. I initially had a JSON file problem when I posted. I think I am past that and just trying to get trunk recorder to play with sdrplay. I'll clean up the JSON once/if I get the sdrplay to work. One problem at a time. lol
 

dave3825

Member
Premium Subscriber
Joined
Feb 17, 2003
Messages
2,677
Location
New York
Post your json when you can. I messed with trunk recorder a while ago and had very little linux experience.
I got it running on a mixed mode analog and p25 smartnet system. I have been using OP25 Boatbod and its awesome.I am running it on a Raspberry pi. I had trunk recorder going on my laptop but now I have a new pc and am going to get it going. I also use Unitrunker with trunking recorder on windows. My goal was to have trunk recorder set up running 24/7 and be able to log in at any time.I had it set up to openmhz.com but then ended up doing an apache server which worked great .
 

ScanYak

Member
Feed Provider
Joined
Apr 22, 2009
Messages
135
Location
Eastern Washington
This is my jason file for 8 analog frequencies using 2 SDRs. For me, the center, rate and squelch were the ones I played with a lot. You can checkout node #180 on "Calls"

Code:
{
    "sources": [{
        
        
       "center": 154619000,
        "rate": 1200000,
        "ppm": -1,
        "gain": 20,
        "analogRecorders": 4,
        "squelch": -30,
        "analogLevels": 17,
        "driver": "osmosdr",
        "device": "rtl=0"

      }, {

       "center": 155870000,
        "rate": 960000,
        "ppm": -1,
        "gain": 15,
        "analogRecorders": 4,
        "squelch": -30,
        "analogLevels": 20,
        "driver": "osmosdr",
        "device": "rtl=1" 
        
        
    }],
    "systems": [{
            "type": "conventional",
            "channels": [   
             154257500,
             154310000,
             154430000,
             155032500,
             155535000,
             156000000,
             156015000,
             156210000


],

           "shortName": "yakima",
            "talkgroupsFile": "yakima8chan.csv",
            "talkgroupDisplayFormat": "id_tag",
            "alphatags": true,
            "decodeMDC": false,
            "callLog": true,
            "audioArchive": false,

            "broadcastifyApiKey": "jvnfddvdvodfzzzzzzzzzzzzzzz",
            "broadcastifySystemId": "180",

            "apiKey": "ipufvhidviduhvdxxxxxxxxxxx"
                            
 }],
        "defaultMode": "analog",
        "frequencyFormat": "mhz",

        "broadcastifyCallsServer": "https://api.broadcastify.com/call-upload",

        "uploadServer": "https://api.openmhz.com"
}
 

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
Post your json when you can. I messed with trunk recorder a while ago and had very little linux experience.
I got it running on a mixed mode analog and p25 smartnet system. I have been using OP25 Boatbod and its awesome.I am running it on a Raspberry pi. I had trunk recorder going on my laptop but now I have a new pc and am going to get it going. I also use Unitrunker with trunking recorder on windows. My goal was to have trunk recorder set up running 24/7 and be able to log in at any time.I had it set up to openmhz.com but then ended up doing an apache server which worked great.
I have my update json file below. I plan on working on it some more after I figure out my other problem. I initially had problems with it but I think at this point my problem is trunk recorder not seeing the SDRplay device. This looks like it is a common problem but I have read one or two people successfully get it to work. I am receiving this error. FATAL: SoapySDR::Device::make() no match

This is my jason file for 8 analog frequencies using 2 SDRs. For me, the center, rate and squelch were the ones I played with a lot. You can checkout node #180 on "Calls'
Thanks for the json file. It gives me idea that I am at least on the right track. My json file is below along with the output I am receiving with the error. The json file is still a work in progress.

{
"sources": [{
"center": "1533625000",
"rate": "8000000",
"gain": "0",
"squelch": "-60",
"ifGain": "20",
"bbGain": "36",
"ppm": 0,
"antenna": "TX/RX",
"analogRecorders": "11",
"analogLevels": "8",
"modulation": "qpsk",
"driver": "osmosdr",
"device": "soapy=0,driver=sdrplay"
}],
"systems": [{
"type": "conventional",
"channels": [
151220000,
151310000,
151355000,
151025000,
151175000,
151385000,
153770000,
154100000,
154145000,
154445000,
151265000
],
"shortName": "RVC",
"callLog": "true",
"alphaTags": "true",
"uploadScript": "encode-sys-0.sh"
}],
"defaultMode": "analog",
"captureDir": "/home/pi/trunk-recorder/build/audio_files",
"callTimeout": "3",
"logFile": "1",
"frequencyFormat": "mhz"
}
[2020-07-21 16:15:06.816694] (info) Using Config file: ./config.json

[2020-07-21 16:15:06.817766] (info)
-------------------------------------
Trunk Recorder
-------------------------------------

[2020-07-21 16:15:06.817827] (info)
-------------------------------------
SYSTEMS
-------------------------------------

[2020-07-21 16:15:06.817917] (info)

System Number: 1
-------------------------------------

[2020-07-21 16:15:06.817961] (info) Short Name: RVC
[2020-07-21 16:15:06.817988] (info) System Type: conventional
[2020-07-21 16:15:06.818020] (info) Conventional Channels:
[2020-07-21 16:15:06.818118] (info) 151.220000 MHz
[2020-07-21 16:15:06.818215] (info) 151.310000 MHz
[2020-07-21 16:15:06.818257] (info) 151.355000 MHz
[2020-07-21 16:15:06.818298] (info) 151.025000 MHz
[2020-07-21 16:15:06.818338] (info) 151.175000 MHz
[2020-07-21 16:15:06.818378] (info) 151.385000 MHz
[2020-07-21 16:15:06.818417] (info) 153.770000 MHz
[2020-07-21 16:15:06.818456] (info) 154.100000 MHz
[2020-07-21 16:15:06.818496] (info) 154.145000 MHz
[2020-07-21 16:15:06.818573] (info) 154.445000 MHz
[2020-07-21 16:15:06.818613] (info) 151.265000 MHz
[2020-07-21 16:15:06.818647] (info) Alpha Tags:
[2020-07-21 16:15:06.818673] (info) API Key:
[2020-07-21 16:15:06.818699] (info) Broadcastify API Key:
[2020-07-21 16:15:06.818725] (info) Broadcastify Calls System ID: 0
[2020-07-21 16:15:06.818752] (info) Upload Script:
[2020-07-21 16:15:06.818795] (info) Call Log: true
[2020-07-21 16:15:06.818828] (info) Audio Archive: true
[2020-07-21 16:15:06.818854] (info) Loading Talkgroups...
[2020-07-21 16:15:06.818878] (info) Talkgroups File:
[2020-07-21 16:15:06.818904] (info) Loading Unit Tags...
[2020-07-21 16:15:06.818929] (info) Unit Tags File:
[2020-07-21 16:15:06.818954] (info) Record Unknown Talkgroups: true
[2020-07-21 16:15:06.818979] (info) Decode MDC: false
[2020-07-21 16:15:06.819014] (info) Decode FSync: false
[2020-07-21 16:15:06.819046] (info) Decode Star: false
[2020-07-21 16:15:06.819070] (info) Decode TPS: false
[2020-07-21 16:15:06.819097] (info) Talkgroup Display Format: Id
[2020-07-21 16:15:06.819128] (info) Hide Encrypted Talkgroups: false
[2020-07-21 16:15:06.819153] (info) Hide Unknown Talkgroups: false
[2020-07-21 16:15:06.819178] (info) Minimum Call Duration (in seconds): 0
[2020-07-21 16:15:06.819208] (info)
[2020-07-21 16:15:06.819236] (info)

-------------------------------------
SOURCES
-------------------------------------

[2020-07-21 16:15:06.819330] (info) Driver: osmosdr
[2020-07-21 16:15:06.819356] (info) Center: 1533.625000 MHz
[2020-07-21 16:15:06.819396] (info) Rate: 8000000
[2020-07-21 16:15:06.819438] (info) Error: 0
[2020-07-21 16:15:06.819467] (info) PPM Error: 0
[2020-07-21 16:15:06.819500] (info) Auto gain control: false
[2020-07-21 16:15:06.819526] (info) Gain: 0
[2020-07-21 16:15:06.819558] (info) IF Gain: 20
[2020-07-21 16:15:06.819592] (info) BB Gain: 36
[2020-07-21 16:15:06.819625] (info) LNA Gain: 0
[2020-07-21 16:15:06.819653] (info) PGA Gain: 0
[2020-07-21 16:15:06.819681] (info) TIA Gain: 0
[2020-07-21 16:15:06.819709] (info) MIX Gain: 0
[2020-07-21 16:15:06.819737] (info) VGA1 Gain: 0
[2020-07-21 16:15:06.819765] (info) VGA2 Gain: 0
[2020-07-21 16:15:06.819793] (info) Squelch: -60
[2020-07-21 16:15:06.819826] (info) Idle Silence: false
[2020-07-21 16:15:06.819851] (info) Digital Recorders: 0
[2020-07-21 16:15:06.819877] (info) Debug Recorder: false
[2020-07-21 16:15:06.819902] (info) SigMF Recorders: 0
[2020-07-21 16:15:06.819927] (info) Analog Recorders: 11
[2020-07-21 16:15:06.819959] (info) Modulation: qpsk
[2020-07-21 16:15:06.820003] (info) Source Device: soapy=0,driver=sdrplay
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

FATAL: SoapySDR::Device::make() no match

Trying to fill up 1 missing channel(s) with null source(s).
This is being done to prevent the application from crashing
due to gnuradio bug #528.

[2020-07-21 16:15:06.870563] (info) SOURCE TYPE OSMOSDR (osmosdr)
[2020-07-21 16:15:06.870624] (info) Setting sample rate to: 8000000
[2020-07-21 16:15:06.870696] (info) Actual sample rate: 0
[2020-07-21 16:15:06.870731] (info) Tuning to 1533.625000 MHz
[2020-07-21 16:15:06.870770] (info) Max Frequency: 1537.593000 MHz
[2020-07-21 16:15:06.870805] (info) Min Frequency: 1529.657000 MHz
[2020-07-21 16:15:06.870850] (info) IF Gain set to: 0
[2020-07-21 16:15:06.870882] (info) BB Gain set to: 0
[2020-07-21 16:15:06.870913] (info) Auto gain control is OFF
[2020-07-21 16:15:06.870940] (info) Setting antenna to []
[2020-07-21 16:15:06.888362] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:06.889940] (info) Creating decoder sink...

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.
[2020-07-21 16:15:06.891038] (info) Decoder sink created!

[2020-07-21 16:15:06.902756] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:06.904085] (info) Creating decoder sink...

[2020-07-21 16:15:06.904817] (info) Decoder sink created!

[2020-07-21 16:15:06.917757] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:06.919158] (info) Creating decoder sink...

[2020-07-21 16:15:06.919930] (info) Decoder sink created!

[2020-07-21 16:15:06.931484] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:06.932969] (info) Creating decoder sink...

[2020-07-21 16:15:06.933751] (info) Decoder sink created!

[2020-07-21 16:15:06.947098] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:06.948687] (info) Creating decoder sink...

[2020-07-21 16:15:06.949521] (info) Decoder sink created!

[2020-07-21 16:15:06.961027] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:06.962601] (info) Creating decoder sink...

[2020-07-21 16:15:06.963513] (info) Decoder sink created!

[2020-07-21 16:15:06.976011] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:06.978085] (info) Creating decoder sink...

[2020-07-21 16:15:06.979050] (info) Decoder sink created!

[2020-07-21 16:15:06.990908] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:06.992417] (info) Creating decoder sink...

[2020-07-21 16:15:06.993249] (info) Decoder sink created!

[2020-07-21 16:15:07.005517] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:07.007337] (info) Creating decoder sink...

[2020-07-21 16:15:07.008586] (info) Decoder sink created!

[2020-07-21 16:15:07.020919] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:07.022576] (info) Creating decoder sink...

[2020-07-21 16:15:07.023445] (info) Decoder sink created!

[2020-07-21 16:15:07.035670] (info) Analog Recorder Taps - initial: 1213 channel: 2273 ARB: 757 Total: 4243
[2020-07-21 16:15:07.037603] (info) Creating decoder sink...

[2020-07-21 16:15:07.038971] (info) Decoder sink created!

[2020-07-21 16:15:07.039677] (info)
-------------------------------------


[2020-07-21 16:15:07.039847] (info)

-------------------------------------
INSTANCE
-------------------------------------

[2020-07-21 16:15:07.040027] (info) Capture Directory: /home/pi/trunk-recorder/build/audio_files
[2020-07-21 16:15:07.040087] (info) Upload Server:
[2020-07-21 16:15:07.040119] (info) Broadcastify Calls Server:
[2020-07-21 16:15:07.040146] (info) Status Server:
[2020-07-21 16:15:07.040174] (info) Instance Key:
[2020-07-21 16:15:07.040200] (info) Instance Id:
[2020-07-21 16:15:07.040226] (info) Broadcast Signals: false
[2020-07-21 16:15:07.040256] (info) Default Mode: analog
[2020-07-21 16:15:07.040290] (info) Call Timeout (seconds): 3
[2020-07-21 16:15:07.040324] (info) Log to File: true
[2020-07-21 16:15:07.040350] (info) Control channel warning rate: 10
[2020-07-21 16:15:07.040377] (info) Control channel retune limit: 0
[2020-07-21 16:15:07.040401] (info) Frequency format: 1
[2020-07-21 16:15:07.040428] (info) Status as String: true
[2020-07-21 16:15:07.040454] (info) Log Level: info
[2020-07-21 16:15:07.040714] (error) Unable to setup a System to record, exiting...
 

ScanYak

Member
Feed Provider
Joined
Apr 22, 2009
Messages
135
Location
Eastern Washington
Just an observation, your center frequency has 10 digits, reduce it to 9.
[2020-07-21 16:15:06.870624] (info) Setting sample rate to: 8000000
[2020-07-21 16:15:06.870696] (info) Actual sample rate: 0
I think you need to end up with an actual sample rate. Change it to something that works.
 

dave3825

Member
Premium Subscriber
Joined
Feb 17, 2003
Messages
2,677
Location
New York
I looked at another json on the web and it referenced to sdrplay differently than yours.
You have
"driver": "osmosdr",
"device": "soapy=0,driver=sdrplay"

The guy in this thread has,
"driver": "osmosdr",
"device": "soapy,driver=sdrplay",

Not sure which is correct.

There is also someone having the same error as you in this thread. SDRPlay in Trunk Recorder
 

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
Just an observation, your center frequency has 10 digits, reduce it to 9.

I think you need to end up with an actual sample rate. Change it to something that works.
I was throwing everything against the wall hoping that it would stick. Got it now. Thanks.

I looked at another json on the web and it referenced to sdrplay differently than yours.
You have
"driver": "osmosdr",
"device": "soapy=0,driver=sdrplay"

The guy in this thread has,
"driver": "osmosdr",
"device": "soapy,driver=sdrplay",

Not sure which is correct.

There is also someone having the same error as you in this thread. SDRPlay in Trunk Recorder
You are correct. Again, throwing everything at the wall....lol.

I only found this recently but held off installing the SDRPlay RPi image (I have a SDRPlay SDR) since it is 32 bit and I have a 64 bit RPi 4. I decided to install it. It fixed my main problem of trunk recorder not seeing my SDR. It was able to record and download recordings even if the quality was poor. While adjusting setting for better audio quality, I guess I may have messed something up as it is not recording or downloading. I am currently reinstalling everything in the hopes that that will fix it. Well, it did not. It starts the program without errors but just hangs. I have changed the gain and squelch to low and high settings to at least see if I receive static but nada. Here is what is showing. I think it is time to ask on github. I have a feeling the sdr is going to sleep or similar maybe?

It won't let me post a message this long. See below.
 

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
[2020-07-23 23:35:58.619796] (info) Using Config file: ./config.json

[2020-07-23 23:35:58.621339] (info)
-------------------------------------
Trunk Recorder
-------------------------------------

[2020-07-23 23:35:58.621538] (info)
-------------------------------------
SYSTEMS
-------------------------------------

[2020-07-23 23:35:58.621759] (info)

System Number: 1
-------------------------------------

[2020-07-23 23:35:58.621877] (info) Short Name: RVC
[2020-07-23 23:35:58.621907] (info) System Type: conventional
[2020-07-23 23:35:58.621940] (info) Conventional Channels:
[2020-07-23 23:35:58.622050] (info) 151220000 Hz
[2020-07-23 23:35:58.622144] (info) 151310000 Hz
[2020-07-23 23:35:58.622190] (info) 151355000 Hz
[2020-07-23 23:35:58.622233] (info) 151025000 Hz
[2020-07-23 23:35:58.622275] (info) 151175000 Hz
[2020-07-23 23:35:58.622316] (info) 151385000 Hz
[2020-07-23 23:35:58.622357] (info) 151265000 Hz
[2020-07-23 23:35:58.622392] (info) Alpha Tags:
[2020-07-23 23:35:58.622419] (info) API Key:
[2020-07-23 23:35:58.622445] (info) Broadcastify API Key:
[2020-07-23 23:35:58.622471] (info) Broadcastify Calls System ID: 0
[2020-07-23 23:35:58.622499] (info) Upload Script:
[2020-07-23 23:35:58.622524] (info) Call Log: true
[2020-07-23 23:35:58.622558] (info) Audio Archive: true
[2020-07-23 23:35:58.622585] (info) Loading Talkgroups...
[2020-07-23 23:35:58.622611] (info) Talkgroups File:
[2020-07-23 23:35:58.622636] (info) Loading Unit Tags...
[2020-07-23 23:35:58.622660] (info) Unit Tags File:
[2020-07-23 23:35:58.622685] (info) Record Unknown Talkgroups: true
[2020-07-23 23:35:58.622711] (info) Decode MDC: false
[2020-07-23 23:35:58.622737] (info) Decode FSync: false
[2020-07-23 23:35:58.622762] (info) Decode Star: false
[2020-07-23 23:35:58.622788] (info) Decode TPS: false
[2020-07-23 23:35:58.622817] (info) Talkgroup Display Format: Id
[2020-07-23 23:35:58.622848] (info) Hide Encrypted Talkgroups: false
[2020-07-23 23:35:58.622875] (info) Hide Unknown Talkgroups: false
[2020-07-23 23:35:58.622901] (info) Minimum Call Duration (in seconds): 0
[2020-07-23 23:35:58.622930] (info)
[2020-07-23 23:35:58.622959] (info)

-------------------------------------
SOURCES
-------------------------------------

[2020-07-23 23:35:58.623093] (info) Driver: osmosdr
[2020-07-23 23:35:58.623139] (info) Center: 151201875 Hz
[2020-07-23 23:35:58.623202] (info) Rate: 20480000
[2020-07-23 23:35:58.623263] (info) Error: 0
[2020-07-23 23:35:58.623311] (info) PPM Error: 0
[2020-07-23 23:35:58.623363] (info) Auto gain control: false
[2020-07-23 23:35:58.623408] (info) Gain: 90
[2020-07-23 23:35:58.623463] (info) IF Gain: 0
[2020-07-23 23:35:58.623511] (info) BB Gain: 0
[2020-07-23 23:35:58.623559] (info) LNA Gain: 0
[2020-07-23 23:35:58.623606] (info) PGA Gain: 0
[2020-07-23 23:35:58.623655] (info) TIA Gain: 0
[2020-07-23 23:35:58.623702] (info) MIX Gain: 0
[2020-07-23 23:35:58.623749] (info) VGA1 Gain: 0
[2020-07-23 23:35:58.623796] (info) VGA2 Gain: 0
[2020-07-23 23:35:58.623843] (info) Squelch: -120
[2020-07-23 23:35:58.623897] (info) Idle Silence: false
[2020-07-23 23:35:58.623942] (info) Digital Recorders: 0
[2020-07-23 23:35:58.623988] (info) Debug Recorder: false
[2020-07-23 23:35:58.624033] (info) SigMF Recorders: 0
[2020-07-23 23:35:58.624078] (info) Analog Recorders: 7
[2020-07-23 23:35:58.624133] (info) Modulation: qpsk
[2020-07-23 23:35:58.624217] (info) Source Device: soapy,driver=sdrplay
gr-osmosdr v0.1.4-173-g5e15af33 (0.1.5git) gnuradio 3.7.13.4
built-in source types: file fcd rtl_tcp sdrplay rfspace soapy redpitaya
[INFO] Using format CF32.
[2020-07-23 23:35:59.347760] (info) SOURCE TYPE OSMOSDR (osmosdr)
[2020-07-23 23:35:59.347939] (info) Setting sample rate to: 20480000
[2020-07-23 23:35:59.348212] (info) Actual sample rate: 20480000
[2020-07-23 23:35:59.348375] (info) Tuning to 151201875 Hz
[2020-07-23 23:35:59.348945] (info) Gain Stage: IFGR supported values: 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
[2020-07-23 23:35:59.349179] (info) Gain Stage: RFGR supported values: 0 1 2 3 4 5 6 7 8 9
[2020-07-23 23:35:59.349310] (info) Max Frequency: 161377875 Hz
[2020-07-23 23:35:59.349542] (info) Min Frequency: 141025875 Hz
[2020-07-23 23:35:59.349729] (info) Gain set to: 48
[2020-07-23 23:35:59.349890] (info) Auto gain control is ON
[2020-07-23 23:35:59.350033] (info) Setting antenna to [RX]
[2020-07-23 23:35:59.399560] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.405928] (info) Creating decoder sink...
Same
 

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
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.
[2020-07-23 23:35:59.409972] (info) Decoder sink created!

[2020-07-23 23:35:59.450940] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.454982] (info) Creating decoder sink...

[2020-07-23 23:35:59.457671] (info) Decoder sink created!

[2020-07-23 23:35:59.491024] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.492629] (info) Creating decoder sink...

[2020-07-23 23:35:59.493599] (info) Decoder sink created!

[2020-07-23 23:35:59.508866] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.510679] (info) Creating decoder sink...

[2020-07-23 23:35:59.511791] (info) Decoder sink created!

[2020-07-23 23:35:59.527784] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.529505] (info) Creating decoder sink...

[2020-07-23 23:35:59.530641] (info) Decoder sink created!

[2020-07-23 23:35:59.553793] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.555501] (info) Creating decoder sink...

[2020-07-23 23:35:59.556535] (info) Decoder sink created!

[2020-07-23 23:35:59.572018] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.573922] (info) Creating decoder sink...

[2020-07-23 23:35:59.575114] (info) Decoder sink created!

[2020-07-23 23:35:59.575685] (info)
-------------------------------------


[2020-07-23 23:35:59.575804] (info)

-------------------------------------
INSTANCE
-------------------------------------

[2020-07-23 23:35:59.575982] (info) Capture Directory: /home/pi/trunk-recorder/audio
[2020-07-23 23:35:59.576019] (info) Upload Server:
[2020-07-23 23:35:59.576049] (info) Broadcastify Calls Server:
[2020-07-23 23:35:59.576079] (info) Status Server:
[2020-07-23 23:35:59.576107] (info) Instance Key:
[2020-07-23 23:35:59.576134] (info) Instance Id:
[2020-07-23 23:35:59.576162] (info) Broadcast Signals: false
[2020-07-23 23:35:59.576193] (info) Default Mode: analog
[2020-07-23 23:35:59.576228] (info) Call Timeout (seconds): 3
[2020-07-23 23:35:59.576277] (info) Log to File: true
[2020-07-23 23:35:59.576317] (info) Control channel warning rate: 10
[2020-07-23 23:35:59.576375] (info) Control channel retune limit: 0
[2020-07-23 23:35:59.576424] (info) Frequency format: 2
[2020-07-23 23:35:59.576476] (info) Status as String: true
[2020-07-23 23:35:59.576526] (info) Log Level: info
[2020-07-23 23:35:59.576841] (info) [RVC] Monitoring Conventional Channel: 151220000 Hz Talkgroup: 1
[2020-07-23 23:35:59.593053] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.594907] (info) Creating decoder sink...

[2020-07-23 23:35:59.596032] (info) Decoder sink created!

[2020-07-23 23:35:59.597324] (info) [RVC] TG: 1 Freq: 151220000 Hz
[2020-07-23 23:35:59.597568] (info) [RVC] Monitoring Conventional Channel: 151310000 Hz Talkgroup: 2
[2020-07-23 23:35:59.616733] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.619075] (info) Creating decoder sink...

[2020-07-23 23:35:59.621330] (info) Decoder sink created!

[2020-07-23 23:35:59.622612] (info) [RVC] TG: 2 Freq: 151310000 Hz
[2020-07-23 23:35:59.622856] (info) [RVC] Monitoring Conventional Channel: 151355000 Hz Talkgroup: 3
[2020-07-23 23:35:59.640890] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.643726] (info) Creating decoder sink...

[2020-07-23 23:35:59.645339] (info) Decoder sink created!

[2020-07-23 23:35:59.646808] (info) [RVC] TG: 3 Freq: 151355000 Hz
[2020-07-23 23:35:59.647053] (info) [RVC] Monitoring Conventional Channel: 151025000 Hz Talkgroup: 4
[2020-07-23 23:35:59.664826] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.666853] (info) Creating decoder sink...

[2020-07-23 23:35:59.668024] (info) Decoder sink created!

[2020-07-23 23:35:59.669234] (info) [RVC] TG: 4 Freq: 151025000 Hz
[2020-07-23 23:35:59.669756] (info) [RVC] Monitoring Conventional Channel: 151175000 Hz Talkgroup: 5
[2020-07-23 23:35:59.692508] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.694475] (info) Creating decoder sink...

[2020-07-23 23:35:59.695672] (info) Decoder sink created!

[2020-07-23 23:35:59.696851] (info) [RVC] TG: 5 Freq: 151175000 Hz
[2020-07-23 23:35:59.697111] (info) [RVC] Monitoring Conventional Channel: 151385000 Hz Talkgroup: 6
[2020-07-23 23:35:59.716587] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.718574] (info) Creating decoder sink...

[2020-07-23 23:35:59.719819] (info) Decoder sink created!

[2020-07-23 23:35:59.721015] (info) [RVC] TG: 6 Freq: 151385000 Hz
[2020-07-23 23:35:59.721258] (info) [RVC] Monitoring Conventional Channel: 151265000 Hz Talkgroup: 7
[2020-07-23 23:35:59.739776] (info) Analog Recorder Taps - initial: 3103 channel: 2217 ARB: 739 Total: 6059
[2020-07-23 23:35:59.742443] (info) Creating decoder sink...

[2020-07-23 23:35:59.743929] (info) Decoder sink created!

[2020-07-23 23:35:59.745147] (info) [RVC] TG: 7 Freq: 151265000 Hz
[2020-07-23 23:39:20.009183] (info) Currently Active Calls: 7
[2020-07-23 23:39:20.009369] (info) TG: 1 Freq: 151220000 Hz Elapsed: 201 State: recording
[2020-07-23 23:39:20.009526] (info) [ 7 ] State: active
[2020-07-23 23:39:20.009584] (info) TG: 2 Freq: 151310000 Hz Elapsed: 201 State: recording
[2020-07-23 23:39:20.009651] (info) [ 8 ] State: active
[2020-07-23 23:39:20.009705] (info) TG: 3 Freq: 151355000 Hz Elapsed: 201 State: recording
[2020-07-23 23:39:20.009771] (info) [ 9 ] State: active
[2020-07-23 23:39:20.009824] (info) TG: 4 Freq: 151025000 Hz Elapsed: 201 State: recording
[2020-07-23 23:39:20.009888] (info) [ 10 ] State: active
[2020-07-23 23:39:20.009945] (info) TG: 5 Freq: 151175000 Hz Elapsed: 201 State: recording
[2020-07-23 23:39:20.010009] (info) [ 11 ] State: active
[2020-07-23 23:39:20.010063] (info) TG: 6 Freq: 151385000 Hz Elapsed: 201 State: recording
[2020-07-23 23:39:20.010127] (info) [ 12 ] State: active
[2020-07-23 23:39:20.010181] (info) TG: 7 Freq: 151265000 Hz Elapsed: 201 State: recording
[2020-07-23 23:39:20.010245] (info) [ 13 ] State: active
[2020-07-23 23:39:20.010296] (info) Recorders:
[2020-07-23 23:39:20.010345] (info) [ soapy,driver=sdrplay ]
[2020-07-23 23:39:20.010396] (info) [ A0 ] State: inactive
[2020-07-23 23:39:20.010446] (info) [ A1 ] State: inactive
[2020-07-23 23:39:20.010496] (info) [ A2 ] State: inactive
[2020-07-23 23:39:20.010545] (info) [ A3 ] State: inactive
[2020-07-23 23:39:20.010594] (info) [ A4 ] State: inactive
[2020-07-23 23:39:20.010643] (info) [ A5 ] State: inactive
[2020-07-23 23:39:20.010723] (info) [ A6 ] State: inactive
[2020-07-23 23:39:20.010772] (info) [ A7 ] State: active
[2020-07-23 23:39:20.010820] (info) [ A8 ] State: active
[2020-07-23 23:39:20.010868] (info) [ A9 ] State: active
[2020-07-23 23:39:20.010915] (info) [ A10 ] State: active
[2020-07-23 23:39:20.010962] (info) [ A11 ] State: active
[2020-07-23 23:39:20.011011] (info) [ A12 ] State: active
[2020-07-23 23:39:20.011059] (info) [ A13 ] State: active
[2020-07-23 23:42:41.006199] (info) Currently Active Calls: 7
[2020-07-23 23:42:41.006548] (info) TG: 1 Freq: 151220000 Hz Elapsed: 402 State: recording
[2020-07-23 23:42:41.006774] (info) [ 7 ] State: active
[2020-07-23 23:42:41.007056] (info) TG: 2 Freq: 151310000 Hz Elapsed: 402 State: recording
[2020-07-23 23:42:41.007245] (info) [ 8 ] State: active
[2020-07-23 23:42:41.007521] (info) TG: 3 Freq: 151355000 Hz Elapsed: 402 State: recording
[2020-07-23 23:42:41.007705] (info) [ 9 ] State: active
[2020-07-23 23:42:41.007982] (info) TG: 4 Freq: 151025000 Hz Elapsed: 402 State: recording
[2020-07-23 23:42:41.008164] (info) [ 10 ] State: active
[2020-07-23 23:42:41.008438] (info) TG: 5 Freq: 151175000 Hz Elapsed: 402 State: recording
[2020-07-23 23:42:41.008621] (info) [ 11 ] State: active
[2020-07-23 23:42:41.008895] (info) TG: 6 Freq: 151385000 Hz Elapsed: 402 State: recording
[2020-07-23 23:42:41.009078] (info) [ 12 ] State: active
[2020-07-23 23:42:41.009350] (info) TG: 7 Freq: 151265000 Hz Elapsed: 402 State: recording
[2020-07-23 23:42:41.009586] (info) [ 13 ] State: active
[2020-07-23 23:42:41.009864] (info) Recorders:
[2020-07-23 23:42:41.010032] (info) [ soapy,driver=sdrplay ]
[2020-07-23 23:42:41.010200] (info) [ A0 ] State: inactive
[2020-07-23 23:42:41.010365] (info) [ A1 ] State: inactive
[2020-07-23 23:42:41.010530] (info) [ A2 ] State: inactive
[2020-07-23 23:42:41.010694] (info) [ A3 ] State: inactive
[2020-07-23 23:42:41.010858] (info) [ A4 ] State: inactive
[2020-07-23 23:42:41.011024] (info) [ A5 ] State: inactive
[2020-07-23 23:42:41.011187] (info) [ A6 ] State: inactive
[2020-07-23 23:42:41.011566] (info) [ A7 ] State: active
[2020-07-23 23:42:41.012011] (info) [ A8 ] State: active
[2020-07-23 23:42:41.012253] (info) [ A9 ] State: active
[2020-07-23 23:42:41.012424] (info) [ A10 ] State: active
[2020-07-23 23:42:41.012593] (info) [ A11 ] State: active
[2020-07-23 23:42:41.012762] (info) [ A12 ] State: active
[2020-07-23 23:42:41.012931] (info) [ A13 ] State: active
[2020-07-23 23:46:02.003865] (info) Currently Active Calls: 7
[2020-07-23 23:46:02.004047] (info) TG: 1 Freq: 151220000 Hz Elapsed: 603 State: recording
[2020-07-23 23:46:02.004142] (info) [ 7 ] State: active
[2020-07-23 23:46:02.004204] (info) TG: 2 Freq: 151310000 Hz Elapsed: 603 State: recording
[2020-07-23 23:46:02.004273] (info) [ 8 ] State: active
[2020-07-23 23:46:02.004327] (info) TG: 3 Freq: 151355000 Hz Elapsed: 603 State: recording
[2020-07-23 23:46:02.004393] (info) [ 9 ] State: active
[2020-07-23 23:46:02.004446] (info) TG: 4 Freq: 151025000 Hz Elapsed: 603 State: recording
[2020-07-23 23:46:02.004510] (info) [ 10 ] State: active
[2020-07-23 23:46:02.004563] (info) TG: 5 Freq: 151175000 Hz Elapsed: 603 State: recording
[2020-07-23 23:46:02.004626] (info) [ 11 ] State: active
[2020-07-23 23:46:02.004679] (info) TG: 6 Freq: 151385000 Hz Elapsed: 603 State: recording
[2020-07-23 23:46:02.004743] (info) [ 12 ] State: active
[2020-07-23 23:46:02.004800] (info) TG: 7 Freq: 151265000 Hz Elapsed: 603 State: recording
[2020-07-23 23:46:02.004869] (info) [ 13 ] State: active
[2020-07-23 23:46:02.004921] (info) Recorders:
[2020-07-23 23:46:02.004970] (info) [ soapy,driver=sdrplay ]
[2020-07-23 23:46:02.005024] (info) [ A0 ] State: inactive
[2020-07-23 23:46:02.005076] (info) [ A1 ] State: inactive
[2020-07-23 23:46:02.005125] (info) [ A2 ] State: inactive
[2020-07-23 23:46:02.005175] (info) [ A3 ] State: inactive
[2020-07-23 23:46:02.005226] (info) [ A4 ] State: inactive
[2020-07-23 23:46:02.005275] (info) [ A5 ] State: inactive
[2020-07-23 23:46:02.005325] (info) [ A6 ] State: inactive
[2020-07-23 23:46:02.005375] (info) [ A7 ] State: active
[2020-07-23 23:46:02.005424] (info) [ A8 ] State: active
[2020-07-23 23:46:02.005474] (info) [ A9 ] State: active
[2020-07-23 23:46:02.005524] (info) [ A10 ] State: active
[2020-07-23 23:46:02.005618] (info) [ A11 ] State: active
[2020-07-23 23:46:02.005667] (info) [ A12 ] State: active
[2020-07-23 23:46:02.005716] (info) [ A13 ] State: active
 

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
Ok, it looks like it is working for the most part. I still have to some more testing and tweaking with it. It seems like it is not recording some of the more distant repeaters. I'll have to play with the gain and squelch some more and hopefully that will help. I noticed that it is showing a WAV file with the recording and a WAV file with 0 bits in it. I don't know if that is normal so i'll have to look into that.

Anyway, thanks for all the help guys.
 

aliby19

Member
Feed Provider
Joined
Mar 10, 2005
Messages
139
Location
McCordsville, IN
@Kingscup Could you share your working config.json? I recently got an SDRPlay RSP2 and am having terrible trouble getting it working with trunk-recorder.

I ended up downloading SDRPlay's 32 bit raspberry pi image and flashing it to rule out any compile/build issues. I can get everything to come up in GQRX just fine, but as soon as I configure and start trunk-recorder, I get "Control Channel Message Decode Rate: 0.666667/sec, count: 2" errors.

Thanks!
 

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
@Kingscup Could you share your working config.json? I recently got an SDRPlay RSP2 and am having terrible trouble getting it working with trunk-recorder.
I have stated that I was able to get trunk recorder to work and that is the case but with limited success. I still have multiple problems. I am close to throwing this thing out.

It will only record the closest repeater. I am guessing because I probably have the wrong gain, squelch, ppm and probably the rate. It will record transmissions with 5 bars but not 4 bars or less with good audio strength. Obviously, I have looked around for a step by guide for a new person but I have not been able to find one. GQRX doesn't have gain settings on it for the SDRplay. It seems it has 2. One is called LNA something and something else I can't remember.

I bought the SDRplay thinking it could cover frequencies approximately 4 MHz apart but when I put in the frequencies, on the upper bandwidth, I am receiving an error stating it cannot go forward (or something like that) and it is exiting. There might be one or two other problems but I am too tired to remember.

Anyways, here is the json file. Good luck.

{
"sources": [{
"center": "151276875",
"rate": "500000",
"gain": "38",
"squelch": "-36",
"ppm": "0",
"analogRecorders": "4",
"analogLevels": "7",
"modulation": "qpsk",
"driver": "osmosdr",
"device": "soapy,driver=sdrplay"
}],
"systems": [{
"type": "conventional",
"talkgroupsFile": "Chanlist.csv",
"channels": [
151220000,
151310000,
151175000,
151385000
],
"shortName": "RVC",
"alphaTags": "true"
}],
"defaultMode": "analog",
"captureDir": "/home/pi/trunk-recorder/audio",
"callTimeout": "3",
"logFile": "1",
"frequencyFormat": "hz"
}
 
Last edited:

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
Of course this happens. I decided to look at GQRX one more time before bed. I had the feed on and notice GQRX wasn't picking up distance stations. When I saw the scanner broadcasting but I was not hearing it on GQRX, I played with the gain and squelch and it started working. I hope it stays that way especially in the daylight. Not sure I did not think of that before.
 
Last edited:

Kingscup

Member
Feed Provider
Joined
Jun 1, 2006
Messages
454
Just an update to anyone that cares. I have finally given up on using SDRplay with Trunk Recorder. I was able to get it working but only at 2 MHz of spectrum. If I had increased the sample rate, I would receive a segmentation fault and the program would stop. I could not get around that as I needed 3-4 MHz of spectrum to cover the frequencies I needed. In retrospect, having it fail was probably a good thing in my situation. I had 2 blocks of frequencies (151 and 154) that I needed to cover. I bought 2 RTLs to cover each block. Luckily, all the frequencies within each block are within 1 MHz of each other. This allowed me to reduce the sample rate which in turn allowed me to add more frequencies to trunk recorder as the RPI did not need to see a larger swath of spectrum. It can currently handle 11 frequencies. If I used the SDRplay, I am guessing it could handle 6-8?

I do recommend the SDRplay for its intended purpose of listening to various frequencies. It is a remarkable product. It is just doesn't play well with trunk recorder.
 

lwvmobile

Member
Joined
Apr 26, 2020
Messages
116
Location
Lafayette County, FL
If you are interested in scanning through a ton of analog channels and and recording them, you should be able to do that with rtl_fm, sox, aplay, and a not so simple script. You might try something like this. I had a similar script for another project, but happened upon your post here and thought I might weigh in on it. Using rtl_fm like this, you can jump to all the frequencies you need to, it won't try to listen to only things in its spectrum, it will move itself to the frequencies in scan mode.

This example works well with NBFM.
Code:
rtl_fm -d 0 -A fast -s 12k -f 155.07M -f 154.9875M -g 36 -l 100 | tee >(aplay -t raw -f S16_LE -r 6250 -c 2) >(sox --norm=-0 -t raw -r 12k -e signed -b 16 -c 1 -V1 - "`date +%Y%m%d-%H-%M-%S-`.wav" silence 1 0.5 1% 1 0.5 1% : newfile : restart;)
use the -f switch to specify all the channels you want to listen to. (After rtl_fm and before | tee)
use -g to set the gain level
use -l 100 to set the squelch level (can be finicky to find the right value, keep trying)

The rest of the code will tee the signal out to aplay to play it back for you and also tee it into sox to record a wav file with a date/time stamp.

Hope you or somebody will find this useful for conventional analog stuff.
 
Top