Hi!
Thanks for the answer, I think it works just as I hope - I will try it for real on Monday!
I think that ord() did the trick that I've missed ;-)
/Boppen
Hi!
I'm getting a string from a device that's connected on a serial-port that looks like this;
STX Text text text ... CR ETX BCC
Where STX=0x02, ETX=0x03, CR=0x0d and BCC is the checksum 0x00-0xFF.
The checksum should be calculated using XOR of everything exept STX and BCC.
But how should I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.