GM WORLDWIDE ENGINEERING STANDARDS
GMW3110
© Copyright 2010 General Motors All Rights Reserved
February 2010
Page 115 of 336
IF ((ReqPIDArray[ReqIndex] = PidStructArray[Index].PidNumber) AND
((PidStructArray[Index].PidSecure = NO) OR
(Security_Access_Unlocked = TRUE)) AND ((PidStructArray[Index].PidSecurityCode = NO)
OR (Security_Access_Allowed = TRUE))) THEN
attempt to obtain pid data
IF (operating conditions did not allow PID data to be successfully retrieved) THEN
Srv_22_NRC
$22
Index
NumArrayElements /* to exit inner for loop */
ReqIndex
Num_PIDs_Requested /*exit outer for loop */
ELSE
copy PID number and data into response buffer
Index
NumArrayElements /* to exit for loop */
ENDIF
ENDIF
ENDFOR
ENDFOR
ELSE
Srv_22_NRC
$31
ENDIF
ENDIF
IF (Srv_22_NRC != $00) THEN
IF ((message_address_type = PHYSICAL) OR (Srv_22_NRC != $31)) THEN
send ($7F $22 $Srv_22_NRC)
ENDIF
ELSE IF (Process_Request = TRUE) THEN
send ($62, PID#_MSB, PID#_LSB, data…….)
ENDIF
ENDFUNCTION
8.6.7 Node Verification Procedure.
Procedure 1:
1. Send a physically addressed $22 message for one (unsecure) $PID that is supported by the ECU. Verify
proper response, containing the data of the requested $PID (test data formatting).
2. Send a physically addressed $22 message for a single $PID where that $PID is not supported by the ECU.
Verify the negative response ($7F $22 $31 - Request Out Of Range).
3. If applicable, send a physically addressed $22 message for one secure $PID (that is supported by the
ECU) at a time when the ECU is secure. Verify the negative response ($7F $22 $31 - Request Out Of
Range).
4. If applicable, unlock the ECU via the security access service then repeat the request in the previous
procedure and verify the appropriate positive response and data content.
5. Send a physically addressed $22 request message for multiple $PIDs (if the ECU supports multiple PIDs
in a single request), where at least one, but not all, of the requested $PIDs is supported by the ECU and
does not require security access. Ensure that the number of PIDs in the request is less than or equal to the
maximum number supported in a single request. Verify proper response, containing only the data of the
requested $PID(s) which are supported by the ECU and do not require security access.
6. Send a physically addressed $22 request message for multiple $PIDs (if the ECU supports multiple PIDs
in a single request), where all of the requested $PIDs are supported by the ECU (and do not require
security access). Ensure that the number of PIDs in the request is less than or equal to the maximum
--``,,``````,``,,``,,,`,`,`,,-`-`,,`,,`,`,,`---
CameraLoops.com
Do'stlaringiz bilan baham: |