Você está na página 1de 24

Manual

E2CAN Gateway LC

Revision:

1. 1

Date:

03.12.2012

GER.1088

Brunner Elektronik AG
Industriestrasse 27
CH-8335 Hittnau
tel. +41 (0)44 953 1010
fax. +41 (0)44 953 1019
www.beh.ch info@beh.ch
Copyright 2009 Brunner Elektronik AG. The whole content of this document is protected by copyright. All rights are the property of Brunner Elektronik AG. Copies,
transmissions, modifications or links for public or commercial purposes without the prior written consent of Brunner Elektronik AG are prohibited. All information on
technical data, dimensions, colors etc. as well as product modifications are subject to change. The person who is responsible for application and equipment must personally
ensure that each application complies with any applicable requirements, regulations and provisions with regard to operation and safety. Brunner Elektronik AG does not
assume any liability for damages or injuries caused by the installation or the use of the device.

www.beh.ch

Index
1 Safety Instructions

2 Introduction
2.1 Overview
2.2 Product features

5
5
5

3 Technical details
3.1 Operating conditions
3.2 Electrical specifications
3.2.1 Power supply
3.2.2 USB
3.2.3 CAN
3.3 Mechanical data
3.4 Mounting
3.5 Connectors
3.5.1 CAN0 / CAN1 (RJ45)
3.5.2 USB (UBS B connector)
3.5.3 LAN (Ethernet, RJ45)
3.5.4 +24VDC (power jack 5mm/2.1mm)
3.5.5 S1
3.6 LEDs
3.6.1 STAT
3.6.2 CANTX
3.6.3 CANRX
3.6.4 LINK (Ethernet)
3.6.5 ACT (Ethernet)

6
6
6
6
6
6
7
7
7
7
7
8
8
8
9
9
9
9
9
9

4 C o m m u ni c a t i o n
4.1 Ethernet protocol
4.1.1 TCP stream from PC to gateway
4.1.2 TCP stream from gateway to PC
4.2 USB protocol
4.2.1 Format for CAN packets with 11bit identifier (10 or 14 byte length)
4.2.2 Format for CAN packets with 29bit identifier (14 or 18 byte length)
4.3 CANopen communication via horch
4.3.1 Device Configuration
4.3.2 CANopen SDO protocol
4.4 Write/Read an object over horch protocol
4.4.1 Example 1 Write
4.4.2 Example 2 Read

10
10
10
10
11
12
12
12
12
12
13
13
14

5 E t he r ne t D i s c o v e r y & C o nf i g P r o t o c o l
5.1 Search devices
5.2 Configure device

15
15
15

6 C AN O p e n o b j e c t d i r e c t o r y
6.1 Conventions
6.2 Communication segment
6.3 Manufacturer-specific segment

16
16
16
16

7 C AN o p e n C o m m a nd e r
7.1 E2Can gateway plugin
7.2 Connection settings
7.2.1 Ethernet

17
17
18
18
E2CAN Gateway LC Manual Rev. 1.1 2 24

www.beh.ch

7.2.2 Serial Port


7.2.3 USB HID
7.3 Configuring the device
7.4 Settings
7.4.1 Object list
7.5 Ethernet settings
7.5.1 MAC address
7.5.2 Default IP address
7.5.3 Subnet mask
7.5.4 Standard gateway
7.5.5 DHCP
7.6 Commands
7.6.1 Clear errors
7.6.2 Load defaults
7.6.3 Reset gateway
7.7 CAN baud rate
7.8 Performance Monitor

18
18
19
20
20
20
20
20
20
20
20
21
21
21
21
21
21

8 E 2 C a nI P C o nf i g - I P c o nf i g u r a t i o n t o o l
8.1 Search devices
8.2 TCP settings

21
21
21

9 Webinterface

22

10 Firmware update

22

11 USB driver installation

23

12 Standards
12.1 Quality Assurance
12.2 CE declaration of conformity

24
24
24

13 Information
13.1 Terminology

24
24

14 Ordering information

24

E2CAN Gateway LC Manual Rev. 1.1 3 24

www.beh.ch

1 Safety Instructions
The correct and safe operation of the unit implies its proper and professional transport, storage,
assembly, project planning and careful operation and maintenance.
Only trained and skilled staff is allowed to service this device. Disconnect supply
voltage before you start servicing.

E2CAN Gateway LC Manual Rev. 1.1 4 24

www.beh.ch

2 Introduction
2.1 Overview
The E2CAN Gateway LC is a powerful Ethernet to CAN gateway that provides simple and flexible access to
CAN systems via a PC. The application on the host communicates over a standard TCP/IP socket with a
ASCII protocol.
The device can also be used as a USB to CAN gateway. For the PC it is just a USB HID device, so no
driver installation is necessary.

2.2 Product features


Ethernet 10/100 Mbit/s, with auto crossover detection.
CAN 2.0A/B, ISO 11898, galvanically decoupled.
USB Interface
Powered over USB or by external Power Supply.
Sustained 100% CAN bus load over Ethernet.
Up to 6000 CAN Packets/s in each direction over USB.
Large CAN receive buffer.
DHCP or fixed IP address.
Multi-socket server.
CANOpen software tool for configuration over Ethernet or USB.
Comprehensive filter and analysis functions for CAN.

E2CAN Gateway LC Manual Rev. 1.1 5 24

www.beh.ch

3 Technical details
3.1 Operating conditions
Parameter
Operating temperature
Relative humidity

Symbol
Tj

Remarks / Conditions
Non condensing

Min.
-20
15

Typ.

Min.
9

Typ.

Max.
75
80

Unit
C
%

3.2 Electrical specifications


3.2.1 Power supply
Parameter
Supply voltage
Supply current

Symbol
VCC
ICC

Power consumption

Remarks / Conditions
VCC = 24V
Full VCC range.
Ethernet connected.

Max.
28

Unit
V
mA

1.5

52
1.25

The device can suffer damage if voltages greater than 33V are applied.
3.2.2 USB
Parameter

Symbol

Current consumption

Iusb

3.2.3 CAN
Parameter
CANH voltage range
CANL voltage range
Isolation voltage
ESD

Symbol
Vcanh
Vcanl
Uiso

Remarks / Conditions
No external power.
Ethernet connected.

Min.

Remarks / Conditions
Voltage to CAN_GND
Voltage to CAN_GND

Min.
-12
-12

human body model

Typ.

Max.

Unit

250

300

mA

Typ.

Max.
+12
+12
2.5
4

Unit
V
V
kV
kV

E2CAN Gateway LC Manual Rev. 1.1 6 24

www.beh.ch

3.3 Mechanical data

3.4 Mounting
This device is compatible with the DIN rail EN 50022, 35mm, for snap-on mounting.

3.5 Connectors
3.5.1 CAN0 / CAN1 (RJ45)
Pin #
Name
1
CAN H
2
CAN L
3
GND
4
5
6
7
GND
8
Shield
Shield

Function
Can High level
Can Low level
CAN Ground
wired through the device
wired through the device
wired through the device
CAN Ground
wired through the device

3.5.2 USB (UBS B connector)


Pin #
Name
Function
1
VCC
+5V
2
DUSB Data3
D+
USB Data+
4
GND
Ground

E2CAN Gateway LC Manual Rev. 1.1 7 24

www.beh.ch

3.5.3 LAN (Ethernet, RJ45)


Pin #
Name
Function
1
TX+
Transmit Data+
2
TXTransmit Data3
RX+
Receive Data+
4
RXReceive Data3.5.4 +24VDC (power jack 5mm/2.1mm)
Pin #
Name
Function
1
GND
Ground
2
12/24VDC
Supply voltage
3.5.5 S1
Action
Pressing the
Button during
operation
Pressing the
Button during
PowerOn

Executed Task
No function.
Switch the gateway to update mode.

E2CAN Gateway LC Manual Rev. 1.1 8 24

www.beh.ch

3.6 LEDs
3.6.1 STAT
LED off:
LED flashing:
LED flashing:

Device not powered or device is in update mode


1/sec device running, no fault
5/sec device running, fault condition triggered

3.6.2 CANTX
LED off:
LED flashing*:

Gateway does not set packets to CAN bus


Gateway sends packets to CAN bus

* If a single packet is sent, the LED is enabled for 10ms. The LED may look dimmed or be permanently
on if the data is send with high frequency.
3.6.3 CANRX
LED off:
LED flashing*:

Gateway does not receive packets from CAN bus


Gateway receives packets from CAN bus

* If a single packet is received, the LED is enabled for 10ms. The LED may look dimmed or be
permanently on if the packets are received with high frequency.
3.6.4 LINK (Ethernet)
LED off:
LED on:

No link (probably no cable or peer not powered)


Link present

3.6.5 ACT (Ethernet)


LED off:
LED flashing*:

No data transmission
Data transmission taking place (Rx/Tx)

*The LED may be permanently on if there is a lot traffic (also foreign broadcasts).

E2CAN Gateway LC Manual Rev. 1.1 9 24

www.beh.ch

4 Communication
The E2CAN GatewayLC allows access to CAN systems from a PC using Ethernet or USB.
The CAN Interface supports bitrates up to 1MBit/s. Any regular CAN packet types can be send/received
(including 29bit identifier and RTR).

4.1 Ethernet protocol


A TCP connection to the gateway can be established on port 7235 or 7236. A ASCII protocol is used for
communication. Each command is a text line with "\n" at the end of line. The TCP stream to gateway
and from gateway do have different format.
The streams should be generated as specified in this document. The parsing of the streams upon
reception should tolerate some format deviations, like "\r\n" at the end of line and upper case for hex
numbers.
4.1.1 TCP stream from PC to gateway
All protocol formats are defined with Regex.
4.1.1.1 Commands for packet transmission
The CAN data packets have the standard or extende identifier with 0 to 8 data bytes. All values are
hexadecimal. Hexadecimal numbers should be written lower case, without placeholders. The CAN remote
transmit request (RTR) is marked with r and has the identifier with up to 8 dummy data bytes, used to
encode the length of the requested data.
Description for CAN packets with standard identifier 11bit:
w (r )?0x[a-f0-9]{1,3} (0x[a-f0-9]{1,2} ){0,8}\n
Description for CAN packets with extended identifier 29bit:
W (r )?0x[a-f0-9]{1,8} (0x[a-f0-9]{1,2} ){0,8}\n
4.1.1.1.1 Examples
Outgoing CAN data packet with standard identifier and 8 data bytes:
"w 0x60b 0x80 0xff 0x60 0x0 0x0 0x0 0x4 0x5 \n"
Outgoing CAN data packet with extended identifier and 1 data byte:
"W 0x8a 0x0 \n"
Outgoing remote transmit request for 8 data bytes with standard identifier:
"w r 0x480 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 \n"
Outgoing CAN data packet with extended identifier (with maximum value) and 8 data bytes:
"W 0x1fffffff 0xff 0xff 0xa0 0xb 0xc 0x40 0x4 0x5 \n"
4.1.1.2 Command for CAN-Bitrate setting
The following command allows to set the CAN Bitrate in kBit/s. Description:
b (125|250|500|1000) \n
Example for setting CAN Bitrate to 500kBit/s
"b 500 \n"
4.1.2 TCP stream from gateway to PC
4.1.2.1 Format for CAN packet reception
The CAN packets from gateway do have the identifier (always hex and decimal) followed by 2
description flags. After the flags data packets do have 0 to 8 data bytes and Remote Transmit Requests
do have only a data length instead. Decimal numbers may have leading spaces (no leading zeroes).
Format overview: [Timestamp] <decimalIdentifer>/<hexIdentifier> : <flags> : <dataBytes>

E2CAN Gateway LC Manual Rev. 1.1 10 24

www.beh.ch

Fields:
Timestamp is in seconds, has 12 digits before the decimal point (with spaces as placeholder) and 6
digits behind the decimal point. The timestamp is added for compatibility purpose only and is
always set to 0.000000.
decimalIdentifer has at least 4 chars and a maximum length of 9 chars.
hexIdentifier is the identifier in hexadecimal format. It has at least 3 digits "0x000" to "0xfff" and
a maximum of 8 digits with the maximum value of "0x1fffffff".
Flags:
x|s extended or standard frame format.
D|R data or remote frame
dataBytes are always hexadecimal, without "0x" prefix, separated by a space.
Format description for CAN data packets:
\<[0-9]{1,9}/0x[a-f0-9]{3,8} : (s|x)D : ([a-f0-9]{2} ){0,8}\n
(s|x) s marks CAN packet with standard 11bit identifier, x marks extended 29bit identifier.
D marks for data packet.
Format description for CAN remote transmit requests:
\<[0-9]{1,9}/0x[a-f0-9]{3,8} : (s|x)R : \( [0-9]{1} \) \n
There is a legacy format extension for Timestamp. The following prefix can be added to every packet
\<[0-9]{1,12}.[0-9]{6}( )
4.1.2.1.1 Examples
Incoming CAN packet with 8 data bytes
"1434/0x59a : sD : 4f 01 10 00 00 00 00 00 r\n"
Incoming CAN packet with extended header and 2 data bytes
"8272/0x2050 : xD : ff 00 \r\n"
Incoming CAN packet with identifier only (no data bytes)
"
0/0x000 : sD : \r\n"
Incoming remote transmit request
" 520/0x208 : sR : (length=8) \r\n"
Incoming CAN packet with extended header and 2 data bytes
"536870911/0x1fffffff : xD : ff 00 \r\n"

4.2 USB protocol


The gateway connects to USB as a HID device and can transmit USB report with 64 data bytes every
1ms. The format of the USB report is:
1 byte
Report ID, always 0x3F
1 byte
Packet type (higher 4 bit), Number of packets in this report (lower 4 bits).
2 bytes
SequenceNumber of the USB report, little endian.
60 bytes
Data area for 0..n Packets (all of same type, packet length is known by Packettype).
Packet type:
1
CAN packet with 11bit identifier, no timestamp
2
CAN packet with 11bit identifier, with timestamp
3
CAN packet with 29bit identifier, no timestamp
4
CAN packet with 29bit identifier, with timestamp
5-15
reserved

E2CAN Gateway LC Manual Rev. 1.1 11 24

www.beh.ch

4.2.1 Format for CAN packets with 11bit identifier (10 or 14 byte length)
2 byte Identifier_Flags_Length
11bit identifier (bit 0..10)
1bit RTR (bit 11)
4bit length (bit 12..15)
8 byte data
4 byte timestamp, optional
4.2.2 Format for CAN packets with 29bit identifier (14 or 18 byte length)
1 byte length
1 byte flags (bit0 = ExtendedID, bit1 = RTR)
4 byte identifier
8 byte data
4 byte timestamp, optional

4.3 CANopen communication via horch


The gateway can be accessed as CANopen device via node ID 126. Only SDOs are used for configuration.
4.3.1 Device Configuration
Parameters like IP Address Settings, CAN Bitrate, CAN Filters are stored immediately on change.
Parameters can be reset to defaults by a command.
Update to a newer firmware version does not reset parameters. However downgrade to older firmware
version will reset all parameters including IP address settings.
4.3.2 CANopen SDO protocol
Knowledge of the CiA CANopen specifications is necessary. All CANopen devices do have a "object
dictionary" with data entries, called "objects". These objects are addressed by a 16bit "index" and a
8bit "subindex". There are rules and conventions for index/subindex usage. One way to access the
values (objects) of the object dictionary is the SDO protocol, which will be explained in this chapter.
SDO protocol uses, like all other CANopen protocols, CAN packets with 11 bit identifier. All SDO packets
do have constant data length with 8 data bytes.
4.3.2.1 SDO packet format (from/to a device)
Identifier
0x600+n for SDO request, 0x580+n for SDO response.
Byte 0
SDO header byte
Byte 1,2
Index of the object
Byte 3
Subindex of the object
Byte 5..7
Data value with 1, 2 or 4 bytes length or a error code with 4 bytes.
Values with multiple bytes are little endian.
4.3.2.1.1 SDO header byte for writes
0x23
write request with 4 byte value
0x2B
write request with 2 byte value
0x2F
write request with 1 byte value
0x60
write response to a successful write (any value type)
0x80
response to a failed write, e.g. a readonly value or nonexisting value

E2CAN Gateway LC Manual Rev. 1.1 12 24

www.beh.ch

4.3.2.1.2 SDO header byte for reads


0x40
read request (for any value type)
0x43
read response with a 4 byte value
0x4B
read response with a 2 byte value
0x4F
read response with a 1 byte value
0x80
response to a failed read, e.g. a nonexisting value
The response to a failed read/write is called "SDO abort". It has a index and subindex. However the
data value is replaced by a error code. The error codes are defined in the CiA 301 specification, however
manufacturer specific codes are possible too.

4.4 Write/Read an object over horch protocol


4.4.1 Example 1 Write
NodeId:
Objekt:
Subidex:
Size:
Data:

1 (Device 1)
0x6040 Controlword
0
2 Byte data (INTEGER16)
0x76 (Shutdown)

TCP/IP Horch String: "w 0x601 0x2B 0x40 0x60 0x00 0x76 0x00 0x00 0x00 \n"
w
Horch command sending a standard can message
0x601 CobiId master (0x60+NodeId)
0x2B
SDO Protocol header (2 Byte)
0x40
lowerByte Object
0x60
higherByte Object
0x00
Subindex
0x76
1 Data byte lowest
0x00
2 Data byte
0x00
3 Data byte
0x00
4 Data byte highest
\n
Telegram completion
Response string: "1409/0x581 : sD : 60 40 60 00 00 00 00 00 \n"
1409/0x581: CobiId slave Dec&Hex (0x50+NodeId)
: sD : CAN-Message in standard format (can be ignored)
0x60
SDO Protocol header (write OK)
0x40
lowerbyte object
0x60
higherbyte object
0x00
Subindex
0x00
1 Data byte lowest
0x00
2 Data byte
0x00
3 Data byte
0x00
4 Data byte highest
\n
Telegram completion

E2CAN Gateway LC Manual Rev. 1.1 13 24

www.beh.ch

4.4.2 Example 2 Read


NodeId:
Object:
Subidex:
Size:
Data:

1 (Device1)
0x6041 Statusword
0
2 Byte data (INTEGER16)
no data

TCP/IP Horch String: "w 0x601 0x40 0x41 0x60 0x00 0x00 0x00 0x00 0x00 \n"
w
Horch command sending a standard can message
0x601 CobiId Master (0x60+NodeId)
0x40
SDO brotocol header (read object ok)
0x41
lowerbyte Object
0x60
higherbyte Object
0x00
Subindex
0x00
1 Data byte lowest
0x00
2 Data byte
0x00
3 Data byte
0x00
4 Data byte highest
\n
Telegram completion
Response string: "1409/0x581 : sD : 4b 41 60 00 37 10 00 00 \n"
1409/0x581: CobiId Slave Dec&Hex (0x50+NodeId): sD :: CAN-Message in standard format (can be
ignored)
0x4b
Command byte (2 Byte data read OK)
0x41
lowerbyte Object
0x60
higherbyte Object
0x00
Subindex
0x37
1 Data byte lowest
0x10
2 Data byte
0x00
3 Data byte
0x00
4 Data byte highest
\n
Telegram completion

E2CAN Gateway LC Manual Rev. 1.1 14 24

www.beh.ch

5 Ethernet Discovery & Config Protocol


A UDP based protocol allows discovering and configuration of E2CAN Gateway LC in a LAN.
The requests and responses are ASCII strings, sent as UDP broadcasts. The devices are identified by their
MAC address. Server Port (Gateway) is 15000. Client Port (PC) is 15001.
All hexadecimal values should be send with lower case. Upper case should be accepted on receive too.

5.1 Search devices


The following command discovers all gateways in the LAN (in the same broadcast domain).
Request:
BEH identify request\r\n
Response contans the MAC address and the decimally coded firmware version. The firmware version has
typically one digit for the major version, 2 digits for minor version.
BEH identify request\r\nMAC: (([0-9a-f]{2}:){6} S: [0-9]{3}\r
Request Example:
BEH identify request\r\n
Response Example:
BEH identify request\r\nMAC: 00:09:77:05:00:0f S:147\r\n

5.2 Configure device


The following command configures the IP settings. The IP settings are: IP address, Netmask, Standard
Gateway and DHCP enable. The device, which should accept the configuration is addressed my its MAC
address.
Format Overview:
MAC:xxxxxxxxxxxx:SN:nnnnnnnn:mmmmmmmm:gggggggg:d\r\n
with:

xxxxxxxxxxxx = MAC address bytes, hexadecimal.


nnnnnnnn = IP address, hexadecimal
mmmmmmmm = Netmask, hexadecimal
gggggggg = Standard Gateway address, hexadecimal
d = DHCP enable (values: 0 or 1)

Regex format description:


MAC:[0-9a-f]{12}:SN: [0-9a-f]{8}:[0-9a-f]{8}:[0-9a-f]{8}:[0-1]\n
The Parameter check is limited to a single parameter (no check if the whole parameter set is valid). The
parameters are denied individually (the response may contain some old values):
The IP address is valid if it is in the range 1.0.0.0 to 254.255.255.255 (hex 0x01000000 ..
0xfeffffff).
Netmask is valid if all set bits are on the left (MSB) and all cleared bits are on the right (LSB).
Values 0.0.0.0 and 255.255.255.255 are also accepted.
Standard gateway must be a valid IP address or 0.0.0.0
DHCP enable must be 0 or 1
Request Example:
MAC:00097705000f:SN:0a64205a:ff000000:0a640001:1\r\n
Response Example:
MAC:00097705000f:SN:0a64205a:ff000000:0a640001:1\r\n

E2CAN Gateway LC Manual Rev. 1.1 15 24

www.beh.ch

6 CANOpen object directory


6.1 Conventions
R:
RW:
W:

Read-only
Read and write
Write-only

6.2 Communication segment


Index
0x1000
0x1018
0x1018
0x1018
0x1018

Subindex
0
1
2
3
4

Size
32
32
32
32
32

Access
R
R
R
R
R

Description
Device Type
Identity Object Vendor ID
Product Code
Revision Number
Serial Number

6.3 Manufacturer-specific segment


Index
0x2000
0x2001
0x2004
0x2009
0x2130
0x2130
0x2130
0x2130
0x2130
0x2130
0x2130
0x2136
0x2138
0x2138
0x2138
0x2138
0x2160
0x2180
0x2194

Subindex
0
0
0
0
1
2
3
4
5
6
7
0
1
2
3
4
0

Size
16
32
32
8
16
16
16
32
32
32
8
16
32
32
32
32
8

Access
W
R
R
RW
R
R
R
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW

Description
Command: Bit 0 Reset Gateway / Bit 2 Load Default Values
Status: Bit 0 Error in Error List / Bit 1 Password Active
Software Version
CAN Transmit Delay
MAC address 0
MAC address 1
MAC address 2
Static IP address (if DHCP is disabled)
Standard Gateway
Subnet Mask
DHCP 0=inactive 1=active
Ethernet Connection Timeout Unit 1ms
CANOpen PDO Filter Node 0-31 1=off / 0=on
CANOpen PDO Filter Node 32-63 1=off / 0=on
CANOpen PDO Filter Node 64-95 1=off / 0=on
CANOpen PDO Filter Node 96-127 1=off / 0=on
CAN baud rate 0=125kbit / 1=250kbit / 2=500kbit / 3=1000kbit

32

RW

Various packet counters (only for debug purposes)


More information in the EDS file

The objects are little endian, except MAC address.

E2CAN Gateway LC Manual Rev. 1.1 16 24

www.beh.ch

7 CANopen Commander
The CANopen Commander software is a powerful application enabling configuration of complex CANopen
devices. Different device-specific plugins are available that enable simple and quick configuration. One
particular feature is flexible expandability by adding optional plugin modules.
The E2Can gateway supports connections over USB and Ethernet.

7.1 E2Can gateway plugin

E2CAN Gateway LC Manual Rev. 1.1 17 24

www.beh.ch

7.2 Connection settings


Open connection settings using the menu: File -> Connection Settings

7.2.1 Ethernet
Select "Ethernet" and configure the settings in "Ethernet Settings".
Click "OK": The settings are stored in a file. If "Cancel" is used to exit the dialogue, the parameters
changed here are lost.
Click "Connect" in the "File" menu to connect to the device.
7.2.2 Serial Port
Not supported for this device.
Virtual COM Ports (like USB CDC) are listed as regular COM Ports.
7.2.3 USB HID
Select "USB Port" and configure the settings in "USB Settings". The USB PID is hexadecimal.
Click "OK": The settings are stored in a file. If "Cancel" is used to exit the dialogue, the parameters
changed here are lost.
Click "Connect" in the "File" menu to connect to the device.

E2CAN Gateway LC Manual Rev. 1.1 18 24

www.beh.ch

7.3 Configuring the device

The software detects an unknown, not yet configured device.


The configuration can be started with the "Configure Device Now" button.

A window opens up displaying a selection of devices and plugins.


The EDS file in XDD format is selected in the top window.
Note: EDS files must be kept in the "CANDeviceProfiles" folder.
Example plugin "BEH_DriveSetup.Panel" in the bottom left window is moved to the right with the arrow
button.
Note: Plugins must be kept in the "GUI_Plugins" folder.
Click "OK" to save the settings in a file. If "Cancel" is used to exit the dialogue, the parameters changed
here are lost.

E2CAN Gateway LC Manual Rev. 1.1 19 24

www.beh.ch

7.4 Settings
7.4.1 Object list
See Section 6, CANOpen object directory, for a detailed description of the objects. All objects are read
with "GetObjects". The object list is used to read different objects of the gateway (and to also write
some of them). Refer to the "Access" column to see which objects have write access:
Text:
R:
RW:
RWP:

Multiple subindexes give a text. Non-writeable.


Object is read-only and so cannot be written.
Object is read/write and can be written.
Object is read/write protected - writing is password-protected.

7.5 Ethernet settings


7.5.1 MAC address
Displays the MAC address of the gateway.
7.5.2 Default IP address
This IP address is assigned when DHCP is disabled.
However if DHCP is enabled and assignment of IP address by server has failed, the Interface takes a
address from the 169.254.x.x/255.255.0.0 range.
7.5.3 Subnet mask
Specifies the subnet mask when DHCP is disabled.
7.5.4 Standard gateway
Specifies the default gateway for operation without DHCP.
7.5.5 DHCP
Enabling/disabling of DHCP. When DHCP is disabled, the default IP address is used.

E2CAN Gateway LC Manual Rev. 1.1 20 24

www.beh.ch

7.6 Commands
7.6.1 Clear errors
Clears the error entries.
7.6.2 Load defaults
Loads objects with the default values. A new connection must then be established.
7.6.3 Reset gateway
Software reset of the gateway. For an Ethernet connection, a new connection must then be established.
Because it can take longer than 20 seconds for the software to detect that there is no longer a
connection, it is advisable to manually perform a disconnect.

7.7 CAN baud rate


Selection of the baud rate. Value in kBit/s.

7.8 Performance Monitor


The Total Received CAN Packets counter contains the count of received packets over CAN.
The Total Send CAN Packets counter contains the count of the transmitted packets over CAN.

8 E2CanIPConfig - IP configuration tool


Easy-to-use tool for configuring the IP address of the gateway.

8.1 Search devices


Click the "Search" button and wait about 4 seconds. Select the device in the list.

8.2 TCP settings


Configure your settings and click the "Write Config" button.
Even if just enabling DHCP, please enter a placeholder for IP Address, Subnetmask and Gateway.

E2CAN Gateway LC Manual Rev. 1.1 21 24

www.beh.ch

9 Webinterface
The device provides a simple Web Interface with following possibilities:
Get device identity and statistics (the list may change with firmware version).
Clear statistics.
Search devices on the CAN bus (by reading CANopen Object 0x1000).
Check and set the IP Address Settings over Webinterface.

10 Firmware update
The gateway firmware can be updated over Ethernet. The Update does not reset stored user parameters.
The update sequence is:
Connect the gateway to Ethernet (to a Network or directly to a PC, with regular Ethernet cable). The
Ethernet LEDs of the interface are disabled in update mode.
Press and hold the Button "S1" and enable the power of the gateway. Release the Button.
If the "STAT" LED is off, the gateway is in update mode, otherwise repeat the previous step.
Start LMFlash.exe and set the parameters according to the picture. Enter a free IP address under
"Client IP Address" (this will be the IP address of the gateway during the update). Enter the MAC
address of the gateway under "Client MAC Address".

E2CAN Gateway LC Manual Rev. 1.1 22 24

www.beh.ch

Select the firmware file and start the firmware update by clicking the "Program" button. Warning:
only PRG1074 should be flashed to this hardware, otherwise you can damage the hardware.

Potential problems during update:


If you see the error "Problem starting the TFTP Server!" you should kill the tftpd.exe using the
task manager or disable the windows service "Trivial File Transfer Protocol".
The firewall can interfere with the firmware update.
The phase "Attempting to connect" can take up to 60s. After the time you should check the
network settings, power and "STAT" LED.
The status bar message "Program Complete n Bytes Programmed" signalizes a successful update.
The "STAT" LED should be automatically enabled again.

11 USB driver installation


If the device is connected to a PC by a USB cable, the operating system will recognise it as USB HID
device and load the standard HID driver without any user interaction.
No configuration steps are required.

E2CAN Gateway LC Manual Rev. 1.1 23 24

www.beh.ch

12 Standards
12.1 Quality Assurance
Specification
ISO 9001:2008

Details
Quality Management

12.2 CE declaration of conformity


Hereby, Brunner-Elektronik AG , declares that this device (GER.1088) is in compliance with the essential
requirements and other relevant provisions of EMC Directive 2004/108/EC, RoHS Directive 2002/95/EC.
EMC Directive 2004/108/EC as attested by conformity with the following harmonized standards:
EN55022 Class B
EN61000-6-2 Immunity for industrial enviorment according to:

Electrostatic Discharge Immunity IEC 61000-4-2


Radiated RF Immunity IEC 61000-4-3: 2002

13 Information
13.1 Terminology
BEH
CAN

Brunner Elektronik AG, Hittnau


Controller Area Network: serial communication bus

14 Ordering information
Ordering information
Item number
GER.1088.010A

Item
E2CAN gateway LC

Specification

E2CAN Gateway LC Manual Rev. 1.1 24 24

Você também pode gostar