AUDIO SYSTEMS DELPHI AUTOMOTIVE SYSTEMS CORPORATION Keyword 2000 to RS-232 Gateway Systems Analysis INterface Tool (SAINT) Users Guide Document Number TBD Version A , Draft 6 January 20, 2004 Copyright © Delphi Automotive Systems Corporation, 2004 Maintained by: Scott Herren Delphi Delco Electronics Systems 1800 East Lincoln Road Mail Station R329 Kokomo, IN 46904-9005 Phone: (765) 451-7168 FAX: (765) 451-7085
SAINT Keyword 2000 to RS-232 Gateway 01/20/04 Page 1 of 20 Table of Contents 1 Introduction ......................................................................................................................... 3 1.1 1.2 1.3 Scope........................................................................................................................................................................ 3 Precedence ...........................................................................................
SAINT Keyword 2000 to RS-232 Gateway 01/20/04 Page 2 of 20 Revision Log Revision A Draft 1 – March 12, 2003 Initial release of the document. Draft 2 – April 25, 2003 Updated Section 4.4.1 (added message 2C 06 XX message) Draft 3 – May 8, 2003 Changed all references of ACP to Keyword 2000. Draft 4 – December 15, 2003 Updated Section 4.4.1 (added new commands – 07 thru 0A) Updated Section 4.4.2 (added new KW2K transmit structure) Draft 5 – January 7, 2004 Updated Section 4.4.
SAINT Keyword 2000 to RS-232 Gateway 1 1.1 01/20/04 Page 3 of 20 Introduction Scope This document describes the use and operation of SAINT Gateway with Keyword 2000 firmware. This document is proprietary to Delphi Automotive Systems Corporation and cannot be copied in whole or in part without the express written consent of Delphi Automotive Systems Corporation. 1.2 Precedence This document shall have precedence over any information in any other document.
SAINT Keyword 2000 to RS-232 Gateway 2 01/20/04 Page 4 of 20 Overview This document describes the operation of the Keyword 2000 to RS-232 Gateway. The gateway is often referred to as the “SAINT gateway” or simply “SAINT”. The following is synopsis of gateway features: • • • • • • Allows host system to communicate on Keyword 2000 bus. Performs timing, access, arbitration, serialization, and error control. Configuration via host to gateway messages. LED status indicator array: 1.
SAINT Keyword 2000 to RS-232 Gateway 3 01/20/04 Page 5 of 20 RS-232 Setup The gateway uses the following RS-232 parameters: - 8 Data Bits - 1 Stop Bit - No Parity The gateway supported baud rate: 57600. Baud Rate 57600 The supported baud rate is sufficient for communicating with the Class2, Keyword, ACP, BEAN, and slower CAN bus’s. However, USB connection is recommended for high speed CAN communications. 3.
SAINT Keyword 2000 to RS-232 Gateway 4 01/20/04 Page 6 of 20 Message Format To minimize latency with the RS-232 link, all data is sent in binary form. The same data format is used to send and receive messages. The gateway supports bi-directional asynchronous communications. 4.1 Data Stream The host data stream is broken into messages. A message consists of a Message ID and one or more data bytes. The character FFh is used as an ESCAPE character to indicate the end of messages.
SAINT Keyword 2000 to RS-232 Gateway 4.2 01/20/04 Page 7 of 20 Messages IDs Message IDs are one byte long and have the following general format: Type (CAN, BEAN, ACP,Class 2, IIC, etc) Command (Cmd=1) Tx (1) / Rx (0) Time Stamp (TS) Bits 3 - 7 bit 2 bit 1 bit 0 The upper nibble indicates the type of message.
SAINT Keyword 2000 to RS-232 Gateway 4.3 4.3.1 01/20/04 Page 8 of 20 Gateway Messages Gateway Commands The SAINT Gateway supports the following commands: 4.3.1.
SAINT Keyword 2000 to RS-232 Gateway 4.3.2 01/20/04 Page 9 of 20 Gateway Reports The gateway will report a Reset whenever one occurs. Most likely causes of reset are power on reset, host commanded reset, or gateway micro watchdog error. The gateway does a cold start on all resets (all information is lost). The gateway will also report error conditions with the Report Error message below. See section 4.3.2.1 for error code definitions. The gateway will also echo back all system commands.
SAINT Keyword 2000 to RS-232 Gateway 4.4 4.4.1 01/20/04 Page 10 of 20 Keyword 2000 Messages Keyword 2000 Commands The following commands may transmitted to the SAINT.
SAINT Keyword 2000 to RS-232 Gateway 2Ch 0Eh 01/20/04 Enable/Disable Forced Format Byte (Error Testing) Page 11 of 20 00 = Disable forced format byte (default) 01 XX = enable forced format byte (where XX = format byte) The following commands are reported by the SAINT (without time stamp information).
SAINT Keyword 2000 to RS-232 Gateway 4.4.
SAINT Keyword 2000 to RS-232 Gateway 4.4.
SAINT Keyword 2000 to RS-232 Gateway 4.4.5 01/20/04 Page 14 of 20 Target address byte This is the target address for the message and is always used together with the source address byte. Refer to the “Keyword Protocol 2000 Data Link Layer Recommended Practice” section 4.1.2 for more information. 4.4.6 Source address byte This is the address of the transmitting device which is a physical address. Refer to the “Keyword Protocol 2000 Data Link Layer Recommended Practice” section 4.1.
SAINT Keyword 2000 to RS-232 Gateway 5 01/20/04 Page 15 of 20 Connectors The gateway uses two connectors. One connector is for the RS-232 link and is DB9F. The second connector is a DB9M for the CAN bus (low speed, medium speed, and high speed), Class 2 bus, Keyword, power, and ground. The following pin outs are used: 5.1 RS-232 Connector (J3-DB9F) A straight pass cable should be used to connect the gateway to the host computer. 5.
SAINT Keyword 2000 to RS-232 Gateway 5.3 01/20/04 Page 16 of 20 Flash programming connector Note: the long term goal is to Flash using the USB connector. Connector J2 is used with an external connector – the intended application of this port is the flash programming of a product. The pin out of the connector J2 – flash programming connectior - is as follows: Pin # Mnemonic Use / description Line up the connector label with the board pin label.
SAINT Keyword 2000 to RS-232 Gateway 6 01/20/04 Page 17 of 20 LEDs Four LEDs are used by the gateway.
SAINT Keyword 2000 to RS-232 Gateway 7 7.1 01/20/04 Page 18 of 20 Switches SW1 Transceiver Switches: The following is a summary of the dip switches . 7.2 SWITCH # Mnemonic Purpose 1 NA NA 2 NA NA 3 NA NA 4 NA NA 5 NA NA 6 NA NA 7 NU Not currently being used 8 NU Not currently being used SW2 Manual Reset: SW2 is the manual reset switch.
SAINT Keyword 2000 to RS-232 Gateway 8 01/20/04 Page 19 of 20 Software Packages The following table lists the latest firmware releases for the SAINT board. Name Hardware Version Date Description KW2K_10.HEX 1.2 + 03/12/03 Keyword 2000 initial release.