News:

LATEST RELEASE:  FPP 8.4 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/8.4

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16781
Latest: mdarlin2
New This Month: 44
New This Week: 17
New Today: 4
Stats
Total Posts: 134942
Total Topics: 16878
Most Online Today: 139
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 5
Guests: 121
Total: 126

Solution for USB Dongle not appearing in FPP for colorlight card

Started by Scottishsurfer, October 31, 2024, 06:15:42 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Scottishsurfer

I thought I'd share how I fixed the issue regarding my USB Dongle not appearing in FPP unless removed and reinserted.  It was so frustrating as I am using my PI4 to control my p5 matrix.  The pi only has one Network card, so you must use a USB dongle to connect to the colorlight card.  Every time I rebooted the pi, it would not recognize my usb dongle unless I unplugged it and reinserted it.

My Setup:
  • Raspberry pi4 connected to a colorlight card with a Realtech USB Dongle.

What was happening?

On boot, the USB dongle was getting recognized as a storage device. I checked by
fpp@P5-Panel[/$[lsusb

Bus 002 Device 003: ID 0bda:8151 Realtek Semiconductor Corp. RTL8151 Adapteon Business Mobile Networks BV
Bus 002 Device 002: ID 05e3:0626 Genesys Logic, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

The results from above on my device shows my Realtek USB LAN adapter's info is: idVendor=0bda, idProduct=8151

If you need to install usb_modswitch:
sudo apt install usb_modeswitch

I then use the Vendor id and product id in the command below.  The -R will reset the USB device once it switches from storage to Ethernet Adapter.

sudo usb_modeswitch -v 0bda -p 8151 -R

Now check that your USB dongle is now being recognized as an Ethernet Adapter.

fpp@P5-Panel: lsusb
Bus 002 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 002 Device 002: ID 05e3:0626 Genesys Logic, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
us 001 Device 003: ID 05e3:0610 Genesys Logic, Inc. Hub
us 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
us 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub[

You are almost done, but FPP will still not recognize the USB device until you restart Fpdd.  It you restart fppd and it works, next is to automate this on boot.

To make the command run every time your Raspberry Pi boots up, you can add it to a startup script. Here's how you can do that:

Open the rc.local file for editing:

sudo nano /etc/rc.local

Add your command above the exit 0 line:

sudo usb_modeswitch -v 0bda -p 8151 -R 


Save the file by pressing CTRL + X, then Y, and Enter.  The last part is to set the fppd delay:  FPP SETTINGS >> SYSTEM >> FPPD Boot Delay.  I use 10secs.
Reboot your Raspberry Pi to test:

sudo reboot

Now your USB dongle will be recognized correctly and no more unplugging/plugging in again.  Enjoy.

darylc

Thanks.  This is likely USB dongle specific.  Some USB ethernet dongles will work out of the box, others are hard like this one.

The other alternative is to use the in-built Pi Ethernet port for colorlight (if your pi is 3B+, 4, or 5 with Gigabit Ethernet) and using wifi to receive fpp sync packets from a player.

Scottishsurfer

Quote from: darylc on October 31, 2024, 06:37:40 PMThanks.  This is likely USB dongle specific.  Some USB ethernet dongles will work out of the box, others are hard like this one.

The other alternative is to use the in-built Pi Ethernet port for colorlight (if your pi is 3B+, 4, or 5 with Gigabit Ethernet) and using wifi to receive fpp sync packets from a player.
Totally agree, mine is a Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter.  I also just wanted to document this in case anyone else has this issue as Chatgpt was hopeless troubleshooting, sending me down a rabbit hole, and the forums just said to buy a new dongle.

darylc

Quote from: Scottishsurfer on October 31, 2024, 07:04:06 PMthe forums just said to buy a new dongle.
In reality that is probably the best solution for 99% of fpp end-users

Support FPP

+- Recent Topics

K32 & Soundblaster by ricardo
Today at 10:17:23 AM

Using FPP on the pi to extend wifi by Poporacer
Today at 10:17:00 AM

Adding additional PSU to R2R F16v5 by Gilrock
Today at 10:16:26 AM

Different sound levels by mdarlin2
Today at 09:03:56 AM

f16v4 expansion by K-State Fan
Today at 07:19:49 AM

Issue with FPP and WLED Not Displaying Effects over DDP by ricardo
Today at 02:48:39 AM

Length of pigtail before pixels by LedMutt
Today at 01:57:11 AM

K16 BBB CPU at 100% by Cosmo99
December 12, 2024, 05:28:26 PM

FPP connecting to network issue by Santacarl
December 12, 2024, 04:20:33 PM

GE Insane Cane Bars not following submodel in Xlights. by Suikoden
December 12, 2024, 09:16:20 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod