Identification of packets in a byte stream
I'm having a bit of a problem with the communication to an accelerometer sensor. The sensor puts out about 8000 readings/second continuously. The sensor is plugged in to a usb port with an adaper and shows up as com4. My problem is that I can't seem to pick out the sensor reading packets from the byte stream. The packets have the size of five bytes and have the following format: High nibble Low nibble Byte 1 checksum, id for packet start X high Byte 2 X mid X low Byte 3 Y high Y mid Byte 4 Y low Z high Byte 5 Y mid Y low X, y, z is the acceleration. In the documentation for the sensor it