DSheirer / sdrtrunk

A cross-platform java application for decoding, monitoring, recording and streaming trunked mobile and related radio protocols using Software Defined Radios (SDR). Website:
GNU General Public License v3.0
1.6k stars 257 forks source link

USB error 9: error writing byte buffer: Pipe error #1963

Open croach13 opened 2 months ago

croach13 commented 2 months ago

sdrtrunk Version master-branch; Nightly

Describe the bug Each time the software attempts to communicate with either of my RTL-SDRs (one V3, one V4), I receive a "USB error 9: error writing byte buffer: Pipe error". Text files with the console log are attached. This happened with these same SDRs on my old PC (Ryzen 5 3600) as well as my new PC (Ryzen 7 7700X). When these SDRs are connected to an Intel machine with drivers loaded properly, SDRTrunk works great. The waterfall view at the default frequency at startup of the software appears to work correctly, screenshot attached.

To Reproduce Steps to reproduce the behavior:

  1. Open playlist editor OR the "Tuners" tab.
  2. Make any attempt to change a setting or otherwise communicate with the tuner.

Expected behavior The SDRs to tune to the correct frequencies and monitor trunked traffic using frequencies pulled from Radio Reference.

Screenshots Screenshot 2024-08-31 215428

Application Log See attached. v0.6.0 log.txt Nightly log.txt

Desktop (optional - complete the following information):

Additional context This issue has plagued me across two completely different systems now. Is the problem with me mixing V3 and V4 devices?? Drivers were installed properly using Zadig. Each device works properly in SDRsharp and SDR Console v3.3. The V4 has had it's serial changed from 00000101 to 00000102 using SDR Console after finding an obscure thread that mentioned two RTL-SDRs can cause issues if they are set to the same serial numbers, but this didn't change anything.

Jeffre19 commented 2 months ago

This issue plagued me for the longest time. I tried reinstalling drivers, disabling ports, switching ports, using externally powered hubs, all to no avail.

What solved my problem was the installation of a new internal usb card. There seems to be a problem with some combination of Ryzen CPUs and the on-board motherboard usb ports. Using the pci based usb expansion card solved my problem instantly. For reference I’m running a Ryzen 7 3800X with a ASUS B550 plus. Hoping this solution might work for you.