ADVANCED VEHICLE TECHNOLOGIES, Inc. AV. AVT-718 LIN Support. Introduction. Firmware. Hardware. Inc.

Similar documents
ADVANCED VEHICLE TECHNOLOGIES, Inc. AV. AVT-718 KIE Support. Introduction. Hardware. Firmware. Inc.

ADVANCED VEHICLE TECHNOLOGIES, Inc. AV. AVT-718 PPD Support. Introduction. Hardware. Firmware. Connecting to the Network. Inc.

AVT-718 SDM-AOS Support

AVT-84x Auto Block Transmit (ABX)

AVT-718. Multiple Interface. RS-232 or RS-422 Unit

K-Line Initialization Information

AVT J1939 / J1708 Controller. Interface Control Document and Related Technical Information

ADVANCED VEHICLE TECHNOLOGIES, Inc. AV. AVT-423 rev. C and D Product Data Sheet

HDV100A3 Command Response Protocol

LDV Communications Specification

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their

The I-7530A-MR Modbus RTU to CAN Converter

DELPHI CORPORATION. LIN to RS-232 Gateway Systems Analysis INterface Tool (SAINT) Users Guide

Sequential Event Recorder

Gryphon Hardware Information: LIN card

ONYX-MM-XT PC/104 Format Counter/Timer & Digital I/O Module

RL78 Serial interfaces

The I-7530A RS-232/485/422 to CAN Converter

MX200 SERIES Modbus Card 50P GE Zenith Controls. Operation and Maintenance Manual 50R-2200B 12/00

PACSystems* RX3i IC695CMM002 and IC695CMM004

LCD03 - I2C/Serial LCD Technical Documentation

MIDI CPU Firmware V User Manual

GW-7228 J1939/Modbus RTU Slave Gateway

PACSystems* RX3i IC695CMM002 and IC695CMM004

Typical modules include interfaces to ARINC-429, ARINC-561, ARINC-629 and RS-422. Each module supports up to 8 Rx or 8Tx channels.

ECAN-240. (Modbus TCP to 2-port CAN Bus Gateway User manual) ECAN-240 Modbus TCP to 2-port CAN Bus Gateway User Manual, Version 1.0.

OLED Engineering Kits User Manual

LCD03 - I2C/Serial LCD Technical Documentation

APPLICATION NOTES - PIGNONE P6008 RTU CUSTOM PROTOCOL

Dual Interface LCD Display Controller

Embedded Modbus TCP Module GS11-MT. User Manual REV 1.1. SST Automation.

Series 370 Stabil-Ion Gauge Controller with RS-485 Interface Option

PIC-I/O Multifunction I/O Controller

Sierra Radio Systems. Mesh Data Network. Reference Manual. Version 1.0

The full specification may be obtained from or

BV4542. I2C or Serial 16x2 with Keypad interface

Serial Communications Guide

SRF08 Ultra sonic range finder Technical Specification

D-100 FLOW DISPLAY MODBUS Network Interface Installation Guide

INTELLIS. Modbus Direct Network Monitor

BV4505. IASI-Keypad Controller. Product specification. January 2009 V0.a. ByVac Page 1 of 13

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features

Instruction Manual February smartlinx interface module MODBUS RTU

BV4615. Dual Interface Zero Keypad. Product specification. Dec 2009 V0.a. ByVac Page 1 of 11

BV4501 IASI Twin Relay. Product specification. December 2008 V0.a. ByVac Page 1 of 12

The Omega product you have just received is of the highest quality available, offering superior performance, reliability and value to the user.

QBridge. I2C, SPI, CAN Control Software User s Manual. Date: Rev 1.3

Modbus communication module for TCX2: AEX-MOD

NETWORK ANALYZER SOFTWARE (NAS) USER S MANUAL Version Preliminary

URCOM. User s Manual

MP3 Trigger v2 User Guide

SCI-2144 SYSTEM CONTROL INTERFACE MODULE OPERATOR S MANUAL

ProxPro with Key pad APPLICATION NOTE. June 17, 2009 Document Number AN0009_A Barranca Parkway Irvine, CA 92618

TH LINK PROFIBUS. Release Note. Version

IS-Dev Kit-8 User Manual

is then retained absolutely without interruption.

BV4531U. I2C or Serial 6 Way Relay

GW-7238D J1939 to Modbus TCP Server / RTU Slave Gateway

SIOX Four I/O Mini Module

The RS-485 user manual for B800 series communication

Getting Started with your D3000M Series Module

Definition of PLR on the RS485-bus. Version 1.06

TABLE OF CONTENTS 2/10

PROFIBUS DP/CAN Gateway PCA-100. User Manual

I-7565-CPM Intelligent USB/CANopen Master Module

11 Serial Communications

K-line Communication Description

NCOM SERIAL DEVICE SERVER 4XX SERIES USER S MANUAL

RS485 S-Protocol Communications Supplemental Manual for Brooks GF40/GF80 Series Mass Flow Controllers and Meters

Connection Guide (RS-232C)

EGW1-IA3-MB User s Manual

Hello, and welcome to this presentation of the STM32 I²C interface. It covers the main features of this communication interface, which is widely used

Serial Communication Adapter

SRF02 Ultrasonic range finder Technical Specification

CAT Controlled Fract-N Synthesizer

1. Implemented CM11 protocol

HDLC-ETH. Serial Ethernet Converter. Rev. Dec 20, Datasheet. Website:

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

Acu-Trac Ultrasonic Level Sensors

hipecs-cio56 CANopen I/O module with PT100/1000 inputs

GE FANUC Parts 1. DeviceNet Network Master/Slave August 2002 GFK-1539A. Quick Start Guide. Product Description. Specifications. Preinstallation Check

DIGITAL COMPASS SOLUTION

melabs Serial LCD Firmware Version 1.0 2/7/07

DeviceNet Drive Profile CFW-09

hipecs-cio55 CANopen I/O module with 4 analog inputs

VINCULUM-BASED TEMPERATURE / HUMIDITY / VOLTAGE DATA LOGGER FEATURES:

INTERFACES TRADITIONAL PC ADAPTER CARD. DATA SHEET page 1/6. Description

THT-500-A/R (C5) 1. System Configuration COMMUNICATION INSTRUCTION MANUAL. No. THT5CE

JetWeb JX6-INT1 Function Description

DAQ Electronics, Inc 262B Old New Brunswick Road, Piscataway, NJ

KCD-HP. KCD-HP200x, 300X. [Figures] Top : 1% Sensor probe Bottom left : 10% / 20% Sensor probe Bottom right : Holding bracket(optional) Measurement

180 Series Keypad. Handbook. Revision 2.1

HP 48 I/O Technical Interfacing Guide

Installation & Operation Guide

NS9750B-0. Use in conjunction with: Errata , Rev G. Release date: May Phone: Web:

Application Note 304. Flex Power Modules. Microcontroller Programming for 3E Digital Products

PX Serial - Quick Start Guide

WTDIO-M. eeder. Digital I/O Module. Technologies FEATURES SPECIFICATIONS DESCRIPTION. Weeder Technologies

ICS Regent. Communications Package for W INTERPRET. Guarded Peer-Link Communications (T3831) PD-6041

Transcription:

ADVANCED VEHICLE TECHNOLOGIES, Inc. AV Inc. AVT-718 LIN Support This document describes LIN mode operations for the AVT-718 interface. LIN mode was first introduced in the AVT-718 firmware version 2.6. Introduction 18 June, 2002 2 May 2011 LIN [Local Interconnect Network] is a single wire network similar to ISO 9141, ISO 9141-2, Key Word Protocol 2000 [KWP 2000], and UBP [Ford Uart Based Protocol]. LIN is significantly different in one major respect as compared to many other automotive networks including those supported by the AVT-718: LIN architecture utilizes a Master / Slave arrangement. The AVT-718 LIN mode supports operations as either a Master or a Slave. Firmware To add LIN mode support to an existing AVT-718 requires that the firmware be upgraded. The AVT-718 is a FLASH based device and supports field upgrades of the interface firmware. The code file for the desired firmware version can be obtained from the factory. The factory can also provide two host PC applications to reprogram the AVT-718 FLASH with the firmware code file. One application is a pure DOS program. The other is a 32-bit application for use under MS-Win95/98/NT. Hardware The UBP hardware interface on the AVT-718 is used for LIN communications. A production AVT-718 uses an 18.2 K ohm passive pull-up resistor on the UBP K-line. The LIN specification lists the standard baud rates as: 2400, 9600, and 19200 baud. The AVT-718 will support operations up to and including 9600 baud without any hardware modifications. To support operations at 19200 baud the network must be terminated (passively pulled up to V-batt.) through a 1 K ohm resistor. Note: Unless otherwise indicated, numbers in this document are hex. 1509 Manor View Road, Davidsonville, MD 21035 USA +1-410-798-4038 (voice) +1-410-798-4308 (fax) www.avt-hq.com support@avt-hq.com

Desired network termination can be provided external to the AVT-718 or the AVT-718 can be modified. To modify the AVT-718 resistor R51 is replaced with the desired value. Resistor R51 is a 1/4-watt metal film axial resistor. If R51 is replaced in the field care should be taken to ensure the PC board is not damaged. LIN K-line The LIN K-line signal is present on pin #3 of the Network connector P3 on the AVT-718. [This signal can be found on pin #17 of jumper block JP1 on the AVT-718 board.] Consult the AVT-718 User s Manual for detailed information about the location of signals on the Network connector as well as means and methods of moving the UBP/LIN signal to another pin. Operation The user should consult the Master Commands and Responses document for a complete list of all LIN mode commands and responses. Version 33 was the first released version containing the LIN commands and responses. LIN mode is entered by issuing the mode switch command: $E1 44. The expected response is: $91 19. Once LIN mode has been entered, the AVT-718 is connected to the LIN network and is constantly monitoring the network for messages. Unless commanded otherwise the AVT-718 (in LIN mode) monitors all network activity, will receive all messages, will notify the host of all received messages, and will not transmit anything onto the network. This can be thought of as passive monitor mode. Message Received from the Network The AVT-718 is always listening to the network. All network messages are received and passed to the host. [The coarse filtering algorithm, known as the Match table, can be enabled by the user, $3x command. The ID byte is message byte #1.] The construction of a received message packet sent to the host is as follows. [Time stamp disabled] 0x yy ID rr ss... where: 0x = upper nibble 0 indicates from the network lower nibble x is the count of bytes to follow yy = received status byte (bit map, below) ID = message ID byte rr ss... = message data bytes (optional field) [Time stamp enabled] 0x gg hh jj kk yy ID rr ss... where: 0x = upper nibble 0 indicates from the network lower nibble x is the count of bytes to follow gg hh jj kk = microsecond time stamp yy = received status byte (bit map, below) Page 2

ID = message ID byte rr ss... = message data bytes (optional field) Received Status Byte LIN 7 6 5 4 3 2 1 0 Message length does not match format From this node Message too short Error decoding length code Message received without break 0 Time-out error Checksum error Received message examples: 04 00 B1 11 22 04 = from the network, four bytes follow. 00 = no errors detected and not transmitted by this node. 05 00 B1 11 22 CC 04 = from the network, five bytes follow. 00 = no errors detected and not transmitted by this node. CC = checksum byte. [Note: the checksum byte is enabled by the $52 01 01 command.] 06 40 E2 11 22 33 44 06 = from the network, six bytes follow. 40 = transmitted by this node, no errors detected. E2 = message ID byte indicating four bytes of data expected. 11 22 33 44 = actual message data bytes. [Note: this message will only occur if the $52 06 01 command had been sent previously.] 05 C3 E2 11 22 33 05 = from the network, five bytes follow. C3 = bits 7, 6, 1, and 0 all set: [message length didn t match format, 4 bytes were expected, only 3 were received; data was transmitted by this node; receive buffer timed out waiting for the expected data; checksum error.] E2 = message ID byte indicating four bytes of data expected. 11 22 33 = actual message data bytes. Receive Message Time Out The AVT-718 opens a receive buffer whenever a synch break is detected on the network. At that point the Maximum Frame timer is started (command $5x 52). If a complete message is not Page 3

received before that timer has expired, the contents of the receive buffer are checked and then sent to the host. Any error conditions, such as message length not matching the expected length and checksum, are flagged in the receive status byte. As soon as the Message ID byte has been received the AVT-718 checks the expected length (as defined by the ID byte) against the actual message length. If and when the actual message length matches the expected length, the message is checked and sent to the host. Message Transmitted to the Network The Master or Slave configuration of the AVT-718 is determined on a message by message basis. If not commanded to be either a Master or Slave the interface is in passive monitor mode (described previously). When commanded to transmit a message as a Master, the AVT-718 performs the following: Check that the network is idle. Transmit the programmed synch break. The $5x 1D command determines synch break duration. Wait the programmed synch break delimiter time. [The minimum synch break delimiter time is 10 bit intervals, regardless of the setting using the $5x 53 command.] Transmit the synch byte, $55. Transmit the message ID byte. If no data was specified the AVT-718 will wait for a slave to respond with data. If data was specified, the AVT-718 will begin transmitting that data. The time interval between transmitted bytes is set by the $5x 27 command (P4_min). If, during transmission, the received echo of a transmitted byte do not match, transmission is immediately terminated, the transmit message is flushed, and an error message is sent to the host. When commanded to transmit a message as a Slave, the AVT-718 performs the following: Parse and hold the commanded message. Wait for the matching ID byte to be received. The ID byte of every message received from the network is checked against the pending message. If the ID byte does not match, the transmit routine continues to wait and does not interfere with the message on the network. [The message on the network is received and passed to the host.] If the ID byte does match, the pending message is transmitted onto the network. The time interval between transmitted bytes is set by the $5x 27 command (P4_min). Page 4

If, during transmission, the received echo of a transmitted byte do not match, transmission is immediately terminated, the transmit message is flushed, and an error message is sent to the host. The $21 09 command flushes a pending transmit message (Master or Slave). [The response is $91 18.] If a matching ID byte is not found within 2 seconds, the pending message is flushed and the host is notified by an error message. Construction of a packet from the host to the AVT-718 is as follows: 0x 0y ID rr ss... where: Transmit message examples: 0x = upper nibble 0 indicates to the network lower nibble x is the count of bytes to follow y = 0 if Slave mode y = 1 if Master mode ID = message ID byte rr ss... = message data bytes (optional field if a master) 02 01 B1 02 = to the network, two bytes follow. 01 = send this as a master. 04 01 B1 11 22 04 = to the network, four bytes follow. 01 = send this as a master. [Note: The AVT-718 performs all the functions of the Master and transmits the data field.] The previous transmitted message will result in the following received message: 02 40 B1 02 = from the network, two bytes follow. 40 = received status byte indicating from this node. B1 = message ID. 04 00 B1 11 22 04 = to the network, four bytes follow. 00 = send this as a slave. [Note: The AVT-718 waits for a message with ID = $B1 before sending the data.] The previous transmitted message will result in the following received message: 02 40 B1 02 = from the network, two bytes follow. Page 5

40 = received status byte indicating from this node. B1 = message ID. 02 00 B1 02 = to the network, two bytes follow. 00 = send this as a slave. [Note: The AVT-718 will send the error message $23 4B 00 02 to indicate that this message is too short to be a slave.] Error Message During LIN operations the host is notified of most errors through a single error message containing two bytes of bit mapped error conditions. Do not confuse this error message with the received status byte of a message received from the network. The error message has the form: 23 4B xx yy 23 = upper nibble 2 indicates an error message lower nibble 3 indicates three bytes follow. 4B = indicates that this is a LIN error message. xx yy = bit map of error conditions. xx yy Baud Rate bit 0: communications interrupt with unknown cause. bit 1: communications receiver overrun. bit 2: communications receiver noise detected. bit 3: synch byte incorrect value. bit 4: error decoding receive buffer status. bit 5: break received, no receive buffer available. bit 6: no receive buffer available. bit 7: short to ground detected. bit 0: transmit message too short. bit 1: transmit message too short for slave. bit 2: error decoding master state variable. bit 3: received byte does not equal transmitted byte, message flushed. bit 4: error decoding master state variable. bit 5: transmit mode time out. bit 6: master state time out. bit 7: not defined, always zero. [Note: Do not confuse LIN network baud rate with the communications baud rate between the host computer and the AVT-718 interface.] The AVT-718 supports the three specified LIN baud rates of 2400, 9600, and 19200 baud. The default baud rate, when entering LIN mode, is: 9600 baud. Page 6

The $5x 50 command is used to set the AVT-718 to the desired baud rate. The three pre-set baud rates are as defined by the LIN specification. There is fourth means of setting operational baud rate. The $54 50 04 xx yy command permits the user to set the actual baud rate divisor. When using this method, the formula for baud rate is: Firmware versions 2.7 and earlier: Baud rate = 524288 (decimal) divided by (decimal equivalent of xx yy). Firmware version 3.0 and later: Baud rate = 655360 (decimal) divided by (decimal equivalent of xx yy). Example: xx yy = $00 3F = decimal 63; resulting baud rate = 10403 baud; can be used on a 10400 baud network with an error of 0.03% Timing Parameters Some timing parameters are defined as a function of bit times. As a result those parameters are a function of the LIN network baud rate. When the LIN network baud rate is changed (using the $5x 50 command) some timing parameters are automatically changed. The timing parameters affected are: Synch break delimiter time [$5x 53 command]. Synch break time [$5x 1D command]. Maximum frame time [$5x 52 command]. The user is free to change these values, after setting the baud rate, using the desired command. The algorithm used by the AVT-718 to compute the new timing parameters is: Compute the baud rate divisor (or used the specified divisor). Integer multiply the baud rate divisor by 19 and integer divide by 10 to obtain the bit time in microseconds. Save the synch break delimiter time, as 1 bit time. Integer multiply by 13 to obtain the synch break time and save it. Integer multiply by 174 to obtain the maximum frame time and save it. Questions?? Contact the factory by e-mail, phone, or fax. Contact information provided on the bottom of page 1. Page 7