Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while starting airprobe_rtldsr.py #11

Closed
KALRONG opened this issue Dec 3, 2014 · 26 comments
Closed

Error while starting airprobe_rtldsr.py #11

KALRONG opened this issue Dec 3, 2014 · 26 comments
Assignees

Comments

@KALRONG
Copy link

KALRONG commented Dec 3, 2014

Hi,

I have followed your instructions from a base system working with the old airprobe and while trying to use gr-gsm the error Im pasting below started to appear, I have done a clean install and install using pybombs of the packages you specify but the error still appear. Any idea of whats going on? rtl_sdr seems to be working fine.

Traceback (most recent call last):
File "/usr/local/bin/airprobe_rtlsdr.py", line 20, in
import osmosdr
File "/usr/local/lib/python2.7/dist-packages/osmosdr/init.py", line 26, in
from osmosdr_swig import *
File "/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 28, in
_osmosdr_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 24, in swig_import_helper
_mod = imp.load_module('_osmosdr_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0.0.0: undefined symbol: _ZN3uhd6device4findERKNS_13device_addr_tENS0_15device_filter_tE

@ptrkrysik
Copy link
Owner

Please show me output of this command:
find /usr/local -name libgnuradio-osmosdr

if it shows something like:

/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0
/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so
/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0.0.0
/usr/local/lib/libgnuradio-osmosdr.so

Then please run with root privileges:

ldconfig

@ptrkrysik ptrkrysik self-assigned this Dec 4, 2014
@KALRONG
Copy link
Author

KALRONG commented Dec 4, 2014

Hi, thanks for the quick response, when I ran that command nothing outputs but the library is there:

ls /usr/local/lib/libgnuradio-osmosdr*
/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so /usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0.0.0
/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0 /usr/local/lib/libgnuradio-osmosdr.so

@ptrkrysik
Copy link
Owner

It didn't work because the * wildcard wasn't displayed in my comment. I've corrected it now.
Did you try to run ldconfig and nothing changed?

@KALRONG
Copy link
Author

KALRONG commented Dec 4, 2014

The restult from the find is what you said:

/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0
/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0.0.0
/usr/local/lib/libgnuradio-osmosdr-0.1.5git.so
/usr/local/lib/libgnuradio-osmosdr.so

I had already ran ldconfig before but I did it again as root just in case but still the same error:

Traceback (most recent call last):
File "/usr/local/bin/airprobe_rtlsdr.py", line 20, in
import osmosdr
File "/usr/local/lib/python2.7/dist-packages/osmosdr/init.py", line 26, in
from osmosdr_swig import *
File "/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 28, in
_osmosdr_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/osmosdr/osmosdr_swig.py", line 24, in swig_import_helper
_mod = imp.load_module('_osmosdr_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-osmosdr-0.1.5git.so.0.0.0: undefined symbol: _ZN3uhd6device4findERKNS_13device_addr_tENS0_15device_filter_tE

@ptrkrysik
Copy link
Owner

There is problem with gr-osmosdr installation. Probably the easiest way for you to reproduce the bug will be running python and entering:

import osmosdr

@KALRONG
Copy link
Author

KALRONG commented Dec 4, 2014

I tried with python 2.7 and python 3.4, python 2.4 shows the above mentioned error of undefined symbol but with 3.4 I get the following error:

Python 3.4.2 (default, Oct 8 2014, 13:14:40)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.

import osmosdr
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/osmosdr/init.py", line 26, in
from osmosdr_swig import *
ImportError: No module named 'osmosdr_swig'

@ptrkrysik
Copy link
Owner

Did you use pybombs to install gr-osmosdr and gnuradio? If yes - maybe
try to unsinstall gr-osmosdr and install it again. Nothing else doesn't
come to my mind at this moment than playing with installation of
gr-osmosdr...

@ptrkrysik
Copy link
Owner

Nothing else doesn't come to my mind at this moment than playing with
installation of gr-osmosdr. Did you use pybombs to install gr-osmosdr
and gnuradio? If yes - maybe try to unsinstall gr-osmosdr (or manually
remove its files from /usr/local) and install it again.

@KALRONG
Copy link
Author

KALRONG commented Dec 4, 2014

Yes, I did use pybombs for the installation.

Funny thing, I cant manage to find that file in the system, only on the folder where I have the repo for gr-osmosdr that I downloaded manually. I will try to uninstall the current installation and install it manually, maybe something is missing in the pybombs scripts.

@KALRONG
Copy link
Author

KALRONG commented Dec 4, 2014

Finally managed to get rid of that error, cleaned up everything related to gnuradio and installed the gnuradio uhd-host gr-osmodr libosmosdr-dev from the debian testing repos (btw im using debian testing). Now is the airprobe itself the ones that shows this error:

linux; GNU C++ version 4.9.1; Boost_105500; UHD_003.007.003-0-unknown

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
Exact sample rate is: 2000000,052982 Hz
Using Volk machine: sse3_32_orc
Traceback (most recent call last):
File "/usr/local/bin/airprobe_rtlsdr.py", line 315, in
tb = airprobe_rtlsdr(ppm_param=options.ppm_param)
File "/usr/local/bin/airprobe_rtlsdr.py", line 152, in init
self.qtgui_freq_sink_x_0.set_trigger_mode(qtgui.TRIG_MODE_FREE, 0.0, 0, "")
AttributeError: 'freq_sink_c_sptr' object has no attribute 'set_trigger_mode'

@ptrkrysik
Copy link
Owner

This is probably some problem of incompatibility of python files
generated by gnuradio-companion with different gnu radio versions. The
python files should probably be generated from grc files during
compilation by grcc compiler. However I don't know how to setup this
correctly in cmake. You can enter gr-gsm/apps and run:

gnuradio-companion airprobe_rtlsdr.grc

@KALRONG
Copy link
Author

KALRONG commented Dec 5, 2014

I have tried that command and gnuradio-companion opens it without issue. What I see is that this errors appears after the volk machine message, may be its related?

@ptrkrysik
Copy link
Owner

Can you give me output message from gnu radio with the error? Is it the
same as before?

@KALRONG
Copy link
Author

KALRONG commented Dec 5, 2014

linux; GNU C++ version 4.9.1; Boost_105500; UHD_003.007.003-0-unknown

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
Exact sample rate is: 2000000,052982 Hz
Using Volk machine: sse3_32_orc
Traceback (most recent call last):
File "/usr/local/bin/airprobe_rtlsdr.py", line 315, in
tb = airprobe_rtlsdr(ppm_param=options.ppm_param)
File "/usr/local/bin/airprobe_rtlsdr.py", line 152, in init
self.qtgui_freq_sink_x_0.set_trigger_mode(qtgui.TRIG_MODE_FREE, 0.0, 0, "")
AttributeError: 'freq_sink_c_sptr' object has no attribute 'set_trigger_mode'

Same error as before, if I run gnuradio-companion airprobe_rtlsdr.grc it opens just fine.

@ptrkrysik
Copy link
Owner

And does it run without problems when you push F6?

@KALRONG
Copy link
Author

KALRONG commented Dec 5, 2014

Yes, it works just fine.

@KALRONG
Copy link
Author

KALRONG commented Dec 5, 2014

Managed to get it working launching as sudo :S

@ptrkrysik
Copy link
Owner

Therefore it must be problem that python file generated on my machine
doesn't work on all configurations. It should be probably generated at
the time of building of gr-gsm. But as I don't know how to do that yet I
will create an issue relating to this and change Usage in the readme. As
soon as I will have some time to do this ;)

@KALRONG
Copy link
Author

KALRONG commented Dec 5, 2014

glad to get it fixed hehe now lets test it :)

@KALRONG KALRONG closed this as completed Dec 5, 2014
@u581
Copy link

u581 commented Jan 28, 2015

Hello my hackrf not working with gr-gsm. No gsm data only Using HackRF One with firmware 2014.08.1
Using Volk machine: avx_64_mmx_orc
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Rtl sdr dongle work fine.
help me please with hackrf.
thx

@ptrkrysik
Copy link
Owner

These 'OOOO' means that there is probably some problem with
communication with HackRF. Overflows usually happen when computer can't
consume samples from a receiver. It's strange however that rtl-sdr
works. Can you check that your HackRF works with some example? You can
for example open airprobe_rtlsdr.grc in gnuradio-companion and remove
everything beside fft gui sink and osmosdr source (in case you don't
know how to do this I can provide a grc file). Then report if it works
or not.

@u581
Copy link

u581 commented Jan 29, 2015

Thanks for the reply. Yesterday I reinstalled ubuntu 14.10 and all work fine.But i dont understend why rtl decodes all channels, hack only some hack
Thx

@ptrkrysik
Copy link
Owner

If you send me GSM signal recorded with HackRF, I can look into it to
find the cause of the problem.

@u581
Copy link

u581 commented Jan 29, 2015

Can you help me and explain how to do this?

@ptrkrysik
Copy link
Owner

First you need to locate some GSM C0 frequency. You can do this with use
of airprobe_rtlsdr.py and your RTL SDR device. The frequency for which
you see content of messages printed on the output is a good one. Write
it down.

Then download the file and save it as receive_to_file.grc:
https://app.box.com/s/ixtcqesb6k0kqztmgzxqay53ktgsut1t

Open it in gnuradio companion. Set value for parameter fc (double click)
from 939.3e6 to the value that you've written down. Run the flowgraph
with F6.

Send the recording (test_file.cfile) to me using some file transfering
site (for example box.com)

@u581
Copy link

u581 commented Jan 29, 2015

I'm so sorry, if gain-my bug, all wark fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants