Table of Contents

Advertisement

Quick Links

CX-WIFI-2NET module user manual
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,
www.coolmay.com
Shenzhen Coolmay Technology Co.,Ltd
1
Page
,Total 93 Pages

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-WIFI-2NET and is the answer not in the manual?

Questions and answers

Summary of Contents for Coolmay CX-WIFI-2NET

  • Page 1 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.
  • Page 2 CX-WIFI-2NET module user manual 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. www.coolmay.com Shenzhen Coolmay Technology Co.,Ltd Page ,Total 93 Pages...
  • Page 3: Table Of Contents

    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 ................
  • Page 4 CX-WIFI-2NET module user manual 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 .................
  • Page 5 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.
  • Page 6: Chapter 1 Hardware Description

    CX-WIFI-2NET module user manual Chapter 1 Hardware description 1.1. Module model and appearance RS232 RS485 External antenna detachable 485+ 485- Restart button Power terminal 24V+ 24V- Restore factory settings Ground button wire Long press around 5S RJ45 LAN1 RJ45 LAN2 www.coolmay.com...
  • Page 7: Indicator Function

    CX-WIFI-2NET module user manual 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: See the table below for the indicator function...
  • Page 8: Features

    CX-WIFI-2NET module user manual Data transmission indication Serial network TX has data flashing 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 ●...
  • Page 9: Module Basic Parameters

    CX-WIFI-2NET module user manual 1.5 Module basic parameters Item Index Wireless standard 802.11 b/g/n Frequency range 2.412GHz-2.484GHz 802.11b: +20dBm(Max.) 802.11g: +18dBm(Max.) Transmit power 802.11n: +15dBm(Max.) Wireless User can configure power parameter 802.11b: -89dBm 802.11g: -81dBm Receiving sensitivity 802.11n: -71dBm External I-PEX connector Antenna option UART:300bps-460800bps...
  • Page 10: Chapter 2 Product Function Description

    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.
  • Page 11: Serial Command Mode

    CX-WIFI-2NET module user manual <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.
  • Page 12: Httpd Client Mode

    CX-WIFI-2NET module user manual 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:...
  • Page 13: Modbus Tcp And Modbus Rtu Mutual Conversion

    CX-WIFI-2NET module user manual 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.
  • Page 14: Wireless Networking

    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.
  • Page 15: Ap-Based Wireless Network

    As shown below. The CX-WIFI-2NET module No. 1 is used as an AP. Other modules and computers can be connected to this module as STAs. It can also be connected to user equipment through the UART interface;...
  • Page 16: Ap+Sta Wireless Network

    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 STA interface of the module can be connected to the router and connected to the server in the network through TCP connection.
  • Page 17: Ethernet Interface Networking Mode

    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.
  • Page 18: Cx-Wifi-2Net Module Ethernet Interface Function (Sta Routing Mode)

    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).
  • Page 19: Cx-Wifi-2Net Ethernet Interface Function (Switch)

    CX-WIFI-2NET module user manual CX-WIFI-2NET Module Ethernet interface function(STA) The CX-WIFI-2NET module acts as a STA and 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.
  • Page 20: Add Router Function When Sta

    CX-WIFI-2NET module user manual 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.
  • Page 21: Sta Address Binding Function

    2.6 Network parameter setting CX-WIFI-2NET module has two TCP Sockets: Socket A and Socket B. The data written to the serial port of the module will be sent to the Socket A and B simultaneously; the data received by the module through Socket A or B will be sent out through the serial port.
  • Page 22: Socket B

    CX-WIFI-2NET module user manual UDP Client. For the setting method, please refer to the AT+NETP command in the AT command. When Socket A is set to TCP Server, it can support TCP link connections of up to 32 TCP Clients. In the multi-TCP link connection mode, data transmitted from TCP is forwarded one by one to the serial port.
  • Page 23: Adaptive Baud Rate Function

    CX-WIFI-2NET module user manual 0x00). There are two ways to register: one is to register your own ID/MAC when connecting to the server for the first time; the other is to add ID/MAC in front of each sent data. The parameters related to this function are set on the “Serial Port and Other Settings”...
  • Page 24: Keepalive Function

    CX-WIFI-2NET module user manual In the virtual serial port software, select "synchronous baud rate (class RFC2217)", and use the at command "AT+AABR=on" to open the module's adaptive baud rate function and restart. As shown below: In the picture, the virtual serial port synchronizes the baud rate. The baud rate of the module changes with the baud rate of the virtual serial port at any time, and the module does not need to be restarted.
  • Page 25: Firmware Upgrade

    IE browser. If the module is connected to a wireless network, the PC can be set up only if it is connected to the same wireless network. In addition, since the CX-WIFI-2NET module is also an AP,PC can be set by being connected to the module which needs to be set .
  • Page 26: Chapter 3 Module Parameter Setting

    You can connect AP interface of the CX-WIFI-2NET module via PC and manage page configuration via web. By default, the SSID of the AP interface of the CX-WIFI-2NET module is USR-WIFI232-AP_xxxx, and the IP address and user name and password are as...
  • Page 27: Quick Configuration

    CX-WIFI-2NET module user manual 3.1.2 Quick Configuration Quick Configuration page provides users with a quick way to configure modules. After configuring the parameters according to the page steps and restarting the startup module, the module can work normally, reducing the configuration steps and time.
  • Page 28: Wireless Access Point Settings

    CX-WIFI-2NET module user manual 3.1.4 Wireless Access Point Settings The CX-WIFI-2NET module supports the AP interface,which could be used to manage the module conveniently, and realize self-organizing network. The management page is as shown below. Including: SSID settings, wireless network mode settings and wireless security settings, and the setting of the LAN composed of APs.
  • Page 29: Wireless Terminal Settings

    CX-WIFI-2NET module user manual 3.1.5 Wireless Terminal Settings The wireless terminal interface,namely STA interface. The CX-WIFI-2NET module can be connected to other wireless networks through the STA interface, and settings as follows: The page setup includes two tables, the first one is the STA's wireless settings, including the SSID of the AP to be connected, security settings, and so on.
  • Page 30 CX-WIFI-2NET module user manual www.coolmay.com Shenzhen Coolmay Technology Co.,Ltd Page , Total 93 pages...
  • Page 31: Serial Port And Network Settings

    CX-WIFI-2NET module user manual 3.1.6 Serial Port and Network Settings Application settings are settings for the wifi to uart application parameters, including: serial port parameter settings, automatic framing settings, device id settings, and network protocol settings. www.coolmay.com Shenzhen Coolmay Technology Co.,Ltd...
  • Page 32: Ethernet Function Settings

    CX-WIFI-2NET module user manual <Description>: There are four modes on the network side: TCP Server, TCP Client, UDP server, and UDP client. When the module is configured as UDP server, the module remembers the last communicated UDP client and communicates with it.While the UDP client mode only communicates with the target IP and address.
  • Page 33: Httpd Client Mode

    CX-WIFI-2NET module user manual ports can be opened or closed. Moreover, the second network port can be set to be used as a WAN port, so that the module can be used as a secondary router to facilitate user networking. The specific settings page is as follows: 3.1.8 HTTPD Client Mode...
  • Page 34: Advanced Setting

    CX-WIFI-2NET module user manual 3.1.9 Advanced setting Under the advanced settings page, users can set the port mapping and DDNS functions instead of router with less complexity. Port mapping and DDNS can be matched to be used, In the public network environment, you can enter the peanut shell domain name and port to find the module quickly and easily .
  • Page 35: Serial Port Configuration

    3.2 Serial Port Configuration 3.2.1 Module operation mode CX-WIFI-2NET module has two working modes,Default(start) mode actively enters the transparent transmission mode,users can switch the module to the command line mode via the serial port command.
  • Page 36 CX-WIFI-2NET module user manual In the command line mode, the user can use the UART port to set the module via AT+ command. Its function can completely cover the settings of the web page. www.coolmay.com Shenzhen Coolmay Technology Co.,Ltd Page...
  • Page 37: Switch Transparent Mode To Command Mode

    CX-WIFI-2NET module user manual 3.2.1.1 Switch transparent mode to command mode There are 2 steps from transparent mode to command mode : Enter "+++" on the UART port, and the module will return a confirmation code "a" after receiving "+++";...
  • Page 38 CX-WIFI-2NET module user manual The AT+ command can also be set via the USR-WIFI232-Setup software (in CD): Click “Open Serial Port”, send “+++ a” to the left display box to reply “+OK”, then input the AT command needs to be sent in the left operation area. After setting well click “AT+RELD”...
  • Page 39: Command Format

    CX-WIFI-2NET module user manual Above is the AT command setting through the serial port, and the AT command can also be set through WIFI. First, the computer establishes a network connection with the module, using the USR-WIFI232-Setup setting software provided on the CD.
  • Page 40 CX-WIFI-2NET module user manual [op]:Command operator, specified as parameter setting or query “=”:parameter setting “null”:query [para-n]:Input when parameter setting,no need when query <CR>: Terminator, Enter, ASCII code 0x0a or 0x0d <Description>: When echoing, the terminator is automatically converted to 0x0a0d. When you enter a command, the "AT+<CMD>"...
  • Page 41: Instruction Set

    CX-WIFI-2NET module user manual +:Response message prefix RSP:response string, including: ok:success ERR:failure [op]:= [para-n]:Return parameters when querying,error when error occurs. <CR>:ASCII code 0x0d <LF>:ASCII code 0x0a Error code Error code description Invalid command format Invalid command Invalid operator Invalid parameter Operation not allowed 3.2.2.2 Instruction Set...
  • Page 42 CX-WIFI-2NET module user manual WIFI AP mode Set/Query Encryption WAKEY Parameters in WIFI AP Mode Set the module to enter MSLP low power mode, turn off WIFI Search AP in STA mode WSCAN Query whether the TCP TCPLK link has been chained...
  • Page 43 CX-WIFI-2NET module user manual Set/Query HTTP Protocol HTTPPH Header Path Set/Query HTTP Protocol HTTPCN Header Connection Set/Query HTTP Protocol HTTPUA Header User-Agent Turn on/off ETH interface 1 EPHYA Turn on/off ETH interface 2 EPHYB Set/Query the SSID of 1st STA...
  • Page 44: At+E

    CX-WIFI-2NET module user manual features <Description>: The CX-WIFI-2NET module can work in AP or STA mode and set WIFI parameters with different commands. 3.2.2.2.1 AT+E Function: Turn on/off the echo function Format: AT+E<CR> +ok<CR>< LF ><CR>< LF > When the module switches from transparent mode to command mode, the default echo function is turned on.
  • Page 45: At+Uartf

    CX-WIFI-2NET module user manual Format: Inquire:AT+UART<CR> +ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR>< LF ><CR>< LF > Set:AT+UART=<baudrate,data_bits,stop_bit,parity,flowctrl><CR> +ok<CR>< LF ><CR>< LF > Parameter:  baudrate:baud rate,yes 300 , 600 , 1200 , 1800 , 2400 , 4800 , 9600 , 19200 , 38400 , 57600 ,...
  • Page 46: At+Uartfl

    CX-WIFI-2NET module user manual 3.2.2.2.7 AT+UARTFL Function: set / query automatic framing trigger length Format: Query:AT+UARTFL<CR> +ok=<len><CR>< LF ><CR>< LF > Set:AT+UARTFL=<len><CR> +ok<CR>< LF ><CR>< LF > Parameter: Len:Automatic framing trigger length in bytes. Value range: 16~4096. 3.2.2.2.8 AT+TMODE Function: Set / query data transmission mode (transparent mode or protocol...
  • Page 47: At+Wskey

    CX-WIFI-2NET module user manual AP: Wireless access point mode STA: Wireless terminal mode After the module is restarted, the set parameters take effect. 3.2.2.2.10 AT+WSKEY Function: Set/Query Encryption Parameters in WIFI STA Mode Format: Query: AT+WSKEY<CR> +ok=<auth,encry,key><CR>< LF ><CR>< LF >...
  • Page 48: At+Wsssid

    CX-WIFI-2NET module user manual 3.2.2.2.11 AT+WSSSID Function: Set/Query AP SSID in WIFI STA Mode Format: Query: AT+WSSSID<CR> +ok=<ap’s ssid><CR>< LF ><CR>< LF > Settings: AT+ WSSSID=<ap’s ssid ><CR> +ok<CR>< LF ><CR>< LF > parameter: Ap’s ssid: SSID of the AP This parameter is valid only in STA mode.
  • Page 49: At+Wap

    CX-WIFI-2NET module user manual Settings: AT+ WEBU=< usr,password ><CR> +ok<CR>< LF ><CR>< LF > parameter: Usr: username when WEB page is accessed Password: password for WEB page access 3.2.2.2.14 AT+WAP Function: Set/Query parameters in WIFI AP mode Format: Query: AT+WAP<CR>...
  • Page 50: At+Mslp

    CX-WIFI-2NET module user manual +ok=<auth,encry,key><CR>< LF ><CR>< LF > Settings: AT+ WAKEY=< auth, encry, key><CR> +ok<CR>< LF ><CR>< LF > parameter: Auth: authentication mode, including OPEN SHARED WPAPSK WPA2PSK Encry: encryption algorithm, including Valid when NONE:auth=OPEN WEP-H: valid when auth=OPEN or SHARED (WEP, HEX)
  • Page 51: At+Wscan

    CX-WIFI-2NET module user manual When querying, sta.: returns whether the module sleeps, such as On, indicating no sleep Off, indicating sleep While setting, off puts the module into sleep mode, on allows the module to exit sleep mode. When the module enters sleep mode, enter AT+MSLP=on and the module exits sleep mode.
  • Page 52: At+Wann

    CX-WIFI-2NET module user manual Format: Query: AT+ TCPDIS <CR> +ok=<sta.><CR>< LF ><CR>< LF > Settings: AT+TCPDIS=<on/off><CR> +ok<CR>< LF ><CR>< LF > parameter: When querying, sta.: Returns whether the TCP Client is linkable, such as On, expressed as linkable status Off, indicating that it is not linkable While setting, the off setting module is unlinkable, that is, after the command is finished, the module immediately disconnects and no longer reconnects.
  • Page 53: At+Lann

    CX-WIFI-2NET module user manual 3.2.2.2.21 AT+LANN Function: Set / query LAN settings, only valid in AP mode Format: Query: AT+LANN<CR> +ok=<address,mask ><CR>< LF ><CR>< LF > Settings: AT+ LANN=<address,mask ><CR> +ok<CR>< LF ><CR>< LF > parameter:  Address.:LAN port IP address ...
  • Page 54: At+Tcpto

    CX-WIFI-2NET module user manual 3.2.2.2.23 AT+TCPTO Function: Set/Query TCP Timeout Format: Query: AT+TCPTO<CR> +ok=<time><CR>< LF ><CR>< LF > Settings: AT+ TCPTO=<time ><CR> +ok<CR>< LF ><CR>< LF > parameter: Time.: TCP timeout, <= 600 (600 seconds), >=0 (0 means no timeout), default is 0 TCP timeout: The module TCP channel does not receive any data to start counting, and clears the count when it receives data.
  • Page 55: At+Tcpptb

    CX-WIFI-2NET module user manual Query: AT+TCPB <CR> +ok=<sta.><CR>< LF ><CR>< LF > Settings: AT+TCPB=<on/off><CR> +ok<CR>< LF ><CR>< LF > parameter: When querying, sta.: Returns whether the TCPB function is enabled, such as On, indicating TCPB enable Off, indicating that TCPB is not enabled. After the module is restarted, the set parameters take effect.
  • Page 56: At+Tcptob

    CX-WIFI-2NET module user manual 3.2.2.2.28 AT+TCPTOB Function: Set/Query TCPB Timeout Time Format: Query: AT+TCPTOB<CR> +ok=<time><CR>< LF ><CR>< LF > Settings: AT+ TCPTOB=<time ><CR> +ok<CR>< LF ><CR>< LF > parameter: Time.: TCPB timeout, <= 600 (600 seconds), >=0 (0 means no timeout), default is 3.2.2.2.29 AT+TCPLKB...
  • Page 57: At+Mmid

    CX-WIFI-2NET module user manual 3.2.2.2.31 AT+MMID Function: Set module ID command Format: AT+MMID=<ID><CR> +ok=<ID><CR>< LF ><CR>< LF > parameter: ID: The value of the ID, ranging from 0 to 65535. 3.2.2.2.32 AT+IDFIR Function: First built with ID function to turn off the command format: AT+IDFIR=on/off<CR>...
  • Page 58: At+Dhcpden

    CX-WIFI-2NET module user manual AT+AABR=on/off<CR> +ok<CR>< LF ><CR>< LF > This command enables or disables the adaptive baud rate function, which is enabled by default. 3.2.2.2.35 AT+DHCPDEN Function: Enable/disable DHCP server function of LAN port Format: AT+DHCPDEN=on/off<ID><CR> +ok=<ID><CR>< LF ><CR>< LF >...
  • Page 59: At+Reld

    CX-WIFI-2NET module user manual 3.2.2.2.38 AT+RELD Function: Restore factory settings Format: AT+ RELD<CR> +ok=rebooting...<CR>< LF ><CR>< LF > This command restores the factory settings of the module and then automatically restarts. 3.2.2.2.39 AT+Z Function: restart the module Format: AT+ Z<CR>...
  • Page 60: At+H

    CX-WIFI-2NET module user manual 3.2.2.2.42 AT+H Function: help instructions format: Query: AT+H<CR> +ok=<commod help><CR>< LF ><CR>< LF > Parameters: commod help: command line description 3.2.2.2.43 AT+HTTPURL Function: Set/Query IP and Port Format of HTTP Server: Query: AT+HTTPURL<CR> +ok=<ip>,<port><CR>< LF ><CR>< LF >...
  • Page 61: At+Httpph

    CX-WIFI-2NET module user manual POST 3.2.2.2.45 AT+HTTPPH Function: Set/Query HTTP Protocol Header Path Format: Query: AT+HTTPPH<CR> +ok=<path><CR>< LF ><CR>< LF > Settings: AT+HTTPPH=<path><CR> +ok<CR>< LF ><CR>< LF > parameter: Path: The protocol header path of HTTP. 3.2.2.2.46 AT+HTTPCN Function: Set/Query Connection of HTTP Protocol Header format: Query: AT+HTTPCN<CR>...
  • Page 62: At+Ephya

    CX-WIFI-2NET module user manual +ok<CR>< LF ><CR>< LF > parameter: User-Agent: User-Agent of the HTTP protocol header. 3.2.2.2.48 AT+EPHYA Function: Turn on/off Ethernet 1 function Format: AT+EPHYA=on/off<ID><CR> +ok=<ID><CR>< LF ><CR>< LF > parameter: This command enables or disables the Ethernet 1 function, which is enabled by default.
  • Page 63: At+Wsssidb

    CX-WIFI-2NET module user manual +ok=<ap’s ssid><CR>< LF ><CR>< LF > Settings: AT+ WSSSIDA=<ap’s ssid ><CR> +ok<CR>< LF ><CR>< LF > parameter: Ap’s ssid: SSID of the AP This parameter is valid only in STA mode. After the module is restarted, the set parameters take effect.
  • Page 64: At+Wskeya

    CX-WIFI-2NET module user manual +ok<CR>< LF ><CR>< LF > parameter: Ap’s ssid: SSID of the AP This parameter is valid only in STA mode. After the module is restarted, the set parameters take effect. However, these parameters can also be set in AP mode.
  • Page 65: At+Wskeyb

    CX-WIFI-2NET module user manual 3.2.2.2.54 AT+WSKEYB Function: Set/Query WIFI Three AP encryption under three STA parameter sets format: Query: AT+WSKEYB<CR> +ok=<auth,encry,key><CR>< LF ><CR>< LF > Settings: AT+ WSKEYB=< auth, encry, key><CR> +ok<CR>< LF ><CR>< LF > parameter: Auth: authentication mode, including...
  • Page 66: At+Wsqy

    CX-WIFI-2NET module user manual +ok=<auth,encry,key><CR>< LF ><CR>< LF > Settings: AT+ WSKEYC=< auth, encry, key><CR> +ok<CR>< LF ><CR>< LF > parameter: Auth: authentication mode, including OPEN SHARED WPAPSK WPA2PSK Encry: encryption algorithm, including Valid when NONE:auth=OPEN WEP-H: valid when auth=OPEN or SHARED (WEP, HEX)
  • Page 67: At+Htpmode

    CX-WIFI-2NET module user manual The percentage of signal strength, such as the signal strength is 50%, should be set to AT+WSQY=50<CR> Note: If set to 100, the module will not automatically switch the WIFI network. If the customer uses only one STA parameter, be sure to set this parameter to 100.
  • Page 68: At+Htptp

    CX-WIFI-2NET module user manual This parameter is valid only in HTTPD Client mode. After the module is restarted, the set parameters take effect. However, these parameters can also be set in other modes. 3.2.2.2.59 AT+HTPTP Function: Set/Query HTTP Request Type Format: Query: AT+HTPTP<CR>...
  • Page 69: At+Htphead

    CX-WIFI-2NET module user manual 3.2.2.2.61 AT+HTPHEAD Function: Set/Query HTTP Header Content Format: Query: AT+HTPHEAD<CR> +ok=<head><CR>< LF ><CR>< LF > Settings: AT+HTPHEAD=<head><CR> +ok<CR>< LF ><CR>< LF > parameter: Head: The header content of HTTP. The carriage return line feed in the header content should be replaced with the string "<<CRLF>>", the longest...
  • Page 70: At+Regid

    CX-WIFI-2NET module user manual parameter: Type: the type of registration package, such as First: the registration package is sent when the module establishes a connection. Every: send a registration package each time data is sent 3.2.2.2.64 AT+REGID Function: Set/Query Registration Package ID Format: Query: AT+REGID<CR>...
  • Page 71: At+Stapro

    CX-WIFI-2NET module user manual 3.2.2.2.66 AT+STAPRO Function: Turn on/off the smart STA function Format: Query: AT+STAPRO<CR> +ok=<mode><CR>< LF ><CR>< LF > Settings: AT+ STAPRO=< mode><CR> +ok<CR>< LF ><CR>< LF > parameter: Mode: Included On: Turn on the smart sta function Off: Turn off the smart sta function This command is off by default.
  • Page 72: Ap Mode Setting Procedure

    CX-WIFI-2NET module user manual 3.3 AP Mode Setting Procedure Step 1: Configure CX-WIFI-2NET module communication ① Turn on your computer's wireless network and search for the wireless signal USR-WIFI232-AP_**** to connect to the wireless network. ② Open a browser, enter the URL "http://10.10.100.254" and press Enter.
  • Page 73 CX-WIFI-2NET module user manual www.coolmay.com Shenzhen Coolmay Technology Co.,Ltd Page , Total 93 pages...
  • Page 74 9600, data bit: 7, check digit: EVEN, stop bit: 1, (Note: 9600 7 EVEN 1 is Coolmay PLC Or compatible with the Mitsubishi protocol PLC parameters, the specific baud rate, data bits, check bits, stop bits are based on the default...
  • Page 75 CX-WIFI-2NET module user manual www.coolmay.com Shenzhen Coolmay Technology Co.,Ltd Page , Total 93 pages...
  • Page 76 CX-WIFI-2NET module user manual Step 2: Configure the virtual serial port software ① Open the computer's wireless network and search for the wireless signal USR-WIFI232-AP_**** to connect to the wireless network: Add a virtual serial port: ② Connect the virtual serial port and change the sync baud rate option in ③...
  • Page 77: Sta Mode Setting Procedure

    Note: The PLC software version must be GX 8.52 or WORKS 2. 3.4 STA mode setting procedure The first step: configure CX-WIFI-2NET module communication ① Open the computer's wireless network and search for the wireless signal USR-WIFI232-AP_**** to connect to the wireless network: www.coolmay.com...
  • Page 78 CX-WIFI-2NET module user manual Open a browser, enter the URL "http://10.10.100.254" and press Enter. ② Fill in the user name and password in the pop-up dialog box. The default username is admin, the password defaults to admin, and then determine: Enter the quick configuration, select the STA mode in the wireless mode, ③...
  • Page 79 CX-WIFI-2NET module user manual In this screenshot, the xi777 wireless network is connected and the correct password is entered. (Note that the specific network and password to be connected need to be set on site, this screenshot is for reference only), other parameters are default, then click to confirm: www.coolmay.com...
  • Page 80 CX-WIFI-2NET module user manual In the serial port configuration, the working mode uses the default ④ transparent transmission mode. In the serial port parameter configuration, the baud rate: 9600, data bit: 7, check digit: EVEN, stop bit: 1, (note: 9600 7 EVEN...
  • Page 81 CX-WIFI-2NET module user manual In network mode, the network mode is set to Client, the protocol is set to ⑤ TCP, the port is set to 25565, the server address is set to 120.76.116.193, other parameters are default, and then click OK: www.coolmay.com...
  • Page 82 ID, the registration package mode is selected First, the device ID is set to 64847 in this screenshot, (Note: each CX-WIFI-2NET module needs to use STA Mode, need device ID, you need to consult Gumei technical customer service to request and then set), then click OK: www.coolmay.com...
  • Page 83 CX-WIFI-2NET module user manual After all the above steps are set, enter the module management and ⑦ click Restart in the restart module: www.coolmay.com Shenzhen Coolmay Technology Co.,Ltd Page , Total 93 pages...
  • Page 84 CX-WIFI-2NET module user manual www.coolmay.com Shenzhen Coolmay Technology Co.,Ltd Page , Total 93 pages...
  • Page 85 ID according to the factory parameters. The registration ID number corresponding to each module will be indicated on the product label. If you forget or not save, please ask Coolmay for help.) After the creation is successful, as shown in the figure below, and change the sync baud rate option in the option to unchecked: www.coolmay.com...
  • Page 86 CX-WIFI-2NET module user manual www.coolmay.com Shenzhen Coolmay Technology Co.,Ltd Page , Total 93 pages...
  • Page 87 CX-WIFI-2NET module user manual In this routine, the virtual serial port number is COM2, and the PLC ② programming software needs to use COM2 connection to download the program and remotely monitor the PLC.. Note: The PLC software version must be GX 8.52 or WORKS 2 to connect successfully.
  • Page 88: Appendix A: Faq And Answers

    LAN address, so the LAN IP of the 2# module needs to be changed, as shown in Figure 10.10.99.254. Question 2:CX-WIFI-2NET module LAN IP settings, WAN IP settings Where are they set? The LAN IP is set in the “Wireless Access Point Settings” page as shown below: The WAN IP is set in the “Wireless Terminal Interface...
  • Page 89: Question 3: Two Wifi Modules Are Interconnected, And The Transparent Serial Port Is Made By Udp Protocol. How To Set It

    CX-WIFI-2NET module user manual LAN IP setting Question 3: Two WIFI modules are interconnected, and the transparent serial port is made by UDP protocol. How to set it? As belowing picture shown, The 1# module is used as the AP, the protocol is changed to UDP, and the IP address is 2# module WAN IP: 10.10.100.100.
  • Page 90: Question 4: Where Is The Tcp/Udp Protocol Of The Cx-Wifi-2Net Module

    CX-WIFI-2NET module user manual Question 4: Where is the TCP/UDP protocol of the CX-WIFI-2NET module? The TCP/UDP protocol is set in the "Application Settings" page, as shown in the figure. The module defaults to TCP Server and the port number is 8899.
  • Page 91: Question 5: Two Wifi Modules Are Set As Stas, Which Are Interconnected By Aps And Do Transparent Serial Ports. How To Set Them

    APs and do transparent serial ports. How to set them? As shown in the figure, because the CX-WIFI-2NET module can also be used as an AP, the AP here uses the CX-WIFI-2NET module as an example: 1# module is AP, the default setting can be 2# module is STA, WAN IP is 10.10.100.100, TCP Server...
  • Page 92: Question 7: The Wifi Module Is Connected To The Pc (Server) As A Data Acquisition Card. How To Set It

    CX-WIFI-2NET module user manual conflict between dynamic allocation and statically assigned addresses. Question 7: The WIFI module is connected to the PC (Server) as a data acquisition card. How to set it? As shown in the following figure, three modules establish three TCP...
  • Page 93: Question 8: Does The Wifi Module Tcp Support Udp Multicast

    CX-WIFI-2NET module user manual Question 8: Does the WIFI module TCP support UDP multicast? At present, all WIFI modules do not support UDP multicast. The IP multicast address range is 224.0.0.0~239.255.255.255. Do not set the above IP segment when setting the module. If it is set, the module may not start properly.

Table of Contents