【正文】
quest ControlDTCSetting with setting mode 1 (switch on) is received (Option: Suppress positive response message indication bit is set) or after successful transmission of the positive response (Option: Suppress positive response message indication bit is not set).The ECU power supply voltage is down (reset or ECU power down event).The diagnostic session changes from Extended Diagnostic Session to Default Session.The services ReadDTCInformation ReportDTCByStatusMask, ReadDTCInformation ReportSupportedDTCand ClearDiagnosticInformation shall not be affected by this service.. ReadDataByIdentifier(22H)The request message requests data record values from the server by one or more dataIdentifier(s).When receiving a ReadDataByIdentifier request, the server will access the data elements of the records specified by thedataIdentifier parameter(s) and transmit their value in ReadDataByIdentifier positive response containing theassociated dataRecord parameter(s).. Message FormatRequest:ByteNameCvtValue(hex)1RequestServiceIdentifierM22 DataIdentifier[ ] 1 = [ 2byte1 (MSB)M00FF3byte2 ]M00FF……..… DataIdentifier[ ] m = [ n1byte1 (MSB)U00FFnbyte2 ]U00FFPositive Response:ByteNameCvtValue1PositiveResponseServiceIdentifierM62 DataIdentifier[ ] 1 = [ 2byte1 (MSB)M00FF3byte2 ]M00FF DataRecord[ ] 1 = [ 4data1M00FF…………(k1)+4datak]U00FF……..… DataIdentifier[ ] m = [ n(o1)2byte1 (MSB)U00FFn(o1)1byte2 ]U00FF DataRecord[ ] m = [ n(o1)data1U00FF ………ndatao]U00FFNegative Response:ByteNameCvtValue1NegativeResponseServiceIdentifierM7F2RequestServiceIdentifierM223NegativeResponseCodeMNRCNegative Response Codes(NRC)NRC (Hex) Conditions Cvt13 The length of the message is wrong.M22The operating conditions of the server are not met to perform the required action.U31None of the requested dataIdentifier values are supported by the device.MData Parameter Definition:For dataIdentifier supported by the ECU, please refer to appendix B.. Implementation RulesThe maximum number of dataIdentifiers to be read within a single request is limited to 1.. WriteDataByIdentifier (2EH)The WriteDataByIdentifier service is used by the client to write a dataRecord to a server. The data is identified by a dataIdentifier.. Message FormatRequest:ByteNameCvtValue(hex)1RequestServiceIdentifierM2E DataIdentifier[ ] 1 = [ 2byte1 (MSB)M00FF3byte2 ]M00FF DataRecord [ ] = [ 4data1U00FF…………m+3datam]U00FFPositive Response:ByteNameCvtValue1PositiveResponseServiceIdentifierM6E DataIdentifier[ ] 1 = [ 2byte1 (MSB)M00FF3byte2 ]M00FFNegative Response:ByteNameCvtValue1NegativeResponseServiceIdentifierM7F2RequestServiceIdentifierM2E3NegativeResponseCodeMNRCNegative Response Codes(NRC)NRC (Hex) Conditions Cvt13 The length of the message is wrong.M22 1. The operating conditions of the ECU are such that it can’t performthe required action (.,the data for a DataIdentifier is stored in EEPROM and an EEPROM failurehas occurred).2. The ECU internal conditions do not allow the writing of anyDataIdentifier/ IdentificationOption.1) The system is currently in initialization.2) The system is currently in InputOutputControlByIdentifier service active stage.3) The system is currently busy at modifying memory.4) The vehicle is moving.U31 1. The dataIdentifier in the request message is not supported in the server or the dataIdentifier is supported for read only purpose (via ReadDataByIdentifier service). 2. Any data transmitted in the request message after the dataIdentifier is invalid (if applicable to the node). M33 The dataIdentifier, which reference a specific address, is secured and the server is not in an unlocked state. M72 The server detects an error when writing to a memory location. MData Parameter Definition:For dataIdentifier supported by the ECU, please refer to appendix B.. Implementation RulesIt is the system supplier’s responsibility that the server conditions are met when performing any action request by this service, including but not limited to the following:1)The high and low voltage current faultdoes not existin the system.Please specify other rulesin your module.. InputOutputControlByIdentifier (2FH)This service is used by the tester to substitute a value for an input signal, internal ECU function and/or control an output of an electronic system referenced by an inputOutputDataIdentifier .. Message FormatRequest:ByteNameCvtValue(hex)1RequestServiceIdentifierM2F DataIdentifier[ ] 1 = [ 2byte1 (MSB)M00FF3byte2 ]M00FF ControlOptionRecord1[ ] = [ 4ControlState1/InputOutputControlParameterM/U00FF…………4+(m1)ControlState m]C00FF ControlEnableMaskRecord1[ ] = [ 4+mControlMask 1C00FF…………4+m+(r1)ControlMask r]C00FFPositive Response:ByteNameCvtValue1PositiveResponseServiceIdentifierM6F DataIdentifier[ ] 1 = [ 2byte1 (MSB)M00FF3byte2 ]M00FF ControlStatusRecord1[ ] = [ 4ControlState1/InputOutputControlParameterC00FF…………4+(m1)ControlState m]C00FFNegative Response:ByteNameCvtValue1NegativeResponseServiceIdentifierM7F2RequestServiceIdentifierM2F3NegativeResponseCodeMNRCNegative Response Codes(NRC)NRC (Hex) Conditions Cvt13 The length of the message is wrong. M22 ConditionsNotCorrectM24The “returnControlToECU” subfunction is received without first