OP25 Rx.Py not opening op25

Status
Not open for further replies.

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
I am following the op25 for dummies tutorial. I get to the part where you have to run the following command



./rx.py --args 'rtl' -N 'LNA:47' -S 2500000 -x 2 -f 771.5687e6 -o 17e3 -q 3 -T trunk.tsv -V -2 -U 2> stderr-stream0.2

I get returned with the following line with op25 not running at all.

linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

I tried going ahead and setting up op25.sh and got nothing there as well.

Any help is appreciated.
 

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
lsusb -v

make sure it's showing up
Just checked this is what is coming up


Bus 001 Device 003: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x2838 RTL2838 DVB-T
bcdDevice 1.00
iManufacturer 1 Realtek
iProduct 2 RTL2838UHIDIR
iSerial 3 00000001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 4 USB2.0-Bulk&Iso
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 5 Bulk-In, Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 5 Bulk-In, Interface
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 2
Device Status: 0x0000
(Bus Powered)
 

a417

!#
Joined
Mar 14, 2004
Messages
2,819
and you're hanging on this line
you said:
linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown
you're not getting anything past that?

Just type ./rx.py and see the output of that, lets take ALL your command line variables out...
 

boatbod

Member
Joined
Mar 3, 2007
Messages
2,953
Location
Talbot Co, MD
I am following the op25 for dummies tutorial.
That tutorial is very out of date. Suggest you read ~/op25/op25/gr-op25_repeater/apps/README-configuration

I get to the part where you have to run the following command

./rx.py --args 'rtl' -N 'LNA:47' -S 2500000 -x 2 -f 771.5687e6 -o 17e3 -q 3 -T trunk.tsv -V -2 -U 2> stderr-stream0.2

I get returned with the following line with op25 not running at all.

linux; GNU C++ version 7.3.0; Boost_106501; UHD_003.010.003.000-0-unknown

I tried going ahead and setting up op25.sh and got nothing there as well.

Any help is appreciated.
Going to need to see the log file (stderr-stream0.2) to do further debugging.
 

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
and you're hanging on this line


you're not getting anything past that?

Just type ./rx.py and see the output of that, lets take ALL your command line variables out...
typed in ./rx.py command and it launches... was doing some googling checked the trunk.tsv files no spaces in there.
 

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
That tutorial is very out of date. Suggest you read ~/op25/op25/gr-op25_repeater/apps/README-configuration



Going to need to see the log file (stderr-stream0.2) to do further debugging.
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
gain: name: LNA range: start 0 stop 0 step 0
setting gain LNA to 47
supported sample rates 250000-2560000 step 24000
Exact sample rate is: 2500000.107620 Hz
[R82XX] PLL not locked!
Using two-stage decimator for speed=2500000, decim=25/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.
op25_audio::eek:pen_socket(): enabled udp host(127.0.0.1), wireshark(23456), audio(23456)
p25_frame_assembler_impl: do_imbe[1], do_output[0], do_audio_output[1], do_phase2_tdma[1], do_nocrypt[1]
Traceback (most recent call last):
File "./rx.py", line 989, in <module>
rx = rx_main()
File "./rx.py", line 901, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 208, in __init__
self.open_usrp()
File "./rx.py", line 828, in open_usrp
self.__set_rx_from_osmosdr()
File "./rx.py", line 757, in __set_rx_from_osmosdr
self.__build_graph(self.src, capture_rate)
File "./rx.py", line 338, in __build_graph
self.trunk_rx = trunking.rx_ctl(frequency_set = self.change_freq, debug = self.options.verbosity, conf_file = self.options.trunk_conf_file, logfile_workers=logfile_workers, meta_update = self.meta_update, crypt_behavior = self.options.crypt_behavior)
File "/home/ubuntu/op25/op25/gr-op25_repeater/apps/trunking.py", line 765, in __init__
self.build_config_tsv(conf_file)
File "/home/ubuntu/op25/op25/gr-op25_repeater/apps/trunking.py", line 859, in build_config_tsv
self.setup_config(configs)
File "/home/ubuntu/op25/op25/gr-op25_repeater/apps/trunking.py", line 920, in setup_config
with open(configs[nac]['tgid_tags_file'], 'rb') as csvfile:
IOError: [Errno 2] No such file or directory: 'cces.tsv'
 

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
ok last line gave it away my cces.tsv was saved incorrectly as a .csv changed now it launches BUT NO AUDIO hahah I fought some battles before but this one ....its like whats the next roadblock....I swear when I get this running Im throwing a OP25 party :) I tried this line here for the audio from boatbod in the other thread

./rx.py --args 'rtl' -N 'LNA:47' -S 960000 -f 771.56875e6 -q 4 -o -100 -T trunk.tsv -V -U 2> stderr.2

tried c4fm....nope
tried messing with the LNA.....nope
Sample rate up and down.....nope
here are my audio devices

ubuntu@ubuntu:~/op25/op25/gr-op25_repeater/apps$ aplay -l
]**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 6/7
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
Subdevices: 1/1
Subdevice #0: subdevice #0
 

boatbod

Member
Joined
Mar 3, 2007
Messages
2,953
Location
Talbot Co, MD
First let's change your command line a little to increase the logging level, then re-run it and post the log again.
Code:
./rx.py --args 'rtl' -N 'LNA:39' -S 960000 -X -q 4 -o -100 -v 1 -T trunk.tsv -V -U 2> stderr.2
On the rasp pi4 are you expecting to see audio on the 3.5mm jack or via HDMI? There is a tool (raspi-config) which allows you to set the default device. If you have it the wrong way around you won't hear anything.
 

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
First let's change your command line a little to increase the logging level, then re-run it and post the log again.
Code:
./rx.py --args 'rtl' -N 'LNA:39' -S 960000 -X -q 4 -o -100 -v 1 -T trunk.tsv -V -U 2> stderr.2
On the rasp pi4 are you expecting to see audio on the 3.5mm jack or via HDMI? There is a tool (raspi-config) which allows you to set the default device. If you have it the wrong way around you won't hear anything.
Via HDMI now when I first started with this build I had no audio at all. I found out when I used GQRX. It took some digging but I found the workaround by adding # Enable audio (loads snd_bcm2835) dtparam=audio=on into my config.txt file which couldnt find because in most builds the config.txt is in /boot my config.txt was in /boot/firmware that was a battle now with that being said I dont know if that command is hindering op25. Additionally after I realized my error with my .tsv file and finally got to run op25 I can see it picking up the control channel and TGIDs broadcasting but from the information on the bottom left it looked like it wasnt holding through the broadcast. It would blink. Im going run your suggested command line and I apologize in advance the system Im trying to listen to is phase 2 after I posted that I realized I forgot the - 2.
 

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.11
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
gain: name: LNA range: start 0 stop 0 step 0
setting gain LNA to 39
supported sample rates 250000-2560000 step 24000
[R82XX] PLL not locked!
Using two-stage decimator for speed=960000, decim=10/4 if1=96000 if2=24000
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.
op25_audio::eek:pen_socket(): enabled udp host(127.0.0.1), wireshark(23456), audio(23456)
p25_frame_assembler_impl: do_imbe[1], do_output[0], do_audio_output[1], do_phase2_tdma[1], do_nocrypt[1]
metadata update not enabled
audio device: default
04/25/20 00:32:26.306799 control channel timeout
04/25/20 00:32:31.766391 control channel timeout
04/25/20 00:32:45.965469 control channel timeout
04/25/20 00:32:55.932916 control channel timeout
04/25/20 00:33:07.401680 control channel timeout
04/25/20 00:33:08.499230 voice update: tg(1350), freq(769531250), slot(0), prio(3)
04/25/20 00:33:11.777328 voice update: tg(2250), freq(771193750), slot(0), prio(3)
04/25/20 00:33:13.283650 voice update: tg(2250), freq(771193750), slot(0), prio(3)
04/25/20 00:33:15.322066 voice update: tg(1350), freq(771193750), slot(1), prio(3)
04/25/20 00:33:17.236513 voice update: tg(1350), freq(771893750), slot(0), prio(3)
04/25/20 00:35:42.511705 control channel timeout
04/25/20 00:35:47.152409 control channel timeout
04/25/20 00:36:45.592525 control channel timeout
04/25/20 00:37:48.809469 control channel timeout
04/25/20 00:39:22.338343 control channel timeout
04/25/20 00:39:22.351081 voice update: tg(2250), freq(771193750), slot(0), prio(3)
04/25/20 00:39:23.846161 voice update: tg(2250), freq(771193750), slot(0), prio(3)
04/25/20 00:39:40.910148 voice update: tg(2250), freq(773493750), slot(0), prio(3)
04/25/20 00:39:42.415622 voice update: tg(2250), freq(773493750), slot(0), prio(3)
04/25/20 00:41:57.581063 control channel timeout
04/25/20 00:42:00.175078 control channel timeout
04/25/20 00:42:28.302450 control channel timeout
04/25/20 00:42:32.670546 control channel timeout
 

boatbod

Member
Joined
Mar 3, 2007
Messages
2,953
Location
Talbot Co, MD
Hmmm. Well we're definitely looking at a phase 2 system because there are slot numbers present in the voice update messages so that tends to preclude having the incorrect modulation (default is cqpsk, which is normal for tdma). How's your signal strength? Please post a screen shot of the fft plot (#1), the mixer plot (#5) and also the datascope plot (#4).

Thanks
G.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
2,953
Location
Talbot Co, MD
The tuning is a considerable way off from where it needs to be. Suggest you adjust the -q 4 parameter to place the mixer hump in the center of the tuning line. Try -q 0 for starters.

Example of "good" mixer plot:
Screenshot from 2020-04-17 12-34-49.png
 

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
were on to something!! switched to q-0 they sound like robots and cant make out what they are saying but the good news is I hear audio!! Sample rate maybe?
 

a417

!#
Joined
Mar 14, 2004
Messages
2,819
Where did you get that -q 4 from? You were pointing it off freq via the correction. If your -q = 0, you can just drop the parameter.
 

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
Where did you get that -q 4 from? You were pointing it off freq via the correction. If your -q = 0, you can just drop the parameter.
When I originally was checking tuning it the op25 for dummies tutorial. I stopped getting tuning errors when I did q-4 but I think I didn't even try q-0. Now I have slow robot voices but it's music to my ears cause I know I'm close. I tried various sampling rates still the same...I might try c4fm modulation I'm just guessing now.
 

Falcon4

Member
Joined
May 5, 2017
Messages
91
Location
Coatesville,PA
Tried several things adjusted LNA up and down tried high and low sample rates. Still hearing robot sounds. Anyone know of a fix did some googling maybe something with pulse audio? Also tried C4FM.....Im at a loss
 
Status
Not open for further replies.
Top