Im currently trying to restore SDR in Sardinia. Im Running on a HP EliteDesk PC 800 g2.
Ubuntu 22.04.5 LTS installed ans all Setups done.
Somehow when an RX888 is connected, and i reboot via sudo reboot, reboot takes forever, and then usb devices expecialy the rx888 is not shown in lsusb. If i make system powerless and restart ist "cold" rx888 is shown and workinng. I changed rx888 and dont see any change. If Monitor is connected, it remains either black oder frozen on HP Logo for some minutes after sudo reboot until its loading the os.
I tried to increase usb buffer in grub whinch made it even worse. Also atm some other SDRs are connected, aslo if I disconnect all of them, it wont make it better.
I have for now no clue how to solve this.
But maybe someone of you can help me, finding a solution, unfortunately im only few days here so i have to solve it quick if i want to have a permanent running sdr
What i tried:
/etc/udev/rules.d/99-usb-power.rules // add ACTION=="add", SUBSYSTEM=="usb", TEST=="power/control", ATTR{power/control}="on"
in grub:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.usbfs_memory_mb=1024 usbcore.autosuspend=-1"
all no success
if I can provide logs, just let me know, ill send them
Thank you for your help :-)
73 HB3XDC Gianni
I do not update GRUB. I activate rc.local, then just run this code at boot.
#!/bin/bash
#
sh -c 'echo 1024 > /sys/module/usbcore/parameters/usbfs_memory_mb'
#
But I think you may have worse issues than just a GRUB problem.
Got now a fresh install of Ubuntu and the same issue
Gianni,
Do you have a different OS to try the RX-888 on to see how it behaves?
atm not, but I could install it, what do you use?
Btw, in syslog i found how it looks when i disconnect power and all works after:
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.054652] usb: port power management may be unreliable
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.308602] usb 1-3: new high-speed USB device number 2 using xhci_hcd
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.457847] usb 1-3: New USB device found, idVendor=04b4, idProduct=00f3, bcdDevice= 1.00
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.457862] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.457869] usb 1-3: Product: WestBridge
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.457874] usb 1-3: Manufacturer: Cypress
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.457879] usb 1-3: SerialNumber: 0000000004BE
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.584568] usb 1-13: new full-speed USB device number 3 using xhci_hcd
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.740560] usb 1-13: New USB device found, idVendor=8510, idProduct=13ab, bcdDevice= 1.00
Dec 28 22:30:20 sdr-srv01 kernel: [ 1.740575] usb 1-13: New USB device strings: Mfr=1, Product=2, SerialNumber=3
and how it looks if I do sudo reboot and it wont boot / or wont show rx888
Dec 28 22:17:58 sdr-srv01 kernel: [ 1.045542] usb: port power management may be unreliable
Dec 28 22:17:58 sdr-srv01 kernel: [ 1.304621] usb 1-3: new high-speed USB device number 2 using xhci_hcd
Dec 28 22:17:59 sdr-srv01 kernel: [ 6.588529] usb 1-3: device descriptor read/64, error -110
Dec 28 22:18:15 sdr-srv01 kernel: [ 22.204810] usb 1-3: device descriptor read/64, error -110
Dec 28 22:18:15 sdr-srv01 kernel: [ 22.440668] usb 1-3: new high-speed USB device number 3 using xhci_hcd
Dec 28 22:18:20 sdr-srv01 kernel: [ 27.580844] usb 1-3: device descriptor read/64, error -110
Dec 28 22:18:36 sdr-srv01 kernel: [ 43.196901] usb 1-3: device descriptor read/64, error -110
Dec 28 22:18:36 sdr-srv01 kernel: [ 43.304987] usb usb1-port3: attempt power cycle
Dec 28 22:18:36 sdr-srv01 kernel: [ 43.716777] usb 1-3: new high-speed USB device number 4 using xhci_hcd
Dec 28 22:18:47 sdr-srv01 kernel: [ 54.540777] usb 1-3: device not accepting address 4, error -62
Dec 28 22:18:47 sdr-srv01 kernel: [ 54.668775] usb 1-3: new high-speed USB device number 5 using xhci_hcd
Dec 28 22:18:57 sdr-srv01 systemd-udevd[281]: usb1: Worker [282] processing SEQNUM=3059 is taking a long time
Dec 28 22:18:58 sdr-srv01 kernel: [ 65.292775] usb 1-3: device not accepting address 5, error -62
Dec 28 22:18:58 sdr-srv01 kernel: [ 65.293006] usb usb1-port3: unable to enumerate USB device
I have a Win11 PC and an Ubuntu 22 PC here at home.
Do you have the latest firmware (BIOS) installed on the HP PC?
Yes have latest BIOS installed, and also tried with older version, idk but maybe some bug in kernel? I have 6.5.0-35-generic
Also, I have a PCI USB3 card that I run the RX-888 on. Do you not have a different system (hardware) to try the RX-888 on?
Unfortunately both PCs I have here, have identical setup :-(
It worked without any issue since September.
Issues for me started in early december when i updated the system, some days later it was booted multiple times due to power grid issues which we have in sardinia quite often when its stormy weather, after this it did not boot anymore, as I saw today, it hang in an kind of endless loop while booting cause of this usb issue, as soon as i unplugged rx888 the host starded up again
Not good. It sounds like the RX-888 has the issue.
also at home in Switzerland I have my home setup and two other OMs who I know using same hp pc who don't have issue like this (although they have not installed newest updates)
I hoped to run well with this tiny pc, as I got a bunch of them at my workplace, but looks like now they're making troubles
Yeah, I can't help but think the USB3 system is misbehaving on the HP or the RX-888 has an issue. I am hoping for you it is the HP.
Ig it must be the HP USB, as I now tried 3 different RX888 and all behave the same
I think you connected to an USB 2.0 port and not an USB 3.0 port.
Look in your dmesg, it talkes about Hi-Speed USB....
QuoteUSB 1.x: 1.5 Mbps (Low Speed) en 12 Mbps (Full Speed)
• USB 2.0: 480 Mbps (High Speed)
• USB 3.0/3.1/3.2: 5 Gbps, 10 Gbps, en 20 Gbps (SuperSpeed en SuperSpeed+)
• USB4: 40 Gbps
That means USB 2.0....it should talk about SuperSpeed(+)...
So when the RX888 is initialized the receiver goes to USB 3.0 mode and ofcourse an USB 2.0 port can't do anything with it.
As such it's gone.
Your HP PC has USB 2.0 AND USB 3.0 ports.
Ergo, you use the wrong port or your ports are not running as USB 3.0 port, the last can be an BIOS setting, limiting it to USB 2.
Look at the below picture....and check the labels on the ports:
usb-ports.png
Hi Bas,
Thanks for your input, ofc its connected to usb 3.0 Port and those are active in BIOS.
I found out now some interesting behaviour:
Connect RX888 after "cold" boot its shows up in DFU mode and as usb 2.0 in lsusb, if you start rx888_stream it switches to usb 3.0 and is shown as RX888mkII, so much so good.
Now if I do sudo reboot whent its still shown in DFU mode, systems start to act buggy as described above. As soon as I had run PhantomSDR once and its not anymore shown in dfu mode, I can reboot the system whitout any issue.
After reboot its still shown as RX888mkII and not in DFU mode.
If I cut power and do an cold start its again in DFU mode and you should not reboot before starting PhantomSDR once.
Forutnately I have a remote switchable power plug and BIOS configured to do Boot to SSD after Power loss
Is it possible that USB is on autosuspend mode and switched off after a while?
Type cat /sys/module/usbcore/parameters/autosuspend
(if the result is 2, then autosuspend is enabled)
Then:
sudo nano /etc/default/grub
Change:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"
and save file
After this in terminal:
sudo update-grub
and sudo reboot system
After reboot
cat /sys/module/usbcore/parameters/autosuspend
(result should be -1)
Hi,
I have a PhantomSDR+ on an old laptop with only one USB3 port, I typed alias usb3 and it shows this:
Quotewebsdr@Siemens:~$ alias | grep usb
alias usb3='lsusb -t | grep xhci'
websdr@Siemens:~$ usb3
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
websdr@Siemens:~$
A newer laptop shows this, it can be seen that the usb3 port is of better quality:
Quoteroot@probook:/home/websdr/PhantomSDR-Plus/frontend/src# usb3
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 480M
root@probook:/home/websdr/PhantomSDR-Plus/frontend/src#
73!
Darko,9a7aof
Quote from: hb3xdc on Dec 30, 2024, 07:19 PMConnect RX888 after "cold" boot its shows up in DFU mode and as usb 2.0 in lsusb, if you start rx888_stream it switches to usb 3.0 and is shown as RX888mkII, so much so good.
Now if I do sudo reboot whent its still shown in DFU mode, systems start to act buggy as described above. As soon as I had run PhantomSDR once and its not anymore shown in dfu mode, I can reboot the system whitout any issue.
After reboot its still shown as RX888mkII and not in DFU mode.
That means that your USB port keeps being powered, e.g. for charging phones and such.
You can disable this in the BIOS so it recycles the power on the USB-port as well.
You may want to reset the BIOS to default values in total.
Then check the ports that keep being powered and the ports that turn off.
Typical the back-ports do cycle, some front do not.
Also, do not use a powered-hub.
Yes as I said, the RX888 starts in USB2 and after the firmware is uploaded (in ram) it runs as USB3 and only then it shows RX888.
Before th firmware it loads as the Cyrus (forgot the name) USB-chip.
You do want to have it reset after a reboot, else it probably can't reload the firmware.
I'm pretty sure there is something wrong in your BIOS, keeping the ports powered during reboot/power-down.