1993-2011 General Motors Company, GM Customer Care & Aftersales. All Rights Reserved.
Page
24
04 Op-Code: Device control - Mode 4
Supported By:
UART Interpreter 0
Description:
The 04 Op-Code sends an ALDL mode 4 command
that sets a bit
Action Fields:
AC0:
Device ID
AC1:
00 - Not Used
AC2:
00 - Not Used
AC3:
00 - Not Used
Pseudo Code:
XX 04 AC0 AC1 AC2 AC3 G0-G1 G2-G3 G4-G5 G6-G7 G8-G9
Use UART Return Type Processing of One
Build Mode 4 message as indicated in the table below
Request
Byte
Value
Byte Description
1
AC0
Device ID
2
0D
Message
length
3
04
Message mode
4
00
First
data byte
5
00
Second data byte
6
00
Third data byte
7
00
Fourth data byte
8
01
Fifth data byte
9
00
Sixth data byte
10
00
Seventh data byte
11
00
Eighth data byte
12
00
Ninth data byte
13
00
Tenth data byte
14
00
Eleventh data byte
15
00
Twelfth data byte
16
CS
Message checksum
Send Mode 4 message and
receive response
Goto UART Return Type Processing
Build a Mode 5 message as exactly as indicated below (the interpreter builds and sends this message as part
of the 04 Op-Code. A separate 05 Op-Code does not necessarily need to follow the 04 Op-Code):
Request
Byte
Value
Byte Description
1
AC0
Device ID
2
01
Message length
3
05
Message mode
4
CS
Message checksum
Use UART Return
Type Processing of Zero
Wait for an „F0‟ poll (equivalent of the option AC1=01 shown in the description of 05 Op-Code)
CameraLoops.com
1993-2011 General Motors Company, GM Customer Care & Aftersales. All Rights Reserved.
Page
25
(continued)
Send the Mode 5 message
and receive response
Goto UART Response Processing
Look for response byte 4 in Goto fields
If
Response Byte 4 is Found in Goto Fields
Goto appropriate step
Else
Goto step indicated by FF goto field
Endif
response byte 4 is found in goto field
Typical Interpreter Line:
Step
Op-Code
Action Fields
Goto Fields
1F
04
F4 00 00 00
04 20 FF 99 00 00 00 00 00 00
CameraLoops.com
1993-2011 General Motors Company, GM Customer Care & Aftersales. All Rights Reserved.
Page
26
05 Op-Code: Ram download request - Mode 5
Supported By:
UART Interpreter 0
Description:
The 05 Op-Code will build a standard mode 5 message to send to a device. A mode 5 command
will prepare
the device to receive executable code from the serial data link. Mode 5 messages are used in conjunction with
modes 6 & 16 to download information to devices. The mode 5 command should expect an AA response for
success.
Action Fields:
AC0:
Device ID
AC1:
00 No wait
01 Wait for an F0 poll before sending mode 5 request
02 Wait for an F0 poll before sending mode 5 message (don't display poll No Comm. failures)
AC2:
00 - Not Used
AC3:
00 - Not Used
Pseudo Code:
XX 05 AC0 AC1 AC2 AC3 G0-G1 G2-G3 G4-G5 G6-G7 G8-G9
Use UART Return Type Processing of Zero
Build Mode 5 message as below:
Do'stlaringiz bilan baham: