PRODUCT

Contact us

Name:Helen.

Tel:0755-82720811

E-mail:helen@chinalctech.com

Add:Room 309,Building No.6,Mengliyuan Industrial Park,No.146 Yousong Road,Longhua District,Shenzhen,518109

Online consulting

Communication module

Position:Home > Product > Module series > Communication module >

CH9121 UART to Ethernet module Server MCU Networking module

 

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.
 
Function:
1, internal Ethernet media transport layer (MAC) and physical layer (PHY)
2, can achieve two-way transparent transmission of network data packets and serial port data .
3, support 10/100M,full-duplex/half-duplex adaptive Ethernet interface, compatible with the 802.3 protocol.
4,support MDI/MDIX line automatically conversion
5, support DHCP automatically got IP address,support DNS domain access.
6,through the upper computer software or serial port AT command sets network parameters such as chip working mode, port, and IP
7,working mode support TCP CLIENT、TCP SERVER and UDP CLIENT、UDP SERVER 4 kinds of mode

8, serial port baud rate support 300bps~921600bps.
9, serial port TTL level compatible 3.3V and  5V
10, serial port support full-duplex/half-duplex Serial communication,support RS485 send and receive automatic switching
11.support DHCP automatic get IP address function.
12, support DNS Domain name system 
13,support 0~2000ms serial port timeout setting
14, support KEEPALIVE mechanism
15,voltage of supply :3.3V/5V

Introduced the hardware and instructions
1.board size50*25mm,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

3,Module configuration and working mode description
module parameter configuration is divided into two parts: basic setting and port configuration, basic setting main include ,device name ,network parameter,serial port negotiation authentication function, serial port negotiation authentication function default is off status, defaulting through hardware CFG0 pin enter erial port setting mode,can through serial port negotiation enter serial port setting mode after open .CH 9121 support DHCP and manual mode two ways set the network basic parameters.

3.1. TCP CLIENT mode
On the TCP CLIENT model ,after charge in the module,will take the initiative connected TCP SERVER terminal, when the connection is established, can achieve two-way transparent transmission of network data packets and serial port data , Under this mode, TCP SERVER ‘s IP need to be visible to the module,so it means via module IP can direct PING connect server IP . under TCP CLIENT mode, support local serial port random,support through domain name access remote service area, the chip internal default open TCP underlying Keep Alive mechanism,It can detect that the device is offline. TCP client Application model as below:Suitable for on-site data collection and upload server mode.

3.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.

3.3. UDP CLIENT mode

On the UDP CLIENT mode,after charge in the module,will sent data to the local port (from the destination IP and port) transparently forwarded to the module serial port.Similarly,send to module serial port data will through UDP ways forwarded to set destination IP and port. Under this model, 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。

3.4. UDP SERVER mode

On the UDP SERVER mode ,received send to local IP and port all data is forwarded to the serial port, send to module serial port data also through UDP way forwarded to Communicate with UDP’s IP and serial port ,Under this model, the module needs to configure network parameters there are : working mode, device IP, subnet mask, default gateway, device port.

4, Configuration software instructions and examples

CH9121 module support through the upper computer software or serial port AT command set chip work mode, serial port IP and parameters, Here to use the upper computer software to set the chip to "TCP CLIENT mode,and as TCP Server ‘s Take TCP communication as an example, Proceed as below:

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.

 

Obtain device parameters: Double-click the device to be configured, and the software will automatically obtain the device parameters.

the default parameters of the device as below:

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  picture :