robotastic / trunk-recorder

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

RPI setup not capturing or creating dir for audio to shortName directory #881

Open jeffbarclay opened 7 months ago

jeffbarclay commented 7 months ago

Have RPI setup and capturing talk groups but not saving or creating the directory (shortName) - I do see wav files temporally created in a linix temp folder

captureDir is set but never gets created or populated?

oncluding Recorded Call - Last Update: 8s Recorder last write:3.93193 Call Elapsed: 9 [2023-12-01 10:56:54.006074] (info) [montgomery] 4C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.387500 MHz Stopping P25 Recorder Num [1] TDMA: false Slot: 0 Hz Error: 53 [2023-12-01 10:56:54.008466] (info) [montgomery] 4C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.387500 MHz - Transmission src: 63 pos: 0.00 length: 1.08 errors: 424 spikes: 20 O[2023-12-01 10:56:54.019488] (error) [montgomery] Retuning to Control Channel: 853.937500 MHz [2023-12-01 10:56:54.020027] (info) - System Source 0 - Min Freq: 848.550000 MHz Max Freq: 858.450000 MHz [2023-12-01 10:56:54.020776] (error) [montgomery] Control Channel Message Decode Rate: 1/sec, count: 3 sox FAIL formats: can't open output file/home/pi/trunk-build/montgomery/2023/12/1/4000-1701446205_853387500.0-call_4.wav': No such file or directory [2023-12-01 10:56:54.036918] (info) Combining: /dev/shm/montgomery/4000-1701446205_853387500.wav into: ~/trunk-build/montgomery/2023/12/1/4000-1701446205_853387500.0-call_4.wav [2023-12-01 10:56:54.037067] (info) sox /dev/shm/montgomery/4000-1701446205_853387500.wav ~/trunk-build/montgomery/2023/12/1/4000-1701446205_853387500.0-call_4.wav [2023-12-01 10:56:54.037112] (error) Failed to combine recordings, see above error. Make sure you have sox and fdkaac installed. Osox FAIL formats: can't open input file /home/pi/trunk-build/montgomery/2023/12/1/4000-1701446205_853387500.0-call_4.wav': No such file or directory OERROR: unsupported input file [2023-12-01 10:56:54.072590] (error) Failed to convert call recording, see above error. Make sure you have sox and fdkaac installed. OOOOOOOOOO[2023-12-01 10:56:54.421035] (error) P25 Parse error, s: s0: 0 s1: 182 shift: 0 nac: 182 type: 65535 Len: 0 OOOOOOOOOOOOOOOOOOOO

jeffbarclay commented 7 months ago

config.json: `
{ "ver": 2, "captureDir":"~/trunk-build", "sources": [{ "center": 853500000, "rate": 10000000, "ifGain": 7, "mixGain": 7, "lnaGain": 7, "digitalRecorders": 6, "driver": "osmosdr", "device": "airspy=0x26A464DC284F2C93" }], "systems": [{ "control_channels": [853687500, 853862500, 853887500, 853937500], "type": "p25", "talkgroupsFile": "xmocotg.csv", "recordUnknown":false, "audioArchive": false, "transmissionArchive": false, "callLog":true, "talkgroupDisplayFormat":"tag_id", "shortName": "montgomery", "modulation": "qpsk", "controlWarnRate":0 }], "plugins":[{ "name": "rdioscanner_uploader", "library": "librdioscanner_uploader.so", "server": "http://localhost:3000", "systems": [{ "shortName": "montgomery", "apiKey": "09bd3dcd-80af-4599-xxxx-xxxxxxxxxxxx", "systemId": 411 }] }]

} `

tadscottsmith commented 7 months ago

I would try hardcoding the full path to the captureDir first to make sure that's not the problem, and then verify permissions are correct on the directories.

jeffbarclay commented 7 months ago

hard path doesn't change anything and ownership ... its not creating the directory within trunk-build dir, even if I create it myself it doesn't write the wav files to it?

Adding shortName folder and chmod 777 shortName fixed the error listed but no audio is written to dir

taclane commented 7 months ago

6 airspy recorders at 10 MHz may also be a little intense for a raspi. Those OOOOOOOOOOOOOOOOOOOO's leaking through at the end of the logs are indicating that it is receiving data faster than it can process it.

Lower the sample rate if you can, but as long as you keep seeing that in logs, it's likely to cause issues down the line.

jeffbarclay commented 7 months ago

after reducing recorders to 3 and sample rate to 2.5M its much cleaner but still no audio wav files in 'montgomery' folder

[2023-12-01 13:35:04.017810] (error) [montgomery] Control Channel Message Decode Rate: 9/sec, count: 27 [2023-12-01 13:35:04.604173] (info) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.162500 MHz Starting P25 Recorder Num [1] TDMA: false Slot: 0 QPSK: true [2023-12-01 13:35:04.604597] (info) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.162500 MHz This was an UPDATE [2023-12-01 13:35:04.898298] (info) [montgomery] 163C TG: - ( 7655) Freq: 853.612500 MHz Not Recording: TG not in Talkgroup File [2023-12-01 13:35:05.009940] (info) [montgomery] 156C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 852.887500 MHz Concluding Recorded Call - Last Update: 5s Recorder last write:3.73736 Call Elapsed: 9 [2023-12-01 13:35:05.010304] (info) [montgomery] 156C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 852.887500 MHz Stopping P25 Recorder Num [0] TDMA: false Slot: 0 Hz Error: 24 [2023-12-01 13:35:05.010886] (info) [montgomery] 156C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 852.887500 MHz - Transmission src: 66 pos: 0.00 length: 3.96 errors: 180 spikes: 15 [2023-12-01 13:35:05.012763] (error) [montgomery] 57C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.275000 MHz Rdio Scanner Upload Error: [2023-12-01 13:35:05.015251] (error) Plugin Manager: call_end - rdioscanner_uploader failed [2023-12-01 13:35:05.076709] (error) [montgomery] 156C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 852.887500 MHz Rdio Scanner Upload Error: [2023-12-01 13:35:05.076920] (error) Plugin Manager: call_end - rdioscanner_uploader failed [2023-12-01 13:35:06.011774] (error) [montgomery] 156C TG: MCFR 7A1 Ops 1 ( 4000) Fri Dec 1 13:34:57 2023 EST retry attempt 1 in 70s retry queue: 5 calls [2023-12-01 13:35:06.013143] (error) [montgomery] 57C Failed to conclude call - TG: MCFR 7A1 Ops 1 ( 4000) Fri Dec 1 13:31:35 2023 EST [2023-12-01 13:35:07.671218] (info) [montgomery] 164C TG: - ( 6755) Freq: 853.612500 MHz Not Recording: TG not in Talkgroup File [2023-12-01 13:35:08.147486] (info) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.162500 MHz Unit ID set via Control Channel, ext: 66 current: -1 samples: 0 [2023-12-01 13:35:09.695968] (info) [montgomery] 165C TG: - ( 6610) Freq: 853.437500 MHz Not Recording: TG not in Talkgroup File [2023-12-01 13:35:13.015716] (error) [montgomery] 122C TG: MCFR 7A2 Disp ( 4005) Freq: 853.162500 MHz Rdio Scanner Upload Error: [2023-12-01 13:35:13.016953] (error) Plugin Manager: call_end - rdioscanner_uploader failed [2023-12-01 13:35:14.014352] (error) [montgomery] 122C TG: MCFR 7A2 Disp ( 4005) Fri Dec 1 13:33:57 2023 EST retry attempt 2 in 129s retry queue: 5 calls [2023-12-01 13:35:15.006031] (info) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.162500 MHz Concluding Recorded Call - Last Update: 4s Recorder last write:4.03624 Call Elapsed: 11 [2023-12-01 13:35:15.006438] (info) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.162500 MHz Call was UPDATE not GRANT [2023-12-01 13:35:15.006758] (info) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.162500 MHz Stopping P25 Recorder Num [1] TDMA: false Slot: 0 Hz Error: 84 [2023-12-01 13:35:15.007324] (info) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.162500 MHz - Transmission src: 2500295 pos: 0.00 length: 2.16 errors: 9 spikes: 1 [2023-12-01 13:35:15.007862] (info) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.162500 MHz - Transmission src: 66 pos: 2.16 length: 2.52 errors: 6 spikes: 1 [2023-12-01 13:35:15.069328] (error) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Freq: 853.162500 MHz Rdio Scanner Upload Error: [2023-12-01 13:35:15.069499] (error) Plugin Manager: call_end - rdioscanner_uploader failed [2023-12-01 13:35:15.089244] (info) [montgomery] 166C TG: - ( 6610) Freq: 853.362500 MHz Not Recording: TG not in Talkgroup File [2023-12-01 13:35:16.008287] (error) [montgomery] 162C TG: MCFR 7A1 Ops 1 ( 4000) Fri Dec 1 13:35:05 2023 EST retry attempt 1 in 71s retry queue: 6 calls

rosecitytransit commented 6 months ago

If you want and are still experiencing the issue, I could possibly look into it