Advertisement

Quick Links

CS-E3100 User Manual
(Serial to Ethernet Converter)
Version: V1.0.0

Advertisement

Table of Contents
loading

Summary of Contents for OneFex CS-E3100

  • Page 1 CS-E3100 User Manual (Serial to Ethernet Converter) Version: V1.0.0...
  • Page 2 Applicable products of the manual Product Brief introduction CS-E3100-2 RS232 to Ethernet converter CS-E3100-4 RS485 to Ethernet converter Features ➢ High-performance processor with Cortex-M4 @240 MHz ➢ 10/100Mbps Ethernet port, support Auto-MDI/MDIX ➢ DC 5 ~ 36V ➢ Support DHCP or static IP ➢...
  • Page 3: Table Of Contents

    Contents Introduction ........................... 1 1.1 Overview ..........................1 1.2 Specification .......................... 2 1.3 Hardware ..........................3 1.4 Get Started ..........................3 1.4.1 Hardware Connection ..................... 4 1.4.2 Search Device ......................4 1.4.3 Configure Socket ...................... 4 1.4.4 Communication Test ....................5 Functional overview ........................
  • Page 4 Disclaimer ............................32 Revision history ..........................33...
  • Page 5: Introduction

    CS-E3100 User Manual 1. Introduction 1.1 Overview SC-E3100 is a Serial to Ethernet converter. Excellent software and hardware performance, applicable to various industries and complex scenarios. Typical application scenarios: Figure 1 OneFex...
  • Page 6: Specification

    CS-E3100 User Manual 1.2 Specification Table 1 Characteristics Item Parameter Size 64*50*24mm Operating -40 ~ 85℃ Temperature Operating Humidity 5% ~ 95% Electric Power Interface DC Female Barrel Socket, 5.5*2.1mm Voltage 5~36V Consumption 60mA@12V Ethernet RJ45 10/100M Interface Plug-in terminal blocks, 3P, 5.08mm...
  • Page 7: Hardware

    CS-E3100 User Manual 1.3 Hardware Figure 2 Electrical Interface Default parameters of serial: Serial Item Parameter Baud rate 115200 Parity NONE RS232/RS485 Data bits Stop bits Default parameters of ethernet: Ethernet Item Parameter DHCP Disable 192.168.10.8 RJ45 Gateway 192.168.10.1 Mask 255.255.255.0...
  • Page 8: Hardware Connection

    CS-E3100 User Manual 1.4.1 Hardware Connection Figure 3 Connection Diagram 1. Use serial cable and network cable to connect the OneFex device and PC. 2. Power on the device. 1.4.2 Search Device Open the Setup Tool provided by our company. Search firstly, then double- click to open the device web page.
  • Page 9: Communication Test

    CS-E3100 User Manual Figure 5 Socket Configuration 1.4.4 Communication Test Using TCP and COM Debug Assistant tests communication. Figure 6 Communication Test OneFex...
  • Page 10: Functional Overview

    CS-E3100 User Manual 2. Functional overview Functional block diagram: Figure 7 Function Block Diagram 2.1 Serial Port The device of UE-E3100 has one RS232 or RS485. In order to be compatible with our multi-serial products, the commands of serial and socket have a character for indicating the index of serial (e.g.
  • Page 11: Framing Method

    CS-E3100 User Manual Figure 8 Serial Parameters 2.1.2 Framing Method In order to improve the network transmission performance, the serial port receives the data and then packs it into a frame of data and then forwards it to the network. This product supports packing by data length or data receiving interval.
  • Page 12: Ethernet

    CS-E3100 User Manual 2.1.3.1 Enter Configuration Mode The sequence of entering Configuration Mode is as shown in the figure below, where "UART" means user serial device, and "ONEFEX" means UE- E3100. Figure 9 Timing Diagram The steps are as follows: 1.
  • Page 13: Data Transmission

    CS-E3100 User Manual Mask 255.255.255.0 DNS1 Same as Gateway DNS2 114.114.114 Figure 10 Ethernet Parameters 2.3 Data Transmission Each serial port of this products supports two Socket. By default, only the first socket of serial port 1 is enabled. When two sockets are opened at the same time, the data received by the serial port will be forwarded to the two sockets respectively.
  • Page 14: Udp Client/Server

    CS-E3100 User Manual In addition, a random port is used if the local port is set to 0. Figure 11 TCP Client 2.3.1.2 TCP Server When the device works as a TCP server, it listens to the port specified by the user.
  • Page 15 CS-E3100 User Manual needed, UDP permits packets to be dropped instead of processing delayed packets. There is no error checking in UDP, so it also saves bandwidth. It is more efficient in terms of both latency and bandwidth. The UDP protocol does not need to distinguish between client and server.
  • Page 16: Http Client

    CS-E3100 User Manual Figure 14 UDP Server 2.3.3 HTTP Client The HTTP protocol version supported by the device is 1.0 and 1.1, and it supports GET/POST request. Data received from serial is assemble as HTTP message and sent to the HTTP server, and then accepts the response from HTTP server.
  • Page 17 CS-E3100 User Manual Figure 15 HTTP GET Test 2.3.3.2 Request of POST Post request can submit data to HTTP server. Here we use a server(www.rt- thread.com/service/echo) which supports echo for testing. The parameters are similar to GET, the request is changed to POST and add URL "/service/echo".
  • Page 18: Heartbeat Packet And Identity Register Packet

    CS-E3100 User Manual 2.3.3.3 Request AUTO In automatic mod, just need to set the HTTP headers and the other HTTP parameters is invalid. The request method is automatically selected according to the serial port data. Figure 17 Requst of AUTO GET: The serial port can send the complete URI, such as: ⚫...
  • Page 19: Modbus Tcp And Rtu Converter

    CS-E3100 User Manual Figure 18 Register and Heart 2.3.4.1 Heartbeat Packet Heartbeat Packet can send data to the network or serial port regularly. There are many application scenarios for this function. Such as the server can determine whether the client is online by heartbeat. Another Serial heartbeat data can be used for polling Modbus data.
  • Page 20: Advanced Features

    The network search function can search for devices in LAN and send AT commands to the devices. The search process is to broadcast the search keyword (default is OneFex.com)to port 8168 using UDP protocol. After receiving the specified broadcast packet, the device will reply its own IP, MAC, name, version...
  • Page 21: Lan At Command

    CS-E3100 User Manual Figure 21 Search Device 2.4.3 LAN AT Command The AT command can be executed within 60 seconds after the device is found. The format of command sent is: ATCMD \r\n The format of response is: AT response...
  • Page 22: Restart When Received Timeout

    CS-E3100 User Manual 1. Assume that firmware path http://upgrade.xxx.com:8080/OneFex.bin 2. Send AT commands via serial or LAN: AT+DOWNLOAD=upgrade.xxx.com:8080/OneFex.bin 3. If the download is successful, the device will output ok, otherwise fail 4. Restart the device and update the firmware. 2.4.4.3 Upgrade over Web Page Open the device webpage through the browser.
  • Page 23: Parameters Configure

    3.1 Web Page The device and the computer are connected to the same LAN. Use a browser to open the device webpage or using ONEFEX Setup Tool search and open the device's web page. Default username:...
  • Page 24: Port Page

    CS-E3100 User Manual Figure 26 3.1.3 Port Page Configurable serial port and its corresponding network Socket parameters, heartbeat, register. Figure 27 3.2 AT Command User can query and configure parameters through AT commands in Configuration Mode. Please refer Operating Mode...
  • Page 25: At Command Error Code

    CS-E3100 User Manual 2. Case insensitive, Uppercase is recommended 3. A command can be up to 256 bytes 4. Separate by comma when multiple parameters 5. Must wait for the response of the previous command before sending the next one There are three types of commands: Query, Setting, and Help.
  • Page 26: Commands In Detail

    CS-E3100 User Manual ⚫ Restart device: AT+REBOOT ⚫ Reset parameter: AT+RSTCFG ⚫ Help of setting commands: AT+CMD=? Example: send: AT+ECHO=? response: +ECHO: (echo:OFF/ON) 3.2.4 Commands in Detail This section introduces AT commands in detail. Note that when the command contains a lowercase letter , it means that the command is owned by the nth serial port.
  • Page 27 CS-E3100 User Manual 3.2.4.4 VER Firmware version +MAC:<ver> AT+VER Parameter <ver> e.g. V1.0.0 3.2.4.5 DEVINFO Information of device +MODULE:<value> +VERSION:<value> +MAC:<value> AT+DEVINFO +DECRYPT:<value> +BUILD:<value> +PRODUCT TIME:<value> +SN:<value> Parameter <MODULE> Module <VERSION> Version <MAC> <DECRYPT> Firmware function status <BUILD> Build time <PROTIME>...
  • Page 28 CS-E3100 User Manual 3.2.4.8 BKCFG Backup current parameters AT+BKTCFG 3.2.4.9 CLRCFG Reset parameters from built-in parameters AT+CLRCFG 3.2.4.10 SOCKLK Link state of TCP Client +SOCKLK:ns,<state> Query all sockets +SOCKLK:ns,<state> AT+SOCKLK … Query the status of a +SOCKLK:<state> specific socket AT+SOCKLK=ns...
  • Page 29 CS-E3100 User Manual Parameter <addr> Address Network not available: The network not ready Timeout: Timeout <result> Unknown host: Unknown hostname Number: ping time(ms) The following commands support using AT+CMD=? for help. 3.2.4.13 ECHO Echo enable or disable AT+ECHO +ECHO:<state> AT+ECHO=<state>...
  • Page 30 CS-E3100 User Manual AT+WEBU=<user>,<pwd> Parameter <user> user, 1~16 bytes, default: admin <pwd> password, 1~16 bytes, default: admin 3.2.4.17 LANG Language of web page AT+LANG +LANG:<lang> AT+LANG=<lang> Parameter CN: Chinese <lang> EN: English 3.2.4.18 WAN Parameters of Ethernet AT+WAN +WAN:<dhcp_en>,<ip>,<gw>,<mask> AT+WAN=<dhcp_en>,<ip>...
  • Page 31 CS-E3100 User Manual AT+SEARCH=<port>,<key > Parameter <port> 1~65535, default: 8168 <key> 1~16 bytes 3.2.4.21 UARTn Parameters of the nth serial port +UARTn:<baudrate>,<databits>,<stopbits>,<p AT+UARTn arity>,<fc> AT+UARTn=<baudrate>,< databits>,<stopbits>,<parit y>,<fc> Parameter Default: 115200 Support: <baudrate> 2400/4800/9600/19200/38400/57600/115200/230400/46 0800 <databits> <stopbits> 1(default) or 2 <parity>...
  • Page 32 CS-E3100 User Manual 3.2.4.24 MODBUSn Modbus converter of the nth serial AT+MODBUSn +MODBUSn:<sta> AT+ MODBUSn =<sta> Parameter ON: Enable <sta> OFF: Disable(default) 3.2.4.25 SOCKENns Enable or disable Socketns(n is number of serial, s is A or B) AT+SOCKENns +SOCKENns:<state> AT+SOCKENns:<state>...
  • Page 33 CS-E3100 User Manual 3.2.4.27 HTPURLn HTTP URL AT+HTPURLn +HTPURLn:<url> AT+HTPURLn:<url> Parameter <url> 1~64bytes, this is only valid in POST request 3.2.4.28 HTPHDn HTTP header AT+HTPHDn +HTPHDn:<hd> AT+HTPHDn:<hd> Parameter <hd> 1~64bytes, Split by '|' if there are many headers 3.2.4.29 HTPFTn...
  • Page 34 CS-E3100 User Manual 3.2.4.31 HTPTOn Timeout of HTTP AT+HTPTOn +HTPTOn:<to> AT+HTPTOn:<to> Parameter <to> 1~30s, default: 6 3.2.4.32 REGTPn Type of Identify Register AT+REGTPn +REGTPn:<type> AT+REGTPn:<type> Parameter MAC: 6bytes, hex format <type> CUS: Custom content 3.2.4.33 REGMDn Mode of send register AT+REGMDn +REGMDn:<mode>...
  • Page 35 CS-E3100 User Manual 3.2.4.35 HEARTMDn Mode of heartbeat AT+HEARTMDn +HEARTMDn:<mode> AT+HEARTMDn=<mode> Parameter OFF: Disable(default) <mode> UART: Serial heartbeat NET: Network heartbeat 3.2.4.36 HEARTTMn Time interval of heartbeat AT+HEARTTMn +HEARTTMn:<time> AT+HEARTTMn:<time> Parameter <time> 1~86400s, default: 60 3.2.4.37 HEARTDATn Custom content of heartbeat AT+HEARTDATn +HEARTDATn:<data>,<fmt>...
  • Page 36 CS-E3100 User Manual Disclaimer OneFex provides content of this document to support the product design of its customers. Customers must design their products in accordance with the specifications and parameters provided in the document. The company does not assume any responsibility for personal injury or property damage caused by improper operation of the customer.
  • Page 37 CS-E3100 User Manual Revision history Date Revision Changes 2020-08-25 V1.0.0 Initial release. OneFex...

This manual is also suitable for:

Cs-e3100-2Cs-e3100-4

Table of Contents