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: 16844
Latest: Mjaneja
New This Month: 22
New This Week: 4
New Today: 4
Stats
Total Posts: 135288
Total Topics: 16945
Most Online Today: 137
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 2
Guests: 91
Total: 93

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 1 Guest 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

Differential Board: PSU & Enclosure by JonD
Today at 06:24:23 AM

wine from matrix with octoscroller control by Poporacer
January 12, 2025, 10:40:05 AM

FPP 8.4 released! by dkulp
January 12, 2025, 08:20:06 AM

xLights.org forum registration waiting for approval for several months. by darylc
January 11, 2025, 12:42:54 AM

Display TEXT to LED Panels form REST API by ariemusbandi
January 10, 2025, 08:58:54 PM

FPP sequence fade by CaptainMurdoch
January 10, 2025, 08:19:33 AM

Combining multiple shows (models, sequences, etc.) into a single xLights show by JonD
January 09, 2025, 07:41:31 PM

F8 Distro Board and 36V power supplyu by JonD
January 09, 2025, 12:04:31 PM

FPP-channel & universe numbers? by JonD
January 09, 2025, 07:00:58 AM

Expansion boards (mounting) by JonD
January 09, 2025, 04:04:50 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod