Interpreters Document


Typical Interpreter Line: (all action and goto fields are hex numbers)



Download 6,14 Mb.
Pdf ko'rish
bet100/213
Sana03.04.2022
Hajmi6,14 Mb.
#525844
1   ...   96   97   98   99   100   101   102   103   ...   213
Bog'liq
dps Interpreters

Typical Interpreter Line: (all action and goto fields are hex numbers) 
Step 
Op-Code 
Action Fields
Goto Fields 
02 
27 
01 00 00 00 
34 03 37 13 FF 22 00 00 00 00 
CameraLoops.com



1993-2011 General Motors Company, GM Customer Care & Aftersales. All Rights Reserved.
Page
120 
30 Op-Code: SR 30 to Input/Output Control by Local Identifier 
 
Supported By:
KWP2000 Interpreter 2
 
 
Description: 
The 30 Op-Code will build a standard service request $30 to send to an ECU. A Service Request $30 is used 
for input/output control by local identifier. This Op-Code also supports the option to pass in Control Options 
from a Data Routine. For details on how to use this feature see the Action Fields and the Pseudo Code. The 
routine that contains the Control Options should be formatted with a zero load address and a valid length (see 
description of Data Routines). The data portion of the routine should 
only
contain the Control Options to 
include in the request with no additional data. 
Action Fields: 
AC0: Input/Output Local Identifier
AC1: Routine number from Utility File to use as Control Options in the Service Request 30 (Shall 
be $00 if not used)
AC2: $00 - Not used 
AC3: Exceptions: $00 - Not Used
 
Pseudo Code: 
XX 30 AC0 AC1 AC2 AC3 G0-G1 G2-G3 G4-G5 G6-G7 G8-G9 
Use KWP2000 Normal Response processing
Build Input/Output Control by Local ID Request as indicated in the table below 
Request 
Byte 
Value 
Byte Description 

80 
Format byte for physical addressing 

## 
Global target byte 

## 
Global source byte 

2 + N 
Length of request from byte 5 up to checksum (not included) 

30 
Start routine by local ID request service ID

AC0 
Routine local ID for routine to begin executing 





Control 
Options
to Pass 
Data from routine indicated by value in AC1. Number of bytes (N) 
is 1 to 253. For no Control Options AC1 = 0, and N = 0. 
7 + N 
CS 
1 byte message checksum 
If AC1 is not $00 
Find routine indicated by value in AC1 to include in request as Control Options 
Copy entire Data Routine into request starting at byte 7 
Endif 
Calculate checksum and copy into service request (byte 7 + N) 
Send Input/Output Control by Local ID Request and receive response (up to 10 Bytes) 
Goto KWP2000 Response Processing
If Input/Output Control by Local ID positive response is received 
Look for Input/Output Control by Local ID positive response service ID ($70) in goto fields 
Else
Look for Input/Output Control by Local ID negative response, response code in goto fields 
Endif
If found
Goto appropriate step
Else 
Goto step indicated by FF goto field 
Endif 

Download 6,14 Mb.

Do'stlaringiz bilan baham:
1   ...   96   97   98   99   100   101   102   103   ...   213




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