From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a Characterist declared as ASCI on A2L file using NI ECU Measurement and Calibration Toolkit?

I have a characteristic declared as seen below in a A2L File:

 

/begin CHARACTERISTIC Sw_Id "Identification string for software build"
ASCII 0xCF45 __UBYTE_Z 0 NO_FORMULA 0 255
ECU_ADDRESS_EXTENSION 0x0
EXTENDED_LIMITS 0 255
NUMBER 32
/begin IF_DATA ASAP1B_CCP
DP_BLOB 0x0 0xCF46 32
/end IF_DATA
/begin IF_DATA CANAPE_EXT
100
LINK_MAP "Sw_Id" 0xCF45 0x0 0 0x0 0 0x0 0x0
DISPLAY 0 0 255
/end IF_DATA
/end CHARACTERISTIC

 

I tried every kind of MCcharacteristicRead with no success. Anyone know how to do it?

Thanks

0 Kudos
Message 1 of 3
(6,286 Views)

Why can’t you try to use basic LabVIEW I/O functions?

Read your text and do string manipulations get your required data.

Munna
0 Kudos
Message 2 of 3
(6,240 Views)

I myself have not had good success with the ASCII declaration.  Instead, try the VAL_BLK declaration which seems to work better from my experience.  We have also configured the Link_Map line with 0x87 in the second to the last spot.  Not sure what it does as the enum data type, but it seems to work. (LINK_MAP "Sw_Id" 0xCF45 0x0 0 0x0 0 0x87 0x0).

 

/begin CHARACTERISTIC SW_ID ""

VAL_BLK 0xCF45 __UBYTE_Z 0 NO_FORMULA 0 255

EXTENDED_LIMITS 0 255

NUMBER 32

/begin IF_DATA ASAP1B_CCP

KP_BLOB 0x0 0xCF45 4

/end IF_DATA

/begin IF_DATA CANAPE_EXT

100

LINK_MAP "SW_ID" 0xCF45 0x0 0 0x0 0 0x87 0x0

DISPLAY 0 0 255

/end IF_DATA

/end CHARACTERISTIC

 

 

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
0 Kudos
Message 3 of 3
(4,854 Views)