MicroPhase / antsdr_uhd

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

CODEC loopback test failed on E200 #69

Open devttys opened 9 months ago

devttys commented 9 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 9 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 8 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.

cychoi75 commented 3 months ago

I'm having the same problem. I'm also having the problem on dragon os, even with uhd driver installed on ubuntu 22.04.

cychoi75 commented 3 months ago

I solved the above problem simply. The problem was a usb ethernet device connected to the laptop, and when I connected it directly to the intel nuc with dragon os, it worked fine. In the future, I will try to test again with USB Ethernet device using Realtek chip.

cychoi75 commented 3 months ago

I tested it using USB Ethernet with a Realtek chip and found it works fine

Szum123321 commented 3 months ago

Can confirm, some USB dongles lead to CODEC error. RTL8153 based ones do work.