|
|
|
@ -189,22 +189,35 @@ class CanBus: |
|
|
|
|
# In a Data Module, an identifier is a string used to recognize an object, |
|
|
|
|
# either by itself or together with the identifiers of parent objects. |
|
|
|
|
# Each returns a 4 byte hex representation of the decimal part number. `b"\x02\x8c\xf0'"` -> 42790951 |
|
|
|
|
GM_BOOT_SOFTWARE_PART_NUMER_REQUEST = b'\x1a\xc0' # likely does not contain anything useful |
|
|
|
|
GM_SOFTWARE_MODULE_1_REQUEST = b'\x1a\xc1' |
|
|
|
|
GM_SOFTWARE_MODULE_2_REQUEST = b'\x1a\xc2' |
|
|
|
|
GM_SOFTWARE_MODULE_3_REQUEST = b'\x1a\xc3' |
|
|
|
|
|
|
|
|
|
# Part number of XML data file that is used to configure ECU |
|
|
|
|
GM_XML_DATA_FILE_PART_NUMBER = b'\x1a\x9c' |
|
|
|
|
GM_XML_CONFIG_COMPAT_ID = b'\x1a\x9b' # used to know if XML file is compatible with the ECU software/hardware |
|
|
|
|
|
|
|
|
|
# This DID is for identifying the part number that reflects the mix of hardware, |
|
|
|
|
# software, and calibrations in the ECU when it first arrives at the vehicle assembly plant. |
|
|
|
|
# If there's an Alpha Code, it's associated with this part number and stored in the DID $DB. |
|
|
|
|
GM_END_MODEL_PART_NUMBER_REQUEST = b'\x1a\xcb' |
|
|
|
|
GM_END_MODEL_PART_NUMBER_ALPHA_CODE_REQUEST = b'\x1a\xdb' |
|
|
|
|
GM_BASE_MODEL_PART_NUMBER_REQUEST = b'\x1a\xcc' |
|
|
|
|
GM_BASE_MODEL_PART_NUMBER_ALPHA_CODE_REQUEST = b'\x1a\xdc' |
|
|
|
|
GM_FW_RESPONSE = b'\x5a' |
|
|
|
|
|
|
|
|
|
GM_FW_REQUESTS = [ |
|
|
|
|
GM_BOOT_SOFTWARE_PART_NUMER_REQUEST, |
|
|
|
|
GM_SOFTWARE_MODULE_1_REQUEST, |
|
|
|
|
GM_SOFTWARE_MODULE_2_REQUEST, |
|
|
|
|
GM_SOFTWARE_MODULE_3_REQUEST, |
|
|
|
|
GM_XML_DATA_FILE_PART_NUMBER, |
|
|
|
|
GM_XML_CONFIG_COMPAT_ID, |
|
|
|
|
GM_END_MODEL_PART_NUMBER_REQUEST, |
|
|
|
|
GM_END_MODEL_PART_NUMBER_ALPHA_CODE_REQUEST, |
|
|
|
|
GM_BASE_MODEL_PART_NUMBER_REQUEST, |
|
|
|
|
GM_BASE_MODEL_PART_NUMBER_ALPHA_CODE_REQUEST, |
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
GM_RX_OFFSET = 0x400 |
|
|
|
|