View Single Post
Old 3rd Jan 2022, 1:51 am   #156
DeltaAlpha52
Tetrode
 
Join Date: Feb 2020
Location: Crawley, West Sussex, UK.
Posts: 77
Default Re: MK14 Programming Interface

The case issue I "fixed" in my python script by using the upper method on the line read from the file.

for lineraw in fileobj:
line = lineraw.upper()

and then process the line string, it already handled lower case letters in the conversion of each pair of bytes to hex but failed the check sum comparison. The change not yet updated in github.

The esp8266 version uses the fact that if you add up all the byte values, including the checksum, then the answer should be 0 - when truncated with 0xFF. Maybe I should change the python version to do that

The web cam seems like a great idea, I'm pretty sure I can create a web page to show the web cam along side the control page.
I've done some initial testing on my PI version 2 but . . . . . it's not powerful enough - you get a picture but it's always a few seconds behind reality.

Have to see if I can get a PiZerow2 or a Pi4 to test it on.

Stay safe and cheers
David
DeltaAlpha52 is offline