【正文】
EnableRxAndTxDisableRxAndTx ]M00033CommunicationType= [NormalCommunicationMessagesNetworkManagementCommunicationMessages NetworkManagementCommunicationMessagesAndNormalCommunicationMessages ]M010203Positive Response:ByteNameCvtValue1PositiveResponseServiceIdentifierM682SubFunction = [EnableRxAndTxEnableRxAndDisableTx DisableRxAndEnableTxDisableRxAndTx ]M00010203Negative Response:ByteNameCvtValue1NegativeResponseServiceIdentifierM7F2RequestServiceIdentifierM283NegativeResponseCodeMNRCNegative Response Codes(NRC)NRC (Hex) Conditions Cvt12 Subfunction parameter in the request message is not supported. M13 The length of the message is wrongM22The operating conditions of the server are not met to perform the required action.M31None of the requested CommunicationType values are supported by the device.MSubfunction Parameter Definition:Option(hex)Description Cvt00EnableRxAndTxThis value indicates that the reception and transmission of messages shall be enabled for the specified CommunicationType.M03DisableRxAndTxThis value indicates that the reception and transmission of messages shall be disabled for the specified CommunicationType.MData Parameter Definition:Option(hex)Description Cvt01NormalCommunicationMessagesThis value references all applicationrelated munication (interapplication signal exchange between multiple invehicle servers).M02NetworkManagementCommunicationMessagesThis value references all network management related munication.M03NetworkManagementCommunicationMessagesAndNormalCommunicationMessagesThis value references all network management and applicationrelated municationM. Implementation RulesThere are no special general implementation rules for this service.. SecurityAccess(27H)The purpose of this service is to provide a means to access data and/or diagnostic services, which have restricted access for security or safety reasons. Diagnostic services for downloading/uploading routines or data into a server and reading specific memory locations from a server are situations where security access may be required. Improper routines or data downloaded into a server could potentially damage the electronics or other vehicle ponents or risk the vehicle’s pliance to safety, or security standards. The security concept uses a seed and key relationship.The client shall request the server to unlock by sending the service SecurityAccessRequestSeed message. The server shall respond by sending a seed. The seed is the input parameter for the key calculation algorithm. It is used by the client to calculate the corresponding key value.In a second step, the client shall request the key parison by sending the calculated key to the server using the appropriate service SecurityAccessSendKey. The server shall pare this key to one internally stored/calculated. If the two numbers match, then the server shall enable (unlock) the client’s access to specific services/data and indicate that with the service SecurityAccessSendKey. If the two numbers do not match, this shall be considered as a false access attempt. If access is rejected for any other reason, it shall not be considered as a false access attempt. An invalid key requires the client to start over from the beginning with a SecurityAccessRequestSeed message.If a server supports security, but is already unlocked when a SecurityAccessRequestSeed message is received, that server shall respond with a SecurityAccessRequestSeed positive response message service with a seed value equal to zero (0). The client shall use this method to determine if a server is locked by checking for a nonzero seed.The SeedKey algorithmfor SecurityAccess(Mandatory):Key = ((((seed4) XOR seed)3) XOR seed)。診斷消息ID描述見(jiàn)下表:控制器名稱簡(jiǎn)稱物理尋址診斷請(qǐng)求ID(Hex)診斷響應(yīng)ID(Hex)功能尋址診斷請(qǐng)求ID(Hex)實(shí)施網(wǎng)段驅(qū)動(dòng)電機(jī)控制器MCU0x7E00x7E80x7DFEVBUSTab 2. 診斷 ID列表“由網(wǎng)絡(luò)工程師統(tǒng)一發(fā)布所有診斷ID分配,各系統(tǒng)填寫各自的診斷ID至上表”. 網(wǎng)絡(luò)層時(shí)間參數(shù)ParameterValueUnit BS 8 STmin 20msParameterTimeout Performance Requirement Unit N_As/N_Ar 70 n/a ms N_Br n/a 70 ms N_Bs 150 n/a ms N_Cs n/a 70 ms N_Cr 150 n/a ms Tab 3. 網(wǎng)絡(luò)層時(shí)間參數(shù)需求. 應(yīng)用層時(shí)間參數(shù)ParameterMin Max Timeout Unit P2server 0 50 n/a msP2client n/a n/a 150 msP2*server 0 2000 n/a msP2* clientn/an/a5000msP3client_phys2 P2server n/a n/a ms P3client_func P2server_max n/a n/a ms ParameterMin Nominal Timeout Unit S3server n/a n/a 5000 ms S3client 0 2000 4000 ms Tab 4. 應(yīng)用層時(shí)間參數(shù)需求. Diagnostic Services(ISO142291)Services shall be implemented according to ISO142291. Additional details are specified in this section.. Supported Diagnostic ServicesThe overview of ECU supported diagnostic services is described in the following table.Table 5 Supported diagnostic services of ECUDiagnostic Services ListSessionSecurityAccessAddressingSID (Hex)Service NameDefaultExtendedProgrammingPhysical AddressFunction Address10DiagnosticSessionControl √ √ √ √ √ 11EcuReset√ √ √ √ √ 27SecurityAccess √ √ √ 28CommunicationControl √ √ √ 3ETesterPresent√ √ √ √ √ 85ControlDTCSetting √ √ √ 22ReadDataByIdentifier√ √ √√ 2EWriteDataByIdentifier √ √√1√3√ 2FInputOutputControlByIdentifier√ √1√14ClearDiagnosticInformation√ √ √ 19ReadDTCInformation√ √ √ 31RoutineControl √ √√1√3√ 34RequestDownLoad√√3√36TransferData√√3√37RequestTransferExit√√3√說(shuō)明:訪問(wèn)權(quán)限√1表示需要擴(kuò)展安全級(jí)權(quán)限,√3表示需要編程安全級(jí)權(quán)限。. 數(shù)據(jù)鏈路層數(shù)據(jù)鏈路層應(yīng)滿足ISO118981要求。