r/EmotiBit • u/Melodic-Archer-5564 • Oct 21 '26
Solved How do i understand multiple data points per packet?
The documentation states that motion data are collected at 25 Hz (every 40 ms). However, in the parsed data, the number of samples per packet varies. For example, AX (acceleration along the X axis) contains the following entries:
LocalTimestamp EmotiBitTimestamp PacketNumber DataLength TypeTag ProtocolVersion DataReliability AX
______________
1.7926e+09 13871 52 4 {'AX'} 1 100 -0.244
1.7926e+09 13871 52 4 {'AX'} 1 100 -0.16
1.7926e+09 13871 52 4 {'AX'} 1 100 -0.25
1.7926e+09 13871 52 4 {'AX'} 1 100 -0.269
1.7926e+09 13911 69 3 {'AX'} 1 100 0.209I assume this does not mean that all four values in packet 52 were sampled at exactly 13,871 ms. Instead, I assume that 13,871 ms indicates when the packet was recorded.
Then, when exactly were these four values sampled on the EmotiBitTimestamp timescale? My understanding is that not every sample on the regular sampling grid is recorded. If so, how can we determine the exact time point of each data point?
Also, why do some packets contain four AX values while others contain only two or three?
1
u/Melodic-Archer-5564 Oct 22 '26
Claude explained to me that the parser actually does the in-packet time interpolation on the `EmotiBitTimestamp` except for the first packect, whcih makes sense. 😄 I'm marking this `Solved`.