robotastic / trunk-recorder

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

Airspy install libraries on Raspberry pi install #879

Open jeffbarclay opened 10 months ago

jeffbarclay commented 10 months ago

Creating new sets on the RPI with the Airspy SDR - running into same problem as the initial Mac install, don't know how to update/add the libraries via the Pi since Im not using homebrew???

this was the initial install line: sudo apt -y install libssl-dev openssl curl git fdkaac sox libcurl3-gnutls libcurl4 libcurl4-openssl-dev gnuradio gnuradio-dev gr-osmosdr libhackrf-dev libuhd-dev cmake make build-essential libboost-all-dev libusb-1.0-0-dev libsndfile1-dev

Previous solution:

          You're fine.  All you're essentially going to do is rebuild gr-osmosdr (with airspy drivers), install it on top of whatever you did previously, then do the same with trunk-recorder.

If you're following along the trunk-recorder mac homebrew directions, all you should really need to do is restart from the middle of the "Install the OsmoSDR Package for GNURadio" step. cd into the build directory, do a make clean and the continue on from the cmake .. step. After the cmake, you should see the airspy drivers in the "Gnuradio enabled components" printout.

Afterwards, do the same general thing with trunk-recorder. Clean out the build directory, then resume from the cmake step.

Originally posted by @taclane in https://github.com/robotastic/trunk-recorder/issues/849#issuecomment-1783152288

jeffbarclay commented 10 months ago

after reboot now getting:

`------------------------------------- Trunk Recorder

[2023-11-28 16:36:59.271494] (info)


INSTANCE

[2023-11-28 16:36:59.271652] (info) Using Config file: ./config.json [2023-11-28 16:36:59.271711] (info) Trunk-Recorder: Version: 4.7.0 [2023-11-28 16:36:59.271765] (info) Log to File: false [2023-11-28 16:36:59.271842] (info) Log Directory: logs [2023-11-28 16:36:59.272124] (info) Temporary Transmission Directory: /dev/shm [2023-11-28 16:36:59.272257] (info) Capture Directory: ~/trunk-build [2023-11-28 16:36:59.272305] (info) Upload Server: [2023-11-28 16:36:59.272346] (info) Broadcastify Calls Server: [2023-11-28 16:36:59.272384] (info) Status Server: [2023-11-28 16:36:59.272422] (info) Instance Key: [2023-11-28 16:36:59.272459] (info) Instance Id: [2023-11-28 16:36:59.272495] (info) Broadcast Signals: false [2023-11-28 16:36:59.272533] (info) Default Mode: digital [2023-11-28 16:36:59.272586] (info) Call Timeout (seconds): 3 [2023-11-28 16:36:59.272847] (info) Control channel warning rate: 10 [2023-11-28 16:36:59.272923] (info) Control channel retune limit: 0 [2023-11-28 16:36:59.272986] (info) Phase 1 Software Vocoder: false [2023-11-28 16:36:59.273049] (info) Enable Audio Streaming: false [2023-11-28 16:36:59.273112] (info) Record Unit to Unit Voice Calls: true [2023-11-28 16:36:59.273174] (info) New Call from UPDATE Messagestrue [2023-11-28 16:36:59.273250] (info) Frequency format: mhz [2023-11-28 16:36:59.273312] (info) Status as String: true [2023-11-28 16:36:59.273374] (info) Log Level: info [2023-11-28 16:36:59.273444] (info)

SYSTEMS

[2023-11-28 16:36:59.273644] (info)

System Number: 1

[2023-11-28 16:36:59.273790] (info) Short Name: montgomery [2023-11-28 16:36:59.273859] (info) System Type: p25 [2023-11-28 16:36:59.273921] (info) Control Channels: [2023-11-28 16:36:59.273981] (info) 853.687500 MHz [2023-11-28 16:36:59.274099] (info) 853.862500 MHz [2023-11-28 16:36:59.274176] (info) 853.887500 MHz [2023-11-28 16:36:59.274248] (info) 853.937500 MHz [2023-11-28 16:36:59.274324] (info) Loading Talkgroups... [2023-11-28 16:36:59.274384] (info) Reading Talkgroup CSV File: xmocotg.csv [2023-11-28 16:36:59.278148] (info) Found Columns: Decimal, Hex, Alpha Tag, Mode, Description, Tag [2023-11-28 16:36:59.279083] (info) Read 120 talkgroups. [2023-11-28 16:36:59.279229] (info) Talkgroups File: xmocotg.csv [2023-11-28 16:36:59.279335] (info) Modulation: qpsk [2023-11-28 16:36:59.279392] (info) Conversation Mode: true [2023-11-28 16:36:59.279442] (info) Analog Recorder Maximum Deviation: 4000 [2023-11-28 16:36:59.279505] (info) Filter Width: 1 [2023-11-28 16:36:59.279582] (info) Squelch: -160 [2023-11-28 16:36:59.279646] (info) API Key: [2023-11-28 16:36:59.279711] (info) Broadcastify API Key: [2023-11-28 16:36:59.279773] (info) Broadcastify Calls System ID: 0 [2023-11-28 16:36:59.279835] (info) Upload Script: [2023-11-28 16:36:59.279896] (info) Compress .wav Files: true [2023-11-28 16:36:59.279957] (info) Call Log: true [2023-11-28 16:36:59.280019] (info) Audio Archive: true [2023-11-28 16:36:59.280081] (info) Transmission Archive: true [2023-11-28 16:36:59.280142] (info) Loading Unit Tags... [2023-11-28 16:36:59.280246] (info) Unit Tags File: [2023-11-28 16:36:59.280311] (info) Record Unknown Talkgroups: false [2023-11-28 16:36:59.280373] (info) Decode MDC: false [2023-11-28 16:36:59.280434] (info) Decode FSync: false [2023-11-28 16:36:59.280495] (info) Decode Star: false [2023-11-28 16:36:59.280555] (info) Decode TPS: false [2023-11-28 16:36:59.280619] (info) Talkgroup Display Format: tag_id [2023-11-28 16:36:59.280687] (info) Hide Encrypted Talkgroups: false [2023-11-28 16:36:59.280748] (info) Hide Unknown Talkgroups: false [2023-11-28 16:36:59.280809] (info) Minimum Call Duration (in seconds): 0 [2023-11-28 16:36:59.280879] (info) Maximum Call Duration (in seconds): 0 [2023-11-28 16:36:59.280945] (info) Minimum Transmission Duration (in seconds): 0 [2023-11-28 16:36:59.281014] (info) Multiple Site System: false [2023-11-28 16:36:59.281076] (info) Multiple Site System Name: [2023-11-28 16:36:59.281137] (info) Multiple Site System Number: 0 [2023-11-28 16:36:59.281207] (info)
[2023-11-28 16:36:59.281277] (info)


SOURCES

[2023-11-28 16:36:59.281429] (info) Driver: osmosdr [2023-11-28 16:36:59.281491] (info) Center: 853.500000 MHz [2023-11-28 16:36:59.281587] (info) Rate: 10000000 [2023-11-28 16:36:59.281663] (info) Error: 0 [2023-11-28 16:36:59.281728] (info) PPM Error: 0 [2023-11-28 16:36:59.281792] (info) Auto gain control: false [2023-11-28 16:36:59.281853] (info) Gain: 0 [2023-11-28 16:36:59.281913] (info) IF Gain: 7 [2023-11-28 16:36:59.281973] (info) BB Gain: 0 [2023-11-28 16:36:59.282033] (info) LNA Gain: 7 [2023-11-28 16:36:59.282093] (info) PGA Gain: 0 [2023-11-28 16:36:59.282153] (info) TIA Gain: 0 [2023-11-28 16:36:59.282213] (info) MIX Gain: 7 [2023-11-28 16:36:59.282273] (info) AMP Gain: 0 [2023-11-28 16:36:59.282332] (info) VGA Gain: 0 [2023-11-28 16:36:59.282393] (info) VGA1 Gain: 0 [2023-11-28 16:36:59.282453] (info) VGA2 Gain: 0 [2023-11-28 16:36:59.282513] (info) Idle Silence: 0 [2023-11-28 16:36:59.282574] (info) Digital Recorders: 15 [2023-11-28 16:36:59.282635] (info) SigMF Recorders: 0 [2023-11-28 16:36:59.282696] (info) Analog Recorders: 0 [2023-11-28 16:36:59.282759] (info) Source Device: airspy=0x26A464DC284F2C93 gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.10.5.1 built-in source types: file fcd rtl rtl_tcp uhd hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp xtrx Using AirSpy NOS v1.0.0-rc10-3-g7120e77 2018-04-28, samplerates: 2.5M 10M [2023-11-28 16:36:59.314015] (info) SOURCE TYPE OSMOSDR (osmosdr) [2023-11-28 16:36:59.314136] (info) Setting sample rate to: 10000000 [2023-11-28 16:36:59.314794] (info) Actual sample rate: 10000000 [2023-11-28 16:36:59.314883] (info) Tuning to 853.500000 MHz [2023-11-28 16:36:59.315179] (info) Gain Stage: LNA supported values: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [2023-11-28 16:36:59.315303] (info) Gain Stage: MIX supported values: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [2023-11-28 16:36:59.315420] (info) Gain Stage: IF supported values: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [2023-11-28 16:36:59.315487] (info) Max Frequency: 858.450000 MHz [2023-11-28 16:36:59.315565] (info) Min Frequency: 848.550000 MHz [2023-11-28 16:36:59.315767] (info) IF Gain set to: 7 [2023-11-28 16:36:59.315983] (info) MIX Gain set to: 7 [2023-11-28 16:36:59.316159] (info) LNA Gain set to: 7 [2023-11-28 16:36:59.316257] (info) Auto gain control is OFF [2023-11-28 16:36:59.316328] (info) Setting antenna to [RX] [2023-11-28 16:36:59.327928] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:27.226399] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 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. [2023-11-28 16:37:44.964668] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:44.990387] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.002180] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.031293] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.044988] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.073553] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.090984] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.118776] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.134688] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.164319] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.183173] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.211748] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.234480] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.260766] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.281909] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.311979] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.336098] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.365074] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.392984] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.419502] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.445900] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.476384] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.505877] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.535193] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.568464] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.595409] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.627191] (info) P25 Recorder two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.658043] (info) P25 Recorder ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 ARB Rate: 0.96 SPS: 5 [2023-11-28 16:37:45.689916] (info)

[2023-11-28 16:37:45.690022] (info)


PLUGINS

[2023-11-28 16:37:45.690107] (info) Setting up plugin - Name: openmhz_uploader Library file: libopenmhz_uploader.so [2023-11-28 16:37:45.741190] (info) Setting up plugin - Name: broadcastify_uploader Library file: libbroadcastify_uploader.so [2023-11-28 16:37:45.749516] (info) Setting up plugin - Name: unit_script Library file: libunit_script.so [2023-11-28 16:37:45.756101] (info) Setting up plugin - Name: stat_socket Library file: libstat_socket.so [2023-11-28 16:37:45.791473] (info) Setting up plugin - Name: rdioscanner_uploader Library file: librdioscanner_uploader.so [2023-11-28 16:37:45.800405] (info) Rdio Scanner Server: http://localhost:3000 [2023-11-28 16:37:45.806995] (info) Uploading calls for: montgomery [2023-11-28 16:37:45.807149] (info) Loaded 5 Plugins [2023-11-28 16:37:45.807238] (info)

[2023-11-28 16:37:45.809977] (info) [montgomery] Started with Control Channel: 853.687500 MHz [2023-11-28 16:37:45.812690] (info) P25 Trunking two-stage decimator - Initial decimated rate: 100000 Second decimated rate: 25000 FA: 6250 FB: 12500 System Rate: 10000000 [2023-11-28 16:37:45.842817] (info) P25 Trunking ARB - Initial Rate: 10000000 Resampled Rate: 25000 Initial Decimation: 100 System Rate: 24000 ARB Rate: 0.96 terminate reached from thread id: f62e5880Got std::runtime_error boost::thread_resource_error: Resource temporarily unavailable 0xf68d2bc4: (std::vector<gr::tag_t, std::allocator > std::__do_uninit_fill_n<std::vector<gr::tag_t, std::allocator >, unsigned int, std::vector<gr::tag_t, std::allocator > >(std::vector<gr::tag_t, std::allocator >*, unsigned int, std::vector<gr::tag_t, std::allocator > const&)+0xdfc) 0xf65f0fec: (std::rethrow_exception(std::__exception_ptr::exception_ptr)+0xa4) 0xf65f1078: (std::terminate()+0xc) Aborted `