BallAerospace / COSMOS

Ball Aerospace COSMOS
https://ballaerospace.github.io/cosmos-website/
Other
360 stars 129 forks source link

combine multiple telemetry packets in one packet #1646

Closed abdelrahman47 closed 2 years ago

abdelrahman47 commented 2 years ago

My scientific instrument sends large telemetry data in separate packets respectively with only one PCKID in the first packet. for example: PCK1: PACKID | value1 | value2 | ....... PCK2: value3 | value4 | ....... and so on.

is there a way i can configure Cosmos to combine a certain number of packets together which comes after a certain PCKID.

ghost commented 2 years ago

As long as PCK2 always follows PCK1, you could define them together as one big packet. You might need to use the FIXED protocol rather than LENGTH to make that work.

abdelrahman47 commented 2 years ago

thanks for the fast reply

In my case, not all packets are fixed in length and the FIXED protocol works when all the packets using the interface are a fixed size.

Can i configure it to work with a certain packet.

ghost commented 2 years ago

Not really. Is there nothing in your PCK2 packet you can use as an identifier? You might be getting to the custom interface point, where you'll have to handle that packet specially in the read() method.