Sujet : Re: Python (was Re: I did not inhale)
De : Muttley (at) *nospam* dastardlyhq.com
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 21. Aug 2024, 16:40:05
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va51ok$3tqr9$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
On Wed, 21 Aug 2024 17:27:04 +0200
David Brown <
david.brown@hesbynett.no> boringly babbled:
On 21/08/2024 12:26, Muttley@dastardlyhq.com wrote:
Trying to understand the Linux documentation for UARTs is a nightmare.
They are horrendous - the APIs, structs, flag sets, etc., are a vast
jumble of crap for handling terminals that haven't been seen outside a
museum for 50 years, long before Linux was conceived. Trying to get the
Unfortunately terminals are complex beasts with many permutations though
all that should be a higher level that what you were doing with a UART.
Even better, of course, is to ditch C and use Python - "pyserial" does
it all, simply and cleanly. (And the same code works on Windows, if
The problem with pyserial is you have to use Python. Horrible language
though like BASIC, useful for teaching kids to code.