Closed abdelrahman47 closed 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.
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.
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.
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.