I'd go further with my help but I'm about 2 hours away from a generic arduino logger proof-of-concept that I hope will help NomakeWan immensely. Already have a "fast forward to first valid message" routine. New thread upcoming on that one.
This is what I have on that:
Code:
0
10 59 00 00 00 00 97
n7
40 57 00 00 69
n12
10 59 00 00 00 00 97
n19
40 57 00 00 69
n24
10 59 00 00 00 00 97
n31
40 57 00 00 69
n36
10 59 00 00 00 00 97
n43
40 57 00 00 69
n48
10 59 00 00 00 00 97
n55
40 57 00 00 69
n60
10 59 00 00 00 00 97
n67
40 57 00 00 69
n72
10 59 00 00 00 00 97
n79
40 57 00 00 69
n84
10 59 00 00 00 00 97
n91
40 57 00 00 69
n96
10 59 00 00 00 00 97
n103
40 57 00 00 69
n108
10 59 00 00 00 00 97
n115
40 57 00 00 69
n120
10 59 00 00 00 00 97
n127
40 57 00 00 69
n-124
0
10 59 00 00 00 00 97
This is with the micro finding the first valid message via checksum validation. The only issue I have to fix is that my input buffer is a 255 byte ringbuffer and the message pump isn't correctly handling the wraparound from 255 to 0 (yet).