On 06/13/2018 11:13 AM, RizThon via USRP-users wrote:
Hi all,

I have a C program that uses SoapySDR that works for a LimeSDR but I'm having troubles with a B210.

I'm simply receiving as many samples as possible by packets of 680 samples, in mono channel, at 56MS/s. Soon after starting the program, I only receive 260 samples instead of 680. I close the device through SoapySDR and retry again, but then there's straight an error.
You should probably try one of the straight UHD examples, like rx_samples_to_file

The 'O' means "overrun" -- your computer isn't keeping up with the data stream from the B2xx.

My suspicion is that LimeSDR doesn't report overruns, so you may be getting overruns from your Lime as well, but it's just not indicated.

We can't really help with SoapySDR issues here, which is why I'd like you to try rx_samples_to_file using the --null option just to see if your
  machine is the culprit or UHD, or the Soapy stack.



Here are the logs I see:

[INFO] [UHD] Win32; Microsoft Visual C++ version 14.0; Boost_106300; UHD_3.11.0.1-37-g2c9087d1 [INFO] [B200] Loading firmware image: C:\Program Files\PothosSDR\lib\uhd\images\usrp_b200_fw.hex...
[INFO] [b200_impl.cpp:383] [B200] Detected Device: B210
[INFO] [B200] Detected Device: B210
[INFO] [b200_iface.cpp:440] [B200] Loading FPGA image: C:\Program Files\PothosSDR\lib\uhd\images\usrp_b210_fpga.bin... [INFO] [B200] Loading FPGA image: C:\Program Files\PothosSDR\lib\uhd\images\usrp_b210_fpga.bin...
[INFO] [b200_impl.cpp:430] [B200] Operating over USB 3.
[INFO] [B200] Operating over USB 3.
[INFO] [b200_impl.cpp:481] [B200] Detecting internal GPSDO....
[INFO] [B200] Detecting internal GPSDO....
[INFO] [gps_ctrl.cpp:245] [GPS] No GPSDO found
[INFO] [GPS] No GPSDO found
[INFO] [b200_impl.cpp:545] [B200] Initialize CODEC control...
[INFO] [B200] Initialize CODEC control...
[INFO] [b200_impl.cpp:602] [B200] Initialize Radio control...
[INFO] [B200] Initialize Radio control...
[INFO] [b200_impl.cpp:889] [B200] Performing register loopback test...
[INFO] [B200] Performing register loopback test...
[INFO] [b200_impl.cpp:898] [B200] Register loopback test passed
[INFO] [B200] Register loopback test passed
[INFO] [b200_impl.cpp:889] [B200] Performing register loopback test...
[INFO] [B200] Performing register loopback test...
[INFO] [b200_impl.cpp:898] [B200] Register loopback test passed
[INFO] [B200] Register loopback test passed
[INFO] [ad936x_manager.cpp:90] [AD936X] Performing CODEC loopback test...
[INFO] [AD936X] Performing CODEC loopback test...
[INFO] [ad936x_manager.cpp:123] [AD936X] CODEC loopback test passed
[INFO] [AD936X] CODEC loopback test passed
[INFO] [ad936x_manager.cpp:90] [AD936X] Performing CODEC loopback test...
[INFO] [AD936X] Performing CODEC loopback test...
[INFO] [ad936x_manager.cpp:123] [AD936X] CODEC loopback test passed
[INFO] [AD936X] CODEC loopback test passed
[INFO] [b200_impl.cpp:707] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [b200_impl.cpp:934] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [b200_impl.cpp:945] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [b200_impl.cpp:934] [B200] Asking for clock rate 56.000000 MHz...
[INFO] [B200] Asking for clock rate 56.000000 MHz...
[INFO] [b200_impl.cpp:945] [B200] Actually got clock rate 56.000000 MHz.
[INFO] [B200] Actually got clock rate 56.000000 MHz.

*Error, ReceiveSamples returned **only 260 samples instead of 680.*

O      (not sure where that O comes from)

*Closing the device.*
*Restarting the program.*

[INFO] [b200_impl.cpp:383] [B200] Detected Device: B210
[INFO] [B200] Detected Device: B210
[INFO] [b200_impl.cpp:430] [B200] Operating over USB 3.
[INFO] [B200] Operating over USB 3.
[1m [31m[ERROR] [tasks.cpp:154] [UHD] An unexpected exception was caught in a task loop.The task loop will now exit, things may not work.EnvironmentError: IOError: usb rx8 transfer status: LIBUSB_TRANSFER_CANCELLED [0m [ERROR] [UHD] An unexpected exception was caught in a task loop.The task loop will now exit, things may not work.EnvironmentError: IOError: usb rx8 transfer status: LIBUSB_TRANSFER_CANCELLED
[INFO] [b200_impl.cpp:545] [B200] Initialize CODEC control...
[INFO] [B200] Initialize CODEC control...
[INFO] [b200_impl.cpp:602] [B200] Initialize Radio control...
[INFO] [B200] Initialize Radio control...
[INFO] [b200_impl.cpp:889] [B200] Performing register loopback test...
[INFO] [B200] Performing register loopback test...
[INFO] [b200_impl.cpp:898] [B200] Register loopback test passed
[INFO] [B200] Register loopback test passed
[INFO] [b200_impl.cpp:889] [B200] Performing register loopback test...
[INFO] [B200] Performing register loopback test...
[INFO] [b200_impl.cpp:898] [B200] Register loopback test passed
[INFO] [B200] Register loopback test passed
[INFO] [ad936x_manager.cpp:90] [AD936X] Performing CODEC loopback test...
[INFO] [AD936X] Performing CODEC loopback test...
[INFO] [ad936x_manager.cpp:123] [AD936X] CODEC loopback test passed
[INFO] [AD936X] CODEC loopback test passed
[INFO] [ad936x_manager.cpp:90] [AD936X] Performing CODEC loopback test...
[INFO] [AD936X] Performing CODEC loopback test...
[INFO] [ad936x_manager.cpp:123] [AD936X] CODEC loopback test passed
[INFO] [AD936X] CODEC loopback test passed
[INFO] [b200_impl.cpp:707] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [B200] Setting master clock rate selection to 'automatic'.
[INFO] [b200_impl.cpp:934] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [B200] Asking for clock rate 16.000000 MHz...
[INFO] [b200_impl.cpp:945] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [B200] Actually got clock rate 16.000000 MHz.
[INFO] [b200_impl.cpp:934] [B200] Asking for clock rate 56.000000 MHz...
[INFO] [B200] Asking for clock rate 56.000000 MHz...
[INFO] [b200_impl.cpp:945] [B200] Actually got clock rate 56.000000 MHz.
[INFO] [B200] Actually got clock rate 56.000000 MHz.
[1m [31m[ERROR] [recv_packet_demuxer_3000.hpp:77] [STREAMER] recv packet demuxer unexpected sid 0xffc00010 [0m

*Error, ReceiveSamples returned -4*

D[ERROR] [STREAMER] recv packet demuxer unexpected sid 0xffc00010
[1m [31m[ERROR] [recv_packet_demuxer_3000.hpp:77] [STREAMER] recv packet demuxer unexpected sid 0xffe0fff0 [0m
[ERROR] [STREAMER] recv packet demuxer unexpected sid 0xffe0fff0

*Closing the device.*

After that, I just can't seem to do anything and I have to unplug then replug the B210.

Any idea what might be going wrong? Also is there a programmatic way to reset somehow the board, to avoid having to physically unplug then replug it?

Thanks.


_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

_______________________________________________
USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

Reply via email to