Open 321github123 opened 3 months ago
We have the ability to do raw logging via the LOG_STREAM
keyword on the interface. As the docs note, this is the raw stream and we don't put any headers on the data so it can't be interpreted by any of the COSMOS tools.
We also have scripting APIs to start this raw logging: start_raw_logging_interface(<NAME>)
.
I think what you're asking for is additional tool support for these raw streams to be able to view them like we do with View Raw in the CmdTlmServer. Is that correct?
I think what you're asking for is additional tool support for these raw streams to be able to view them like we do with View Raw in the CmdTlmServer. Is that correct?
Yes that's right
We have the ability to do raw logging via the
LOG_STREAM
keyword on the interface. As the docs note, this is the raw stream and we don't put any headers on the data so it can't be interpreted by any of the COSMOS tools.We also have scripting APIs to start this raw logging:
start_raw_logging_interface(<NAME>)
.
We tried out the start_raw_logging_interface and the output binary e.g. "2024_08_16_14_04_56_DEFAULTMYTARGETALLrtraw.bin" does not appear to be the data that first enters the interface (before any protocols run). For example, we can't find our sync word in the data. The data appears to be the raw packets that have been processed by our protocols.
That's not the right file (its a raw packet log file). stream_logs will show up in BucketExplorer under DEFAULT/stream_logs
They will write out every 10 minutes or if you do a start, wait, stop with:
start_raw_logging_interface(
They will show up immediately.
Note the double meaning of "raw logging". In COSMOS 6 these APIs should be renamed to start_stream_logging_interface, stop_stream_logging_interface.
I tried running the following script
print('hi')
start_raw_logging_interface("inst")
wait(60)
stop_raw_logging_interface("inst")
print('done')
but am not seeing "stream_logs" in bucket explorer (under log bucket)
This doesn't work with our simulated interface because no data is actually flowing in.
If you connect the example interface and then use a similar script it will work.
connect_interface("EXAMPLE_INT") start_raw_logging_interface("EXAMPLE_INT") wait(60) stop_raw_logging_interface("EXAMPLE_INT")
First check out our main documentation site at https://openc3.com.
Is your feature request related to a problem? Please describe. We can see the raw packet data but not the raw data received from the interface (before any protocols are applied)
Describe the solution you'd like Something similar to Data Viewer. Additional features might be able to play back old data or save data to file.
Additional context Add any other context or screenshots about the feature request here.