MicroPhase / antsdr_uhd

This repo contains both the uhd host driver and firmware for microphase antsdr devices.
GNU General Public License v3.0
46 stars 30 forks source link

Error UHD- Exception caught in safe-call #80

Open simransaxena08 opened 3 weeks ago

simransaxena08 commented 3 weeks ago

Hello, I noticed that whenever I run uhd_usrp_probe, it runs fine once and soon after it keeps throwing this error to me:

[INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.1.0.0-0-9abe8bc8
[INFO] [ANT] Detected Device: ANTSDR
[INFO] [ANT] Initialize CODEC control...
[INFO] [ANT] Initialize Radio control...
[INFO] [ANT] Performing register loopback test... 
[INFO] [ANT] Register loopback test passed
[INFO] [ANT] Performing register loopback test... 
[INFO] [ANT] Register loopback test passed
[INFO] [ANT] Setting master clock rate selection to 'automatic'.
[INFO] [ANT] Asking for clock rate 16.000000 MHz... 

[ERROR] [UHD] Exception caught in safe-call.
  in virtual radio_ctrl_core_3000_impl::~radio_ctrl_core_3000_impl()
  at /home/arpad/antsdr_uhd/host/lib/usrp/cores/radio_ctrl_core_3000.cpp:66
this->peek32(0); _async_task.reset(); -> EnvironmentError: IOError: Radio ctrl (0) packet parse error - AssertionError: packet_info.packet_count == (seq_to_ack & 0xfff)
  in uint64_t radio_ctrl_core_3000_impl::wait_for_ack(bool)
  at /home/arpad/antsdr_uhd/host/lib/usrp/cores/radio_ctrl_core_3000.cpp:261

Error: EnvironmentError: IOError: Radio ctrl (0) packet parse error - AssertionError: packet_info.packet_count == (seq_to_ack & 0xfff)
  in uint64_t radio_ctrl_core_3000_impl::wait_for_ack(bool)
  at /home/arpad/antsdr_uhd/host/lib/usrp/cores/radio_ctrl_core_3000.cpp:261

Can someone please explain to me what this means and a workaround this? Even when I try to run uhd_usrp_probe --args="recv_frame_size=64,send_frame_size=64" I run into the same error. With every system reboot, the error goes away but during the second or third run comes back.

The uhd_find_devices command works fine. I am also successfully able to log into the device.

Here are some details about my system and the setup:

Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy Linux xxx 5.15.0-112-generic #122-Ubuntu SMP Thu May 23 07:48:21 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

The antsdr e200 is connected through the ethernet interface with a speed of 1000Mb/s.

Thank you!