virtualdave
Well-known member
Hi all,
I need some advice...again
I'm doing a bunch of data processing on a t3 and then passing that along to a CPU via bluetooth or USB. The packet is a fixed length (50 bytes), and consists of:
header (1 byte)
sub-header (1 byte)
9 floats (each float represented by 4 bytes) (these are processed values from an IMU)
4 16-bit ints (each int represented by 2 bytes) (these are processed values from analog sensors connected to the analog inputs on the t3)
1 32-bit int (represented by 4 bytes) (a sample counter represented as an unsigned long that increments every 10ms)
My question is what to use as a header byte that will be unique, i.e. never used by the rest of the packet, so I can use it to let the software know a this is the beginning of a new packet. Or is there such a value given the type of numbers I am sending.
I'll stop here since I'm not sure what information would be helpful. Please let me know what other information I can provide.
Thanks in advance for any pointers.
Cheers,
David
I need some advice...again
I'm doing a bunch of data processing on a t3 and then passing that along to a CPU via bluetooth or USB. The packet is a fixed length (50 bytes), and consists of:
header (1 byte)
sub-header (1 byte)
9 floats (each float represented by 4 bytes) (these are processed values from an IMU)
4 16-bit ints (each int represented by 2 bytes) (these are processed values from analog sensors connected to the analog inputs on the t3)
1 32-bit int (represented by 4 bytes) (a sample counter represented as an unsigned long that increments every 10ms)
My question is what to use as a header byte that will be unique, i.e. never used by the rest of the packet, so I can use it to let the software know a this is the beginning of a new packet. Or is there such a value given the type of numbers I am sending.
I'll stop here since I'm not sure what information would be helpful. Please let me know what other information I can provide.
Thanks in advance for any pointers.
Cheers,
David
Last edited: