All the data must be put in a protocol to decode the data on the ground, and we shall refer to this as the encoder frame.
The most naïve encoder frame (which is not used) consists only of the raw digitally sampled 8-bit analog signals is sent down to the ground. After sending sensor 1 to 8, the frame starts over again with sending sensor 1 and upwards. After a signal dropout, there is no way for the decoders at the ground station to know what the binary data is, when a new sensor is starting or where a new frame is starting. To avoid this we start the frame with a 16-bit sync word which is always fixed to 0xEB90. It is very unlikely that a sync word value will occur anywhere else in the encoder frame, and if it does, we would only loose two frames as a worst case after a dropout. When the encoder recognizes the sync word, it knows exactly where in the frame it is and what comes next. The next is a frame counter, a 16-bit long value incrementing by one for each frame so that one can easily see how many frames a dropout has lasted. An overflow of the sync word only happens every 30 seconds or so. After the sync word the eight 8-bit sensor values are sent, and the two 8-bit digital sensors are sent last, before a new encoder frame is started with a sync word and then the incremented frame counter and so on.
The transmitter sends with a data rate of 250 kbps. Knowing that each frame is 14 bytes (two sync bytes, two counter bytes, eight analog signal bytes and two 8-bit digital), we can then easily calculate that the number of frames per second is. This must then also be the sampling frequency of the sensors.
How the data is received and processed at the ground station is a topic for the campaign period.
This article is a part of a pre-course program, used by NAROM in different courses, for example Fly a Rocket!