cfs-tools / cfs-basecamp

Provides a framework and tools for developing, downloading, and integrating core Flight System (cFS) applications into an operational system.
Other
25 stars 3 forks source link

Add binary file support to file_xfer #29

Closed dmccomas closed 1 year ago

dmccomas commented 1 year ago

File Data Segment definitions currently use an EDS StringDataType that only supports text files. I still don't know how to do binary blocks in EDS, so this issue is recommending encoding binary files in hex. For the FSW, PktUtil_HexEncode() and PktUtil_HexDecode() can be used. Similar utilities will need to be created for the python. See MQTT_GW app's mqtt_topic_sbmsg for an example.

dmccomas commented 1 year ago

Added "Start Bin FITP" and "Start Bin FOTP" commands. They use the PktUtil_HexEncode() and PktUtil_HexDecode() utilities. I had to add a new parameter to PktUtil_HexEncode() so MQTT_GW will need to be updated (https://github.com/cfs-apps/mqtt_gw/issues/8).