INCA .a2l and .hex files

26 views (last 30 days)
Berkay
Berkay on 5 Jul 2012
Commented: Deepan on 23 Mar 2023
Hello everybody
I'm trying to import a .a2l and .hex file from INCA to extract then the labels (variables) an their values.
But I don't know how to find the value in the .hex file. Here a example of a .a2l file:
...........
..........
.............................................................
/begin CHARACTERISTIC
Hugo %%Label Name
"Hugo start to heat kitchen" %%Label describtion
VALUE
0x810625AA %%Value
KwKK13
1535.977
temp_q0p3
-111.1500
1222.827
FORMAT "%8.3"
/end CHARACTERISTIC
...
.hex file:
:2027C00000FD09CFC808D9FF0EDA50FF8CF0B7FF81F7A80F3BC00380DA145FF80600820F8A
:2027E000D90F5E81280F34E81D009F0009D841083B4001A099CE04007685DF187F001D00C4
(both files are only shown here as a very small extract of the real file.)
thank you very very much!
Greets

Answers (1)

Walter Roberson
Walter Roberson on 9 Jul 2012
The .hex files are apparently in Motorola S-record format. If I thought about it some, I could probably reconstruct the details of the format from when I used it 30 years ago ;-)
The content encoded by the .hex files varies according to the variety of measurement being done.
Unfortunately it appears that as I am not an authorized ETAS user, I am prohibited from reading the file format documentation!
There is a chance that this File Exchange contribution will help in the ultimate task: http://www.mathworks.com/matlabcentral/fileexchange/9301-incamatlab-gui-demo
  1 Comment
Deepan
Deepan on 23 Mar 2023
do we have a m-script to parse S-record?

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!