Max.
I am having difficulty getting sockaudio.py working. See my error log below. Any idea of what I have wrong?
gr-osmosdr 0.1.3 (0.1.3) gnuradio 3.7.5
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
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.
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO[149919077 3.506202]p25p1_fdma::rx_sym() timeout
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOO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OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO[1499191092.722864]p25p1_fdma::rx_sym( ) timeout
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOO
Thank you,
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
E-Mail: wa8wg@centurytel.net
could you post the command line you're using to invoke? Also, what hardware platform are you running this on?
I am running a Raspberry Pi3-B on Raspbian Jessie with pixel.
This is my startup (rx.sh) file.
./rx.py --args 'rtl' --gains 'lna:49' -f 853.9125e6 -T trunk.tsv -q 0 -S 2560000 -w 2> stderr.2
My local system (MPSCS) is standard C4FM 9600 baud P25 (non-simulcast) and I don’t think I need the tdma support but rx.py will not successfully start without it in the command line for some reason. Everything looks good in the rx.py terminal window but there is no sign that sockaudio.py ever starts and runs in the background.
Thank you!
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
E-Mail: mailto:wa8wg@centurytel.net wa8wg@centurytel.net
From: op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] Sent: Wednesday, July 5, 2017 8:50 AM To: op25-dev@yahoogroups.com Subject: [op25-dev] Re: sockaudio.py startup?
could you post the command line you're using to invoke? Also, what hardware platform are you running this on?
okay it's possible there are multiple issues happening here - as a first step lets have you lower the sampling rate to 1,000,000 - so, -S 1000000
Once we can rule out the samp rate as a possible cause the next step may become more clear....
Max
Sorry, that doesn’t work because of the frequency span of the MPSCS system that I am monitoring in my area. A sampling rate of less than results rx.py reporting tsblks 0. Is it possible there might be an error in the additional lib and app files that I pulled from the webpage text may be in error? I did run dos2unix on each of the files once I captured the text from the webpage. Can you add these to your max branch?
Thank you,
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
Telephone: 715.735.0131
E-Mail: mailto:wa8wg@centurytel.net wa8wg@centurytel.net
From: op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] Sent: Wednesday, July 5, 2017 10:57 AM To: op25-dev@yahoogroups.com Subject: RE: [op25-dev] Re: sockaudio.py startup?
okay it's possible there are multiple issues happening here - as a first step lets have you lower the sampling rate to 1,000,000 - so, -S 1000000
Once we can rule out the samp rate as a possible cause the next step may become more clear....
Max
Bill, as I understand it, the software retunes the SDR as the control channel commands for each exchange. So the sample rate only needs to handle a single channel. When I had the scope.py setup running a few weeks ago, I used a 250K sample rate (lowest supported by the RTL-SDR.com dongle) with good results. The lower sample rate also helps reduce the CPU load.
73, John
On Jul 5, 2017, 2:04 PM, at 2:04 PM, "'wa8wg' wa8wg@centurytel.net [op25-dev]" op25-dev@yahoogroups.com wrote:
Sorry, that doesn’t work because of the frequency span of the MPSCS system that I am monitoring in my area. A sampling rate of less than results rx.py reporting tsblks 0. Is it possible there might be an error in the additional lib and app files that I pulled from the webpage text may be in error? I did run dos2unix on each of the files once I captured the text from the webpage. Can you add these to your max branch?
Thank you,
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
Telephone: 715.735.0131
E-Mail: mailto:wa8wg@centurytel.net wa8wg@centurytel.net
From: op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] Sent: Wednesday, July 5, 2017 10:57 AM To: op25-dev@yahoogroups.com Subject: RE: [op25-dev] Re: sockaudio.py startup?
okay it's possible there are multiple issues happening here - as a first step lets have you lower the sampling rate to 1,000,000 - so, -S 1000000
Once we can rule out the samp rate as a possible cause the next step may become more clear....
Max
yes, though it depends on whether a center frequency has been specified. If so then OP25 remains tuned to the center frequency and if not, it retunes the SDR each time a frequency change is needed. From what I've seen the slow sample rate (250,000) on the PI causes the changes to be somewhat slow, so I was getting the first word(s) of calls chopped off. Currently (for the PI) we recommend -S 1000000 and setting the center frequency to zero, or omitting it. Another user reported getting a crash with this, and a possible workaround for it has just been pushed to the repo.... It should be possible to set the center frequency to zero. When this is done the trunk-tracking mode should work fine no matter how wide the system is, but it does preclude the use of the log-all-talkgroups-to-disk mode, unfortunately...
Max
I tried setting the center frequency to zero in my trunk.tsv and turning the sampling rate down but rx.py doesn’t like the zero center frequency. See below. Where can I download the patched version that allows a zero center frequency statement?
pi@raspberrypi:~/op25/op25/gr-op25_repeater/apps $ ./rx.sh
linux; GNU C++ version 4.9.1; Boost_105500; UHD_003.007.003-0-unknown
setting gain lna to 49
set_center_freq: 0
./rx.sh: line 2: $'\r': command not found
./rx.sh: line 3: $'\r': command not found
./rx.sh: line 4: $'\r': command not found
./rx.sh: line 5: $'\r': command not found
./rx.sh: line 6: $'\r': command not found
./rx.sh: line 7: $'\r': command not found
./rx.sh: line 8: $'\r': command not found
./rx.sh: line 9: $'\r': command not found
./rx.sh: line 10: $'\r': command not found
./rx.sh: line 11: $'\r': command not found
pi@raspberrypi:~/op25/op25/gr-op25_repeater/apps $
Thank you,
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
E-Mail: mailto:wa8wg@centurytel.net wa8wg@centurytel.net
From: op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] Sent: Wednesday, July 5, 2017 4:03 PM To: op25-dev@yahoogroups.com Subject: RE: [op25-dev] Re: sockaudio.py startup?
yes, though it depends on whether a center frequency has been specified. If so then OP25 remains tuned to the center frequency and if not, it retunes the SDR each time a frequency change is needed. From what I've seen the slow sample rate (250,000) on the PI causes the changes to be somewhat slow, so I was getting the first word(s) of calls chopped off. Currently (for the PI) we recommend -S 1000000 and setting the center frequency to zero, or omitting it. Another user reported getting a crash with this, and a possible workaround for it has just been pushed to the repo.... It should be possible to set the center frequency to zero. When this is done the trunk-tracking mode should work fine no matter how wide the system is, but it does preclude the use of the log-all-talkgroups-to-disk mode, unfortunately...
Max
Disregard my previous message. I had to reinitialize the SDR and rx.py now loads with a zero center frequency in trunk.tsv using the lower sample rate as suggested.
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
Telephone: 715.735.0131
E-Mail: mailto:wa8wg@centurytel.net wa8wg@centurytel.net
From: op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] Sent: Wednesday, July 5, 2017 6:08 PM To: op25-dev@yahoogroups.com Subject: RE: [op25-dev] Re: sockaudio.py startup?
I tried setting the center frequency to zero in my trunk.tsv and turning the sampling rate down but rx.py doesn’t like the zero center frequency. See below. Where can I download the patched version that allows a zero center frequency statement?
pi@raspberrypi:~/op25/op25/gr-op25_repeater/apps $ ./rx.sh
linux; GNU C++ version 4.9.1; Boost_105500; UHD_003.007.003-0-unknown
setting gain lna to 49
set_center_freq: 0
./rx.sh: line 2: $'\r': command not found
./rx.sh: line 3: $'\r': command not found
./rx.sh: line 4: $'\r': command not found
./rx.sh: line 5: $'\r': command not found
./rx.sh: line 6: $'\r': command not found
./rx.sh: line 7: $'\r': command not found
./rx.sh: line 8: $'\r': command not found
./rx.sh: line 9: $'\r': command not found
./rx.sh: line 10: $'\r': command not found
./rx.sh: line 11: $'\r': command not found
pi@raspberrypi:~/op25/op25/gr-op25_repeater/apps $
Thank you,
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
E-Mail: wa8wg@centurytel.net
From: op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] Sent: Wednesday, July 5, 2017 4:03 PM To: op25-dev@yahoogroups.com Subject: RE: [op25-dev] Re: sockaudio.py startup?
yes, though it depends on whether a center frequency has been specified. If so then OP25 remains tuned to the center frequency and if not, it retunes the SDR each time a frequency change is needed. From what I've seen the slow sample rate (250,000) on the PI causes the changes to be somewhat slow, so I was getting the first word(s) of calls chopped off. Currently (for the PI) we recommend -S 1000000 and setting the center frequency to zero, or omitting it. Another user reported getting a crash with this, and a possible workaround for it has just been pushed to the repo.... It should be possible to set the center frequency to zero. When this is done the trunk-tracking mode should work fine no matter how wide the system is, but it does preclude the use of the log-all-talkgroups-to-disk mode, unfortunately...
Max
Max,
I now have excellent audio using netcat & aplay with the zero center frequency in trunk.tsv and the sampling rate –S 1000000 in the rx.py command line. Still no sign though of sockaudio ever starting up.
Thank you!
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
Telephone: 715.735.0131
E-Mail: mailto:wa8wg@centurytel.net wa8wg@centurytel.net
From: op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] Sent: Wednesday, July 5, 2017 6:24 PM To: op25-dev@yahoogroups.com Subject: RE: [op25-dev] Re: sockaudio.py startup?
Disregard my previous message. I had to reinitialize the SDR and rx.py now loads with a zero center frequency in trunk.tsv using the lower sample rate as suggested.
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
Telephone: 715.735.0131
E-Mail: wa8wg@centurytel.net
From: op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] Sent: Wednesday, July 5, 2017 6:08 PM To: op25-dev@yahoogroups.com Subject: RE: [op25-dev] Re: sockaudio.py startup?
I tried setting the center frequency to zero in my trunk.tsv and turning the sampling rate down but rx.py doesn’t like the zero center frequency. See below. Where can I download the patched version that allows a zero center frequency statement?
pi@raspberrypi:~/op25/op25/gr-op25_repeater/apps $ ./rx.sh
linux; GNU C++ version 4.9.1; Boost_105500; UHD_003.007.003-0-unknown
setting gain lna to 49
set_center_freq: 0
./rx.sh: line 2: $'\r': command not found
./rx.sh: line 3: $'\r': command not found
./rx.sh: line 4: $'\r': command not found
./rx.sh: line 5: $'\r': command not found
./rx.sh: line 6: $'\r': command not found
./rx.sh: line 7: $'\r': command not found
./rx.sh: line 8: $'\r': command not found
./rx.sh: line 9: $'\r': command not found
./rx.sh: line 10: $'\r': command not found
./rx.sh: line 11: $'\r': command not found
pi@raspberrypi:~/op25/op25/gr-op25_repeater/apps $
Thank you,
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
E-Mail: wa8wg@centurytel.net
From: op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] Sent: Wednesday, July 5, 2017 4:03 PM To: op25-dev@yahoogroups.com Subject: RE: [op25-dev] Re: sockaudio.py startup?
yes, though it depends on whether a center frequency has been specified. If so then OP25 remains tuned to the center frequency and if not, it retunes the SDR each time a frequency change is needed. From what I've seen the slow sample rate (250,000) on the PI causes the changes to be somewhat slow, so I was getting the first word(s) of calls chopped off. Currently (for the PI) we recommend -S 1000000 and setting the center frequency to zero, or omitting it. Another user reported getting a crash with this, and a possible workaround for it has just been pushed to the repo.... It should be possible to set the center frequency to zero. When this is done the trunk-tracking mode should work fine no matter how wide the system is, but it does preclude the use of the log-all-talkgroups-to-disk mode, unfortunately...
Max
Hi Bill and Max --
I'm a little confused where the frequency is set. Are you putting the control channel frequency on the command line with "-f", and then 0 in trunk.tsv, or the other way around?
I'm still struggling to get things running here.
Thanks, John ----
On 07/05/2017 07:35 PM, 'wa8wg' wa8wg@centurytel.net [op25-dev] wrote:
Max,
I now have excellent audio using netcat & aplay with the zero center frequency in trunk.tsv and the sampling rate –S 1000000 in the rx.py command line. Still no sign though of sockaudio ever starting up.
Thank you!
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
Telephone: 715.735.0131
E-Mail: wa8wg@centurytel.net mailto:wa8wg@centurytel.net
*From:*op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] *Sent:* Wednesday, July 5, 2017 6:24 PM *To:* op25-dev@yahoogroups.com *Subject:* RE: [op25-dev] Re: sockaudio.py startup?
Disregard my previous message. I had to reinitialize the SDR and rx.py now loads with a zero center frequency in trunk.tsv using the lower sample rate as suggested.
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
Telephone: 715.735.0131
E-Mail: wa8wg@centurytel.net mailto:wa8wg@centurytel.net
*From:*op25-dev@yahoogroups.com mailto:op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] *Sent:* Wednesday, July 5, 2017 6:08 PM *To:* op25-dev@yahoogroups.com mailto:op25-dev@yahoogroups.com *Subject:* RE: [op25-dev] Re: sockaudio.py startup?
I tried setting the center frequency to zero in my trunk.tsv and turning the sampling rate down but rx.py doesn’t like the zero center frequency. See below. Where can I download the patched version that allows a zero center frequency statement?
*pi@raspberrypi:~/op25/op25/gr-op25_repeater/apps $ ./rx.sh*
*linux; GNU C++ version 4.9.1; Boost_105500; UHD_003.007.003-0-unknown*
**
*setting gain lna to 49*
*set_center_freq: 0*
*./rx.sh: line 2: $'\r': command not found*
*./rx.sh: line 3: $'\r': command not found*
*./rx.sh: line 4: $'\r': command not found*
*./rx.sh: line 5: $'\r': command not found*
*./rx.sh: line 6: $'\r': command not found*
*./rx.sh: line 7: $'\r': command not found*
*./rx.sh: line 8: $'\r': command not found*
*./rx.sh: line 9: $'\r': command not found*
*./rx.sh: line 10: $'\r': command not found*
*./rx.sh: line 11: $'\r': command not found*
*pi@raspberrypi:~/op25/op25/gr-op25_repeater/apps $*
Thank you,
Bill
William G. Becks, WA8WG
N7027 Shady Lane Circle
Porterfield, WI 54159
E-Mail: wa8wg@centurytel.net mailto:wa8wg@centurytel.net
*From:*op25-dev@yahoogroups.com mailto:op25-dev@yahoogroups.com [mailto:op25-dev@yahoogroups.com] *Sent:* Wednesday, July 5, 2017 4:03 PM *To:* op25-dev@yahoogroups.com mailto:op25-dev@yahoogroups.com *Subject:* RE: [op25-dev] Re: sockaudio.py startup?
yes, though it depends on whether a center frequency has been specified. If so then OP25 remains tuned to the center frequency and if not, it retunes the SDR each time a frequency change is needed. From what I've seen the slow sample rate (250,000) on the PI causes the changes to be somewhat slow, so I was getting the first word(s) of calls chopped off. Currently (for the PI) we recommend -S 1000000 and setting the center frequency to zero, or omitting it. Another user reported getting a crash with this, and a possible workaround for it has just been pushed to the repo.... It should be possible to set the center frequency to zero. When this is done the trunk-tracking mode should work fine no matter how wide the system is, but it does preclude the use of the log-all-talkgroups-to-disk mode, unfortunately...
Max
it's a silly historical artifact of OP25 that when -T is in use the CC frequency is taken from the trunk TSV file, but you still have to give a valid (dummy) frequency on the command line with the -f parameter. As far as the trunk TSV there is the trunk control channel frequency (or a comma separated list of CC frequencies), and separately there is the "center" frequency. I recommend setting that to zero (unless the log-all-talkgroups-to-disk mode is being used). Likewise use "-S 1000000", unless the logging mode is being used.
Max
Ah, understand now. Thanks!
On Jul 6, 2017, 5:58 PM, at 5:58 PM, "ikj1234i@yahoo.com [op25-dev]" op25-dev@yahoogroups.com wrote:
it's a silly historical artifact of OP25 that when -T is in use the CC frequency is taken from the trunk TSV file, but you still have to give a valid (dummy) frequency on the command line with the -f parameter. As far as the trunk TSV there is the trunk control channel frequency (or a comma separated list of CC frequencies), and separately there is the "center" frequency. I recommend setting that to zero (unless the log-all-talkgroups-to-disk mode is being used). Likewise use "-S 1000000", unless the logging mode is being used.
Max
Bill,
Did you ever get [url=https://drive.google.com/open?id=0B-9lC78gYedORUg4MFZIV1hybHM%5Dsockaudio.py...] to start up? Since I don't think it's been committed to the git repo yet, you're either going to need the modified rx.py than knows how to start it itself, or you'll need the [url=https://drive.google.com/open?id=0B-9lC78gYedObE5BaFlmNkpQc00%5Daudio.py%5B/...] front end which makes sockaudio.py behave like netcat | aplay and lets you handle the audio playback remotely.
I'm currently using a RPi3 with local sockaudio to feed a darkice stream to Broadcastify. It works *almost* as well as an old i5 laptop if have (running the same codebase) feeding a different set of tgids to Broadcastify.