Страница 1 мировой engineering стандарты общая спецификация



Download 1,29 Mb.
Pdf ko'rish
bet200/435
Sana02.08.2022
Hajmi1,29 Mb.
#846314
1   ...   196   197   198   199   200   201   202   203   ...   435
Bog'liq
WORLDWIDE ENGINEERING STANDARDS General Motors Local Ar

PidStructArray[]
This is an array of structures that contain the data needed to support PIDs. for
the purposes of the pseudo code of this service it is assumed that each structure
contains the following information:
1. PidSecure - Set to YES if security access is required to retrieve PID data
2. PidSecurityCode – Set to YES if security code access is required to retrieve
PID data
Other elements may exist in the structure such as a pointer to a function to
retrieve the data, memory address and length information (for a dynamic PID,
see $2D service), etc. Only the PidSecure and PidSecurityCode are shown here
for the purposes of the pseudo code.
The pseudo code uses the following convention to access an element of the
structure:
PidStructArray[0].PidSecure would indicate if security access is required for the
first PID structure in the array.
N/A
--``,,``````,``,,``,,,`,`,`,,-`-`,,`,,`,`,,`---
Page 146
GM WORLDWIDE ENGINEERING STANDARDS
GMW3110
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

ms) THEN
Send ($7F $2C $78) /*for RequestCorrectlyReceived-ResponsePending */
ENDIF


25.06.2020
WORLDWIDE ENGINEERING STANDARDS General Motors Local Area Network Enhanced Diagnostic Test Mode Specification
https://translate.googleusercontent.com/translate_f
130/298
© Copyright 2010 General Motors All Rights Reserved
February 2010
Page 146 of 336
invalid_PID ←
NO
total_length ←
0
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)
--``,,``````,``,,``,,,`,`,`,,-`-`,,`,,`,`,,`---

Download 1,29 Mb.

Do'stlaringiz bilan baham:
1   ...   196   197   198   199   200   201   202   203   ...   435




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