Manual INSYS ETHERNET 5.
Copyright © November 06 INSYS MICROELECTRONICS GmbH Any duplication of this manual is prohibited. All rights on this documentation and the devices are with INSYS MICROELECTRONICS GmbH Regensburg. Restrictions of guarantee This handbook contains a concise description. The compilation of the text has been made with the utmost care. Despite all efforts, there may be deviations compared with the actual functions. No guarantee can therefore be given for the accuracy of the contents.
Contents 1 INTRODUCTION.......................................................... 6 2 OVERVIEW.................................................................. 9 2.1 RANGE OF FUNCTIONS ................................................................. 9 2.2 DEVICE HISTORY ...................................................................... 11 3 TECHNICAL DATA ..................................................... 12 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 Mechanical characteristics.....
Contents 5.2 COMMAND MODE (TCP/UDP) .................................................. 26 5.3 REMOTE CONFIGURATION .......................................................... 27 5.4 I/O TUNNELING ....................................................................... 27 6 CONFIGURATION SOFTWARE HSCOMM ETHERNET 29 6.1 HELP ...................................................................................... 29 6.2 HSCOMM USER INTERFACE ........................................................
Contents 7.4.3 7.4.4 IP block formation.............................................................................44 Firmware flash update......................................................................48 8 ETHERNET COM DRIVER ........................................... 49 9 AT COMMAND REFERENCE ...................................... 50 10 RESPONSES AND NUMERICAL CODES ......................
Introduction 1 INSYS ETHERNET 5.X Introduction Validity range of the manual This user manual applies to all devices of the INSYS Ethernet 5.x series. Purpose This manual is directed primarily at technical staff, in particular: Programmers Implementers Required basics General knowledge regarding network technologies is required. We assume that the reader of this manual is familiar with basic general network technology terms, such as IP address, netmask or gateway.
INSYS ETHERNET 5.X Introduction Online availability The manuals are available in German and English at http://www.insys-tec.de. Conventions In the user manual, the devices of the INSYS Ethernet 5.x series are referred to as INSYS Ethernet. Only if there are differences between the devices will the complete device name be used. Emphasis Representation "Basic settings" AT [expression] OK Meaning Software HSComm GUI texts, e.g.
Introduction INSYS ETHERNET 5.X E-mail: insys@insys-tec.de 0941/560061 Repurchasing of legacy systems According to the new WEEE guidelines, the repurchasing and recycling of legacy systems for our clients is regulated as follows: Please send those legacy systems to the following address, carriage prepaid: Frankenberg-Metalle Gärtnersleite 8 D-96450 Coburg This regulation applies to all devices which were delivered after August 13, 2005.
INSYS ETHERNET 5.X 2 Overview Overview The INSYS Ethernet transparently maps a serial interface to an IP port. In connection with the virtual COM port driver, the INSYS Ethernet can simply replace a serial cable by an Ethernet connection in an application. Switching signals at the inputs can be transmitted to the outputs of another module.
Overview INSYS ETHERNET 5.X Serial V.24/V.28 interface with 9-pin D-SUB jack and terminal level at V24 interface according to V.
INSYS ETHERNET 5.X 2.2 Overview Device History In the course of the stipulated switch to ROHS-compliant products (EC directive 2002/95/EG), the production of the device series INSYS Ethernet 4.x and older is ended. The successor is the INSYS Ethernet 5.x. Besides switching to unleaded materials, this series also utilizes a new, powerful network processor. The INSYS Ethernet 5.1 has an additional, internal SRAM (support starts with FW V1.22SRAM).
Technical Data 3 INSYS ETHERNET 5.X Technical Data 3.1.1 Mechanical characteristics Weight 250 g Dimensions (maximum) w x d x h = 55 x 110 x 75 Temperature range 32°F..131°F Protection class Housing IP 40/ Terminal IP 20 Humidity 0 - 95% non-condensing The following environmental conditions must be observed for the INSYS Ethernet. Caution - Wet environment! The INSYS Ethernet may not be used in wet environments. 3.1.
INSYS ETHERNET 5.X Technical Data 3.1.3 Terminal layout Terminal row on the top of the cover: Terminal Meaning 1 GND Ground 2 X1 No function 3 10..
Technical Data INSYS ETHERNET 5.X 3.1.4 Power supply Power supply: 10..60 V DC (terminal 3) (max. 5% ripple) approx. 2W Power input: Current consumption Input voltage 10 V DC 24 V DC Current (closed circuit) 150 mA 70 mA Current (connection) 150 mA 70 mA Maximum startup current 250 mA 120 mA Caution - No overvoltage protection! The INSYS Ethernet does not have a fuse. Surges and excessive voltages may result in the destruction of the device. 3.1.5 Serial interface RS232 (V.
INSYS ETHERNET 5.X Technical Data 3.1.6 Digital inputs and outputs Inputs and outputs can be set and queried via special AT commands. In remote configuration mode (Telnet), this will enable the query of certain system states and the switching of certain system functions. The function I/O tunneling will transmit the switching state at the inputs of the INSYS Ethernet to the relay outputs of an additional INSYS Ethernet.
Technical Data INSYS ETHERNET 5.X 3.1.8 Reset Pushing the reset via the key or via the screw terminal (bridge terminal 6 with GND) is identical. Functions Connection fails (1 pulse 100 ms - 500 ms for data connection) Normal reset (continuous actuation, min. 3s) Factory reset: (3 pulse 100 ms to 500 ms) 3.2 Certifications The INSYS Ethernet bears the CE symbol of conformity.
INSYS ETHERNET 5.X Initial Operation 4 Initial Operation 4.1 Scope Of Delivery Check the scope of delivery before initial operation: INSYS Ethernet 5.x 9-pin serial cable for the connection between the PC and the INSYS Ethernet (RS232 cable) Printed manual (German/English). Optional accessories: CD with configuration software HS Comm and manuals Contact your supplier if the content is not complete. Check the device for shipping damage. Please also refer to your supplier if anything is damaged.
Initial Operation 4.3 INSYS ETHERNET 5.X Mounting and Wiring 1. Mounting on DIN rail: Mount the device on the DIN rail at a slight angle; to lock it into place, press the device at the bottom. 2. Connecting the Power Supply: Terminal layout see Chapter 3.1.3. 3. Switching the power supply on: The power LED will light up. 4. Connecting to a network hub/switch or to another Ethernet device: To directly connect to an additional network participant (e.g. PC) a twisted CAT5 network cable must be used.
INSYS ETHERNET 5.X Initial Operation Only with a correctly set network interface will the full range of functions be available. Besides data connections, also remote configuration or remote updates via Telnet will be available. 4.4.1 Brief introduction to IP IP address and netmask The IP address of a network device is a 32 bit numerical value for the detection of an individual device within a network and is in general displayed as 4 decimal numbers between 0 and 255, which are separated by full stops.
Initial Operation INSYS ETHERNET 5.X Gateway and routing If data must be sent beyond the limits of a local network to a destination in another segment (different network code), a Gateway (GW) must be defined via a gateway address, which is located within the local network segment. A gateway is a device with two network interfaces which acts as an exchange station between the network segments.
INSYS ETHERNET 5.X Initial Operation 4.4.2 Initial configuration with HSComm Ethernet As alternative to the configuration via HSComm, the device may also be configured via AT commands (see Chapter Fehler! Ungültiger Eigenverweis auf Textmarke.
Initial Operation INSYS ETHERNET 5.X Troubleshooting If the INSYS Ethernet is not correctly detected, an error message is displayed a few seconds after the program start. Check the connection cable. Select the according serial interface at the configuration PC in the menu 'Interface'. Click the button 'Read' in the right bar of the program window.
INSYS ETHERNET 5.X Initial Operation Click the button 'Synchronize RS232' to automatically adjust the baud rate and the data format. As a precaution, reset it to the factory settings using the button 'Send default values'. As an alternative, you may also trigger a factory reset by pushing the reset key (100..500 ms) three times. Perform the function 'Synchronize RS232' afterwards. 4.4.
Initial Operation INSYS ETHERNET 5.X Check the connection cable. For notebooks with USB/RS232 adapters there may be problems with the configuration. In this case, use a PC with a direct RS232 interface. Check the interface settings (port, 19200, 8N1) of your terminal program. Check if the COM interface is already being used by another program. In this case, close the program or restart the computer, if necessary. Trigger a factory reset by pushing the reset key (100..500 ms).
INSYS ETHERNET 5.X Initial Operation Network settings (see Chapter 4.4.1): Has the IP address already been allocated to another device? Unplug the network cable, repeat the ping ... is there a response? If the PC and the INSYS Ethernet are located in the same local network segment, then the network codes must be identical and the device numbers must be different. If the PC and the INSYS Ethernet are located in different networks, which are connected through a gateway (e.g.
Operating Modes 5 Operating Modes 5.1 Command Mode (Offline) INSYS ETHERNET 5.X The device is offline during command mode, i.e. there is no IP connection and it can be addressed via AT commands. After the INSYS Ethernet was switched on or after a reset, the device will automatically be in command mode. Use the commands ATT and ATU in command mode to define the type of the next connection mode (TCP or UDP). Only incoming connections with the set protocol type will be accepted.
INSYS ETHERNET 5.X Operating Modes Important information regarding UDP connections TCP protocols have a connection management, whereas for UDP protocols 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 occur that sent data packets arrive at the recipient in a different order (due to routing). The user protocol resting on UDP would need to accept all these tasks.
Operating Modes 28 INSYS ETHERNET 5.
INSYS ETHERNET 5.X 6 Configuration Software HSComm Ethernet Configuration Software HSComm Ethernet The software HSComm provides the opportunity to configure the INSYS Ethernet under Windows without explicit knowledge of the AT commands. The free configuration software HSComm can be downloaded at: http://www.insystec.de. 6.1 Help The context sensitive help is available any time via the key F1 or the "Help" menu. 6.
Configuration Software HSComm Ethernet INSYS ETHERNET 5.X File Use the menu item "File" to save the current settings as shown in the HSComm user interface as a file, or to re-read the settings. Interface Use the menu item "Interface" to set the serial interface of the configuration PC. Access to the INSYS Ethernet is possible via the serial interface or via Telnet.
INSYS ETHERNET 5.X Configuration Software HSComm Ethernet Activate "Advanced logging" to create a log if errors occur during the configuration. You can open the protocol at the menu item "Send protocol". Terminal You can use the terminal window to track which AT commands were sent to the INSYS Ethernet and which responses were returned. You can also send AT commands directly to the INSYS Ethernet. Language Use the menu item "Language" to switch between the interface languages German and English.
Configuration Software HSComm Ethernet INSYS ETHERNET 5.X Help The context sensitive help is available any time via the key F1 or the "Help" menu. 6.2.2 Buttons Use the buttons to start data transmissions between the INSYS Ethernet and the configuration PC. During the data transmission a progress bar will be displayed above the buttons. All inactive buttons are highlighted in gray. Read Use this button to read the current settings from the INSYS Ethernet.
INSYS ETHERNET 5.X Configuration Software HSComm Ethernet Use the button "Synchronize RS232" to test all possible baud rate and data format settings at the PC side until both sides match. 6.2.3 Status Bar The status bar at the lower window border of the HSComm displays the setting and activities of the serial interface of the configuration PC. The LEDs RX and TX of the INSYS Ethernet light up synchronously during the receiving and sending of data. 6.2.
Functions and their Configuration 7 INSYS ETHERNET 5.X Functions and their Configuration The functions of the INSYS Ethernet can be configured easily using the configuration software HSComm, or directly via AT commands and a terminal program. For both options, remote access via Ethernet (Telnet connection) will be available besides the serial interface.
INSYS ETHERNET 5.X Functions and their Configuration Note If the AT command mode at the serial interface was deactivated with AT&X0, Telnet access is the only access option. Note For operational safety reasons, an existing Telnet remote configuration is terminated as soon as a new Telnet connection to the INSYS Ethernet is established. As TELNET terminal for control functions via AT commands, INSYS MICROELECTRONICS recommends TeraTerm by T. Teranishi. The free software can be downloaded at http://www.
Functions and their Configuration INSYS ETHERNET 5.X 7.2.1 Serial interface Set the parameters for the serial interface of the INSYS Ethernet. Select the requested values in the fields "Baud rate" and "Data format". Note The interface parameters of the configuration PC must match the interface parameters of the INSYS Ethernet. Set the serial interface of the configuration PC at the HSComm menu item "Interface".
INSYS ETHERNET 5.X Functions and their Configuration Use the software-controlled data flow control only for the transmission of ASCII data. If binary data is transmitted, make sure that the control characters are not included in the data stream. Pertinent AT commands AT&K Handshake 7.2.3 Echo With echo, all commands which are transmitted to the INSYS Ethernet via the serial interface are returned at the serial interface. This enables you to read the AT commands during terminal operation.
Functions and their Configuration INSYS ETHERNET 5.X 7.2.5 Connection Automatic connection acceptance This function is used to set if incoming connection requests (UDP packets, TCP/SYN packets) are accepted, or if the INSYS Ethernet allows only outgoing connections. Terminate after idle status The idle connection control is a function to monitor the data transmission during online operation. It is used to autonomously terminate a connection after a set period of time.
INSYS ETHERNET 5.X Functions and their Configuration 7.2.7 Digital Inputs and Outputs The digital inputs and outputs of the INSYS Ethernet can be queried or set. The two switching outputs OUT1 and OUT2 at the bottom of the cover are designed as potentialfree relay switches. This enables a user to operate a machine switch via Telnet remote access. The function I/O tunneling can be used to transmit the inputs of an INSYS Ethernet to the outputs of another device (see Chapter 0).
Functions and their Configuration INSYS ETHERNET 5.X 7.3.1 IP settings IP address, NetMask, Gateway, DHCP The network parameters of the INSYS Ethernet can either be allocated, or received dynamically from a DHCP server in the network. Please find a short introduction to this topic in Chapter 4.4.1. Port The set default port address indicates at which port the INSYS Ethernet waits for incoming connections.
INSYS ETHERNET 5.X Functions and their Configuration Pertinent AT commands AT#IOT= Activate I/O tunneling AT&Z1=: Address and port of the remote terminal 7.3.3 DNS settings When using a DNS server in the network, for some functions domain names in plain text can be specified for certain functions instead of IP addresses. Before the actual connection setup, the domain name will translate the domain name to the INSYS Ethernet.
Functions and their Configuration INSYS ETHERNET 5.X 7.3.5 Leased line operation In leased line operation, a permanent connection to a defined remote terminal is maintained. If this connection is interrupted at any time, the system will automatically attempt to establish a new connection every 20 seconds. The function just needs to be activated at one of the two devices involved in the leased line. The other device must be configured for automatic connection acceptance (ATS0=n).
INSYS ETHERNET 5.X Functions and their Configuration The following AT settings are stored using AT&W: AT&C, AT&D, AT#DTC, ATE, AT&K, AT&L, AT&O, ATQ, AT#QUIET, AT&R, ATS0, ATS2, ATS8, ATS12, AT*S, AT&S, ATT/ATU, AT*U, ATV, AT&X, AT*Y Factory reset Push the reset key 3 times to reset all settings and network parameters. Pertinent AT commands AT#RBT Reboot, stored settings are loaded AT&F Put active settings into default state AT&W Store active settings 7.4.
Functions and their Configuration INSYS ETHERNET 5.X Note For most systems, the command „arp“ can only be performed by the user „root“. Note The Windows command line entry interprets entries for numeral values with a leading '0' as octal numbers. E.g. ping 192.168.100.015 actually goes to the host .13 Reason: octal '15' = decimal '13' It is also advisable not to use leading zeros for ping, Arp, Telnet or similar commands. 7.4.
INSYS ETHERNET 5.X Functions and their Configuration 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 permitted size of an IP data packet. If the data supply at the serial interface jams, after a configurable waiting time during which no data via the serial interface arrives at the INSYS Ethernet 5.x, the packet is packed and sent ahead of time.
Functions and their Configuration INSYS ETHERNET 5.X ethernet transmission Modul#1 Collect data from RS232: block A Collect data from RS232: block B Collect data from RS232: block C Output data via RS232: block A Modul#2 ethernet transmission ethernet transmission Output data via RS232: block B Output data via RS232: block C For some application protocols, this pipeline effect can not be utilized in the best possible way.
INSYS ETHERNET 5.X Functions and their Configuration A further possibility to end the block formation ahead of time is the triggering to a certain byte in the data stream of the application protocol. The trigger byte can be defined with ATS9=. This method is only recommended for pure ASCII data streams, as for binary data the trigger byte may accidentally be included in the data load.
Functions and their Configuration INSYS ETHERNET 5.X 7.4.4 Firmware flash update Requirements: For the flash load function you will need a PC and a terminal program (e.g. TeraTerm, ProComm, HyperTerminal, etc.). The terminal program must be able to perform an ASCII upload (ASCII data transmission protocol). Setting the hardware flow control is mandatory. For safety, any interpretation of characters (e.g. TAB, CR, BS …) by the ASCII upload protocol must be prevented.
INSYS ETHERNET 5.X 8 Ethernet COM Driver Ethernet COM Driver The Ethernet COM driver offers the simple option to establish a connection with the INSYS Ethernet from a Windows PC. On the PC side, a normal COM port is simulated, and the data is output transparently at the serial interface of the INSYS Ethernet. This makes it possible to use existing software to communicate via the LAN (Internet / Intranet) with a device at a remote RS232 interface.
AT Command Reference 9 INSYS ETHERNET 5.X AT Command Reference Notes for entering AT commands Each AT command starts with the letters AT and ends with a “Carriage Return” (CR). Capital and small letters will both be accepted, but the leading characters must be either ‘AT’ or ‘at’. The command line is evaluated after the modem receives a return command. In the description, a parameter with the letter means that it can have various values. For example AT&C, where can have the values 0 to 1.
INSYS ETHERNET 5.X ATA AT Command Reference Manual connection acceptance The device accepts an incoming connection. The command will only work of the device has previously received packets at the local port and has issued "RING". AT&C DCD behavior AT&C0 DCD always on AT&C1 DCD only on with existing connection (default) ATD: Remote terminal is an IP address: or The remote terminal is specified in the format IP number:port.
AT Command Reference AT#DHCP= INSYS ETHERNET 5.X Activate/deactivate DHCP mode Use the command AT#DHCP to automatically activate or deactivate the automatic address allocation via DHCP. An accordingly configured server must be available in the network. AT#DHCP=1 The INSYS Ethernet will automatically retrieve the IP address from a DHCP server when switched on. AT#DHCP=0 The IP address set with AT#IP is used. (default).
INSYS ETHERNET 5.X AT&F AT Command Reference Load factory settings The factory settings are loaded. All factory settings in this AT command list are marked "(default)". All settings, which can be stored using AT&W, are affected by AT&W (not the network settings, see also AT&W). However, not all settings that were stored are changed, only the currently active settings. By entering the command sequence AT&F&W, the device can be returned to the factory settings (excluding the network settings).
AT Command Reference AT#IOT= INSYS ETHERNET 5.X Transmission of the input states AT#IOT=0 Deactivated (default) AT#IOT=1 Activated 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.
INSYS ETHERNET 5.X AT&K AT Command Reference Data flow control at the RS232 (handshake) AT&K0 Switches the data flow control off AT&K3 Switches the hardware data flow control (RTS/CTS) on (default) AT&K4 Switches the software data flow control (Xon/Xoff) on. AT&K8 Activates the controlled half duplex operation on the serial interface for RS485 In this mode, the CTS signal is deactivated (high), while the device sends data at the serial interface.
AT Command Reference INSYS ETHERNET 5.X AT#NM= AT#NM sets the address range of the local network in connection with AT#IP. All packets that are not sent to the local network, are sent to the gateway address set by AT#GW. Factory setting: AT#NM=255.255.255.0 IP address, gateway and network mask must be coordinated in the local network segment.
INSYS ETHERNET 5.X AT&R AT Command Reference Polarity of the CTS control line For controlling a RS485 driver (see also AT&K8). The CTS signal is set to active or inactive when the device receives on the serial interface: AT&R0 CTS signal inactive (low) for sending AT&R1 CTS signal active (high) for sending (default) AT#RBT Restart AT#RESET The device is rebooted. All parameters are reloaded from the permanent memory.
AT Command Reference ATS4= INSYS ETHERNET 5.X Character for line feed – LF ATS3=0...127 Determination of the character as ASCII code ATS3=10 (default) The setting is not stored with AT&W in the permanent memory. ATS5= Character for backspace – BS ATS5=0...127 Determination of the character as ASCII code ATS5=8 (default) The setting is not stored with AT&W in the permanent memory. ATS8= Set waiting period for block formation Sets the waiting time until a block is sent via the network.
INSYS ETHERNET 5.X AT*S AT Command Reference Set baud rate The settings can be selected with this command. The following baud rates are supported: AT*S1 300 bps AT*S2 600 bps AT*S3 1.200 bps AT*S4 2.400 bps AT*S5 4.800 bps AT*S6 9.600 bps AT*S7 19.200 bps (default) AT*S8 38.400 bps AT*S9 57.600 bps AT*S10 115.200 bps AT*S11 230.400 bps (special baud rate / not for INSYS Ethernet) AT*S12 460.800 bps (special baud rate / not for INSYS Ethernet) AT*S13 20.
AT Command Reference AT#TLP= ”” INSYS ETHERNET 5.X Password for remote configuration AT#TLP="password" - in quotation marks! – maximum length: 8 characters. The entry is case sensitive. Factory setting: insys The user name and the Telnet port are determined with AT#TLU and AT#TEL. AT#TLU=““ User name for remote configuration AT#TLU="name" - in quotation marks! – maximum length: 8 characters. The entry is case sensitive.
INSYS ETHERNET 5.X AT&W AT Command Reference Save settings AT&W saves all current settings in the permanent memory. The settings are restored from this permanent memory, when the device is switched on. The following AT settings are stored: AT&C, AT&D, AT#DTC, ATE, AT&K, AT&L, AT&O, AT#QUIET, ATQ, AT&R, ATS0, ATS2, ATS8, ATS12, AT*S, AT&S, AT*U, ATT, ATU, ATV, AT&X, AT*Y. ATX Dummy command Command without effect, implemented for compatibility to the modem – response “OK”.
AT Command Reference AT** INSYS ETHERNET 5.X Firmware update AT** starts the update process for the firmware (flash update). After AT** is entered, the device prepares itself for receiving the new firmware. After the response „Send .HEX file now.“ the firmware (file with the extension HEX) is sent as a text file in ASCII mode. To update the firmware, hardware handshake (RTS/CTS) must be activated at the terminal.
INSYS ETHERNET 5.