Insys i-modul Ethernet Designer’s Guide

Category
Networking
Type
Designer’s Guide
Designer's Guide
i-modul Ethernet 3.x
Copyright © September 12 INSYS MICROELECTRONICS GmbH
Any duplication of this manual is prohibited. All rights on this documentation and
the devices are with INSYS MICROELECTRONICS GmbH Regensburg.
Trademarks
The use of a trademark not shown below is not an indication that it is freely avail-
able for use.
MNP is a registered trademark of Microcom Inc.
IBM PC, AT, XT are registered trademarks of International Business Machine Cor-
poration.
INSYS®, e-Mobility LSG® and e-Mobility PLC® are registered trademarks of INSYS
MICROELECTRONICS GmbH.
Windows™ is a registered trademark of Microsoft Corporation.
Linux is a registered trademark of Linus Torvalds.
Publisher:
INSYS MICROELECTRONICS GmbH
Hermann-Köhl-Str. 22
D-93049 Regensburg, Germany
Phone: +49 941 58692 0
Fax: +49 941 58692 45
Internet: http://www.insys-icom.com
Date: Sep-12
Item: 31-22-04.007
Version: 1.2
Language: EN
Content
1 General ....................................................................................................5
1.1 Application Example..............................................................................................6
1.2 Difference between the i-modul Ethernet 3.x and older versions ..........................6
1.3 History ...................................................................................................................7
2 Technical Data .........................................................................................8
2.1 General ..................................................................................................................8
2.2 Physical Features...................................................................................................8
2.3 Dimensions............................................................................................................9
2.4 Height Profile.........................................................................................................9
2.5 Electrical Features .................................................................................................9
3 Interfaces ...............................................................................................10
3.1 Serial Interface (P1)..............................................................................................10
3.2 Connector Strip P2 - Network..............................................................................11
3.3 Connector Strips..................................................................................................12
3.4 IO Signals ............................................................................................................12
3.4.1 Digital inputs and outputs ...................................................................... 12
3.4.2 Reset ...................................................................................................... 13
3.4.3 Indication Signals ................................................................................... 14
4 Remote Configuration via TELNET .........................................................15
5 UDP Connections...................................................................................16
5.1 Setting IP Address via PING and ARP..................................................................17
5.1.1 Under Windows ..................................................................................... 17
5.1.2 Linux....................................................................................................... 18
6 IP Block Formation.................................................................................19
7 Responses and Numerical Codes...........................................................23
8 Overview AT Commands .......................................................................24
9 CE-/EMC-compatible Integration............................................................42
4 Sep-12
i-modul Ethernet 3.x General
1 General
The INSYS communication modules are designed for remote data transmission in
the industrial and commercial field.
The fields of application are, for example: remote maintenance, remote monitoring,
remote configuration, POS, MDE, time registration or decentralized data collection.
All modules provide a standardized RS-232 interface (5 V TTL level) and a network
interface.
The modules are hardware- and largely function-compatible and can therefore be
easily exchanged on the base board.
The i-modul Ethernet 3.x maps a serial interface transparently on an IP port.
INSYS MICROELECTRONICS provides a free virtual COM port driver. With this
driver, a PC application under Windows can address the serial interface on the i-
modul Ethernet 3.x via an interposed local COM interface. The virtual COM port
driver transforms the IP data into transparent data for the application.
5
General i-modul Ethernet 3.x
1.1 Application Example
Zentrale Arbeitsstation
Internet
Ethernet
Steuerung i-modul
Etherne
t
1.2 Difference between the i-modul Ethernet 3.x and older
versions
More efficient controller
Higher baud rates at the serial interface
Configurable CTS polarity (for RS-485)
Password-protected Telnet port
IP configuration via DHCP
Note
E-mail functions and autobaud are no longer supported.
6
i-modul Ethernet 3.x General
1.3 History
Version Additional functions
V1.20 IO tunneling (AT#IOT)
IP via ARP / ping
Leased line (AT&L<n>)
V1.21 DNS support
Baud rate can be set via AT+IPR
V1.22 Max IP packet size (AT#MSS)
Individual value query
End character for packet aggregation
Software handshake
V1.23 DNS assignment via DHCP
V1.24 VCOM support
ICMP Redirect
V1.25 OEM Version
V1.26 Behavior for UDP connection establishment (ATS0)
7
Technical Data i-modul Ethernet 3.x
2 Technical Data
2.1 General
Interfaces RS-232 (TTL), Ethernet 10 Mbit/s
Protocols ARP, ICMP, TCP/IP, UDP/IP, DHCP, DNS
Baud rates 300, 600, 1.200, 2.400, 4.800, 9.600, 19.200, 20.833, 38.400,
41.667, 57.600, 115.200, 230.400, 460.800
Data formats 8N1, 8E1, 8O1, 8N2, 7E1, 7O1, 7N2, 7E2, 7O2
Handshake Hardware (RTS/CTS), Software (Xon/Xoff) or no handshake
I/O 2 digital inputs (Pull-up), 2 digital outputs
Temperature range -20 °C - 70 °C (before calendar week 21/2006: 0 to 70°C)
2.2 Physical Features
Dimensions w x l x h 2.22 in x 2.22 in x 0.50 in
Weight approx. 0.78 oz
Pitch dimension of the connector 0.08 in
Diameter of the fastening holes 0.10 in
Plug height over board edge 0.25 in
8
i-modul Ethernet 3.x Technical Data
2.3 Dimensions
2.4 Height Profile
This specified height profile is the maximum height profile for INSYS i-modules.
However, the exact height profile can differ.
Note
Please observe the maximum height profile for your design to
reserve the use of all, also future technology, and to preserve
the compatibility for possible design changes.
2.5 Electrical Features
All specified technical data was measured with a nominal input voltage, full load,
and an ambient temperature of 77.00 °F. The threshold value tolerances are subject
to the typical fluctuations.
Voltage 5 V DC ±5 %, optional 3.3 V
Current consumption type. 150 mA, max. 200 mA
9
Interfaces i-modul Ethernet 3.x
3 Interfaces
3.1 Serial Interface (P1)
24-pin connector strip
Pin Type Signal Description
1 GND Ground
2 Supply VCC 5 V DC supply voltage
3 GND Ground
4 Input TXD~ Transmit signal of the RS-232 line; TTL level
5 GND Ground
6 Output RXD~ Receive signal of the RS-232 line; TTL level
7 GND Reserved for 2nd ID pin
8 Input RTS~ Request To Send; TTL level (RS-232 signal)
9 Output ID PIN Ethernet: GND
10 Output CTS~ Clear To Send; TTL level (RS-232 signal)
11 Input RESET Reset
12 Input DTR~ Data Terminal Ready; TTL level (RS-232 signal)
13 Output OH~ Off Hook (Link, Active)
14 Output DCD~ Data Carrier Detect; TTL level (RS-232 signal)
15 Output RI~ Ring Signal; TTL level (RS-232 signal)
16 Output DSR~ Data Set Ready; TTL level (RS-232 signal)
17 Output UA Switch output; TTL level
18 Input UE Input; TTL level
19 Output UA2 Switch output; TTL level
20 Input UE2 Input; TTL level
21 GND Ground
22 NC Not wired
23 NC Not wired
24 GND Ground
10
i-modul Ethernet 3.x Interfaces
3.2 Connector Strip P2 - Network
8-pin connector strip for RJ45 connection
i-modul Ethernet 3.x: 8-pin connector strip
Version 3.xa – old: 1.0 Version 3.xb – old: 2.0
PI
N
Sig-
nal
Connection to
RJ45
Sig-
nal
Connection to
RJ45
1 Tx+ 1
2 Tx- 2 Rx- 6
3 Rx+ 3
4 Rx- 6 Rx+ 3
5
6
7 Tx- 2
8 Tx+ 1
The signals can be directly applied to the RJ45 plug.
RJ45 jack
Front view
Notes:
Between the Ethernet signals and any other potential, a blocking
distance of at least 0.098 in (2.5 mm) must be observed (testing
voltage 1kV).
The transmit strip conductors must be at least 3.937 in (100 mm)
wide, and run parallel with the same length.
The receive strip conductors must be at least 0.984 in (25 mm)
wide, and run parallel with the same length.
The lines between the module and the RJ45 must be as short as
possible. They should have no kinks with 90° angles and have as lit-
tle through-connections as possible.
11
Interfaces i-modul Ethernet 3.x
3.3 Connector Strips
Recommended connector strips to connect the module to the customer applica-
tion:
24-pin connector (P1): SAMTEC TW Series 2-row 0.08” pitch
Fischer SLY 6 / 81 24 Z
8-pin connector (P2): SAMTEC TW Series 2-row 0.08” pitch
Fischer SLY 6 / 81 8 Z
3.4 IO Signals
3.4.1 Digital inputs and outputs
Pin Signal Type Level Description
17 UA Output TTL Switch output 1:
Normal state: Can be set to “high” or “low” via the command
AT*Yx to switch an external device.
IOLmax = 5 mA, IOHmax = 50 mA
When the current settings are queried, the current status is
displayed with AT&V.
18 UE Input TTL Input 1:
Can be activated by a short circuit at GND. In open condition,
they lie over pull-up resistors at logical “1”.
The status of the input can be queried via the software com-
mand AT*I.
19 UA2 Output TTL Switch output 2:
Normal state: Can be set to “high” or “low” via the command
AT*Yx to switch an external device.
IOLmax = 5 mA, IOHmax = 50 mA
When the current settings are queried, the current status is
displayed with AT&V.
20 UE2 Input TTL Input 2:
Can be activated by a short circuit at GND. In open condition,
they lie over pull-up resistors at logical “1”.
The status of the input can be queried via the software com-
mand AT*I.
The IO signals can be queried or set via AT commands. Furthermore, signals can be
transmitted transparently to a remote terminal (see IO tunneling).
12
i-modul Ethernet 3.x Interfaces
I/O tunneling:
It is necessary for the transmission that at the two involved devices the address
and port set in AT&Z1 equal the according address (AT#IP) and the port (AT#PORT)
of the remote terminal. At both devices AT#IOT=1 must be activated.
The transmission of the inputs to the remote terminal takes place via UDP packets.
The UDP packets are automatically sent every 30 seconds, or within 1 second if
changes occur at the inputs. They include the status of the two alarm inputs UE
and UE2. The remote terminal processes the packets and sets its outputs UA and
UA2 accordingly. It is thus possible to transmit 2 I/O lines from one device to an-
other one in a simple way.
The transmission of the IO signals via UDP takes place in the background and is
independent from a TCP data connection that may exist parallel.
Warning!
A UDP connection is not possible in connection with IO tunneling.
3.4.2 Reset
Pin Signal Type Level Description
11 Reset Input TTL Reset:
Normal state: 1 (internal pull-up resistor)
RESET active: 0 (short circuit with GND)
Normal RESET: Continuous actuation, at least 3s
Factory reset: 3 pulses 100 ms to 500 ms
Connection abort: 1 pulse 100 ms - 500 ms for data connection
Factory reset:
Besides the normal RESET function (3 sec. continuous actuation), the RESET input
can be used to restore the factory defaults (AT&F), the network settings, as well as
the baud rate (AT*S) and the data format (AT*U) of the i-modul Ethernet 3.x.
Within 10 seconds at least 3 low impulses with a duration of 100 to 500 ms must
be applied at the RESET input. Afterwards, the i-modul Ethernet 3.x resets all pa-
rameters (including the passwords) to the factory defaults and restarts.
Connection abort:
With a single pulse at the RESET input, an existing data connection can be inter-
rupted.
13
Interfaces i-modul Ethernet 3.x
3.4.3 Indication Signals
Pin Signal Type Level Description
13 OH~ Output TTL Off Hook displays LINK OK or ACTIVE, depending on the set-
ting (AT&O)
Normal state: 1
LINK OK/ACTIVE: 0
15 RI~ Output TTL Ring Indicator:
Normal state: 1
Ring: 0
Model connection of the OH/RI signals (use only low power LEDs):
Some signals at the interface have a slightly different function from a modem or
other modules:
OH („Off Hook“):
For a modem, Off Hook indicates that the modem occupies the phone line.
For the i-modul Ethernet 3.x, OH indicates the status of the network connection
(„Link“). When OH is active (low), a physical network connection to a remote ter-
minal (hub/switch) exists.
OH can serve as a simple diagnostic option to indicate if the network wiring is in
order.
Alternatively (AT&O1), OH can indicate that a connection exists.
RI („Ring Indicate“)
For each incoming connection request (SYN packet for TCP/IP) RI is switched to
active for approx. 100 ms. The connection can then be accepted manually (com-
mand ATA) or is automatically accepted for S0>0 after the defined number of re-
ceived SYN packets in S0.
In UDP mode, incoming UDP packets (also empty packets without content) are
calculated instead of SYN packets.
14
i-modul Ethernet 3.x Remote Configuration via TELNET
4 Remote Configuration via TELNET
Besides the serial RS-232 interface, the i-modul Ethernet 3.x can also be configured
via the network, using AT commands. A TELNET terminal is started at a network
PC and connected to the TELNET port of the module. After the password query,
the user will be in remote configuration mode. All available AT commands can be
entered. This also allows for a remote update of the firmware (AT**) or for a con-
nection setup (ATD). If the AT command is switched off via RS-232 using AT&X1,
the TELNET configurator is the only possibility to set the module.
The user name and password are determined via AT#TLU and AT#TLP (Default: in-
sys/insys). The configuration port number is set with AT#TEL (default: 23).
Warning!
Some TELNET clients try to negotiate several terminal options with the
module during the connection setup. The i-modul Ethernet 3.X will al-
ready rate these bytes as user name.
Example: INSYS MICROELECTRONICS ETHERNET V3, FW V1.00,
31.09.2004
REMOTE ACCESS.
User name: **********
In this case, the connection setup would fail, even if the user entered the correct code now.
The user can either repeat the login or use another TELNET client.
For some programs, this option may also be turned off. (Example TeraTerm: re-
move the TELNET checkmark during the TCP/IP connection setup)
INSYS MICROELECTRONICS recommends TeraTerm by T. Teranishi as TELNET
client to use for controlling functions via AT commands. The free software can be
downloaded at http://www.vector.co.jp/authors/VA002416/teraterm.html.
15
UDP Connections i-modul Ethernet 3.x
5 UDP Connections
TCP connections have a connection management, whereas for UDP connections
the data packets are simply dispatched to the network. The UDP protocol does not
confirm if the data was actually received by the recipient. For UDP it may also oc-
cur that sent data packets arrive at the recipient in a different order (due to rout-
ing). All these tasks must be handled by the user protocol resting on the UDP pro-
tocol.
Note
As a rule, the use of TCP is preferable to UDP connections. Only use
UDP when you are aware of its disadvantages.
However, if an UDP connection is inevitable, note the following.
An empty UDP packet is sent during the UDP connection setup (ATD) to in-
dicate the connection request to the remote terminal.
While the connection to the module is set up (ATU), each UDP packet will
trigger the output of the message RING, either until the connection is auto-
matically accepted (ATS0=<n>) or until it is manually accepted (ATA). A de-
tailed description of the behavior with an UDP connection depending on the
setting of ATS0 can be found in the description of the AT commands.
Note
For the connection of two i-modules, both modules must be set
to ATU.
To terminate the UDP connections between two i-modules, the escape sequence
(+++) must be entered on both sides to switch the modules from transparent to
command mode.
As the escape characters are also transmitted to the recipient, it is possible for UDP
connections that the +++ sequence of module #2 will trigger RING at module #1
which is already in command mode. If ATS0=1 is set at module #1, this will auto-
matically result in the connection acceptance being repeated.
The value for ATS0 should therefore be larger than 3. The optimum manual connec-
tion acceptance is performed with ATS0=200 and ATA.
If larger amounts of data are sent via UDP and the receiving module does not man-
age to output the data at the serial interface in time, this may result in malfunctions
despite a good UDP connection. The network-side recipient buffer will overflow
without the recipient being able to indicate an interval signal to the sender.
16
i-modul Ethernet 3.x UDP Connections
5.1 Setting IP Address via PING and ARP
You can also set the IP address of the i-modul Ethernet 3.x manually "via network".
Prerequisite fpr this is that the IP address of the i-modul Ethernet 3.x is set to
0.0.0.0 and DHCP is disabled. You can then set the IP address of the i-modul
Ethernet 3.x using the tools "Ping" and "Arp".
In order to be able to address the i-modul Ethernet 3.x positively, you must inform
your operating system about the MAC and the desired IP address of the module via
"arp -s". Subsequently, address the i-modul Ethernet 3.x using the command ping
a.b.c.d. "a.b.c.d" is the desired IP address here that you want to assign to the i-
modul Ethernet 3.x. You will send several packets to the i-modul Ethernet 3.x with
PING. The first packet serves for setting the IP address of the i-modul Ethernet 3.x
and will be discarded (output "timeout" or similar). All other packets will be replied
properly.
By default, the IP address of the {{{PRODUKTBEZEICHNUNG}} is 0.0.0.0 and DHCP
is disabled.
5.1.1 Under Windows
Setting the IP address using the commands "arp" and "ping"
1. Change to the command prompt or into DOS mode.
2. Enter the following commands:
arp –s a.b.c.d 00-05-b6-xx-yy-zz
ping a.b.c.d
"a.b.c.d" is the desired IP address of the i-modul Ethernet 3.x, e.g.
192.168.100.17
"00-05-b6-xx-yy-zz" is the MAC address of the i-modul Ethernet 3.x.
You can find the MAC address of the i-modul Ethernet 3.x on the label
on the right side of the housing.
You will receive a "request timeout" for the first ping packet. The next
ping packets will be replied properly.
17
UDP Connections i-modul Ethernet 3.x
5.1.2 Linux
Setting the IP address using the commands "arp" and "ping" as Superuser
Usually, you need "Superuser" rights to be able to execute the "arp"
command.
1. Change to a console.
2. Become "Root". For this, enter the "su" command and then the
password.
Alternatively, ask your system administrator release the "arp"
command for your user account temporarily.
3. Enter the following commands:
arp –s a.b.c.d 00:05:b6:xx:yy:zz
ping a.b.c.d
"a.b.c.d" is the desired IP address of the i-modul Ethernet 3.x, e.g.
192.168.100.17
"00:05:b6:xx:yy:zz" is the MAC address of the i-modul Ethernet 3.x.
You can find the MAC address of the i-modul Ethernet 3.x on the label
on the right side of the housing.
The first packet gets lost. The following ping packets will be replied
properly.
18
i-modul Ethernet 3.x IP Block Formation
6 IP Block Formation
The i-modul Ethernet 3.x maps a serial interface transparently on an Ethernet port.
In simple words: a serial cable (or a modem connection) is replaced by an Ethernet
connection.
However, there is a significant distinction between the two transmission types:
While for the cable (or modem) the data can be transmitted into both directions as
permanent data stream, for an Ethernet connection data packets are transmitted as
blocks. The module therefore collects the data to be transmitted for a defined pe-
riod and then sends them to the remote terminal in one individual packet. As a
countermove, the bytes of a data packet which was received via Ethernet is con-
tinuously sent via the serial interface.
The i-modul Ethernet 3.x has several algorithms which determine when the data
collection is finished and the packet is sent.
IP block formation after the block formation time has expired.
IP block formation when the maximal block size is reached
IP block formation when a trigger byte occurs
19
IP Block Formation i-modul Ethernet 3.x
IP block formation after the block formation time has expired.
If data is constantly received via the serial interface in sufficient speed, 1460 bytes
are packed every time and sent as one packet. 1460 bytes is the maximum permit-
ted size of an IP data packet.
If the data supply at the serial interface jams, after a configurable waiting time dur-
ing which no data via the serial interface arrives at the module, the packet is
packed and sent ahead of time. This waiting time (block forming time) is set with
the command ATS8=<n>.
IP block formation when the maximal block size is reached
If, for example, in an application an RS-232 cable is replaced by two i-modules
Ethernet and a network segment, the following will occur:
The data are sent in series to the first module, where they are collected and then
sent to the second module as a packet. This second module will send the individual
data from the package again in series to the remote terminal of the application.
Each byte will therefore be transmitted twice in series and requires at least double
the transmission time as with a direct serial connection.
For larger, constant data flows, this is qualified by the pipeline effect.
20
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43

Insys i-modul Ethernet Designer’s Guide

Category
Networking
Type
Designer’s Guide

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI