Home

AVT-85x User`s Manual Volume 1 version 2.5 (0D) (PDF 600 KB)

image

Contents

1. Bit map form
2. Set acceptance IDO to 357 75 2A 00 00 03 57 Disable padding 73 27 00 00 Disable AE 73 30 00 00 Set Flow Control ID 246 74 0F 00 02 46 Set Flow Control separation time this is the default value and does not need to be set if it has not been changed before 730E 00 0A 10 Enable ISO 15765 Model processing for CANO 73 26 00 01 11 Enable CANO operations 73 110001 12 Transmit an ISO 15765 formatted message with ID 246 and 6 bytes of data 09 00 02 46 11 22 33 44 55 66 At this point the AVT 85x will receive and transmit ISO 15765 formatted messages to from the downstream module across the CAN network 7 13 9 2 Example 2 Mode2 The user wants to set up the AVT 85x to receive all CAN network messages but only specified IDs are to be treated as ISO 15765 formatted The specifics are 2 wire CAN at 500k baud 11 bit message IDs No AE Receive message ID ISO 15765 357 Transmit message ID 246 The flow control frame ID is usually the same as the transmit message ID Here are the commands to set up CANO in sequence 1 Switch to CAN mode El 99 2 Set baud rate to 500 kbaud 73 OA 00 02 3 Set mask mode to 4 qty 4 16 bit masks 73 2B 00 04 Advanced Vehicle Technologies Inc Page 47 10 11 12 13 AVT 85x Multiple Interface Set masko0 to all bits are don t care RTR bit is don t care only receive 11 bit ID frames 75 2C 40 00 03 FF Set acceptance IDO to
3. When time stamps are disabled a receive message example is 06 00 11 22 33 44 06 header byte indicates from the network 6 bytes follow 00 status byte indicating no errors detected 11 22 33 44 message bytes When time stamps are enabled a receive message example is 08 xx yy 00 11 22 33 44 08 header byte indicates from the network 8 bytes follow xx yy time stamp xx is the high byte yy is the low byte Advanced Vehicle Technologies Inc Page 72 AVT 85x Multiple Interface 00 status byte indicating no errors detected 11 22 33 44 message bytes 11 2 2 2 Transmit Ack Examples When time stamps are disabled a transmit ack example is 01 60 01 header byte indicates from the network 1 byte follows 60 status byte bits 4 and 5 set indicates from this device and transmit success When time stamps are enabled a transmit ack example is 03 xx yy 60 03 header byte indicates from the network 3 bytes follow xx yy time stamp xx is the high byte yy is the low byte 60 status byte bits 4 and 5 set indicates from this device and transmit success 11 3 Message Filtering Messages received from the network that are NOT blocks have the form Ox ww pp dd ss mm nn rr e Q indicates from the network e x is the count of bytes to follow e ww is the receive status byte usually equal to 00 e pt is the first byte of the actual message and is known as the Priority Type byte e ddis the destination address either functional or
4. vv b7 b6 b5 b4 b3 b2 bl bO CANO CAN4 short to ground detected transmit command processing return code error error decoding length bits receive manager no receive buffer available break received receive byte not equal transmit byte master receive buffer mode unknown error 0 no receive buffer available no break received transmit watchdog time out error in transmit master routine transmit command too short baud rate index 0 or too high transmit command control byte error not master or slave transmit command slave with no data 0 received a zero length message 0 0 periodic message too long periodic message mode not 1 or 2 master mode error state is unknown or invalid receive byte not equal transmit byte slave slave mode error state is unknown or invalid master state transmit time out transmit data register empty transmit complete receive data register full idle overrun noise flag framing error parity fault Advanced Vehicle Technologies Inc Page 131 22 8C xx AVT 85x Multiple Interface CAN mode CAN transmit timeout LINO 25 96 rr ss tt vv Tr SS tt vv b7 b6 b5 b4 b3 b2 bl bO b7 b6 b5 b4 b3 b2 bl bO b7 b6 b5 b4 b3 b2 bl bO b7 b6 b5 b4 b3 b2 bl bO short to ground detected transmit command processing return code error error decoding length bits
5. 3D 3E 3F 40 50 51 52 53 54 55 56 57 58 59 SA SB 5C 5D SE SF 60 61 62 63 64 65 66 67 68 AVT 85x Multiple Interface CANO CANO CANO CANO CANO CANO CANO CANO CANO CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN4 CAN mode Command too long 11 12 command flushed Transmitter not available command flushed Ran out of data on first frame command flushed Invalid separation time received 80 to F0 Invalid separation time received FA to FF Flow status 2 transaction aborted Flow status undefined transaction aborted Flow block size not 00 Time out waiting for FIFO2 to go empty DLC too short lt 1 DLC too short lt 2 Unknown frame DLC too short lt SF_DL Consecutive frame receive buffer not in use Consecutive frame sequence number error First frame buffer not idle First frame DLC too short lt 2 First frame DLC too short lt 3 Received flow control frame not expecting one Flow control frame DLC too short lt 3 Flow control frame DLC too short lt 4 Time out sending buffer to host Receive buffer time out Transmit buffer time out Buffer forward time out Flow control transmit transmitter not available Flow control transmit watchdog time out Count 0 in 11 12 transmit
6. Desired messages are 29 bit ID 1B CC xx xx or 1B CD xx xx RTR bit is 0 do not receive RTR frames IDE and RTR mask bits are must match The following commands are used set CANO ID mask mode to 4 73 2B 00 04 set CANO acceptance ID3 29 bit RTR 0 75 2A 80 03 2B CC set CANO Mask3 bit O is don t care ID bit 15 75 2C 00 03 00 01 Only network messages with 29 bit ID 2B CC xx xx and 2B CD xx xx will be received no RTR frames It is assumed the operator has completed all other necessary channel commands 7 9 2 8 ID Mask Example 5 Channel CANO ID Mask mode 8 Acceptance ID and mask are 8 bit values ID and mask 6 Desired messages have the upper 8 bits equal to AS Mask bit 2 set to don t care demonstrates how two ranges of message ID s will be accepted IDE bit is don t care Will receive both 29 bit and 11 bit messages if they meet acceptance criteria RTR bit is don t care Will receive both non RTR and RTR frames Send the following commands set CANO ID mask mode to 8 73 2B 00 08 set CANO acceptance ID6 74 2A 00 06 A5 set CANO Mask6 mask bit 2 is don t care all others are must match 74 2C 00 06 04 All network messages with 11 bit IDs in the following ranges will be received 05 08 to 05 OF 05 28 to 05 2F All network messages with 29 bit IDs in the following ranges will be received 14 20 00 00 to 14 3F FF FF 14 A0 00 00 to 14 AF FF FF Advanc
7. 8 Change telnet config password N N At the menu prompt select 1 and hit lt Enter gt You can walk thru the Channel 1 settings The recommended and factory settings are shown in parentheses as shown here We strongly recommend that you use these settings and do not change them Change Setup 0 Server 1 Channel 1 3 E mail 5 Expert 6 Security 7 Factory defaults 8 Exit without save 9 Save and exit Your choice Baudrate 230400 I F Mode 4C Flow 02 Port No 10001 ConnectMode C0 Remote IP Address 000 000 000 000 Remote Port 0 DisConnMode 00 FlushMode 00 DisConnTime 00 00 SendChar 1 00 SendChar 2 00 When done changing the IP Address and possibly verifying the Server and Channel 1 settings do not forget to select lt 9 gt from the menu to save the settings When you select lt 9 gt and hit lt Enter gt the AVT 853 XPort will save the configuration and reboot that will terminate the telnet session Wait at least 20 seconds for the AVT 853 XPort unit to finish saving and rebooting before trying to establish a connection to the AVT 853 unit At the menu prompt do not make a selection just hit lt Enter gt The XPort will display the full configuration as shown here Change Setup 0 Server 1 Channel 1 Advanced Vehicle Technologies Inc Page 177 AVT 85x Multiple Interface Appendix A 3 E mail 5 Expert 6 Security 7 Factory defaults 8
8. CAN4 is Single Wire CAN SWC that is SAE J2411 compliant It uses the Philips AU5790 transceiver AVT 853 revision B1 boards only shunt JP1 connects disconnects the SWC bus from pin 1 of P3 the DA 15P network connector For revision D and F boards the SWC signal is routed directly to P3 the D 15 network connector pin 1 7 6 1 Shunt JP1 Shunt JP1 only exists on revision B1 boards Shunt JP1 on the AVT 85x board connects disconnects the Single Wire CAN SWC line from pin 1 of P3 the DA 15P Vehicle connector When SWC is installed the factory default is JP1 is installed 7 6 2 CAN4 Channel Number CAN4 is designated channel 4 Note Bits in the upper nibble of the channel number have special meaning for some commands and responses Advanced Vehicle Technologies Inc Page 20 AVT 85x Multiple Interface 7 7 CAN Secondary Operational Modes When operating in CAN mode three secondary operating modes are supported There are limitations to the combinations but all operate independently of and simultaneously to both CAN channels 7 7 1 Board revision B1 Allowed Secondary Modes Only one secondary operational mode can be supported LIN or KWP After entering CAN mode LIN mode is enabled as the default secondary mode LIN mode can be selected using the 52 69 01 command KWP mode is disabled KWP mode can be selected using the 52 69 02 command LIN mode is disabled Both modes are disabled wi
9. ES F2 10 3B 4C 5D 6E 7F Al B2 ES is the priority type byte F2 is the destination byte 10 is the source byte 11 3 2 Example 1 Both filter bytes are set to 00 default The host will receive this packet from the AVT 85x OB 00 E5 F2 10 3B 4C 5D 6E 7F Al B2 11 3 3 Example 2 Host sends 52 5B Fl AVT 83x response 62 5B Fl The destination filter byte is set to F1 Only messages with destination byte equal to F1 will be passed to the host If the message above is received from the network the AVT 85x will determine that the destination bytes do not match and will throw out the message The host will not receive anything 11 3 4 Example 3 Host sends 52 5B 00 AVT 85x response 62 5B 00 Host sends 52 5C 20 AVT 85x response 62 5C 20 The destination filter byte is cleared don t care The source filter byte is set to 20 Only messages with source byte equal to 20 will be passed to the host If the message above is received from the network the AVT 85x will determine that the source bytes do not match and will throw out the message The host will not receive anything 11 3 5 Example 4 Host sends 52 5B F2 AVT 83x response 62 5B F2 Advanced Vehicle Technologies Inc Page 74 AVT 85x Multiple Interface Host sends 52 5C 10 AVT 83x response 62 5C 10 The destination filter byte is set to F2 The source filter byte is set to 10 Only messages with the destination byte equal F2 AND source byte equa
10. Query for CAN ISO 15763 inbound flow control separation time default value Set CAN ISO 15763 inbound flow control separation time value Time is in milliseconds Default 2 msec This value is only used when a received inbound flow control frame separation time has value of 00 or is invalid by ISO 15765 Both CANO and CAN4 channels use this value ISO 15763 pacing timer query both CAN channels ISO 15763 pacing timer query one CAN channel y channel 0 4 Set ISO 15765 pacing timer y channel 0 4 ZZ pacing timer count Timer interval is loops Default 00 Refer to Section 7 13 8 1 for information about the 7x 35 command ABX separation time query ABX separation time command r 1 millisecond count r 2 loop count Default loop time is about 45 microseconds xx yy count Default 00 0A ABX transmit ID query ABX transmit ID command m b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 Advanced Vehicle Technologies Inc Page 110 CANO CAN4 AVT 85x Multiple Interface CAN mode b4 0 nn rr 11 bit ID right justified IDE 0 nn rr ss tt 29 bit ID right justified IDE 1 76 38 Or ss tt kk ll ABX data read or store CANO CAN4 71 39 73 39 xx yy CANO CAN4 713A 72 3A Oy 73 3A Oy Oz CANO CAN4 71 3B 72 3B Oy 73 3B Oy Oz CANO CAN4 71 3C 72 3C Oy CANO CAN4 71 3F r 1 store the data in
11. assigned To be backward compatible with previous versions of firmware CANO group and 2 and CAN4 group l are all assigned 10 16 decimal periodic messages The balance of 34 52 decimal are assigned to CAN4 group 2 7 11 2 Organization Of Periodic Messages There are a total of 64 100 decimal CAN periodic messages available The periodic messages are numbered 01 to 64 The periodic messages are assigned from lowest message number to higher to CANO group 1 CANO group 2 CAN4 group 1 and CAN4 group 2 in that order The first message assigned to CANO group is always message number 01 The 72 4C yy command sets the first message assigned to CAN4 group 1 where yy is the message number The 73 4D Ox yy command assigns the first message number to CANx group 2 The user should first assign the CAN4 group 1 message using the 72 4C yy command Then the user should assign the first message of CANO group 2 using the 73 4D 00 yy Then the user should assign the first message of CAN4 group 2 using the 73 4D 04 yy The message number used in the 7x 4C and 7x 4D commands are the actual or absolute message number in the range 01 to 64 Advanced Vehicle Technologies Inc Page 31 AVT 85x Multiple Interface 7 11 3 The Default Configuration When CAN mode is first entered the CAN periodic messages are assigned as follows CANO group 1 CANO group 2 CAN4 group 1 CAN4 g
12. the frame is sent to the host PCI byte omitted If the CAN message s are part of a multi frame sequence the AVT 85x will save the ID save the AE byte if enabled remove the PCI bytes remove any pad bytes and buffer the inbound data The AVT 85x handles all handshaking with the downstream module When the complete message is received the AVT 85x forwards the ID and block of data to the host using the usual packet convention Ox rr ss tt vv mmnn x 1s the count of bytes to follow or 11 xx rr ss tt vv mmnn xx 1s the count of bytes to follow or 12 xx yy rr ss tt vv mmnn xx yy is the count of bytes to follow There are several commands associated with setting up and enabling ISO 15765 processing The commands are listed in the Commands Section 16 If a CAN frame is received that is not ISO 15765 formatted subsequent actions will be undefined 7 13 6 Receive Operations Mode2 Only frames received from the CAN bus that match the expected ID are processed according to the rules of ISO 15765 The usual CAN frame ID filtering function applies The PCI byte is stripped from the data field and decoded Advanced Vehicle Technologies Inc Page 43 AVT 85x Multiple Interface If the CAN message is a single frame the frame is sent to the host PCI byte omitted If the CAN message s are part of a multi frame sequence the AVT 85x will save the ID save the AE byte if enabled remove the PCI bytes remove any pad bytes a
13. 21 22 23 24 25 26 27 28 29 2A 2B 2 2D 2E 2F CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO CANO DLC too short lt 1 DLC too short lt 2 Unknown frame DLC too short lt SF_DL Consecutive frame receive buffer not in use Consecutive frame sequence number error First frame buffer not idle First frame DLC too short lt 2 First frame DLC too short lt 3 Received flow control frame not expecting one Flow control frame DLC too short lt 3 Flow control frame DLC too short lt 4 Time out sending buffer to host Receive buffer time out Transmit buffer time out Buffer forward time out Flow control transmit transmitter not available Flow control transmit watchdog time out Count 0 in 11 12 transmit command Time out reading data converting to Ox command Time out reading 11 bit ID bytes Time out reading 29 bit ID bytes Time out reading AE byte Time out reading data Command too short Ox xmt cmd no AE 11 bit Command too short Ox xmt cmd with AE 11 bit Command too short Ox xmt cmd no AE 29 bit Command too short Ox xmt cmd with AE 29 bit Transmitter not enabled Advanced Vehicle Technologies Inc Page 124 30 31 32 33 34 35 36 37 38 39 3A 3B 3C
14. 5 6 7 yy Message number 01 to 20 or 0A vv interval count CANO CAN4 LIN1 KWP LINO 82 1C Ox All periodic messages of channel x disabled x channel 0 4 5 6 7 82 1C EE All periodic messages all channels disabled CANO CAN4 Advanced Vehicle Technologies Inc Page 141 AVT 85x Multiple Interface CAN mode 83 1F 0x Oy Periodic Message Pause status X channel 0 4 y 0 disabled 1 enabled CANO CAN4 83 26 Ox Oy ISO 15765 operations x channel 0 4 y 0 Mode0 disabled 1 Model ZE Mode2 CANO CAN4 83 27 Ox Oy Outbound message padding xX channel 0 4 y 0 disabled 1 enabled 84 27 Ox Oy vv Outbound message padding x channel 0 4 y 0 disabled 1 enabled vv pad byte only if enabled CANO CAN4 8x 29 xy rr ss Report ISO 15765 receive ID X b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 y channel 0 4 rrss 11 bit receive ID rr ss tt vv 29 bit receive ID CANO CAN4 8x 2A xy Oz rr ss tt vv Report acceptance ID x b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR Advanced Vehicle Technologies Inc Page 142 AVT 85x Multiple Interface CAN mode 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 y channel 0 4 Z Acceptance ID number Number depends on ID Mask mode rr Acceptance ID value when ID Mask mode 8 rr ss Acceptance ID value when ID Mask mode 4 rr
15. 67 xx Internal baud rate XX 01 19 2 kbaud 02 38 4 kbaud 04 57 6 kbaud 08 115 2 kbaud FF 230 4 kbaud 20 460 8 kbaud 40 921 6 kbaud 62 6A xx Red LED blink rate 00 red LED off xx red LED blink rate interval is 174 8 msec FF red LED on Advanced Vehicle Technologies Inc Page 158 AVT 85x Multiple Interface VPW mode 6x 75 yy zz MMR function mask definition x count of bytes to follow yy ZZ mask bytes 6x 76 yy zz MMR function match definition x count of bytes to follow yy zz match bytes 6x 77 yy zz MMR function response definition x count of bytes to follow yy ZZ command bytes 62 78 00 MMR function disabled 62 78 01 MMR function enabled 83 OC Ox Oy Periodic message group operation status x Group or 2 y Mode 0 Disabled 1 Typel enabled 2 Type2 enabled 8x 18 xx mm nn pp Periodic message setup xx Message number 01 to 0A mm nn pp The message 83 1A xx Oy Periodic message disable enable status xx Message number 01 to 0A y 0 disabled 1 enabled 83 1B xx yy Periodic message interval count XX Message number 01 to 0A yy interval count Advanced Vehicle Technologies Inc Page 159 AVT 85x Multiple Interface VPW mode 81 1C All periodic messages disabled 9 Board status information 92 04 xx Firmware version report Version is xx 93 04 xx yy Firmware version report Version is XX yy 91 07
16. 83 OC Ox Oy Periodic message group operation status x Group 1 or 2 y Mode 0 Disabled 1 Typel enabled 2 Type2 enabled 8x 18 xx mm nn pp Periodic message setup XX Message number 01 to 0A mm nn pp The message 83 1A xx Oy Periodic message disable enable status XX Message number 01 to 0A y 0 disabled 1 enabled 83 1B xx yy Periodic message interval count xx Message number 01 to 0A yy interval count 81 1C All periodic messages disabled Board status information 92 04 xx Firmware version report Version is xx 93 04 xx yy Firmware version report Version is XX yy 91 07 VPW operations 91 08 DLC initialization complete 91 OF KWP operations 91 10 CAN operations 91 19 LIN operations 91 27 Idle state 93 28 Ox yz Model number report xyz is the model number Advanced Vehicle Technologies Inc Page 174 AVT 85x Multiple Interface KWP Stand Alone mode Advanced Vehicle Technologies Inc Page 175 AVT 85x Multiple Interface Appendix A 19 Appendix A A Telnet listing of the factory default settings for an AVT 853 unit is provided here Select option O to change the server settings e IP Address default 192 168 1 70 e Gateway IP Address not used e Netmask The factory default is 8 host bits 255 255 255 0 e Telnet configuration password not used Select option 9 to save the new settings exit and reboot It is not
17. 83x firmware version 0 9 supports two methods with some user definable parameters The initialization schemes currently supported are e CARB mode 5 baud with a fixed communications baud rates of 10 4 kbaud e FAST mode user defines down time up time and baud rate A brief description of each method and command follows 12 3 1 CARB Mode Initialization The user can set the following CARB mode parameters prior to an initialization attempt e Length of time the K line must be idle prior to starting an initialization attempt W5 Command is 53 46 xx yy where xx yy is in milliseconds Default is 300 milliseconds in accordance with ISO 9141 2 and ISO 14230 e 5 Baud address using the 52 13 xx command Default is 33 in accordance with ISO 9141 2 and ISO 14230 e Communications baud rate using the 53 03 xx yy command Default is 10 4 kbaud in accordance with ISO 9141 2 and ISO 14230 CARB mode initialization is invoked with the 61 11 command There is at least a 2 second delay from invoking CARB mode initialization until the AVT 85x will respond If the initialization attempt was successful the AVT 85x will respond with 71 11 The user can query for the keyword or two key bytes using the 51 2C command If the initialization attempt fails the AVT 85x will respond with a 22 54 xx error code and then the 71 00 initialization attempt failure report A complete listing of xx error codes are in the KWP response Section 18 1
18. 83x is independent of the other channel This applies to all channel parameters Each CAN channel of the AVT 85x has three operating modes Disabled Normal Listen only Messages to and from the network are of the form 0x yy rr ss tt vv where x is the count of bytes to follow Refer to Sections 4 3 and 16 for detailed information about CAN messages and packets to and from the network 7 8 1 Disabled The CAN channel can not receive any messages and it can not transmit any messages Command 73 11 Ox 00 Status report 83 11 0x 00 7 8 2 Normal The CAN channel will receive all messages from the network It will assert the CAN frame ACK bit for all frames it receives without error Only those frames it receives where the message ID matches the acceptance ID according to the mask and associated rules are passed to the host Refer to Section 7 9 for a discussion The CAN channel can transmit messages Command 73 11 Ox 01 Status report 83 11 Ox 01 7 8 3 Listen Only The CAN channel can only receive messages It can not transmit messages and it can not assert the CAN frame ACK bit The CAN channel will receive all messages from the network It can not assert the CAN frame ACK bit Only those frames it receives where the message ID matches the acceptance ID according to the mask and associated rules are passed to the host Refer to Section 7 9 for a discussion The CAN channel can only monitor received messages Command 73 11 O
19. 85x a form of software reset 17 1 VPW Mode Responses High nibble bits b7 b4 Response type O Valid message packet received from the network Ox pp rr ss tt x count of bytes to follow pp message status byte bit map bit set indicates b0 CRC error bl Incomplete message b2 Break received b3 IFR data b4 Lost arbitration b5 Transmission successful b6 From this device b7 Bad message bad status or receive block too big rr ss tt message bytes 1 Alternate header format for packet received from the network Alternate form 1 for long messages blocks 11 xx pp rr ss tt xx count of bytes to follow pp message status byte as defined above rr ss tt message bytes Alternate form 2 for long messages blocks Advanced Vehicle Technologies Inc Page 154 AVT 85x Multiple Interface VPW mode 12 xx yy Pp rr ss tt XX yy count of bytes to follow pp message status byte as defined above rr ss tt message bytes Error reports 21 OE Transmit command too long 22 2C xx Serial comms with host error b7 transmit data register empty b6 transmit complete b5 receive data register full b4 idle b3 overrun b2 noise flag bl framing error b0 parity fault 21 34 Time out reading bytes from 11 xx command less than 12 bytes 3 seconds 22 34 xx Command time out xx header byte of offending command 0 5 seconds 2135 Time out reading bytes from 12 xx yy co
20. AVT 85x Multiple Interface KWP Stand Alone mode 08 checksums are not equal 21 79 No instruction trap 217A COP fail reset 21 7B Clock monitor reset 21 84 Command buffer mode fault 24 85 xx yy ZZ KWP error XX b7 0 b6 short to ground detected b5 periodic message error b4 0 b3 zero length periodic message found b2 zero length periodic message found bl transmit watchdog time out b0 no receive buffers available yy b7 0 b6 O b5 0 b4 0 b3 0 b2 0 bl 0 b0 0 ZZ b7 transmit date register empty b6 transmit complete b5 receive data register full b4 idle b3 overrun b2 noise bl framing error b0 parity error Advanced Vehicle Technologies Inc Page 170 AVT 85x Multiple Interface KWP Stand Alone mode Command error 31 xx xx Header byte of message in error Configuration reports 62 01 00 Send received checksum to host disabled Default 62 01 01 Send received checksum to host enabled 62 06 00 Echo of transmitted messages disabled Default 62 06 01 Echo of transmitted messages enabled 62 08 00 Time stamps are disabled Default 62 08 01 Time stamps are enabled 62 19 00 Checksum is not appended to a frame transmitted to the K line 62 19 01 Checksum is appended to a frame transmitted to the K line 62 24 00 Do not receive any network messages 62 24 01 Receive network messages Default 62 27 xx P4 time transmit message inter b
21. Default 62 59 xx Periodic ADC reports are enabled Report interval is xx times the timer 5x 63 command Advanced Vehicle Technologies Inc Page 172 62 63 xx 62 67 01 62 67 02 62 67 04 62 67 08 62 67 FF 62 67 20 62 67 40 62 6A xx 62 6C 00 62 6C 01 62 78 00 62 78 01 AVT 85x Multiple Interface KWP Stand Alone mode Master timer setting XX 01 98 30 msec 02 49 15 msec 03 20 48 msec 04 10 24 msec 05 5 12 msec Internal baud rate is set for 19 2 kbaud Internal baud rate is set for 38 4 kbaud Internal baud rate is set for 57 6 kbaud Internal baud rate is set for 115 2 kbaud Internal baud rate is set for 230 4 kbaud Internal baud rate is set for 460 8 kbaud Internal baud rate is set for 921 6 kbaud Red LED blink rate 00 red LED off xx red LED blink rate interval is 174 8 msec FF red LED on Fast Transmit disabled Fast Transmit enabled MMAR function mask definition x count of bytes to follow yy zz mask bytes MMR function match definition x count of bytes to follow yy zz match bytes MMR function response definition x count of bytes to follow yy ZZ command bytes MMR function disabled MMR function enabled Initialization attempt response Advanced Vehicle Technologies Inc Page 173 AVT 85x Multiple Interface KWP Stand Alone mode 71 00 Initialization attempt failure 7111 Initialization attempt success
22. No instruction trap 217A COP fail reset 217B Clock monitor reset Advanced Vehicle Technologies Inc Page 126 CANO CAN4 22 7F xx AVT 85x Multiple Interface CAN mode CAN processing error 00 01 02 03 04 05 06 07 08 09 OA OB OC OD OE OF 10 11 12 13 14 15 16 17 18 20 30 40 41 42 43 44 45 46 47 48 49 4A 4B 4C CANO Ox transmit processing error CAN4 Ox transmit processing error Invalid CAN channel number CANO channel not configured to transmit CANO non ISO 15765 transmit command too short 11 bit CANO non ISO 15765 transmit command too long 11 bit CANO non ISO 15765 transmit command too short 29 bit CANO non ISO 15765 transmit command too long 29 bit CANO non ISO 15765 11 12 transmit command too long CANO fail to enter sleep mode CANO fail to enter init mode CANO fail to exit init mode enable listen CANO fail to exit init mode enable normal CANO time out reading 11 12 transmit command Time out reading 11 12 transmit command flag byte CANO 11 12 transmit processing error CAN4 11 12 transmit processing error Invalid CAN channel number 11 12 transmit processing LIN 11 12 transmit processing error KWP 11 12 transmit processing error n a n a n a n a CAN4 channel not configured to transmit CAN4 non ISO 15765 transmit command too short 11 bit CAN4 non ISO 15765 transmit
23. Page 182 AVT 85x Multiple Interface Appendix A 10 On the left select Apply Settings 11 Wait for the XPort to reboot 12 Clear the browser cache This is very important on some browsers 13 Go to the XPort page 14 On the left select Channel 1 Serial Settings 15 In the Channel 1 section select the Baud Rate to be the same as the rate you set the microcontroller to in step 2 above 16 Select the OK button on the bottom of the page 17 On the left select Apply Settings 18 Close the browser 19 Wait for the XPort to reboot Usually about 15 seconds 20 Using the Hex Terminal or similar software send the BO software version request to the AVT 853 and verify proper communications The response should be 92 04 xx the software version number If you get the correct response all is working well 22 Questions Contact the factory by e mail phone or fax Contact information is provided here and on the bottom of page 1 Post 1509 Manor View Road Davidsonville MD 21035 USA Phone 1 410 798 4038 Fax 1 410 798 4308 E mail Support AVT HQ com Web site www AVT HQ com Advanced Vehicle Technologies Inc Page 183 AVT 85x Multiple Interface Appendix A 23 Bit Map for IDs Masks Commands etc A worksheet that may help in determining acceptance IDs masks and command values is on the next page Advanced Vehicle Technologies Inc Page 184
24. Periodic Message Pause status query x channel 0 4 73 1F Ox Oy Periodic Message Pause command x channel 0 4 y 0 disabled 1 enabled Advanced Vehicle Technologies Inc Page 106 CANO CAN4 7126 7226 0x 73 26 Ox Oy CANO CAN4 71 27 72 27 Ox 73 27 Ox Oy 74 27 Ox Oy wv CANO CAN4 71 29 72 29 Oy 7x 29 xy rr ss CANO CAN4 71 2A 72 2A Oy AVT 85x Multiple Interface CAN mode ISO 15765 operations status query both CAN channels ISO 15765 operations status query X channel 0 4 ISO 15763 operations X channel 0 4 y 0 Mode0 disabled 1 Model 2 Mode2 Outbound message padding status query both CAN channels Outbound message padding status query x channel 0 4 Outbound message padding X channel 0 4 y 0 disabled 1 enabled Outbound message padding x channel 0 4 y 0 disabled 1 enabled vv pad byte ISO 15765 receive ID query both CAN channels ISO 15765 receive ID query for CANy y channel 0 4 ISO 15765 receive ID set command x b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 y Channel 0 4 rr ss 11 bit receive ID rr ss tt vv 29 bit receive ID Acceptance ID query for all CAN channels Acceptance ID query for CAN channel Advanced Vehicle Technologies Inc Page 107 AVT 85x Multiple Interface CAN mode y channel 0 4 73 2A Oy Oz Report specif
25. VPW operations 91 08 DLC initialization complete 91 OF KWP operations 91 10 CAN operations 91 19 LIN operations 91 27 Idle state 93 28 Ox yz Model number report xyz is the model number A B Es Network speed report C1 00 Normal 1X mode selected Default C1 0l High speed 4X mode selected D E E F3 pp rr s Block transmit acknowledgement 3 count of bytes to follow pp message status byte bit map bit set indicates b7 Bad message bad status or receive block too big b6 From this device b5 Transmission successful b4 Lost arbitration b3 IFR data b2 Break received bl Incomplete message bO CRC error rr ss count of bytes transmitted in hex Example F3 60 01 04 60 indicates successful transmission from this interface Advanced Vehicle Technologies Inc Page 160 AVT 85x Multiple Interface VPW mode no errors detected 0104 count of bytes transmitted 260 decimal Advanced Vehicle Technologies Inc Page 161 AVT 85x Multiple Interface KWP Stand Alone mode 18 KWP Stand Alone Mode Commands High nibble bits b7 b4 Command type O Packet for transmission to the network Ox yy zz x is message length yy zz message bytes 1 Alternate header formats packet for transmission to the network Alternate form 1 for long messages blocks 11 xx rr ss tt xx 1s the number of bytes to follow rr ss tt are the message bytes Alternate
26. arbitration b3 b2 bl bO Checksum error Advanced Vehicle Technologies Inc Page 167 AVT 85x Multiple Interface KWP Stand Alone mode rr ss tt message bytes Alternate header format for packet received from the network Alternate form 1 for long messages blocks 11 xx pp rr ss tt xx count of bytes to follow pp message status byte as defined above rr ss tt message bytes Alternate form 2 for long messages blocks 12 xx yy Pp rr ss tt XX yy count of bytes to follow pp message status byte as defined above rr ss tt message bytes Error reports 21 0E Transmit command too long 222C XX Serial comms with host error b7 transmit data register empty b6 transmit complete b5 receive data register full b4 idle b3 overrun b2 noise flag bl framing error b0 parity fault 22 34 xx Command time out xx header byte of offending command 0 5 seconds 21 35 Time out reading bytes from 12 xx yy command less than 12 bytes 3 seconds 22 4A xx Message of length 1 received xx the one byte that was received 22 54 xx Initialization attempt error codes XX 00 Advanced Vehicle Technologies Inc Page 168 01 02 03 04 05 06 07 08 09 DA OB OC OD OE OF 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 22 77 xx 01 02 03 04 05 06 07 AVT 85x Multiple Interface KWP Stand Alon
27. block of data 2048 bytes long Note that the maximum number of bytes that can be received during a block transfer is 4112 bytes and is a count of the actual number of message bytes Response from AVT 85x 12 08 01 The very next byte is the receive status byte The 2048 message bytes follow immediately The AVT 85x buffers a message from the network before sending it to the host The maximum size message that the AVT 85x can receive is 4112 bytes If a larger message is received the AVT 85x will generate an error message to inform the host of the actual size of the Advanced Vehicle Technologies Inc Page 79 AVT 85x Multiple Interface message received The AVT 85x will then send the host the first 4112 bytes received during the block transfer Any and all bytes over the 4112 byte limit are lost The receive status byte most significant bit b7 is set to indicate that the received network message was too long The following is an example of receiving a network message that was too long Response received from AVT 85x 23 53 Xx yy xx yy actual count of block Response received from AVT 85x 121001 The very next byte is the receive status byte msb set The first 4112 message bytes follow immediately 12 KWP Stand Alone Mode KWP Key Word Protocol is available when operating in CAN mode or as KWP Stand Alone mode To enter KWP Stand Alone mode use the E1 DD command The report 91 OF indicates the AVT 85x has entered K
28. byte receive a message from the network 08 00 48 6B 10 41 0C xx yy explanation 0 indicates from the network 8 is the count of bytes to follow 00 is the receive status byte and indicates no errors 48 is the priority type byte 6B is the destination address functional in this case 10 is the source address engine ECU f 41 is a response to a mode 1 request OC is the PID Xx yy is the engine RPM Advanced Vehicle Technologies Inc Page 81 AVT 85x Multiple Interface Sending or receiving messages of more than 15 bytes are handled using the alternate header formats Refer to Sections 4 3 and 18 for detailed information 12 2 2 Time Stamp Time stamps for both the transmit ack and received messages can be disabled or enabled using the 5x 08 command Transmit ack the time stamp is a two byte value immediately after the packet header byte s but before the status byte Receive message the time stamp is a two byte value immediately after the packet header byte s but before the status byte The 52 08 00 command disables all time stamps The 52 08 01 command enables time stamps where the time stamp is a 16 bit free running counter with 1 millisecond resolution The time stamp rolls over at FFFF 12 2 2 1 Receive Message Examples When time stamps are disabled a receive message example is 06 00 11 22 33 44 06 header byte indicates from the network 6 bytes follow 00 status byte indicating no
29. command Time out reading data converting to Ox command Time out reading 11 bit ID bytes Time out reading 29 bit ID bytes Advanced Vehicle Technologies Inc Page 125 AVT 85x Multiple Interface CAN mode 69 CAN4 Time out reading AE byte 6A CAN4 Time out reading data 6B CAN4 Command too short Ox xmt cmd no AE 11 bit 6C CAN4 Command too short Ox xmt cmd with AE 11 bit 6D CAN4 Command too short Ox xmt cmd no AE 29 bit 6E CAN4 Command too short Ox xmt cmd with AE 29 bit 6F CAN4 Transmitter not enabled 70 71 T2 73 CAN4 Command too long 11 12 command flushed 74 Transmit command dump timeout 75 CAN4 Transmitter not available command flushed 76 CAN4 Ran out of data on first frame command flushed 77 CAN4 Invalid separation time received 80 to FO 78 CAN4 Invalid separation time received FA to FF 79 CAN4 Flow status 2 transaction aborted TA CAN4 Flow status undefined transaction aborted 7B CAN4 Flow block size not 00 7C CAN4 Time out waiting for FIFO2 to go empty 7D TE TF 22 T1 xx Switch mode error xx specific error byte 01 start address equals 0000 02 start address equals FFFF 03 start address less than or equal to 8000 04 start address equal to or greater than BFFF 05 expected checksum equals 0000 06 expected checksum equals FFFF 07 byte count to sum 0000 08 checksums are not equal 2179
30. disable 1 enable Note ARC Asynchronous Rolling Counter Refer to Section 7 12 2 CANO CAN4 7141 ATD monitor status query both CAN channels 72 41 Oy ATD monitor status query one CAN channel y channel 0 4 73 41 Oy Oz Disable Enable ATD monitor function for channel CANy y channel 0 4 Z 0 disable Default 1 enable CANO CAN4 71 42 Report and clear ATD monitor values both CAN channels all ATD channels 72 42 Oy Report and clear ATD monitor values channel CANy all ATD channels y channel 0 4 73 42 Oy Oz Report and clear ATD monitor value channel CANy ATD channel y y channel 0 4 Z ATD channel 0 to F CANO CAN4 71 43 ATD monitor expected ID query both CAN channels 72 43 Oy ATD monitor expected ID query one CAN channel y channel 0 4 7x 43 xy rr ss Set ATD monitor expected ID channel CANy Advanced Vehicle Technologies Inc Page 112 AVT 85x Multiple Interface CAN mode x b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 y channel 0 4 rr ss 11 bit receive ID rr ss tt vv 29 bit receive ID CANO CAN4 71 44 ATD monitor expected data bytes query both CAN channels 72 44 Oy ATD monitor expected data bytes query one CAN channel 75 44 Oy mm mn pp Set ATD monitor function expected bytes channel CANy y CAN channel 0 4 mm nn pp the expected first three bytes of ATD message 7
31. errors detected 11 22 33 44 message bytes When time stamps are enabled a receive message example is 08 xx yy 00 11 22 33 44 08 header byte indicates from the network 8 bytes follow xx yy time stamp xx is the high byte yy is the low byte 00 status byte indicating no errors detected 11 22 33 44 message bytes 12 2 2 2 Transmit Ack Examples When time stamps are disabled a transmit ack example is 01 60 01 header byte indicates from the network 1 byte follows 60 status byte bits 4 and 5 set indicates from this device and transmit success When time stamps are enabled a transmit ack example is 03 xx yy 60 03 header byte indicates from the network 3 bytes follow xx yy time stamp xx is the high byte yy 1s the low byte 60 status byte bits 4 and 5 set indicates from this device and transmit success 12 3 Initialization Depending on the particular application K line communications with a vehicle and or module may require initialization Initialization is essentially a logical function The AVT 83x unit also known as Advanced Vehicle Technologies Inc Page 82 AVT 85x Multiple Interface the off board tester announces itself to the module it wishes to communicate with requests a communications session and if successful communicates with that module The three specifications ISO 9141 ISO 9141 2 and ISO 14230 and various manufacturer requirements call out no fewer than 3 initialization methods or schemes AVT
32. from the network 3 bytes follow 05 channel 5 LIN 03 or 83 receive status byte frame timeout bit may or may not be set message too short and checksum error bits are set XX the received ID byte Advanced Vehicle Technologies Inc Page 57 AVT 85x Multiple Interface 8 2 4 Communications Example This example is to enter CAN mode receive a message from the LIN network passively and to send messages to the LIN network in the three possible methods Time stamps are disabled enter CAN mode El 99 receive a LIN network message passively 05 05 00 C4 78 9A z 0 indicates from the network 5 count of bytes to follow 05 channel 5 LIN 00 status byte no bits set indicates no errors detected C4 message ID z 789A message data field act as a Master without data this elicits a response from a Slave node 03 05 01 25 0 indicates to the network 3 count of bytes to follow 05 channel 5 LIN 01 master node 25 message ID act as a Master with data this sends a complete message onto the network OB 05 01 B4 11 22 33 44 55 66 77 88 0 indicates to the network B count of bytes to follow B 11 decimal 05 channel 5 LIN 01 master node B4 message ID 11 22 33 44 55 66 77 88 message data actas a Slave the node will wait for the Master to request data from the specified ID 05 05 00 C4 11 22 O indicates to the network 5 count of bytes to follow 05 channel 5 LIN 00 sla
33. hardware and firmware The AVT 852 and 853 are nearly identical units They have the following differences AVT 852 USB communications with the host computer LINO channel 7 does not exist AVT 853 Ethernet communications with host computer LINO channel 7 has been added They are multiple network interfaces for in vehicle networks The operational firmware supports the following networks protocols e J1850 VPW GM Class 2 compliant with 4x mode e 2 wire CAN CANO channel 0 e 2 wire CAN or Single Wire CAN SWC CAN4 channel 4 e LIN or K line LIN1 is channel 5 KWP is channel 6 e LIN LINO is channel 7 AVT 853 board rev D and later Some simultaneous operations are supported Some are not Refer to the 5x 69 command in Section 16 1 1 AVT 85x Note References in this document to AVT 85x mean the AVT 852 or 853 depending on the unit being used References to specific models are made where necessary The two interfaces are very nearly identical with two exceptions AVT 853 is Ethernet AVT 852 is USB AVT 853 has a second LINO channel AVT 852 does not 1 2 Hardware Refer to our web site for the most up to date information about the hardware status of each board The current AVT 852 PC board revision status is shown on the title page of this document Normally a stock item Hardware status www AVT HQ com 852_hw htm The current AVT 853 PC board revision status is shown on the title page
34. increments Both CANO and CAN4 channels use this value CAN ISO 15763 inbound flow control separation time default value Time is in milliseconds This value is only used when a received inbound flow control frame separation time has value of 00 or is invalid according to ISO 15763 Both CANO and CAN4 channels use this value CANx ISO 15765 pacing timer y channel 0 4 ZZ pacing timer count Refer to Section 7 13 8 1 ABX separation time r 01 millisecond count r 02 loop count loop time is about 45 microseconds XX yy count ABX transmit ID m b7 IDE Advanced Vehicle Technologies Inc Page 144 AVT 85x Multiple Interface CAN mode 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 nn rr 11 bit ID right justified IDE 0 nn rr ss tt 29 bit ID right justified IDE 1 86 38 02 ss tt kk Il ABX data read from FLASH ss tt start address kk Il number of bytes to follow Specified number of bytes will immediately follow this response 83 39 xx yy ABX data count XX yy count of bytes to be transmitted CANO CAN4 83 3A Or Os ABX control status r channel 0 4 s 0 operations are disabled s 1 operations are enabled CANO CAN4 83 3B Ox Oy CAN channel activity status x channel 0 4 y 0 disabled 1 enabled CANO CAN4 83 3C 0x yy CAN channel activity status x channel 0 4 yy frame count since last que
35. justified tt vv ww zz 29 bit ID right justified mm nn data 7 9 Acceptance ID and Mask 7 9 1 Configuration Each CAN channel of the AVT 85x is independent of the other channel Each CAN channel of the AVT 85x has three ID Mask modes Mode 2 The CAN channel has two 32 bit acceptance IDs and two corresponding 32 bit masks Advanced Vehicle Technologies Inc Page 25 AVT 85x Multiple Interface Mode 4 The CAN channel has four 16 bit acceptance IDs and four corresponding 16 bit masks Mode 8 The CAN channel has eight 8 bit acceptance IDs and eight corresponding 8 bit masks Acceptance IDs and masks are numbered sequentially starting at 0 For example in mode 4 the acceptance IDs and masks are numbered 0 1 2 and 3 7 9 2 Operation Acceptance IDs and Masks are associated as pairs Acceptance IDO is paired to Mask0 acceptance ID1 is paired to Maskl etc A zero in a bit position in a mask is a Must Match condition for the acceptance ID A one in a bit position in a mask is a Don t Care condition for the acceptance ID If the acceptance ID and mask are shorter than the actual message ID the acceptance ID mask and message ID are all aligned to the left starting with the Most Significant Bit and go to the right Message ID bits with no corresponding acceptance ID or mask bits are Don t Care How the acceptance IDs and masks operate e A message is received from the network e The message ID is passed thro
36. message setup command vv Message number 01 to 0A y channel 5 7 Z 0 slave message 1 master message ww message ID pp qq rr data field KWP 73 18 vv 06 Periodic message setup query vv Message number 01 to 0A Advanced Vehicle Technologies Inc Page 105 AVT 85x Multiple Interface CAN mode 6 channel 6 7x 18 vv 06 pp qq rr Periodic message setup command vv Message number 01 to 0A 6 channel 6 pp qq rr data field CANO CAN4 LIN1 KWP LINO 73 1A Oy zz Periodic message disable enable status query y channel 0 4 5 6 7 ZZ Message number 01 to 64 or 0A 74 1A Oy zz Ov Periodic message disable enable command y channel 0 4 5 6 7 ZZ Message number 01 to 64 or 0A v 0 disabled 1 normal mode enabled 2 slave mode enabled 3 both modes enabled CANO CAN4 LIN1 KWP LINO 73 1B Oy zz Periodic message interval count status query y channel 0 4 5 6 7 ZZ Message number 01 to 64 or 0A 74 1B Oy zz wv Periodic message interval count command y channel 0 4 5 6 7 ZZ Message number 01 to 64 or 0A vv interval count CANO CAN4 LIN1 KWP LINO 72 1C Oy Disable all periodic messages of one channel y channel 0 4 5 6 7 72 1C EE Disable all periodic messages all channels Note the setup for each periodic message is not affected CANO CAN4 71 IF Periodic Message Pause status query both CAN channels 72 1F Ox
37. not receive any CAN frames enable CANO for operations Communications from host computer to AVT 85x unit reset the unit Fl A5 enter CAN mode El 99 set ABX CAN ID 03 57 11 bit RTR 0 74 37 00 03 57 set ABX separation to milliseconds and a count of 20 decimal 74 36 01 00 14 store some ABX data start address 0000 byte count to store 0020 76 38 01 00 00 00 20 00 01 02 03 04 05 06 07 08 09 OA OB OC OD OE OF 1011 121314 15 16 17 18 19 1A 1B 1C 1D 1E 1F note that the rest of the data by default FF set ABX transmit count to 100 bytes 73 39 00 64 at this point all ABX parameters are defined and stored set CANO baud rate to 500 kbaud 73 OA 00 02 Advanced Vehicle Technologies Inc Page 54 AVT 85x Multiple Interface will not define any acceptance ID masks will not define any acceptance IDs enable CANO for operations 73 110001 invoke the ABX function using channel CANO 73 3A 0001 7 15 Channel Activity This function is available for both CAN channels independently When the function is enabled for a CAN channel and the AVT 85x receives a CAN frame a counter is incremented and the message is immediately discarded This continues until the counter reaches a value of FF The counter will not rollover and will not automatically reset The host computer can query for network activity on that CAN channel at any time The AVT 85x will issue a response with the number of CAN f
38. of CAN frames containing a total of up to 32 KBytes 32 768 bytes of data without host computer intervention Advanced Vehicle Technologies Inc Page 49 AVT 85x Multiple Interface Note This function is only available in CAN mode However it is available to either CANO or CAN4 channels separately simultaneous operations are not permitted The operator with a host computer sets up and stores CAN data and CAN transmit parameters into non volatile memory of the AVT 85x unit This is done using the commands described below Then using one simple command issued by the host computer or stored as an auto start command the AVT 85x will begin transmitting the stored CAN data The data is transmitted according to the stored CAN parameters The AVT 85x unit composes CAN frames and transmits them in sequence until all of the data is transmitted or the operation is terminated by the host computer Presented below are e All commands involving non volatile parameters are described first e The control command does not involve non volatile parameters is then described e Lastly a brief example is described 7 14 2 Command Descriptions non volatile parameters The following commands involve querying for or storing various Auto Block Transmit ABX parameters All of these parameters are stored in non volatile memory of the AVT 85x All of these parameters should be initialized by the user prior to invoking the ABX function ABX o
39. of this document Normally a stock item Hardware status www AVT HQ com 853_hw htm 1 3 Firmware Refer to our web site for the most up to date information about AVT 83x firmware versions www AVT HQ com 852_asm htm Advanced Vehicle Technologies Inc Page 6 AVT 85x Multiple Interface 1 3 1 Determining Firmware Version Perform the following to determine the version of firmware in your unit e Connect to a host computer running the Hex Terminal or equivalent e Power on the 85x interface unit e The power on notification is 91 27 indicates idle mode operation 92 04 xx where xx is the firmware version Example xx 01 indicates version 0 1 e At any time send the BO command e The response will be 92 04 xx where xx is the firmware version e At any time send the B1 01 command e The response will be 93 04 xx yy where xx yy is the extended firmware version 1 3 2 Determining Model Number Perform the following to determine the model number of your hardware e Connect to a host computer running the Hex Terminal or equivalent e Power on the 83x interface unit e Send the FO command e The response will be 93 28 xx yy where xxyy forms the model number eg 0853 1 3 3 Determining Board Revision Level There are two revision levels in this product family e Board revision level This can be determined by looking at the bottom of the PC board not the component side Written in copper is
40. physical e ss is the source address always physical e mmnnrer are the remaining bytes of the message Messages received from the network that are blocks have the form 11 yy ww pp dd ss mm nn rr or 12 xx yy ww pp dd ss mm mn rr e 11 indicates from the network e yy is the count of bytes to follow e or e 12 indicates from the network e xx yy is the count of bytes to follow e ww is the receive status byte usually equal to 00 e pt is the first byte of the actual message and is known as the Priority Type byte e ddis the destination byte It is either a functional or physical address e ssis the source It is always a physical address e mmnnrr are the remaining bytes of the message The AVT 83x firmware permits the host computer to specify one or two filter or match bytes one for the destination byte and one for the source byte Advanced Vehicle Technologies Inc Page 73 AVT 85x Multiple Interface Command 5x 5B is used to set the destination match byte Command 5x 5C is used to set the source match byte Both bytes default to value 00 which means don t care or don t check Any other value 01 to FF enables the filter or match feature for that byte If both bytes are defined the filtering function is a logical AND operation The filter function applies to regular network messages and block messages 11 3 1 Example Network Message Assume the following message appears on the network
41. receive manager no receive buffer available break received receive byte not equal transmit byte master receive buffer mode unknown error 0 no receive buffer available no break received transmit watchdog time out error in transmit master routine transmit command too short baud rate index 0 or too high transmit command control byte error not master or slave transmit command slave with no data 0 received a zero length message 0 0 periodic message too long periodic message mode not 1 or 2 master mode error state is unknown or invalid receive byte not equal transmit byte slave slave mode error state is unknown or invalid master state transmit time out transmit data register empty transmit complete receive data register full idle overrun noise flag framing error parity fault Advanced Vehicle Technologies Inc Page 132 AVT 85x Multiple Interface CAN mode Command error 31 xx xx Header byte of message in error Configuration reports LIN1 KWP LINO 63 01 Ox Oy Send received checksum to host X channel 5 6 7 y 0 disabled Default 1 enabled LIN1 62 02 xx Receive buffer timeout measured from most recent received byte xx milliseconds KWP 63 03 xx yy K line baud rate divisor is xx yy LIN1 KWP LINO 63 06 Ox Oy Echo transmitted message to host x channel 5 6 7 y 0 disabled Default 1 enabled CANO CAN4 LIN
42. recommended that Channel 1 configuration be changed To start a TELNET session From the START menu select run enter this command telnet 192 168 1 70 9999 telnet is the application name 192 168 1 70 is the IP address of the AVT 853 XPort module 9999 is the port the telnet application will connect to As soon as the session starts you have 5 seconds to hit lt Enter gt or else the connection will time out and you will have to start again After you hit lt Enter gt The overall configuration of the AVT 853 XPort module will scroll by very quickly You will then get the main menu shown here Change Setup 0 Server 1 Channel 1 3 E mail 5 Expert 6 Security 7 Factory defaults 8 Exit without save 9 Save and exit Your choice If you do not make a selection but instead just hit lt Enter gt the AVT 853 XPort module will display the full unit configuration An example listing is below 3 sections down At the menu prompt select 0 and hit lt Enter gt You can walk thru the Server settings The recommended and factory settings are shown in parentheses as shown here You should only need to change the IP Address and Netmask settings Advanced Vehicle Technologies Inc Page 176 AVT 85x Multiple Interface Appendix A Hint do not enter leading zeros for the IP address Enter it as 192 168 1 70 IP Address 192 168 001 070 Set Gateway IP Address N N Netmask Number of Bits for Host Part O default
43. setting XX 01 98 30 msec 02 49 15 msec 03 20 48 msec 04 10 24 msec 05 5 12 msec LIN1 LINO 63 66 Ox Oy ID byte only messages x channel 5 7 y 0 Suppress discard Default 1 Send to host 62 66 00 Suppress discard ID byte only messages 62 66 01 Inform host of an ID byte only message and send the ID byte 62 67 01 Internal baud rate is set for 19 2 kbaud 62 67 02 Internal baud rate is set for 38 4 kbaud 62 67 04 Internal baud rate is set for 57 6 kbaud 62 67 08 Internal baud rate is set for 115 2 kbaud 62 67 FF Internal baud rate is set for 230 4 kbaud 62 67 20 Internal baud rate is set for 460 8 kbaud 62 67 40 Internal baud rate is set for 921 6 kbaud Advanced Vehicle Technologies Inc Page 136 AVT 85x Multiple Interface CAN mode LIN1 KWP LINO 62 69 00 62 69 01 62 69 02 62 69 04 62 69 05 62 69 06 62 6A xx LIN1 63 6B xx yy KWP 62 6C 00 62 6C 01 LIN1 LINO 63 6F Ox Oy KWP 6x 76 yy ZZ KWP 6x 77 yy ZZ KWP LIN1 LINO secondary modes disabled LIN1 secondary mode enabled KWP secondary mode enabled LINO secondary mode enabled LIN1 and LINO secondary modes enabled KWP and LINO secondary modes enabled Red LED blink rate 00 red LED off xx red LED blink rate interval is 174 8 msec FF red LED on Fast transmit disabled Fast transmit enabled Slave response message ack or echo x channel 5 7 y 0 disable 1 enable an
44. specified maximum is 4095 data bytes 7 8 4 5 Pacing Note 1 The AVT 853 will process a transmit command from the host as quickly as possible It is also possible that the host can send transmit commands to the AVT 85x so quickly that the transmitted CAN frames cause problems for the downstream module This can happen with ISO15765 processing enabled or disabled A pacing timer can be used to add a delay between transmitted CAN frames The 7x 3F command sets the value of the pacing timer The timer interval is one millisecond There is an independent pacing timer for each CAN channel Refer to the 7x 3F command in Section 16 NOTE This is NOT the same pacing timer used for multi frame messages when ISO15765 processing is enabled which is the 7x 35 command Refer to Section 7 13 8 1 for information about that timer 7 8 5 Receive Response There are two possible from the network responses that the AVT 85x can send to the host 1 A CAN message from the network from another CAN node 2 A transmit acknowledgement or transmit ack Both are described at the beginning of Section 16 1 Regarding messages from the CAN network there are three possible forms of that receive response The number of bytes in the receive response determines the format used by the AVT 85x interface Advanced Vehicle Technologies Inc Page 23 AVT 85x Multiple Interface 7 8 5 1 Receive Response Format 0x The Ox form of the receive response is used w
45. ss Acceptance ID value when ID Mask mode 2 and IDE 0 11 bit rr ss tt vv Acceptance ID value when ID Mask mode 2 and IDE 1 29 bit CANO CAN4 83 2B Ox Oy Report ID Mask mode for CAN channel x channel 0 4 y ZE Two 32 bit IDs and masks 4 Four 16 bit IDs and masks 8 Eight 8 bit IDs and masks CANO CAN4 8x 2C xy Oz rr ss tt vv Report mask x b7 IDE bit 0 must match 1 don t care b6 RTR bit O must match 1 don t care b5 0 b4 0 y channel 0 4 Z Mask number Number depends on ID Mask mode rr Mask value when ID Mask mode 8 rrss Mask value when ID Mask mode 4 rrss Mask value when ID Mask mode 2 and acceptance ID has IDE 0 11 bit rr ss tt vv Mask value when ID Mask mode 2 and acceptance ID has IDE 1 29 bit CANO CAN4 84 2D Ox Oy zz Report acceptance ID register x channel 0 4 Advanced Vehicle Technologies Inc Page 143 CANO CAN4 84 2E Ox Oy zz CANO CAN4 83 30 Os Ot CANO CAN4 82 33 xx CANO CAN4 82 34 xx CANO CAN4 83 35 Oy zz 84 36 Or xx yy 8x 37 mO mn rr ss tt AVT 85x Multiple Interface CAN mode y Acceptance ID register number 0 to 7 ZZ Register value read Report mask register x channel 0 4 y Mask register number 0 to 7 ZZ Register value read AE byte disable enable status report s channel 0 4 t O disabled 1 enabled CAN ISO 15765 receive buffer time out value Time is in 174 8 msec
46. 0 e It is not necessary to completely fill a sector However it is not allowed to specify a start address in a sector that is not the sector start address Advanced Vehicle Technologies Inc Page 51 AVT 85x Multiple Interface e Any data not specified when storing a sector is automatically filled with FF bytes e To completely fill the available 32 KBytes of ABX data would require the host computer to send 64 decimal commands to the AVT 85x unit Note that both the response to a query and the command have the unique format where the data does not contain a header byte The data immediately follows the command when storing or the response when making a query General format of the query and command 76 38 Or ss tt kk 11 Or 01 store data ss tt sector start address kk Il count of bytes to immediately follow if a command or count of bytes requested 1f a query Examples query for stored data send this query 76 38 02 ss tt kk Il request to read stored data start reading at address ss tt read and send back to the host kk 11 number of bytes the AVT 85x will respond with 86 38 02 ssttkk Il the requested number of bytes will immediately follow store 512 bytes of data or fewer send this command 7638 01 ss 00 kk Il the data must follow immediately command to store data start storing the data at address ss 00 which must be a valid sector start address kk 11 specifies how man
47. 00 75 2A 00 00 00 00 Set expected ISO 15765 Mode2 receive ID 74 29 00 03 57 Disable padding 73 27 00 00 Disable AE 73 30 00 00 Set Flow Control ID 246 74 OF 00 02 46 Set Flow Control separation time this is the default value and does not need to be set if it has not been changed before 73 OE 00 0A Enable ISO 15765 Mode2 processing for CANO 73 26 00 02 Enable CANO operations 731100 01 Transmit an ISO 15765 formatted message with ID 246 and 5 bytes of data 08 10 02 46 11 22 33 44 55 At this point the AVT 83x will receive and transmit both non ISO and ISO formatted messages to from the downstream module across the CAN network 7 13 9 3 Example 43 Model The user wants to set up the AVT 85x to exchange ISO 15765 formatted messages with a CAN module The specifics are Single Wire CAN SWC at 33 333 kbaud 29 bit message IDs No AE Receive message ID 13 57 9A CE Transmit message ID 02 46 8B DF The flow control frame ID is usually the same as the transmit message ID Note that CAN4 must be used Here are the commands to set up CAN4 in sequence 1 2 Switch to CAN mode El 99 Set baud rate to 33 333 kbaud 73 0A 04 0A Advanced Vehicle Technologies Inc Page 48 AVT 85x Multiple Interface 3 Set mask mode to 2 qty 2 32 bit masks 73 2B 04 02 4 Set masko0 to all bits must match 77 2C 04 00 00 00 00 00 5 Set acceptance IDO to 13 57 9A CE 77 2A 84 00 13 57 9A CE 6 D
48. 1 KWP LINO 63 08 Ox Oy Time stamp status x channel 0 4 5 6 7 y 0 disabled Default 1 enabled CAN inverse of baud clock LIN1 KWP LINO 1 msec 2 enabled all channels 1 msec Advanced Vehicle Technologies Inc Page 133 AVT 85x Multiple Interface CAN mode For all channels the time stamp is 1 millisecond resolution KWP 62 13 xx 5 baud address is xx LIN1 KWP LINO 63 19 Ox Oy Transmit checksum x channel 5 6 7 y 0 disabled 1 enabled Default LIN1 KWP LINO 63 24 Ox Oy Receive network messages x channel 5 6 7 y 0 disabled 1 enabled Default LIN1 KWP 62 27 xx P4 time transmit message inter byte time is xx milliseconds LIN1 LINO 63 28 Ox Oy Receive ID byte processing x channel 5 7 y 0 disabled 1 enabled Default KWP 62 2A xx P3 time end of receive to start of transmit time is xx milliseconds KWP 62 2B xx Receive buffer expiration time is xx milliseconds KWP 63 2C xx yy Key bytes from 5 baud initialization attempt xx and yy CANO CAN4 LIN1 KWP LINO 63 40 Ox Oy Send transmit acknowledgements to host x channel 0 4 5 6 7 y 0 disabled Advanced Vehicle Technologies Inc Page 134 AVT 85x Multiple Interface CAN mode 1 enabled Default KWP 63 46 xx yy Bus idle time W5 prior to initialization attempt xx yy milliseconds KWP 62 47 xx FAST initialization low time xx milliseconds KWP 62 48 xx FAST initialization high time x
49. 1 45 Query for selected CAN4 physical layer 724501 Set CAN4 physical layer to single wire CAN 72 45 02 Set CAN4 physical layer to 2 wire CAN CANO CAN4 71 46 Query for status of CAN flow control error responses both CAN channels 72 46 Ox Query for status of CAN flow control error responses CAN channel x 73 46 Ox Oy Set status of CAN flow control error responses x channel 0 4 y 0 disabled 1 enabled Default When ISO15765 processing is enabled a non zero value in the block size field of a flow control frame will result in the 22 5F 3B or 22 5F 7B error response from the AVT 85x to the host This command will suppress those error responses CANO CAN4 73 47 0x yy Query for RUP function status 74 47 Ox yy Ov RUP command for periodic message Model X channel 0 4 yy Periodic message number 01 to 64 v 0 disable 1 enable counter is byte6 CRC is byte7 Advanced Vehicle Technologies Inc Page 113 AVT 85x Multiple Interface CAN mode 75 47 Ox yy Ov wz RUP command for periodic message Mode2 x channel 0 4 yy Periodic message number 01 to 64 v 0 disable 2 enable w 0 do not include the CRC byte 1 include the CRC byte Z location of the counter 0 to 7 if the CRC byte is omitted 0 to 6 if the CRC byte is included Note RUP Rolling UPper nibble Refer to Section 7 12 3 LIN1 LINO 73 49 Oy zz Status query for LIN Counter function y channel 5 7 ZZ Messa
50. 11 XX 04 7 data bits even parity frame length 10 XX 05 7 data bits odd parity frame length 10 Read ADC channel 1 terminal 1 Read ADC channel 2 terminal 2 Read ADC channel 3 terminal 3 Periodic ADC reports status query Disable periodic ADC reports Default Enable periodic ADC reports Report interval is xx timer ticks 5x 63 command Query for checksum method Use LIN Classic checksum method all channels Use LIN revision 2 0 Enhanced checksum method all channels Select checksum type for specified channel X channel 5 7 y 0 Classic method 1 Enhanced method Master timer status query Master timer setting XX 01 98 30 msec Default 02 49 15 msec 03 20 48 msec 04 10 24 msec 05 5 12 msec Query for ID byte only message operation Suppress discard ID byte only messages all channels Inform host of an ID byte only message and send the ID byte all channels Disable Enable ID byte only message for specified channel X channel 5 7 y 0 disable 1 enable Advanced Vehicle Technologies Inc Page 99 AVT 853 only 51 67 52 67 01 52 67 02 52 67 04 52 67 08 52 67 FF 52 67 20 52 67 40 AVT 85x Multiple Interface CAN mode Internal baud rate setting query Set internal baud rate to 19 2 kbaud Set internal baud rate to 38 4 kbaud Set internal baud rate to 57 6 kbaud Set internal baud rate to 115 2 kbaud Set internal baud rate to
51. 12 3 2 FAST Initialization The user can set the following FAST mode parameters prior to an initialization attempt e Length of time the K line must be idle prior to starting an initialization attempt W5 Command is 53 46 xx yy where xx yy is in milliseconds Default is 300 milliseconds in accordance with ISO 9141 2 and ISO 14230 e Communications baud rate using the 53 03 xx yy command Default is 10 4 kbaud in accordance with ISO 14230 e K line low time is set with the 52 47 xx command where xx is in milliseconds Default is 25 milliseconds in accordance with ISO 14230 e K line high time is set with the 52 58 xx command where xx is in milliseconds Default is 25 milliseconds in accordance with ISO 14230 Advanced Vehicle Technologies Inc Page 83 AVT 85x Multiple Interface FAST mode initialization is invoked with the 6x 13 command where the Start Communications message is included in the command A common FAST initialization command is 65 1381 10 Fl 81 The Start Communications message is 81 10 Fl 81 The AVT 85x computes and appends the checksum If the initialization attempt was successful the AVT 85x will respond with 71 11 the initialization attempt success report It will also respond with the 01 60 which is the transmit ack for the Start Communications message and the downstream module will then respond to the Start Communications message If something goes wrong during the initialization attempt the AVT 85x wi
52. 1A xx Ov 72 1B xx 73 1B xx yy Firmware version BO AVT 85x Multiple Interface VPW mode Status query x 1 Group1 only Periodic message group operational control command x 1 Group1 only y Mode 0 Disabled 1 Typel enabled 2 Type2 enabled Periodic message setup query xx Message number 01 to 0A Periodic message setup command XX Message number 01 to 0A mm nn pp The message Periodic message disable enable status query xx Message number 01 to 0A Periodic message disable enable command XX Message number 01 to 0A v 0 disabled 1 enabled Periodic message interval count status query XX Message number 01 to 0A Periodic message interval count command XX Message number 01 to 0A yy Interval yy times the timer 5x 63 command Disable all periodic messages Note the setup for each periodic message is not affected Request firmware version number Advanced Vehicle Technologies Inc Page 153 AVT 85x Multiple Interface VPW mode B1 01 Request firmware version and sub version numbers C Network speed CO Request speed mode status C1 00 Select normal 1X mode C1 01 Select high speed 4X mode D Operational mode DO Request operational mode report E Mode switch El 33 Switch to VPW mode El 99 Switch to CAN mode El DD Switch to KWP mode E Model Query and Reset FO Query for model number Fl AS Restart the AVT
53. 2 enabled Periodic message setup query xx Message number 01 to 0A Periodic message setup command XX Message number 01 to 0A mm nn pp The message Periodic message disable enable status query XX Message number 01 to 0A Periodic message disable enable command XX Message number 01 to 0A v 0 disabled 1 enabled Periodic message interval count status query XX Message number 01 to 0A Periodic message interval count command XX Message number 01 to 0A yy Interval yy times the timer 5x 63 command Disable all periodic messages Note the setup for each periodic message is not affected Advanced Vehicle Technologies Inc Page 166 AVT 85x Multiple Interface KWP Stand Alone mode Firmware version BO Request firmware version number B1 01 Request firmware version and sub version numbers Operational mode DO Request operational mode report Mode switch El 33 Switch to VPW mode El 99 Switch to CAN mode El DD Switch to KWP mode Model Query and Reset FO Query for model number Fl AS Restart the AVT 85x a form of software reset 18 1 KWP Stand Alone Mode Responses High nibble bits b7 b4 Response type Valid message packet received from the network Ox pp rr ss tt x count of bytes to follow pp message status byte bit map bit set indicates b7 b6 From this device b5 Transmission successful b4 Lost
54. 230 4 kbaud Set internal baud rate to 460 8 kbaud Set internal baud rate to 921 6 kbaud New setting does not take affect until reset either power on reset or software reset F1 A5 XPort baud rate must be changed to match LIN1 KWP LINO 51 69 52 69 00 52 69 01 52 69 02 52 69 04 52 69 05 52 69 06 51 6A 52 6A xx LIN1 53 6B xx yy 51 6C 52 6C 00 52 6C 01 LIN1 LINO 51 6F 52 6F 00 Secondary operational mode query Disable all secondary modes Enable LIN1 secondary operations Enable KWP secondary operations Enable LINO secondary operations Enable LIN1 and LINO secondary operations Default Enable KWP and LINO secondary operations Red LED blink rate query Set red LED blink rate 00 red LED off xx red LED blink rate interval is 174 8 msec FF red LED on Transmit a break to the network with duration xx yy microseconds approximately Query for fast transmit status Fast transmit disabled Default Fast transmit enabled Query for slave response message ack echo status Disable all channels Advanced Vehicle Technologies Inc Page 100 52 6F 01 52 6F 02 53 6F Ox Oy 51 78 52 78 00 52 78 01 52 7D 00 52 7D 01 AVT 85x Multiple Interface CAN mode Enable and ack with ID all channels Enable and echo complete transmitted message all channels Disable Enable for specified channel x channel 5 7 y 0 disable 1 enable as describ
55. 85x Multiple Interface Appendix A Model Firmware version Hardware Address Ethernet 1 Channel V1 50 may be different higher This is the so called MAC address It is unique to each AVT 853 XPort device IP Address 192 168 1 70 Subnet Mask 255 255 255 0 Gateway Address 0 0 0 0 Port Configuration Local Port Number 10001 Remote Port Number blank Serial Port Speed 57600 Flow Control 02 Interface Mode 4C Connect Mode CO Disconnect Mode 00 Flush Mode 00 Pack Control 00 UDP Datagram Type Not used Server Properties Page Select the button Server Properties to view and change the AVT 853 XPort properties Factory default settings are shown here Server Properties IP Address 192 168 1 70 Subnet Mask 255 255 255 0 Gateway Address 0 0 0 0 High Performance Disable this field may not exist Telnet Password XXXX none assigned Port Properties Page Select the button Port Properties to view and change the AVT 853 XPort communications port properties Factory default settings are shown here It is NOT recommended that changes be made to these parameters Serial Port Settings Serial Protocol RS232 Speed 230400 Character Size 8 Parity None Stop bit 1 Flow Control CTS RTS Hardware Advanced Vehicle Technologies Inc Page 180 AVT 85x Multiple Interface Appendix A Connect Mode Settings UDP Datagram Mode UDP Datagram Type Incoming Connection Disable blank Re
56. 983 sec 74 1B 0001 0A 7 Enable periodic message 01 74 1A 0001 01 8 Note that nothing will be transmitted until the group control is set to Typel 9 Define periodic message 06 ID 0498 data 04 1A 2B 3C 4D 7A 18 06 00 04 98 04 1A 2B 3C 4D 10 Set periodic message 06 for an interval count of 5 actual interval 0 4915 sec 74 1B 00 06 05 Advanced Vehicle Technologies Inc Page 34 AVT 85x Multiple Interface 11 Enable periodic message 06 74 1A 00 06 01 12 Enable CANO Group1 for Typel operations At this point all enabled messages in CANO Group1 will begin transmission according to their own independent schedule 74 OC 00 01 01 7 11 9 Type2 Periodic Messages Type2 periodic messages are transmitted in sequence within the group When more than one message in a group is defined and enabled and the group operating mode is set for Type2 operations 7x OC command then those messages will be transmitted in sequence using the interval count of the first message in the group regardless if that first message is used or not For Group messages only message 01 interval count is used For Group2 messages only message 11 interval count is used The sequential messages are setup All are in the same group The interval count is defined Only use the interval count of the first message in the group The messages are enabled The group is enabled for Type2 operations 7 11 9 1 Type2 Example Want t
57. 99 command The following responses will be received by the host 91 10 indicates the AVT 85x has entered CAN operations 83 11 00 00 indicates that CAN channel 0 is disabled 83 11 04 00 indicates that CAN channel 4 is disabled 91 29 optional indicates that LINO mode of operation is active 91 19 indicates that LIN1 mode of operation is active LIN1 mode uses the AVT 85x K line for communications 8 1 Shunt JP2 Shunt JP2 only exists on revision B1 boards It was removed from later board revisions AVT 853 revision B1 boards only shunt JP2 connects disconnects the LIN1 bus from pin 7 of P3 the DA 15P network connector 8 2 Communications Unless otherwise commanded the AVT 85x will passively receive all messages from the LIN1 bus Advanced Vehicle Technologies Inc Page 56 AVT 85x Multiple Interface The AVT 83x is capable of communicating on or transmitting to the LIN1 bus as a Master without data as a Master with data or as a Slave with data 8 2 1 Message Length When LIN messages are received from the network expected message length is computed based on the message ID This operation is in accordance with LIN protocol specification revisions 1 2 and 1 3 This is know as ID byte processing LIN protocol specification revision 2 0 and later eliminated the relationship between message ID and expected frame length Therefore if a message ID and frame length is encountered that do not agree
58. D s channel 0 4 tt uu vv ww 29 bit ID ae AE byte CANO CAN4 7111 Operational mode status query for all CAN channels 72 11 Oy Operational mode status query for CAN channel y channel 0 4 73 11 Oy Oz Set operational mode for CAN channel y channel 0 4 Z 0 Disabled Default for CANO and CAN4 1 Enabled for normal operations 2 Enabled for listen only operations 71 12 Single Wire CAN SWC transceiver status request CAN4 only Advanced Vehicle Technologies Inc Page 104 AVT 85x Multiple Interface CAN mode 72 12 Oy Set SWC transceiver mode CAN4 only y 0 Sleep mode 1 High speed mode 2 Wake up mode 3 Normal mode Default NOTE The periodic message setup command 7x 18 has the channel number and message number fields reversed as compared to all other commands CANO CAN4 73 18 vv Oy Periodic message setup query vy Message number 01 to 64 when CANO is specified y channel 0 4 7x 18 vv yz tt vv ww zz mm nn Periodic message setup command vv Message number 01 to 64 when CANO is specified y b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 Zz channel 0 4 tt vv 11 bit ID right justified tt vv ww zz 29 bit ID right justified mm nn data field LIN1 LINO 73 18 vv Oy Periodic message setup query vv Message number 01 to 0A y channel 5 7 7x 18 vv Oy 0z ww pp qq rr Periodic
59. EEPROM information 4 2 1 Ethernet Setup The AVT 853 XPort can be reconfigured in the field by the user Basic information is provided here More information is provided in Appendices A and B at the end of this document Use care when changing the configuration It is possible to corrupt the setup such that communications with the AVT 853 will be totally nonfunctional Ethernet communications with the AVT 853 use TCP IP The factory default device address is listed here as well as the various port numbers depending on the type of communications to be established Note that several different communications sessions are possible with the AVT 853 depending on what is to be accomplished and what port is used A session can be established with the AVT 853 XPort to change settings such as the Ethernet IP Address port 9999 In normal use an Ethernet session will be opened with the AVT 853 to communicate with the vehicle network port 10001 The AVT 853 uses the Lantronix XPort device Detailed information about the XPort device configuration tools and more can be obtained from AVT or from the Lantronix web site www Lantronix com 4 2 1 1 Ethernet IP Address The factory default IP address of the AVT 853 is static and is set to 192 168 1 70 The factory default net mask setting is 255 255 255 0 Depending on the particular network environment in which the AVT 853 is being used the setting of the net mask may not be important Rule of th
60. Enable time stamps all channels For CANO and CAN4 the time stamp interval is the inverse of the baud rate for that channel For LIN1 KWP and LINO the time stamp is 1 millisecond resolution 52 08 02 Enable time stamps For all channels the time stamp is 1 millisecond resolution 53 08 Ox Oy Disable Enable time stamp for specified channel x channel 0 4 5 6 7 y 0 disable 1 enable as defined above 2 enable as defined above KWP 51 13 Query for 5 baud address 52 13 xx Set 5 baud address to xx Default 33 LIN1 KWP LINO 5119 Query for transmit checksum status 52 19 00 Do not append checksum to transmitted message all channels 52 19 01 Append a checksum to transmitted message all channels Default 53 19 Ox Oy Disable Enable transmitted checksum for specified channel X channel 5 6 7 y 0 disable 1 enable LIN1 KWP LINO 51 24 Network messages query Advanced Vehicle Technologies Inc Page 96 52 24 00 52 24 01 53 24 Ox Oy LIN1 KWP 51 27 52 27 xx LIN1 LINO 51 28 52 28 00 52 28 01 53 28 Ox Oy AVT 85x Multiple Interface CAN mode Do not receive any network messages all channels Receive network messages Default Disable Enable transmitted checksum for specified channel X channel 5 6 7 y 0 disable 1 enable Query for P4 time transmit message inter byte time Set P4 time to xx where xx is in increments of approximately 30 microsecon
61. Exit without save 9 Save and exit Your choice basic parameters Hardware Ethernet TPI IP addr 192 168 1 70 no gateway set netmask 255 255 255 000 Security SNMP is enabled SNMP Community Name public Telnet Setup is enabled TFTP Download is enabled Port 77FEh is enabled Web Server is enabled ECHO is disabled Enhanced Password is disabled Port 77FOh is enabled Channel 1 Baudrate 230400 I F Mode 4C Flow 02 Port 10001 Remote IP Adr none Port 00000 Connect Mode CO Disconn Mode 00 Flush Mode 00 Expert TCP Keepalive 45s ARP cache timeout 600s High CPU performance disabled Monitor Mode bootup enabled HTTP Port Number 80 SMTP Port Number 25 kkkkkkkkkkkkkkk E mail kkkkkkkkkkkkkkkkk Mail server 0 0 0 0 Unit Domain Recipient 1 Recipient 2 Trigger 1 Serial Sequence 00 00 CP1 X CP2 X CP3 X Message Priority L Min notification interval 1 s Re notification interval O s Trigger 2 Serial Sequence 00 00 Advanced Vehicle Technologies Inc Page 178 AVT 85x Multiple Interface Appendix A CP1 X CP2 X CP3 X Message Priority L Min notification interval 1 s Re notification interval 0 s Trigger 3 Serial Sequence 00 00 CP1 X CP2 X CP3 X Message Priority L Min notification interval 1 s Re notification interval O s 20 Appendix B A listing of the AVT 853 XPort device setup web page fac
62. Firmware version report Version is xx Firmware version report Version is Xx yy VPW operations DLC initialization complete KWP operations CAN operations LIN 1 operations CANO reset CAN4 reset Idle state LINO operations Model number report xyz is the model number Advanced Vehicle Technologies Inc Page 148 AVT 85x Multiple Interface CAN mode Advanced Vehicle Technologies Inc Page 149 AVT 85x Multiple Interface VPW mode 17 VPW Mode Commands High nibble bits b7 b4 Command type O Packet for transmission to the network Ox yy zz x is message length yy zz message bytes 1 Alternate header formats packet for transmission to the network Alternate form 1 for long messages blocks 11 xx rr ss tt xx 1s the number of bytes to follow rr ss tt are the message bytes Alternate form 2 for long messages blocks 12 xx yy rr ss tt Xx yy is the number of bytes to follow rr ss tt are the message bytes Maximum length is 4112 message bytes 1010 All forms are equal in ascending order Ox or 11 xx or 12 xx yy 2 Reset 21 03 Reset DLC 3 4 5 Configuration 51 06 Request transmit message echo status 52 06 00 Do not echo transmitted messages Default 52 06 01 Echo transmitted messages 51 08 Request time stamp status 52 08 00 Disable time stamps Default 52 08 01 Enable time stamps The time stamp is millisecond resolu
63. On the AVT 853 this appears as an RJ 45 connector It is 10 100 Ethernet TCP IP and configured with a static IP address 192 168 1 70 factory default The user can change the IP address of the AVT 853 unit Detailed information about this is provided in Section 4 2 1 and Appendices A and B On the AVT 853 board the microcontroller and the XPort device communicate via an internal serial link The factory default baud rate is 230 4 kbaud The user can set the internal baud rate by changing a value stored in EEPROM Available baud rates are listed here 19 2 kbaud 38 4 kbaud 57 6 kbaud 115 2 kbaud 230 4 kbaud default 460 8 kbaud 921 6 kbaud Refer to Section 16 for information about the 52 67 xx command while in CAN mode to change the host baud rate Note that the baud rate setting of the XPort serial server must be changed to match that of the AVT 853 microcontroller Refer to Section 4 2 1 and Appendices A and B for information on setting the XPort parameters Advanced Vehicle Technologies Inc Page 9 AVT 85x Multiple Interface Obtain and read the document AVT 853_Internal_Baud_Rate pdf for the procedure to change the internal baud rate The document is available from our web site A direct link is http www avt hq com AVT 853_Internal_Baud_Rate pdf Note that this baud rate setting has nothing to do with vehicle network or Ethernet network communications Refer to the User s Manual Volume 2 for detailed
64. Page 11 AVT 85x Multiple Interface In this mode the AVT 853 XPort will on power up search for a DHCP server If one is found it will obtain its IP address gateway address and subnet mask from the DHCP server If a DHCP server is not found the AVT 853 XPort will then switch to AutoIP addressing described in the next Section An AVT 853 IP address of 0 0 1 0 enables DHCP addressing and disables AutoIP addressing 4 2 3 AutoIP Addressing AutolP is an alternative to DHCP that allows hosts to automatically obtain an IP address in smaller networks that may not have a DHCP server Quoted from Lantronix XPort User Manual revision A 3 03 page 3 4 AutoIP addressing is only enabled if the AVT 853 XPort IP address is set to 0 0 0 0 and no DHCP server is found If on power up the AVT 853 XPort cannot find a DHCP server it will automatically assign itself an AutoIP address range 169 254 0 1 to 169 254 255 1 It will then send out an ARP Address Resolution Protocol request onto the network to see if any other node already has that address If no conflict is found the AVT 853 XPort will use that address until the next power on reset or reboot If an address conflict is found another node is discovered to already have that address then the AVT 853 XPort will select another AutoIP address send out another ARP request The process will continue until it finds an address that is not being used 4 3 Packet Communications with Host Co
65. Remember the function is by LIN channel and periodic message number 8 5 ABIC Support LIN1 supports communications with an ABIC module Refer to the transmit command explanation in Section 16 for information on how to format a transmit command for an ABIC module Refer to Section 16 1 for information on how an ABIC response is formatted 8 6 Commands and Responses Refer to Section 16 for a complete list of LIN mode commands and Section 16 1 for responses Advanced Vehicle Technologies Inc Page 64 AVT 85x Multiple Interface 9 LINO operations in CAN mode LINO is only available when in CAN mode of operation LINO operation is completely independent of all other channels LINO operation is controlled by the 52 69 xx command LINO supports LIN revisions 1 2 1 3 2 0 2 1 2 2A To use LINO mode enter CAN mode using the E1 99 command The following responses will be received by the host 91 10 indicates the AVT 85x has entered CAN operations 83 11 00 00 indicates that CAN channel 0 is disabled 83 11 04 00 indicates that CAN channel 4 is disabled 91 29 optional indicates that LINO mode of operation is active 91 19 indicates that LIN1 mode of operation is active The 91 29 response indicates that LINO exists and is enabled 9 1 LINO Operations Notes LINO operations are nearly identical to LIN1 described in Section 8 LINO does NOT support ABIC operations LINO is channel 7 9 2 Commands and Respon
66. Section 17 A brief summary is provided here e 5x63 Timer interval e 7x 0C Periodic message group operation control disabled Typel Type2 e 7x 18 Define a periodic message e 7x 1A Periodic message disable enable e 7x 1B Periodic message interval e 7x1C Disable all periodic messages Disable all groups 11 6 Block Transmit Example The AVT 85x supports transmitting VPW messages in block mode The maximum message length supported is 4112 bytes 4096 16 bytes The hex equivalent is 1010 The following is an example of transmitting a maximum length message in block mode Note that 4112 is the actual number of message bytes Command sent to AVT 85x 121010 Followed immediately by the 4112 message bytes The AVT 85x will wait for a maximum of 3 seconds for the entire message to be received from the host The message is buffered before being sent to the network When transmission of the block to the network is complete the AVT 85x will send a transmit acknowledgement if enabled to the host The acknowledgement is of the form F3 pp rr ss A description of that acknowledgement is listed at the end of the VPW Responses Section 17 1 If the host sends a message larger than 4112 bytes an error message is generated and the message is flushed If all expected bytes are not received within 3 seconds an error message is generated and the message is flushed 11 7 Block Receive Example The following is an example of receiving a
67. The alternate transmit command formats 11 xx and 12 xx yy are available and will work After the host sends complete transmit command the AVT 85x will perform the following e Check the command e Store the data e Determine if the transmit operation requires a single frame or multiple frames e Compute the required PCI byte and insert it into the data field e Compose the frame or frames including the PCI byte and AE byte if enabled e Pad the data field of the frame if enabled e Wait for and decode the received flow control frame if necessary e Send one transmit ack to the host if enabled when the entire transaction is complete The user should OMIT all PCI byte s from the transmit command OMIT all pad byte s from the transmit command If AE Address Extension is used for a particular application and module then include the AE byte just once in the correct place of several commands and enable AE support for the CAN channel being used 7 13 8 1 Pacing Note 2 When transmitting a multi frame message the AVT 85x will attempt to use the separation time specified in the flow control frame received from the downstream module If the downstream module responds with a flow control separation time of 00 the AVT 85x will transmit frames as fast as it can It is possible an AVT 85x can transmit frames too quickly The 7x 35 pacing command will insert a programmable delay between transmitted frames This delay will only be
68. UNICATIONS WITH HOST COMPUTER ssscceseeesceceseecsseecescecsneceesaecesaeceneceeecssaeceseeessnesenaeensaeeenaes 12 5 VEHICLE CONNECTION iescscccsensssnscsnasassscescecassunsevasssssesscsvasenscsuscacssevesnsscsetssdocevedcesetsontvenaceventestecesseasoraccstinesess 14 5 1 AVT 852 BOARD REVISION AP A is 14 52 AVT 8353 BOARD REYISION Bl atan 15 5 3 AVT 853 BOARD REVISION D AND FP niten e are e ea e A nana o E TE Ta NET 16 5 4 POWER REQUIREMENTS ccccccccccssssssssceeeccccccsssseeeeccceesessseeeeeceeeeesnsaeeeeceeeesssaeeeecceceseeaseeeeeecesensseeececeeeeeesseeeeeceeeens 16 SS NO 16 DIAZ Inpue Voltage ori o ada 16 34 37 Power DISSIPQtON ss od 17 5 5 RT RA 17 6 ADC CONNECTION eiisscsssistosiscsatdssscssebasisccateccvsssbesentesstsosnssepesessccssboatesssogsedsssetveoetseacseusosedbedseussduscossecccstescosssans 17 6 1 ADC READINGS ta 17 Tax CAN MODE a A A cvdnssoscecesuceessesteveedestcedvoecteetsonceeear 18 7 1 BOARD REVISION Bl a aaa 18 7 2 BOARD REVISION D AND Pre orion sca ooo Loiola cats 18 7 3 CAN MODE DEFAULT CONFIGURATIONS iii io 19 7 4 CANO 2 WIREICCAN ans 19 TAI CANO Chamel Number ida iia desici n 20 7 5 CAN4 2 lt WIRE CAN CS tai ia did 20 7 6 CAN4 SINGLE WIRE CAN SWOiistantd ts dde dt detal adiciona 20 POLA NUNES a 20 7 6 2 CAN4 Channel Number id acia ariadna ect iia cidade dai deci 20 7 1 CAN SECONDARY OPERATIONAL MODES oninia a E E A A E E REENER 21 7 7 1 Board revision B1 Allowed Seconda
69. WP operations This mode is known and referred to as KWP mode in this document and for the AVT 85x interface units KWP is from Key Word Protocol 2000 the ISO 14230 standard To enable KWP mode while in CAN mode use the 52 69 02 command to enable KWP mode disable LIN1 mode and still allow CANO and CAN4 operations If operating in CAN mode KWP operations are designated channel 6 KWP mode is communications compliant with the following standards ISO 9141 ISO 9141 2 ISO 14230 The AVT 85x only supports the K line It does not support the L line The AVT 83x uses the Vishay Siliconix i9241AEY K line transceiver A single 1 K ohm resistor is used to passively pull up the K line to V Batt potential An alternate configuration for the pull up resistors is available A second 1 K ohm resistor can be installed in parallel for an equivalent pull up resistance of 500 ohms 12 1 Shunt JP2 Shunt JP2 only exists on revision B1 boards It was removed from later board revisions AVT 853 revision B1 boards only shunt JP2 connects disconnects the K line from pin 1 of P3 the DA 15P network connector 12 2 Communications K line messages according to ISO 14230 have a maximum length of 259 bytes including checksum byte Advanced Vehicle Technologies Inc Page 80 AVT 85x Multiple Interface The AVT 85x is capable of receiving K line network messages up to the full length of 259 bytes The AVT 85x will check t
70. aeens 31 7 11 3 The Default Configuration aisinn a A E E A ER A E A r ia 32 7 11 4 Dynamic AUlocati h norite A A iS 33 7 11 5 Message Numbering In The Periodic Message Commands nossosessessesesesenseserseeereerrereeresrerrrresresresrreresreee 33 7 11 6 Group Operai ns 52 5 sees cess Beh AA A A EE aa 33 7 11 7 Periodic Message Master Timet neran a si 33 7 11 8 Lypel Periodic Messages bit A A ta A tt A tl 34 7 11 9 Eype2 Periodi Messages oi ic ceded t 33 7 11 10 Periodic Message Commands oooocccnncnonnnonannnonononnnnnnnnnnnnnn conan nano nn enn RR nn RR nn Ren E E nn ne nn near eri EAR 36 7 12 PERIODIC MESSAGE SPECIAL FUNCTIONS oooooocoocanoncnonnnoncnorannncnornnnncnnrnonnnnnrnnnacno rana one rn ER rra one narra rn enana one REES 36 7 12 1 CAN Frame Data Definir A dae UA tetera end Neti ee ash See 37 7 12 2 ARC Function DescripllOn isra Siisera a E A cesdebag OA decrete dina da iia 37 7 12 3 RUP FuncaonDesCrApluONiivit a AAA eS PARA aS eases UES SCS A Sd A 37 7 12 4 CAC Function DescripllOniacici idad 38 7 12 5 CIB Function Description 39 7 12 6 RCZ Funci n DescripllOn iii A ada 39 7 12 7 RES FUunctiOn Descrip sede 40 7 12 8 Periodic Pause Funcionaria E entire rones airada raider 40 33 ISO AS TOR SUPPORT oi A A A iS 41 7 13 1 Terms Gnd Definitions iio s sevisass sobass Stevan ass cnayscaviends vase E EE EEEE seca rie R E NE 4 7 13 2 Modes of Operation 2 33 28 A A AA ABR i a ee NR 4 7 13 3 Receive Operations General Notes cc
71. as ten 0A messages automatically The operator defines and sets up the desired periodic messages enables them and the AVT 85x unit will then transmit those messages at the defined interval without any operator intervention A common use for this capability is for the Tester Present message that some ECUs Electronic Control Units require when in diagnostic mode Another use would be in a simulation scenario The AVT 85x will not generate a transmit ack when a periodic message is transmitted unless transmit forwarding 52 06 01 is enabled 12 5 1 Organization of Periodic Messages In KWP mode there is only one group of periodic messages Groupl All ten periodic messages are in Group1 All ten periodic messages can be set to operate in Typel or Type2 mode The periodic messages are numbered 01 to 0A inclusive Each message is independently disabled or enabled 7x 1B command Each message has its own time interval 7x 1A command valid only in Typel operations Advanced Vehicle Technologies Inc Page 85 AVT 85x Multiple Interface 12 5 2 Periodic Message Master Timer There is one timer that governs The Analog To Digital ATD functions Typel periodic messages Type2 periodic messages The time interval for that timer is set with the 52 63 xx command The available settings are 98 30 msec Default 49 15 msec 20 48 msec 10 24 msec 5 12 msec 12 5 3 Typel Periodic Messages Typel periodic messages operate
72. ate to 921 6 kbaud New setting does not take affect until reset either power on reset or software reset F1 A5 XPort baud rate must be changed to match Query for red LED blink rate Set red LED blink rate 00 red LED off xx red LED blink rate interval is 174 8 msec FF red LED on Query for Fast Transmit status Disable Fast Transmit Default Enable Fast Transmit MMR Mask Match Respond MMR function mask query MMR function mask definition x count of bytes to follow yy zz mask bytes MMR function match query MMAR function match definition x count of bytes to follow yy zz match bytes MMR function respond query MMR function respond definition x count of bytes to follow yy ZZ command bytes MMAR function status query Disable MMR function Enable MMR function Advanced Vehicle Technologies Inc Page 165 Initialization 6111 6x 13 yy zz 73 0C 0x Oy 72 18 xx 7x 18 xx mm nn pp 72 1A xx 73 1A xx Ov 72 1B xx 73 1B xx yy AVT 85x Multiple Interface KWP Stand Alone mode CARB mode 5 baud initialization FAST initialization X count of bytes to follow yy ZZ start communications message Periodic message group operational control Status query Groupl is reported Status query x 1 Group1 only Periodic message group operational control command x 1 Group1 only y Mode 0 Disabled 1 Typel enabled 2 Type
73. aud rate for CAN channel x channel 0 4 yy 00 User specified using 74 OB Ox rr ss command 01 1 Mbps 02 500 kbps 03 250 kbps 04 125 kbps OA 33 333 kbps OB 83 333 kbps CANO Default 500 kbps CAN4 Default 500 kbps usually or 33 3333 kbaud CANO CAN4 84 OB Ox rr ss Bit Timing Registers BTR for CAN channel xX channel 0 4 rr Bit Timing Register 0 setting SS Bit Timing Register 1 setting CANO CAN4 LIN1 KWP LINO 84 OC Oy Ov Ow Periodic message group operation status y channel 0 4 5 6 7 v Group 1 or 2 w Mode 0 Disabled 1 Typel enabled 2 Type2 enabled CANO CAN4 83 OE Or ss Outbound flow control separation time r channel 0 4 SS Separation time msec CANO CAN4 84 OF rs tt uu Outbound flow control ID 11 bit no AE byte r 0 11 bit ID s channel 0 4 tt uu 11 bit ID Advanced Vehicle Technologies Inc Page 139 AVT 85x Multiple Interface CAN mode 85 OF rs tt uu ae Outbound flow control ID 11 bit with AE byte r 0 11 bit ID s channel 0 4 tt uu 11 bit ID ae AE byte 86 OF rs tt uu vv ww Outbound flow control ID 29 bit no AE byte r 8 29 bit ID s channel 0 4 tt uu vv ww 29 bit ID 87 OF rs tt uu vv ww ae Outbound flow control ID 11 bit with AE byte r 8 29 bit ID s channel 0 4 tt uu vv ww 29 bit ID ae AE byte CANO CAN4 83 11 Ox Oy Operational mode for CAN channel x channel 0 4 y 0 Disabled D
74. c message number v Q0 to disable 1 to enable 7 12 7 RC3 Function Description RC3 Rolling Counter 3 A basic description of the operation of this function follows If you require detailed information contact me The counter is bits 7 6 of Data6 Increment the counter Clear bits 2 0 of Data6 Compute the checksum of the message using 11 bit unsigned addition from Data0 to Data6 Take the 11 bit CAN ID divide by 8 and add that to the checksum Write the lower 8 bits of the checksum Data7 Write the upper 3 bits of the checksum to bits 2 0 of Data6 The message is then queued for transmission 7 12 7 1 RC3 Function Command Detailed explanation of the RC3 function command 73 51 Ox yy query for status x is the CAN channel 0 or 4 yy is the periodic message number 74 51 Ox yy Ov Disable Enable command x 1s the CAN channel 0 or 4 yy is the periodic message number v 0 to disable 1 to enable 7 12 8 Periodic Pause Function The Periodic Pause function when enabled for a specific CAN channel will inhibit all CAN periodic messages whenever an ISO15765 transaction is in progress Note that this only applies to IS015765 Advanced Vehicle Technologies Inc Page 40 AVT 85x Multiple Interface transactions that require more than one CAN frame in other words if a multi frame message transaction is in progress on the CAN channel no periodic messages will be queued for transmission 7 12 8 1 Periodic Pause F
75. ccccesccescescseeesscesecesecesecnsecseeeeeeseceseessecseeeseeeseesaesnseceeesseesaeeeaeeeaeens 42 7 13 4 Receive Operations Model esnie vad cettsaea tag tt ceed eet tha eens 43 7 13 5 Receive Operations Modelo conidios 43 7 13 6 Receive Operations MOde 22k iid easel cae es tad eas sais BA ase ee a 43 7 13 7 Transmit Operations ia 44 7 13 8 Transmit Operations General Not S oooonnccincnionnonnnonnnononanonnnonnnona e E AE E E ERE 44 7 13 9 Operation Example connotaciones 46 7 13 10 ISO 15765 Questions and Engineering SuppOTt oonnnnnnonnnonnnoninnnonnncnnnonn nena conan nn naar conan ran none nn aran nr nc rnn aran 49 7 14 AUTO BLOCK TRANS MIT oo 0c sus2ss t0sscessedusceescs oi secsstecgacessnaetesvdaveetezeteestsviedeetezpSaedssdneseetesesasstsviedeetesstasssviesoereietee 49 7 14 1 Operation Descriptioh iriri resa ndeshi dyed cca sted AA A tx ech iad di ete Rien lb 49 7 14 2 Command Descriptions non volatile parameters ooonnccinnnononaninanonannnnnonanonnnnnnonnn cano cnnncnn cnn cnn nc nn ncnn craneo 50 7 14 3 Command Description CONETOL cecccscssescevivies cacevissevesveuscodanceastsvesea can E EEEREN E a a irait ie 53 7 14 4 Operation Example aio ea ea En EA A TE A ER E E teeG econ 54 TAS CHANNELACTIVITY ocius te ti AE A A E Ee NSA 55 BRO SATDREAD FUNCTION cunoticias ad E ica 55 7 16 1 Message Construction ssi cients A ie 55 7 16 2 SetUD A A i tants ceed AA iced ads attic aed Ra Berea aa 56 7 16 3 Operati otiera sak cheek Se
76. cccocconocnocnncnncnnonncononncnnnonncnncnnonncnonncnncnnnonnon non non nonncncrn con noo noc non vosos seessosis 65 9 1 LINO OPERATIONS NOTES rsxcssscxcess condone staskeclocsnsentdndowcavocsnssebetostests dir qa 65 9 2 COMMANDS AND RESPONSES anii VAi rE N EE A SA rt 65 10 KWP OPERATIONS IN CAN MODE cccsssssssscsscsscescescnssnssssscsscescnscnssnsssssssssesenssoscessssssssssssessescoscosooss 65 VOT SHUNT IP Zi da 65 10 2 COMMUNICATIONS cs essesi apoa Eaa E Nai Eea er Ia ic 65 10 3 OPERATION COMMANDS sieci ipne tgeen NEE e AAA aid 66 10 3 1 Communications Example mcris eii E EER EEE EER E A 66 10 3 2 LLIN STAMP DA A AE esos O E EE S N A A anes NOA 66 10 3 3 F st Irans mil renea RR NE 67 10 4 PERIODIC MESSAGE SUPPORT otitis iii iO a rE Ea ai 67 10 4 1 Organization of Periodic Messag s cocioonnoonnnonnnonnnconnnanananonnonnnonn nena non nenn anar n nacen nene a SEESE aS 67 10 4 2 Periodic Message Master Timer iii A iia 68 10 4 3 Typel Periodic Messages roncaire dai 68 10 4 4 Lype2 Berto dic M CSSA BCS RA tt t 69 10 4 5 Periodic Message Commands vvosaciiiscvcsssssvccctesncs ent ocueeeubsuscuotseva ia tinii e a ETEA NEA 70 11 ANA soetessossocecse otdessushudeccsubsdedaasendsnsecsevesesstbeeusdascdadsestotensoatete 70 VLE SHUNT URS 15 it 71 VEZ IN SAA A ch Een p EES ANE cutee AKEE ES E sen NE ES ET eA Sevag snbuseuriesboasdavaws onteune 71 11 2 1 Communications Example Not Block Transfer essssessesesseseeee
77. cessed as ISO 15765 formatted messages This means e All frames received from the CAN network are assumed to be ISO 15765 formatted and are processed accordingly e All transmit commands from the host are reformatted to meet ISO 15765 are transmitted to the CAN network 7 13 2 3 Mode2 Mode2 means that only receive messages messages from the CAN network matching the expected receive ID will be ISO 15765 processed This mode is selected using the command 73 260x02 where x is the CAN channel number The 7x 29 command is used to specify the ID of the messages from the CAN network that are to be ISO 15765 processed All other messages received from the CAN network are not ISO 15765 processed and are passed to the host Only messages specifically indicated by the host are ISO 15765 formatted before being transmitted to the CAN network Refer to the beginning of Section 16 for information about formatting a transmit command 7 13 3 Receive Operations General Notes When a receive message is ISO 15765 processed Model or Mode2 the AVT 85x will not send the PCI byte to the host unless an error is encountered When receiving a multi frame message the AVT 85x will automatically compose and send a Flow Control frame The AVT 85x will never send a transmit ack 02 Ox Oy to the host when a Flow Control frame is transmitted Pad bytes are always stripped from a received frame regardless of the state of the padding command Advanced Veh
78. command too long 11 bit CAN4 non ISO 15765 transmit command too short 29 bit CAN4 non ISO 15765 transmit command too long 29 bit CAN4 non ISO 15765 11 12 transmit command too long CAN4 fail to enter sleep mode CAN4 fail to enter init mode Advanced Vehicle Technologies Inc Page 127 4D 4E 4F 50 51 52 53 54 55 56 57 58 59 SA SB 5C 5D SE SF 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 TT AVT 85x Multiple Interface CAN mode CAN4 fail to exit init mode enable listen CAN4 fail to exit init mode enable normal CAN4 time out reading 11 12 transmit command CANO mask mode not equal mask status 7x_2B CAN4 mask mode not equal mask status 7x_2B Mask mode not equal mask status 7x_2B Invalid id mode in CAN_rpt_all_ids Invalid mask mode in CAN_rpt_all_masks Invalid CAN channel in 7x_2C Invalid CAN channel in 7x_2C Invalid mask number for mask mode in 7x_2C Invalid mask mode in 7x_2C CANO Invalid mask number in 7x_2C CANA4 Invalid mask number in 7x_2C Invalid channel number in 7x_2C Incorrect header byte in 7x_2C Mode 2 11 bit Incorrect header byte in 7x_2C Mode 2 29 bit Incorrect header byte in 7x_2C Mode 4 Incorrect header byte in 7x_2C Mode 8 Mask mode error in 7x_2C Invalid CAN channel in 7x_2A Invalid CAN channel in 7x_2A Invalid mask number for ma
79. d ack with ID 2 enable and echo complete transmitted message MMR function mask definition x count of bytes to follow yy zz mask bytes MMR function match definition x count of bytes to follow yy zz match bytes MMR function response definition x count of bytes to follow Advanced Vehicle Technologies Inc Page 137 AVT 85x Multiple Interface CAN mode yy ZZ command bytes KWP 62 78 00 MMR function disabled 62 78 01 MMR function enabled LIN1 62 7D 00 Suppress noise only error responses 25 86 00 00 00 x4 62 7D 01 Do not suppress any 25 86 rr ss tt vv error responses LINO 62 80 xx Receive buffer timeout measured from most recent received byte xx milliseconds LINO 62 81 01 LINO bus baud rate is 2400 baud 62 81 02 LINO bus baud rate is 9600 baud Default 62 81 03 LINO bus baud rate is 19200 baud 64 81 04 xx yy LINO bus baud rate is equal to 25 000 000 16 xxyy LINO 62 82 xx Maximum frame time is xx milliseconds LINO 63 83 xx yy Break of duration xx yy microseconds was transmitted to the network LINO 62 84 xx P4 time transmit message inter byte time is xx milliseconds 7 Initialization attempt response KWP 71 00 Initialization attempt failure KWP 7111 Initialization attempt success Advanced Vehicle Technologies Inc Page 138 AVT 85x Multiple Interface CAN mode CAN configuration reports CANO CAN4 83 OA Ox yy B
80. d go to 8F The message is then queued for transmission 7 12 5 1 CIB Function Command Detailed explanation of the CIB function command 73 4E Ox yy query for status x is the CAN channel 0 or 4 yy is the periodic message number 74 4E Ox yy Ov Disable Enable command x is the CAN channel 0 or 4 yy is the periodic message number v 0 to disable 1 to enable 76 4E Ox yy Ov Ow tr Disable Enable command x is the CAN channel 0 or 4 yy is the periodic message number v Q0 to disable 1 to enable w is the location of the counter byte 0 to 7 rr is the increment amount Note If you use the 74 4E form of the command the location and increment amount are left at the values they were at when last written 7 12 6 RC2 Function Description RC2 Rolling Counter 2 Advanced Vehicle Technologies Inc Page 39 AVT 85x Multiple Interface A basic description of the operation of this function follows If you require detailed information contact me The counter is bits 6 3 of Data4 Increment the counter Compute the J1850 CRC of message data bytes 0 to 6 inclusive Write the computed CRC to Data7 The message is then queued for transmission 7 12 6 1 RC2 Function Command Detailed explanation of the RC2 function command 73 4F Ox yy query for status x is the CAN channel 0 or 4 yy is the periodic message number 74 4F Ox yy Ov Disable Enable command x 1s the CAN channel 0 or 4 yy is the periodi
81. deadesevesds da ias 89 T42 OTHER RESPONSES prerie a A RT deauscses ao a nr dista 89 15 CAN MODE OPERATIONAL NOTES sscsscsscsscsscsscssssssssssssssscsscessscssssscssssssscescsscesssssnsssssssssessssosseses 91 16 CAN MODE COMMANDS csscsscssccscessnsscssssssscsscescnssnssnssssssesssscoscessnsssssnssscsssssoscescossossssssssssssesoossosooses 92 16 1 CAN MODE RESPONSES paio otip cdt AAA ld 117 17 VPW MODE COMMANDS ccscssccscssssscssnssnsscssccscsscnssessnssscsssesescessessnssnsssssesssessoscossnssssssssssssessescosooses 150 IEI VPW MODE RESPONSES mohn inona is iia av EA 154 18 KWP STAND ALONE MODE COMMANDS sssesesseoesesoroesesoeoesocoesesoroesesoroesesosoesosocoeseroseesesosossesossesesose 162 18 1 KWP STAND ALONE MODE RESPONSES c cccsesssceesssseeeseeecessneeeesenseecssneesessseeesesaeeeeseaeeeeseseeeeseeeeessaess 167 19 APPENDIX A feccsecussticesietisccsasiisasalisic scesesccccgoscseccesssicatesteccoosssdcacdtsaidcaceseabesdeodsdcestsedseudesdsceseasedsaasansiccetsedsaasagsa 176 20 IA T OAE O ON T E EER 179 21 A d a D DI D E CAE EA A NEA E E EER E E EE T E 182 22 QUES TIONS AA EE T T TE ENI E A OTR OEN E A E E 183 23 BIT MAP FOR IDS MASKS COMMANDS ETC essseesesesoesesesoesesoroesesoeoesesoroesesoeoesosocseseroseesososoesesoseesesose 184 Advanced Vehicle Technologies Inc Page 5 AVT 85x Multiple Interface 1 Introduction This document describes the AVT 852 and AVT 853
82. ds LIN1 Default 02 KWP Default 05 Query for receive ID byte processing status Disable receive ID byte processing all channels Use the maximum frame time to determine the end of a received message Enable receive ID byte processing all channels Default Use the received frame ID byte to determine expected message length Disable Enable ID byte processing for specified channel X channel 5 7 y 0 disable 1 enable Query for P3 time end of receive to start of transmit time Set P3 time to xx milliseconds Default 37 55 Query for receive buffer expiration time Set receive buffer expiration time to xx milliseconds Default 17 23 CANO CAN4 LIN1 KWP LINO 51 40 52 40 00 52 40 01 53 40 Ox Oy Transmit acks query Do not send transmit acks to host all channels Send transmit acks to host all channels Default Disable Enable transmit acks for specified channel x channel 0 4 5 6 7 y 0 disable Advanced Vehicle Technologies Inc Page 97 AVT 85x Multiple Interface CAN mode 1 enable KWP 51 46 Query for W5 the bus idle time prior starting an initialization attempt 53 46 xx yy Set time WS to xx yy milliseconds Default 012D 301 KWP 51 47 Query for FAST initialization low time 52 47 xx Set FAST initialization low time to xx milliseconds Default 19 25 KWP 51 48 Query for FAST initialization high time 52 48 xx Set FAST initialization high time
83. e CAN mode 16 1 CAN Mode Responses High nibble shown in left column bits b7 b4 indicates the Response type Low nibble bits b3 bO indicates how many bytes are to follow LIN1 KWP LINO 02 Oy pp y pp LIN1 KWP LINO O Transmit acknowledgements if enabled CANO CAN4 02 Oy Oz Transmit ack y Channel number 0 4 Z Transmit buffer number CANO CAN4 04 jj kk Oy Oz Transmit ack jj kk time stamp y Channel number 0 4 Z Transmit buffer number Transmit ack Channel number 5 6 7 receive status byte defined below 04 jj kk Oy pp Transmit ack jj kk time stamp y Channel number 5 6 7 pp receive status byte defined below CAN packet received from the network CANO CAN4 Ox jj kk qr tt vv ww zz mm nn x count of bytes to follow jj kk time stamp optional q b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 r channel 0 4 tt vv 11 bit ID right justified Advanced Vehicle Technologies Inc Page 117 AVT 85x Multiple Interface CAN mode tt vv ww zz 29 bit ID right justified mm nn data O LIN packet received from the network LIN1 LINO Ox jj kk Oy pp qq rr ss x count of bytes to follow jj kk time stamp optional y channel 5 7 pp receive status byte defined below qq message ID rr ss message data pp received status byte b7 frame time out b6 from th
84. e mode Retry interval not expired Idle state wait time W5 failure Time out while trying to send 5 baud address Synch byte received with errors Time out waiting for synch byte Synch byte not 55 Key byte 1 received with errors Time out waiting for key byte 1 Key byte 2 received with errors Time out waiting for key byte 2 Time out waiting for W4 Inverted key byte 2 echo received with errors Time out waiting for inverted key byte 2 echo Inverted address byte received with errors Time out waiting for inverted address byte Inverted address byte received in error not equal to expected Unknown return code from initialization attempt 5 baud start bit error 5 baud sending 0 bit error 5 baud sending bit error 5 baud sending stop bit error Inverted key byte 2 echo received in error not equal to expected K line not low during T_low Time out waiting for T_low K line not high during T_high Time out waiting 1 msec at beginning of T_high K line not high during rest of T_high Time out waiting for rest of T_high Time out trying to send received block to host 3 seconds Switch mode error xx specific error byte start address equals 0000 start address equals FFFF start address less than or equal to 8000 start address equal to or greater than BFFF expected checksum equals 0000 expected checksum equals FFFF byte count to sum 0000 Advanced Vehicle Technologies Inc Page 169
85. e ID of expected ATD messages using the 7x 43 command The user specifies the first three bytes of the data field using the 7x 44 command The function is enabled using the 7x 41 command An acceptance ID and associated mask must be set to receive the message of interest The ISO 15765 function must be enabled in either Model or Mode2 using the 7x 26 command If ISO 15765 Model is enabled then the AVT 85x will check the receive IDs of all received messages to locate the one to be ATD read processed If ISO 15765 Mode2 is enabled the Mode2 receive ID must be set to the same ID as the message of interest using the 7x 29 command 7 16 3 Operation After the function is set up the user enables it When the function is enabled the count the minimum and the maximum values for each ATD monitor channel are cleared The user reads the status of one or more ATD monitor channels using the 7x 42 command Each time a channel status is read the AVT 85x reports the number of messages processed the minimum values seen and the maximum value seen since the last time status was read The count the minimum and the maximum are then cleared 8 LIN1 Operations in CAN mode LIN1 is only available when in CAN mode of operation LIN1 operation is completely independent of all other channels LIN 1 operation is controlled by the 52 69 xx command LIN 1 supports LIN revisions 1 2 1 3 2 0 2 1 2 2A To use LIN1 mode enter CAN mode using the E1
86. e transmit ack 02 00 01 receive a message from the network OB 00 07 E3 05 AA BB CC DD EE 00 00 Advanced Vehicle Technologies Inc Page 30 AVT 85x Multiple Interface 7 11 Periodic Message Support As of firmware version 2 4 OA the organization of the periodic messages for both CAN channels has been changed significantly For previous versions of firmware the user should consult a previous version of this manual There are a total of 64 100 decimal periodic messages for CAN mode They can be dynamically allocated across the two CAN channels and two groups for each channel The operator defines and sets up the desired periodic messages enables them and the AVT 85x unit will then transmit those messages at the defined interval without any operator intervention The AVT 83x will not issue a transmit ack when a periodic message is transmitted NOTE The periodic messages for the two LIN channels and the KWP channel have not been changed Refer to the respective sections of this manual for information about those 7 11 1 Summary Of Changes With This Version There are two CAN channels numbered 0 and 4 For each CAN channel there are two groups numbered 1 and 2 The user can allocate the available periodic messages among those four groups Each group must have a minimum of one message assigned That means in the extreme three groups could have assigned one message each and the fourth group would have 61 97 decimal messages
87. ed Initialization attempt error codes Retry interval not expired Idle state wait time W5 failure Time out while trying to send 5 baud address Synch byte received with errors Time out waiting for synch byte Synch byte not 55 Key byte 1 received with errors Time out waiting for key byte 1 Key byte 2 received with errors Time out waiting for key byte 2 Time out waiting for W4 Inverted key byte 2 echo received with errors Time out waiting for inverted key byte 2 echo Inverted address byte received with errors Time out waiting for inverted address byte Inverted address byte received in error not equal to expected Unknown return code from initialization attempt 5 baud start bit error 5 baud sending 0 bit error 5 baud sending 1 bit error 5 baud sending stop bit error Inverted key byte 2 echo received in error not equal to expected K line not low during T_low Time out waiting for T_low K line not high during T_high Time out waiting 1 msec at beginning of T_high K line not high during rest of T_high Time out waiting for rest of T_high Advanced Vehicle Technologies Inc Page 123 1D 1E 1F AVT 85x Multiple Interface CAN mode CANO CAN4 LIN1 KWP LINO 21 5B Time out trying to send received block to host 3 seconds CANO CAN4 22 SF xx CAN ISO 15765 processing error 00 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20
88. ed The user can not or should not be able to move any of the boundaries in a manner that will put them out of order 7 11 5 Message Numbering In The Periodic Message Commands To maintain backward compatibility the following commands 7x 18 periodic message setup 7x 1A periodic message enable 7x 1B periodic message timer count 7x 40 periodic message ARC function 7x 47 periodic message RUP function 7x 4A periodic message CAC function Are subject to the following message numbering rules If channel CANO is specified the message numbers are absolute and the range is 01 to 64 The specified message number directly accesses the table This means all messages can be accessed when CANO is specified If channel CAN4 is specified the message numbers are relative to the CAN4 group setting the 7x 4C command The message number range is dynamic and is 01 to 64 xx 01 where xx is the value from the 72 4C xx command This means only messages assigned to CAN4 can be accessed when CAN4 is specified 7 11 6 Group Operations Each CAN channel 0 and 4 is assigned two groups 1 and 2 of periodic messages The available messages are assigned to the four groups using the 7x 4C and 7x 4D commands Each group can operate as Typel or Type2 Type operations are described below Each message is independently disabled or enabled 7x 1B command Each message has its own ti
89. ed Vehicle Technologies Inc Page 29 AVT 85x Multiple Interface 7 9 3 Summary As can be seen the ID Mask mode the acceptance ID and the masks provide a powerful tool set that gives the user a very flexible means of receiving only those CAN network messages that are of interest However setting the mode acceptance IDs and masks is a non trivial effort that requires some thought and analysis based on the particular application 7 10 Setting up a CAN channel for operation The following sequence is recommended for setting a CAN channel for operations 1 Research and examine the message IDs you want to receive 2 Figure out which ID Mask mode best suits your requirements 3 Enter CAN mode Leave the CAN channel disabled during setup Set the CAN channel baud rate Set the ID Mask mode Set the acceptance ID s Set the mask s Optional Enable the CAN channel NN oe 7 10 1 Communications Example The following example is using CANO 11 bit IDs receive all messages of the form 07 Ex transmit ID 07 80 send one message receive one message enter CAN mode El 99 set CANO to 500 kbaud 73 OA 00 02 set CANO ID Mask mode 4 73 2B 00 04 set CANO IDO 07 E0 75 2A 00 00 07 EO set CANO Mask0 low order 4 bits are don t care 75 2C 00 00 00 OF enable CANO for normal operations 73110001 send a message with 5 bytes in the data field to ID 07 80 08 00 07 80 04 11 22 33 44 receive th
90. ed above 2 enable as described above MMR Mask Match Respond Refer to Section 12 4 MMR function mask query MMR function mask definition x count of bytes to follow yy zz mask bytes MMR function match query MMR function match definition x count of bytes to follow yy zz match bytes MMR function respond query MMR function respond definition x count of bytes to follow yy zz command bytes MMR function status query Disable MMR function Enable MMR function Status query Suppress noise only error responses 25 86 00 00 00 x4 Default Do not suppress any 25 86 rr ss tt vv error responses Advanced Vehicle Technologies Inc Page 101 AVT 85x Multiple Interface CAN mode 51 80 Receive buffer timeout status query 52 80 xx Receive buffer timeout set to xx milliseconds based on last received byte Default FF 255 milliseconds 51 81 Query for LINO bus baud rate 52 81 01 LINO bus baud rate is 2400 baud 52 81 02 LINO bus baud rate is 9600 baud Default 52 81 03 LINO bus baud rate is 19200 baud 54 81 04 xx yy LINO bus baud rate is set by user and equal to 25 000 000 16 xxyy all values shown are decimal Example for LINO bus baud rate 9600 xxyy 00 A3 hex 163 decimal LINO 51 82 Query for maximum frame time in milliseconds 52 52 xx Set maximum frame time to xx milliseconds Default 14 20 LINO 53 83 xx
91. ed as 2 wire CAN V Batt supply Sourced by external equipment vehicle CANO_L Bi directional the DA 15P connector on the AVT 853 board Advanced Vehicle Technologies Inc Page 15 AVT 85x Multiple Interface 5 3 AVT 853 Board Revision D and F 1 CAN4_SWC Bi directional when CAN4 is selected as Single Wire CAN J1850 VPW bus Bi directional CAN4_H Bi directional when CAN4 is selected as 2 wire CAN Ground pins 4 and 5 are connected together internally Ground pins 4 and 5 are connected together internally CANO_H Bi directional K Line LIN1 channel 5 Bi directional KWP channel 6 CAN4_L Bi directional when CAN4 is selected as 2 wire CAN V Batt supply Sourced by external equipment vehicle CANO_L Bi directional LINO Bi directional channel 7 the DA 15P connector on the AVT 853 board 5 4 Power Requirements The AVT 83x board requires a nominal 12 VDC power supply usually provided by the vehicle or any suitable external power supply 5 4 1 Ground Common ground is required between the AVT 85x board and the subject vehicle or module P3 pins 4 and 5 are ground They are connected together internally on the AVT 85x board Only one is needed for normal operations 5 4 2 Input Voltage V Batt the external power supply is applied to P3 pin 13 Note that V Batt is used to power the board It also is the supply for the VPW signal the pull up and reference voltage for K Line c
92. ed in sequence within the group When more than one message in a group is defined and enabled and the group operating mode is set for Type2 operations 7x OC command then those messages will be transmitted in sequence using the interval count of the first message in the group regardless if that first message is used or not For Group messages only message 01 interval count is used The sequential messages are setup All are in the same group The interval count is defined Only use the interval count of the first message in the group The messages are enabled The group is enabled for Type2 operations 10 4 4 1 Type2 Example Want to send three messages in sequence one message every 2 5 seconds Here is a sequence of commands to do this It is assumed that this is from a reset condition 1 KWP mode is only available in CAN mode Enter CAN mode El 99 2 Enable KWP operations 52 69 02 Advanced Vehicle Technologies Inc Page 69 AVT 85x Multiple Interface 3 Set the master timer to 98 30 msec 52 63 01 4 Define periodic message 02 79 18 02 06 AB 48 6B 10 41 0D 5 Enable periodic message 02 74 1A 06 02 O1 6 Note that nothing will be transmitted until the group control is set to Type2 7 Define periodic message 04 79 18 04 06 BC 48 6B 10 41 0D 8 Enable periodic message 04 74 1A 06 04 01 9 Define periodic message 07 7A 18 07 06 D4 48 6B 10 41 OD 67 10 Enable periodic messa
93. efault for CANO and CAN4 1 Enabled for normal operations 2 Enabled for listen only operations CAN4 82 12 0x SWC transceiver mode x 0 Sleep mode 1 High speed mode 2 Wake up mode 3 Normal mode Default NOTE The periodic message setup command 7x 18 has the CAN channel and message number fields reversed as compared to all other commands CANO CAN4 8x 18 vv xy tt vv ww zz mm nn Periodic message setup vv Message number 01 to 20 X b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 Advanced Vehicle Technologies Inc Page 140 AVT 85x Multiple Interface CAN mode y channel 0 4 tt vv 11 bit ID right justified tt vv ww zz 29 bit ID right justified mm nn data field LIN1 LINO 7x 18 vv Oy 0z ww pp qq rr Periodic message setup vv Message number 01 to 0A y channel 5 7 Z 0 slave message 1 master message ww message ID pp qq rr data field KWP 7x 18 vv 06 pp qq rr Periodic message setup vv Message number 01 to 0A 6 channel 6 pp qqtr data field CANO CAN4 LIN1 KWP LINO 84 1A Ox yy Ov Periodic message disable enable status x channel 0 4 5 6 7 yy Message number 01 to 20 or 0A v 0 disabled 1 normal mode enabled 2 slave mode enabled 3 both modes enabled CANO CAN4 LIN1 KWP LINO 84 1B Ox yy vv Periodic message interval count X channel 0 4
94. essage x channel 0 4 yy Periodic message number 01 to 64 v 0 disable 1 enable 76 4E Ox yy Ov Ow rr Set CIB status for periodic message x channel 0 4 yy Periodic message number 01 to 64 v 0 disable 1 enable w location of counter O to 7 rr increment value Note CIB CAN Increment Byte Refer to Section 7 12 5 CANO CAN4 73 4F Ox yy Query for RC2 function status 74 4F Ox yy Ov Set RC2 status for periodic message x channel 0 4 yy Periodic message number 01 to 64 v 0 disable 1 enable Note RC2 Rolling Counter 2 Refer to Section 7 12 6 Advanced Vehicle Technologies Inc Page 115 AVT 85x Multiple Interface CAN mode CANO CAN4 73 51 0x yy Query for RC3 function status 74 51 Ox yy Ov Set RC3 status for periodic message x channel 0 4 yy Periodic message number 01 to 64 v 0 disable 1 enable Note RC3 Rolling Counter 3 Refer to Section 7 12 7 8 9 A B Firmware version BO Request firmware version number B1 01 Request firmware version and sub version numbers C D Operational mode DO Request operational mode report E Mode switch El 33 Switch to VPW mode El 99 Switch to CAN mode El DD Switch to KWP stand alone mode E Model Query and Reset FO Query for model number Fl AS Restart the AVT 85x a form of software reset Advanced Vehicle Technologies Inc Page 116 AVT 85x Multiple Interfac
95. essages are transmitted in sequence within the group When more than one message in a group is defined and enabled and the group operating mode is set for Type2 operations 7x OC command then those messages will be transmitted in sequence using the interval count of the first message in the group regardless if that first message is used or not For Group messages only message 01 interval count is used The sequential messages are setup All are in the same group The interval count is defined Only use the interval count of the first message in the group The messages are enabled The group is enabled for Type2 operations 12 5 4 1 Type2 Example Want to send three messages in sequence one message every 2 5 seconds Here is a sequence of commands to do this It is assumed that this is from a reset condition 1 Enter KWP mode El DD 2 Set the master timer to 98 30 msec 52 63 01 3 Define periodic message 03 78 18 03 48 6B 10 41 OD 23 4 Enable periodic message 03 73 1A 03 01 5 Note that nothing will be transmitted until the group control is set to Type2 6 Define periodic message 05 78 18 05 48 6B 10 41 0D 45 7 Enable periodic message 05 73 1A 05 01 8 Define periodic message 07 78 18 07 48 6B 10 41 OD 67 9 Enable periodic message 07 73 1A 0701 Advanced Vehicle Technologies Inc Page 87 AVT 85x Multiple Interface 10 Set Group1 Type2 interval for a count of 19 decima
96. et data including the message to from the network e Example 1 Turn on the time stamp feature in CAN mode Command 520801 Header byte upper nibble 3 indicates a configuration command Header byte lower nibble 2 indicates two bytes follow 08 is the time stamp command 01 commands enable time stamps e Example 2 Send a block of 348 bytes onto the VPW network Command 12015Crrss tt vv Header byte 12 alternate header format 2 01 5C 348 bytes rr ss tt vv are the 348 message bytes e Example 3 Receive an 18 byte message from the VPW network Response 11 13 rr ss tt vv Header byte 11 alternate header format 1 13 19 bytes follow rr is the receive status byte indicates if any error were detected etc ss tt vv actual message from the network Additional information about the AVT protocol is available at the beginning of the Master Commands and Responses document available from our web site at www AVT HQ com download htm Notes Advanced Vehicle Technologies Inc Page 13 AVT 85x Multiple Interface 5 Vehicle Connection The vehicle or network connector P3 is an industry standard DA 15P connector and requires a DA 15S mate The pin signal assignments for the vehicle network connector are listed here Pins that are Not Listed are reserved The user should not connect anything to those pins PC board revision level is labeled in copper on the bottom of the PC board The revision
97. et periodic message 06 for an interval count of 5 actual interval 0 4915 sec 74 1B 05 06 05 10 Enable periodic message 06 74 1A 05 06 01 11 Enable Group for Typel operations At this point all enabled messages in Group will begin transmission according to their own independent schedule 74 0C 05 01 01 Advanced Vehicle Technologies Inc Page 61 AVT 85x Multiple Interface 8 3 5 Type2 Periodic Message Type2 periodic messages are transmitted in sequence within the group There is only one group in LIN mode When more than one message in a group is defined and enabled and the group operating mode is set for Type2 operations 7x OC command then those messages will be transmitted in sequence using the interval count of the first message in the group regardless if that first message is used or not For Group messages only message 01 interval count is used The sequential messages are set up All are in the same group The interval count is defined Only use the interval count of the first message in the group The messages are enabled The group is enabled for Type2 operations A periodic message designated as a Master will be queued for transmission when the timer expires It will be transmitted as soon as possible after that A periodic message designated as a Slave will be qued for transmission when its timer expires However it will not be transmitted until a matching ID byte is received from the LIN b
98. f bytes to follow 6 channel 6 qq rr ss message data KWP 12 xx yy 06 qq rr ss Xx yy count of bytes to follow 6 channel 6 qq rr ss message data a Reset 210A Reset CANO 21 OB Reset CAN4 Configuration LIN1 KWP LINO 51 01 52 01 00 52 01 01 53 01 0x Oy 53 03 xx yy Request received checksum forwarding status Do not send received checksum to host all channels Default Send received checksum to host all channels Disable Enable received checksum forwarding for specified channel x channel 5 6 7 y 0 disable 1 enable Receive buffer timeout status query Receive buffer timeout set to xx milliseconds from last received byte Default FF 255 msec Request K line baud rate divisor value K line bus baud rate is set by user and equal to 25 000 000 16 xxyy all values shown are decimal Advanced Vehicle Technologies Inc Page 95 AVT 85x Multiple Interface CAN mode Example for K line bus baud rate 10400 xxyy 00 96 hex 150 decimal LIN1 KWP LINO 51 06 Request transmit message echo status 52 06 00 Do not echo transmitted messages all channels Default 5206 01 Echo transmitted messages all channels 53 06 Ox Oy Disable Enable transmit echo for specified channel X channel 5 6 7 y 0 disable 1 enable CANO CAN4 LIN1 KWP LINO 51 08 Time stamp status query 52 08 00 Disable time stamps all channels Default 52 08 01
99. fied Control bits IDE and RTR can be specified 11 bit IDs All ID bits ID10 IDOO can be specified Control bits IDE and RTR can be specified 7 9 2 2 ID Mask mode 4 29 bit IDs ID bits 1D28 ID15 can be specified Control bits IDE and RTR can be specified 11 bitIDs Al ID bits ID1O IDOO can be specified Control bits IDE and RTR can be specified 7 9 2 3 ID Mask mode 8 29 bit IDs ID bits 1D28 ID21 can be specified Control bits can not be specified 11 bit IDs ID bits ID10 IDO3 can be specified Control bits can not be specified 7 9 2 4 ID Mask Example 1 Channel CANO ID Mask mode 2 Acceptance ID and mask are 32 bit values ID and mask 0 Desired message is a 29 bit ID 12 34 56 78 RTR bit is 0 do not receive RTR frames The following commands are used set CANO ID mask mode to 2 73 2B 00 02 set CANO acceptance IDO 29 bit RTR 0 77 2A 80 00 12 34 56 78 set CANO Mask all bits are must match 77 2C 00 00 00 00 00 00 Only network messages with a 29 bit ID 12 34 56 78 and RTR 0 will be received It is assumed the operator has completed all other necessary channel commands 7 9 2 5 ID Mask Example 2 Channel CAN4 ID Mask mode 2 Acceptance ID and mask are 32 bit values Advanced Vehicle Technologies Inc Page 27 AVT 85x Multiple Interface ID and mask 1 Desired messages are 11 bit ID 073x RTR bit is 0 do not receive RTR frames The fol
100. form 2 for long messages blocks 12 xx yy rr ss tt Xx yy is the number of bytes to follow rr ss tt are the message bytes Maximum length is 4112 message bytes 1010 All forms are equal in ascending order Ox or 11 xx or 12 xx yy 5 Configuration 5101 Request received checksum forwarding status 52 01 00 Do not send received checksum to host Default 52 01 01 Send received checksum to host 51 03 Request baud rate divisor value 53 03 xx yy K line bus baud rate is set by user and equal to 25 000 000 16 xxyy all values shown are decimal Example for K line bus baud rate 10400 xxyy 00 96 hex 150 decimal 51 06 Request transmit message echo status 52 06 00 Do not echo transmitted messages Default 52 06 01 Echo transmitted messages Advanced Vehicle Technologies Inc Page 162 51 08 52 08 00 52 08 01 51 13 52 13 xx 51 19 52 19 00 52 1901 51 24 52 24 00 52 24 01 51 27 52 27 xx 512A 52 2A xx 51 2B 52 2B xx 51 40 52 40 00 52 4001 51 46 53 46 xx yy 51 47 52 47 xx AVT 85x Multiple Interface KWP Stand Alone mode Request time stamp status Disable time stamps Default Enable time stamps The time stamp is millisecond resolution Query for 5 baud address Set 5 baud address to xx Default 33 Query for transmit checksum status Do not append a checksum to a frame transmitted to the K line Append a checks
101. formatted and then transmitted onto the CAN network Refer to the beginning of Section 16 for information about formatting a transmit command All other transmit commands are transmitted onto the CAN network without modification 7 13 8 Transmit Operations General Notes This section only applies to transmit commands messages that are to be reformatted to ISO 15765 prior to being transmitted onto the CAN network as described in the previous section The AVT 83x will handle everything required to transmit a message to the network conforming to the ISO 15765 protocol standard The user only has to provide message ID and length Advanced Vehicle Technologies Inc Page 44 AVT 85x Multiple Interface AE byte only if AE is used and the function is enabled all of the data A properly constructed transmit command contains all of that information If any problems are encountered one or more error responses will be sent to the host When ISO 15765 processing is not used The minimum number of data bytes in a CAN message is 0 The maximum number of data bytes in a CAN message is 8 The transmit command format Ox will always work The alternate transmit command formats 11 xx and 12 xx yy are available and will work When ISO 15765 processing is specified or enabled The minimum number of data bytes in a CAN message is 0 The maximum number of data bytes in a CAN message is 4095 The transmit format Ox may not work
102. frame 1 RTR true remote transmit request b5 0 b4 0 transmit message as is 1 format message for ISO 15765 y channel 0 4 tt vv 11 bit ID right justified tt vv ww zz 29 bit ID right justified mm nn data CANO CAN4 12 xx yy jj kk qr tt vv ww zz mm mn xx yy count of bytes to follow jj kk time stamp optional q b7 IDE 0 11 bit ID l 29 bit ID b6 RTR Advanced Vehicle Technologies Inc Page 119 AVT 85x Multiple Interface CAN mode 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 transmit message as is 1 reformat message for ISO 15765 r channel 0 4 tt vv 11 bit ID right justified tt vv ww zz 29 bit ID right justified mm nn data 1 LIN packet received from the network alternate header formats LIN1 LINO 11 xx jj kk Oy pp qq rr ss XX count of bytes to follow jj kk time stamp optional y channel 5 7 pp receive status byte defined below qq message ID rr ss message data optional LIN1 LINO 12 xx yy jj kk Oz pp qq rr ss Xx yy count of bytes to follow jj kk time stamp optional Zz channel 5 7 pp receive status byte defined below qq message ID rr ss message data optional pp received status byte b7 frame time out b6 from this node b5 receive message too long b4 buffer closed by break b3 buffer opened without break b2 synch byte error bl receive message too short or act
103. ge Advanced Vehicle Technologies Inc Page 63 AVT 85x Multiple Interface e 7Txl1A Periodic message disable enable e 7x 1B Periodic message interval e 7x 1C Disable all periodic messages Disable all groups 8 4 Periodic Message Special Function There is one special function available for all LIN periodic messages operating in Typel and Type2 modes Not available for Slave Response messages The special function was developed specifically at customer request It is described below If this function is enabled or not the data field of a periodic message can be changed on the fly You do NOT need to disable the message or the function to change anything 8 4 1 LIN Frame Data Definition Each LIN frame can contain up to 8 data bytes In the following discussion Data0 is the first data byte in the LIN frame Likewise Data is the last byte of the LIN frame Within a byte the bits are numbered from 0 least significant bit to 7 most significant 8 4 2 Counter0 Function When enabled for a specific periodic message for a specific LIN channel the following action takes place each time the message is queued for transmission Bits 1 0 of Data2 are incremented In other words the lowest two bits of Data2 form a rolling counter that increments and rolls over For example 00 01 10 11 00 8 4 2 1 Counter0 Function Command Refer to the 7x 49 command in Section 16 for detailed information about the command format
104. ge 07 74 1A 06 07 O1 11 Set Group1 Type2 interval for a count of 19 decimal 25 the actual interval 2 4575 sec must use message 01 timer 74 1B 06 01 19 12 Enable Group1 for Type2 operations At this point all enabled messages in Group1 will begin transmitting in sequence one message every 2 4575 seconds 74 OC 06 01 02 10 4 5 Periodic Message Commands All commands are listed in Section 16 A brief summary is provided here e 5x63 Timer interval e 7x0C Periodic message group operation control disabled Typel Type2 e 7x 18 Define a periodic message e 7x 1A Periodic message disable enable e 7x 1B Periodic message interval e 7x1C Disable all periodic messages Disable all groups 11 VPW Mode Enter VPW mode with the E1 33 command The report 91 07 indicates the AVT 85x has entered VPW operations The AVT 85x supports J1850 VPW operations in both 1X and 4X speed modes It also supports GM block transfers of up to 4112 bytes Advanced Vehicle Technologies Inc Page 70 AVT 85x Multiple Interface When VPW mode is first entered the following defaults are set e VPW operations are enabled e 1X mode is enabled e Receive network messages are enabled e Match bytes are disabled e Transmit acks are enabled and consist of the bytes 01 60 11 1 Shunt JP3 Shunt JP3 only exists on revision B1 boards It was removed from later board revisions AVT 853 revision B1 boards only shunt JP3 con
105. ge is set up The interval count is defined The message is enabled The group is enabled for Typel operations 10 4 3 1 Typel Example Want to send two messages automatically and independently One message about every 500 msec The other message about every 1 second Here is a sequence of commands to do this It is assumed that this is from a reset condition Note KWP is channel 06 1 KWP mode is only available in CAN mode Enter CAN mode El 99 2 Enable KWP operations 52 69 02 3 Set the master timer to 98 30 msec 52 63 01 Advanced Vehicle Technologies Inc Page 68 AVT 85x Multiple Interface 4 Define periodic message 01 the message is 25 68 6A Fl 3F 78 18 O1 06 25 68 6A Fl 3F 5 Set periodic message 01 for an interval count of 10 actual interval 0 983 sec 74 1B 06 01 OA 6 Enable periodic message 01 74 1A 06 01 01 7 Note that nothing will be transmitted until the group control is set to Typel 8 Define periodic message 03 the message is 37 68 6A Fl 01 78 18 03 06 37 68 6A Fl 01 9 Set periodic message 03 for an interval count of 5 actual interval 0 4915 sec 74 1B 06 03 05 10 Enable periodic message 03 74 1A 06 03 01 11 Enable Group1 for Typel operations At this point all enabled messages in Group will begin transmission according to their own independent schedule 74 OC 06 01 01 10 4 4 Type2 Periodic Messages Type2 periodic messages are transmitt
106. ge number 01 to 0A 74 49 Oy zz Ov LIN Counter0 function command y channel 5 7 ZZ Message number 01 to 0A v 0 disabled 1 enabled 7x 48 mm mn Test the J1850 CRC function This function is for testing only It otherwise does nothing CANO CAN4 73 4A Ox yy Query for CAC function status 74 4A Ox yy Oz Set CAC status for periodic message x channel 0 4 yy Periodic message number 01 to 64 Z 0 disable 1 enable 75 4A Ox yy Oz rr Set CAC status for periodic message X channel 0 4 yy Periodic message number 01 to 64 Z 0 disable 1 enable rr constant value used in checksum computation Note CAC Counter and Checksum Refer to Section 7 12 4 CANO CAN4 Advanced Vehicle Technologies Inc Page 114 AVT 85x Multiple Interface CAN mode 71 4C Query for first periodic message assigned to CAN4 group 1 72 4C yy Set yy to be the first periodic message assigned to CAN4 group 1 Default 21 Minimum 03 Maximum 63 CANO CAN4 71 4D Query for first periodic messages assigned to CANO and CAN4 group 2 72 4D Ox Query for first periodic message assigned to CANx group 1 73 4D Ox yy Set first periodic message assigned to CANx group 1 to be message yy Default CANO 11 Default CAN4 31 CANO Minimum 02 CANO Maximum 62 CAN4 Minimum 04 CAN4 Maximum 64 CANO CAN4 73 4E Ox yy Query for CIB function status 74 4E Ox yy Ov Set CIB status for periodic m
107. ghput The default baud rate of the internal serial link is 230 4 kbaud That is usually sufficient for most applications If necessary that baud rate can be increased to a maximum of 921 6 kbaud Below is a procedure to change the AVT 853 internal baud rate Here is a procedure on how to raise the internal baud rate of the AVT 853 interface above the factory default value of 230 4 kbaud Remember the internal baud rate has nothing to do with any of the vehicle networks It only affects how the microcontroller on the AVT 853 board communicates with the XPort device on the board Both have to set to the same baud rate 1 Using the Hex Terminal or similar software enter an operating mode such as CAN The switch to CAN mode command is El 99 2 Change the internal baud rate of the microcontroller to what you desire using the 52 67 xx command 3 Wait 2 seconds 4 Send the reset command F1 A5 There will not be any response 5 In order to set the XPort baud rate to a rate above 230 4 kbaud you have to first set the XPort CPU to High Performance mode 6 Use a browser go to the XPort page For example using the default IP address of the AVT 853 enter this on the address line of your browser http 192 168 1 70 7 There is no User Name or Password for the XPort Do not enter anything Select OK on the login page 8 On the left select Server 9 Set the CPU Performance Mode to High Advanced Vehicle Technologies Inc
108. hat first message is used or not For Group messages only message 01 interval count is used The sequential messages are setup All are in the same group The interval count is defined Only use the interval count of the first message in the group The messages are enabled The group is enabled for Type2 operations 11 5 4 1 Type2 Example Want to send three messages in sequence one message every 2 5 seconds Here is a sequence of commands to do this It is assumed that this is from a reset condition 1 Enter VPW mode El 33 2 Set the master timer to 98 30 msec 52 63 01 3 Define periodic message 03 78 18 03 48 6B 10 41 OD 23 4 Enable periodic message 03 73 1A 03 01 Note that nothing will be transmitted until the group control is set to Type2 6 Define periodic message 05 78 18 05 48 6B 10 41 OD 45 7 Enable periodic message 05 73 1A 05 01 8 Define periodic message 07 78 18 07 48 6B 10 41 OD 67 9 Enable periodic message 07 73 1A 07 01 10 Set Group1 Type2 interval for a count of 19 decimal 25 the actual interval 2 4575 sec must use message 01 timer 73 1B 01 19 11 Enable Group for Type2 operations At this point all enabled messages in Group will begin transmitting in sequence one message every 2 4575 seconds 73 OC 01 02 Advanced Vehicle Technologies Inc Page 78 AVT 85x Multiple Interface 11 5 5 Periodic Message Commands All commands are listed in
109. he message against the received checksum discard the checksum byte and then forward the received message to the host computer The user can disable or enable sending the received checksum to the host The AVT 85x is capable of transmitting K line network messages up to the full length of 259 bytes The AVT 85x will compute and append the checksum byte unless the user disables that function Messages to and from the network are of the form 0x yy rr ss tt vv where x is the count of bytes to follow Refer to Sections 4 3 18 and 18 1 for detailed information about the format of messages to and from the network 12 2 1 Communications Example This example is to enter KWP mode send a message to the network receive a message from the network enter KWP mode El DD send a message to the network OBD II RPM request 05 68 6A Fl 01 OC explanation O indicates to the network 5 is the count of bytes to follow 68 is the priority type byte 6A is the destination address functional in this case F1 is the source address an OBD II tool the AVT 85x in this case 3 01 is the mode OC is the PID which is a request for engine RPM receive the transmit ack 01 60 i 0 indicates from the network 1 count of bytes to follow all messages from the network have a receive status byte immediately after the header byte 60 is the receive status byte refer to Section 17 1 for the bit map of the receive status
110. he message is enabled The group is enabled for Typel operations A periodic message designated as a Master will be queued for transmission when its timer expires It will be transmitted as soon as possible after that A periodic message designated as a Slave will be qued for transmission when its timer expires However 1t will not be transmitted until a matching ID byte is received from the LIN bus The message will stay queued until then and thus prevent other periodic messages from being transmitted 8 3 4 1 Typel Example Want to send two messages automatically and independently One message about every 500 msec The other message about every 1 second Here is a sequence of commands to do this It is assumed that this is from a reset condition Note LIN is channel 05 1 LIN mode is only available in CAN mode Enter CAN mode El 99 2 Enable LIN operations this is the default condition 52 69 01 3 Set the master timer to 98 30 msec 52 63 01 4 Define periodic message 01 the message is Master ID 25 data 68 6A Fl 3F 79 18 01 05 01 25 68 6A Fl 3F 5 Set periodic message 01 for an interval count of 10 actual interval 0 983 sec 74 1B 05 01 OA 6 Enable periodic message 01 74 1A 05 01 01 7 Note that nothing will be transmitted until the group control is set to Typel 8 Define periodic message 06 the message is Slave ID 37 data 68 6A Fl 01 79 18 06 05 00 37 68 6A Fl 01 9 S
111. header byte indicates from the network 2 bytes follow 05 channel 5 LIN 40 status byte bit 5 set indicates from this node When time stamps are enabled a transmit ack example is 04 xx yy 05 60 04 header byte indicates from the network 4 bytes follow xx yy time stamp xx is the high byte yy is the low byte 05 channel 5 LIN 40 status byte bit 5 set indicates from this node 8 3 Periodic Message Support When LIN mode is active the AVT 85x has the ability to transmit as many as ten 0A messages automatically The operator defines and sets up the desired periodic messages enables them and the AVT 83x unit will then transmit those messages at the defined interval without any operator intervention The AVT 85x will not generate a transmit ack when a periodic message is transmitted unless the transmit acknowledgement or echo function is enabled 5x 6F command Advanced Vehicle Technologies Inc Page 59 AVT 85x Multiple Interface 8 3 1 Modes of Operation LIN periodic messages are defined as either Master or Slave messages specified by bitO of the fifth byte in the 7x 18 periodic message setup command A periodic message designated as Master can operate as Typel or Type2 using the 7x 1A command These modes are described in Sections 8 3 4 and 8 3 5 below A periodic message designated as Slave can operate as Typel or Type2 It may also be enabled as a slave response message These modes are described in Section
112. hen the byte count of the response not including the header byte is 0F or less Refer to Section 16 1 for a description of all bytes in the packet 7 8 5 2 Receive Response Format 11 xx The 11 xx form of the receive response is used when the byte count of the response not including the header byte is FF or less Refer to Section 16 1 for a description of all bytes in the packet 7 8 5 3 Format 12 xx yy The 12 xx yy form of the receive response is used when the byte count of the response not including the header byte is FFFF or less Refer to Section 16 1 for a description of all bytes in the packet 7 8 6 Time Stamps Time stamps for both transmit acknowledgement and received messages can be disabled or enabled using the 5x 08 command The time stamp is a two byte value immediately after the packet header byte but before the CAN channel number In CAN mode there are two sources for the time stamp The 52 08 00 command disables all time stamps The 53 08 Ox 00 command disables time stamps for channel x The 52 08 01 command enables time stamps for all channels The 53 08 Ox 01 command enables time stamps for channel x The time stamp clock is separate for each CAN channel and separate from the other channels The time stamp is a 16 bit free running counter that is driven by the baud clock for that CAN channel In other words the time stamp is the inverse of the CAN channel baud rate Example 1 Baud rate is 500 kbaud The
113. i Sadao AR eed sak A tt A A tt 56 8 LIN1 OPERATIONS IN CAN MODE eococoncoconconosnonconosconconosnonconononconononcononconconononconoronconosnonconosronnonoronconosoonos 56 8 1 SHUNT A O OR 56 8 2 COMMUNICATIONS acai o er R aA REAA E E EE E AE 56 8 2 Message Lenta dicte A EAE REA S a A Aids sedas 57 8 2 2 CHECKSUM ironi ina AA ARA AAA ARA 57 6 2 3 LD Byt On ly Message svc a a a r a T a Ea a a EO E S a a AEE ESE este 57 8 24 Communications Example iresi reseed ta di lit 58 Advanced Vehicle Technologies Inc AVT 85x Multiple Interface 8 2 3 Tim SAMP Aba a 58 8 3 PERIODIC MESSAGE SUPPORT oann a IA A AA Ara 59 OSL MOdes O Operational ici 60 8 3 2 Organization of Periodic Messages oneei eo EEES EERO S E N E AN 60 8 3 3 Periodic Message Master Timer iii dd e EE E S SEA aE A aii 60 8 3 4 Typel Periodic Messdgeninn iii ii 60 OS Lype2asPeriodioMessar ta 62 8 310 Slave Response Messages all id iii 63 8 3 7 Periodic Message COMMANAS 3 siiccssiisecescsscsuaevescoscsevcensyeeviebentebechaceuteuuessutoubsequbdvacsscuaseeaeuyanaeveny daa nn nados asp 63 8 4 PERIODIC MESSAGE SPECIAL FUNCTION rieri ir rerne AANE N ETE EA E E AT A R 64 SAT LIN Frame Data Definicion to enin hon Stas caus EE E E E R a ia 64 GAZ SCOUNLETO MUNCH OM cx erae ae a A A ras 64 8 5 ABIC SUPPORT oreren dica oa Ae E AA AE ER ETES eA aS e ANE aid A SEERE E 64 8 6 COMMANDS AND RESPONSES araon uroda tii a r ra E a R Ea O RE 64 9 LINO OPERATIONS IN CAN MODE eooco
114. icates from the network 1 count of bytes to follow all messages from the network have a receive status byte immediately after the header byte 60 is the receive status byte A refer to Section 17 1 for the bit map of the receive status byte receive a message from the network 08 00 48 6B 10 41 0C xx yy explanation 0 indicates from the network 8 is the count of bytes to follow 00 is the receive status byte and indicates no errors 48 is the priority type byte 6B is the destination address functional in this case a 10 is the source address engine ECU 41 is a response to a mode 1 request OC is the PID Xx yy is the engine RPM Note that sending or receiving blocks of data are handled using the alternate header formats Refer to Section 4 3 and Section 17 for detailed information 11 2 2 Time Stamp Time stamps for both the transmit ack and received messages can be disabled or enabled using the 5x 08 command Transmit ack the time stamp is a two byte value immediately after the packet header byte s but before the status byte Receive message the time stamp is a two byte value immediately after the packet header byte s but before the status byte The 52 08 00 command disables all time stamps The 52 08 01 command enables time stamps where the time stamp is a 16 bit free running counter with 1 millisecond resolution The time stamp rolls over at FFFF 11 2 2 1 Receive Message Examples
115. ice Advanced Vehicle Technologies Inc Page 121 AVT 85x Multiple Interface CAN mode b5 Transmission successful b4 Lost arbitration b3 b2 bl b0 Checksum error Error Responses 21 OE Transmit command too long 22 34 xx Command time out xx header byte of offending command Caused by an incomplete command or a command that did not complete execution in allotted time 0 5 seconds 21 33 Time out reading bytes from 12 xx yy command less than 12 bytes 3 seconds LIN1 ABIC 24 40 rr ss tt rr b7 received byte not equal transmitted b6 received command not equal transmitted b5 received pid not equal transmitted b4 received sync not equal transmitted b3 transmitted state unknown b2 unknown command byte bl O b0 transmitted processing return code error SS b7 0 b6 state watchdog timeout b5 echo error in tm6 b4 echo error in tm6 b3 transmit length error in tm6 b2 state error in tm6 bl state error in tm4 b0 state error in tm2 tt b7 0 Advanced Vehicle Technologies Inc Page 122 b6 b5 b4 b3 b2 bl bO AVT 85x Multiple Interface CAN mode Oooog timeout waiting for strobe zero length receive message LIN1 KWP LINO 22 4A xx KWP 22 54 xx XX 00 01 02 03 04 05 06 07 08 09 OA OB OC OD OE OF 10 11 12 13 14 15 16 17 18 19 1A 1B 1C Message of length 1 received xx the one byte that was receiv
116. icle Technologies Inc Page 42 AVT 85x Multiple Interface Error checking is implemented and the host is notified when an error is encountered A list of the error codes is provided in the Responses Section 16 1 7 13 3 1 Flow Control Frame During receive operations the padding command 7x 27 only affects transmitted Flow Control frames associated with receiving a multi frame message The 7x 27 command allows the user to change the value of the pad byte if enabled Some networks use FF and others use 00 as the pad byte The user is free to specify any byte value Some networks require the Flow Control frame Separation Time to have a specific value Many networks will accept the default Separation Time parameter The user can change the Flow Control separation time using the 7x OE command If a received Flow Control frame has a separation time of zero or an invalid time then a default value of 2 milliseconds is used for transmitted frames This value can be changed using the 7x 34 command 7 13 4 Receive Operations Mode0 No frames received from the CAN network are subject to ISO 15765 processing All frames are passed directly to the host without modification 7 13 5 Receive Operations Model All frames received from the CAN bus are processed according to the rules of ISO 15765 The usual CAN frame ID filtering function applies The PCI byte is stripped from the data field and decoded If the CAN message is a single frame
117. ied acceptance ID y channel 0 4 Z Acceptance ID number from 00 on up Number depends on ID Mask mode 7x 2A xy Oz rr ss tt vv Set acceptance ID x b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 y channel 0 4 Z Acceptance ID number from 00 on up Number depends on ID Mask mode rr Acceptance ID value when ID Mask mode 8 rr ss Acceptance ID value when ID Mask mode 4 rr ss Acceptance ID value when ID Mask mode 2 and IDE 0 11 bit rr ss tt vv Acceptance ID value when ID Mask mode 2 and IDE 1 29 bit CANO CAN4 712B ID Mask mode configuration query for all CAN channels 72 2B Oy ID Mask mode query for CAN channel y channel 0 4 73 2B Oy Oz Set ID Mask mode for CAN channel y channel 0 4 Z 2 Two 32 bit IDs and masks 4 Four 16 bit IDs and masks 8 Eight 8 bit IDs and masks CANO CAN4 71 2C Report all masks for all CAN channels 72 2C Ox Report all masks for CAN channel y channel 0 4 73 2C Ox Oz Report specified mask y channel 0 4 Z Mask number from 00 on up Number depends on ID Mask mode 7x 2C xy Oz rr ss tt vv Set mask x b7 IDE bit 0 must match Advanced Vehicle Technologies Inc Page 108 CANO CAN4 73 2D Ox Oy 74 2D Ox Oy zz CANO CAN4 73 2E Ox Oy 74 2E Ox Oy zz CANO CAN4 71 30 72 30 Oy 73 30 Oy Oz AVT 85x Multiple Interface CAN mode 1 don t care b6 RTR bi
118. inc AV ADVANCED VEHICLE TECHNOLOGIES Inc AVT 852 amp 853 Multiple Interface Volume 1 CANO 2 wire high speed CAN4 2 wire high speed or Single Wire CAN SWC CAN ISO 15765 support both CAN channels LIN1 LIN or K Line communications LINO LIN communications J1850 VPW optional AVT 852 PC board revision A1 AVT 853 PC board revision F Firmware Version 2 5 OD 18 July 2015 1509 Manor View Road Davidsonville MD 21035 USA 1 410 798 4038 voice support AVT HQ com www AVT HQ com AVT 85x Multiple Interface Table of Contents Te INTRODUCTION AA NO 6 1 1 AV T 89X NOTE ta a 6 1 2 HARDWARE coi ia iii 6 1 3 EMRMWAR E ol iendala tele EE 6 LIL Determining Firmware Versi On Ratio d 7 1 3 2 Determining Model Number conoci riii inc 7 1 3 3 Determining Board Revision Level oonnninnnnninnninncnnnnnnnnnnncnnnonnnonnnonn nena nono EE none rn anna earn a nan r nro n Ns 7 COMMANDS AND RESPONSES innii e a a a a A a AE A TI A R E O ERENS 7 27 GLOSSARY CA ON 7 3 IAN IN AAA AN 8 4 HOST COMPUTER CONNECTION divcsccssercsessssesessssovesonssennsecensseseessdaedsvansseoscsssessentvenasevsntesdnrevenssesetsesbecseasesoneseesd 9 4 1 ANVT 852 CONNECTION TO HOST COMPUTER umd 9 4 2 AVT 853 CONNECTION TO HOST COMPUTER itia eiea e PEE aS AE NE EEE O S 9 BDL ETRETNEES CUP A AAA RAR 10 4 2 2 Ethernet IP Addressing Modes lt a 11 42 35 Autol P AGALCSSIIG io ii it ti la dad tddi ee 12 4 3 PACKET COMM
119. independently of each other When Typel operations are enabled each enabled message in that group operates according to its own interval count The message is set up The interval count is defined The message is enabled The group is enabled for Typel operations 12 5 3 1 Typel Example Want to send two messages automatically and independently One message about every 500 msec The other message about every 1 second Here is a sequence of commands to do this It is assumed that this is from a reset condition 1 Enter KWP mode El DD 2 Set the master timer to 98 30 msec 52 63 01 3 Define periodic message 01 The message is 68 6A Fl 3F 76 18 01 68 6A Fl 3F 4 Set periodic message 01 for an interval count of 10 actual interval 0 983 sec 73 1B 010A 5 Enable periodic message 01 73 1A 01 01 6 Note that nothing will be transmitted until the group control is set to Typel 7 Define periodic message 06 The message is 68 6A F1 01 OC 77 18 06 68 6A Fl 01 0C 8 Set periodic message 06 for an interval count of 5 actual interval 0 4915 sec 73 1B 06 05 Advanced Vehicle Technologies Inc Page 86 AVT 85x Multiple Interface 9 Enable periodic message 06 73 1A 0601 10 Enable Group1 for Typel operations At this point all enabled messages in Group will begin transmission according to their own independent schedule 73 OC 01 01 12 5 4 Type2 Periodic Messages Type2 periodic m
120. is node b5 receive message too long b4 buffer closed by break b3 buffer opened without break b2 synch byte error bl receive message too short or actual length not equal to expected length b0 checksum error O ABIC packet received from the network LIN1 Ox jj kk 15 pp qq rr ss tt x count of bytes to follow jj kk time stamp optional 15 ABIC channel 5 pp receive status byte defined just below qq PID protected ID rr CMD ABIC module command ss tt message bytes pp received status byte b7 frame time out b6 from this node b5 receive message too long b4 buffer closed by break b3 buffer opened without break b2 synch byte error bl receive message too short or actual length not equal to expected length b0 checksum error Advanced Vehicle Technologies Inc Page 118 AVT 85x Multiple Interface CAN mode O KWP packet received from the network KWP Ox jj kk 06 pp qq rr ss x count of bytes to follow jj kk time stamp optional 6 channel 6 pp receive status byte defined below qq rr ss message data pp received status byte b7 b6 From this device b5 Transmission successful b4 Lost arbitration b3 b2 bl bO Checksum error 1 CAN packet received from the network alternate header formats CANO CAN4 11 xx jj kk xy tt vv ww zz mmnn XX count of bytes to follow jj kk time stamp optional x b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal
121. isable padding 73 27 04 00 7 Disable AE 73 30 04 00 8 Set Flow Control ID 02 46 8B DE 76 OF 84 02 46 8B DF 9 Set Flow Control separation time OA is the default value change it only if the network requires a different value 73 OE 04 0A 10 Enable ISO 15765 Model processing for CAN4 73 26 04 01 11 Set CAN4 transceiver to normal mode 72 1203 12 Enable CAN4 operations 731104 01 13 Transmit a message with ID 02 46 8B DF and 18 decimal bytes of data 11 17 00 02 46 8B DF 01 02 03 04 05 06 07 08 09 10 11 12 13 1415 16 17 18 Note that the alternate format header 11 xx had to be used in this case At this point the AVT 83x will receive and transmit ISO 15765 formatted messages to from the downstream module across the CAN network 7 13 10 ISO 15765 Questions and Engineering Support Some may find the ISO 15765 protocol and its implementation in the AVT 83x to be confusing and difficult It needn t be Contact the factory if you have questions we will do our best to help 7 14 Auto Block Transmit A special mode of operation known as Auto Block Transmit abbreviated as ABX is available for the AVT 85x in CAN mode The ABX mode was primarily intended for fully automated operations but can be adapted to a number of CAN applications The contents of Manual Supplement 85x_s01a pdf is included here 7 14 1 Operation Description The ABX function gives an AVT 85x unit the capability of transmitting a sequence
122. itialized all ABX operation parameters using the previously described commands Note that the function can be invoked without initializing the stored parameters it would work and likely be rather ugly 713A query for operational status both CAN channels 72 3A Ox query for operational status for CAN channel x 73 3A Ox Oy set CAN channel x operation to value y Examples query for status of both CAN channels send this query 713A receive these responses 83 3A 00 00 CANO is disabled 83 3A 04 00 CAN4 is disabled query for status of CAN4 send this query 72 3A 04 receive this response 83 3A 04 00 CAN4 is disabled enable the ABX function for channel CANO send this command 73 3A 0001 receive this response 83 3A 00 01 CANO is enabled Advanced Vehicle Technologies Inc Page 53 7 14 4 AVT 85x Multiple Interface Note The ABX function using CANO will begin immediately when the transfer completes receive this response 83 3A 00 00 CANO is disabled to disable an ABX operation that is in progress on CANO issue this command 73 3A 00 00 Note The ABX function will be halted immediately It can be restarted but it can not be resumed Operation Example I want to set the following ABX parameters set CAN ID 03 57 11 bit no RTR separation time to 20 milliseconds store some data total data count to 100 bytes Then I will set the AVT 85x unit as noted here and transmit the block CANO at 500 kbaud do
123. ivotucdnn nietas tunes dida dt E E ra RT Da Aida 82 12 3 1 CARB Mode Initialization lt lt dias 83 12 3 2 FAST muinalizai onetan ata a tit tit O E 83 12 4 MASK MATCH RESPOND FUNCTION 0 ccccecssscssscssssscseeseesscssesssesssesseesessecssceesssassussesssssessesseessasesessseusseeseseeenes 84 12 4 1 Operational OVerview nt a 84 12 4 2 Command Summary sri a a iE E ETA EA E A E AR N e 84 12 4 3 EXAMPLE E O E AA A ra 85 12 5 PERIODIC MESSAGE SUPPORT sicisei arne inete iaro ie a a DLA a daba adici n 85 12 5 1 Organization of Periodic Messages norria E E aE E E O R O e 85 12 5 2 Periodic Message Master Timer sccccccccsscccesssssscccessessscceescecssceesseecsscecsscecssceceseeesaeeeeaeessaeeesaeessaeeesaeesseeesaes 86 12 5 3 Typer Periodic MESA TE IN dat ERNE E 86 12 5 4 Eype2 Periodic Messages ioiii en na aa EEREN E A 87 12 5 5 Periodic Message Commands aero nenna E sy EE snes oases E EA E E E Aedes ade a 88 13 AVT 85X FIELD REFLASHING ccscssccsssssssssssssscsscsscescnsssssnsssssssssescescessssssssssssessssoscossnsssssnsssessescosoosooss 88 13 1 AVT 85x REFLASHING AVT PROVIDED APPLICATION occoccocconconcnnncnnonnnnnonncnncnnannnonncnnonnonnonnnnncnn nana nn nro nonncnnones 88 14 IDLE MODE COMMANDG cscsscsscsscsscssssssnssscsessccscsscnssossnsssssscssescoscoscossnssssssssscssssoscossnsssssssssessessoscoseoss 89 14 1 IDLE MODE RESPONSES 52105 sexceus ctndsnsstestesbecre dong andencavectesteestestedtssues
124. l 10 will be passed to the host The host will receive this packet from the AVT 85x OB 00 E5 F2 10 3B 4C 5D 6E 7F Al B2 11 4 Mask Match Respond Function The Mask Match Respond MMR function allows the user to define a message mask and match byte sequence If the match is successful the Response is queued for immediate execution An operational overview a summary of the commands and an example follow 11 4 1 Operational Overview This function operates on all network messages and includes both received and transmitted messages relative to the AVT 85x interface and the VPW network The message filtering function described in the previous Section does NOT affect the operation of this function A VPW network message passes through the AVT 85x If the length of the message is equal to or longer than the defined Mask Match sequence length the message is checked Starting with the first byte of the message each message byte is logically ANDed with the corresponding mask byte The result of that operation is then compared to the corresponding match byte If there is a match the test continues until all defined mask and match bytes are processed If there is a no match the test terminates immediately If the test is successful the respond command is queued for immediate processing The Respond is any command that can be issued by the user host computer 11 4 2 Command Summary Command 5x 75 Define the mask Default is FF Co
125. l 25 the actual interval 2 4575 sec must use message 01 timer 731B 01 19 11 Enable Group1 for Type2 operations At this point all enabled messages in Group1 will begin transmitting in sequence one message every 2 4575 seconds 73 0C 01 02 12 5 5 Periodic Message Commands All commands are listed in Section 18 A brief summary is provided here e 5x63 Timer interval e 7x 0C Periodic message group operation control disabled Typel Type2 e 7x 18 Define a periodic message e 7x 1A Periodic message disable enable e 7x 1B Periodic message interval e 7x 1C Disable all periodic messages Disable all groups 13 AVT 85x Field reFLASHing All AVT 85x units can be reFLASHed in the field to permit updating the unit operating firmware 13 1 AVT 85x reFLASHing AVT Provided Application AVT can provide stand alone applications for a host PC to reFLASH an AVT 852 or 853 unit Host operating systems supported are WIN98 WIN NT WIN XP WIN2000 The reFLASH applications are called e AVT 852_reFLASH3 exe e AVT 853_reFLASH3 exe They are supplied in a zip file Simply unzip the file into a directory or folder of your choice There is nothing else to install and the registry is not changed Double click on the executable exe to launch the application Running the application should be self explanatory The AVT 85x firmware is likely to be released with the following naming convention The XX in the name will be the version
126. level on the top of the board in the white block is the board configuration 5 1 AVT 852 Board Revision A1 ping Desorption Jotas CAN4_SWC Bi directional only when CAN4 is configured as Single Wire CAN AA This signal goes through JP1 41850 VPW bus Bi directional ATT ar CAN4_H Bi directional E when CAN4 is configured as 2 wire CAN Ground pins 4 and 5 are connected together internally Ground pins 4 and 5 are connected together internally CANOH H Bidirectional Bidirectional a Line Bi directional LIN channel 5 we channel a CAN4_L Bi directional only when CANA is configured as 2 wire CAN V Batt supply Sourced by external equipment vehicle CANO_L Bi directional the DA 15P connector on the AVT 852 board This signal goes through JP2 Advanced Vehicle Technologies Inc Page 14 AVT 85x Multiple Interface 5 2 AVT 853 Board Revision B1 Cens Dese Jas o CAN4_SWC Bi directional only when CAN4 is configured as Single Wire CAN A This signal goes through JP1 41850 VPW bus Bi directional IT ree CAN4_H Bi directional o when CAN4 is configured as 2 wire CAN Ground pins 4 and 5 are connected together internally Ground pins 4 and 5 are connected together internally CANOH H Bi directional K EE Bi directional LIN channel 5 ins nai Bae channel la This signal goes through JP2 CAN4_L Bi directional only when CAN4 is configur
127. ll likely respond with a 22 54 xx error code and then the 71 00 initialization attempt failure report A complete listing of xx error codes are in the KWP response Section 18 1 If the downstream module fails to respond to the Start Communications message the user should consider that to be a failure even though the AVT 85x will not respond with an error code Note that the AVT 85x unit will respond with the 71 11 success report this only indicates that the AVT 85x unit was able to generate the Fast Initialization sequence but does not indicate anything about the downstream module 12 4 Mask Match Respond Function The Mask Match Respond MMR function allows the user to define a message mask and match byte sequence If the match is successful the Response is queued for immediate execution An operational overview a summary of the commands and an example follow This function is also available for KWP operations while in CAN mode 12 4 1 Operational Overview This function operates on all network messages and includes both received and transmitted messages relative to the AVT 85x interface and the network A network message passes through the AVT 85x If the length of the message is equal to or longer than the defined Mask Match sequence length the message is checked Starting with the first byte of the message each message byte is logically ANDed with the corresponding mask byte The result of that operation is then compared t
128. lowing commands are used set CAN4 ID mask mode to 2 73 2B 04 02 set CAN4 acceptance ID1 11 bit RTR 0 75 2A 04 01 07 30 set CAN4 Mask1 low order 4 bits are don t care all other bits are must match 75 2C 04 01 00 OF All network messages with 11 bit IDs of the form 073x will be received It is assumed the operator has completed all other necessary channel commands Note that since the desired message IDs are 11 bit using ID Mask mode of 2 is a very inefficient use of resources but it does work 7 9 2 6 ID Mask Example 3 Channel CAN4 ID Mask mode 4 Acceptance ID and mask are 16 bit values ID and mask 2 Desired messages are 11 bit ID 07Ex RTR bit is x receive frames where RTR 0 or 1 The following commands are used set CAN4 ID mask mode to 4 73 2B 04 04 set CAN4 acceptance ID2 11 bit RTR 0 75 2A 04 02 07 E0 set CAN4 Mask2 low order 4 bits are don t care all other bits are must match 75 2C 44 02 00 OF All network messages with 11 bit IDs of the form 07Ex will be received including RTR frames It is assumed the operator has completed all other necessary channel commands This is very similar to Example 2 but twice as many acceptance IDs and masks are available 7 9 2 7 ID Mask Example 4 Channel CANO ID Mask mode 4 Acceptance ID and mask are 16 bit values Advanced Vehicle Technologies Inc Page 28 AVT 85x Multiple Interface ID and mask 3
129. me interval 7x 1A command For Typel operations 7 11 7 Periodic Message Master Timer There is one timer that governs The Analog To Digital ATD functions Typel periodic messages Type2 periodic messages Advanced Vehicle Technologies Inc Page 33 AVT 85x Multiple Interface The time interval for that timer is set with the 52 63 xx command The available settings are 98 30 msec Default 49 15 msec 20 48 msec 10 24 msec 5 12 msec 7 11 8 Typel Periodic Messages Typel periodic messages operate independently of each other When Typel operations are enabled each enabled message in that group operates according to its own interval count The message is set up ID and data field are defined The interval count is defined The message is enabled The group is enabled for Typel operations 7 11 8 1 Typel Example Want to send two messages on CANO at 500 kbaud One message about every 500 msec The other message about every 1 second Using CANO Group1 Typel operations here is a sequence of commands to do this It is assumed that this is from a reset condition 1 Enter CAN mode El 99 2 Set CANO baud rate to 500 kbps 73 0A 00 02 3 Enable CANO normal operations 731100 01 4 Set the master timer to 98 30 msec 52 63 01 5 Define periodic message 01 ID 0246 data 03 A3 B4 C5 79 18 01 00 02 46 03 A3 B4 C5 6 Set periodic message 01 for an interval count of 10 actual interval 0
130. messages automatically and independently One message about every 500 msec The other message about every 1 second Here is a sequence of commands to do this It is assumed that this is from a reset condition 1 Enter VPW mode El 33 2 Set the master timer to 98 30 msec 52 63 01 3 Define periodic message 01 The message is 68 6A Fl 3F 76 18 01 68 6A Fl 3F 4 Set periodic message 01 for an interval count of 10 actual interval 0 983 sec 73 1B 010A 5 Enable periodic message 01 73 1A 01 01 6 Note that nothing will be transmitted until the group control is set to Typel 7 Define periodic message 06 The message is 68 6A F1 01 OC 77 18 06 68 6A Fl 01 0C 8 Set periodic message 06 for an interval count of 5 actual interval 0 4915 sec 73 1B 06 05 9 Enable periodic message 06 73 1A 06 01 10 Enable Group for Typel operations At this point all enabled messages in Group will begin transmission according to their own independent schedule 73 OC 01 01 Advanced Vehicle Technologies Inc Page 77 AVT 85x Multiple Interface 11 5 4 Type2 Periodic Messages Type2 periodic messages are transmitted in sequence within the group When more than one message in a group is defined and enabled and the group operating mode is set for Type2 operations 7x OC command then those messages will be transmitted in sequence using the interval count of the first message in the group regardless if t
131. mmand 5x 76 Define the match byte sequence Command 5x77 Define the response Command 5x 78 Disable Enable the MMR function 11 4 3 Example Assume you want the AVT 85x unit to switch to 4X mode as soon as the message AA BB CC DD SEE passes by You want an exact message match no message ambiguity allowed The command to switch to 4X mode is C1 01 Advanced Vehicle Technologies Inc Page 75 AVT 85x Multiple Interface To set up and enable the function you would issue the following commands to the AVT 85x define the mask 56 75 FF FF FF FF FF define the match 56 76 AA BB CC DD EE define the response 53 77 C1 01 enable the function 52 78 01 At this point if any message passes by that has the byte sequence AA BB CC DD EE or longer and is an exact match the command C1 01 will be issued that will cause the AVT 85x to switch to 4X mode The AVT 85x will also issue the command response C1 01 to the host computer telling the host computer that it successfully completed execution of the C1 01 command 11 5 Periodic Message Support In VPW mode the AVT 85x has the ability to transmit as many as ten 0A messages automatically The operator defines and sets up the desired periodic messages enables them and the AVT 85x unit will then transmit those messages at the defined interval without any operator intervention A common use for this capability is for the Tester Present message that some ECUs Elec
132. mmand less than 12 bytes 3 seconds 2136 Time out storing a block gt 11 bytes 5 seconds 22 37 xx Error during block transmit xx DLC status byte 22 38 xx Time out error during block transmit xx DLC status byte 5 seconds Advanced Vehicle Technologies Inc Page 155 23 53 xx yy ZZ Received block too big greater than 4112 bytes XX yy Count of bytes received ZZ Receive status byte 21 5A Received block is too short less than 3 bytes 22 771 xx 01 02 03 04 05 06 07 08 23 83 xx yy XX b7 b6 b5 b4 b3 b2 bl bO yy b7 b6 AVT 85x Multiple Interface Time out trying to send received block to host 3 seconds Switch mode error xx specific error byte start address equals 0000 start address equals FFFF start address less than or equal to 8000 start address equal to or greater than BFFF expected checksum equals 0000 expected checksum equals FFFF byte count to sum 0000 checksums are not equal VPW error Short to high detected Short to ground detected 0 0 0 SPTE not set attempted SPI transmit DLC no receive buffer available DLC receive FIFO overflow Advanced Vehicle Technologies Inc VPW mode Page 156 b5 b4 b3 b2 bl bO AVT 85x Multiple Interface VPW mode RFS7 DLC interrupt RFS6 DLC interrupt RFS5 DLC interrupt RFS4 DLC interrupt RFS1 DLC interrupt error during block tran
133. mputer Communications between the host computer and the AVT 85x in both directions uses a packet protocol This is the same protocol or method used by all AVT interface hardware e The first byte of a packet is the header byte e The header byte upper nibble first hex digit indicates what the packet is about e The header byte lower nibble second hex digit is the count of bytes to follow e If the header byte upper nibble is a zero 0 then the packet is a message to or from the network e This protocol is limited to 15 bytes following the header byte lower nibble F e Some messages require more than 15 bytes For such a situation there are two alternate header formats which are of the form 11 xx 12 xx yy These alternate header formats only apply to messages to or from the network e If the byte count is more than 0F but equal to or less than FF the packet will be of the form 11 xx rr ss tt 11 indicates first alternate header format xx indicates the count of bytes to follow not including the xx byte rr ss tt the packet data including the message to from the network Advanced Vehicle Technologies Inc Page 12 AVT 85x Multiple Interface e If the byte count is more than FF but less than or equal to FF FF the packet will be of the form 12 xx yy rr ss tt 12 indicates second alternate header format xx yy indicates the count of bytes to follow not including the xx yy bytes rr ss tt the pack
134. n Section 16 A brief summary is provided here e 5x63 Timer interval e 7x 0C Periodic message group operation control disabled Typel Type2 e 7x 18 Define a periodic message e 7x 1A Periodic message disable enable e 7x 1B Periodic message interval e 7x 1C Disable all periodic messages Disable all groups e 7x 4C Specify the first periodic message assigned to CAN4 group 1 e 7x 4D Specify the first periodic message assigned to CANx group 2 7 12 Periodic Message Special Functions There are several special functions available for all CAN periodic messages operating in Typel mode These special functions were developed specifically at customer request Each of the functions are described below Each function is available to every CAN periodic message Each function and each periodic message are independent In other words one periodic message can have one function enabled and another periodic message can have another function enabled Only one mode is allowed to be enabled for any given periodic message If you attempt to enable more than one mode the last mode command will be the one enabled For all of these functions the data field of a periodic message can be changed on the fly You do NOT need to disable the message or the function to change anything Advanced Vehicle Technologies Inc Page 36 AVT 85x Multiple Interface 7 12 1 CAN Frame Data Definition Each CAN frame can contain up to 8 data bytes In the f
135. n with an AVT 853 XPort device Factory default settings are shown 4 2 1 5 Web Page Setup The configuration of the AVT 853 XPort device can be examined and changed using a web browser The setup screen is an HTML web page To establish a web page session with the AVT 853 XPort enter the following into the web browser address line http 192 168 1 70 The setup form will appear The first page is the configuration summary page Select either Server Properties or Port Properties to change the configuration After making changes select Update Settings The AVT 853 XPort will store the new settings and then reboot Wait to 2 minutes for the AVT 853 XPort to complete the reboot before attempting to access the unit with the new settings in use Refer to Appendix B at the end of this document for a complete listing of all setup information available when using the AVT 853 XPort configuration web page 4 2 2 Ethernet IP Addressing Modes Three IP addressing modes are available on the AVT 853 XPort e Static e DHCP e ARP 4 2 2 1 Static IP Addressing The factory default addressing mode for the AVT 853 XPort is static and the address is set to 192 168 1 70 In static mode the Ethernet address of the AVT 853 is always the same and does not change when power is cycled 4 2 2 2 DHCP Addressing Setting the AVT 853 IP address to 0 0 0 0 will enable DHCP Dynamic Host Configuration Protocol function Advanced Vehicle Technologies Inc
136. nd buffer the inbound data The AVT 85x handles all handshaking with the downstream module When the complete message is received the AVT 85x forwards the ID and block of data to the host using the usual packet convention Ox rr ss tt vv mmnn x 1s the count of bytes to follow or 11 xx rr ss tt vv mmnn xx 1s the count of bytes to follow or 12 xx yy rr ss tt vv mmnn xx yy is the count of bytes to follow There are several commands associated with setting up and enabling ISO 15763 processing The commands are listed in the Commands Section 16 7 13 7 Transmit Operations When transmitting a message to the CAN network there are two methods of specifying if the message should or should not be ISO 15765 formatted The methods depend on the ISO 15765 Mode and are described below A transmit command is a command from the host containing a message for the CAN network 7 13 7 1 Mode0 Only transmit commands from the host with bit4 of the CAN channel byte set 1 are ISO 15765 formatted and then transmitted onto the CAN network Refer to the beginning of Section 16 for information about formatting a transmit command All other transmit commands are transmitted onto the CAN network without modification 7 13 7 2 Model All transmit commands from the host are ISO 15765 formatted and then transmitted onto the CAN network 7 13 7 3 Mode2 Only transmit commands from the host with bit4 of the CAN channel byte set 1 are ISO 15765
137. nects disconnects the VPW bus from pin 2 of P3 the DA 15P network connector 11 2 Communications J1850 VPW messages consist of a maximum of 11 bytes The AVT 85x handles the CRC byte The host computer should never send it and the AVT 85x will never report it J1850 VPW communications on GM vehicles generally follow this format byte 1 Priority Type byte byte 2 Destination address can be function or physical byte 3 Source address always physical byte 4 Extended address byte byte 5 on The data field Messages to and from the network are of the form 0x yy rr ss tt vv where x is the count of bytes to follow Refer to Section 4 3 and the Commands Section 17 for detailed information about messages to and from the network 11 2 1 Communications Example Not Block Transfer This example is to enter VPW mode send a message to the network receive a message from the network enter VPW mode El 33 send a message to the network OBD II RPM request 05 68 6A F1 01 0C explanation 0 indicates to the network 5 is the count of bytes to follow 68 is the priority type byte 6A is the destination address functional in this case i Fl is the source address an OBD II tool the AVT 85x in this case 01 is the mode OC is the PID which is a request for engine RPM Advanced Vehicle Technologies Inc Page 71 AVT 85x Multiple Interface receive the transmit ack 01 60 0 ind
138. ng MFM or Segmented Messages This specification also deals with other CAN network issues An SAE specification for Single Wire CAN SWC Single wire communications protocol Refer to ISO 9141 ISO 9141 2 and ISO 14230 for more information Local Interconnect Network Remote Transmission Request When this bit 1 it indicates a frame that is requesting a remote node to transmit an answering frame Substitute Remote Request A fixed recessive bit that only exists in extended frames IDE 1 29 bit ID Transient Voltage Suppression Typel Periodic Message support CAN each message operates independently Type2 Periodic Message support CAN messages within a group operate sequentially Single Wire CAN SAE J2411 Bit wise logical exclusive OR 3 AVT 85x Operation The AVT 85x does not have a power switch The unit powers up and begins operations as soon as it is plugged into a vehicle or other power source is applied The AVT 852 will operate from USB power However some communications modes will not function properly if the interface is only powered from the USB connection On power up the interface will almost immediately report to the host computer 91 27 and 92 04 xx where xx is the unit firmware version number This is the idle state where the AVT 85x is waiting for the host computer to issue a mode switch command No network communications are supported while in the idle state Refer to Section 14 for a li
139. nt greater than 255 CAN4 23 82 xx yy XX b7 b6 b5 b4 b3 b2 bl CAN4 error report 0 0 0 DLC gt 8 in ISO 15765 receive manager DLC gt 8 in 7x_18 routine DLC gt 8 in non ISO 15765 receive manager 0 Advanced Vehicle Technologies Inc Page 129 AVT 85x Multiple Interface CAN mode b0 CAN error interrupt yy Copy of CANA rflg register b7 wake up interrupt flag b6 CAN status change interrupt flag b5 receiver status bit 1 b4 receiver status bit 0 b3 transmitter status bit 1 b2 transmitter status bit 0 bl overrun interrupt flag bO receive buffer full flag 21 84 Command buffer mode fault KWP 24 85 xx yy ZZ KWP error XX b7 both linl and kwp active b6 short to ground detected b5 periodic message error b4 error decoding scilcrl b3 periodic message too long b2 zero length periodic message found bl transmit watchdog time out b0 no receive buffers available yy b7 0 b6 O b5 0 b4 0 b3 0 b2 0 bl 0 b0 transmit command processing return code error ZZ b7 transmit date register empty b6 transmit complete b5 receive data register full b4 idle b3 overrun b2 noise bl framing error Advanced Vehicle Technologies Inc Page 130 LIN1 AVT 85x Multiple Interface CAN mode parity error 25 86 rr ss tt vv rr b7 b6 b5 b4 b3 b2 bl bO ss b7 b6 b5 b4 b3 b2 bl bO tt b7 b6 b5 b4 b3 b2 bl bO
140. number e AVT 85x_vXX pf3 Advanced Vehicle Technologies Inc Page 88 AVT 85x Multiple Interface Idle mode 14 Idle Mode Commands B Firmware version BO Request firmware version number D Operational mode DO Request operational mode report E Mode switch El 33 Switch to VPW mode El 99 Switch to CAN mode El DD Switch to KWP mode F Model Query and Reset FO Query for model number Fl AS Restart the AVT 85x a form of software reset 14 1 Idle Mode Responses 2 Error reports 22 34 xx Command time out xx header byte of offending command 22 77 Xx Switch mode error xx specific error byte 01 start address equals 0000 02 start address equals FFFF 03 start address less than or equal to 8000 04 start address equal to or greater than BFFF 05 expected checksum equals 0000 06 expected checksum equals FFFF 07 byte count to sum 0000 08 checksums are not equal 3 Invalid command 31 xx Invalid command xx header byte of offending command 14 2 Other Responses 2 Error reports 21 70 Backdoor is disabled Advanced Vehicle Technologies Inc Page 89 AVT 85x Multiple Interface Idle mode 2171 Backdoor access attempt failed 21 84 Command buffer mode fault Status reports 91 27 Idle state Waiting for mode switch command 92 04 xx Firmware version report Version is xx 93 04 xx yy Firmware version report Version is xx yy 93 28 Ox yz M
141. o send three messages on CAN4 at 33 333 kbaud One message every 2 5 seconds Using CAN4 Group2 Type2 operations here is a sequence of commands to do this It is assumed that this is from a reset condition 1 Enter CAN mode El 99 2 Set CAN4 baud rate to 33 333 kbps 73 0A 04 0A 3 Enable CAN4 normal operations 731104 01 4 Enable CAN4 SWC transceiver for normal operations 72 12 03 5 Set the master timer to 98 30 msec 52 63 01 6 Define periodic message 0B ID 0123 data AA 34 56 78 18 OB 04 01 23 AA 34 56 7 Enable periodic message 0B 74 1A 04 OB 01 8 Note that nothing will be transmitted until the group control is set to Type2 Advanced Vehicle Technologies Inc Page 35 AVT 85x Multiple Interface 9 Define periodic message 0D ID 0234 data BB 78 9A BC 79 18 OD 04 02 34 BB 78 9A BC 10 Enable periodic message 0D 74 1A 04 0D 01 11 Define periodic message 0F ID 0345 data CC 34 56 78 9A BC TA 18 OF 03 45 CC 34 56 78 9A BC 12 Enable periodic message 0F 74 1A 04 OF 01 13 Set the CAN4 Group2 Type2 interval for a count of 19 decimal 25 the actual interval 2 4575 sec must use message 09 timer 74 1B 04 09 19 14 Enable CAN4 Group2 for Type2 operations At this point all enabled messages in CAN4 Group2 will begin transmitting in sequence one message every 2 4575 seconds 74 OC 04 02 02 7 11 10 Periodic Message Commands All commands are listed i
142. o the corresponding match byte If there is a match the test continues until all defined mask and match bytes are processed If there is a no match the test terminates immediately If the test is successful the respond command is queued for immediate processing The Respond is any command that can be issued by the user host computer It can be a configuration command or a message for transmission 12 4 2 Command Summary Command 5x 75 Define the mask Default is FF Command 5x 76 Define the match byte sequence Advanced Vehicle Technologies Inc Page 84 AVT 85x Multiple Interface Command 5x77 Define the response Command 5x 78 Disable Enable the MMR function 12 4 3 Example Assume you want the AVT 85x unit to transmit a message as soon as the message SAA BB CC DD SEE passes by You want an exact message match no message ambiguity allowed To set up and enable the function you would issue the following commands to the AVT 85x define the mask 56 75 FF FF FF FF FF define the match 56 76 AA BB CC DD EE define the response 05 11 22 33 44 55 enable the function 52 78 01 At this point if any message passes by that has the byte sequence AA BB CC DD EE or longer and is an exact match the transmit command defined above will be issued that will cause the AVT 85x to transmit that message to the network 12 5 Periodic Message Support In KWP mode the AVT 85x has the ability to transmit as many
143. odel number report xyz is the model number Advanced Vehicle Technologies Inc Page 90 AVT 85x Multiple Interface CAN mode 15 CAN Mode Operational Notes CANO is channel 0 CAN4 is channel 4 LIN1 is channel 5 KWP is channel 6 LINO is channel 7 LIN1 and KWP are mutually exclusive modes They share the same physical media wire The only allowed states are Both disabled LIN1 enabled only KWP enabled only Refer to the 5x 69 secondary mode command All other modes can be operated independently and simultaneously Some commands are not associated to a specific channel For those commands that are applicable to one or more channels the applicable channels are listed above the command description Advanced Vehicle Technologies Inc Page 91 AVT 85x Multiple Interface CAN mode 16 CAN Mode Commands High nibble shown at left bits b7 b4 indicates the Command type Low nibble bits b3 bO indicates how many bytes are to follow All transmit command forms are equal in ascending order Ox 11 Ox 12 00 Ox 11 xx 12 00 xx 12 xx yy 0 CAN packet for transmission to the network CANO CAN4 Ox qr tt vv ww zz mm nn x count of bytes to follow q b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 transmit message as is 1 format message for ISO 15765 r channel 0 4 tt vv 11 bit ID right justified tt v
144. ollowing discussion Data0 is the first data byte in the CAN frame or the first data byte onto the network or the first data byte after the message ID Likewise Data7 is the last data byte of the CAN frame Within a byte the bits are numbered from 0 least significant bit to 7 most significant 7 12 2 ARC Function Description ARC Asynchronous Rolling Counter A basic description of the operation of this function follows If you require detailed information contact me The counter is bits 3 2 of Data0 Increment the counter Add the counter bits to the MainHighV ItCntctCmd bits and two s complement them The resulting two bits are MainHighVltCntctCmdProtVal Write those bits to 1 0 of Datal The message is then queued for transmission 7 12 2 1 ARC Function Command Detailed explanation of the ARC function command 73 40 Ox yy query for status x is the CAN channel 0 or 4 yy is the periodic message number 74 40 Ox yy Ov Disable Enable command x is the CAN channel 0 or 4 yy is the periodic message number v 0 to disable 1 to enable 7 12 3 RUP Function Description RUP Rolling UPper nibble A basic description of the operation of this function follows If you require detailed information contact me Model The counter is bits 7 4 of Data6 Increment the counter Compute the J1850 CRC of the message data including Data0 to Data6 Write the resulting CRC to Data7 The message is then q
145. ommand mm b7 IDE 0 11 bit ID b6 RTR should be set to 0 but user can define all other bits b5 to bO are 0 rr ss 11 bit ID right justified 76 37 mm rr ss tt vv command mm b7 IDE 1 29 bit ID b6 RTR should be set to 0 but user can define all other bits b5 to b0 are O rr ss tt vv 29 bit ID right justified 7 14 2 3 ABX Data 76 38 This command queries for or stores the CAN frame data All of this data is stored in the AVT 85x unit in non volatile FLASH space The address range is 0000 thru 7FFF 16 KBytes 32 768 bytes When transmitting all data is read and transmitted starting at address 0000 The total number of data bytes transmitted is set by the 7x 39 command described below Reading stored data is easy and very flexible e Data can be read starting at any address in the range and for any number of bytes specified so long as the resulting address does not exceed the address range Storing or writing data has special rules e Data is stored in sectors where a sector is a maximum of 512 bytes e Data must be stored starting at a sector start address e A sector start address is on an even 512 byte boundary In a 16 bit address a sector start address has bits 8 0 all set to zero In binary a valid sector start address will be of the form XXXX XXx0 0000 0000 In hex some example valid sector start addresses are where x is any value x000 x200 x400 x600 x800 xA00 xC00 xE0
146. ommunications and for Single Wire CAN SWC signal Advanced Vehicle Technologies Inc Page 16 AVT 85x Multiple Interface For most normal operations V Batt supply can range from 7 to 24 VDC The absolute maximum input voltage is 26 5 VDC 5 4 3 Power Dissipation Power dissipation for each unit is listed here Measured with a supply voltage of 13 0 VDC AVT 852 1 watt nominal AVT 853 2 75 watts nominal 5 5 Shunts Note These shunts only existed on board revision B1 They were removed on later board revisions On the AVT 85x board are three shunts or jumpers JP1 JP2 JP3 They are for Single Wire CAN SWC network JP1 K line network JP2 VPW network JP3 6 ADC Connection Unless otherwise requested the analog to digital input capability of the AVT 85x boards is NOT installed The following notes only apply to those boards where the functionality is installed The four position screw terminal block is used to access the three Analog to Digital Converter ADC channels Terminal 1 ADC channel 1 Terminal 2 ADC channel 2 Terminal 3 ADC channel 3 Terminal 4 ground The input voltage range for all three channels is 0 to 5 volts The inputs are passively pulled to ground through a 24 9 K ohm resistor In most cases with no input applied the reading for a channel will generally stay below a reading of about 03 The inputs are ESD protected with a 27 volt TVS diode The inputs are
147. over and under voltage protected That does not mean the inputs can withstand abuse Damage may still occur if subjected to a voltage outside the range of 0 to 5v with respect to ground 6 1 ADC Readings The ADC output conversion value range is 00 to FF Full scale is FF Input voltage of 0 0v equals a reading of 00 Input voltage of 5 0v equals a reading of FF The conversion is linear monotonic with no missing codes There is no input filtering of the signal and readings are not averaged Advanced Vehicle Technologies Inc Page 17 AVT 85x Multiple Interface The ADC channels are read continuously and the most recent value is stored The command to read an ADC channel returns the value most recently read ADC conversions are not synchronized with commands from the host to take an ADC reading The 52 58 Ox command is used to read a specified ADC channel where x channel number to 3 The 52 59 xx command is used to disable or enable and set the rate at which all three ADC channels are reported to the host Parameter xx is the number of timer ticks between reports The timer for the 5x 29 command is set by the 5x 63 command 7 CAN Mode Enter CAN mode with the E1 99 command The report 91 10 indicates the AVT 85x has entered CAN operations The report 83 11 00 00 indicates that CAN channel 0 is disabled The report 83 11 04 00 indicates that CAN channel 4 is disabled The report 91 29 indicates that LINO mode of ope
148. p operational control status query All channels all groups are reported Query for periodic message status of all groups y channel 0 4 5 6 7 All groups are reported Query for status of one periodic message group y channel 0 4 5 6 7 Z group l or 2 Periodic message group operational control command y channel 0 4 5 6 7 v group or 2 w mode O Disabled 1 Typel enabled Ze Type2 enabled Advanced Vehicle Technologies Inc Page 103 AVT 85x Multiple Interface CAN mode CANO CAN4 71 0E Outbound flow control separation time query both channels 72 OE Oy Outbound flow control separation time query y channel 0 4 73 OE Oy zz Set outbound flow control separation time y channel 0 4 ZZ separation time Default 0A 10 msec There are rules in ISO 15765 for setting this parameter CANO CAN4 71 OF Outbound flow control ID query both channels 72 OF Os Outbound flow control ID query s channel 0 4 74 OF rs tt uu Set outbound flow control ID 11 bit no AE byte r 0 11 bit ID s channel 0 4 ttuu 11 bit ID 75 OF rs tt uu ae Set outbound flow control ID 11 bit with AE byte r 0 11 bit ID s channel 0 4 ttuu 11 bit ID ae AE byte 76 OF rs tt uu vv ww Set outbound flow control ID 29 bit no AE byte r 8 29 bit ID s channel 0 4 tt uu vv ww 29 bit ID 77 OF rs tt uu vv ww ae Set outbound flow control ID 11 bit with AE byte T 8 29 bit I
149. perational parameters are stored in EEPROM space ABX data is stored in FLASH space 7 14 2 1 ABX Separation Count 7x 36 The 7x 36 command queries for and sets the CAN frame separation count This is the time between CAN frames that the AVT 85x unit is transmitting This parameter sets a count value The AVT 85x unit will wait by counting the value specified by this command before transmitting the next CAN frame There are two sources for this count milliseconds or loops Setting the separation count to be milliseconds results in the AVT 85x counting the specified number of milliseconds between transmitted CAN frames A loop is the time it takes the AVT 85x firmware to make a complete loop in the firmware in CAN mode This time is variable but empirical measurements in a lightly loaded environment reveal the loop time to be approximately 45 microseconds The user should keep in mind that a full size 11 bit CAN frame at 500 kbaud occupies approximately 186 microseconds on the CAN bus 71 36 query for setting 74 36 Or xx yy command Or 01 millisecond count Or 02 loop count xx yy count value default 84 36 02 00 OA loop with count of 10 decimal 450 microseconds between CAN frames Advanced Vehicle Technologies Inc Page 50 AVT 85x Multiple Interface 7 14 2 2 ABX Message ID 7x 37 This command sets the transmit ID and related parameters for the transmitted CAN frame 71 37 query for setting 74 37 mm rr ss c
150. ponse message is enabled for Typel or Type2 operations it operates as described in Sections 8 3 4 and 8 3 5 above When a periodic message is enabled for slave response message operation the 7x 1A command it operates independently of a timer Every time an ID byte is received from the LIN bus all periodic messages are searched If a periodic message is enabled for Slave Response and if its ID byte matches that just received from the LIN bus then that message is immediately transmitted into the data field of the LIN frame in progress This will happen without host computer intervention The host will not be informed that the message has been transmitted by default If the host user wants to know when a slave response message has been transmitted the 5x 6F command can be used to send one of two possible responses to the host Transmit acknowledgement of the form 03 05 xx yy 03 is the packet header byte 05 channel 5 LIN xx LIN receive status byte yy ID of the LIN message Transmit echo of the form Ox 05 xx yy rr ss tt 03 is the packet header byte 05 channel 5 LIN xx LIN receive status byte yy ID of the LIN message rr ss tt the data field of the LIN message 8 3 7 Periodic Message Commands All commands are listed in Section 16 A brief summary is provided here e 5x 63 Timer interval e 7x 0C Periodic message group operation control disabled Typel Type2 e 7x 18 Define a periodic messa
151. rames received up to the maximum of FF since the last query and then the counter is immediately reset The 73 3B Ox yy command disables enables the Channel Activity function of the specified CAN channel The 72 3C Ox command reads and resets the activity counter for the specified CAN channel Note that the CAN channel must be properly set up to receive CAN messages for this function to work 7 16 ATD Read Function This function was designed to read certain CAN messages that contain Analog To Digital ATD data and store the number of messages processed as well as the minimum and maximum values for each channel The CAN messages being monitored are assumed to be ISO 15765 formatted and therefore ISO 15765 processing has to be enabled to function properly The CAN messages subject to this function are immediately discarded after being read The host never sees these messages 7 16 1 Message Construction The message of concern is ISO 15765 formatted and contains 8 data bytes Therefore it is a segmented message Shown here is the ID and data bytes only Not shown are the ISO 15765 protocol bytes ID Data0 Datal Data2 Data3 Data4 Data5 Data6 Data7 ID 11 or 29 bit Data0 Datal Data2 fixed data field Data3 ATD channel number lower nibble only Data4 DataS ATD data unsigned 16 bit integer Data6 Data ignored Advanced Vehicle Technologies Inc Page 55 AVT 85x Multiple Interface 7 16 2 Set Up The user specifies th
152. ration is active rev D and F boards only The report 91 19 indicates that LIN1 mode of operation is active 7 1 Board Revision B1 The AVT 83x board revision B1 supports operations of two simultaneous CAN channels and one LIN or KWP channel when in CAN mode CANO 2 wire CAN channel that is ISO 11898 compliant Channel number 0 CAN4 Configured at the factory as either Single Wire CAN SWC or 2 wire CAN Channel number 4 LIN Supports revisions 1 2 1 3 2 0 2 1 2 2A Channel number 5 KWP Specifications ISO 9141 ISO 9141 2 and ISO 14230 Channel number 6 7 2 Board Revision D and F The AVT 83x board revision D and F support operations of two simultaneous CAN channels one LIN or KWP channel and one dedicated LIN channel all when in CAN mode CANO 2 wire CAN channel that is ISO 11898 compliant Channel number 0 Advanced Vehicle Technologies Inc Page 18 AVT 85x Multiple Interface CAN4 Configured at the factory as either Single Wire CAN SWC or 2 wire CAN Channel number 4 LIN1 Supports revisions 1 2 1 3 2 0 2 1 2 2A Same transceiver as KWP channel 6 Channel number 5 KWP Specifications ISO 9141 ISO 9141 2 and ISO 14230 Same transceiver as LIN1 channel 5 Channel number 6 LINO Supports revisions 1 2 1 3 2 0 2 1 2 2A Channel number 7 7 3 CAN Mode Default Configuration When CAN mode is first entered the follo
153. receive message example is DA xx yy 06 00 25 11 22 33 44 OA header byte indicates from the network A or decimal 10 bytes follow xx yy time stamp xx is the high byte yy is the low byte 06 channel 6 KWP 00 status byte indicating no errors detected 25 11 22 33 44 message bytes 10 3 2 2 Transmit Ack Examples When time stamps are disabled a transmit ack example is 02 05 40 02 header byte indicates from the network 2 bytes follow 06 channel 6 KWP 40 status byte bit 5 set indicates from this node When time stamps are enabled a transmit ack example is 04 xx yy 05 60 04 header byte indicates from the network 4 bytes follow Xx yy time stamp xx is the high byte yy is the low byte 05 channel 5 LIN channel 40 status byte bit 5 set indicates from this node 10 3 3 Fast Transmit During so called normal transmission of a message onto the K line the AVT 85x inserts a default value of 5 milliseconds between bytes This value can be changed using the 5x 27 command A value of zero can be set using the 52 27 00 command Due to internal processing even when this value is set to zero the AVT 85x unit still inserts a small delay between transmitted bytes For some applications this small delay may be unacceptable The 52 6C 01 fast transmit command minimizes the delay between transmitted bytes to a much smaller amount of time 10 4 Periodic Message Support When KWP mode is active the AVT 85x has the ability to tran
154. riodic message X channel 0 4 yy Periodic message number 01 to 20 Z 0 disabled 1 enabled LIN1 LINO 84 49 Oy zz Ov LIN Counter0 function status y channel 5 7 ZZ Message number 01 to 0A v 0 disabled 1 enabled 82 48 mm Test the J1850 CRC function mm computed J1850 CRC byte CANO CAN4 85 4A Ox yy Oz rr CAC function status for periodic message x channel 0 4 yy Periodic message number 01 to 20 Z 0 disabled 1 enabled rr constant value used in checksum computation CANO CAN4 82 4C yy Message yy is first periodic message assigned to CAN4 group 1 CANO CAN4 83 4D Ox yy Message xx is first periodic message assigned to CANx group 2 Advanced Vehicle Technologies Inc Page 147 CANO CAN4 AVT 85x Multiple Interface CAN mode 86 4E Ox yy Ov Ow rr CIB status for periodic message x channel 0 4 yy Periodic message number 01 to 64 v 0 disable 1 enable w location of counter O to 7 rr increment value CANO CAN4 84 4F Ox yy Ov RC2 status for periodic message X channel 0 4 yy Periodic message number 01 to 64 v 0 disable 1 enable CANO CAN4 84 51 0x yy Ov RC3 status for periodic message x channel 0 4 yy Periodic message number 01 to 64 v 0 disable 1 enable Board status information 92 04 xx 93 04 xx yy 91 07 91 08 91 OF 91 10 91 19 91 24 91 25 91 27 91 29 93 28 Ox yz
155. roup 2 This means Messages 01 to 10 are assigned to CANO group 1 Messages 11 to 20 are assigned to CANO group 2 Messages 21 to 30 are assigned to CAN4 group 1 Messages 31 to 64 are assigned to CAN4 group 2 01 11 same as 73 4D 00 11 command 21 same as 72 4C 21 command 31 same as 73 4D 04 31 command With the exception of the last group the number of messages assigned to each group mimics the situation found in previous versions of firmware Here is an attempt to illustrate the organization of the periodic message table Msg Num hex Boundary command default configuration shown 01 02 50 60 63 64 CANO group 1 fixed CANO group2 73 4D 00 11 CAN4 group1 72 4C 21 CAN4 group2 73 4D 04 31 Advanced Vehicle Technologies Inc Page 32 AVT 85x Multiple Interface 7 11 4 Dynamic Allocation The user is free to dynamically allocate the messages This can be done while messages are defined enabled and operating The 7x 4C and 7x 4D commands do not affect the contents of any messages The user should send the 7x 4C command before sending any 7x 4D commands If the user moves the CAN4 group 1 boundary the 7x 4C command such that either group 2 boundary is affected the affected boundary will be moved to the mid point of the available range A 83 4D Ox yy response will be issued to inform the user that the affected boundary was mov
156. ry 83 3F Ox yy Pacing timer x channel 0 4 yy timer count time tick is 1 msec CANO CAN4 Advanced Vehicle Technologies Inc Page 145 AVT 85x Multiple Interface CAN mode 84 40 Ox yy Oz ARC function status for periodic message x channel 0 4 yy Periodic message number 01 to 20 Z 0 disabled 1 enabled CANO CAN4 83 41 Oy Oz ATD monitor function status y channel 0 4 Z 0 disable Default 1 enable CANO CAN4 89 42 Oy 0z mm mn pp qq tt vv ATD monitor report y channel 0 4 Z ATD channel 0 to F mm nn count pp qq minimum value read tt vv maximum value read CANO CAN4 8x 43 xy rr ss ATD monitor expected ID report x b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 y channel 0 4 rr ss 11 bit receive ID rr ss tt vv 29 bit receive ID CANO CAN4 85 44 Oy mm nn pp ATD monitor function expected bytes channel CANy y channel 0 4 mm nn pp the expected first three bytes of ATD message CAN4 82 45 00 Hardware does not support this command 82 45 01 CAN4 physical layer is set to single wire CAN Advanced Vehicle Technologies Inc Page 146 AVT 85x Multiple Interface CAN mode 82 45 02 CAN4 physical layer is set to 2 wire CAN CANO CAN4 83 46 Ox Oy Status of CAN flow control error responses x channel 0 4 y 0 disabled 1 enabled CANO CAN4 84 47 Ox yy Oz RUP function status for pe
157. ry Modes oononnccinononinonnnononnncnnnnnnonnncnnnonn conan cnn nena non nan nena nrnn erre cnc ranas 21 7 7 2 Board revisions D and F Allowed Secondary MOdes ccccccsccecseseesseesseeseeeseceseessesssenseeeseenssenseeaes 21 7 8 CAN COMMUNICATIONS GENERAL NOTES ccescceeseeesseecsscecsscecesaecesaeceaeesseecssnecsseecsscecsseecesaeeeseeseaeeesaecesaeeenaes 22 FOES HISAR CD ere tN Ae Sc A dictadas 22 POL Norma Lilia idad ia 22 7 8 3 Listen Onl Yain ea i rE iria iia 22 7 8 4 Transmit Command a E EE E O ERENER 22 LS ReceiweRes ponse ener e E E R ORRE E ET E EA E 23 Advanced Vehicle Technologies Inc Page 2 AVT 85x Multiple Interface 28 02 TIMES TAMPS 2 EE E E ESER ETE E A VEREER EE E EE AREER EE 24 7 9 ACCEPTANCE ID AND MASK oia AA E E E A E A OAE 25 ZIA COnfi Urati ON aeea AA N ata 25 TEQEZ a Operati on n opas A AA IA ES 26 79 3 SUMMAT od ASA cai 30 7 10 SETTINGUP A CAN CHANNEL FOR OPERATION cccccsssssssessesesseseesesscseeseeseecsesseseessescseesenecseessnesseessnecssesenesseeseneenes 30 7 10 1 Communications Example ci zas 30 7 11 PERIODIC MESSAGE SUPPORT uesite iedeen cusses iaaa AEAEE ANE EEEE DAA ENERE E AEEA TAAA EAEEREN 31 7 11 1 Summary Of Changes With This Version sseseseesesseseesersersrrsresresresrerresrsresresresresrertesrerresrsesresresresreet 31 7 11 2 Organization Of Periodic MesSAgeS cccsccesceeseeseeeseteseteseeseensecnsecececseeeseeesecsseesaeeeeeseseaeseseseeeseeeaeen
158. s Query for data bits and parity type Set parity type and frame length All are one start bit and one stop bit XX 01 8 data bits no parity frame length 10 Default XX 02 8 data bits even parity frame length 11 XX 03 8 data bits odd parity frame length 11 XX 04 7 data bits even parity frame length 10 XX 05 7 data bits odd parity frame length 10 Read ADC channel 1 terminal 1 Read ADC channel 2 terminal 2 Read ADC channel 3 terminal 3 Query for status of periodic ADC reports Disable periodic ADC reports Default Enable periodic ADC reports Report interval is xx timer ticks 5x 63 command Master timer status query Master timer setting XX 01 98 30 msec Default 02 49 15 msec 03 20 48 msec 04 10 24 msec 05 5 12 msec Query for internal baud rate setting AVT 853 only Advanced Vehicle Technologies Inc Page 164 52 67 01 52 67 02 52 67 04 52 67 08 52 67 FF 52 67 20 52 67 40 51 6A 52 6A xx 51 6C 52 6C 00 52 6C 01 51 75 5x 75 yy ZZ 51 76 5x 76 yy ZZ 5177 5x 17 yy ZZ 51 78 52 78 00 52 78 01 AVT 85x Multiple Interface KWP Stand Alone mode Set internal baud rate to 19 2 kbaud Set internal baud rate to 38 4 kbaud Set internal baud rate to 57 6 kbaud Set internal baud rate to 115 2 kbaud Set internal baud rate to 230 4 kbaud Set internal baud rate to 460 8 kbaud Set internal baud r
159. s 8 3 4 8 3 5 and 8 3 6 below The 7x 1A enable disable command has four modes for each periodic message mode 0 disabled mode 1 enabled for operation as Typel or Type2 periodic message mode 2 enabled for operation as a Slave response message only mode 3 enabled for operation as both a Typel or Type2 and Slave response message 8 3 2 Organization of Periodic Messages In LIN mode there is only one group of periodic messages Groupl All ten periodic messages are in Group1 All ten periodic messages can be set to operate in Typel or Type2 mode The periodic messages are numbered 01 to 0A inclusive Each message is independently disabled or enabled 7x 1B 05 command Each message has its own time interval 7x 1A 05 command valid only in Typel operations 8 3 3 Periodic Message Master Timer There is one timer that governs The Analog To Digital ATD functions Typel periodic messages Type2 periodic messages The time interval for that timer is set with the 52 63 xx command The available settings are 98 30 msec Default 49 15 msec 20 48 msec 10 24 msec 5 12 msec 8 3 4 Typel Periodic Message Typel periodic messages operate independently of each other When Typel operations are enabled each enabled message in that group operates according to its own interval count The message is set up The interval count is defined Advanced Vehicle Technologies Inc Page 60 AVT 85x Multiple Interface T
160. s written to the data field in the periodic message setup command Exclusive OR the result with a constant value Write the resulting checksum to Data0 The message is then queued for transmission 7 12 4 1 CAC Function Command Detailed explanation of the CAC function command 73 4A Ox yy query for status x is the CAN channel 0 or 4 yy is the periodic message number 74 4A Ox yy Ov Disable Enable command x 1s the CAN channel 0 or 4 yy is the periodic message number v 0 to disable 1 to enable Advanced Vehicle Technologies Inc Page 38 AVT 85x Multiple Interface 75 4A Ox yy Ov rr Disable Enable command x is the CAN channel 0 or 4 yy is the periodic message number v 0 to disable 1 to enable rr is the constant used in the checksum computation Note If you use the 74 4A form of the command the constant is left at the value it was at when last written The constant is initialized to 00 when you enter CAN mode The constant value is only changed by using the 75 4A form of the command 7 12 5 CIB Function Description CIB CAN Increment Byte A basic description of the operation of this function follows If you require detailed information contact me The counter is byte sized and the location in the CAN data field is specified in the command The counter increment is specified in the command The counter increment is usually 0F Increment the counter If the counter was at 70 it shoul
161. ses Refer to Section 16 for a complete list of LINO mode commands 10 KWP operations in CAN mode KWP communications can be enabled while in CAN mode KWP communications uses the K line When KWP secondary mode is enabled while in CAN mode LIN1 mode is disabled The secondary KWP mode of operations while in CAN mode is almost identical to KWP Stand Alone operations Refer to Section 11 The biggest difference of using KWP mode while in CAN mode is that KWP communications are designated as channel 06 To enable secondary KWP mode use the 52 69 02 or 52 69 06 command The responses 62 69 Ox and 91 OF will be issued to indicate that the command was processed and that KWP mode is now operational 10 1 Shunt JP2 Shunt JP2 only exists on revision B1 boards It was removed from later board revisions AVT 853 revision B1 boards only shunt JP2 connects disconnects the K line from pin 7 of P3 the DA 15P network connector 10 2 Communications Unless otherwise commanded the AVT 85x will passively receive all messages from the K line Advanced Vehicle Technologies Inc Page 65 AVT 85x Multiple Interface 10 3 Operation Commands Refer to Section 16 for all KWP while in CAN mode commands 10 3 1 Communications Example This example is to enter CAN mode receive a message from the K line and to transmit a message on to the K line enter CAN mode El 99 enable KWP as secondary mode 52 69 02 recei
162. sk mode in 7x_2A Invalid mask mode in 7x_2A Invalid mask number in 7x_2A Invalid mask number in 7x_2A Invalid channel number in 7x_2A Incorrect header byte in 7x_2A Mode 2 11 bit Incorrect header byte in 7x_2A Mode 2 29 bit Incorrect header byte in 7x_2A Mode 4 Incorrect header byte in 7x_2A Mode 8 Invalid mask mode in 7x_2A Advanced Vehicle Technologies Inc Page 128 AVT 85x Multiple Interface CAN mode CANO 23 81 xx yy XX yy b7 b6 b5 b4 b3 b2 bl bO b7 b6 b5 b4 b3 b2 bl bO CANO error report 0 0 0 DLC gt 8 in ISO 15765 receive manager DLC gt 8 in 7x_18 routine DLC gt 8 in non ISO 15765 receive manager 0 CAN error interrupt Copy of CANO rflg register wake up interrupt flag CAN status change interrupt flag receiver status bit 1 receiver status bit 0 transmitter status bit 1 transmitter status bit 0 overrun interrupt flag receive buffer full flag receive status bits 00 01 10 11 receive ok receive error count between 0 and 96 receive warning receive error count between 97 and 127 receive error receive error count greater than 127 bus off transmit error count greater than 255 transmit status bits 00 Ol 10 11 transmit ok transmit error count between O and 96 transmit warning transmit error count between 97 and 127 transmit error transmit error count greater than 127 bus off transmit error cou
163. smit Command buffer mode fault xx Header byte of message in error 3 Command error 31 xx 4 5 6 Configuration reports 62 06 00 62 06 01 62 08 00 62 08 01 62 24 00 62 24 01 62 40 00 62 4001 Echo of transmitted messages disabled Default Echo of transmitted messages enabled Time stamps are disabled Default Time stamps are enabled Do not receive any network messages Receive network messages Default Direct communication with DLC xx Returned status byte yy Returned data byte Transmit acks to host are disabled Transmit acks to host are enabled Default Command processing delay Delay is xx timer ticks 5x 63 command Advanced Vehicle Technologies Inc Page 157 AVT 85x Multiple Interface VPW mode 63 58 01 xx ADC channel 1 reading 63 58 02 xx ADC channel 2 reading 63 58 03 xx ADC channel 3 reading 64 58 xx yy Zz Periodic ADC report xx ADC channel 1 reading yy ADC channel 2 reading zz ADC channel 3 reading 62 59 00 Periodic ADC reports are disabled Default 62 59 xx Periodic ADC reports are enabled Report interval is xx times the timer 5x 63 command 62 5B xx Destination filter byte is set to value xx Default 00 disabled 62 5C xx Source filter byte is set to value xx Default 00 disabled 62 63 xx Master timer setting XX 01 98 30 msec 02 49 15 msec 03 20 48 msec 04 10 24 msec 05 5 12 msec 62
164. smit as many as ten 0A messages automatically The operator defines and sets up the desired periodic messages enables them and the AVT 83x unit will then transmit those messages at the defined interval without any operator intervention The AVT 85x will not generate a transmit ack when a periodic message is transmitted unless transmit forwarding 52 06 01 or 53 06 06 01 is enabled 10 4 1 Organization of Periodic Messages In KWP mode there is only one group of periodic messages Groupl Advanced Vehicle Technologies Inc Page 67 AVT 85x Multiple Interface All ten periodic messages are in Group1 All ten periodic messages can be set to operate in Typel or Type2 mode The periodic messages are numbered 01 to 0A inclusive Each message is independently disabled or enabled 7x 1B 05 command Each message has its own time interval 7x 1A 05 command valid only in Typel operations 10 4 2 Periodic Message Master Timer There is one timer that governs The Analog To Digital ATD functions Typel periodic messages Type2 periodic messages The time interval for that timer is set with the 52 63 xx command The available settings are 98 30 msec Default 49 15 msec 20 48 msec 10 24 msec 5 12 msec 10 4 3 Typel Periodic Messages Typel periodic messages operate independently of each other When Typel operations are enabled each enabled message in that group operates according to its own interval count The messa
165. sponse Startup Dedicated Connection Remote IP Address blank Remote Port blank Local Port 10001 Flush Mode Input Buffer Line to Network On Active Connection Disable On Passive Connection Disable At Time To Disconnect Disable Flush Mode Input Buffer Network to Line On Active Connection On Passive Connection At Time To Disconnect Packing Algorithm Packing Algorithm Idle Time Trailing Characters Send Immediate After Sendchars Sendchar Define 2 Byte Sequence Send Character 01 Send Character 02 Additional Settings Disconnect Mode Check for CTRL D to Disconnect Port Password Telnet Mode Inactivity Timeout Inactivity Timer Port Password Accept unconditional Nothing quiet No Active Connection Startup Disable Disable Disable Disable Force Transmit 12 ms None Disable Disable 00 00 Ignore DTR Disable Disable Disable Enable 0 0 blank Advanced Vehicle Technologies Inc Page 181 AVT 85x Multiple Interface Appendix A 21 Appendix C Raising the Internal Baud rate of the AVT 853 On the AVT 853 board there is a microcontroller that controls vehicle communications There is also the Lantronix XPort embedded serial server device that controls Ethernet TCP IP communications with the host computer The microcontroller and the XPort communicate with one another using an embedded high speed serial link The speed of that link affects total message or data throu
166. ssage as is 1 reformat message for ISO 15765 channel 0 4 11 bit ID right justified 29 bit ID right justified data Advanced Vehicle Technologies Inc Page 93 AVT 85x Multiple Interface CAN mode Data byte count limitations When ISO 15765 is disabled maximum is 8 data bytes When ISO 15765 is enabled maximum is 4095 data bytes LIN packet for transmission to the network alternate header formats LIN1 LINO 11 xx Oz Op qq rr ss XX count of bytes to follow Z channel 5 7 p 0 slave 1 master qq message ID rr Ss message data optional LIN1 LINO 12 xx yy Oz Op qq rr ss xx yy count of bytes to follow Z channel 5 7 p 0 slave 1 master qq message ID rr ss message data optional ABIC packet for transmission to the network alternate header formats LIN1 11 xx 15 Op qq rr ss tt XX count of bytes to follow 15 ABIC channel 5 p 0 slave 1 master qq PID protected ID rr CMD ABIC module command ss tt message data optional LIN1 12 xx yy 15 Op qq rr ss tt xx yy count of bytes to follow 15 ABIC channel 5 p 0 slave 1 master qq PID protected ID rr CMD ABIC module command ss tt message data optional KWP packet for transmission to the network alternate header formats Advanced Vehicle Technologies Inc Page 94 KWP AVT 85x Multiple Interface CAN mode 11 xx 06 qq rr ss XX count o
167. sseeeereeresrsrrsresresresresresrsrreresrenresresresreee 71 11 2 2 LUNE STGP Lt da ide lcd 72 T13 7 MESSAGE FILTERING irae en niria eani NS 73 11 3 1 Example Network MESSAGE iiia eae E EEEE es Savage lt EAST 74 11 3 2 Example A A es Leng E A NE EEA A E AN oes 74 11 3 3 EXAMP e A AE EO OE 74 11 3 4 EXAMPLE A A dr tO 74 11 3 5 Example HA A a a I A vad E E EAE EG 74 TEF MASK MATCH RESPOND FUNCTION siocaire ira aoaea e V E LTS S E AE EE dae a RES 75 11 4 1 Operational Overvi W iarann a a e a ted 75 11 4 2 Command SUNMOT lt lt A tt te an a a tt a e o eee 75 11 4 3 Example A aia 75 ES PERIODIC MESSAGE SUPPOR Tirada ia A A A ASA AAT 76 11 5 1 Organization Of Periodic Messages cnoi ee ai e A E EE RN E R 76 11 5 2 Periodic Message Master Timer g EE AIEE OTER A tent 76 11 5 3 Typel Periodic Messages arosine ER E REA REA SE T EAR codons 77 11 5 4 Lype2 Periodic Messages ueiaire roen E E EAR aia 78 11 5 5 Periodic Message Command S sd titanes 79 111 0 BLOCK TRANSMIT EXAMPLE costosos odos ssusossbecestyntecsevssevessnsodsvsesteuscenessSenvententen atacada aaa 79 WLS 0 TANIA IAS AAA OA 79 Advanced Vehicle Technologies Inc AVT 85x Multiple Interface 12 KWP STAND ALONE MODE oooococcconconoononnonnncnncnncnncanonncononaconcnanonncononncnnonncnn con non roo nonncn non con crn con ron roc nro Donise stee 80 T21 AA NN 80 AS CAMI IS AA NN O RN 80 12 2 1 Communications Example lt lt tb 8l 12 2 2 LiMe SAMP diana 82 123 INITIAEIZATION 4 s
168. st of commands supported while in the idle state Advanced Vehicle Technologies Inc Page 8 AVT 85x Multiple Interface 4 Host Computer Connection The AVT 852 uses a USB connection to the host computer Detailed information in the following paragraphs The AVT 853 uses an Ethernet connection to the host computer Detailed information in the following paragraphs 4 1 AVT 852 Connection to Host Computer The AVT 852 uses the FTDI embedded USB converter device FT245BL USB 1 1 operations are supported Connection to the host computer is with a standard USB A B cable The AVT 852 is powered by either the USB bus or the vehicle supply You can connect the AVT 852 to a host computer and it will be discovered by the host and the port will be enumerated Vehicle power is required for VPW Single Wire CAN K line and LIN communications USB driver software is provided by FTDI AVT has tested and currently recommends using the FTDI Virtual Com Port VCP drivers for communications between the user application and the AVT 852 board A separate document is available showing how to install the AVT 852 USB drivers That document is posted on the AVT web site Product Documents page Note that the virtual com port will show baud rate it does not really exist Select any baud rate 4 2 AVT 853 Connection to Host Computer The AVT 853 uses a Lantronix XPort embedded serial server to provide an Ethernet connection to the host computer
169. t 0 must match 1 don t care b5 0 b4 0 y channel 0 4 Z Mask number from 00 on up Number depends on ID Mask mode rr Mask value when ID Mask mode 8 rrss Mask value when ID Mask mode 4 rr ss Mask value when ID Mask mode 2 and acceptance ID has IDE 0 11 bit rr ss tt vv Mask value when ID Mask mode 2 acceptance ID has IDE 1 29 bit Acceptance ID register direct read x channel 0 4 y Acceptance ID register number 0 to 7 Acceptance ID register direct write x channel 0 4 y Acceptance ID register number 0 to 7 ZZ Register value to write Mask register direct read x channel 0 4 y Mask register number 0 to 7 Mask register direct write x channel 0 4 y Mask register number 0 to 7 ZZ Register value to write AE byte disable enable status query both CAN channels AE byte disable enable status query y channel 0 4 AE byte disable enable command y channel 0 4 Z 0 disable 1 enable Advanced Vehicle Technologies Inc Page 109 CANO CAN4 71 33 72 33 xx CANO CAN4 7134 72 34 xx CANO CAN4 71 35 72 35 0y 73 35 Oy zz CANO CAN4 71 36 74 36 Or xx yy CANO CAN4 71 37 7x 37 m0 mn rr ss tt AVT 85x Multiple Interface CAN mode Query for CAN ISO 15765 receive buffer time out value Set CAN ISO 15765 receive buffer time out value Time is in 174 8 msec increments Both CANO and CAN4 channels use this value
170. terface 7 4 1 CANO Channel Number CANO is designated channel 0 Note Bits in the upper nibble of the channel number have special meaning for some commands and responses 7 5 CANA 2 wire CAN For revision B1 boards CAN4 can be configured at the factory as a 2 wire CAN channel For revision D and F boards CAN4 can be software selected to be a 2 wire CAN channel CAN4 is a high speed 2 wire CAN channel that is ISO 11898 compliant It uses the Philips TJA1050 transceiver The CAN_H signal is routed to the D 15 network connector pin 3 The CAN_L signal is routed to the D 15 network connector pin 11 The AVT 85x board has been designed to support several different network termination schemes for CAN4 The factory default is the split termination consisting of two 60 ohm resistors in series across the CAN_H and CAN_L signal lines The mid point of the two termination resistors is routed through a 10 ohm resistor and a 10 000 pF ceramic capacitor to ground This configuration provides the standard 120 ohm DC termination and provides good common mode noise rejection Other termination configurations including Ford compliant AC termination are available contact the factory for details 7 6 CAN4 Single Wire CAN SWC For revision B1 boards CAN4 can be configured at the factory as a Single Wire CAN channel For revision D and F boards CAN4 can be software selected to be a Single Wire CAN channel
171. th the 52 69 00 command 7 7 1 1 LIN Secondary Operational Mode Channel Number When LIN mode is active as a secondary operational mode it is designated channel 5 ABIC operations in LIN mode only are designated by channel 15 7 7 1 2 KWP Secondary Operational Mode Channel Number When KWP mode is active as a secondary operational mode it is designated channel 6 7 7 2 Board revisions D and F Allowed Secondary Modes There are multiple secondary operational modes supported After entering CAN mode LIN1 and LINO modes are enabled The allowed secondary modes are e None 52 69 00 e LIN only 52 69 01 e KWP only 52 69 02 e LINO only 52 69 04 e LINI and LINO 526905 e KWPand LINO 5269 06 7 7 2 1 LINI Secondary Operational Mode Channel Number When LIN1 mode is active as a secondary operational mode it is designated channel 5 ABIC operations in LIN mode only are designated by channel 15 7 7 2 2 KWP Secondary Operational Mode Channel Number When KWP mode is active as a secondary operational mode it is designated channel 6 Advanced Vehicle Technologies Inc Page 21 AVT 85x Multiple Interface 7 7 2 3 LION Secondary Operational Mode Channel Number When LINO mode is active as a secondary operational mode it is designated channel 7 7 8 CAN Communications General Notes A CAN network has to consist of at least two functioning CAN nodes The AVT 85x can be one of the nodes Each CAN channel of the AVT
172. the board revision level and date e The Circuit Configuration revision level is written on the top component side of the PC board in black marker in the little white rev block Commands and Responses A list of commands responses error codes notes etc is provided at the end of this document 2 Glossary Common terms abbreviations acronyms and more sign Indicates a hex number ADC Analog to Digital Converter or Conversion CAN Controller Area Network CANO CAN channel 0 CAN4 CAN channel 4 Advanced Vehicle Technologies Inc Page 7 EEPROM FLASH ISP IDE ISO 11898 ISO 15765 32411 K line LIN RTR SRR TVS Typel Type2 SWC XOR AVT 85x Multiple Interface Electrically Erasable Programmable Read Only Memory Usually with the form of small rows and sectors Erase and program operations are usually done one sector at a time A form of EEPROM Usually with the form of large rows and sectors Erase and program operations are usually done for one sector at a time Means ISO 15765 process or processing Short acronym only used in this manual ID Extended When this bit 0 the CAN frame uses an 11 bit ID When this bit 1 the CAN frame uses a 29 bit ID extended ID An ISO specification for 2 wire CAN physical layer An ISO specification dealing with the formatting of data in the CAN frame data field Also used in sending blocks of data using CAN Also known as Multi Frame Messagi
173. time stamp interval is 2 microseconds Example 2 Baud rate is 33 333 kbaud The time stamp interval is 30 microseconds The time stamp rolls over at FFFF The 52 08 02 command enables time stamps for all channels The 53 08 Ox 02 command enables time stamps for channel x The time stamp clock is the same for both CAN channels and all other channels The time stamp is a 16 bit free running counter with millisecond resolution The time stamp rolls over at SFFFF 7 8 6 1 Transmit Acknowledgment Description Time stamps disabled 02 Ox Oy Transmit ack x channel 0 4 y transmit buffer number Time stamps enabled 04 rr ss Ox Oy Transmit ack Advanced Vehicle Technologies Inc Page 24 AVT 85x Multiple Interface rrss time stamp high byte low byte x channel 0 4 y transmit buffer number 7 8 6 2 Receive Message Description Time stamps disabled Ox qr tt vv ww zz mm nn x count of bytes to follow q b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 r channel 0 4 tt vv 11 bit ID right justified tt vv ww zz 29 bit ID right justified mm nn data Time stamps enabled Ox jj kk qr tt vv ww zz mm nn x count of bytes to follow jj kk time stamp optional q b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 r channel 0 4 tt vv 11 bit ID right
174. tion 51 24 Network messages query 52 24 00 Do not receive any network messages 52 24 01 Receive network messages Default 53 35 xx yy Direct communication with DLC xx Transmit Data or Configuration byte Advanced Vehicle Technologies Inc Page 150 51 40 52 40 00 524001 52 58 01 52 58 02 52 58 03 51 59 52 59 00 52 59 xx 51 5B 52 5B xx 51 5C 52 5C xx 51 63 52 63 xx 51 67 5267 01 52 67 02 AVT 85x Multiple Interface VPW mode yy Command byte Transmit acks query Do not send transmit acks to host Send transmit acks to host Default Command processing delay Delay is xx timer ticks 5x 63 command Only useful between commands does not otherwise affect operations Read ADC channel 1 terminal 1 Read ADC channel 2 terminal 2 Read ADC channel 3 terminal 3 Query for status of periodic ADC reports Disable periodic ADC reports Default Enable periodic ADC reports Report interval is xx timer ticks 5x 63 command Query for destination filter byte Set destination filter byte to value xx Default 00 disabled Query for source filter byte Set source filter byte to value xx Default 00 disabled Master timer status query Master timer setting XX 01 98 30 msec Default 02 49 15 msec 03 20 48 msec 04 10 24 msec 05 5 12 msec Query for internal baud rate setting AVT 853 only Set internal baud rate to 19 2 kba
175. to FLASH r 2 read data from FLASH ss tt start address must be on 512 byte boundary if storing start address can be any valid number if reading kk 11 number of bytes to store number of bytes to follow r 1 number of bytes to read r 2 ABX data count query ABX data count command XX yy count of bytes to be transmitted ABX control status query both channels ABX control status query for specified CAN channel ABX control command r channel 0 4 s 0 disable terminate operations s 1 enable start operations CAN channel activity status query both CAN channels CAN channel activity status query for channel CANy CAN channel activity command x channel 0 4 y 0 disable Default y 1 enable CAN channel activity query both CAN channels CAN channel activity query for specified CAN channel y channel 0 4 Query for CAN pacing timer both channels Advanced Vehicle Technologies Inc Page 111 AVT 85x Multiple Interface CAN mode 72 3F Ox Query for CAN pacing timer channel CANx x channel 0 4 73 3F Ox yy Set CAN pacing timer for CANx to value yy X channel 0 4 yy pacing timer value Timer interval is 1 msec Default 00 Refer to Section 7 8 4 5 for information about the 7x 3F command CANO CAN4 73 40 0x yy Query for ARC function status 74 40 Ox yy Oz Set ARC status for periodic message x channel 0 4 yy Periodic message number 01 to 64 Z 0
176. to xx milliseconds Default 19 25 KWP 51 4B Query for status of type of transmit checksum 52 4B 00 Transmit checksum is normal sum of bytes Default 52 4B 01 Transmit checksum is 2 s complement 52 4C xx Command processing delay Delay is xx timer ticks 5x 63 command Only useful between commands does not otherwise affect operations 51 50 Query for LIN1 bus baud rate 525001 LINI bus baud rate is 2400 baud 52 50 02 LIN1 bus baud rate is 9600 baud Default 52 50 03 LINI bus baud rate is 19200 baud 54 50 04 xx yy LIN1 bus baud rate is set by user and equal to 25 000 000 16 xxyy all values shown are decimal Example for LIN1 bus baud rate 9600 xxyy 00 A3 hex 163 decimal LIN1 51 52 Query for maximum frame time in milliseconds 52 52 xx Set maximum frame time to xx milliseconds Default 14 20 KWP 51 57 Query for data bits and parity type Advanced Vehicle Technologies Inc Page 98 52 97 xx 52 58 01 52 58 02 52 58 03 51 59 52 59 00 52 59 xx LIN1 LINO 515A 52 5A 00 52 5A 01 53 SA Ox Oy 51 63 52 63 xx LIN1 LINO 51 66 52 66 00 52 66 01 53 66 Ox Oy AVT 85x Multiple Interface CAN mode Set parity type and frame length All are one start bit and one stop bit XX 01 8 data bits no parity frame length 10 Default XX 02 8 data bits even parity frame length 11 XX 03 8 data bits odd parity frame length
177. tory default settings are provided in this appendix Please see the notes at the end of this Section To log into the AVT 853 XPort to view and or change the configuration use a web browser and enter the following address http 192 168 1 70 the factory default address NOTE XPort web pages reside in the XPort device and may be different than as described here That fact is not a problem The first web page to come up is the Port Properties page It is not recommended that changes be made to this page Factory default configuration information for the first three Menu buttons on the left hand side is provided below The buttons are Unit Configuration Server Properties and Port Properties The Unit Configuration page displays unit configuration only No changes can be made from this page If it is necessary to change any operational parameters go to the appropriate page change the parameters and then save them by selecting Update Settings The AVT 853 XPort will save the new parameters and then reboot It takes about 1 minute for the AVT 853 XPort to complete a reboot and return to normal operations with the new parameters in use Unit Configuration Page Select the button Unit Configuration to view current configuration of the AVT 853 XPort No changes are permitted from this page Factory default settings are shown below Server Configuration Product XPort Device Server Advanced Vehicle Technologies Inc Page 179 AVT
178. tronic Control Units require when in diagnostic mode Another use would be in a simulation scenario The AVT 85x will not generate a transmit ack when a periodic message is transmitted unless transmit forwarding 52 06 01 is enabled 11 5 1 Organization of Periodic Messages In VPW mode there is only one group of periodic messages Groupl All ten periodic messages are in Group1 All ten periodic messages can be set to operate in Typel or Type2 mode The periodic messages are numbered 01 to 0A inclusive Each message is independently disabled or enabled 7x 1B command Each message has its own time interval 7x 1A command valid only in Typel operations 11 5 2 Periodic Message Master Timer There is one timer that governs The Analog To Digital ATD functions Typel periodic messages Type2 periodic messages The time interval for that timer is set with the 52 63 xx command The available settings are 98 30 msec Default 49 15 msec Advanced Vehicle Technologies Inc Page 76 AVT 85x Multiple Interface 20 48 msec 10 24 msec 5 12 msec 11 5 3 Typel Periodic Messages Typel periodic messages operate independently of each other When Typel operations are enabled each enabled message in that group operates according to its own interval count The message is set up The interval count is defined The message is enabled The group is enabled for Typel operations 11 5 3 1 Typel Example Want to send two
179. ual length not equal to expected length b0 checksum error 1 ABIC packet received from the network alternate header formats LIN1 11 xx jj kk 15 Op qq rr ss tt XX count of bytes to follow jj kk time stamp optional 15 ABIC channel 5 Advanced Vehicle Technologies Inc Page 120 AVT 85x Multiple Interface CAN mode pp receive status byte defined below qq PID protected ID rr CMD ABIC module command ss tt message bytes LIN1 12 xx yy jj kk 15 pp qq rr ss tt xx yy count of bytes to follow jj kk time stamp optional 15 ABIC channel 5 pp receive status byte defined below qq PID protected ID rr CMD ABIC module command ss tt message bytes pp received status byte b7 frame time out b6 from this node b5 receive message too long b4 buffer closed by break b3 buffer opened without break b2 synch byte error bl receive message too short or actual length not equal to expected length b0 checksum error 1 KWP packet received from the network alternate header formats KWP 11 xx jj kk 06 pp qq rr ss XX count of bytes to follow jj kk time stamp optional 6 channel 6 pp receive status byte defined below qq Ir ss message data KWP 12 xx yy jj kk 06 qq rr ss Xx yy count of bytes to follow jj kk time stamp optional 6 channel 6 pp receive status byte defined below qq Ir ss message data pp received status byte b7 b6 From this dev
180. ud Set internal baud rate to 38 4 kbaud Advanced Vehicle Technologies Inc Page 151 52 67 04 52 67 08 52 67 FF 52 67 20 52 67 40 51 6A 52 6A xx 51 75 5x 75 yy ZZ 51 76 5x 76 yy ZZ 5177 5x 77 yy ZZ 51 78 52 78 00 52 78 01 71 0C AVT 85x Multiple Interface VPW mode Set internal baud rate to 57 6 kbaud Set internal baud rate to 115 2 kbaud Set internal baud rate to 230 4 kbaud Set internal baud rate to 460 8 kbaud Set internal baud rate to 921 6 kbaud New setting does not take affect until reset either power on reset or software reset F1 A5 XPort baud rate must be changed to match Query for red LED blink rate Set red LED blink rate 00 red LED off xx red LED blink rate interval is 174 8 msec FF red LED on MMR Mask Match Respond MMR function mask query MMAR function mask definition x count of bytes to follow yy zz mask bytes MMR function match query MMR function match definition x count of bytes to follow yy zz match bytes MMAR function respond query MMR function respond definition x count of bytes to follow yy ZZ command bytes MMR function status query Disable MMR function Enable MMR function Periodic message group operational control Status query Group is reported Advanced Vehicle Technologies Inc Page 152 72 0C Ox 73 0C 0x Oy 72 18 xx 7x 18 xx mm nn pp 72 1A xx 73
181. ueued for transmission Mode The counter is bits 7 4 of the byte specified in the command Increment the counter If enabled compute the J1850 CRC of the message data including Data0 to and including the counter byte If enabled write the resulting CRC to data byte after the counter The message is then queued for transmission Advanced Vehicle Technologies Inc Page 37 AVT 85x Multiple Interface 7 12 3 1 RUP Function Command Detailed explanation of the RUP function command 73 47 0x yy query for status x is the CAN channel 0 or 4 yy 1s the periodic message number 74 47 Ox yy Ov Disable Enable command Model x is the CAN channel 0 or 4 yy is the periodic message number v Q0 to disable 1 to enable 75 47 Ox yy Ov wz Disable Enable command Mode2 x is the CAN channel 0 or 4 yy is the periodic message number v 0 to disable 2 to enable w 0 to exclude the CRC byte 1 to include the CRC byte z location of the counter byteO to byte6 if the CRC byte is included byteO to byte7 if the CRC byte is excluded 7 12 4 CAC Function Description CAC Counter And Checksum A basic description of the operation of this function follows If you require detailed information contact me The counter is bits 3 0 of Datal Increment the counter Compute the checksum of the message using Exclusive OR every byte of the message from Datal to the end The end is determined by the number of data byte
182. ugh Mask0 e The result is compared to acceptance IDO e If there is a match the message is passed to the host e If there is not a match the process is repeated for acceptance ID1 and Mask etc until all acceptance ID and mask pairs are exhausted at which point the message is discarded For modes 2 and 4 when setting up the acceptance ID the user must specify in the command if the desired message ID is 11 bit or 29 bit Refer to the CAN Commands in Section 1 6 and Responses in Section 16 1 For modes 2 and 4 when the acceptance ID is for a 29 bit message the SRR bit in the acceptance ID is set to 1 and the mask location for the SRR bit is set to Must Match For modes 2 and 4 the operator can program the RTR bit as desired The associated mask RTR bit can also be configured as desired In mode 8 the size of the message ID 11 or 29 bit and the state of the RTR bit are irrelevant If all messages being received use an 11 bit ID modes 4 or 8 are recommended As a possible aid a bit pattern diagram to help compute acceptance IDs and masks for given message IDs is provided at the end of this document A few examples are provided below to assist in understanding message ID acceptance ID and mask operations ID and mask bits when specified in the command are right justified Advanced Vehicle Technologies Inc Page 26 AVT 85x Multiple Interface 7 9 2 1 ID Mask mode 2 29 bit IDs All ID bits 1D28 IDOO can be speci
183. um to a frame transmitted to the K line Default Network messages query Do not receive any network messages Receive network messages Default Query for P4 time transmit message inter byte time Set P4 time to xx milliseconds Default 05 Query for P3 time end of receive to start of transmit time Set P3 time to xx milliseconds Default 37 55 Query for receive buffer expiration time Set receive buffer expiration time to xx milliseconds Default 17 23 Query for status of transmit acks Do not send transmit acks to host Send transmit acks to host Default Query for W5 the bus idle time prior starting an initialization attempt Set time W5 to xx yy milliseconds Default 300 Query for FAST initialization low time Set FAST initialization low time to xx milliseconds Default 25 Advanced Vehicle Technologies Inc Page 163 51 48 52 48 xx 51 4B 52 4B 00 52 4B 01 52 58 01 52 58 02 52 58 03 51 59 52 59 00 52 59 xx 51 63 52 63 xx AVT 85x Multiple Interface KWP Stand Alone mode Query for FAST initialization high time Set FAST initialization high time to xx milliseconds Default 25 Query for status of type of transmit checksum Transmit checksum is normal sum of bytes Default Transmit checksum is 2 s complement Command processing delay Delay is xx timer ticks 5x 63 command Only useful between commands does not otherwise affect operation
184. umb if connected to a busy network and the AVT 853 is using static IP addressing set the net mask to 255 255 255 0 4 2 1 2 Hardware or MAC Address The hardware or MAC address of the AVT 853 can be found on the serial number sticker on the XPort device which looks like an RJ 45 connector The MAC address will start with 00 20 4A for Lantronix 4 2 1 3 Vehicle Network Interface Port Communications with the AVT 853 vehicle network interface is via port 10001 AM communications with the AVT 853 vehicle interface is in binary bytes not ASCII hex Refer to Section 4 3 for a description of the packetized communications protocol between the AVT 853 and the host computer All communications with the AVT 853 follow the exact same rules and formats as that of the AVT 852 and all other AVT interface equipment Advanced Vehicle Technologies Inc Page 10 AVT 85x Multiple Interface 4 2 1 4 Telnet Setup Port The configuration of the AVT 853 XPort device can be examined and changed using the Telnet application via port 9999 To start a Telnet setup session with the AVT 853 unit perform the following on a Win98 NT XP computer e Start Menu e Run e Type into the command line telnet 192 168 1 70 9999 e Click OK e When the session banner from the XPort is displayed you must hit ENTER within 5 seconds or else the session will time out and disconnect Refer to Appendix A at the end of this document for a listing of a Telnet sessio
185. unction Command Refer to the 7x 1F command in Section 16 for detailed information regarding the command format 7 13 ISO 15765 Support This may also be known as Multi Frame Messaging MEM Segmented Messages Keyword Protocol over CAN This protocol is often used in diagnostic modes for all messages and is particularly useful when moving large blocks of data Full ISO 15765 processing capability is provided for both transmitting and receiving messages for both CANO and CAN4 channels When ISO 15765 processing has been enabled for a CAN channel that CAN channel has the ability to receive or transmit single frame and multi frame messages up to the maximum of 4095 data bytes Also available is Address Extension AE support 7 13 1 Terms and Definitions AE Address Extension byte as defined in the ISO 15765 specification If being used it resides in the first byte or byteO of the CAN frame data field AE is used at the discretion of the system designer PCI Protocol Control Information byte The PCI byte is the first byte or byte in the CAN frame data field or if AE is being used the PCI byte is bytel in CAN frame data field The PCI byte tells the receiver how to process the CAN frame Flow Control A CAN frame with protocol handshaking information Padding Some networks require that all CAN frames be full length that is the data field of the frame consist of 8 bytes hence the frame is padded Receive A message from the CAN net
186. us The message will stay queued until then and thus prevent other periodic messages from being transmitted 8 3 5 1 Type2 Example Want to send three messages in sequence one message every 2 5 seconds Here is a sequence of commands to do this It is assumed that this is from a reset condition 1 LIN mode is only available in CAN mode Enter CAN mode El 99 2 Enable LIN operations this is the default condition 52 69 01 3 Set the master timer to 98 30 msec 52 63 01 4 Define periodic message 02 79 18 02 05 01 48 6B 10 41 0D 5 Enable periodic message 02 74 1A 05 02 01 6 Note that nothing will be transmitted until the group control is set to Type2 7 Define periodic message 04 79 18 04 05 00 48 6B 10 41 0D 8 Enable periodic message 04 74 1A 05 04 01 9 Define periodic message 07 7A 18 07 05 01 48 6B 10 41 OD 67 Advanced Vehicle Technologies Inc Page 62 AVT 85x Multiple Interface 10 Enable periodic message 07 74 1A 05 07 01 11 Set Group1 Type2 interval for a count of 19 decimal 25 the actual interval 2 4575 sec must use message 01 timer 74 1B 05 01 19 12 Enable Group1 for Type2 operations At this point all enabled messages in Group1 will begin transmitting in sequence one message every 2 4575 seconds 74 OC 05 01 02 8 3 6 Slave Response Message This mode of operation only applies to periodic messages that are designated as slave when setup If a slave res
187. used if the module flow control frame specified a time of 00 Empirical testing revealed the following results pacing count 00 frame spacing 258 microseconds Advanced Vehicle Technologies Inc Page 45 AVT 85x Multiple Interface pacing count 0A frame spacing 559 microseconds pacing count 14 frame spacing 1048 microseconds 7 13 9 Operation Examples Set the acceptance mask mode 7x 2B Set the acceptance mask s TK 2C ds Set the acceptance ID s for the message s expected Tx 2A Enable or disable message padding Tx 27 oer Enable or disable Address Extension AE 73 30 0x Oy Specify the flow control ID and AE byte if enabled 7x OF Enable ISO 15765 processing 73260x 01 Model or 7326 0x02 Mode2 Enable the CAN channel 73 11 Ox 01 7 13 9 1 Example 1 Model The user wants to set up the AVT 85x to exchange ISO 15765 formatted messages with a CAN module The specifics are e 2 wire CAN at 500k baud e 11 bit message IDs e No AE e Receive message ID 357 e Transmit message ID 246 The flow control frame ID is usually the same as the transmit message ID Here are the commands to set up CANO in sequence 1 Switch to CAN mode El 99 2 Set baud rate to 500 kbaud 73 0A 00 02 3 Set mask mode to 4 qty 4 16 bit masks 73 2B 00 04 Advanced Vehicle Technologies Inc Page 46 AVT 85x Multiple Interface Set mask0O to all bits must match 75 2C 00 00 00 00
188. v ww zz 29 bit ID right justified mm nn data O LIN packet for transmission to the network LIN1 LINO Ox Oy Op qq rr ss x count of bytes to follow y channel 5 7 p 0 slave 1 master qq message ID rr ss message data optional O ABIC packet for transmission to the network LIN1 Ox 15 Op qq rr ss tt x count of bytes to follow 15 ABIC channel 5 p 0 slave le master Advanced Vehicle Technologies Inc Page 92 AVT 85x Multiple Interface CAN mode qq PID protected ID rr CMD ABIC module command ss tt message data optional O KWP packet for transmission to the network KWP Ox 06 qqrrss x count of bytes to follow 6 channel 6 qq rr ss message data l CAN packet for transmission to the network alternate header formats CANO CAN4 11 xx qr tt vv ww zz mm nn XX count of bytes to follow q b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 O transmit message as is 1 format message for ISO 15765 r channel 0 4 tt vv tt VV WW ZZ mm nn CANO CAN4 11 bit ID right justified 29 bit ID right justified data 12 xx yy qr tt vv ww zz mm nn Xx yy count of bytes to follow q r tt vv tt vv WW ZZ mm nn b7 IDE 0 11 bit ID 1 29 bit ID b6 RTR 0 normal frame 1 RTR true remote transmit request b5 0 b4 0 transmit me
189. ve a message from the K line 05 06 00 C4 78 9A O indicates from the network 4 5 count of bytes to follow 06 channel 6 KWP 00 status byte no bits set indicates no errors detected C478 9A message data field transmit a message onto the K line 0B 06 A2 B4 11 22 33 44 55 66 77 88 0 indicates to the network B count of bytes to follow B 11 decimal 06 channel 6 KWP A2 B4 11 22 33 44 55 66 77 88 message data 10 3 2 Time Stamp Time stamps for both the transmit ack and received messages can be disabled or enabled The 52 08 Oy command format will affect all channels CAN KWP LINO The 53 08 06 Oy command format will only affect KWP channel 6 Transmit ack the time stamp is a two byte value immediately after the packet header byte s but before the KWP channel number 06 Receive message the time stamp is a two byte value immediately after the packet header byte s but before the KWP channel number 06 The time stamp is a 16 bit free running counter with millisecond resolution The time stamp rolls over at SFFFF 10 3 2 1 Receive Message Examples When time stamps are disabled a receive message example is 08 06 00 25 11 22 33 44 08 header byte indicates from the network 8 bytes follow 06 channel 6 KWP 00 status byte indicating no errors detected Advanced Vehicle Technologies Inc Page 66 AVT 85x Multiple Interface 25 message ID 11 22 33 44 message bytes When time stamps are enabled a
190. ve node C4 message ID 11 22 message data 8 2 5 Time Stamp Time stamps for both the transmit ack and received messages can be disabled or enabled using the 5x 08 command Transmit ack the time stamp is a two byte value immediately after the packet header byte s but before the LIN channel number 05 Advanced Vehicle Technologies Inc Page 58 AVT 85x Multiple Interface Receive message the time stamp is a two byte value immediately after the packet header byte s but before the LIN channel number 05 The 52 08 00 command disables all time stamps The 52 08 01 command enables time stamps where the time stamp is a 16 bit free running counter with 1 millisecond resolution The time stamp rolls over at FFFF 8 2 5 1 Receive Message Examples When time stamps are disabled a receive message example is 08 05 00 25 11 22 33 44 08 header byte indicates from the network 8 bytes follow 05 channel 5 LIN 00 status byte indicating no errors detected 25 message ID 11 22 33 44 message bytes When time stamps are enabled a receive message example is OA xx yy 05 00 25 11 22 33 44 OA header byte indicates from the network A or decimal 10 bytes follow xx yy time stamp xx is the high byte yy is the low byte 05 channel 5 LIN 00 status byte indicating no errors detected 25 message ID 11 22 33 44 message bytes 8 2 5 2 Transmit Ack Examples When time stamps are disabled a transmit ack example is 02 05 40 02
191. wing defaults are set e CANO and CAN4 operations are disabled e CANO baud rate is set to 500 kbaud e CAN4 baud rate is determined by hardware revision and configuration It may be either 500 kbaud or 33 3333 kbaud e D Mask mode is set to 4 for both channels e All IDs are set for 11 bit with a value of 07FF e All masks are set to zeros must match condition e LINI mode is enabled and the LIN1 bus speed is 9600 baud e LINO mode is enabled and the LINO bus speed is 9600 baud Only if LINO exists on the board 7 4 CANO 2 wire CAN CANO is a high speed 2 wire CAN channel that is ISO 11898 compliant It uses the Philips TJA1050 transceiver The CAN_H signal is routed to the D 15 network connector pin 6 The CAN_L signal is routed to the D 15 network connector pin 14 The AVT 85x board has been designed to support several different network termination schemes for CANO The factory default is the split termination consisting of two 60 ohm resistors in series across the CAN_H and CAN_L signal lines The mid point of the two termination resistors is routed through a 10 ohm resistor and a 10 000 pF ceramic capacitor to ground This configuration provides the standard 120 ohm DC termination and provides good common mode noise rejection Other termination configurations including Ford compliant AC termination are available contact the factory for details Advanced Vehicle Technologies Inc Page 19 AVT 85x Multiple In
192. with LIN protocol specification revisions 1 2 or 1 3 a receive error may be encountered The 5x 28 command can be used to enable or disable LIN message processing using the ID byte The default condition is this function is enabled When ID byte processing is enabled default the ID byte is used to determined expected message length When ID byte processing is disabled maximum frame time is used to determine the end of a LIN message frame Maximum frame time in milliseconds can be set using the 5x 52 command 8 2 2 Checksum Both Classic and Enhanced checksum methods are available through the 5x 5A command LIN revision 1 3 and earlier use the Classic checksum method LIN revision 2 0 and later use the Enhanced checksum 8 2 3 ID Byte Only Message If the Master on a LIN bus transmits the ID byte and no module on the bus responds with data then the message is an ID byte only message The default state is that the AVT 85x will throw out an ID byte only message and not tell the host The 5x 66 command selects whether or not the AVT 85x informs the host that an ID byte only was received The 52 66 00 command is the default condition Operation is ID byte only messages are discarded and nothing is sent to the host The 52 66 01 command causes the AVT 85x to notify the host that an ID byte only message was received and report the ID byte The format of the notification is time stamps disabled 03 05 03 xx or 03 05 83 xx 03 means
193. work to the host computer A message may be one or more CAN frames Separation Time A time parameter in the Flow Control frame Some networks require the Separation Time to have a specific value Transmit A message from the host computer to the CAN network A message may be one or more CAN frames 7 13 2 Modes of Operation Firmware version 1 0 and later introduced three modes of ISO 15765 operations Firmware version 0 9 and earlier only supported two ISO modes disabled now called Mode0 and enabled now called Model Advanced Vehicle Technologies Inc Page 41 AVT 85x Multiple Interface The three new ISO operating modes are described here 7 13 2 1 Mode0 Modeo0 is the default mode when CAN mode is entered It can be selected using the command 73260x 00 where x is the CAN channel number Mode0 means ISO 15765 processing is disabled for all receive messages CAN frames from the CAN network Only messages specifically indicated by the host are ISO 15765 formatted before being transmitted to the CAN network Refer to the beginning of Section 16 for information about formatting a transmit command 7 13 2 2 Model Model means ISO 15765 processing is enabled for all transmit and receive messages messages to and from the CAN network This mode is selected using the command 73260x 01 where x is the CAN channel number All messages through the AVT 85x interface for the specified CAN channel are treated and pro
194. x 02 Status report 83 11 0x 02 7 8 4 Transmit Command The fields and construction of a transmit command are shown here The transmit command is also explained in the Commands and Responses Section 16 Advanced Vehicle Technologies Inc Page 22 AVT 85x Multiple Interface There are three forms of the transmit command The number of bytes in the transmit command determines the format of the command to use 7 8 4 1 Transmit Command Format 0x The Ox form of the transmit command can be used when the byte count following the header is 0F or less Refer to the beginning of Section 16 for a complete description of the transmit command 7 8 4 2 Transmit Command Format 11 xx The 11 xx form of the transmit command can be used when the byte count following the header is FF or less Refer to the beginning of Section 16 for a complete description of the transmit command 7 8 4 3 Transmit Command Format 12 xx yy The 12 xx yy form of the transmit command can be used when the byte count following the header is 1004 or less that limit is imposed by ISO15765 Refer to the beginning of Section 16 for a complete description of the transmit command 7 8 4 4 Byte Count Limits The total number of message data bytes permitted in a transmit command depends on whether or not ISO 15765 processing is enabled or specified for the transmit command When ISO 15765 is disabled and not specified maximum is 8 data bytes When ISO 15765 is enabled or
195. x milliseconds KWP 62 4B 00 Transmit checksum is normal Default 62 4B 01 Transmit checksum is 2 s complement 62 4C xx Command processing delay Delay is xx timer ticks 5x 63 command LIN1 625001 LIN1 bus baud rate is 2400 baud 62 50 02 LIN1 bus baud rate is 9600 baud Default 62 50 03 LIN1 bus baud rate is 19200 baud 64 50 04 xx yy LIN1 bus baud rate is equal to 25 000 000 16 xxyy LIN1 62 52 xx Maximum frame time is xx milliseconds KWP 62 57 xx Parity type and frame length All are one start bit and one stop bit XX 01 8 data bits no parity frame length 10 Default xx 02 8 data bits even parity frame length 11 xx 03 8 data bits odd parity frame length 11 XX 04 7 data bits even parity frame length 10 xx 05 7 data bits odd parity frame length 10 63 58 O1 xx ADC channel 1 reading Advanced Vehicle Technologies Inc Page 135 AVT 85x Multiple Interface CAN mode 63 58 02 xx ADC channel 2 reading 63 58 03 xx ADC channel 3 reading 64 58 xx yy zz Periodic ADC report xx ADC channel 1 reading yy ADC channel 2 reading zz ADC channel 3 reading 62 59 00 Periodic ADC reports are disabled Default 62 59 xx Periodic ADC reports are enabled Report interval is xx timer ticks 5x 63 command LIN1 LINO 63 SA Ox Oy LIN checksum select X channel 5 7 y 0 LIN 1 3 Classic checksum Default 1 LIN 2 0 Enhanced checksum 62 63 xx Master timer
196. y bytes the host computer will send immediately following the command kk 11 valid range is 0001 to 0200 After the AVT 85x receives the command and all expected data bytes the AVT 85x will respond with 86 38 01 ss tt kk 11 7 14 2 4 ABX Byte Count 7x 39 This parameter is the count of bytes the ABX function is going to read from non volatile memory fill CAN frames and transmit Do not confuse this with the term count used in any other command This 1s the count of the total number of data bytes that the ABX function will transmit in sequential CAN frames Advanced Vehicle Technologies Inc Page 52 AVT 85x Multiple Interface 71 39 query for stored value 73 39 xx yy store the data count Xx yy number of bytes to transmit total 7 14 3 Command Description control There is only one command needed to commence an Auto Block Transmit operation Described below Once started the function will run to completion unless the user issues a disable command Remember that all parameters and data are stored in non volatile memory on the AVT 85x unit Thus once an AVT 85x unit has been initialized the user can start an Auto Block Transmit operation at any time There is no need to re initialize the ABX parameters just because the AVT 85x unit has been reset or power cycled Note that all of this can be automated using stored Auto Start Commands 7 14 3 1 ABX Control 7x 3A Prior to issuing this command the user must have in
197. yte time is xx milliseconds 62 2A xx P3 time end of receive to start of transmit time is xx milliseconds 62 2B xx Receive buffer expiration time is xx milliseconds 63 2C xx yy Key bytes from 5 baud initialization attempt xx and yy Advanced Vehicle Technologies Inc Page 171 AVT 85x Multiple Interface KWP Stand Alone mode 62 40 00 Transmit acks to host are disabled 62 40 01 Transmit acks to host are enabled Default 63 46 xx yy Bus idle time W5 prior to initialization attempt xx yy milliseconds 62 47 xx FAST initialization low time xx milliseconds 62 48 xx FAST initialization high time xx milliseconds 62 4B 00 Transmit checksum is normal Default 62 4B O1 Transmit checksum is 2 s complement 62 4C xx Command processing delay Delay is xx timer ticks 5x 63 command 62 57 xx Parity type and frame length All are one start bit and one stop bit XX 01 8 data bits no parity frame length 10 Default xx 02 8 data bits even parity frame length 11 XX 03 8 data bits odd parity frame length 11 XX 04 7 data bits even parity frame length 10 xXx 05 7 data bits odd parity frame length 10 63 58 01 xx ADC channel 1 reading 63 58 02 xx ADC channel 2 reading 63 58 03 xx ADC channel 3 reading 64 58 xx yy zz Periodic ADC report xx ADC channel 1 reading yy ADC channel 2 reading zz ADC channel 3 reading 62 59 00 Periodic ADC reports are disabled
198. yy Transmit a break to the network with duration xx yy microseconds approximately LINO 51 84 Query for P4 time transmit message inter byte time 52 84 xx Set P4 time to xx where xx is in increments of approximately 30 microseconds Default 02 Initialization KWP 61 11 CARB mode 5 baud initialization KWP 6x 13 yy zz FAST initialization x count of bytes to follow yy ZZ start communications message CAN configuration Advanced Vehicle Technologies Inc Page 102 CANO CAN4 710A 72 0A Oy 73 OA Oy zz CANO CAN4 71 OB 72 OB Oy 74 OB Oy rr ss AVT 85x Multiple Interface CAN mode Request baud rate settings for both CAN channels Request baud rate setting for channel CANy y channel 0 4 Set baud rate for CAN channel y channel 0 4 ZZ 00 user specified using 74 OB Ox rr ss command 01 1 Mbps 02 500 Kbps Default for CANO 03 250 Kbps 04 125 Kbps OA 33 333 Kbps Default for CAN4 OB 83 333 Kbps Request Bit Timing Register BTR settings for both CAN channels Request BTR settings for channel CANy y channel 0 4 Set Bit Timing Registers BTR for channel CANy y channel 0 4 rr Bit Timing Register 0 setting ss Bit Timing Register 1 setting Note Values loaded into BTRO and BTR1 depend on the value of the external resonator which is 8 0000 MHz CANO CAN4 LIN1 KWP LINO 71 0C 72 OC Oy 73 OC Oy Oz 74 OC Oy Ov Ow Periodic message grou

Download Pdf Manuals

image

Related Search

Related Contents

Datalib, manuel d`utilisation pour débutant21x15  Samsung MM-B7 User Manual  JETVAC ® ACCU  Avaya Contact Center User's Manual  Homeowners Guide  Pー04-ーーAシリー又  TERMO VENTILADOR DE CERÁMICA TW-2500W  notice d`installation Stûv 21 [fr]  img - DORAS  

Copyright © All rights reserved.
Failed to retrieve file