Send USRP-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of USRP-users digest..."


Today's Topics:

   1. problem with running USRP (Vijay Pillai)
   2. UHD+USRP2+WBX (Windows 7 64-bit) - Errors with Example
      Programs (James Stein)
   3. Re: UHD+USRP2+WBX (Windows 7 64-bit) - Errors with Example
      Programs (Josh Blum)
   4. Re: UHD+USRP2+WBX (Windows 7 64-bit) - Errors with        Example
      Programs (James Stein)
   5. Timing and Frequency Synchronisation in MATLAB
      (Ryan van den Bergh)


----------------------------------------------------------------------

Message: 1
Date: Mon, 7 Mar 2011 10:36:26 -0800 (PST)
From: Vijay Pillai <[email protected]>
To: [email protected]
Subject: [USRP-users] problem with running USRP
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

I have a new USRP1 (with the WBX daughterboard) and I am running it with a XP 
machine under Cygwin. I followed all the instructions at
http://gnuradio.org/redmine/wiki/gnuradio/CygwinInstallMain.
I am ran the python script usrp_benchmark_usb.py and I get the following 
message. Basically with every other script I get a "usb_ctrl_message 
failed....write_command failed" and sometimes a "No daughterboard found" (the 
daughterboard is on slot A). The LED on the USRP is blinking at the rate of 
1/sec.? Following is the output with the benchmark script.
What could be problem here?
Thank you in advance and best regards,-Vijay
------------------------------------------
$ python usrp_bench*.py
Testing 2MB/sec... usb_control_msg failed: usb_control_msg: sending control mess
age failed, win error: A device attached to the system is not functioning.

write_cmd failed
usb_control_msg failed: usb_control_msg: sending control message failed, win err
or: A device attached to the system is not functioning.

write_cmd failed
usb_control_msg failed: usb_control_msg: sending control message failed, win err
or: A device attached to the system is not functioning.

write_cmd failed
uUusb_throughput = 2M
ntotal    = 1000000
nright    = 998615
runlength = 998615
delta     = 1385
OK
Testing 4MB/sec... usrp_open_interface:usb_claim_interface: failed interface 1
usb_claim_interface: could not claim interface 1, win error: The requested resou
rce is in use.

usrp_basic_tx: can't open tx interface
Traceback (most recent call last):
  File "usrp_benchmark_usb.py", line 106, in <module>
    main ()
  File "usrp_benchmark_usb.py", line 96, in main
    ok = run_test (rate, verbose)
  File "usrp_benchmark_usb.py", line 63, in run_test
    usrp_tx = usrp.sink_s (0, tx_interp)
  File "/usr/local/lib/python2.6/site-packages/gnuradio/usrp/usrp_swig.py", line
 2800, in sink_s
    return _usrp_swig.sink_s(*args, **kwargs)
RuntimeError: can't open usrp




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20110307/e0755a68/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 7 Mar 2011 20:48:30 -0000
From: "James Stein" <[email protected]>
To: <[email protected]>
Subject: [USRP-users] UHD+USRP2+WBX (Windows 7 64-bit) - Errors with
        Example Programs
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

I?ve managed to compile the Win32 Release configuration of the latest version 
of UHD under Windows 7 (64-bit), and it can talk successfully to my USRP2+WBX 
(i.e. uhd_find_devices and uhd_usrp_probe work fine and return valid details 
for the USRP and daughterboard).

However, the example UHD programs (the exe files which come ready made with the 
library) do not appear to work correctly and generate lots of errors.

Typical command prompt outputs are below ? any help on the reason for all the 
errors and how this could be fixed would be much appreciated. Thanks!

(P.S. Keep up the good work, USRP is a great platform!).


***benchmark_rx_rate.exe***

C:\Program Files (x86)\UHD\share\uhd\examples>benchmark_rx_rate.exe
Win32; Microsoft Visual C++ version 10.0; Boost_104400; UHD_003.0.0


Creating the usrp device with: ...
Current recv sock buff size: 50000000 bytes
mboard0 MIMO master
Using Device: Single USRP:
  Device: USRP2/N Series device
  Mboard 0: USRP2-REV4 mboard
  RX DSP 0: USRP2-REV4 ddc0
  RX Channel: 0
    RX Dboard: USRP2-REV4 dboard (rx unit)
    RX Subdev: WBX (0x0053)
  TX DSP 0: USRP2-REV4 duc0
  TX Channel: 0
    TX Dboard: USRP2-REV4 dboard (tx unit)
    TX Subdev: WBX (0x0052)

Testing receive rate 0.500000 Msps (10.000000 second run)
Error code: 1
Unexpected error on recv, exit test...
Testing receive rate 1.000000 Msps (10.000000 second run)
Error code: 1
Unexpected error on recv, exit test...
Testing receive rate 2.000000 Msps (10.000000 second run)
Error code: 1
Unexpected error on recv, exit test...
Testing receive rate 4.000000 Msps (10.000000 second run)
Error code: 1
Unexpected error on recv, exit test...

Warning:
    The hardware does not support the requested RX sample rate:
    Target sample rate: 8.000000 MSps
    Actual sample rate: 8.333333 MSps
Testing receive rate 8.333333 Msps (10.000000 second run)
Error code: 1
Unexpected error on recv, exit test...
Testing receive rate 16.666667 Msps (10.000000 second run)
Error code: 1
Unexpected error on recv, exit test...

Warning:
    The hardware does not support the requested RX sample rate:
    Target sample rate: 33.333333 MSps
    Actual sample rate: 25.000000 MSps
Testing receive rate 25.000000 Msps (10.000000 second run)
Error code: 1
Unexpected error on recv, exit test...

Warning:
    The hardware does not support the requested RX sample rate:
    Target sample rate: 50.000000 MSps
    Actual sample rate: 25.000000 MSps

Done!


***rx_timed_samples.exe***

C:\Program Files (x86)\UHD\share\uhd\examples>rx_timed_samples.exe
Win32; Microsoft Visual C++ version 10.0; Boost_104400; UHD_003.0.0


Creating the usrp device with: ...
Current recv sock buff size: 50000000 bytes
mboard0 MIMO master
Using Device: Single USRP:
  Device: USRP2/N Series device
  Mboard 0: USRP2-REV4 mboard
  RX DSP 0: USRP2-REV4 ddc0
  RX Channel: 0
    RX Dboard: USRP2-REV4 dboard (rx unit)
    RX Subdev: WBX (0x0053)
  TX DSP 0: USRP2-REV4 duc0
  TX Channel: 0
    TX Dboard: USRP2-REV4 dboard (tx unit)
    TX Subdev: WBX (0x0052)

Setting RX Rate: 6.250000 Msps...
Actual RX Rate: 6.250000 Msps...

Setting RX Freq: 0.000000 Mhz...

Warning:
    The hardware does not support the requested RX frequency:
    Target frequency: 0.000000 MHz
    Actual frequency: 100.000000 MHz
Actual RX Freq: 100.000000 Mhz...

Setting device timestamp to 0...

Begin streaming 1000 samples, 3.000000 seconds in the future...
OGot packet: 276 samples, 3 full secs, 0.000116 frac secs
Got timeout before all samples received, possible packet loss, exiting loop...

Done!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20110307/3f562927/attachment-0001.html>

------------------------------

Message: 3
Date: Mon, 07 Mar 2011 13:07:42 -0800
From: Josh Blum <[email protected]>
To: [email protected]
Subject: Re: [USRP-users] UHD+USRP2+WBX (Windows 7 64-bit) - Errors
        with Example Programs
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8



On 03/07/2011 12:48 PM, James Stein wrote:
> I?ve managed to compile the Win32 Release configuration of the latest
> version of UHD under Windows 7 (64-bit), and it can talk successfully
> to my USRP2+WBX (i.e. uhd_find_devices and uhd_usrp_probe work fine
> and return valid details for the USRP and daughterboard).
> 
> However, the example UHD programs (the exe files which come ready
> made with the library) do not appear to work correctly and generate
> lots of errors.
> 
> Typical command prompt outputs are below ? any help on the reason for
> all the errors and how this could be fixed would be much appreciated.
> Thanks!
> 

Its timeouts, which could be an issue of the network card rejecting MTU
sized packets.

Make sure you have the most recent images on your device:
http://www.ettus.com/downloads/uhd_images/

And can you post the output of the following:

examples/rx_timed_samples.exe

-- AND --

examples/rx_timed_samples.exe --args="recv_frame_size=1000"

-Josh



------------------------------

Message: 4
Date: Mon, 7 Mar 2011 21:31:09 -0000
From: "James Stein" <[email protected]>
To: <[email protected]>,   <[email protected]>
Subject: Re: [USRP-users] UHD+USRP2+WBX (Windows 7 64-bit) - Errors
        with    Example Programs
Message-ID: <[email protected]>
Content-Type: text/plain; format=flowed; charset="UTF-8";
        reply-type=original

Updating the images appears to have fixed this one - (successful) outputs as 
requested are below.

Thanks very much for your quick response and help.

*************************************
C:\Program Files (x86)\UHD\share\uhd\examples>rx_timed_samples.exe
Win32; Microsoft Visual C++ version 10.0; Boost_104400; UHD_003.0.0

Creating the usrp device with: ...
Current recv sock buff size: 50000000 bytes
mboard0 MIMO master
Using Device: Single USRP:
  Device: USRP2/N Series device
  Mboard 0: USRP2-REV4 mboard
  RX DSP 0: USRP2-REV4 ddc0
  RX Channel: 0
    RX Dboard: USRP2-REV4 dboard (rx unit)
    RX Subdev: WBX (0x0053)
  TX DSP 0: USRP2-REV4 duc0
  TX Channel: 0
    TX Dboard: USRP2-REV4 dboard (tx unit)
    TX Subdev: WBX (0x0052)

Setting RX Rate: 6.250000 Msps...
Actual RX Rate: 6.250000 Msps...

Setting RX Freq: 0.000000 Mhz...

Warning:
    The hardware does not support the requested RX frequency:
    Target frequency: 0.000000 MHz
    Actual frequency: 100.000000 MHz
Actual RX Freq: 100.000000 Mhz...

Setting device timestamp to 0...

Begin streaming 1000 samples, 3.000000 seconds in the future...
Got packet: 362 samples, 3 full secs, 0.000000 frac secs
Got packet: 362 samples, 3 full secs, 0.000058 frac secs
Got packet: 276 samples, 3 full secs, 0.000116 frac secs

Done!

**********************************************
C:\Program Files 
(x86)\UHD\share\uhd\examples>rx_timed_samples.exe --args="recv_frame_size=1000"
Win32; Microsoft Visual C++ version 10.0; Boost_104400; UHD_003.0.0


Creating the usrp device with: recv_frame_size=1000...
Current recv sock buff size: 50000000 bytes
mboard0 MIMO master
Using Device: Single USRP:
  Device: USRP2/N Series device
  Mboard 0: USRP2-REV4 mboard
  RX DSP 0: USRP2-REV4 ddc0
  RX Channel: 0
    RX Dboard: USRP2-REV4 dboard (rx unit)
    RX Subdev: WBX (0x0053)
  TX DSP 0: USRP2-REV4 duc0
  TX Channel: 0
    TX Dboard: USRP2-REV4 dboard (tx unit)
    TX Subdev: WBX (0x0052)

Setting RX Rate: 6.250000 Msps...
Actual RX Rate: 6.250000 Msps...

Setting RX Freq: 0.000000 Mhz...

Warning:
    The hardware does not support the requested RX frequency:
    Target frequency: 0.000000 MHz
    Actual frequency: 100.000000 MHz
Actual RX Freq: 100.000000 Mhz...

Setting device timestamp to 0...

Begin streaming 1000 samples, 3.000000 seconds in the future...
Got packet: 244 samples, 3 full secs, 0.000000 frac secs
Got packet: 244 samples, 3 full secs, 0.000039 frac secs
Got packet: 244 samples, 3 full secs, 0.000078 frac secs
Got packet: 244 samples, 3 full secs, 0.000117 frac secs
Got packet: 24 samples, 3 full secs, 0.000157 frac secs

Done!


********************************************************************************
> I?ve managed to compile the Win32 Release configuration of the latest
> version of UHD under Windows 7 (64-bit), and it can talk successfully
> to my USRP2+WBX (i.e. uhd_find_devices and uhd_usrp_probe work fine
> and return valid details for the USRP and daughterboard).
>
> However, the example UHD programs (the exe files which come ready
> made with the library) do not appear to work correctly and generate
> lots of errors.
>
> Typical command prompt outputs are below ? any help on the reason for
> all the errors and how this could be fixed would be much appreciated.
> Thanks!
>

Its timeouts, which could be an issue of the network card rejecting MTU
sized packets.

Make sure you have the most recent images on your device:
http://www.ettus.com/downloads/uhd_images/

And can you post the output of the following:

examples/rx_timed_samples.exe

-- AND --

examples/rx_timed_samples.exe --args="recv_frame_size=1000"

-Josh

_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com 




------------------------------

Message: 5
Date: Tue, 08 Mar 2011 12:23:11 +0200
From: Ryan van den Bergh <[email protected]>
To: [email protected], [email protected]
Subject: [USRP-users] Timing and Frequency Synchronisation in MATLAB
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Everyone,

Firstly thanks for everyone who has helped me in the past with my USRP2 
and Simulink issues - I really appreciate it!!

At the moment I need to create a full transceiver system in Simulink 
with the USRP2s and I need timing and frequency synchronisation for my 
frames.

Now before I go any further, I have read the responses from Mike 
McLernon at Mathworks regarding Barker codes, cross-correlation and 
pulse shaping (Many thanks for those e-mails Mike - they helped 
immensely!!!), but what I'm actually wondering is whether the reference 
clock and pps could be used to provide a sort of preliminary 
synchronisation between the transmitting and receiving USRP2s. All the 
literature I have found thus far relates only seems to apply to GNURadio 
systems.

My thought process (and please feel free to correct me if I'm completely 
wrong) is that by attaching two function generators to the USRP2s (one 
to both reference clock ports, and one to both pps ports) I will be able 
to largely eliminate frequency drift and timing offset. I believe this 
would make the barker code preambles and cross-correlation far more 
accurate when determining the start of the frame and greatly assist in 
the case of frames that contain OFDM symbols.

So to summarise, I'll list my questions:

1. Would the addition of signals on the ref clock and pps ports assist 
in frame synchronisation?
2. Would the use of a standard function generator be 
appropriate/applicable or would I need more specialised hardware?
3. Depending on the answer above, can I use two separate function 
generators with the appropriate signal characteristics?
4. Bearing in mind that I am using MATLAB/Simulink which requires old 
versions of the USRP2 firmware, do I have to do anything to the USRP2s 
to get them to use these signals?

Kind regards,

Ryan



------------------------------

_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


End of USRP-users Digest, Vol 7, Issue 11
*****************************************

Reply via email to