I just talked to my partner, which made it a little bit more complicated (at least for me: )):
Well, he wants to send with every package 18bytes, but they could include both (acceleration and velocity). We defined velocity as a '1' and acceleration as a '0'. So the first byte is always a '1' or a '0'. Then the corresponding values with the time will follow. The values should represent one byte. But in the same package there could suddenly be an "identification" byte again and then the case structure has to switch to the the other case.
E.g. one packages could look like this: 0(for acceleration), acceleration value, value, value, value, value, time, time, time, time, time, 1(for velocity)), velocity value, value, value, time, time, time.
Did you get an idea?
THANKS FOR YOUR HELP!