CAN/CAN-Gateway CG-ARM7/D/E User Manual (preliminary)
CAN/CAN Gateway CG-ARM7/D/E User manual CG-ARM7/D/E Document version: Documentation date: 1.01 October 06th, 2009 No part of this document or the software described herein may be reproduced in any form without prior written agreement from EMS Dr. Thomas Wünsche. For technical assistance please contact: EMS Dr. Thomas Wünsche Sonnenhang 3 D-85304 Ilmmünster Tel. +49-8441-490260 Fax +49-8441-81860 Our products are continously improved.
CG-ARM7/D/E CAN/CAN Gateway Content 1 2 3 4 Overview 5 1.1 Features 1.2 General Description 1.3 Ordering Information 5 5 6 Handling 7 2.1 Connection 2.2 Operation 2.3 Configuration 2.3.1 Configuration File 2.3.2 Programming the Device 2.4 LED 7 7 7 7 14 15 Technical Data 16 3.1 Pin Assignment 3.2 Limiting Values 3.3 Nominal Values 16 17 17 Appendix 18 4.1 Configuration File Example 4.2 Standard CAN Baud Rates 18 19 EMS Dr.
CAN/CAN Gateway CG-ARM7/D/E THIS PAGE INTENTIONALLY LEFT BLANK 4 EMS Dr.
CG-ARM7/D/E 1 CAN/CAN Gateway Overview 1.
CAN/CAN Gateway CG-ARM7/D/E 1.3 Ordering Information 6 12-20-414-20 CG-ARM7/D/E 12-20-412-20 CG-ARM7/D/E Version HS/LS 12-20-415-20 CG-ARM7/D/E Version LS/LS EMS Dr.
CG-ARM7/D/E 2 CAN/CAN Gateway Handling 2.1 Connection CG-ARM7/D/E has a male and a female SUB-D 9 plug to connect two CAN segments. An USB type B connector is intended for configuration purpose and for download of new firmware. Power may be supplied to the device either via the SUB-D or the USB connector. For the HS/LS version the CAN connection has a slightly different connection scheme. The assignment is described in chapter "3.1 Pin assignment". 2.
CAN/CAN Gateway CG-ARM7/D/E Some parameters are optional. If they are not defined, the gateway uses default settings. In the following all parameters are listed and described. comment # The configuration file can be provided with comments. Comments are prefaced with the character '#' and they end with the particular line. Example: # 1st comment key = value version # 2nd comment version The version number indicates the file format of the configuration file. It must be 1 for the actual version.
CG-ARM7/D/E btr1, btr2 CAN/CAN Gateway CAN bit timing The bit timing key indicates the speed of the particular CAN channel. BTR1 indicates the baud rate for CAN channel 1, BTR2 the baudrate for CAN channel 2. Both keys must exist in each configuration file. This keys are directly related to the CANBTR registers of the used controller LPC2119. This allows most flexible customization of the baudrate settings. The basic CAN clock is 48 MHz.
CAN/CAN Gateway CG-ARM7/D/E Example: # PIDs for CAN channel 1 # CAN 1: 11-bit IN-Id: 0x5 pidin1 = x5 # CAN 1: 29-bit OUT-Id: 0xA00 xpidout1 = xA00 # # # # # PIDs for CAN channel 2 CAN 2: 29-bit IN-Id:0x6E xpidin2 = x6E CAN 2: 29-bit OUT-Id: 0x1FFE xpidout2 = x1FFE deviceid device identifier During the configuration process via CAN it is needed that the device can clearly be identified inthe network. Thisprocess is based on the serial number of the device.
CG-ARM7/D/E password CAN/CAN Gateway password Using a password, the gateway can be protected against unauthorized access. If the key is not defined or the value is set to 0, password protection is disabled. The password is an up to 14-digit hexadecimal value. The password protection supports two security levels. For the highest level the most significan bit (56th bit) of the password must be 1.
CAN/CAN Gateway fil CG-ARM7/D/E routing The routing settings contain the filtering and mapping rules for a single identifier or a range of identifiers. Only specified identifier or ranges of identifiers are transmitted and, if existend, a mapping rule is applied. All incoming messages with identifiers to which no rule applies are ignored (defined programming identifiers excepted). Additionally the frame format must be set within the filtering rule.
CG-ARM7/D/E CAN/CAN Gateway Examples: # The received extended identifiers in the range of # 0x30 to 0x40 via CAN channel 1 are sent via CAN # channel 2 as standard identifiers in the range of # 0x400 to 0x410. xfil1s = x30 - x40 : x400 # The via CAN channel 2 received extended identifier # 0x1FFFFFFF is sent via CAN channel 1 as extended # identifier with the value 0x01.
CAN/CAN Gateway CG-ARM7/D/E 2.3.2 Programming the Device CG-ARM7/D/E is programmed by means of the configuration software. It offers the possibility to configure the gateway via the USB interface. An USB cable has to be used to connect to the host PC.
CG-ARM7/D/E CAN/CAN Gateway Screenshot of the download tool: 2.4 LED The device status is displayed by four LEDs. CAN1 Active If LED is on there is CAN bus activity on channel 1 CAN2 Active If LED is on there is CAN bus activity on channel 2 USB Active If LED is on there is USB bus activity Power If on the device is supplied with power and initialized EMS Dr.
CAN/CAN Gateway 3 CG-ARM7/D/E Technical Data 3.
CG-ARM7/D/E CAN/CAN Gateway 3.2 Limiting Values Parameter Min. Max. Storage temperature -40 80 °C Operating temperature -40 70 °C Supply voltage via CAN connectors -40 30 V Min. Typ. Max. Supply voltage 6 12 30 CAN Baudrates 10 10 1000 Unit 3.3 Nominal Values Parameter EMS Dr.
CAN/CAN Gateway 4 CG-ARM7/D/E Appendix 4.
CG-ARM7/D/E CAN/CAN Gateway # All standard identifiers from CAN channel # 2 are sent as standard identifiers to CAN # channel 1 sfil2s=x0-x7FF # All extended identifiers from CAN channel # 1 are sent as extended identifiers to CAN # channel 2 xfil1x=x0-x1FFFFFFF # All extended identifiers from CAN channel # 2 are sent as extended identifiers to CAN # channel 1 xfil2x=x0-x1FFFFFFF 4.