Is it possible to map characteristic data bytes to a typed entity #36
-
Using pyxcp I can request a characteristic from the slave based upon its address and length. If I then want to interpret the data bytes returned as a meaningful typed value I can then look at various attributes of the characteristics class to determine how to interpret this, i.e. string, signed/unsigned value, array etc. etc. Just in case I didn't find it or realise it existed, does the pyA2L package already handle this for me (i.e. something that returns a suitably typed entity? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I'm glad you're asking!!! 🙂 This is exactly were asamint kicks in. Cheers Christoph |
Beta Was this translation helpful? Give feedback.
-
OK, in the asamint examples directory you'll find to calibration examples:
asamint uses two configuration files (parameters are mostly self-explanatory):
|
Beta Was this translation helpful? Give feedback.
-
I've forgot to mention an interim solution: and the source |
Beta Was this translation helpful? Give feedback.
I'm glad you're asking!!! 🙂
This is exactly were asamint kicks in.
As soon as you're leaving the world of scalar characteristics, things are getting complex and complicated -- to name the (one) enemy: RECORD_LAYOUT; there are so many details to consider (some information could be easily extracted from your a2ldb, other information needs to be dynamically created with the help of a memory image), the spec. is nebulous at many points -- you certainly won't do this at home...
But I've spent a considerable amount of time to get this working (i.e. carefully comparing the converted values, curves, maps, ..., with the outcome of CANape).
Yes, with asamint it's possible to create ASAM CDF and Dam…