Hei guys!
I would really apreciate if someone could help me to debug this issue (thanks in advance!):
- Situation: Rpi5 + Camera (CSI connected) + PCI hat + USB dodgle for internet connection + Pirelay v2 (with an additional load at the coil side of circa 0.6 A at 12 V when relay is close)
The full system is power by a source (12 V, 8 amp) that is then regulated to 5V 6A [https://www.tracopower.com/ch/deu/series/tos-06sil]. From the 12 V , two relays from Pirelay v2 are power (normaly open).
When connected to the raspberry via Wifi - SSH, i can run a simple process who close and open the relay. So far so good. it works (or that is what i thought)
Then, when connected through the internet (SSH-tunnel), running the same process the connection break exactly after the relay is open again.
Initially I thought that could be a magnetic field that could be affecting the USB dodgle, but then i realice that I also get this error:
So basically Im running out of power (I believe) and not only the USB is been affected but also the PCI hat. Now the question is: how can this be solved? I tried addingto `/boot/firmware/config.txt' and altought it did work once (?) , the usb and the PCI keep loosing current.
is important to mention that when removing the load from the relay, so only triggering the relay, this do not happens, so i guess that the relay need way more energy when trying to open it back when the load is there. Would limiting the current from the GPIO to the relay an option? in theory there should be 16 mA per pin so I guess that this shield is asking for more....
Any ideas? thanks!
I would really apreciate if someone could help me to debug this issue (thanks in advance!):
- Situation: Rpi5 + Camera (CSI connected) + PCI hat + USB dodgle for internet connection + Pirelay v2 (with an additional load at the coil side of circa 0.6 A at 12 V when relay is close)
The full system is power by a source (12 V, 8 amp) that is then regulated to 5V 6A [https://www.tracopower.com/ch/deu/series/tos-06sil]. From the 12 V , two relays from Pirelay v2 are power (normaly open).
When connected to the raspberry via Wifi - SSH, i can run a simple process who close and open the relay. So far so good. it works (or that is what i thought)

Then, when connected through the internet (SSH-tunnel), running the same process the connection break exactly after the relay is open again.
Initially I thought that could be a magnetic field that could be affecting the USB dodgle, but then i realice that I also get this error:
Code:
dmesg | grep -n 100[ 1279.274531] pcieport 0000:00:00.0: AER: Corrected error received: 0000:00:00.0[ 1279.274545] pcieport 0000:00:00.0: PCIe Bus Error: severity=Corrected, type=Data Link Layer, (Receiver ID)[ 1279.274550] pcieport 0000:00:00.0: device [14e4:2712] error status/mask=00000080/00002000[ 1279.274554] pcieport 0000:00:00.0: [ 7] BadDLLP
So basically Im running out of power (I believe) and not only the USB is been affected but also the PCI hat. Now the question is: how can this be solved? I tried adding
Code:
usb_max_current_enable=1PSU_MAX_CURRENT=5000
is important to mention that when removing the load from the relay, so only triggering the relay, this do not happens, so i guess that the relay need way more energy when trying to open it back when the load is there. Would limiting the current from the GPIO to the relay an option? in theory there should be 16 mA per pin so I guess that this shield is asking for more....
Any ideas? thanks!
Statistics: Posted by camilo.chiang — Fri Mar 08, 2024 1:43 pm