tao_z
2022-05-29 ada7b40da88974c6f4596c7c9d1317eb19095a0e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
 
 
from enum import Enum, IntEnum
Security_dic = {"0x01请求种子": 1, "0x02发送密钥": 2}
 
 
class ShifterCANID():
    def __init__(self):
        self.normalid = 0
        self.phy_txId = 0
        self.phy_rxId = 0
        self.fun_rxId = 0
 
 
class ShifterPosition(IntEnum):
    ShiftPosZero = 0
    ShiftPosX2 = 2
    ShiftPosX1 = 3
    ShiftPosY1 = 4
    ShiftPosY2 = 5
    ShiftPosNotInit = 8
    ShiftPosM_Minus = 0xc
    ShiftPosM_Plus = 0xd
    ShiftPosM = 0xe
    ShiftNotAvailable = 0xF
 
 
DID_dic = {
    "ProgrammingCounter": 0x2100,
    "ProAtpCounter": 0x2101,
    "BackupConfig": 0x2102,
    "VehicleName": 0x2103,
    "DiagVersion": 0x2104,
    "BootSoftId": 0x2105,
    "DFLZMPartNum": 0xF187,
    "VehiclEECUSoftwareVersion": 0x2108,
    "SupplierID": 0xF18A,
    "ECUManufacturingDate": 0x210B,
    "ECUSerialNumID": 0xf18c,
    "VINDataIdentifier": 0xF190,
    "ECUHardwareVersion": 0xF193,
    "ECUSoftwareVersion": 0xF195,
    "SystemNameOrEngineType": 0x2110,
    "RepairShopCodeOrTester": 0x2111,
    "ECUProgtammingDate": 0x2111,
    "InstallDate": 0x2113,
    "NetConfig": 0xf019,
    "FunctionConfig": 0xf010,
    "ActiveDiagSession": 0x2106,
    "EGSMSensorPositon": 0x2116,
    "ReleaseButtonState": 0x2118,
    "PButtionState": 0x2119,
    "PaddleState": 0x211A,
    "ECUPowerVoltage": 0x211B,
    "VehicleSpeed": 0x211c,
    "SystemName": 0xF197,
    "WriteFingerPrint": 0xF15A,
    "ReadFingerPrint": 0xf15b,
    "IndicationLEDControl": 0x8101
}