CH9121 UART to Ethernet Module Server MCU Networking Module
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.
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
Hardware introduction and description
1.Board size: 50*25 mm，Weight: 12g
|Restore factory settings, chip power-on detection, low level is valid
|External reset input，low level is valid
|Use control RS485 send and receive switching
|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.
|TCP client mode, the port is connected to the status indication pin, and the connection is successfully output low level
|UART data input ,connect external MCU’s TXD
|Module running status indication pin, output 2Hz square wave
|UART data output ,connect external MCU’s TXD
|3.3V power supply，and 5Vpower supply pick one of two
|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.
(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.
(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.
|TTL serial port module
(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.