Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8597

Troubleshooting • Re: USB Disconnection frequently in Raspberry pi 5

$
0
0
Hi Team,

In our setup, we have connected a Depth Camera to one USB port, and a Mega4U USB Hub to another USB port. Additionally, the Mega4U Hub is powered by an external power supply.

The complete system is mounted on the conveyor.

When the conveyor moves in the forward direction, the USB connections work fine.

However, when the conveyor starts moving in the reverse direction, we are facing frequent USB disconnections.

We have updated the DTS file to increase the maximum USB current using the following configuration:

Code:

/dts-v1/;/plugin/; / {    compatible = "raspberrypi,5-model-b";     fragment@0 {        target-path = "/soc/usb@0/port@1";   // adjust path to match your live.dts        __overlay__ {            maximum-current = <900>;        };    };     fragment@1 {        target-path = "/soc/usb@0/port@2";        __overlay__ {            maximum-current = <900>;        };    };     fragment@2 {        target-path = "/soc/usb@0/port@3";        __overlay__ {            maximum-current = <900>;        };    };     fragment@3 {        target-path = "/soc/usb@0/port@4";        __overlay__ {            maximum-current = <900>;        };    };};
We limited the maximum current to 900 mA per port, which reduced the USB disconnection issue by a ratio of 15:1.

Could you please explain why the issue occurs during conveyor startup and why it is mitigated after updating the DTS file?

Statistics: Posted by sakthinathan — Thu Sep 11, 2025 4:55 am



Viewing all articles
Browse latest Browse all 8597

Trending Articles