Hi VL400,VL400 wrote:Nice project, that sunglass holder face plate is neat as![]()
The attached might help get you started reading ALDL dataThe displays you are using, depending on the library may tie up the arduino for a bit of time so logging speeds get pretty slow.
Ive had a good look at the code you have posted here and have a pretty good idea of whats going on. However ive got a few questions:
-If this ALDL.read() function is called when the UART has half received an ALDL message, say it has received 5 bytes of a aldl frame that is 10 bytes long, will calling this function lose that frame even if it was going to be perfectly valid?
-At the top of the function it checks for a timeout (ALDL_TIMEOUT). How many milliseconds should this be, is it a timeout per byte (say just a couple of ms), or what is the idea here?
Thanks