[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] RTTY receiver

From: barry
Subject: Re: [Discuss-gnuradio] RTTY receiver
Date: Wed, 12 Jun 2019 06:59:15 -0400
User-agent: Roundcube Webmail/1.3.8

Hi Kyeong,

1) In lib/radioteletype/baudot_encode_bb.h I tried replacing "static const char" with "static const signed char", but it caused complications in radioteletype/baudot_encode_bb.cc, so I took an alternate approach:
 * modified by Barry Duggan KV4FV
 * 11 June 2019
* with RaspberryPi compiler, an error is produced comparing char and signed char values. * to circumvent this problem, I have changed all "-1" entries to "0x7f" in the table
 * and in the code
So now the 'make' works without errors.

2) In 'sudo make install' I got the following:
-- Installing: /usr/local/lib/python2.7/dist-packages/radioteletype/_radioteletype_swig.so -- Set runtime path of "/usr/local/lib/python2.7/dist-packages/radioteletype/_radioteletype_swig.so" to ""
which leads to a run-time error...
Traceback (most recent call last):
File "/home/pi/gr-radioteletype/examples/rtty_demod.py", line 30, in <module>
    from radioteletype.demodulators import rtty_demod_cb
File "/usr/local/lib/python2.7/dist-packages/radioteletype/demodulators.py", line 9, in <module>
    from radioteletype_swig import (
File "/usr/local/lib/python2.7/dist-packages/radioteletype/radioteletype_swig.py", line 21, in <module>
    _radioteletype_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/radioteletype/radioteletype_swig.py", line 20, in swig_import_helper
    return importlib.import_module('_radioteletype_swig')
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
ImportError: No module named _radioteletype_swig

So, where should '_radioteletype_swig.so' go, and how do I specify it?

3) When I loaded 'examples/rtty_demod.grc', there was a missing block 'pulseaudio_pa_sink'. Where is it, and what does it do? Since it didn't seem directly required for the rest of the example to work, I deleted it and the two blocks feeding it.

4) I really appreciate all that you and the others are doing to help with this.

Many thanks, Barry

On 2019-06-11 00:05, Kyeong Su Shin wrote:
Hello Barry,

Apparantly, the module has portability issues (will build on x86 but
won't build on ARM) due to data type issues. To build the package, you
will have to edit lib/baudot_encode_bb_impl.h:

"static const char ascii_to_letters[128]" should become

"static const signed char ascii_to_letters[128]",  and

"static const char ascii_to_figures[128]" should become

"static const signed char ascii_to_figures[128]".

That will allow the module to build, although you may have to make
further changes to get "Boudot Encode" block working correctly (I
didn't test that; maybe I should make a pull request after that).


Kyeong Su Shin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]