Trunk Recorder not reading talkgroups file

DiverCTH

Newbie
Feed Provider
Joined
Dec 14, 2013
Messages
6
Location
Cleveland, TN
After a few days of experimentation I finally have Trunk Recorder running and recording audio. Unfortunately it's not seeing the talkgroups.csv file I created, nor is it reading the CSV I downloaded from the RR Database.

Before I apply for my ingest node API key, I'd like to be able to use the priority field in the talkgroups.csv file to lock out all but a few of the talkgroups in my system so I don't overlap with a friend's feed.

Hardware:
Raspberry Pi 4B 8GB
NooElec NESDR Smart

Software:
Latest Broadcastify Raspberry PI image (freshly reimaged)

Attached are my config.json file and a truncated talkgroups.csv file in the format specified in Trunk Recorder's Config.md file on Github.

Any help would be appreciated.
 

Attachments

  • config.json.txt
    524 bytes · Views: 15
  • talkgroups.csv.txt
    777 bytes · Views: 17

dave3825

* * * * * * * * * * * *
Premium Subscriber
Joined
Feb 17, 2003
Messages
7,662
Location
Suffolk County NY
Are you getting any errors? When starting the program, does it say anything like this?

[2019-08-04 17:54:57.297011] (info) Loading Talkgroups...
[2019-08-04 17:54:57.297138] (info) Read 19 talkgroups.
[2019-08-04 17:54:57.297161] (info) Talkgroups File: ChanList.csv
[2019-08-04 17:54:57.297178] (info) Record Unknown Talkgroups: true
[2019-08-04 17:54:57.297196] (info) Talkgroup Display Format: Id
[2019-08-04 17:54:57.297215] (info) Hide Encrypted Talkgroups: false
[2019-08-04 17:54:57.297231] (info) Hide Unknown Talkgroups: false
 

DiverCTH

Newbie
Feed Provider
Joined
Dec 14, 2013
Messages
6
Location
Cleveland, TN
AHA! I didn't start Tail fast enough to see that portion of the logfile! Annoyingly though, those lines are for encrypted talkgroups that haven't been seen yet.

Here's the pertinent entries from the log:

[2023-10-27 21:29:24.851851] (info) Loading Talkgroups...
[2023-10-27 21:29:24.851984] (error) Malformed talkgroup entry at line 1.
[2023-10-27 21:29:24.856982] (error) Malformed talkgroup entry at line 413.
[2023-10-27 21:29:24.857041] (error) Malformed talkgroup entry at line 414.
[2023-10-27 21:29:24.857092] (error) Malformed talkgroup entry at line 415.
[2023-10-27 21:29:24.857142] (error) Malformed talkgroup entry at line 416.
[2023-10-27 21:29:24.857523] (error) Warning: skipped 5 of 444 talkgroup entries! Invalid format?
[2023-10-27 21:29:24.857561] (error) The format is very particular. See GitHub - robotastic/trunk-recorder: Records calls from a Trunked Radio System (P25 & SmartNet) for example input.
[2023-10-27 21:29:24.857609] (info) Talkgroups File: talkgroups.csv
[2023-10-27 21:29:24.857646] (info) Loading Unit Tags...
[2023-10-27 21:29:24.857682] (info) Unit Tags File:
[2023-10-27 21:29:24.857717] (info) Record Unknown Talkgroups: true
[2023-10-27 21:29:24.857754] (info) Decode MDC: false
[2023-10-27 21:29:24.857789] (info) Decode FSync: false
[2023-10-27 21:29:24.857825] (info) Decode Star: false
[2023-10-27 21:29:24.857860] (info) Decode TPS: false
[2023-10-27 21:29:24.857899] (info) Talkgroup Display Format: Id
[2023-10-27 21:29:24.857939] (info) Hide Encrypted Talkgroups: false
[2023-10-27 21:29:24.857976] (info) Hide Unknown Talkgroups: false
[2023-10-27 21:29:24.858012] (info) Minimum Call Duration (in seconds): 0
[2023-10-27 21:29:24.858054] (info)
[2023-10-27 21:29:24.858097] (info)
 
Last edited:

DiverCTH

Newbie
Feed Provider
Joined
Dec 14, 2013
Messages
6
Location
Cleveland, TN
So now the
AHA! I didn't start Tail fast enough to see that portion of the logfile! Annoyingly though, those lines are for encrypted talkgroups that haven't been seen yet.

Here's the pertinent entries from the log:

[2023-10-27 21:29:24.851851] (info) Loading Talkgroups...
[2023-10-27 21:29:24.851984] (error) Malformed talkgroup entry at line 1.
[2023-10-27 21:29:24.856982] (error) Malformed talkgroup entry at line 413.
[2023-10-27 21:29:24.857041] (error) Malformed talkgroup entry at line 414.
[2023-10-27 21:29:24.857092] (error) Malformed talkgroup entry at line 415.
[2023-10-27 21:29:24.857142] (error) Malformed talkgroup entry at line 416.
[2023-10-27 21:29:24.857523] (error) Warning: skipped 5 of 444 talkgroup entries! Invalid format?
[2023-10-27 21:29:24.857561] (error) The format is very particular. See GitHub - robotastic/trunk-recorder: Records calls from a Trunked Radio System (P25 & SmartNet) for example input.
[2023-10-27 21:29:24.857609] (info) Talkgroups File: talkgroups.csv
[2023-10-27 21:29:24.857646] (info) Loading Unit Tags...
[2023-10-27 21:29:24.857682] (info) Unit Tags File:
[2023-10-27 21:29:24.857717] (info) Record Unknown Talkgroups: true
[2023-10-27 21:29:24.857754] (info) Decode MDC: false
[2023-10-27 21:29:24.857789] (info) Decode FSync: false
[2023-10-27 21:29:24.857825] (info) Decode Star: false
[2023-10-27 21:29:24.857860] (info) Decode TPS: false
[2023-10-27 21:29:24.857899] (info) Talkgroup Display Format: Id
[2023-10-27 21:29:24.857939] (info) Hide Encrypted Talkgroups: false
[2023-10-27 21:29:24.857976] (info) Hide Unknown Talkgroups: false
[2023-10-27 21:29:24.858012] (info) Minimum Call Duration (in seconds): 0
[2023-10-27 21:29:24.858054] (info)
[2023-10-27 21:29:24.858097] (info)
P.S. Those malformed line entries are for encrypted talkgroups that are rarely active on my site.

Here's the updated config.json file blocking encrypted talkgroups from the log and enabling the tag ID in the log. I still don't know why Trunk Recorder isn't including the tag in the [recording].json file, though. Also, it looks like the priority field is being ignored since I'm getting Car-to-Car traffic that I can't upload.
 

Attachments

  • config.json.txt
    587 bytes · Views: 13

dave3825

* * * * * * * * * * * *
Premium Subscriber
Joined
Feb 17, 2003
Messages
7,662
Location
Suffolk County NY
Something is off with the formatting in the csv. I remember having to save it a certain way. I will look thru my stuff tonight to see if I can find it. In the mean time I would focus more on getting the tg to load and then later down the line with whitelist or blacklist the items
 

rdmcvicar

Member
Premium Subscriber
Joined
Aug 21, 2001
Messages
33
Location
Middleton, WI
The talkgroups.csv (attached as talkgroups.csv.txt) file in the first post includes a comma at the end of each line. I assume that might be in an attempt to tell trunk-recorder that you know the NAC column is optional. In my own trunk-recorder configs, I don't include the comma at the end of the line, and don't get an error. Adding a comma to the end of a line for me will cause the "Malformed talkgroup entry at line" error.

I realize there are a couple few/components to the issue being described here, but I'm slowly wading in with this one thing first.
 

DiverCTH

Newbie
Feed Provider
Joined
Dec 14, 2013
Messages
6
Location
Cleveland, TN
Good thought. I tried deleting the trailing , from some of the unwanted talkgroups, but there was no change after restarting.

At this point I think the best solution is to delete the talkgroups I don't want from the file and worry about the priority further down the road.
 
Top