A couple thoughts about rx.py
- it's a work in progress and Max is currently integrating some enhancements I worked on. These include improvements to the FFT plot for time based averaging and a tuning line to make it easier to see where the centre is. If you want to try these before they hit the git repo, look in the "virtual op25" thread for my recent posts.
- The traffic tab is superseded by the curses terminal screen and the log file. A tuned nac is displayed at the top of the terminal and tuning errors etc can be found in stderr.2. I always run mine with a dedicated command window running "tail -f stderr.2"
Much as with scope.py, you can start rx.py without the -T parameter and have it report the nac of whatever it tunes to.
pi@raspberrypi:~ $ nc -kluvw 1 127.0.0.1 23456 | aplay -c1 -f S16_LE -r 8000
Listening on [127.0.0.1] (family 0, port 23456)
Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Connection closed, listening again.
underrun!!! (at least 3221.663 ms long)
underrun!!! (at least 510.575 ms long)
Connection closed, listening again.
Connection closed, listening again.
Okay thanks for the explanation. I think I need to pull things down from github again. Last I did that was June 29th. I get a screwed up screen output, from rx.py, where the text basically over rights itself, etc.
Here is an animated gif example of that:
https://gifyu.com/image/brt2
Another guy who who is working on this in parallel with me, has gotten a little further and reports he has some broken audio. Do you have any insight on that?
Code:pi@raspberrypi:~ $ nc -kluvw 1 127.0.0.1 23456 | aplay -c1 -f S16_LE -r 8000 Listening on [127.0.0.1] (family 0, port 23456) Playing raw data 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono Connection closed, listening again. underrun!!! (at least 3221.663 ms long) underrun!!! (at least 510.575 ms long) Connection closed, listening again. Connection closed, listening again.
pi@raspberrypi:~/op25/build $ sudo make install
[ 24%] Built target gnuradio-op25
[ 27%] Built target test-op25
[ 29%] Built target _op25_swig_doc_tag
[ 30%] Built target _op25_swig_swig_tag
[ 35%] Built target pygen_op25_gr_op25_swig_c8dae
[ 40%] Built target _op25_swig
[ 42%] Built target pygen_op25_gr_op25_python_59195
[ 42%] Built target pygen_op25_gr_op25_apps_383eb
[ 61%] Built target imbe_vocoder
[ 62%] Building CXX object op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p1_fdma.cc.o
/home/pi/op25/op25/gr-op25_repeater/lib/p25p1_fdma.cc:243:25: error: no ‘void gr::op25_repeater::p25p1_fdma::reset_timer()’ member function declared in class ‘gr::op25_repeater::p25p1_fdma’
p25p1_fdma::reset_timer()
^
op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/build.make:326: recipe for target 'op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p1_fdma.cc.o' failed
make[2]: *** [op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/p25p1_fdma.cc.o] Error 1
CMakeFiles/Makefile2:682: recipe for target 'op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/all' failed
make[1]: *** [op25/gr-op25_repeater/lib/CMakeFiles/gnuradio-op25_repeater.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
pi@raspberrypi:~/op25/build $
Nevermind, found the missing file p25p1_fdma.h and it looks like the make install is going to complete now.
./rx.py --args 'rtl' -N LNA:49 -f 772.63125e6 -S 2560000 -q 0 -V -T trunk.tsv 2>stderr.2
tail -F stderr.2
If you didn't do the "git checkout max " option when you installed it, you'll have scope.py instead of rx.py
That's okay, I should have read more of the thread.
I'm still not convinced this is working right on the Pi. I start it with:
All I ever see is:Code:./rx.py --args 'rtl' -N LNA:49 -f 772.63125e6 -S 2560000 -q 0 -V -T trunk.tsv 2>stderr.2 tail -F stderr.2
I assume I'll see something more when there is voice traffic.
And I think this indicates I have good signal, so what is missing?
./rx.py -P fft --args "rtl=0" --gains 'lna:36' -O 'default' -D cqpsk -f 773.84375e6 -S 1440000 -q 0 -T trunk-leo.tsv -q 1 -2 -w 2> stderr.2
./rx.py --args 'rtl' --gains 'lna:49' -f 772.63125e6 -T trunk.tsv -q 1 -D cqpsk -S 2560000 -P constellation -w 2> stderr.2