background image

UM-0086-A2

 

CANgate User’s Manual 

Page 34 

 Watch 

the 

RS232 Rx

 and 

RS232 Tx

 LEDs when you send the 

VERSION

 command. They should both flash briefly to 

indicate reception of the command and transmission of the response. 

 

If you are using a USB to RS232 converter, check whether its Tx and Rx LEDs flash. If the converter's TX LED doesn't 
flash then either you are talking to the wrong COM port, or CANgate has signalled the host to stop sending. Double 
check the flow control settings on both devices, and try closing then reopening the connection in DeTransfer. 

CAN Bus Errors are reported 

 

Check that the bit rate you have set using the 

CONNECT

 command matches the bit rate in use on the CAN network. 

 

Check that the polarity of the network connection is correct (CAN-HI signal connected to CAN1-Hi or CAN2-Hi on 
CANgate). 

 

Check that the CAN network is correctly terminated. This may require the addition of a terminating resistor, see 

CAN 

Bus Type and Termination

 

(P9)

 

 

Check that the CAN network you are connecting to is actually a 

high speed

 (ISO 11898-2) CAN network. 

 

If CANgate is configured to send CAN frames, verify that there is at least one other CAN device connected and 
operating at the correct bit rate. A bus error will result if a transmitted CAN frame is not properly acknowledged by the 
receiving device. 

Errors occur when sending a large program to CANgate 

 

Check flow control settings on CANgate and host computer or data logger. Note that DT80 series data loggers with 
firmware version less than 6.08 do not support flow control on the serial sensor port. It is recommended that the logger 
firmware be upgraded to the latest available release. 

Every command seems to generate an error message 

 

This may occur if you fail to send the 

END

 command following an earlier 

BEGIN

. All commands other than numbered 

slot definition commands are invalid when inside a BEGIN-END block. Send an 

END

 command to restore proper 

operation. 

SNOOP returns no data 

 

Verify that the ECU is correctly wired to the CAN port you specified in the 

SNOOP

 command 

 

Ensure that the bit rate has been set for the CAN port in use, using the 

CONNECT

 command 

 

Verify that the ECU is powered correctly. If you are talking to a single ECU on the bench then it may require one or 
more connector pins to be linked to indicate to it that the ignition switch is on. 

 

Check the LED for the CAN port. It should flash while the snoop is active as messages are received. (If the other CAN 
port is connected to an active bus then its LED may also flash during the snoop.) 

 

If the CAN LED gives a brief flash at two second intervals then this may indicate that bus errors are occurring, causing 
CANgate to disconnect from the bus then retry every 2 seconds. Switch on Verbose mode to see whether bus error 
messages are being returned. If so, refer to the Bus Errors section above. 

Broadcast CAN data are not returned 

In other words you have defined a RECV, RECVE or RECVJ memory slot but nothing is returned when it is polled 

 Use 

the 

STATUS

 command to verify that the slot definition has been accepted by CANgate. Remember that in 

non-verbose mode no error messages are issued. If some slots don't appear in the status display or don't look right, 
switch on Verbose mode and send the slot definition(s) again to see if any error messages are reported. 

 

Double check all of the memory slot definition parameters, especially ECU address and priority (for RECVJ). Note that 
a given ECU will generally only implement a subset of the possible set of PGNs/PIDs. 

 

Is the specified CAN ID or PGN being broadcast by the ECU? Use the 

SNOOP

 or 

SNOOPJ

 command to verify this. If 

the ID/PGN doesn't appear in the snoop list then it's not being broadcast. Note that for infrequently broadcast 
parameters you may need to extend the snoop time (eg. 

SNOOP 1 60000

 to have CANgate listen for messages for 

60 seconds) 

 

It is possible that at the time the slot was polled, no data had yet been received. Note that the 

RP

 command should not  

be appended to the end of a RECV/RECVE/RECVJ slot definition, because at that time it is almost certain that no 
messages will have been received in the time since the definition command was processed. 

 

Check the CAN LED. Once the memory slot has been set up, the LED should flash when matching messages are 
received. Note that if any J1939 slots are defined, the LED will flash on receipt of any multi-packet message. (Non 
matching multi-packet messages will be discarded by the CANgate firmware.) 

 Only 

one memory slot can reliably receive a data field longer than 8 bytes from a multi-packet J1939 broadcast. If you 

define two or more slots which return more than 8 bytes of data then they may sometimes return no data, depending 
on the timing of the broadcast messages. If you need to receive data from multiple multi-packet PGNs then multiple 
slots should be used, each configured to return no more than 8 bytes. 

 

When receiving multi-packet messages using RECVJ, check that the specified start/end byte positions don't extend 
past the actual size of the message – if they do then no data will be returned. The value 0 can be used as the endByte 
parameter (in fact it is the default), which means the last byte received for a particular message. 

Содержание CANgate

Страница 1: ...Intelligent Data Logging Products CANgate User s Manual A guide to programming wiring communications www datataker com...

Страница 2: ...EPT AS EXPRESSLY PROVIDED IN THIS WARRANTY STATEMENT THERMO FISHER DISCLAIMS ALL OTHER WARRANTIES WHETHER EXPRESS OR IMPLIED ORAL OR WRITTEN WITH RESPECT TO THE INSTRUMENTS INCLUDING WITHOUT LIMITATIO...

Страница 3: ...Summary 15 Command Reference 16 Commands and Parameters 16 Slot Definition Commands 16 RECV Receive Standard ID CAN Messages 16 RECVE Receive Extended ID CAN Messages 17 SEND Transmit Standard ID CAN...

Страница 4: ...minal Control 30 KWP2000 OBD II ISO 14230 Requests 30 Reading Fault Codes 31 OBD II 31 J1939 31 Using CANgate with a DT8x Data Logger 32 Escaping Control Characters 32 Serial Sensor Direct Mode 33 Usi...

Страница 5: ...N ports are hot pluggable and all CANgate settings are saved in non volatile flash memory so that the unit will resume its configured tasks following a power interruption Typical CANgate application A...

Страница 6: ...Unit GPS Global Positioning System ID Identifier ISO International Standards Organisation NMEA National Marine Electronics Association OBD On Board Diagnostics PGN Parameter Group Number PID Parameter...

Страница 7: ...ows Pin Signal Function 1 5V out 5Vdc output 200mA max 2 GND Ground 3 CAN1 HI CAN port 1 high 4 GPS RXD GPS port Receive Data input 5 CAN1 LO CAN port 1 low 6 CAN2 HI CAN port 2 high 7 CAN2 LO CAN por...

Страница 8: ...agram Note By default the CANgate host port operates at a high baud rate 57600 baud At this speed the maximum cable length for the host computer or data logger connection is approximately 5 metres ass...

Страница 9: ...ysical layer as defined in ISO 11898 2 SAE J2284 This is by far the most widely used physical layer The important characteristics of this standard are two wire 5V differential signalling bit rate 10kb...

Страница 10: ...then an external termination resistor may be required Direct connection to a single ECU In this case a short 1m cable is used so the two 120 resistors are combined into one 60 resistor If a long cabl...

Страница 11: ...ff off off x x x x off 38400 off off ON x x x x off 19200 off ON off x x x x off 9600 off ON ON x x x x off Host port baud rate 115200 ON off off x x x x off hardware x x x off x x x off Host port flo...

Страница 12: ...sive and active For RECV RECVE RECVJ and GPS slots CANgate passively receives all matching messages then returns the last known data value either at a fixed rate or when requested by the host data log...

Страница 13: ...ing Commands CANgate memory slots and other settings are configured by sending textual commands via the host port The available commands are detailed in the Command Reference P16 If CANgate is directl...

Страница 14: ...cters after the apostrophe up until the end of the line will be ignored Run Mode and Program Mode CANgate has two operational modes Run Mode is the normal mode of operation Following power up CANgate...

Страница 15: ...ddr sampleRate FORMAT options slot RECVJ CANport PGN startByte bit endByte bit ECUaddr priority sampleRate FORMAT options slot RQSTJ CANport PGN startByte bit endByte bit ECUaddr priority sampleRate F...

Страница 16: ...ot specified then 8 is assumed If bit is not specified then 1 is assumed sampleRate is the rate at which to return values to the host integer in ms must be multiple of 100ms May also be ALL in which c...

Страница 17: ...ed connect the two CAN ports together and set up the RECV slot on the other port Examples SEND 2 0x302 1122FF07 RP This will immediately send a CAN message on CAN port 2 The message s identifier will...

Страница 18: ...negative response and indicates that an invalid request was made All messages are transmitted using the ISO 15765 network layer protocol This protocol fragments long messages into multiple CAN frames...

Страница 19: ...slot That is it listens for CAN messages with a particular extended identifier extracts the required data field then returns it to the host when polled or at regular intervals or after every message...

Страница 20: ...ter D or M or N default N If N normal is specified then the indicated field is returned as is Otherwise the indicated field and the next field are interpreted as a latitude or longitude value with for...

Страница 21: ...specifies the data type integer floating point etc and possibly some other formatting details If no conversion specifier is present which is the default the data value will be output in raw hexadecim...

Страница 22: ...that the last matching CAN message had the data 01234567AABBCCDD RECV 1 0x100 1 2 returns 0123 CR LF RECV 1 0x100 1 2 FORMAT 100 returns 29100 00 CR LF 0123 hex scaled by 100 RECV 1 0x100 1 2 FORMAT r...

Страница 23: ...of responses may not match the order of the memory slots Examples RP 1 150 Poll all defined memory slots RQSTJ 2 65226 3 6 FORMAT f n RP SEND 1 0x142 112233 RP The RP command is often appended when d...

Страница 24: ...time all incoming CAN messages on the specified port are received For each distinct CAN identifier that was received the following information is displayed identifier type standard 11 bit STD or exte...

Страница 25: ...cified both CAN ports are measured This command measures the traffic load on one or both CAN ports and reports it as a percentage of the theoretical maximum for the bit rate in use It should be noted...

Страница 26: ...es 2 8 end Flags c0820000 Sample 0 ms 1 RECV CAN1 RxID 0x0001 RxBytes 1 8 1 1 Flags c0020000 Sample 0 ms 2 RECV CAN1 RxID 0x0002 RxBytes 1 8 1 1 Flags c0020000 Sample 0 ms 3 RECV CAN1 RxID 0x0003 RxBy...

Страница 27: ...s sent by CANgate will be displayed eg CAN2 TX 18EC00FF 132C0007 FFEBFE00 which shows that a message has been sent on CAN2 with identifier 0x18EC00FF and the indicated data value if bit 1 1 then all C...

Страница 28: ...adcast PGNs J1939 based systems typically have a multitude of SPNs Suspect Parameter Numbers each representing an individual measured quantity or status A group of related SPNs will be broadcast over...

Страница 29: ...d causes the memory slot to be immediately polled which will cause the request to be immediately sent Note that it doesn t make sense to poll a RECVJ slot immediately after defining it because at that...

Страница 30: ...at any one time Terminal Control The following example is intended to be used with an ANSI VT100 terminal or emulator Two data values are extracted from received CAN messages with ID 0x212 and one fro...

Страница 31: ...eg RQST 1 0101 RP 81066060 The most significant 8 bits 81 of the 32 bit result contains the most pertinent information In this case b31 is set which indicates that the Malfunction Indicator Light MIL...

Страница 32: ...ed memory slots a number of 1SERIAL commands within one or more logger schedules typically one 1SERIAL command per parameter of interest These commands will normally send a poll command RP memslot the...

Страница 33: ...logger connection from now on will be ignored by the logger and will instead be forwarded to the serial sensor port ie to CANgate Furthermore all normal text output from the logger eg real time data...

Страница 34: ...also flash during the snoop If the CAN LED gives a brief flash at two second intervals then this may indicate that bus errors are occurring causing CANgate to disconnect from the bus then retry every...

Страница 35: ...pear in the received data stream which will probably disrupt the parsing of the returned data With the logger in pass through mode verify that CANgate is configured for normal operation with no extran...

Страница 36: ...message returned if in verbose mode CAN1 BUS ERROR DISCONNECTED The most common cause for this is an incorrectly configured bit rate although it may also be caused by noise or an intermittent electri...

Страница 37: ...version 6 Type RESET to clear any existing CANgate configuration 7 Type VXVX All CANgate LEDs will turn on to indicate that the bootloader is active Some random characters may be returned as the bootl...

Страница 38: ...1 stop bit Flow Control Not supported Protocols NMEA 0183 Host Data Logger Computer Interface 1 RS232 port Port Speeds 9600 19200 38400 57600 default 115200 baud Serial Parameters No parity 8 data bi...

Страница 39: ...r Consumption Idle 0 75W 50mA 15V Maximum CANgate only 2 25W 150mA 15V Maximum CANgate external device drawing 200mA from 5V output 3 75W 250mA 15V Physical Construction Anodised aluminium plastic sur...

Страница 40: ...ly to a mode 0x01 request The second byte is the PID and the third and subsequent bytes are the actual data value PID hex Data Size bytes Description Scale Offset Units 00 4 PIDs supported b31 0 PIDs...

Страница 41: ...e travelled since DTCs cleared 1 0 km 32 2 Evaporative system vapour pressure 0 25 8192 Pa 33 1 Barometric pressure 1 0 kPa abs bytes 1 2 Sensor 1 WR lambda 1 Equivalence ratio 0 0000305 0 34 4 bytes...

Страница 42: ...rain B body C chassis or U network For example P0118 Engine Coolant Temperature Circuit High Input P0203 Injector Circuit Malfunction Cylinder 3 U0003 High Speed CAN Communication Bus Open When a DTC...

Отзывы: