Sie sind auf Seite 1von 8

User Manual

1. General description The ETH2232X is a low cost and highly integrated RS232 to TCP/IP solution. Just a gateway module between serial device and Ethernet. User can transmit serial data to Ethernet easily. With ETH2232X,you can connect your serial device with Ethernet via ETH2232X provides interface quite easier and shorten your development period to obtain more gains. Key features: DTU between RS-232 and Ethernet. MAX serial baudrate:115200 TCP serversTCP client and UDP work mode Support DHCPPPPoE. Support MDI/MDIX. 3.3V or 5 V DC supply.

Pin No. 1 2 3 4 5 6 7

Pin name VCC RST RX TX CTS RTS PW

GND

Introduction VCC (5V) RESET RS232 receive data PIN RS232 send data PIN CTS RTS Configer PIN 0--Goto configer mode; 1Goto run mode. GND

1.2 Specification

hiersun-wintech

TCP/IP
10/100M base Support TCPUDPDHCP

UART
TTL No Parity 8 bit data Baudrate:2400bps -115200bps

Electronic
VCC5VDC Consumption: under 200mA

View Length : 68mm Width: 29mm PIN :2.54mm Operating conditions: Running : -2070 Conserve: -4085

2 How to connect serial device to Ethernet. Usually, we can see ETH2232X as a gateway between serial device and Ethernet. as the figure:
TX Ethernet Eth2232X module Serial device

RX

V3.3

GND

ETH2232X can achieve network communications with PC use crossover cable or straight lines. Also can communicate use RS-232. The default serial communication baud rate is 115200.Before using. Need to set parameters, Including IP address, MAC address, port number, subnet mask and serial baud rate. You can use it send and receive data after configuration.

hiersun-wintech

hiersun-wintech

3 How to configer the module 3.1 Default parameters IP address : 192.168.1.18 Gateway address : 192.168.1. 1 Subnet mask : 255.255.255.0 MAC : 00 08 DC 00 00 00 Port number : 50000 3.2 How to config the module Use serial commands as follow: 1. Set PW pin to low, go to config mode. 2. Use Configuring Software tools or other serial soft. 3. Send configuration command. 4. Save Configurations, after you changed parameters, confirm that the save commands will be send.

3.3 Commands 3.3.1 Format All the commands can be divided into fixed-length and variable-length. a) Fixed-length command comprised by one byte head and 4 bytes data. As the table: HEAD DATA 1BYTE 4BYTE b) variable-length command composed as CLV format.as: HEAD Length DATA 1BYTE 1BYTE datas c) Response Response comprised by command head and one byte status and added with 0D 0A. HEAD STATE+0D+0A 1 BYTE 01success00failed 3.3.2 Command lists Command COMMAND1 COMMAND2 Head 00 01 Description HTTP Client close Configure IP address
hiersun-wintech
3

hiersun-wintech

COMMAND3 COMMAND4 COMMAND5 COMMAND6 COMMAND7 COMMAND8 COMMAND9 COMMAND10 COMMAND11 COMMAND12 COMMAND13 COMMAND14 COMMAND15 COMMAND16 COMMAND17

02 03 04 05 06 07 08 09 FF 0C 0D 0E 0F 10 11

Configure dest IP address Configure gateway address Configure working mode Configure port number Configure serial baud rate Configure subnet mask Configure MAC address Configure DHCP Save parameters Configure PPPoE Configure PPPoE password variable-length Configure PPPoE user variable-length Connect commandonly for the HTTP Client WEB configuration and Network Configuration Enable or Disable heart signals Enable or Disable

3.3.3 Command description Command1: HTTP Client close. Command2: Configure source IP COMMAND DATA 0x01 IP 0xC0.0xA8.0x01.0x02 Command3: Configure dest IP COMMAND DATA 0x02 IP 0xC0.0xA8.0x01.0x02 Command4: Configure gateway address COMMAND DATA 0x03 GETWAY IP 0xC0.0xA8.0x01.0x01 Command5: Configure working mode COMMAND DATA 0x04 CONF ,0xFF,0xFF ,0xFF Description: CONF: working mode 00 ------------------------- TCP Servers mode 01 ------------------------- TCP Client mode 02 ------------------------- UDP mode 03 ------------------------- HTTP Client mode
hiersun-wintech
4

hiersun-wintech

Command6: Configure port number COMMAND DATA 0x05 PORTL ,PORTH,0xFF ,0xFF Description: PORTL ----------------- Low byte of port number PORTH ----------------- High byte of port number If the module working in TCP Servers mode or UDP Severs mode,the port number used as source port number. In Client mode they will work as RemotePort number. Command7: Configure serial baud rate COMMAND DATA 0x06 Baud,0xff0xff0xff Baud parameter list: The parameters of Baud The communication baud rate FE 230400 FC 115200 F8 57600 F4 38400 F0 28800 E8 19200 E0 14400 D0 9600 A0 4800 40 2400 Command8: Configure subnet mask. COMMAND DATA 0x07 0XFF,0XFF,0XFF,0X00 Command9: Configure MAC address COMMAND DATA 0x08 0x00,0x08,0xDC,0x00 Note: The MAC address have 6 bytes, DATA area add two bytes fixed with 00. Command10: Configure the pppoe function COMMAND DATA 0x09 DHCP ,FF,FF ,FF Description: DHCP parameter: 00 ------------- close DHCP. 01 -------------open DHCP. Command11: Save configurations
hiersun-wintech
5

hiersun-wintech

COMMAND DATA 0xFF 0XFF,0XFF,0XFF,0XFF Note: if you changed any parameter, you should send command11 to save it. Command12: configure PPPoE COMMAND DATA 0x0C PPPoE,0XFF,0XFF,0XFF Description: PPPoE: 00 ------------------ close PPPoE. 01 -------------------open PPPoE. Command13: Configure the password of PPPoE COMMAND length password 0X0D Len data Description: Len is the length of password. Command14: Configure the user name of PPPoE COMMAND Length User name 0X0E Len data Command15: close the http client connection. Command16: configure the WEB configure function COMMAND DATA 0x10 ON,0XFF,0XFF,0XFF ON: 00 -----------------close WEB configuration; 01 ---------------open WEB configuration. And send this command can reset the password and user name for WEB as 123456. Command17: Keep alive COMMAND DATA 0x11 ON,data1,data2,0XFF ON: 00 -------------------close Keep alive function. 01 --------------------open Keep alive fuction. 4 Configure tools Eth2232X can be configured by the RS-232 or Ethernet way. 4.1 configure tools

hiersun-wintech

hiersun-wintech

You can use these tools to set the parameters of Eth2232X, such as IP address, working mode, and serial baud rate. The default baud rate is 115200.You can also use this Ethernet tools to configure your module. Firstly you can click the scan button to find the IP address of the module connected in the network, and confirm the communication is normal between module and computer. After the IP be found, you can set the parameters of the module.

5 Electrical Specifications Absolute maximum ratings Symbol Parameter VDD Vio Iout DC supply voltage Voltage on IO DC output current

Rating Eth2232AT(5 v) Eth2232D(3.3 v) 5 v tolerant 2 to 8

Unit V V MA

hiersun-wintech

hiersun-wintech

Appendix

hiersun-wintech

Das könnte Ihnen auch gefallen