-
Somewhat of a followup to #278 ContextI am attempting to use cFS to record data from sensors on my system. Currently I have an app that interfaces with the sensors and forwards their telemetry to the cFS-GroundStation GUI. I would like to have a record of the readings from these sensors and the Data Storage application has some filtering functionality I am interested in exploiting for recording data. Since I have been working with a later version of cFS I've been updating various APIs on the DS app and can get it to compile, receive commands, and send some telemetry. Ultimately, I want a .csv file with a time column and sensor reading columns corresponding to a recorded time. QuestionMessages I write are not giving me data, and I'm not sure if it is a misunderstanding I may have made in the message IDs I am using, data corruption, or something else. Here is an output file for housekeeping after using hexedit to translate the binary to ascii. I thought I'd be able to read a timestamp or a count from the right column. I'm quite stuck on this and would appreciate any insight. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You'll need to translate the binary data to csv. hexedit just shows the ASCII representation of each byte, so data not written as ASCII won't show up as readable ASCII characters. The file starts with the generic FS header:
Looking at your output you can see the Description element translated as "DS data storage file"... proceeded by 32 bytes of binary data. The first element showing up as "cFE1" is because the uint32 binary value is set to translate to actual ASCII characters. To translate, pick your favorite language to read in the binary values and print them out as ascii in your preferred format.
If you do this you'll see the first element printed as ascii: "0x63464531, ". Or pick whatever print format you prefer (%u for decimal). |
Beta Was this translation helpful? Give feedback.
You'll need to translate the binary data to csv. hexedit just shows the ASCII representation of each byte, so data not written as ASCII won't show up as readable ASCII characters. The file starts with the generic FS header: