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

Troubleshooting • Communication between RPI and pico stops.

$
0
0
HI,
I've built a board based on the RP2040. My client connects these to a raspberry pi 4 and then controls stuff through sending USB commands (the USB-stdio stuff).

He complains that sometimes this "hangs". Everything indicates that my module is still "alive and well". It is flashing its led like normal.

I've implemented a "if no command is received in XXX seconds, then reboot" on the module and that clears things up and we can make the software recover. But this one didn't have that enabled just yet. Anyway those hiccups are unwanted in the application of course.

My client thinks it is a bit because he's sending lots of commands through USB. When I test things, I just type a few commands, and find it works, But actually USING the stuff means you automate sending stuff and end up sending way more than what I have ever typed. He measures between 110 and 120 commands-per-second sent.

I'm now running a stress test at 200 commands per second. No failures yet.

Does anybody have any ideas to help figure out where the problem lies? My code? The USB lib on the pico? The USB cable? The USB stack on Linux? The USB hardware on the raspberry pi?

Statistics: Posted by rew — Sun Jul 21, 2024 2:18 pm — Replies 0 — Views 26



Viewing all articles
Browse latest Browse all 4515

Trending Articles