Hi guys hope you can help.
Im trying to check the first 16 bytes one at a time to insure that im recieving the correct message.
My question is how do i do this.
i created a for loop to read in all 150 bytes from serial port E now Im stuck
on how to do a check on the first 16 bytes berfore i move this over to a flash card. I hope you can help.
[QUOTE=peanut79;1128]Hi guys hope you can help.
Im trying to check the first 16 bytes one at a time to insure that im recieving the correct message.
My question is how do i do this.
i created a for loop to read in all 150 bytes from serial port E now Im stuck
on how to do a check on the first 16 bytes berfore i move this over to a flash card. I hope you can help.
[/quote]
Could you supply a code snippet or a little more detail please? What is unique about the 1st 16 bytes? In general applications I set up a finite state machine (i.e. a switch block inside a loop where the various case actions manipulate the switch variable (i.e. βstateβ)) to sniff out message headers - more details on your part may get you more help in return!