02-20-2015 12:00 PM
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
02-24-2015 04:16 AM
Why can’t you try to use basic LabVIEW I/O functions?
Read your text and do string manipulations get your required data.
04-18-2016 09:32 AM
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