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

Troubleshooting • Re: USB ports not working after reinstall to newest Bookworm

$
0
0
One way we can test it is using a stock Bookworm image (with updates) on the Pi3+, no other software installed, then run the sketch and check with stty and cat
I'm basically doing all this on a clean install with nothing installed besides updates on Pi 3 and Pi 4. I've installed Java and screen but that shouldn't mess with ports.

Anyway...
Later.. having done that clean install and update, it works fine using stty and cat with the test Arduino UNO sketch:

Code:

pi@pi:~ $ sudo stty -F /dev/ttyACM0 115200pi@pi:~ $ cat </dev/ttyACM00.00etc.
...this works. Basically, setting port to 11500 baud works. It seems to be set to 9600 by default, and if I reconfigure Arduino sketch to 9600, it works without the need for stty command. This makes sense, and it seems that no other parameters are needed.

So, screen works, cat works, everything makes sense.

Only my app STILL doesn't work. Mind you, my app should set the baud rate to 115200 when it opens the port. I've also tried with 9600 baud sketch, doesn't work that way. Tried stty command before running my app, doesn't work.

You sait that the way USB serial chips are treated has changed in Linux at some point in time. Where can I find some more info about this? ?This might give me some ideas. I've looked into serial port library that I use in my app, doesn't really let me do anything differently.

Statistics: Posted by domchi — Mon Nov 11, 2024 4:46 am



Viewing all articles
Browse latest Browse all 3745

Trending Articles