BallAerospace / python-ballcosmos

Python Support for Ball Aerospace COSMOS v4
Other
18 stars 4 forks source link

Queue invalidation occurring with subscription #22

Closed keck-in-space closed 3 years ago

keck-in-space commented 3 years ago

Hello,

I am using the ballcosmos library to subscribe to telemetry data. However, it looks like during times of high data rates, we see an error with the queue that we're using to receive data.

This is the error we see.

JsonDRb Error (-1): Packet data queue with id 1 not found

We have to resubscribe to get data again, which means we lose data during downlinks of large files.

Any ideas what we can do to fix this?

Thanks!

ghost commented 3 years ago

If queues overflow, they are deleted and that is the error you will receive.

The solution is to make a larger queue when you subscribe. The default is 1000 entries, but you can set it to whatever you need. It will use RAM, so try to keep up servicing the queue.

https://cosmosc2.com/docs/v4/scripting#subscribe_packet_data