Problems using OP25 Osmocom

natedawg1604

Member
Premium Subscriber
Joined
Jun 29, 2013
Messages
2,734
Location
Colorado
So I've been trying to get OP25 osmocom running for a few days, thus for without success. I'm running native Kali Linux with an Airspy dongle. As best I can tell, OP25 compiled just fine, I used the latest version from the Github repository. I've been trying to run OP25 with the following command string: ./rx.py --args "airspy" -N 'IF:10,MIX:15,LNA:15' -f 853.4125e6 -S 10000000 -l 'http:127.0.0.1:5000' -T dtr.tsv -v 10 2> /home/user/Desktop/logs/stderr.2. The aforementioned frequency is a CC for a trunking site. When I run this command, the web server starts but no data is passed (screenshot attached). The stderr log shows a python Traceback error for "create_image", but the log also shows lots of TSBK packets being captured.


Below is a relevant excerpt from my log file:

CPU Features: SSE2+ SSE4.1+ AVX+ FMA+
Using avx for xtrxdsp_iq16_sc32
Using avx for xtrxdsp_iq8_ic16
Using avx for xtrxdsp_iq16_ic16i
Using avx for xtrxdsp_iq8_ic8i
Using avx for xtrxdsp_sc32i_iq16
Using avx for xtrxdsp_iq8_sc32
Using avx for xtrxdsp_iq8_sc32i
Using avx for xtrxdsp_iq16_sc32i
Using avx for xtrxdsp_sc32_iq16
Using avx for xtrxdsp_ic16i_iq16
gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.10.9.2
built-in source types: file fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp xtrx
Using AirSpy NOS v1.0.0-rc10-6-g4008185 2020-05-08, samplerates: 2.5M 10M
Airspy decim:1 kernel size:47
Using two-stage decimator for speed=10000000, decim=100/4 if1=100000 if2=25000
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.
p25_frame_assembler_impl: do_imbe[0], do_output[0], do_audio_output[0], do_phase2_tdma[0]
1710544097.690653 change_freq: {'freq': 853412500, 'channel_type': 'cc', 'tgid': None, 'offset': 0, 'tag': '', 'nac': 3357, 'system': 'DTRS', 'center_frequency': None, 'tdma': None, 'wacn': None, 'sysid': None, 'prio': 0, 'tag_color': None}
/usr/local/src/op25/op25/gr-op25_repeater/apps/./rx.py:816: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
self.setDaemon(1)
python version detected: 3.11.7 (main, Dec 8 2023, 14:22:46) [GCC 13.2.0]
1710544097.901539 NAC 0xd1d TSBK: op=09 : 09 90 0b 40 00 00 00 00 00 00 3d fe
1710544097.901653 NAC 0xd1d TSBK: op=3b : 3b 00 00 be e0 7d 1c 01 81 70 eb 43
1710544097.901716 NAC 0xd1d TSBK: op=05 : 85 90 40 00 c0 00 00 00 08 00 f4 be
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/usr/local/src/op25/op25/gr-op25_repeater/apps/./rx.py", line 827, in run
self.callback(msg)
File "/usr/local/src/op25/op25/gr-op25_repeater/apps/./rx.py", line 369, in preprocess_qmsg
self.trunk_rx.process_qmsg(msg)
File "/usr/local/src/op25/op25/gr-op25_repeater/apps/trunking.py", line 1568, in process_qmsg
self.make_status_png()
File "/usr/local/src/op25/op25/gr-op25_repeater/apps/trunking.py", line 1404, in make_status_png
create_image(status, imgfile=tmp_output_file, bgcolor="#c0c0c0", windowsize=(640,480))
File "/usr/local/src/op25/op25/gr-op25_repeater/apps/create_image.py", line 44, in create_image
w,h = draw.textsize(line, font)
^^^^^^^^^^^^^
AttributeError: 'ImageDraw' object has no attribute 'textsize'
1710544097.954040 NAC 0xd1d TSBK: op=3a : 3a 00 00 3d 1c 06 2d 01 81 70 c6 06
1710544097.954126 NAC 0xd1d TSBK: op=16 : 16 00 00 40 ff ff ff ff 00 01 5f cb
1710544097.954188 NAC 0xd1d TSBK: op=3c : bc 00 00 3d 1c 06 36 00 fd 70 2e 31
1710544098.064685 NAC 0xd1d TSBK: op=39 : 39 00 06 2d 00 7f 04 01 bb 04 74 90
1710544098.064803 NAC 0xd1d TSBK: op=30 : 30 00 00 04 6a 30 6f b9 08 ac 56 cb
1710544098.064890 NAC 0xd1d TSBK: op=3d : bd 00 03 22 d0 32 0a 25 10 a2 87 94
1710544098.117361 NAC 0xd1d TSBK: op=0b : 0b 90 00 00 00 00 00 00 01 81 5a af
1710544098.117478 NAC 0xd1d TSBK: op=09 : 09 90 0c 80 00 00 00 00 00 00 8c f3
1710544098.117554 NAC 0xd1d TSBK: op=3b : bb 00 00 be e0 7d 1c 01 81 70 0f 77
1710544098.222290 NAC 0xd1d TSBK: op=05 : 05 90 40 00 c0 00 00 00 08 00 10 8a
1710544098.222382 NAC 0xd1d TSBK: op=3a : 3a 00 00 3d 1c 06 2d 01 81 70 c6 06
1710544098.222443 NAC 0xd1d TSBK: op=16 : 96 00 00 40 ff ff ff ff 00 01 bb ff



Any clues on what I could be doing wrong here?

-Nate
 

Attachments

  • OP25 web browser.png
    OP25 web browser.png
    72.6 KB · Views: 23

a417

Active Member
Joined
Mar 14, 2004
Messages
4,669
Does your instance run in console mode w/o the http option flag set?
 

natedawg1604

Member
Premium Subscriber
Joined
Jun 29, 2013
Messages
2,734
Location
Colorado
Does your instance run in console mode w/o the http option flag set?
Yes it does, the same thing shows up in the stderr log. The command terminal just shows the frequency, attached is a screenshot. Based on the upper left entry not displaying a WACN or system ID, could that mean my Airspy gain settings are off and I'm not properly tuned to the CC? The Airspy dongle works great for this CC in Unitrunker.
 

Attachments

  • Terminal screenshot.png
    Terminal screenshot.png
    457.2 KB · Views: 16

a417

Active Member
Joined
Mar 14, 2004
Messages
4,669
if the tsbks=0, and does not increase - it is not decoding anything.

What is your current gain setting?
 

wgbecks

Active Member
Joined
Jan 17, 2005
Messages
1,035
Location
NE Wisconsin
Just out of curiosity, what version of Kali Linux are your using and on what hardware platform? I spun up a Kali Linux 2024.1 VM this morning but haven't been able to get Osmocom to compile and am am still sifting through the errors.
 

natedawg1604

Member
Premium Subscriber
Joined
Jun 29, 2013
Messages
2,734
Location
Colorado
Just out of curiosity, what version of Kali Linux are your using and on what hardware platform? I spun up a Kali Linux 2024.1 VM this morning but haven't been able to get Osmocom to compile and am am still sifting through the errors.
I'm currently running kali 6.6.9-amd64 2024-01-08. For some reason I still can't get the Airspy settings to decode anything, the exact same setup works perfect on Unitrunker.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,415
Location
Talbot Co, MD
Any time you see a "traceback" it means a python thread crashed. If you look at the log you'll see the following two lines:
Code:
File "/usr/local/src/op25/op25/gr-op25_repeater/apps/trunking.py", line 1404, in make_status_png
   create_image(status, imgfile=tmp_output_file, bgcolor="#c0c0c0", windowsize=(640,480))
 File "/usr/local/src/op25/op25/gr-op25_repeater/apps/create_image.py", line 44, in create_image
   w,h         = draw.textsize(line, font)
Basically the create_image.py code had an error and this may well have affected trunking.py. You'll have to figure out what is causing the error before you can expect op25 to work properly.
 

natedawg1604

Member
Premium Subscriber
Joined
Jun 29, 2013
Messages
2,734
Location
Colorado
Any time you see a "traceback" it means a python thread crashed. If you look at the log you'll see the following two lines:
Code:
File "/usr/local/src/op25/op25/gr-op25_repeater/apps/trunking.py", line 1404, in make_status_png
   create_image(status, imgfile=tmp_output_file, bgcolor="#c0c0c0", windowsize=(640,480))
 File "/usr/local/src/op25/op25/gr-op25_repeater/apps/create_image.py", line 44, in create_image
   w,h         = draw.textsize(line, font)
Basically the create_image.py code had an error and this may well have affected trunking.py. You'll have to figure out what is causing the error before you can expect op25 to work properly.
Would it help to downgrade the version of Pillow I'm running? It looks like ImageDraw.textsize() is not supported in Pillow 10.
 

natedawg1604

Member
Premium Subscriber
Joined
Jun 29, 2013
Messages
2,734
Location
Colorado
Would it help to downgrade the version of Pillow I'm running? It looks like ImageDraw.textsize() is not supported in Pillow 10.
Update: I finally got it working after modifying a few lines of code in create_image.py, based on these tips. This is a really awesome program. Now I just have see if there is a way to import my TG & RID tags from Unitrunker.
 

KJ4DHF

Member
Joined
Aug 5, 2024
Messages
81
I could never figure out how to get it to build on Linux Mint VERSION="21.3 (Virginia). Threw ton's of errors along with GRSwig errors.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,415
Location
Talbot Co, MD
I could never figure out how to get it to build on Linux Mint VERSION="21.3 (Virginia). Threw ton's of errors along with GRSwig errors.
Mint 21.3 is based on Ubuntu 22.04 and uses GR-3.10. The final release of GR compatible with SWIG was 3.8; anything later uses PyBind.

To build OP25 for PyBind versions of Gnuradio requires many changes to the source code, which in the case of Osmocom are manually applied by patch, and in the case of Boatbod are located in the GR310 branch.
 

KJ4DHF

Member
Joined
Aug 5, 2024
Messages
81
boatbod,

Yes more changes than I wanted to try and figure out. I am not a Linux person and knew it was way over my head to get it working.
 

KJ4DHF

Member
Joined
Aug 5, 2024
Messages
81
I tried it in VirtualBox with Ubuntu 18.04.6 Bionic Beaver to see if I could get it up and running with no luck this morning. Wanted to see if I could get it to build and up and running before I dedicated a pc to it.
 
Top