i'm pretty new on arduino things,( i can light a led ,read a little soft ,make ppm remote but not more).
i would like to understand a little bit more about serial communications , and particulary a CCITT 16 initialized to 0 CRC.
for those who would like to know , it is about controlling a photon 320 IR camera. i use to calculate some checksum online for few functions i needed, but now i would like to know how to calculate onboard a arduino...
for example, the sentence to change the camera video output from white = hot to rain colors : $6E,$00,$00,$10,$00,$02,$BC,$9A,$00,$0B,$B1,$6B
there is two CRC ccitt 16: the first one takes the first 6 bytes: $6E,$00,$00,$10,$00,$02 and the result is BC the second one is the whole sentence with the previous calculeted CRC included : $6E,$00,$00,$10,$00,$02,$BC,$9A,$00,$0B,$B1 and the result is 6B
now my question is : is there a way to calculate both crc to be able to send the good sentence to the camera knowing that i need to be able to change the byte 4,5 and 6 (ex:$10,$00,$02) ?
i did some search and i found that there is some library for avr but i have no idea on how to make that works for arduino.
can someone point me some links or tips so i can make some projects.