Coolmay CX-WIFI-2NET User manual

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 1,Total 93 Pages
CX-WIFI-2NET Module user
manual
Shenzhen Coolmay Technology Co.,Ltd
Version 7.21
CX-WIFI-2NET module is an all-in-one 802.11 b/g/n Wi-Fi and Ethernet module that
provides a way to connect a user's physical device to a Wi-Fi wireless network or
Ethernet. Provides a solution for the UART data transfer interface. The module comes
with an RS485 port, a standard RS232 communication port and two RJ45 standard
network ports. Through this module, the traditional low-end serial device or
MCU-controlled device can easily access Wi-Fi wireless network or Ethernet.
Transparent transmission is realized to realize the control and management of the
Internet of Things.
As a hotspot, CX-WIFI-2NET module can accommodate 32 wifi clients simultaneously,

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 2,Total 93 Pages
and can also accommodate 32 TCP clients at the same time. At the same time, the
module can be used as a secondary router and can be connected hand-in-hand.

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 3,Total 93 Pages
Contents
Contents........................................................................................................................3
Chapter 1 Hardware description ...................................................................................6
1.1. Module model and appearance .......................................................................6
1.2. Indicator function .............................................................................................7
1.3 Features............................................................................................................8
1.4 Main application areas......................................................................................8
1.5 Module basic parameters .................................................................................9
Chapter 2 Product function description.......................................................................10
2.1 User configuration process.............................................................................10
2.2 Operating mode..............................................................................................10
2.2.1 Transparent transmission mode ............................................................10
2.2.2 Serial command mode........................................................................... 11
2.2.3 HTTPD Client mode ..............................................................................12
2.2.4 Modbus TCP and Modbus RTU mutual conversion...............................13
2.3 Wireless networking........................................................................................14
2.3.1 STA-based wireless network .................................................................14
2.3.2 AP-based wireless network ...................................................................15
2.3.3 AP+STA wireless network......................................................................16
2.4 Ethernet interface networking mode ...............................................................17
2.4.1 CX-WIFI-2NET module Ethernet interface function (AP).......................17
2.4.2 CX-WIFI-2NET module Ethernet interface function (STA routing mode)18
2.4.3 CX-WIFI-2NET module Ethernet interface function (STA bridge mode) 18
2.4.4 CX-WIFI-2NET Ethernet interface function (switch) ..............................19
2.5 WI-FI parameter settings ................................................................................19
2.5.1 Automatic frequency selection...............................................................19
2.5.2 Security Mechanism ..............................................................................19
2.5.3 Add router function when STA...............................................................20
2.5.4 STA address binding function................................................................21
2.6 Network parameter setting..............................................................................21
2.6.1 Socket A ................................................................................................21
2.6.2 Socket B................................................................................................22
2.7 New feature settings.......................................................................................22
2.7.1 Tcp password authentication when establishing connection..................22
2.7.2 Register ID/MAC function......................................................................22
2.7.3 Adaptive baud rate function...................................................................23
2.7.4 KeepAlive Function................................................................................24
2.7.5 Multi-STA Function ................................................................................24
2.7.6 Domain name backup and smart STA...................................................24
2.8 Parameter setting ...........................................................................................24
2.9 Firmware upgrade...........................................................................................25
Chapter 3 Module parameter setting...........................................................................26
3.1 Web Management page..................................................................................26
3.1.1 Open management page.............................................................................26
3.1.2 Quick Configuration...............................................................................27
3.1.3 Wireless Mode Selection.......................................................................27
3.1.4 Wireless Access Point Settings...........................................................28

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 4,Total 93 Pages
3.1.5 Wireless Terminal Settings ....................................................................29
3.1.6 Serial Port and Network Settings...........................................................31
3.1.7 Ethernet Function Settings....................................................................32
3.1.8 HTTPD Client Mode ..............................................................................33
3.1.9 Advanced setting...................................................................................34
3.1.10 Module Management...........................................................................34
3.2 Serial Port Configuration.................................................................................35
3.2.1 Module operation mode.........................................................................35
3.2.1.1 Switch transparent mode to command mode...............................37
3.2.2 AT+ Command instruction .....................................................................37
3.2.2.1 Command format..........................................................................39
3.2.2.2 Instruction Set ..............................................................................41
3.2.2.2.1 AT+E ...................................................................................44
3.2.2.2.2 AT+ENTM............................................................................44
3.2.2.2.3 T+NETP..............................................................................44
3.2.2.2.4 AT+UART............................................................................44
3.2.2.2.5 AT+UARTF..........................................................................45
3.2.2.2.6 AT+UARTFT........................................................................45
3.2.2.2.7 AT+UARTFL........................................................................46
3.2.2.2.8 AT+TMODE.........................................................................46
3.2.2.2.9 AT+WMODE........................................................................46
3.2.2.2.10 AT+WSKEY.......................................................................47
3.2.2.2.11 AT+WSSSID......................................................................48
3.2.2.2.12 AT+WSLK..........................................................................48
3.2.2.2.13 AT+WEBU.........................................................................48
3.2.2.2.14 AT+WAP............................................................................49
3.2.2.2.15 AT+WAKEY.......................................................................49
3.2.2.2.16 AT+MSLP..........................................................................50
3.2.2.2.17 AT+WSCAN ......................................................................51
3.2.2.2.18 AT+TCPLK ........................................................................51
3.2.2.2.19 AT+TCPDIS.......................................................................51
3.2.2.2.20 AT+WANN.........................................................................52
3.2.2.2.21 AT+LANN ..........................................................................53
3.2.2.2.22 AT+DHCPGW ...................................................................53
3.2.2.2.23 AT+TCPTO........................................................................54
3.2.2.2.24 AT+MAXSK .......................................................................54
3.2.2.2.25 AT+TCPB ..........................................................................54
3.2.2.2.26 AT+TCPPTB......................................................................55
3.2.2.2.27 AT+TCPADDB...................................................................55
3.2.2.2.28 AT+TCPTOB .....................................................................56
3.2.2.2.29 AT+TCPLKB......................................................................56
3.2.2.2.30 AT+FUDLX........................................................................56
3.2.2.2.31 AT+MMID ..........................................................................57
3.2.2.2.32 AT+IDFIR ..........................................................................57
3.2.2.2.33 AT+IDEVE.........................................................................57
3.2.2.2.34 AT+AABR..........................................................................57
3.2.2.2.35 AT+DHCPDEN..................................................................58
3.2.2.2.36 AT+HIDESSID...................................................................58
3.2.2.2.37 AT+DOMAIN .....................................................................58

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 5,Total 93 Pages
3.2.2.2.38 AT+RELD ..........................................................................59
3.2.2.2.39 AT+Z..................................................................................59
3.2.2.2.40 AT+MID.............................................................................59
3.2.2.2.41 AT+VER ............................................................................59
3.2.2.2.42 AT+H .................................................................................60
3.2.2.2.43 AT+HTTPURL ...................................................................60
3.2.2.2.44 AT+HTTPTP......................................................................60
3.2.2.2.45 AT+HTTPPH .....................................................................61
3.2.2.2.46 AT+HTTPCN .....................................................................61
3.2.2.2.47 AT+HTTPUA .....................................................................61
3.2.2.2.48 AT+EPHYA........................................................................62
3.2.2.2.49 AT+EPHYB........................................................................62
3.2.2.2.50 AT+WSSSIDA ...................................................................62
3.2.2.2.51 AT+WSSSIDB ...................................................................63
3.2.2.2.52 AT+WSSSIDC...................................................................63
3.2.2.2.53 AT+WSKEYA.....................................................................64
3.2.2.2.54 AT+WSKEYB ....................................................................65
3.2.2.2.55 AT+WSKEYC ....................................................................65
3.2.2.2.56 AT+WSQY.........................................................................66
3.2.2.2.57 AT+HTPMODE..................................................................67
3.2.2.2.58 AT+HTPSV........................................................................67
3.2.2.2.59 AT+HTPTP........................................................................68
3.2.2.2.60 AT+HTPURL .....................................................................68
3.2.2.2.61 AT+HTPHEAD...................................................................69
3.2.2.2.62 AT+REGEN.......................................................................69
3.2.2.2.63 AT+REGTCP.....................................................................69
3.2.2.2.64 AT+REGID ........................................................................70
3.2.2.2.65 AT+IPBUP.........................................................................70
3.2.2.2.66 AT+STAPRO .....................................................................71
3.3 AP Mode Setting Procedure............................................................................72
3.4 STA mode setting procedure...........................................................................77
Appendix A: FAQ and Answers...................................................................................88
Question 1: Two CX-WIFI-2NET modules are interconnected, and the TCP protocol
is used as a transparent serial port. How to set it?...............................................88
Question 2:CX-WIFI-2NET module LAN IP settings, WAN IP settings Where are
they set?...............................................................................................................88
Question 3: Two WIFI modules are interconnected, and the transparent serial port
is made by UDP protocol. How to set it?...............................................................89
Question 4: Where is the TCP/UDP protocol of the CX-WIFI-2NET module? ......90
Question 5: Two WIFI modules are set as STAs, which are interconnected by APs
and do transparent serial ports. How to set them? ...............................................91
Question 6:
How to avoid IP address conflict when using CX-WIFI-2NET module?
..............................................................................................................................91
Question 7: The WIFI module is connected to the PC (Server) as a data acquisition
card. How to set it?...............................................................................................92
Question 8: Does the WIFI module TCP support UDP multicast?
...................93
Question 9: The WIFI module works in STA mode. How does the host computer
obtain the IP of the module?
...............................................................................93

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 6,Total 93 Pages
RJ45 LAN2
Restart button
Chapter 1 Hardware description
1.1. Module model and appearance
RS485
A
485+
B
485-
RS232
2
RX
3
TX
5
GND
Power
terminal
24V+
24V-
Ground
wire
Restore factory settings
button
Long press around 5S
External antenna detachable
RJ45 LAN1

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 7,Total 93 Pages
1.2. Indicator function
There are eight indicators on CX-WIFI-2NET module, which are POWER, CHAR,
READY, LINK, NET1, NET2, RX, TX. The status of the indicator light is as follows:
Indicator
name
Indication function
Status
POWER
Power Indicator
Power supply works normally.
CHAR
Lithium battery charging indicator
(optional)
It is equipped with a lithium battery
and is always on when the
rechargeable battery is charging. It
automatically turns off when the
battery is fully charged.
READY
System operation work indicator
Always bright after the system is
running
LINK
Module WIFI connection status indication
Connection is established with
data constantly lit
NET1
LAN1 port connection status indicator
Connection establishment has data
flicker
NET2
LAN2 port connection status indicator
Connection establishment has data
flicker
RX
Data transmission indication
Serial network RX has data flashing
See the table below for
the indicator function

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 8,Total 93 Pages
1.3 Features
● Support 802.11b/g/n wireless standard
● Support TCP/IP/UDP network protocol stack
● Support UART/Ethernet data communication interface
● Support wireless work in STA/AP/AP+STA mode
● Support routing / bridging / switch mode network architecture
● Support transparent / protocol data transmission mode
● Provide web configuration page
● Support heartbeat signal, WIFI connection indication
● Support serial free/auto framing function
● Flexible software platform to provide customized services
1.4 Main application areas
◆Intelligent lighting
◆Smart socket
◆Industrial control
◆Remote device monitoring
◆Internet of Things applications
TX
Data transmission indication
Serial network TX has data flashing

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 9,Total 93 Pages
1.5 Module basic parameters
Item
Index
Wireless
parameter
Wireless standard
802.11 b/g/n
Frequency range
2.412GHz-2.484GHz
Transmit power
802.11b: +20dBm(Max.)
802.11g: +18dBm(Max.)
802.11n: +15dBm(Max.)
User can configure power
Receiving sensitivity
802.11b: -89dBm
802.11g: -81dBm
802.11n: -71dBm
Antenna option
External I-PEX connector
Hardware
parameter
Data interface
UART:300bps-460800bps
Ethernet:100Mpbs
Operating Voltage
5-30V
Working current
50mA~350mA
Operating temperature
-40℃-85℃
Storage temperature
-40℃-125℃
Size
65×90×36mm
Software
parameter
Wireless network type
Station/AP mode
Security Mechanism
WEP/WPA-PSK/WPA2-PSK
Encryption type
WEP64/WEP128/TKIP/AES
Operating mode
Transparent transmission mode, serial
command mode
AT command
AT+ command structure
Network protocol
TCP/UDP/ARP/ICMP/DHCP/DNS/HTTP
Maximum number of
TCP connections
32
User configuration
Web server + AT command
configuration

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 10 ,Total 93 Pages
Chapter 2 Product function description
2.1 User configuration process
After CX-WIFI-2NET module is powered on, it will automatically connect to the
wireless network and server according to the parameters set by the user, and enter the
set working mode, and open the serial port according to the preset serial port
parameters.
The parameters that the user needs to preset are:
Operating mode
Transparent transmission / serial command mode / HTTPD Client mode
Wireless network parameters
Network name (SSID)
Safe mode
Key
Default TCP/UDP connection parameters
Protocol type
Connection type (server or client)
Destination port
Destination IP address
Serial port parameter
Baud rate
Data bit
Check position
Stop bit
Hardware flow control
After the user has configured all the parameters and restarted, the module can
work according to the set parameters. Each section will be described in detail in the
following sections.
2.2 Operating mode
The module has three working modes: transparent transmission, serial command
mode, and HTTPD client mode.
2.2.1 Transparent transmission mode
CX-WIFI-2NET module supports serial port transparent transmission mode, which
can realize serial port plug and play, thus minimizing the complexity of user use. In this
mode, all data that needs to be sent and received is transparently transmitted between
the serial port and the WiFi or Ethernet interface, enabling data transfer between the
universal serial device and the network device without any analysis.
In transparent transmission mode, it can be fully compatible with the user's original
software platform. User equipment can support wireless data transmission without any
software changes.

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 11 ,Total 93 Pages
<Description>:
Transparent transmission mode is the least complex data transmission. The user
turns on the hardware flow control (CTS/RTS) function of the serial port, which can
minimize the bit error rate.
2.2.2 Serial command mode
In this mode, users can send serial port data to different server addresses
according to our protocol, and send data to different servers without restarting. This
mode can send data to the server using UDP or TCP client.
The client MCU sends the packet in the following format. After the module is parsed,
only n bytes of data are sent to the destination address. When there is data return, the
data is directly output from the serial port without parsing.
Serial command mode protocol table:
Baotou
Length
Functional
word
Alternate
parameter area
Target
port
Target
address
Data
Sum
check
2
2
(n+m+5)
1
2
2
m
n
1
Baotou:
Constant for 0x55 0xaa
Length:
The sum of all the number of bytes from the start of the function word to the check
(without the checksum). High byte first function word:
Bit0:( UDP:0 ;TCP:1)
Bit1:( Short connection: 0; long connection:1)
Bit2:( IP:0;Domain name:1)
Bit7:( Streamlined protocol: 0; Full protocol:1)Note: Currently only the streamlined
protocol is supported.
Note:
● For Bit1, if it is a short connection, the data will be disconnected after sending the
data; if it is a long connection, after the data is sent, the connection will remain until the
target address is changed again.
● For Bit2, it indicates whether the destination address is IP or domain name. If it is
IP, the destination address is 4 bytes. If it is a domain name, the target address length
is the length of the entire domain name string (where the last byte of the destination
address is 0x00). , that is, the end of the string, the length of the domain name is not
fixed).
● For Bit7, in the thin protocol, the reply frame contains only data. Under the full
protocol, the reply frame will have a frame failure such as sending failure, waiting for
timeout, and responding to the device IP under UDP broadcast.
Alternate parameter area:
The first byte: If it is a short connection, this location is the TCP wait timeout period
(1-255). If the response is not received after the send command is completed, wait for
the corresponding number of seconds. If it is 5, it means the maximum wait. 5s
disconnected; if the return data is received immediately after sending the command,
the connection is immediately disconnected; if it is a long connection, it is 0x00 here.

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 12 ,Total 93 Pages
Second byte: reserved
Target port:
Little endian format, low byte first, such as port 23, here the order is 17 00
Target address:
If it is IP, it is 4 bytes, for example, 192.168.0.7 is represented as 07 00 A8 C0; if it
is a domain name, the address length is not fixed, ending with '\0'
Data:
Variable length, up to 1000 bytes
Calibration:
From the beginning of the function word, before the check byte, add the checksum.
The following are specific application examples:
Send data: 55 aa 00 0a 00 00 00 21 00 85 00 A8 C0 01 0f
Length byte 00 0a: length is n+m+5, here is 10
Function word 00: UDP mode
Target ip address 85 00A8 C0:192.168.0.133
Data area 00: length is 1
Check calculation:
0x00+0x00+0x00+0x21+0x00+0x85+0x00+0xA8+0xC0+0x01=0x0f
2.2.3 HTTPD Client mode
This mode is used to request data from an HTTP server or to submit data to a
server.
After the user sets the specific content of the HTTP protocol header with the AT
command or the web page. Each time data is sent, the module automatically
encapsulates the sent data into HTTP protocol data and sends it to the specified HTTP
server. It is convenient for users to read or submit data directly from the HTTP server. In
this mode, the user can send the data to the specified http server, and the module will
automatically add the http protocol header in front of the sent data. The content of the
specific protocol header can be set by the AT command or the web page.
The following are specific application examples:
First set the HTTP related parameters with theAT command.
AT+HTTPURL=192.168.1.1,80 Set the server's address and port
AT+HTTPTP=POST Set the HTTP type, GET, PUT,
or POST
AT+HTTPPH=/set Set the path in the protocol
header, up to 50 bytes
AT+HTTPCN=keep-alive Set Connection in the protocol
header, up to 20 bytes
AT+HTTPUA=lwip13.2 Set the User-Agent in the protocol
header, up to 20 bytes.
If the data sent is 1234.
Then on the 192.168.1.1 port 80 will receive the following data
POST/set HTTP/1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:4
Host:192.168.1.1:80

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 13 ,Total 93 Pages
1234
If the HTTP type is GET, the data received on port 80 of 192.168.1.1 is
POST/set1234 HTTP/1.1
Connection:keep-alive
User-Agent:lwip1.3.2
Content-Length:0
Host:192.168.1.1:80
If the module receives data from the server, it will print directly to the serial port
without any processing.
Users can customize the content of the HTTP header in the new definition mode.
You can add, delete, and modify the content of each HTTP header according to your
needs. (If the HTTP request type is POST/PUT, the module will automatically add
Content-Length. ). The set commands include AT+HTPMODE, AT+HTPSV, AT+HTPTP,
AT+HTPURL, AT+HTPHEAD. For the specific command setting procedure, please
refer to the AT command section. Similarly, there are corresponding settings pages in
the web page.
Note: In the new setting mode, if you use the AT command to set the protocol
header, please use "<<CRLF>>" instead of the carriage return. You don't need to
consider the carriage return when setting the built-in webpage.
2.2.4 Modbus TCP and Modbus RTU mutual conversion
This module supports Modbus TCP to Modbus RTU (Modbus ASCII is not
supported); the network parameters of the module should correspond to the network
parameters of the application software. The TCP server corresponds to the TCP client,
and the port should also be configured to be the same. The working mode is Modbus
TCP<= >Modbus RTU (AT command: AT+TMODE=modbus).

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 14 ,Total 93 Pages
ModbusRTU to ModbusTCP
2.3 Wireless networking
The wireless module of the CX-WIFI-2NET module can be configured as a wireless
STA or as an AP. Therefore, the CX-WIFI-2NET module logically supports two wireless
interfaces, one as a STA and the other as an AP. Other STAs can connect to the
wireless network through the AP interface of this module. Therefore, the
CX-WIFI-2NET module can provide a very flexible networking mode and network
topology. The functional modules of the CX-WIFI-2NET module are shown below:
< Description >:
AP: The wireless access point is the central node of a wireless network. A
commonly used wireless router is an AP, and other wireless terminals can be
connected to each other through an AP.
STA: A wireless station is a terminal of a wireless network. Such as laptops, PDAs,
etc.
2.3.1 STA-based wireless network
The CX-WIFI-2NET module is connected to other APs as STAs (using the AP CLI interface) to
form a wireless network. All STAs use the AP as the center of the wireless network, and the mutual
communication between the STAs is completed by the AP. As shown below:
User equipment
TCP232-401
P C

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 15 ,Total 93 Pages
2.3.2 AP-based wireless network
Because the CX-WIFI-2NET module can be set to either AP or STA, the CX-WIFI-2NET
module can easily implement the wireless network of the ad hoc network. As shown below. The
CX-WIFI-2NET module No. 1 is used as anAP. Other modules and computers can be connected to
this module as STAs. It can also be connected to user equipment through the UART interface;
CX-WIFI- 2 and 3 The 2NET module is connected to the No. 1 module as a STA, so that all
CX-WIFI-2NET modules can be managed by a computer. The self-organizing network mode can
facilitate the unified management of all CX-WIFI-2NET modules, and the self-organizing network
can easily expand the coverage of the entire wireless network.

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 16 ,Total 93 Pages
2号
2.3.3 AP+STA wireless network
The CX-WIFI-2NET module can support AP+STA. That is, the module supports
one AP interface and one STA interface at the same time.
In the figure, the module activates the function of AP+STA. The STAinterface of the
module can be connected to the router and connected to the server in the network
through TCP connection. At the same time, the AP interface on the module is also
available. The mobile phone/PAD can be connected to this AP interface (via TCPB
connection) to control the serial device or set the module.
☆With the AP+STA function, it is convenient to use the mobile phone/PAD and
other hand-held devices to monitor the user device without changing its original
network settings.
No.3
No.1

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 17 ,Total 93 Pages
☆The module can be easily set by the AP+STA function, which solves the
problem that the previous module can only be set through the serial port when it is in
the STA.
AP+STA Function setting:
The AP+STA function needs to be set through the serial port command
(F-logarithmic setting).
AT+FAPSTA=on Sets the AP+STAfunction (the factory settings are in effect).
Then when the module is set to STAmode, theAP interface is still valid.
Note on AT+STA mode:
When the AP+STA function is enabled, the STA port needs to be connected to
other routers. Otherwise, the STAport will continuously scan the router. When scanning,
it will affect theAP port, such as data loss.
If the user determines that the STA cannot connect to the AP at this time, you can
use the command to stop scanning the STA port.
AT+STTC=on/off, on means scanning the router, off is not scanning, and the
command is not saved after restarting.
AT+FSTTC=on/off, this command can be saved, and the original settings will be
maintained after restarting.
2.4 Ethernet interface networking mode
The CX-WIFI-2NET module provides a 100M Ethernet interface. Through this
100M Ethernet interface, users can implement WIFI port, serial port, Ethernet port, and
three interfaces to communicate with each other. In terms of networking, the
CX-WIFI-2NET module supports bridging mode, routing mode and switch mode to
correspond to different specific applications.
<Description>:
The Ethernet function has two network ports. The second network port can be used
as either a LAN port or a WAN port. The first network port can only be used as a LAN.
The bridge mode described below uses only the network port 2. The route mode can
use either network port 1 or network port 2. The switch mode uses two network ports at
the same time.
For different networking modes, the CX-WIFI-2NET module needs to be
version-switched through commands. Use the command AT+FVER=n to switch to the
(2.4.2) routing mode, and AT+FVER=z to switch to the (2.4.3) bridge mode.
2.4.1 CX-WIFI-2NET module Ethernet interface function (AP)

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 18 ,Total 93 Pages
Ethernet interface function (AP)
CX-WIFI-2NET module Ethernet interface function (AP+ dual network port)
The CX-WIFI-2NET module functions as an AP and forms a network centered on
the module. The IP addresses of all devices on the network work in the same network
segment as the modules.
2.4.2 CX-WIFI-2NET module Ethernet interface function (STA routing mode)
CX-WIFI-2NETModule Ethernet interface function(STA)
The CX-WIFI-2NET block acts as a STA and the module works in routing mode.
After the module is connected to the AP, obtain the IP address from the AP (as shown
in Figure 192.168.1.100). The modules themselves form a subnet (default
10.10.100.254), and the devices on the Ethernet interface are assigned addresses by
the module (see Figure 10.10.100.101). Thus, as PC1 is in the subnet (NAT), the
connection from PC1 can be connected to PC2 (because CX-WIFI-2NET works in
routing mode), but PC2 cannot actively connect to PC1.
2.4.3 CX-WIFI-2NET module Ethernet interface function (STA bridge mode)

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 19 ,Total 93 Pages
CX-WIFI-2NET Module Ethernet interface function(STA)
The CX-WIFI-2NET module acts as a STAand the module works in bridge mode.
After the module is connected to the AP, the device on the Ethernet interface obtains
the IP address from the AP (as shown in Figure 192.168.1.101). At this time, the
entire network, the module is like a transparent device, and PC1 and PC2 can
communicate with each other without any constraint. However, if the CX-WIFI-2NET
module is to communicate with other devices, you need to statically set the LAN IP
address (as shown in Figure 192.168.1.10).
2.4.4 CX-WIFI-2NET Ethernet interface function (switch)
CX-WIFI-2NET module Ethernet interface function (switch)
The CX-WIFI-2NET module acts as an AP and the module works in switch mode.
The module is connected to theAP through the network cable 2, and is connected to
the PC1 through the network port 1, so that the PC1 obtains an IP (192.168.1.101)
from the AP. In this way, PC1 and PC2 can communicate directly under a LAN.
Multiple D2 modules can be added between PC1 andAP (both work in switch mode),
so that the modules can be extended by hand, so that the coverage of the AP
network can be extended.
Note: In this mode, the module DHCP should be turned off with
AT+DHCPDEN=off, otherwise the network will be abnormal. To access the module,
you need to manually change the LAN port address of D2 to the same network
segment (192.168 above). 1.102).
2.5 WI-FI parameter settings
2.5.1 Automatic frequency selection
When the module works in STA mode, the module adjusts itself to the same
channel as the AP according to the wireless channel of the AP and accesses it.
When the module works in AP mode, it can be set to automatic frequency
selection mode, so when the module starts, it will choose a better wireless channel
according to the surrounding environment.
2.5.2 Security Mechanism
The CX-WIFI-2NET module supports multiple wireless network encryption
methods to fully guarantee the secure transmission of data, including:
WEP
WPA-PSK/TKIP

CX-WIFI-2NET module user manual
Shenzhen Coolmay Technology Co.,Ltd www.coolmay.com
Page 20 ,Total 93 Pages
WPA-PSK/AES
WPA2-PSK/TKIP
WPA2-PSK/AES
Note: When WEP is encrypted, the HEX mode is a 10-bit or a 26-digit password,
the ASCII mode is a 5-digit or a 13-digit password, and the WPA-PSK and
WPA2-PSK passwords are at least 8 bits.
2.5.3 Add router function when STA
A "Search" button has been added to the module "Wireless Terminal Settings"
page. After clicking this button, a window will pop up showing the information of the
surrounding APs and select. As shown below:
There are three STA settings on this page. You can fill in one or fill in three. If all
three are filled in, the module will automatically switch to the next STA network if the
current network signal is less than the signal threshold (if the threshold is Filling in
100 will not automatically switch the network).
Table of contents
Other Coolmay Control Unit manuals
Popular Control Unit manuals by other brands

Hankscraft Runxin
Hankscraft Runxin HD Series Service manual

Game ready
Game ready Equine 550250 user manual

Telit Wireless Solutions
Telit Wireless Solutions GM862GPS Series Technical manual

FIBARO
FIBARO BYPASS 2 manual

Burkert
Burkert 8640 operating instructions

Wolverine Brass
Wolverine Brass 87750 installation instructions