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


GM WORLDWIDE ENGINEERING STANDARDS



Download 8,35 Mb.
Pdf ko'rish
bet183/406
Sana03.04.2022
Hajmi8,35 Mb.
#525939
1   ...   179   180   181   182   183   184   185   186   ...   406
Bog'liq
gmw3110

GM WORLDWIDE ENGINEERING STANDARDS 
GMW3110 
© Copyright 2010 General Motors All Rights Reserved 
February 2010 
Page 146 of 336 
8.10.6.2 Node Interface Pseudo Code. 
Powerup States: 
All dynamic DPIDs are initialized to a data length of $00 
Each time a $2C message is received, the following logic is executed: 
BEGINFUNCTION Serv_2C_Msg_Recvd() 
valid_request 

NO 
IF ((message_data_length < 4) OR /* message must have at least 4 data bytes */ 
((message_data_length MOD 2) != 0)) THEN /* length must be even number */ 
send Negative Response ($7F $2C $12) /* InvalidFormat */ 
ELSE 
FOR (DPID_Index 

0 TO max_Dynamic_DPID_Index BY 1) 
IF ($DPIDIdentifier = Supported_Dyn_DPIDs[DPID_Index]) THEN 
valid_request 

YES 
DPID_Index 

max_Dynamic_DPID_Index 
ENDIF 
ENDFOR 
IF (valid_request = NO) THEN 
send Negative Response ($7F $2C $31) /* RequestOutOfRange */ 
ENDIF 
ENDIF 
IF (valid_request = YES) 
IF (Processing this message will take more than P2
C
ms) THEN
Send ($7F $2C $78) /*for RequestCorrectlyReceived-ResponsePending */ 
ENDIF 
invalid_PID 

NO 
total_length 


FOR (PID_Req_Index 

0 TO (message_data_length - 4) BY 2) 
Requested_PID 

((PIDData[PID_Req_Index] << 8) | 
(PIDData[PID_Req_Index + 1])) 
PID_Found 

NO 
FOR (PID_Index 

0 TO max_PID_index BY 1) 
IF (Requested_PID = PIDs_Supported[PID_Index].PID_Number) AND 
((PidStructArray[Index].PidSecure = NO) OR Security_Access_Unlocked = TRUE)) AND 
((PidStructArray[Index].PidSecurityCode = NO) OR (Security_Access_Allowed = TRUE)) 
PID_Found 

YES 
total_length 

(total_length + PIDs_Supported[PID_Index].length) 
PID_Index 

max_PID_index 
ENDIF 
ENDFOR 
IF (PID_Found = NO) 
invalid_PID 

YES 
PID_Req_Index 

(message_data_length - 2) 
ENDIF 
ENDFOR 
IF (invalid_PID = YES) 
--``,,``````,``,,``,,,`,`,`,,-`-`,,`,,`,`,,`---
CameraLoops.com



Download 8,35 Mb.

Do'stlaringiz bilan baham:
1   ...   179   180   181   182   183   184   185   186   ...   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