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

Python • Re: Serial communication problem

$
0
0
I tested my programs at work on Windows 11 using an RS232 to USB converter and on a hardware card with 2x RS232 ports; the result was the same. It works without any problems on Putty, while in Python it gives a correct response only once every several queries. I also tested it on a Raspberry Pi 4 with the same RS232 to USB converter. I haven't tried it on RS through GPIO yet. I also haven't tried it on minicom; I'll have time for that on Monday because I'm going away for the weekend. Today, I brought the clock to work, and I'll be testing it during my free moments.

I think the hardware is OK because it always works on Putty. I don't know how Putty accesses the port, but apparently, Python does it differently.

Statistics: Posted by dojnikowski — Fri Jun 07, 2024 6:02 am



Viewing all articles
Browse latest Browse all 5324

Trending Articles