BorIP server + HDSDR on Linux/OS X

Showing 21-70 of 70 messages
BorIP server + HDSDR on Linux/OS X Balint Seeber 6/3/12 6:19 AM
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!
Re: BorIP server + HDSDR on Linux/OS X Dragan 6/3/12 1:04 PM
This is great news. Been waiting for BorIP for Linux.
Thanks
Re: BorIP server + HDSDR on Linux/OS X Sexton Sexton 6/4/12 1:34 AM
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? 
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 6/4/12 5:41 AM
Did you recompile gr-baz and install it in the same place as the previous
version, overwriting it?

Cheers,
Adam.

Re: BorIP server + HDSDR on Linux/OS X Dragan 6/5/12 7:23 AM
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?

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Miguel A. Vallejo 6/5/12 7:55 AM
>>> ~~> 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.

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Dragan 6/5/12 9:07 AM


Gnu radio: 3.6.1git-103-gb7e2c8ba compiled yesterday.
Re: BorIP server + HDSDR on Linux/OS X Balint Seeber 6/5/12 9:35 AM
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'.
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Balint Seeber 6/5/12 10:41 AM
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!
Re: BorIP server + HDSDR on Linux/OS X Dragan 6/5/12 11:22 AM
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.

 
Re: BorIP server + HDSDR on Linux/OS X Balint Seeber 6/5/12 7:26 PM
Thank you for that.

I believe I've fixed it now - please update to latest, compile, install and try again.
Re: BorIP server + HDSDR on Linux/OS X Dragan 6/6/12 3:04 AM
It works.
Thanks
Re: BorIP server + HDSDR on Linux/OS X Random Walk 6/6/12 9:09 AM

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.

Re: BorIP server + HDSDR on Linux/OS X Dragan 6/6/12 10:10 AM
Try this: http://www.sbrac.org/files/build-gnuradio

It builds latest gnuradio,rtl_sdr,gr-baz,osmo,usrp etc.
Re: BorIP server + HDSDR on Linux/OS X Random Walk 6/6/12 11:05 AM
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

Re: BorIP server + HDSDR on Linux/OS X Dragan 6/6/12 12:09 PM
Can't help you with that, never used a Mac.
Re: BorIP server + HDSDR on Linux/OS X Balint Seeber 6/6/12 4:29 PM
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!
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 6/6/12 4:40 PM
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.
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Balint Seeber 6/6/12 6:37 PM
Thanks Adam, this is true - Wine coming to the fore there.
Will look into this for the next release.
Re: BorIP server + HDSDR on Linux/OS X Balint Seeber 6/7/12 5:06 AM
Fixed in the repo.
Re: BorIP server + HDSDR on Linux/OS X alaindecarolis 6/10/12 4:18 PM
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
Re: BorIP server + HDSDR on Linux/OS X Balint Seeber 6/10/12 6:07 PM
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.
Re: BorIP server + HDSDR on Linux/OS X alaindecarolis 6/10/12 6:48 PM
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
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 6/10/12 7:01 PM
> 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.
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X alaindecarolis 6/10/12 7:30 PM
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
Re: BorIP server + HDSDR on Linux/OS X Balint Seeber 6/10/12 7:33 PM
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! :)

On Monday, June 11, 2012 11:48:45 AM UTC+10, Alain De Carolis wrote:
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

On Sunday, June 10, 2012 9:07:53 PM UTC-4, Balint Seeber wrote:
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.

On Monday, June 11, 2012 9:18:56 AM UTC+10, Alain De Carolis wrote:
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

On Sunday, June 3, 2012 9:19:04 AM UTC-4, Balint Seeber wrote:
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!
Re: BorIP server + HDSDR on Linux/OS X alaindecarolis 6/13/12 5:47 AM
Balint,

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

Thanks again

Alain
Re: BorIP server + HDSDR on Linux/OS X Balint Seeber 6/13/12 5:21 PM
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...
Re: BorIP server + HDSDR on Linux/OS X geo_stef 6/21/12 6:28 PM
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)"
Re: BorIP server + HDSDR on Linux/OS X tdbone1 6/22/12 11:07 AM
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
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 6/23/12 4:59 AM
> 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.
Re: BorIP server + HDSDR on Linux/OS X tdbone1 7/1/12 4:49 PM
where is that new ExtIO dll at Balint?
can we get an update?
thanks
Re: BorIP server + HDSDR on Linux/OS X Aron 7/11/12 6:39 AM


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

On Thursday, 7 June 2012 22:06:27 UTC+10, Balint Seeber wrote:
Fixed in the repo.

On Thursday, June 7, 2012 9:29:48 AM UTC+10, Balint Seeber wrote:
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!

On Thursday, June 7, 2012 2:09:57 AM UTC+10, Random Walk wrote:

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.

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 7/11/12 2:23 PM
> --> 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.

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Aron 7/12/12 1:22 PM
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
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 7/12/12 3:45 PM
> 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.
Re: BorIP server + HDSDR on Linux/OS X Gergely Barta 9/17/12 2:07 PM


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
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 9/17/12 5:09 PM
> 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.

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Gergely Barta 9/18/12 12:47 AM

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

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 9/18/12 5:05 AM
> 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.

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Gergely Barta 9/18/12 8:32 AM
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()
 
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 9/18/12 4:01 PM
> 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.

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Gergely Barta 9/19/12 2:05 AM
Can you send me the file list of your /usr/lib/python2.7/site-packages/baz/ ???

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Gergely Barta 9/19/12 3:04 AM
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

Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Adam Nielsen 9/19/12 7:09 PM
> 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.
Re: [ultra-cheap-sdr] Re: BorIP server + HDSDR on Linux/OS X Gergely Barta 9/25/12 9:17 AM
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
demian s 9/28/12 9:42 PM <This message has been deleted.>
demian s 9/30/12 5:12 PM <This message has been deleted.>
Re: BorIP server + HDSDR on Linux/OS X Pawel Janowski 2/14/13 11:38 PM
Re: BorIP server + HDSDR on Linux/OS X Ron Morell 1/2/14 8:11 PM
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
More topics »