General Specification Electrical Function gmw3110 General Motors Local Area Network Enhanced Diagnostic Test Mode Specification



Download 8,35 Mb.
Pdf ko'rish
bet142/406
Sana03.04.2022
Hajmi8,35 Mb.
#525939
1   ...   138   139   140   141   142   143   144   145   ...   406
Bog'liq
gmw3110

NumArrayElements 
This is a local flag set to the number of elements in the PidStructArray. 
ECU dependent 
Index
This is a local flag used to index through the array of PID structures when 
determining if the PID requested is valid 
0 to 
(NumArrayElements -1) 
CameraLoops.com


GM WORLDWIDE ENGINEERING STANDARDS 
GMW3110 
© Copyright 2010 General Motors All Rights Reserved 
February 2010 
Page 114 of 336 
8.6.6.2 Node Interface Pseudo Code. 
Powerup States: 
None 
The following logic is executed when a request message with ServiceId $22 is received by the ECU: 
BEGIN FUNCTION Serv_22_Msg_Recvd() 
IF ((message_data_length < 3) OR ((message_data_length > max_22_Msglength) OR 
((message_data_length MOD 2) = 0)) THEN 
Srv_22_NRC 

$12 
ELSE 
Srv_22_NRC 

$00 
Num_PIDs_Requested 

((message_data_length - 1)/2) 
/* Populate ReqPIDArray[] with PID numbers from request message. There is no eloquent way to show 
this in pseudo code so it is assumed in the pseudo code that it gets done through typecasting or some 
type of pointer manipulation (language dependant) */ 
Process_Request 

FALSE 
FOR (ReqIndex 

$00 TO (Num_PIDs_Requested - 1) BY $01) 
/* loop through array of PID structures to see if requested PID is valid */ 
FOR (Index 

$00 TO (NumArrayElements - 1) BY $01) 
IF (ReqPIDArray[ReqIndex] = PidStructArray[Index].PidNumber) THEN 
IF ((PidStructArray[Index].PidSecure = NO OR Security_Access_Unlocked = TRUE) AND 
(PidStructArray[Index].PidSecurityCode = NO OR Security_Access_Allowed = TRUE)) THEN 
Process_Request 

TRUE 
IF (PidStructArray[Index].Rc78Needed = YES) THEN 
Srv_22_NRC 

$78 
ENDIF 
Index 

NumArrayElements /* to exit for loop */ 
ENDIF 
ENDIF 
ENDFOR 
ENDFOR 
IF (Process_Request = TRUE) THEN 
IF (Srv_22_NRC = $78) THEN 
Srv_22_NRC 

$00 
send ($7F $22 $78) 
ENDIF 
/* obtain PID data - The pseudo code does not dictate how this is done. For example, the data may be 
retrieved via a call to a function whose pointer is contained in the PID structure. Another example 
would be to obtain the data via a global variable or by accessing memory and length information for a 
dynamic PID. This is not intended to be the comprehensive list on how to do this */ 
FOR (ReqIndex 

$00 TO (Num_PIDs_Requested - 1) BY $01) 
FOR (Index 

$00 TO (NumArrayElements - 1) BY $01) 
--``,,``````,``,,``,,,`,`,`,,-`-`,,`,,`,`,,`---
CameraLoops.com



Download 8,35 Mb.

Do'stlaringiz bilan baham:
1   ...   138   139   140   141   142   143   144   145   ...   406




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish