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

CODEC loopback test failed on E200 #69

Open devttys opened 4 months ago

devttys commented 4 months ago

Hi, I've built UHD host drivers from the latest master (after fixing some compilation errors) and using the latest firmware from v1.0 release.

Unfortunately, I can't get the device to work properly as it constantly fails the loopback test. What can be the cause? Is this a hardware issue?

uhd_usrp_probe 
[INFO] [UHD] linux; GNU C++ version 13.2.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
[ERROR] [AD936X] CODEC loopback test failed! Expected: 0xAA50D3A0 Received (TX/RX): 0xAA50D3A0/0x0050FE30
Error: RuntimeError: CODEC loopback test failed.

I've also tried the older v0.1 firmware build, but the driver refuses to connect due to incompatible firmware:

Error: RuntimeError: Expected FPGA compatibility number 16, but got 7:

I would appreciate if someone could point me to the working combination of firmware + driver revisions. I also tried to build the firmware from master but it fails to build due to missing files (I'll create a separate issue for that)

lone-boy commented 4 months ago

If you use the v0.1 version, the corresponding firmware also needs to use v0.1. Can you tell me the network port connection method you use? Is there a USB network port adapter?

devttys commented 4 months ago

Yes, I'm using USB 3.0 Ethernet adapter on my laptop connected directly to E200, the speed is set to 1000 Mb/s.

When using the IIO firmware or MaiaSDR with the same adapter it seems to be working fine, or at least I haven't noticed any issues.