BorIP server + HDSDR on Linux/OS X

8,390 views
Skip to first unread message

Balint Seeber

unread,
Jun 3, 2012, 9:19:04 AM6/3/12
to ultra-c...@googlegroups.com
Dear group,

It's wonderful to see the amount of activity here!

I'd like to throw the following two items into the ring:

  • BorIP server in gr-baz for Linux and Mac OS X allows you to use HDSDR under Wine, and can connect to multiple hardware devices from the same instance. The server requires GNU Radio to be installed - this is different from the Windows server, and is far more flexible (you can make your own interface in GNU Radio Companion and not have to write any code!).

    More information can be found here: http://wiki.spench.net/wiki/BorIP_Server

    Please watch this video for more information: http://www.youtube.com/watch?v=46VbuViPKt4
    It demonstrates the many ways you can use BorIP, shows HDSDR running under Linux, and includes some interesting experiments (e.g. sniffing the LO of an E4000 tuner, and using HDSDR as an analysis tool for a custom GNU Radio flowgraph).
    There is also this video of a quick demo on OS X: http://www.youtube.com/watch?v=492Ub66IsRA

  • To help people become more familiar with GNU Radio, I've started putting together a video tutorial series. Parts 1 & 2 are now available - more to follow...
    (1) http://www.youtube.com/watch?v=N9SLAnGlGQs
    (2) http://www.youtube.com/watch?v=LzgDZytr7no
Hope you find it useful! Let me know how you get on...

Kind regards,
Balint

PS: I have built up a massive to-do list for the ExtIO plugin, and now that the cross-platform server is out there, I'll (try to) start releasing new versions with various fixes/improvements soon. Thank you all for trying it out, and for your feedback!

Dragan

unread,
Jun 3, 2012, 4:04:05 PM6/3/12
to ultra-c...@googlegroups.com
This is great news. Been waiting for BorIP for Linux.
Thanks

Sexton Sexton

unread,
Jun 4, 2012, 4:34:45 AM6/4/12
to ultra-c...@googlegroups.com
hi, i'm stuck at the following when trying to run borip_server.py

ImportError: /usr/local/lib/libgnuradio-baz.so.0: undefined symbol: _ZTI13gr_sync_block

Can you give me a clue please? 

Adam Nielsen

unread,
Jun 4, 2012, 8:41:31 AM6/4/12
to ultra-c...@googlegroups.com
Did you recompile gr-baz and install it in the same place as the previous
version, overwriting it?

Cheers,
Adam.

Dragan

unread,
Jun 5, 2012, 10:23:22 AM6/5/12
to ultra-c...@googlegroups.com
I get this:


[galileo@galileo apps]$ ./borip_server.py -vgcr
==> Starting TCP server on port: 28888
==> TCP server running on ('0.0.0.0', 28888) in thread: Thread-1
==> Enabled realtime scheduling
==> Connection from: ('192.168.1.46', 1191)
< DEVICE -
> DEVICE RTL readlen=8192 tuner=e4k
--> Creating device with hint: RTL readlen=8192 tuner=e4k
--> ID: RTL
--> Hint parts: ['readlen=8192', 'tuner=e4k']
--> Args: readlen=8192,tuner="e4k"
[UDP Sink "udp_sink (1)"] Payload size: 1472
[UDP Sink "udp_sink (1)"] BorIP: enabled
[UDP Sink "udp_sink (1)"] Connected: 127.0.0.1:28888
~~> Failed to create: 'gr_udp_sink_sptr' object has no attribute 'set_status_msgq'
Traceback (most recent call last):
  File "/usr/local/lib64/python2.7/site-packages/baz/borip_server.py", line 673, in _create_device
    device = eval("borip_" + id + ".borip_" + id + "(" + args_str + ")")
  File "<string>", line 1, in <module>
  File "/home/galileo/temp/gnuradio/gr-baz/apps/borip_RTL.py", line 41, in __init__
    self.sink.set_status_msgq(sink_msgq_in)
AttributeError: 'gr_udp_sink_sptr' object has no attribute 'set_status_msgq'
< DEVICE - 'gr_udp_sink_sptr' object has no attribute 'set_status_msgq'
==> Disconnection from: ('192.168.1.46', 1191)


I guess the udp block in grc is the problem, I tried patching but this patch (http://svn.spench.net/main/gr-baz/patch/gnuradio-3.4.1-13-gcb23b7a2/gr_udp_source-borip.diff)
fails with grc 3.6.1.

Any hints?

Miguel A. Vallejo

unread,
Jun 5, 2012, 10:55:33 AM6/5/12
to ultra-c...@googlegroups.com
>>> ~~> Failed to create: 'gr_udp_sink_sptr' object has no attribute 'set_status_msgq'

>>> AttributeError: 'gr_udp_sink_sptr' object has no attribute 'set_status_msgq'

You need to update GNU Radio.

Dragan

unread,
Jun 5, 2012, 12:07:27 PM6/5/12
to ultra-c...@googlegroups.com


Gnu radio: 3.6.1git-103-gb7e2c8ba compiled yesterday.

Balint Seeber

unread,
Jun 5, 2012, 12:35:50 PM6/5/12
to ultra-c...@googlegroups.com
Please try this in the Python interpreter:

>>> import baz
>>> sink = baz.udp_sink(4, "127.0.0.1", 28888, 1472, False, True)
Should now print:

[UDP Sink "udp_sink (1)"] Payload size: 1472
[UDP Sink "udp_sink (1)"] BorIP: enabled
[UDP Sink "udp_sink (1)"] Connected: 127.0.0.1:28888
Then finally enter:
>>> dir(a)
This is the output for me:
['__class__', '__del__', '__delattr__', '__deref__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__swig_destroy__', '__weakref__', 'check_topology', 'connect', 'detail', 'disconnect', 'history', 'input_signature', 'name', 'nitems_read', 'nitems_written', 'output_multiple', 'output_signature', 'payload_size', 'relative_rate', 'set_borip', 'set_detail', 'set_payload_size', 'set_status_msgq', 'start', 'stop', 'this', 'thisown', 'to_basic_block', 'unique_id']


Then have a look toward the end of the returned attribute list to see if yours also contains 'set_status_msgq'.

Balint Seeber

unread,
Jun 5, 2012, 1:41:06 PM6/5/12
to ultra-c...@googlegroups.com
The 'set_status_msgq' is something I added, so updating GNU Radio won't help.
I've discovered what the problem is: the 'udp_sink' type in SWIG is being overriden with the original in-tree GNU Radio UDP Sink block. Swapping the import order in the interpreter fixes the issue, but not when running the server itself.
I'll fix this in the morning by separating the gr-baz UDP Source/Sink from the original in-tree code (they are shared in my setup at the moment) and post an update...
Thanks for testing!

Dragan

unread,
Jun 5, 2012, 2:22:07 PM6/5/12
to ultra-c...@googlegroups.com
Python 2.7.3 (default, Apr 30 2012, 21:18:11)
[GCC 4.7.0 20120416 (Red Hat 4.7.0-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import baz
>>> sink = baz.udp_sink(4, "127.0.0.1", 28888, 1472, False, True)
[UDP Sink "udp_sink (0)"] Payload size: 1472
[UDP Sink "udp_sink (0)"] BorIP: enabled
[UDP Sink "udp_sink (0)"] Connected: 127.0.0.1:28888
>>> dir(a)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'a' is not defined



You probably meant: dir(sink) ?
>>> dir(sink)

['__class__', '__del__', '__delattr__', '__deref__', '__dict__', '__doc__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__swig_destroy__', '__weakref__', 'check_topology', 'connect', 'detail', 'disconnect', 'history', 'input_signature', 'name', 'nitems_read', 'nitems_written', 'output_multiple', 'output_signature', 'payload_size', 'relative_rate', 'set_borip', 'set_detail', 'set_payload_size', 'set_status_msgq', 'start', 'stop', 'this', 'thisown', 'to_basic_block', 'unique_id']


set_status_msgq is present.

I'm not familiar with python, sorry I can't help more.

 

Balint Seeber

unread,
Jun 5, 2012, 10:26:35 PM6/5/12
to ultra-c...@googlegroups.com
Thank you for that.

I believe I've fixed it now - please update to latest, compile, install and try again.

Dragan

unread,
Jun 6, 2012, 6:04:56 AM6/6/12
to ultra-c...@googlegroups.com
It works.
Thanks

Random Walk

unread,
Jun 6, 2012, 12:09:57 PM6/6/12
to ultra-c...@googlegroups.com

I must be doing something wrong because the last two times Ive tried to compile gr-baz I have gotten this error..

baz_udp_source.cc:224: error: 'SO_RCVBUFFORCE' was not declared in this scope

I have been trying to set all my possible include directories because on 3.6.1git they seemed to have changed something and otherwise all the swig "i" files are not found.

Dragan

unread,
Jun 6, 2012, 1:10:57 PM6/6/12
to ultra-c...@googlegroups.com
Try this: http://www.sbrac.org/files/build-gnuradio

It builds latest gnuradio,rtl_sdr,gr-baz,osmo,usrp etc.

Random Walk

unread,
Jun 6, 2012, 2:05:55 PM6/6/12
to ultra-c...@googlegroups.com
I'm on an Intel Mac running OS X

On Wednesday, June 6, 2012 1:10:57 PM UTC-4, Dragan wrote:
Try this: http://www.sbrac.org/files/build-gnuradio

Dragan

unread,
Jun 6, 2012, 3:09:05 PM6/6/12
to ultra-c...@googlegroups.com
Can't help you with that, never used a Mac.

Balint Seeber

unread,
Jun 6, 2012, 7:29:48 PM6/6/12
to ultra-c...@googlegroups.com
Thanks for raising this. I'll fix it in the repo, but for the moment just remove the 'FORCE' from the end of the flag and you'll be fine!

Adam Nielsen

unread,
Jun 6, 2012, 7:40:31 PM6/6/12
to ultra-c...@googlegroups.com
Just another FYI when running HDSDR under Linux with BorIP - when you connect
to the device and sometimes when changing frequencies, HDSDR will appear to
freeze. The solution is to move the mouse around over the HDSDR window, which
seems to send enough messages to it to wake it back up again!

Cheers,
Adam.

Balint Seeber

unread,
Jun 6, 2012, 9:37:20 PM6/6/12
to ultra-c...@googlegroups.com
Thanks Adam, this is true - Wine coming to the fore there.
Will look into this for the next release.

Balint Seeber

unread,
Jun 7, 2012, 8:06:27 AM6/7/12
to ultra-c...@googlegroups.com
Fixed in the repo.

Alain De Carolis

unread,
Jun 10, 2012, 7:18:56 PM6/10/12
to ultra-c...@googlegroups.com
Hello Balint,

I am trying to run the Borip server on OSX. It compiles and run.
I have always run HDSDR via Parallels (virtual machine). Now that I try to install it via WineBottler I have a problem: Zadig will not discover any USB devices making impossible to use of ExtIO.
How do you use Zadig on Wine>

Thanks

Alain

Balint Seeber

unread,
Jun 10, 2012, 9:07:53 PM6/10/12
to ultra-c...@googlegroups.com
Hi Alain,
Thanks for paving the way here with the OS X instructions. Wine does not have native libusb/WinUSB support, so you need to have the ExtIO in HDSDR connect via the network to 'localhost' where the BorIP server will be running (i.e. not directly to your hardware). It will therefore use the native OS X libusb via GNU Radio instead and stream samples back through the loopback device.

Alain De Carolis

unread,
Jun 10, 2012, 9:48:45 PM6/10/12
to ultra-c...@googlegroups.com
Hi Balint,

you're very welcome. Thank you for making all of this possible.

I'm sorry but I really cannot figure how am I supposed to install your ExtIO DLL under Wine. Do I use the bundle (ExtIO_USRP+FCD+RTL2832 + BorIP-1.2 BETA10_Setup.exe) or do I need to install HDSDR standalone? I already tried both unsuccessfully...
Please explain how you have installed your HDSDR + ExtIO under Wine. All I got right now is an unresponsive ExtIO button that always stay OFF.

Thanks

Alain

Adam Nielsen

unread,
Jun 10, 2012, 10:01:22 PM6/10/12
to ultra-c...@googlegroups.com
> I'm sorry but I really cannot figure how am I supposed to install your ExtIO
> DLL under Wine. Do I use the bundle (ExtIO_USRP+FCD+RTL2832 + BorIP-1.2
> BETA10_Setup.exe) or do I need to install HDSDR standalone? I already tried
> both unsuccessfully...
> Please explain how you have installed your HDSDR + ExtIO under Wine. All I got
> right now is an unresponsive ExtIO button that always stay OFF.

I just installed the bundle with Wine, and skipped all the Zadig stuff. If
the ExtIO button is off, the ExtIO .dll mustn't have been copied into the
HDSDR installation directory for some reason. Maybe double-check that you're
installing the bundle correctly.

Cheers,
Adam.

Alain De Carolis

unread,
Jun 10, 2012, 10:30:57 PM6/10/12
to ultra-c...@googlegroups.com
Adam,

I finally found what the problem was.

In my various attempts I came to a situation in which an intermediate screen said "Failed to create device without device hint". After you press OK nothing happened but, guess what... the ExtIO panel was behind the main screen and I never noticed that!

Hope this will help somebody else

Alain

Balint Seeber

unread,
Jun 10, 2012, 10:33:17 PM6/10/12
to ultra-c...@googlegroups.com
Hopefully you should be able to proceed as if you were setting up under Windows, except - as Adam mentions - you can completely skip Zadig (you'll need to tell the installer to copy over libusb0.dll though, when it asks).

For others' reference: you can use the installer to download and automatically install HDSDR (no separate download necesary, just make sure you install it into the same path that you used for the destination in the bundle's main installer). Once HDSDR and the ExtIO are in the same directory, the Device Control window should appear.

You will need to install the VC2008 runtime (automatically detected & downloaded by bundle installer). However I had problems with my Wine - the runtime installer failed. The work-around (after it has automatically downloaded it) is:

cd .wine/drive_c/Program\ Files/Sound/HDSDR/Downloaded/
wine vcredist_x86_2008_sp1.exe /extract
cd VC2008/
wine install.exe

and that will install the runtime successfully.

Then you should be set!

If you get it working and have a chance, would love to see a video of it running on someone else's machine! :)

Alain De Carolis

unread,
Jun 13, 2012, 8:47:40 AM6/13/12
to ultra-c...@googlegroups.com
Balint,

here is the video: http://www.youtube.com/watch?v=WrJS86nDCDE

Thanks again

Alain

Balint Seeber

unread,
Jun 13, 2012, 8:21:28 PM6/13/12
to ultra-c...@googlegroups.com
Hi Alain,
Thanks very much for taking the time to do this!
Left some comments on the YT page :)
Regarding the delays, please see Adam's comment above - I'll try to fix this for the next release...

geo_stef

unread,
Jun 21, 2012, 9:28:41 PM6/21/12
to ultra-c...@googlegroups.com
I have this problem:

when i installed the hdsdr in wine in the beging when i pressed start the programme freezed.

so i repaired the vc2008 and now on the terminal window with borip server running i have this prob: "Segmentation fault (core dumped)"

tdbone1

unread,
Jun 22, 2012, 2:07:01 PM6/22/12
to ultra-c...@googlegroups.com
I just want to thank-you for all the work you put into this project and really trying to help sdr grow.
I really like the video tutorials as you talk clear and explain in a way i can understand
i can not wait for the next version of extio as i use hdsdr and really would like to use trunking (currently can not select both my rtlsdr independly by ven/dev in the extio plugin menu as both my rtlsdr devices show the same info)
my fav video that you have done has got to be this one
it shows alot about identifying different types of signals
if you are new like me you have only probably messed with NFM and AM
i have not done anything else yet but with videos like that i know i can

thanks again for all your hard work balint

Adam Nielsen

unread,
Jun 23, 2012, 7:59:17 AM6/23/12
to ultra-c...@googlegroups.com
> I have this problem:
>
> when i installed the hdsdr in wine in the beging when i pressed start the
> programme freezed.

Try moving the mouse around in the HDSDR window. I have to do this to
unfreeze HDSDR.

> so i repaired the vc2008 and now on the terminal window with borip server
> running i have this prob: "Segmentation fault (core dumped)"

I'm not sure what would be causing this. You'd probably have to get a
backtrace with GDB or similar to work out why it's crashing.

Cheers,
Adam.

tdbone1

unread,
Jul 1, 2012, 7:49:41 PM7/1/12
to ultra-c...@googlegroups.com
where is that new ExtIO dll at Balint?
can we get an update?
thanks

Aron

unread,
Jul 11, 2012, 9:39:48 AM7/11/12
to ultra-c...@googlegroups.com


First off the videos are really helpful please keep them up!

So I've been trying to get the HDSDR working on linux its pretty close HDSDR is working under wine.

I've used the script from http://www.sbrac.org/files/build-gnuradio to carry out the "install"

Then running up the borip_server results in the following:



./borip_server.py -vgcr
==> Starting TCP server on port: 28888
==> TCP server running on ('0.0.0.0', 28888) in thread: Thread-1
==> Enabled realtime scheduling
==> Connection from: ('127.0.0.1', 44055)
< DEVICE -
> DEVICE 0
--> Creating device with hint: 0
--> ID: usrp_legacy
--> Hint parts: ['0']
--> Args: 0
~~> Failed to import: cannot import name usrp

Traceback (most recent call last):
  File "/usr/local/lib64/python2.7/site-packages/baz/borip_server.py", line 665, in _create_device
    exec "import borip_" + id
  File "<string>", line 1, in <module>
  File "/home/xxxxxxx/Downloads/gnuradio/gr-baz/apps/borip_usrp_legacy.py", line 12, in <module>
    from grc_gnuradio import usrp as grc_usrp
ImportError: cannot import name usrp
< DEVICE - cannot import name usrp
==> Disconnection from: ('127.0.0.1', 44055)
==> Connection from: ('127.0.0.1', 48294)
< DEVICE -
> DEVICE -
--> Creating device with hint: -
--> ID: usrp_uhd
--> Hint parts: ['-']
--> Args: "-"
~~> Failed to import: No module named borip_usrp_uhd

Traceback (most recent call last):
  File "/usr/local/lib64/python2.7/site-packages/baz/borip_server.py", line 665, in _create_device
    exec "import borip_" + id
  File "<string>", line 1, in <module>
ImportError: No module named borip_usrp_uhd
< DEVICE - No module named borip_usrp_uhd
==> Disconnection from: ('127.0.0.1', 48294)

Any ideas where I'm going wrong?

For info:
$ gnuradio-config-info -v
3.6.2git-138-ge1cfa5ee

Adam Nielsen

unread,
Jul 11, 2012, 5:23:10 PM7/11/12
to ultra-c...@googlegroups.com
> --> Creating device with hint: 0
> --> ID: usrp_legacy
> ~~> Failed to import: cannot import name usrp

Are you sure you're wanting to connect to a USRP device? Maybe you forgot to
supply the "RTL" hint in the HDSDR ExtIO options?

Cheers,
Adam.

Aron

unread,
Jul 12, 2012, 4:22:32 PM7/12/12
to ultra-c...@googlegroups.com
Yep I'm trying to connect to a USRP1 connected via USB so if I put RTL in then I get the following:


./borip_server.py -vgcr
==> Starting TCP server on port: 28888
==> TCP server running on ('0.0.0.0', 28888) in thread: Thread-1
==> Enabled realtime scheduling
==> Connection from: ('127.0.0.1', 53349)
< DEVICE -
> DEVICE RTL
--> Creating device with hint: RTL
--> ID: RTL
[UDP Sink "udp_sink (1)"] Payload size: 1472
[UDP Sink "udp_sink (1)"] BorIP: enabled
[UDP Sink "udp_sink (1)"] Connected: 127.0.0.1:28888
RTL2832 Source block configuration:
    Read length (bytes): 32768
    Buffer enabled: yes
    Buffer multiplier: 8
    Buffer size (samples): 131072
    Samples per read: 16384
    Buffer level: 50.0%
Could not find a compatible device
~~> Failed to create: Failed to create RTL2832 Source: source

Traceback (most recent call last):
  File "/usr/local/lib64/python2.7/site-packages/baz/borip_server.py", line 673, in _create_device
    device = eval("borip_" + id + ".borip_" + id + "(" + args_str + ")")

  File "<string>", line 1, in <module>
  File "/home/xxxxxxxx/Downloads/gnuradio/gr-baz/apps/borip_RTL.py", line 56, in __init__
    if self.source.create() == False: raise Exception("Failed to create RTL2832 Source: source")
Exception: Failed to create RTL2832 Source: source
< DEVICE - Failed to create RTL2832 Source: source
==> Disconnection from: ('127.0.0.1', 53349)

Please let me know if there is anything else I can try, I even got down a copy of gnuradio 3.6.1 and tried that thinking it might be due to gnuradio been the latest.

I figure there is somthing not right at the line "Failed to import: cannot import name usrp" but my python skills are less than great to properly debug this...

Thanks,

Aron

Adam Nielsen

unread,
Jul 12, 2012, 6:45:17 PM7/12/12
to ultra-c...@googlegroups.com
> Yep I'm trying to connect to a USRP1 connected via USB so if I put RTL in then
> I get the following:

If you're trying to use a USRP you're probably better off asking on the GNU
Radio mailing list (this list is for ultra-cheap SDR after all, and the USRP
is definitely not cheap) however I remember seeing something about the USRP
needing additional libraries installed before it can be used. Since BorIP for
Linux uses GNU Radio for device control, maybe you could have a look for
instructions on how to get the USRP set up with GNU Radio. Once that's
working, so should BorIP.

Cheers,
Adam.

Gergely Barta

unread,
Sep 17, 2012, 5:07:40 PM9/17/12
to ultra-c...@googlegroups.com


Hi,

Is there any method to run borip_server on a linux machine, without graphical desktop installed?

What do I have to install for do that?

Thanks,
Gergely

Adam Nielsen

unread,
Sep 17, 2012, 8:09:36 PM9/17/12
to ultra-c...@googlegroups.com
> Is there any method to run borip_server on a linux machine, without graphical
> desktop installed?
>
> What do I have to install for do that?

The BorIP server is a console application which requires GNURadio. I don't
think GNURadio requires a graphical desktop either, so are you having problems
installing either of these things normally?

Cheers,
Adam.

Gergely Barta

unread,
Sep 18, 2012, 3:47:05 AM9/18/12
to ultra-c...@googlegroups.com

I never used gnuradio before (learning gnuradio is on my to do list), I only saw those screenshots and videos with flowgraphs. I tought it needs graphical desktop.
I ran the build-gnuradio script. It installed a lot of stuff. I can find the borip_server in the apps directory, but it only contains 4-5 lines.
How can I start it?

Thanks,
Gergely

Adam Nielsen

unread,
Sep 18, 2012, 8:05:49 AM9/18/12
to ultra-c...@googlegroups.com
> I never used gnuradio before (learning gnuradio is on my to do list), I only
> saw those screenshots and videos with flowgraphs. I tought it needs graphical
> desktop.

That's the "grc" program which simply writes the Python code for you that ties
all the GNURadio modules together. If you don't run X then you just have to
write the Python code by hand in your favourite text editor instead.

> I ran the build-gnuradio script. It installed a lot of stuff. I can find the
> borip_server in the apps directory, but it only contains 4-5 lines.
> How can I start it?

I run "python2 borip_server.py" in that apps/ directory and it works:

$ python2 ./borip_server.py
==> Starting TCP server on port: 28888
==> TCP server running on ('0.0.0.0', 28888) in thread: Thread-1

Cheers,
Adam.

Gergely Barta

unread,
Sep 18, 2012, 11:32:52 AM9/18/12
to ultra-c...@googlegroups.com
If I try to run it, I get this:

$ python2 borip_server.py

Traceback (most recent call last):
  File "borip_server.py", line 3, in <module>
    from baz import borip_server
ImportError: No module named baz


My borip_server.py looks like this:
#!/usr/bin/env python

from baz import borip_server

if __name__ == "__main__":
    borip_server.main()
 

Adam Nielsen

unread,
Sep 18, 2012, 7:01:31 PM9/18/12
to ultra-c...@googlegroups.com
> If I try to run it, I get this:
>
> $ python2 borip_server.py
> Traceback (most recent call last):
> File "borip_server.py", line 3, in <module>
> from baz import borip_server
> ImportError: No module named baz

It looks like you haven't installed gr-baz, or you installed it to a location
that's not in your $PYTHONPATH.

For me, this lists all the gr-baz modules:

$ ls /usr/lib/python2.7/site-packages/baz/

Cheers,
Adam.

Gergely Barta

unread,
Sep 19, 2012, 5:05:44 AM9/19/12
to ultra-c...@googlegroups.com
Can you send me the file list of your /usr/lib/python2.7/site-packages/baz/ ???

Gergely Barta

unread,
Sep 19, 2012, 6:04:59 AM9/19/12
to ultra-c...@googlegroups.com
Ok, I was wrong. I haven't set my pythonpath.

After setting it, it is almost ok.

Only one thing left. Which ports do I have forward on my router to the borip_server?
I made a TCP 28888 forward, the HDSDR PC can connect/create the device, but when I press the start button, itt is total silent, no waterfall. So what is the "data" port to forward it on the router?

Gergely

Adam Nielsen

unread,
Sep 19, 2012, 10:09:30 PM9/19/12
to ultra-c...@googlegroups.com
> I made a TCP 28888 forward, the HDSDR PC can connect/create the device,
> but when I press the start button, itt is total silent, no waterfall. So
> what is the "data" port to forward it on the router?

That should be all you need. What does borip_server say when you
connect to it?

Are you using the right device hint etc. in HDSDR as per normal?

Cheers,
Adam.

Gergely Barta

unread,
Sep 25, 2012, 12:17:22 PM9/25/12
to ultra-c...@googlegroups.com
Hi,

I find the error and the solution. I try to explain it, but I still not very professional with English language, so if something is not clear, please ask me, and I'll try to explain it other way.

My first try was:

The BorIP server has an IP address: 192.168.233.8. Before this PC is a router (MikroTik, not a cheap soho type), with IP 192.168.233.1. The router's outer address is 172.30.6.4 (I know, this is a private address too, but this is a part of a big wireless internet service providing system, with a lot of public and private adresses.) I made a dst-nat (destination nat / port forward) in the router: every incoming 28888 TCP port from the outside will be forwarded to 192.168.233.8:28888.
With this setup I ran HDSDR on my laptop (from outside of the router) connected to 172.30.6.4:28888. When I pressed the create button in HDSDR, everything was ok, and I saw on the BorIP console the connection. Then I pressed START in HDSDR, the waterfall strarted, but with empty data....
In the router's config software there is a Torch named tool, with that I can see the data streams in each interface. I saw an 15Mbps connection from 192.168.233.8 to 192.168.233.1, the type was UDP, but there wasn't source and destination ports in the packets.
WHY? Because the BorIP server thinks the connection came from 192.168.233.1 (because the dst-nat), it sends back the packet to this address (but without src and dst port data), and the router cannot assign it to a related connection. So there was 15Mbps RX data on this interface, and none TX on any other interface.

The solution:
I made a vpn connection, so my laptop from remote got 192.168.233.10 address. There was no NAT between the laptop and server, just plain routing. When I made a connection from laptop, the borip saw, that it comes from 192.168.233.10, and it sends back the stream to this address (but still with no src and dst port data). With this setup it worked.

I think there is some bug in the BorIP ethernet packet handling, with this empty src and dst port data in the UDP stream. If somehow it will be fixed, it will work from NAT-ed network.

Gergely
Message has been deleted
Message has been deleted

Pawel Janowski

unread,
Feb 15, 2013, 2:38:23 AM2/15/13
to ultra-c...@googlegroups.com
use a GQRX under linux : https://groups.google.com/forum/#!forum/gqrx

P.

Ron Morell

unread,
Jan 2, 2014, 11:11:41 PM1/2/14
to ultra-c...@googlegroups.com
Dear Balint,
I am following along with this thread and your information at http://wiki.spench.net/wiki/BorIP .  I've downloaded Gr-baz and am in the process of compiling it.  I'm using openSUSE 13.1 (probably a problem...) and have gnuradio installed.  This is the installed package list for gnuradio:
linux-i6yo:/home/ron/gr-baz/gr-baz # rpm -qa |grep gnuradio
libgnuradio0-3.7.2.1-1.1.x86_64
libgnuradio-osmosdr-0_1_1git0_0_0-0.1.0_70_gf6f3b53-1.4.x86_64
gnuradio-doc-3.7.2.1-1.1.noarch
libgnuradio-fcdproplus-devel-3.7_git20130813-2.3.x86_64
gnuradio-devel-3.7.2.1-1.1.x86_64
libgnuradio-iqbalance-devel-0.37.1.4-1.3.x86_64
libgnuradio-iqbalance-0.37.1.4-1.3.x86_64
gnuradio-examples-3.7.2.1-1.1.x86_64
gnuradio-3.7.2.1-1.1.x86_64
libgnuradio-fcdproplus-3.7_git20130813-2.3.x86_64
linux-i6yo:/home/ron/gr-baz/gr-baz #


So there is no package gnuradio-core.  I think gnuradio must have changed package names and possibly header file names as well.  So when I do the ./configure I get this at the end of the list:
checking for GNURADIO_CORE... configure: error: Package requirements (gnuradio-core >= 3) were not met:

No package 'gnuradio-core' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables GNURADIO_CORE_CFLAGS
and GNURADIO_CORE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


I lack experience with this, but suspect things have changed.  Do you have a solution for me?
Happy New Year.
Ron Morell
KA7U
Reply all
Reply to author
Forward
0 new messages