nasa / bplib

Apache License 2.0
30 stars 13 forks source link

Add demonstration app/capability for BPv7 #78

Closed jphickey closed 2 years ago

jphickey commented 2 years ago

Add hooks into bplib to allow the new v7 code to be demonstrated. One should be able to generate a v7 bundle from a local payload, receive a bundle, and obtain the payload from it.

jphickey commented 2 years ago

This is partly done, currently in the development branch in an app called "bp_test", but that app is single-threaded and may not be fully representative of how the library would be used in a real application.

A more complete demonstration should be done via the "bp_send" and "bp_recv" test programs, which are there, but need to be updated to the v7 implementation.

jphickey commented 2 years ago

Also related is work item #97, in order to more appropriately reflect a deployment scenario the background/time-based activities should be relegated to an actual background task with appropriate locking in place. Notably, things like generation of a DACS bundle for custody acknowledgement takes place after a time delay, so some threading model needs to be in place to allow that to happen at the right time.