Name:Helen.
Tel:+86-755-82720811
E-mail:helen@chinalctech.com
Add:Room 301,Building No.3,Guole Technopark,Lirong Road,Dalang Street,Longhua District,Shenzhen 518110,China.
Online consulting
Overview
LC CH9121 Serial to Ethernet module carry CH9121 network serial port transmission chip, CH9121 internal integration of TCP/IP protocol stack, can achieve two-way transparent transmission of network data packets and serial port data,have TCP CLIENT、TCP SERVER、UDP CLIENT 、UDP SERVER 4 type working modes,serial port baud rate support of highest to 921600bps,It can be easily configured by the upper computer software or serial port command, convenient and quick.
Hardware introduction and description
1.Board size: 50*25 mm,Weight: 12g
2.Interface description
Pin name | type | Pin description |
RESET | input | Restore factory settings, chip power-on detection, low level is valid |
RSTI | input | External reset input,low level is valid |
DIR | output | Use control RS485 send and receive switching |
CFG | input | Serial port configuration mode setting pin,built-in pull-up, enter the serial port configuration mode when low level is detected, high level quit configuration mode. |
TCPS | output | TCP client mode, the port is connected to the status indication pin, and the connection is successfully output low level |
RXD | input | UART data input ,connect external MCU’s TXD |
RUN | output | Module running status indication pin, output 2Hz square wave |
TXD | output | UART data output ,connect external MCU’s TXD |
GND | power | Power ground |
3V3 | power | 3.3V power supply,and 5Vpower supply pick one of two |
5V | power | 5V power supply,and 3.3Vpower supply pick one of two |
(2)TCP SERVER mode
On the TCP SERVER mode,after charge in the module, Will listen to the local serial port whether have a client request connection, after the connection is established,can achieve two-way transparent transmission of network data packets and serial port data .under this mode,TCP CLIENT IP need to be visible to the module,The visible meaning is that the IP of the client can be directly ping through the client IP (see Section 4 for details). The module needs to configure network parameters there are : working mode, device IP, subnet mask, default gateway, device port. the destination IP address, destination port, and under this mode can only support one TCP client connection at a time.
Tips: suggest client to turn off anti-virus software, 360 security guards and other firewall software before testing.
CH9121 module |
TTL serial port module | |
5V/3.3V | 5V/3.3V |
GND | GND |
TXD | RXD |
RXD | TXD |
(1)Wiring: prepare one TTL serial port module (like: CH340/FT232 etc.) and one cable, use the CH9121 module connect to the host computer and router. The connection method of the serial port module as below:
(2)Searching device: open parameter configuration software software,click searching device ,The software will list all online devices.
(3)Obtain device parameters: Double-click the device to be configured, and the software will automatically obtain the device parameters.
Modify device parameters: client can according to they need to set various parameters, Here is an example of modifying only the "destination IP" (attention : destination IP need as TCP Server end computer IP address keep consistent )
(1)Inquire as TCP Server end computer’s IP address,click on the bottom left corner of your computer Start---Enter CMD---Press Enter---Enter ipconfig---Press Enter,got computer IP address for 192.168.1.101
(2) Change the default "destination IP" 192.168.1.100 to 192.168.1.101, after modifying, click "Configure Device Parameters" to make the settings take effect. Then click searching device can see the device with the changed parameters as follows:
5.Test TCP communication
(1) Open“USR-TCP232-Test-V1.3”TCP test software,according to configured CH9121 parameter to set “USR-TCP232-Test-V1.3”inside COM Settings and Net Settings parameter .separately click open and listening,if connect success , the interface inside will appear CH9121 device IP (192.168.1.200) and the port number(2098) as below:
(2)Input the data to be sent in the data send box,Click "Send" to achieve TCP communication between CH9121 (Client) and computer (Server), as follows:
***For more instructions, please refer to our information.
Product pictures: