Replies: 10 comments 1 reply
-
Good point! In fact its a bit historical - file and line came in later as a quick fix. Some thoughts:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for clarification, I get the sharedIDs point, but the two firmware version is easily solved by two The idea I'm working on is to save the data raw as they come from target and "play it" later for analysis, and then 4 bytes for each message are quite noticeable. |
Beta Was this translation helpful? Give feedback.
-
Please describe your use case a bit more in detail. Data logging into FLASH memory? Data handling
Data reducing
Disadvantages
Possible Solution
|
Beta Was this translation helpful? Give feedback.
-
The user case is a project that will run couple of hours, and log as much data as possible as these runs are not easy to perform, and then analyze the logged data, i.e. plots of some key values, etc. It was just an idea to decrease the size of the logged file. Disadvantages: I'm not trying to push change, just thinking. Actually, currently I'm using just the firmware and pyocd to get the Trice messages through RTT out of the MCU and the processing them in python (online or offline), as I do not know go, so it was hard to modify it to mi purpose. |
Beta Was this translation helpful? Give feedback.
-
If data minimizing for recording really matters, check here: https://github.com/rokath/trice/blob/master/docs/TriceObsoleteEncodings.md#411-flex-short-sub-encoding - The FLEX encoding worked well and you can get away with 4 bytes per Trice in the minimum case which includes 2 data bytes. I dropped it in favour for COBS and to keep the TRICE syntax clean. Thinking about your use case, brings me to the conclusion to reactivate it but not spoiling the TRICE syntax. Just a SMALL encoding allowing only 2 value bytes. |
Beta Was this translation helpful? Give feedback.
-
Dealing with with several til.json versions, believe me, brings a lot of discomfort especially if colleges simply want watch the logs. It is much easier to tell them just to use the latest til.json version without knowledge about the firmware variant and version. In this context they are not interested in location information. The SW developer generates an li.json and when the trice tool it finds, the location information is displayable. |
Beta Was this translation helpful? Give feedback.
-
#266 is now a to do. |
Beta Was this translation helpful? Give feedback.
-
See TriceV1.0 specification draft and TCOBS document in doc Folder. |
Beta Was this translation helpful? Give feedback.
-
Please check v0.54.1. It uses an additional file li.json for the location information thus avoiding the 4 additional bytes for location information. |
Beta Was this translation helpful? Give feedback.
-
In v0.55.1 the encoding TREX is implemented as default. See CHANGELOG.md. This reduces the trice byte stream further. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions