Raspberry Pi 4 with Rafael Micro R820T tuner errors

Status
Not open for further replies.

jerry01

Member
Premium Subscriber
Joined
Feb 22, 2008
Messages
38
Location
Orange County, NY
Howdy folks, I seem to be getting a error then it kills the process any clues?

ubuntu@ubuntu:~/op25/op25/gr-op25_repeater/apps$ ./rx.py --args 'rtl' -N 'LNA:47' -S 2400000 -f 774.46875 -o 25000 -q -2
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4
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: 00001883
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
[R82XX] PLL not locked!
Using two-stage decimator for speed=2400000, decim=25/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.
p25_frame_assembler_impl: do_imbe[0], do_output[0], do_audio_output[0], do_phase2_tdma[0], do_nocrypt[0]
[R82XX] PLL not locked!
metadata update not enabled


(f)req (h)old (s)kip (l)ock (q)uit (1-5)plot (,.<>)tune
OP25
Allocating 15 zero-copy buffers
Killed
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,499
Location
Talbot Co, MD
p25_frame_assembler_impl: do_imbe[0], do_output[0], do_audio_output[0], do_phase2_tdma[0], do_nocrypt[0]
First observation is that you aren't going to receive anything because the command line options are incorrect.
i. Reducing the sample size (-S 1440000)
ii. Enable the vocoder and audio player (-U)
iii. Get rid of the large offset; it is typically unnecessary with modern dongles. (drop the -o 25000)
iv. Make a basic trunk.tsv containing the control channel freq and add it to the command line (-T trunk.tsv)
v. Redirect the logging to a file (>2 stderr.2)

See what happens when you've made these changes.
 

jerry01

Member
Premium Subscriber
Joined
Feb 22, 2008
Messages
38
Location
Orange County, NY
First observation is that you aren't going to receive anything because the command line options are incorrect.
i. Reducing the sample size (-S 1440000)
ii. Enable the vocoder and audio player (-U)
iii. Get rid of the large offset; it is typically unnecessary with modern dongles. (drop the -o 25000)
iv. Make a basic trunk.tsv containing the control channel freq and add it to the command line (-T trunk.tsv)
v. Redirect the logging to a file (>2 stderr.2)

See what happens when you've made these changes.
./rx.py --args 'rtl'-U -N 'LNA:47' -S 1440000 -f 774.46875 -T trunk.tsv -V -2 -U 2> stderr.2

gain: name: LNA range: start 0 stop 0 step 0
setting gain LNA to 47
supported sample rates 250000-2560000 step 24000
ubuntu@ubuntu:~/op25/op25/gr-op25_repeater/apps$ cat stderr.2
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
[INFO] [UHD] linux; GNU C++ version 8.3.0; Boost_106700; UHD_3.13.1.0-3build1
Found Rafael Micro R820T tuner
Using device #0 Realtek RTL2838UHIDIR SN: 00001883
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
[R82XX] PLL not locked!
Using two-stage decimator for speed=1440000, decim=15/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[0]
Traceback (most recent call last):
File "./rx.py", line 924, in <module>
rx = rx_main()
File "./rx.py", line 838, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 196, in __init__
self.open_usrp()
File "./rx.py", line 765, in open_usrp
self.__set_rx_from_osmosdr()
File "./rx.py", line 693, in __set_rx_from_osmosdr
self.__build_graph(self.src, capture_rate)
File "./rx.py", line 323, 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)
File "/home/ubuntu/op25/op25/gr-op25_repeater/apps/trunking.py", line 744, in __init__
self.build_config_tsv(conf_file)
File "/home/ubuntu/op25/op25/gr-op25_repeater/apps/trunking.py", line 826, in build_config_tsv
nac = int(fields['nac'], 0)
ValueError: invalid literal for int() with base 0: '"cqpsk"'
ubuntu@ubuntu:~/op25/op25/gr-op25_repeater/app
 

jerry01

Member
Premium Subscriber
Joined
Feb 22, 2008
Messages
38
Location
Orange County, NY
./rx.py --args 'rtl'-U -N 'LNA:47' -S 1440000 -f 774.46875 -T trunk.tsv -V -2 -U 2> stderr.2

gain: name: LNA range: start 0 stop 0 step 0
setting gain LNA to 47
supported sample rates 250000-2560000 step 24000
ubuntu@ubuntu:~/op25/op25/gr-op25_repeater/apps$ cat stderr.2
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
[INFO] [UHD] linux; GNU C++ version 8.3.0; Boost_106700; UHD_3.13.1.0-3build1
Found Rafael Micro R820T tuner
Using device #0 Realtek RTL2838UHIDIR SN: 00001883
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
[R82XX] PLL not locked!
Using two-stage decimator for speed=1440000, decim=15/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[0]
Traceback (most recent call last):
File "./rx.py", line 924, in <module>
rx = rx_main()
File "./rx.py", line 838, in __init__
self.tb = p25_rx_block(self.options)
File "./rx.py", line 196, in __init__
self.open_usrp()
File "./rx.py", line 765, in open_usrp
self.__set_rx_from_osmosdr()
File "./rx.py", line 693, in __set_rx_from_osmosdr
self.__build_graph(self.src, capture_rate)
File "./rx.py", line 323, 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)
File "/home/ubuntu/op25/op25/gr-op25_repeater/apps/trunking.py", line 744, in __init__
self.build_config_tsv(conf_file)
File "/home/ubuntu/op25/op25/gr-op25_repeater/apps/trunking.py", line 826, in build_config_tsv
nac = int(fields['nac'], 0)
ValueError: invalid literal for int() with base 0: '"cqpsk"'
ubuntu@ubuntu:~/op25/op25/gr-op25_repeater/app
FYI, Been reading so I trashed what I had loaded and am loading your code I see in the other post's boatbod!
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,499
Location
Talbot Co, MD
File "/home/ubuntu/op25/op25/gr-op25_repeater/apps/trunking.py", line 826, in build_config_tsv
nac = int(fields['nac'], 0)
ValueError: invalid literal for int() with base 0: '"cqpsk"'
ubuntu@ubuntu:~/op25/op25/gr-op25_repeater/app

Invalid format in the trunk.tsv file. Probably the result of having spaces where tabs should be.
TSV format requires one single tab character to separate each field.
 

jerry01

Member
Premium Subscriber
Joined
Feb 22, 2008
Messages
38
Location
Orange County, NY
Boatbod, OK fixed the trunk file but it still get a killed on the process:

ubuntu@ubuntu:~/op25/op25/gr-op25_repeater/apps$ cat stderr.2
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
[INFO] [UHD] linux; GNU C++ version 8.3.0; Boost_106700; UHD_3.13.1.0-3build1
Found Rafael Micro R820T tuner
Using device #0 Realtek RTL2838UHIDIR SN: 00001883
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
[R82XX] PLL not locked!
Using two-stage decimator for speed=1440000, decim=15/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[0]
[R82XX] PLL not locked!
metadata update not enabled
audio device: default
Allocating 15 zero-copy buffers
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,499
Location
Talbot Co, MD
There's nothing in the log to suggest an error (the ""zero-copy" thing is a warning from the RTL driver). Are you library files up to date?
You might try deleting the ~/op25/build directory and re-running the ~/op25/install.sh script.
 
Status
Not open for further replies.
Top