[USRP-users] Test_messages example

Aram Falsafi afalsafi at denaliai.com
Thu Nov 30 13:11:46 EST 2017


Hojoon,

I have a B210 without GPSDO , and here are the results I get. The first run was without sudo, so I got the warning about thread priority, but I actually got fewer failures in that case.

I haven't looked at the source code for this example to see what this program is supposed to do, so I don't know if my results are normal or not.

Hope this helps,

-Aram



$ ./test_messages 
linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown


UHD Warning:
    Unable to set the thread priority. Performance may be negatively affected.
    Please see the general application notes in the manual for instructions.
    EnvironmentError: OSError: error in pthread_setschedparam

Creating the usrp device with: ...
-- Detected Device: B210
-- Operating over USB 3.
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Performing CODEC loopback test... pass
-- Asking for clock rate 16.000000 MHz... 
-- Actually got clock rate 16.000000 MHz.
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
-- Setting master clock rate selection to 'automatic'.
Using Device: Single USRP:
  Device: B-Series Device
  Mboard 0: B210
  RX Channel: 0
    RX DSP: 0
    RX Dboard: A
    RX Subdev: FE-RX2
  RX Channel: 1
    RX DSP: 1
    RX Dboard: A
    RX Subdev: FE-RX1
  TX Channel: 0
    TX DSP: 0
    TX Dboard: A
    TX Subdev: FE-TX2
  TX Channel: 1
    TX DSP: 1
    TX Dboard: A
    TX Subdev: FE-TX1

-- Asking for clock rate 32.000000 MHz... 
-- Actually got clock rate 32.000000 MHz.
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
Test late command message... success:
    Got error code late command message.

Test underflow message... Usuccess:
    Got event code underflow message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest late command message... success:
    Got error code late command message.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test underflow message... Usuccess:
    Got event code underflow message.

Test time error message... failed:
    Async message recv timed out.

Test underflow message... Usuccess:
    Got event code underflow message.

Test underflow message... failed:
    Async message recv timed out.

Test underflow message... success:
    Got event code underflow message.

UTest late command message... success:
    Got error code late command message.

Test late command message... success:
    Got error code late command message.

Test late command message... success:
    Got error code late command message.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.

Test time error message... failed:
    Async message recv timed out.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test late command message... success:
    Got error code late command message.

Test late command message... success:
    Got error code late command message.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.

Test late command message... success:
    Got error code late command message.

Test underflow message... Usuccess:
    Got event code underflow message.

Test underflow message... failed:
    Async message recv timed out.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.

Test late command message... success:
    Got error code late command message.

Test underflow message... success:
    Got event code underflow message.
U
Test underflow message... failed:
    Async message recv timed out.

Test burst ack message... success:
    Got event code burst ack message.

Test late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test late command message... success:
    Got error code late command message.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.


Summary:

Test Burst ACK    ->     6 successes,   4 failures
Test Underflow    ->     6 successes,   6 failures
Test Time Error   ->     0 successes,  10 failures
Test Late Command   ->    18 successes,   0 failures

Done!







$ sudo ./test_messages 
linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown


Creating the usrp device with: ...
-- Detected Device: B210
-- Operating over USB 3.
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Performing CODEC loopback test... pass
-- Asking for clock rate 16.000000 MHz... 
-- Actually got clock rate 16.000000 MHz.
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
-- Setting master clock rate selection to 'automatic'.
Using Device: Single USRP:
  Device: B-Series Device
  Mboard 0: B210
  RX Channel: 0
    RX DSP: 0
    RX Dboard: A
    RX Subdev: FE-RX2
  RX Channel: 1
    RX DSP: 1
    RX Dboard: A
    RX Subdev: FE-RX1
  TX Channel: 0
    TX DSP: 0
    TX Dboard: A
    TX Subdev: FE-TX2
  TX Channel: 1
    TX DSP: 1
    TX Dboard: A
    TX Subdev: FE-TX1

-- Asking for clock rate 32.000000 MHz... 
-- Actually got clock rate 32.000000 MHz.
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
Test time error message... failed:
    Async message recv timed out.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest underflow message... failed:
    Async message recv timed out.

Test burst ack message... success:
    Got event code burst ack message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest underflow message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test underflow message... Usuccess:
    Got event code underflow message.

Test underflow message... failed:
    Async message recv timed out.

Test burst ack message... success:
    Got event code burst ack message.

Test underflow message... Usuccess:
    Got event code underflow message.

Test late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test time error message... failed:
    Async message recv timed out.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.

LTest burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest burst ack message... success:
    Got event code burst ack message.

Test underflow message... Usuccess:
    Got event code underflow message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test late command message... success:
    Got error code late command message.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest late command message... success:
    Got error code late command message.

Test underflow message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test underflow message... Usuccess:
    Got event code underflow message.

Test late command message... success:
    Got error code late command message.

Test time error message... failed:
    Async message recv timed out.

Test time error message... failed:
    Async message recv timed out.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.

Test underflow message... Usuccess:
    Got event code underflow message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest underflow message... failed:
    Async message recv timed out.

Test underflow message... Usuccess:
    Got event code underflow message.

Test underflow message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test burst ack message... success:
    Got event code burst ack message.

Test late command message... success:
    Got error code late command message.


Summary:

Test Burst ACK    ->    11 successes,   2 failures
Test Underflow    ->     6 successes,  11 failures
Test Time Error   ->     0 successes,   9 failures
Test Late Command   ->    11 successes,   0 failures

Done!



$ sudo ./test_messages 
linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown


Creating the usrp device with: ...
-- Detected Device: B210
-- Operating over USB 3.
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Performing CODEC loopback test... pass
-- Asking for clock rate 16.000000 MHz... 
-- Actually got clock rate 16.000000 MHz.
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
-- Setting master clock rate selection to 'automatic'.
Using Device: Single USRP:
  Device: B-Series Device
  Mboard 0: B210
  RX Channel: 0
    RX DSP: 0
    RX Dboard: A
    RX Subdev: FE-RX2
  RX Channel: 1
    RX DSP: 1
    RX Dboard: A
    RX Subdev: FE-RX1
  TX Channel: 0
    TX DSP: 0
    TX Dboard: A
    TX Subdev: FE-TX2
  TX Channel: 1
    TX DSP: 1
    TX Dboard: A
    TX Subdev: FE-TX1

-- Asking for clock rate 32.000000 MHz... 
-- Actually got clock rate 32.000000 MHz.
-- Performing timer loopback test... pass
-- Performing timer loopback test... pass
Test burst ack message... success:
    Got event code burst ack message.

Test late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test time error message... failed:
    Async message recv timed out.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.

LLTest burst ack message... success:
    Got event code burst ack message.

Test burst ack message... success:
    Got event code burst ack message.

Test underflow message... Usuccess:
    Got event code underflow message.

Test late command message... success:
    Got error code late command message.

Test underflow message... failed:
    Async message recv timed out.

Test time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.

Test time error message... failed:
    Async message recv timed out.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest time error message... failed:
    Async message recv timed out.

Test late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest time error message... failed:
    Async message recv timed out.

Test time error message... failed:
    Async message recv timed out.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.

Test time error message... failed:
    Async message recv timed out.

Test time error message... failed:
    Async message recv timed out.

Test burst ack message... Lfailed:
    Got unexpected event code 0x8.

LTest burst ack message... success:
    Got event code burst ack message.

Test burst ack message... success:
    Got event code burst ack message.

Test burst ack message... success:
    Got event code burst ack message.

Test late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test burst ack message... success:
    Got event code burst ack message.

Test late command message... success:
    Got error code late command message.

Test underflow message... Usuccess:
    Got event code underflow message.

Test late command message... success:
    Got error code late command message.

Test burst ack message... success:
    Got event code burst ack message.

Test burst ack message... success:
    Got event code burst ack message.

Test time error message... failed:
    Async message recv timed out.

Test underflow message... Lfailed:
    Got unexpected event code 0x8.

UTest time error message... failed:
    Async message recv timed out.

Test underflow message... Usuccess:
    Got event code underflow message.

Test underflow message... failed:
    Async message recv timed out.


Summary:

Test Burst ACK    ->    13 successes,   4 failures
Test Underflow    ->     3 successes,   6 failures
Test Time Error   ->     0 successes,  15 failures
Test Late Command   ->     9 successes,   0 failures

Done!












More information about the USRP-users mailing list