discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] UHD example


From: Josh Blum
Subject: Re: [Discuss-gnuradio] UHD example
Date: Wed, 21 Jul 2010 23:44:06 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100527 Thunderbird/3.0.5



On 07/21/2010 10:36 PM, Elvis Dowson wrote:
Hi Philip and Per,

On Jul 19, 2010, at 5:57 PM, Philip Balister wrote:

 
http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/repository/revisions/master/show/host/examples

The C++ examples in that folder wasn't helpful, since

a. it isn't readily apparent how to take that information and use it to make a
GRC UHD Simple Source block work

I tried this GRC block, but I get an error, running under Fedora 12 x86 64-bit:


Executing: "/home/elvis/Desktop/grc-examples/top_block.py"

Current recv sock buff size: 50000000 bytes
Current send sock buff size: 50000000 bytes
Using: WBX TX (0x0053)
Using: WBX RX (0x0052)
RX samples per packet: 362
TX samples per packet: 363
Recv pirate num frames: 33967
The hardware does not support the requested sample rate:
Target sample rate: 0.032000 MSps
Actual sample rate: 0.195312 MSps

terminate called after throwing an instance of 'std::invalid_argument'
what(): key not found in dict



right we did this last week. You requested an invalid frequency for the wbx and the underlying tuning logic blew a gasket. This has since been fixed, but you still cant use 100Khz for the WBX, nor can you sample at 32k (hence the warning printed above).

b. running the benchmark_rx_rate doesn't seem to work

$ uhd_find_devices
--------------------------------------------------
-- UHD Device 0
--------------------------------------------------
type: usrp2
addr: 192.168.10.2


$ ./benchmark_rx_rate

Creating the usrp device with: ...
Current recv sock buff size: 50000000 bytes
Current send sock buff size: 50000000 bytes
Using: WBX TX (0x0053)
Using: WBX RX (0x0052)
RX samples per packet: 362
TX samples per packet: 363
Recv pirate num frames: 33967
Using Device: Simple USRP:
Device: usrp2 device
Mboard: usrp2 mboard0 - rev 4:0
RX DSP: usrp2 ddc0
RX Dboard: usrp2 dboard (rx unit)
RX Subdev: WBX TX (0x0053)
TX DSP: usrp2 duc0
TX Dboard: usrp2 dboard (tx unit)
TX Subdev: WBX RX (0x0052)

Testing receive rate 0.500000 Msps (10.000000 second run)
Unexpected error on recv, exit test...
Testing receive rate 1.000000 Msps (10.000000 second run)
Unexpected error on recv, exit test...
Testing receive rate 2.000000 Msps (10.000000 second run)
Unexpected error on recv, exit test...
Testing receive rate 4.000000 Msps (10.000000 second run)
Unexpected error on recv, exit test...
Testing receive rate 8.333333 Msps (10.000000 second run)
Unexpected error on recv, exit test...
Testing receive rate 16.666667 Msps (10.000000 second run)
Unexpected error on recv, exit test...
Testing receive rate 25.000000 Msps (10.000000 second run)
Unexpected error on recv, exit test...

Done!


I cant tell which git rev you are using, this might have been fixed in 508af598a1b32345a53522b4d6d71e021f448347 In any case, pull the latest master and let us know.

Thanks,
-Josh




reply via email to

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