Jinan USR IOT Technology WIFI232D2A Embedded WiFi Module User Manual GPON SFU System Design

Jinan USR IOT Technology Limited Embedded WiFi Module GPON SFU System Design

Contents

Manual

USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 1 of 78 tec@usr.cnUSR-WIFI232-USR-WIFI232-USR-WIFI232-USR-WIFI232- D2D2D2D2EmbeddedEmbeddedEmbeddedEmbedded WiFiWiFiWiFiWiFi ModuleModuleModuleModule UserUserUserUser ManualManualManualManualVersion :V1.0.0Remarks:Remarks:Remarks:Remarks: This module is applicable to USR-WIFI232- D2 . For Other modules please refer to thecorresponding document.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 2 of 78 tec@usr.cnTableTableTableTable OfOfOfOf ContentsContentsContentsContents1 Quick Start .......................................................................................................................................... 61.1 Hardware connect ................................................................................................................... 61.2 Network connection ................................................................................................................. 61.3 C ommunication test ................................................................................................................. 72 Product Overview ............................................................................................................................... 82.1 General Description ................................................................................................................. 81 Quick Start .......................................................................................................................................... 61.1 Hardware connect ................................................................................................................... 61.2 Network connection ................................................................................................................. 61.3 Communication test ................................................................................................................. 72 Product Overview ............................................................................................................................... 82.1 General Description ................................................................................................................. 82.2 Device Features ...................................................................................................................... 92.3 Device Paremeters ................................................................................................................ 102.4 Key Application ...................................................................................................................... 102.5 Package Information .............................................................................................................112.5.1 Recommended Reflow Profile ....................................................................................112.5.2 Device Handling Instruction (Module IC SMT Preparation) ......................................112.5.3 Shipping Information ...................................................................................................113 Hardware Introduction ..................................................................................................................... 123.1 Pins Definition ........................................................................................................................ 123.1.1 USR-WIFI232-D2 Pins Definition ............................................................................... 123.1.2 USR-WIFI232-D2 Size ............................................................................................... 143.2 Antenna .................................................................................................................................. 143.2.1 On-board Chip Antenna .............................................................................................. 143.2.2 External Antenna ........................................................................................................ 153.3 Evaluation Kit ......................................................................................................................... 163.4 Hardware Reference Design ................................................................................................ 173.4.1 Hardware Typical Application ..................................................................................... 173.4.2 10/100M Ethernet Interface ....................................................................................... 183.4.3 UART Interface ........................................................................................................... 183.4.4 Power Interface ........................................................................................................... 194 Modules Function Description ......................................................................................................... 194.1 User configuration process ................................................................................................... 194.2 Working mode ....................................................................................................................... 204.2.1 Transparent Transmission Mode ............................................................................... 204.2.2 Serial command mode ............................................................................................... 204.2.3 GPIO mode ................................................................................................................. 224.2.4 HTTPD Client mode ................................................................................................... 224.3 Wireless Networking ............................................................................................................. 23
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 3 of 78 tec@usr.cn4.3.1 STA .............................................................................................................................. 234.3.2 AP ................................................................................................................................ 244.3.3 AP+STA ....................................................................................................................... 244.4 Ethernet Interface Communication ....................................................................................... 264.4.1 USR-WIFI232-D2 Ethernet Interface Networking (As AP) ....................................... 264.4.2 USR-WIFI232-D2 Ethernet Interface Networking (As STA, N-Ver) ......................... 264.4.3 USR-WIFI232-D2 Ethernet Interface Networking (As STA, Z-Ver) .......................... 274.5 WI-FI parameter setting ........................................................................................................ 274.5.1 Auto- Frequency Function .......................................................................................... 274.5.2 Security ....................................................................................................................... 274.5.3 Search Function for STA ............................................................................................ 284.5.4 Address Binding .......................................................................................................... 284.6 UART Frame Scheme ........................................................................................................... 284.6.1 UART Free-Frame ...................................................................................................... 284.6.2 UART Auto-Frame ...................................................................................................... 294.7 Network Setting ..................................................................................................................... 294.7.1 Socket A ...................................................................................................................... 294.7.2 Socket B ...................................................................................................................... 304.8 New function .......................................................................................................................... 304.8.1 TCP password authentication .................................................................................... 304.8.2 Upload ID .................................................................................................................... 304.8.3 Self-adaption Baudrate ............................................................................................... 304.8.4 WEB IO ....................................................................................................................... 314.8.5 Keepalive .................................................................................................................... 314.8.6 MultipleSTAparameters ............................................................................................ 314.8.7 Websocket .................................................................................................................. 314.9 Palmodic Signal ..................................................................................................................... 324.10 Parameters Configuration ................................................................................................... 324.11 Firmware Upgrade ............................................................................................................... 335 Web Accessing and AT+instruction set ........................................................................................... 345.1 Configuration via Web Accessing ......................................................................................... 345.1.1 Open Web Management Interface ............................................................................. 345.1.2 Quick Configure .......................................................................................................... 355.1.3 Mode Selection Page ................................................................................................. 355.1.4 AP Interface Setting Page .......................................................................................... 365.1.5STAInterface Setting Page ........................................................................................ 365.1.6 Application Setting Page ............................................................................................ 375.1.7 Ethernet Setting .......................................................................................................... 385.1.8 HTTPD Client Mode ................................................................................................... 395.1.9 WEB IO ....................................................................................................................... 395.1.10 Device Management Page ....................................................................................... 405.2 AT+instruction Introduction ................................................................................................... 415.2.1 Configuration Mode .................................................................................................... 415.2.1.1 Switch to Configuration Mode ......................................................................... 41
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 4 of 78 tec@usr.cn5.2.2 AT+ Instruction Set Overview ..................................................................................... 425.2.2.1 Instruction Syntax Format ................................................................................ 435.2.2.2 AT+ Instruction Set ........................................................................................... 445.2.2.2.1 AT+E ....................................................................................................... 465.2.2.2.2 AT+ENTM ............................................................................................... 465.2.2.2.3 AT+NETP ............................................................................................... 465.2.2.2.4 AT+UART ............................................................................................... 465.2.2.2.5 AT+ UARTF ............................................................................................ 475.2.2.2.6 AT+ UARTFT ......................................................................................... 475.2.2.2.7 AT+ UARTFL .......................................................................................... 485.2.2.2.8 AT+TMODE ............................................................................................ 485.2.2.2.9 AT+WMODE .......................................................................................... 485.2.2.2.10 AT+WSKEY .......................................................................................... 485.2.2.2.11 AT+WSSSID ......................................................................................... 495.2.2.2.12 AT+ WSLK ........................................................................................... 495.2.2.2.13 AT+WEBU ............................................................................................ 505.2.2.2.14 AT+WAP ............................................................................................... 505.2.2.2.15 AT+WAKEY .......................................................................................... 505.2.2.2.16 AT+HIDESSID ..................................................................................... 515.2.2.2.17 AT+MSLP ............................................................................................. 515.2.2.2.18 AT+WSCAN ......................................................................................... 525.2.2.2.19 AT+ TCPLK .......................................................................................... 525.2.2.2.20AT+ TCPDIS ....................................................................................... 525.2.2.2.21 AT+ WANN ........................................................................................... 525.2.2.2.22 AT+ LANN ............................................................................................ 535.2.2.2.23 AT+DHCPDEN ..................................................................................... 535.2.2.2.24 AT+ DHCPGW ..................................................................................... 545.2.2.2.25 AT+ TCPTO ......................................................................................... 545.2.2.2.26 AT+ MAXSK ......................................................................................... 545.2.2.2.27 AT+TCPB ............................................................................................. 545.2.2.2.28 AT+TCPPTB ........................................................................................ 555.2.2.2.29 AT+TCPADDB ..................................................................................... 555.2.2.2.30 AT+TCPTOB ........................................................................................ 555.2.2.2.31 AT+TCPLKB ......................................................................................... 565.2.2.2.32 AT+STTC ............................................................................................. 565.2.2.2.33 AT+DOMAIN ........................................................................................ 565.2.2.2.34 AT+FRLDEN ........................................................................................ 565.2.2.2.35 AT+FUDLX ........................................................................................... 575.2.2.2.36 AT+MMID ............................................................................................. 575.2.2.2.37 AT+IDFIR ............................................................................................. 575.2.2.2.38 AT+IDEVE ............................................................................................ 585.2.2.2.39 AT+AABR ............................................................................................. 585.2.2.2.40 AT+RELD ............................................................................................. 585.2.2.2.41 AT+Z ..................................................................................................... 58
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 5 of 78 tec@usr.cn5.2.2.2.42 AT+MID ................................................................................................ 585.2.2.2.43 AT+VER ............................................................................................... 595.2.2.2.44 AT+H .................................................................................................... 595.2.2.2.45 AT+ HTTPURL ..................................................................................... 595.2.2.2.46 AT+ HTTPTP ....................................................................................... 595.2.2.2.47 AT+ HTTPPH ....................................................................................... 605.2.2.2.48 AT+ HTTPCN ....................................................................................... 605.2.2.2.49 AT+ HTTPUA ....................................................................................... 605.2.2.2.50 AT+EPHYA ........................................................................................... 605.2.2.2.51 AT+EPHYB .......................................................................................... 616 USR-WIFI232-D2 Usage Introduction ............................................................................................ 616.1 Module Debug ....................................................................................................................... 616.1.1 Software Debug Tools ................................................................................................ 616.1.2 Network Connection ................................................................................................... 616.1.3 Debug .......................................................................................................................... 626.2 Use Cases ............................................................................................................................. 646.2.1 Wireless Control Application ...................................................................................... 646.2.2 Remote Management Application .............................................................................. 646.2.3 Transparent Serial Port Application ........................................................................... 656.2.4 Wireless Data Acquisition Card Application .............................................................. 66Appendix A: Questions and Answers ................................................................................................. 68Q1: How to configure transparent serial port application (TCP protocol) with two WIFImodules? ...................................................................................................................................... 68Q2: Where to Set WIFI Module LAN IP and WANIPthrough Web Page ?............................ 69Q3: How to configure transparent serial port application (UDP protocol) with two WIFImodules? ...................................................................................................................................... 69Q4: Where to set USR-WIFI232-D2 module network protocol (TCP/UDP)? ........................... 70Q5: How to configure transparent serial port application: Two WIFI modules all configured asSTAand connection through AP? ............................................................................................... 71Q6: How to avoid IP address confliction when apply USR-WIFI232-D2 module? ................... 72Q7: PC works as server, all WIFI modules works as data acquisition card and connect withPC, how to configure this application? ....................................................................................... 72Q8: WIFI module support UDP multicast? ................................................................................. 73Q9:WIFI module operates inSTAmode, the PC how to get the IP module? ........................... 74Appendix b: evb reference design ..................................................................................................... 75Appendix c: external power shutdown mode reference design ........................................................ 76Appendix D: The FCC statement ....................................................................................................... 76Appendix e: Contact Information ........................................................................................................ 78Appendix f: Disclaimer ........................................................................................................................ 78Appendix g: History ............................................................................................................................. 78
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 6 of 78 tec@usr.cn1111 QuickQuickQuickQuick StartStartStartStartUSR-WIFI232 -D2 series product is used to transm it data between RS232 and WIFI or EthernetTCPIP transparently, user can update the product to WIFI or Ethernet interface control withoutknow ing the WIFI , Ethernet and TCPIP detail. All the convert work is done by the module . F orusers, the RS232 side is only as a serial device,the WIFI side or Ethernet is TCPIP Socket data.User can setup the work detail by sample settings which can setup via inside web pages orRS232 port . T he setup work only need do once, then it will save the setting forever.This chapter is a user guide for USR-WIFI232 -D2 series products. W e suggest users follow theguide to test module at first, and will have a good understanding of the modules. U sers can alsochoose the chapter which you are interested in to read. For specific details and instructions,please refer to the following chapters.1.11.11.11.1 HardwareHardwareHardwareHardware connectconnectconnectconnectIn order to test this module, we need connect module RS232 to PC and also WIFI or Ethernet toPC.In order to test the communication between serial and WIFI or Ethernet network, we need toconnect the serial port to PC, and also connect WIFI or Ethernet networks to PC.DC5-18VPOWERWIFI or EthernetRS232Figure 1 hardwarehardwarehardwarehardware connectionconnectionconnectionconnection diagramdiagramdiagramdiagramAbout the serial connection, because the module RS232 is 3.3V TTL lev el, the computer can notconnect to module directly, the user needs to have a TTL to RS232 adapter cable and thenconnect to the computer. in order to facilitate the test, we provide USR-WIFI232- D2-EVKevaluation board for users to choose.1.21.21.21.2 NetworkNetworkNetworkNetwork connectionconnectionconnectionconnectionOpen Wi-Fi, search network on the PC , as shown in below, USR-WIFI232- AP_3378 is the defaultnetwork name (SSID) of the module.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 7 of 78 tec@usr.cnFigure 2 WIFIWIFIWIFIWIFI SearchSearchSearchSearchJoin the network, choose to automatically obtainIP,USR-WIFI232-D2 module supports DHCPServer feature and is enabled by default.Figure 3 WIFIWIFIWIFIWIFI connectionconnectionconnectionconnectionNow, link led of USR-WIFI232- D2-EVK Evaluation Board is lighting.1.31.31.31.3 CCCC ommunicationommunicationommunicationommunication testtesttesttestModule ’s default setting:SSID:SSID:SSID:SSID: USR-WIFI232-D2_xxxx(xxxx is the last of mac address);EncryptionEncryptionEncryptionEncryption modemodemodemode ::::open ,none ;UART:UART:UART:UART: 57600 ,8,1,None ;NetworkNetworkNetworkNetwork parametersparametersparametersparameters :TCP,Server,8899,10.10.100.254 ;
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 8 of 78 tec@usr.cnIP:IP:IP:IP: 10.10.100.254;We just need to follow the parameters of the corresponding set of network communicationparameters, you can make serial < -- > WIFI or Ethernet communication, the steps are as follows:1. Open test software USR-TCP232-Test ;2. COM Settings area (left):C hoose COM port witch has connect the module, there is COM3, choose band rate to 57600 , thisis the default band rate of WIFI module, Click Open COM port.3. Net Settings area (right):C hoose TCP client mode, Server IP write 10.10.100.254, it is the WIFI default IP address, Serverport to 8899, It is the default Port the WIFI module listen, Click Connect to link to the module.Now, you can test send data between RS232 and WIFI.COM port to WIFI: PC RS232 -> Module RS232 -> Module WIFI -> PC WIFI .WIFI to COM port: PC WIFI or Ethernet -> Module WIFI or Ethernet -> Module RS232 -> PCRS232.Figure 4 serialserialserialserial //// networknetworknetworknetwork transmissiontransmissiontransmissiontransmission testtesttesttest2222 ProductProductProductProduct OverviewOverviewOverviewOverview2.12.12.12.1 GeneralGeneralGeneralGeneral DescriptionDescriptionDescriptionDescriptionUSR-WIFI232-D2 module is an integration of 802.11 b/g/n wi-fi module,which provide a wirelessinterface and a Ethernet interface to any equipment with a Serial interface for data transfer.The module used to MAC, Ethernet interface, baseband chip, RF transceiver unit, as well as thepower amplifier;Embedded firmware support wi-fi protocols and configuration, as well as thenetwork TCP/IP protocol stack.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 9 of 78 tec@usr.cnUSR-WIFI232-D2 uses the industry's highest performance embedded industrial structure, and forthe application of smart furniture, smart grid, handheld devices, personal medical, industrialcontrol, etc. These data fields, do a professional optimization.USR-WIFI232-D2 as a hotspot can accommodate 32 clients simultaneously wi - fi access, but alsocan accommodate 32 TCP client .Figure 5 BBBB locklocklocklock diagramdiagramdiagramdiagram2.22.22.22.2 DeviceDeviceDeviceDevice FeaturesFeaturesFeaturesFeaturesSupportSupportSupportSupport IEEE802.11b/g/nIEEE802.11b/g/nIEEE802.11b/g/nIEEE802.11b/g/n WirelessWirelessWirelessWireless StandardsStandardsStandardsStandardsSupportSupportSupportSupport TCP/IP/UDPTCP/IP/UDPTCP/IP/UDPTCP/IP/UDP NetworkNetworkNetworkNetwork ProtocolsProtocolsProtocolsProtocolsSupportSupportSupportSupport UART/GPIO/EthernetUART/GPIO/EthernetUART/GPIO/EthernetUART/GPIO/Ethernet DataDataDataData InterfaceInterfaceInterfaceInterfaceSupportSupportSupportSupport WorkWorkWorkWork AsAsAsAs STA/APSTA/APSTA/APSTA/AP /AP+STA/AP+STA/AP+STA/AP+STA ModeModeModeModeSupportSupportSupportSupport Router/BridgeRouter/BridgeRouter/BridgeRouter/Bridge ModeModeModeMode NetworkingNetworkingNetworkingNetworkingSupportSupportSupportSupport Internal/ExternalInternal/ExternalInternal/ExternalInternal/External AntennaAntennaAntennaAntenna OptionOptionOptionOptionSupportSupportSupportSupport TransparentTransparentTransparentTransparent TransmissionTransmissionTransmissionTransmission ModeModeModeModeSupportSupportSupportSupport AT+AT+AT+AT+ InstructionInstructionInstructionInstruction SetSetSetSet forforforfor ConfigurationConfigurationConfigurationConfigurationSupportSupportSupportSupport FriendlyFriendlyFriendlyFriendly WebWebWebWeb ConfigurationConfigurationConfigurationConfiguration PagePagePagePageSupportSupportSupportSupport PalmodicPalmodicPalmodicPalmodic SignalSignalSignalSignalSupportSupportSupportSupport UARTUARTUARTUART Auto-FrameAuto-FrameAuto-FrameAuto-Frame FunctionFunctionFunctionFunctionSingleSingleSingleSingle +3.3V+3.3V+3.3V+3.3V PowerPowerPowerPower SupplySupplySupplySupply
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 10 of 78 tec@usr.cnSmallSmallSmallSmall Size:Size:Size:Size: 45*3245*3245*3245*32 mmmmmmmmFCC/CEFCC/CEFCC/CEFCC/CE CertificatedCertificatedCertificatedCertificated2.32.32.32.3 DeviceDeviceDeviceDevice ParemetersParemetersParemetersParemetersTable 1 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 ModuleModuleModuleModule TechnicalTechnicalTechnicalTechnical SpecificationsSpecificationsSpecificationsSpecificationsClassClassClassClass ItemItemItemItem ParametersParametersParametersParametersWirelessWirelessWirelessWirelessParametersParametersParametersParametersCertification FCC / CEWireless standard 802.11 b/g/nFrequency range 2.412GHz-2.484GHzTransmit Power802.11b: +20 dBm (Max.)802.11g: +18 dBm (Max.)802.11n: +15 dBm (Max.)ConfigurableReceiver Sensitivity802.11b: -89 dBm802.11g: -81dBm802.11n: -71dBmAntenna OptionExternal : I-PEX ConnectorInternal :On-board chip antennaHardwareHardwareHardwareHardwareParametersParametersParametersParametersData InterfaceUART: 1200bps - 230400bpsGPIOsEthernet: 100MpbsOperating Voltage 3.3V (+/-5%)Operating Current 170mA~300mAOperatingTemperature-25 ℃- 85 ℃Storage Temperature-40 ℃- 125 ℃Dimensions and Size 45 × 32 × 8mmSoftwareSoftwareSoftwareSoftwareParametersParametersParametersParametersNetwork Type Station /AP mode /STA+APSecurity Mechanisms WEP/WAP-PSK/WAP2-PSK/WAPIEncryption WEP64/WEP128/TKIP/AESWork Mode Transparent TransmissionSerial command AT+instruction setNetwork ProtocolTCP/UDP/ARP/ICMP/DHCP/DNS/HTTPMax. TCP Connection 32User ConfigurationWeb Server +AT command config.2.42.42.42.4 KeyKeyKeyKey ApplicationApplicationApplicationApplicationRemote equipment monitoringIndustrial sensors and controlsAsset tracking and telemetryHome automation
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 11 of 78 tec@usr.cnMedical devices2.52.52.52.5 PackagePackagePackagePackage InformationInformationInformationInformation2.5.1 Recommended Reflow ProfileFigure 6 ReflowReflowReflowReflow SolderingSolderingSolderingSoldering ProfileProfileProfileProfileTable 2 ReflowReflowReflowReflow SolderingSolderingSolderingSoldering ParameterParameterParameterParameterNote:Note:Note:Note:1. Recommend to supply N2 for reflow oven.2. N2 atmosphere during reflow (O2<300ppm).2.5.2 Device Handling Instruction (Module IC SMT Preparation)Shelf life in sealed bag: 12 months, at <30 ℃and <60% relative humidity (RH)After bag is opened, devices that will be re-baked required after last baked with window time168 hours.R ecommend to oven bake with N2 supplied.Baked required with 24 hours at 125 ±5℃before rework process for two modules, one isnew module and two is board with module.Recommend to store at ≦10% RH with vacuum packing.If SMT process needs twice reflow:(1) Top side SMT and reflow à  (2) Bottom side SMT and reflowCase 1: Wifi module mounted on top side. Need to bake when bottom side process over 168hours window time, no need to bake within 168 hours.Case 2: Wifi module mounted on bottom side, follow normal bake rule before process.Note:Window time means from last bake end to next reflow start that has 168 hours space.2.5.3 Shipping InformationNO.NO.NO.NO. ItemItemItemItem TemperatureTemperatureTemperatureTemperature (Degree)(Degree)(Degree)(Degree)Time(Sec)Time(Sec)Time(Sec)Time(Sec)1 Reflow Time Time of above 22035~55 sec2 Peak-Temp 260 max
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 12 of 78 tec@usr.cnFigure 7 ShippingShippingShippingShipping InformationInformationInformationInformationTRAYTRAYTRAYTRAY Size: 420*245*34 mmNote:Note:Note:Note:1 tray = 5*20 pcs = 100 pcs1 box = 2 trays = 2*100 pcs = 200pcs1 carton = 4 boxes = 4*200 pcs = 800pcs3333 HardwareHardwareHardwareHardware IntroductionIntroductionIntroductionIntroduction3.13.13.13.1 PinsPinsPinsPins DefinitionDefinitionDefinitionDefinition3.1.1 USR-WIFI232- D2 Pins DefinitionFigure 8 USR-WIFI232-USR-WIFI232-USR-WIFI232-USR-WIFI232- D2D2D2D2
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 13 of 78 tec@usr.cnFigure 9 USR-WIFI232-USR-WIFI232-USR-WIFI232-USR-WIFI232- D2D2D2D2 PinsPinsPinsPins MapMapMapMapTable 3 USR-WIFI232-USR-WIFI232-USR-WIFI232-USR-WIFI232- D2D2D2D2 PinsPinsPinsPins DefinitionDefinitionDefinitionDefinitionPinPinPinPin DescriptionDescriptionDescriptionDescription NameNameNameName DirectiDirectiDirectiDirecti oooonnnnNoteNoteNoteNote1111Ethernet 1 Output+ TX1+ O +1.8V Ethernet DataInterfaceSupport transformer anddirect connection (ACcouple) mode.2222Ethernet 1 Output - TX1- O3333Ethernet 1 Input+ RX1+I4444Ethernet 1 Input - RX1-I5555Ethernet1 LED NET1_LED OEthernet1 pilot light6666UART Data Transmit UART_TXD OIf not use UART function ,this 4 pins can beconfigured as GPIO pins,and can change GPIO pinstatus through ATcommand .GPIO GPIO 3 I/O7777UART Data Receive UART_RXDI8888GPIO GPIO 4 I/OUART sends requestof data transmissionUART_RTS O9999GPIO GPIO 5 I/OUART receives datatransmissionpermissionUART_CTSI10101010Module reset signal nRSTI“ Low ( 0 ) ” effective resetinput.The reset duration should bekept more than 300ms11111111Output 1.8V 1.8V O 1.8V@300mA, to the Ethapplication12121212GND GND Power Ground13131313 /14/14/14/14VCC 3.3V Power 3.3V @ 350mA power input
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 14 of 78 tec@usr.cn15151515GND GND Power Ground16161616WiFi status Indication L ink O “ 0 ” - WIFI connectionavailable, “ 1 ” - No WIFIconnection .17171717Indicate the modulestatus of power onprocessReady O“ 0 ” - Finish module boot upprocess;“ 1 ” - Module boot up notfinish.18181818Restore configuration ReloadIModule will Restore factorydefault configuration after setthis pin “ 0 ” more than 1s,then set “ 1 ” .19191919 Ethernet2 LED NET2_LED OEthernet2 pilot light20202020 Ethernet 2 Output+ TX2+ O +1.8V Ethernet DataInterfaceSupport transformer anddirect connection (ACcouple) mode.21212121 Ethernet 2 Output - TX2- O22222222 Ethernet 2 Input+ RX2+I23232323 Ethernet 2 Input - RX2-I3.1.2 USR-WIFI232-D2 SizeUSR-WIFI232- D2 module Mechanical Size:Figure 10 USR-WIFI232-USR-WIFI232-USR-WIFI232-USR-WIFI232- A/BA/BA/BA/B MechanicalMechanicalMechanicalMechanical SizeSizeSizeSize3.23.23.23.2 AntennaAntennaAntennaAntenna3.2.1 On-board Chip AntennaUSR-WIFI232-D2 supports a built-in antenna options, when customers choose a built-in antenna,must comply with the following built-in antenna module placement of notes and general rules:
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 15 of 78 tec@usr.cnBe in the user's PCB board, and the Light blue region ( 6X8 mm ) corresponding to the regioncannot be placed components and with GND;Antenna must away from the metal, at least to the distance around the higher components above10MM;Antenna can no t be shielded by any meal enclosure; All cover, include plastic, shall away fromantenna at least 10MM;Figure 11 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 ChipChipChipChip AntennaAntennaAntennaAntenna KeepKeepKeepKeep OutOutOutOut RegionRegionRegionRegionUSR technological suggestions USR-WIFI232-D2 module be placed in the following areas of userboard, in order to reduce the antenna and a wireless signal influence, at the same time, please consultwith technology and technical support staff to assist module placement and associated regions ofLayout design.Figure 12 SuggestedSuggestedSuggestedSuggested ModuleModuleModuleModule PlacementPlacementPlacementPlacement RegionRegionRegionRegion3.2.2 External AntennaUSR - WIFI232 - D2 module can be done by switching the resistance external antenna interfaceto apply different customer application. If user select external antenna, USR-WIFI232-D2 modulesmust be connected to the 2.4G antenna according to IEEE 802.11b/g/n standards.The antenna parameters required as follows:Figure 13 SwitchSwitchSwitchSwitch RRRR esistanceesistanceesistanceesistance
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 16 of 78 tec@usr.cnAs shown in figure, switch resistance is normally in the red areas.For external antenna, theresistance change to blue area.Table 4 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 ExternalExternalExternalExternal AntennaAntennaAntennaAntenna ParametersParametersParametersParameters3.33.33.33.3 EvaluationEvaluationEvaluationEvaluation KitKitKitKitUSR provides the evaluation kit to promote user to familiar the product and develop the detailedapplication. The evaluation kit shown as below, user can connect to USR-WIFI232-D2 modulewith the RS-232 UART port, 100M Eth port or Wireless port to configure the parameters, managethe module or do the some functional tests.Figure 14 USR-WIFI232-USR-WIFI232-USR-WIFI232-USR-WIFI232- D2D2D2D2 modulemodulemodulemodule EvaluationEvaluationEvaluationEvaluation KitKitKitKitTable 5 USR-WIFI232-USR-WIFI232-USR-WIFI232-USR-WIFI232- D2D2D2D2 EvaluationEvaluationEvaluationEvaluation KitKitKitKit InterfaceInterfaceInterfaceInterface DescriptionDescriptionDescriptionDescriptionItem ParametersFrequency range 2.4~2.5GHzImpedance 50 OhmVSWR 2 (Max)Return Loss -10dB (Max)Connector Type I-PEX or populate directly
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 17 of 78 tec@usr.cn3.43.43.43.4 HardwareHardwareHardwareHardware ReferenceReferenceReferenceReference DesignDesignDesignDesign3.4.1 Hardware Typical ApplicationFigure 15 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 HardwareHardwareHardwareHardware TypicalTypicalTypicalTypical ApplicationApplicationApplicationApplicationNotesNotesNotesNotes :nRST-nRST-nRST-nRST- Module hardware reset signal. Input. Logics “ 0 ” effective.There is 100K Ohm pull-up resister internal up to 3.3V. When module power up or some issuehappened, MCU need assert nRST signal “ 0 ” at least 300ms, then set ” 1 ” to keep module fullyreset.FunctionFunctionFunctionFunctionNameNameNameName DescriptionDescriptionDescriptionDescriptionExternalExternalExternalExternalInterfaceInterfaceInterfaceInterfaceDC jack5V power input connectorDB9Male serial jack of 9-pin,and used to connect toPCRJ-45 (1) 100M Eth InterfaceRJ-45 (2) 100M Eth InterfaceModule2x 12 2 .54 mm DIP connector , connect WIFImoduleLEDLEDLEDLED Power(Red)3.3V Power IndicatorNET1 Ethernet1 LEDNET2 Ethernet2 LEDReady Ready /GPIO IndicatorLink Link /GPIO IndicatorButtonButtonButtonButton ResetUsed to reset the module.Reload Module restore to factory default configuration.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 18 of 78 tec@usr.cnReadyReadyReadyReady ----Module boot up ready signal. Output. Logics “ 0 ” effective.There is 4.7K Ohm pull-up resister internal up to 3.3V . The module will output “ 0 ” “ or “ PalmodicSignal ” after normal boot up. This signal used to judge if module finish boot up and ready forapplication or working at normal mode.LinkLinkLinkLink ----Module WIFI connection indication. Output.There is 4.7K Ohm pull-up resister internal up to 3.3V . When module connect to AP (STA mode)or some WiFiSTAconnect to module (AP mode), the module will output “ 0 ” . This signal used tojudge if module already at WiFi connection status.nReloadnReloadnReloadnReload -Module restore to factory default configuration.Input. Logics “ 0 ” effective.User can assert nReload signal “ 0 ” more than 3’s through button or MCU pin, then release,module will restore to factory default configuration and re-start boot up process. User need add4.7K~10K Ohm pull-up resister external the module. If not use this function, then can use ATcommand AT+FRLDEN=off to disable it.UART_TXD/RXD- UART port data transmit and receive signal.There is 1K Ohm pull-down resister internal. User can ’ t add pull-up resister at these pins.3.4.2 10/100M Ethernet InterfaceUser board put Ethernet transformer and RJ-45 connector. This is a general 10/100M Ethernetphy layer connection. The reference design as following:Figure 16 EthernetEthernetEthernetEthernet ReferenceReferenceReferenceReference DesignDesignDesignDesign withwithwithwith TransformerTransformerTransformerTransformer3.4.3 UART InterfaceUART interface is the serial data transmition interface mainly used for USR-WIFI232-D2 modules.User can add RS-232 chipset on user board and convert the signal to RS-232 voltage tocommunicate with outside equipment or sensors. USR-WIFI232-D2 modules UART interfaceinclude 4 general signals: TXD/RXD/RTS/CTS. The hardware reference design with RS-232chipset as following:
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 19 of 78 tec@usr.cnFigure 17 FigureFigureFigureFigure 10101010 UARTUARTUARTUART InterfaceInterfaceInterfaceInterface ReferenceReferenceReferenceReference DesignDesignDesignDesignNotes:Notes:Notes:Notes: TXD pin is also hardware configuration pin internal module. So this pin MUST pull-downduring module power up. USR-WIFI232-D2 modules provide internal pull-down resister, usercan ’ t add pull-up/pull-down resister on user board, which may cause module can ’ t work.3.4.4 Power InterfaceUSR-WIFI232-D2 module support single +3.3V power supply. The peak current shall about350mA and normal WiFi working current shall about 200mA. The power save (WiFi OFF) modewill about 100mADecoupling at power pin suggested, At least one 100uF , one 10uF and one 10 0n F capacitorrequired at user board and put near module power input pin will increase the reliability andperformance.4444 ModulesModulesModulesModules FFFF unctionunctionunctionunction DDDD escriptionescriptionescriptionescription4.14.14.14.1 UserUserUserUser configurationconfigurationconfigurationconfiguration processprocessprocessprocessAfter USR-WIFI232-D2 module electric starter, based on user pre-set parameters, automaticallyconnect to wireless networks and servers, and enter the working mode is set to open inaccordance with the default serial port parameters.The parameters which need to configure include:Wireless Network ParametersWireless Network Name (SSID )Security ModeEncryption Key
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 20 of 78 tec@usr.cnTCP/UDP Linking ParametersProtocol TypeLink Type (Server or Client )Target Port ID NumberTarget Port IP AddressSerial Port ParametersBaud RateData BitParity (Check) BitStop BitHardware Flow ControlWork Mode SelectionTransparent transmission /Serial command mode/GPIO mode/HTTPD Client modeThe following sections will introduce specific to each part in detail.4.24.24.24.2 WorkingWorkingWorkingWorking modemodemodemode4.2.1 Transparent Transmission ModeUSR-WIFI232-D2 modules support serial interface transparent transmission mode. The benefit ofthis mode is achieves a plug and play serial data port, and reduces user complexity furthest. Inthis mode, user should only configure the necessary parameters. After power on, module canautomatically connect to the default wireless network and server.As in this mode, the module's serial port always work in the transparent transmission mode, sousers only need to think of it as a virtual serial cable, and send and receive data as using asimple serial. In other words, the serial cable of users’original serial devices is directly replacedwith the module; user devices can be easy for wireless data transmission without any changes.The transparent transmission mode can fully compatible with user ’ s original software platformand reduce the software development effort for integrate wireless data transmission.Notes:Notes:Notes:Notes: Users also open the serial port hardware flow control (CTS/RTS) function, so that we canmake the bit error rate to a minimum.If the user doesn't need hardware flow control function of theserial port, only need to the corresponding pin foot (CTS/RTS) hung up.4.2.2 Serial command modeIn this mode, the user can send the serial data to a different server address, this pattern can beuse UDP or TCP client sends data to the server.Customer MCU send packets according to the following format, parsing module is finished, onlythe n bytes of data sent to the destination address.When data is returned, not analytical data fromserial port output directly.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 21 of 78 tec@usr.cnTable 6 ProtocolProtocolProtocolProtocol tabletabletabletable ofofofof SerialSerialSerialSerial commandcommandcommandcommand modemodemodemodeframeheaderlength functionbyteBackupdata areaDestination portTargetaddressData Sumcheck2 2(n+m+5)1 2 2 m n 1frameframeframeframe headerheaderheaderheader :0x55 0xAA (Constant )LengthLengthLengthLength :Starting from the function byte, to Sum check (does not contain the sum check) all bytes.High byte at the frontFunctionFunctionFunctionFunction bytebytebytebyte :Bit0: (UDP:0 ;TCP:1 )Bit1: (Short connection:0;Long connection:1 )Bit2: (IP:0;Domain name:1 )Bit7: (cut protocol:0;full protocol:1 )Note: currently only supports cut protocolNotes:Bit1:If it is a short connection, it sends data, and then will be disconnected; if it is longconnection, it sends data, connection will remain, until the re changing the target address.Bit2:Indicates that the target address isIPor domain name. If it isIP,the target address is 4bytes; if the domain name, the target address length for the entire domain name string length(the last byte address is ‘ \0 ’ , that is the end of the string).Bit7:Under the cut protocol, reply frame contains only data; Under the full protocol, replyframe has "failed to send", "waiting for", "UDP radio response equipment IP" frame data.BackupBackupBackupBackup datadatadatadata areaareaareaarea ::::First byte:If it is a short connection, this position is TCP waits for the timeout time (1-255), ifthe send command is completed, did not receive a response, then wait a few seconds andthe corresponding, if 5, said to wait for the 5S to disconnect; if the sending command,immediately receive the returned data, then immediately disconnected; if it is long connection,this position is 0x00.Second byte:ReserveDestinationDestinationDestinationDestination portportportport ::::Little endian, low byte in the former,such as port 23, here are 0x17 0x00TargetTargetTargetTarget address:address:address:address:If it isIP,is 4 bytes, for example, 192.168.0.7 said 0x07 0x00 0xA8 0xC0; if it is a domainname, then the address of indefinite length,ending with the ’ \0'.Data:Data:Data:Data:Variable length,the maximum not exceeding 1000bytes.SumSumSumSum check:check:check:check:From the function word to check byte (does not contain a check byte), add Sum check.The following is an example of a specific application:send data:0x55 0xaa 0x00 0x0a 0x00 0x00 0x00 0x21 0x00 0x85 0x00 0xA8 0xC0 0x01 0x0fLength:0x00 0x0aFunction byte:0x00 (UDP;Short connection;IP;cut protocol)Destination port :0x21 0x00(33)
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 22 of 78 tec@usr.cnTarget address: 0x85 0x00 0xA8 0xC0 (192.168.0.133)Data:0x01(data length :1)Sum check:0x0f ( 0x00+0x00+0x00+0x21+0x00+0x85+0x00+0xA8+0xC0+0x01=0x0f )4.2.3 GPIO modeUSR-WIFI232-D2 module support GPIO mode,At GPIO,UART (TXD/ RXD/CTS/RTS) defined asGPIO and others (Ready/Link/) also defined as GPIO pin.When module works at GPIO mode, PC and other equipments can setup connection (TCP/UDP)through WiFi, then read/write GPIO information through command.GPIO n IN, Set GPIOn as input, Response GPIO OK or GPIO NOK;GPIO n OUT 0, Set GPIOn as output and output ‘0’, Response GPIO OK or GPIO NOK;GPIO n OUT 1, Set GPIOn as output and output ‘1’, Response GPIO OK or GPIO NOK;GPIO n SW, Set GPIOn as output and switch the output status, Response GPIO OK orGPIO NOK;GPIO n PWM m1 m2, Set GPIOn output a wave: m1 is ‘high ’duration and m2 is ’low ’duration (Time unit is ‘ms ’and minimal is 10ms), Response GPIO OK or GPIO NOK;GPIO n GET, Read GPIOn status, Response I0,I1,O0,O1, means ”input low ”,”inputhigh ”,”output low ”,”output high ”Notes: n can be 6,7,8,9,16,17 corresponding module pin. GPIO 4 can only defined as input andGPIO 3 can only defined as output.GPIO READ returns all current IO status, and GPIO n GET said method. Such as, I1I1I0I0I0I0O1,I said input, O output. 0 low, 1 express high.4.2.4 HTTPD Client modeThis mode is used to send data to the HTTP server.After setting the HTTP header format by webpage orATcommand, the data sent each time byUART will add the HTTP header automatically.Convenient for the user directly submit data orread data from the HTTP server.Below is the specific application, for example:The first set HTTP parameters usingATinstructions.AT+HTTPURL=192.168.1.1,80 The serveraddress and portsettingsAT+HTTPTP=POST Set the HTTP type, GET, PUT or POSTAT+HTTPPH=/set Set the path,the mostis50 bytesAT+HTTPCN=keep-alive Set the Connection,maximum length of 20bytesAT+HTTPUA=lwip13.2 Set the User-Agent,maximum length of 20bytesIf the sending data is 1234.In the 80 port of 192.168.1.1 will receive the following dataPOST /set HTTP /1.1Connection:keep-aliveUser-Agent:lwip1.3.2Content-Length:4Host:192.168.1.1:801234If the HTTP type is GET, the 80 port 192.168.1.1 receive dataPOST /set 1234 HTTP /1.1
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 23 of 78 tec@usr.cnConnection:keep-aliveUser-Agent:lwip1.3.2Content-Length:0Host:192.168.1.1:80Data received from server will be directly sent to the serial port,without any treatment.4.34.34.34.3 WirelessWirelessWirelessWireless NetworkingNetworkingNetworkingNetworkingUSR-WIFI232-D2 module can be configured as both wirelessSTAand AP base on network type.Logically there are two interfaces in USR-WIFI232-D2 . One is for STA, and another is forAP.When USR-WIFI232-D2 works asAP,otherSTAequipments are able to connect to wireless LANvia USR-WIFI232-D2 module. Wireless Networking with USR-WIFI232-D2 is very flexible.Following figure shows the functional architecture of USR-WIFI232-D2 module:Figure 18 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 FunctionalFunctionalFunctionalFunctional ArchitectureArchitectureArchitectureArchitectureNotes:Notes:Notes:Notes:AP:AP:AP:AP: that is the wireless Access Point, the founder of a wireless network and the cent er of thenetwork nodes. The wireless router we use at home or in office may be anAP.STA:STA:STA:STA: short for Station, each terminal connects to a wireless network (such as laptops, PDA andother networking devices) can be called with aSTAdevice.4.3.1 STAInfrastructure: it’s also called basic network. It built by AP and many STAs which join in.The characters of network of this type are that AP is the cent er , and all communication betweenSTAs is transmitted through theAP.The figure following shows such type of networking.APUSR-WIFI232-D 2USR-WIFI232-D 2USR-WIFI232-D 2UARTUser Device
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 24 of 78 tec@usr.cnFigure 19 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 BasicBasicBasicBasic WirelessWirelessWirelessWireless NetworkNetworkNetworkNetwork StructureStructureStructureStructure4.3.2 APBecause USR-WIFI232-D2 can be set toAP,can also be set to STA, so the USR-WIFI232-D2can be achieved easily wireless ad hoc network.As showing in the figure below, USR-WIFI232-D2 (1) can be treat as anAP,and USR-WIFI232-D2 (2), USR-WIFI232-D2 (3) and the laptop are STAs connected to USR-WIFI232-D2 (1).Meanwhile, all USR-WIFI232-D2 modules can connected to user device via UART interface. AllUSR-WIFI232-D2 modules can be operated and managed through the laptop. So it is convenientto O&M all USR-WIFI232-D2 modules. Moreover, in such Adhoc network structure, the wholecoverage of a wireless network can be extended easily.PCUSR-WIFI232- D 2User DeviceUARTUSR-WIFI232-D2USR-WIFI232- D 2UARTUser DeviceFigure 20 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 STASTASTASTA NetworkNetworkNetworkNetwork StructureStructureStructureStructure4.3.3 AP+STAUSR-WIFI232-D2 module support AP+STA network mode, means module support one APinterface and oneSTAinterface at the same time, as following figure,
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 25 of 78 tec@usr.cnAPUser DeviceUARTPhoneUSR-WIFI232- D 2Tcp ClientTcp serverTcp serverTcpbFigure 21 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 AP+STAAP+STAAP+STAAP+STA NetworkNetworkNetworkNetwork StructureStructureStructureStructureWhen module enables AP+STA function, Module ’ sSTAinterface can connect with router andconnect to TCP server in the network. At the same time, module ’ s AP interface is also active andpermit phone/PAD to connect through TCPB, then phone/PAD can control user device and andsetting the module parameters,The advantage of AP+STA mode is:Users can easily setting and track user device through Phone/PAD and not change theorginal network setting.Users can easily setting module’s parameters through WiFi when module works asSTAmode.AP+STAAP+STAAP+STAAP+STA ModeModeModeMode Setting:Setting:Setting:Setting:AP+STA mode need serialATcommand to enable as follows:AT+FAPSTA=on, Enable AP+STA mode;Then, when you configure module works asSTAmode, it’s AP interface still active;AP+STAAP+STAAP+STAAP+STA ModeModeModeMode Notes:Notes:Notes:Notes:When user enable AT+STA function,theSTAport need to keep connected with otherrouter(AP),orSTAport will have to scan the AP frequently ,which will affect AP port function and may causesome date loss.So ,if user confirmSTAport can't connect with AP at some time,user can disable theSTAscanthrough the following command:AT+STTC=on/off,on:Scan AP;off:N o ScanAP.After re-start module,this command not saved;AT+FSTTC=on/off;This command is saved after re-staring the module;
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 26 of 78 tec@usr.cn4.44.44.44.4 EthernetEthernetEthernetEthernet InterfaceInterfaceInterfaceInterface CommunicationCommunicationCommunicationCommunicationUSR-WIFI232-D2 module provides one 100M Ethernet interface. With this Ethernet interface,user can easily realize the three interface (WiFi, UART, and Ethernet) intercommunication andnetworking. USR-WIFI232-D2 module can configured as Bridge Mode or Router Mode base ondifferent networking technology.Notes: As the Ethernet mode will increase additional consumption, so it is default closed. If youneed this function, pls use AT+FEPHY=on to open it and RELD can ’ t change this. F or differentapplication, USR-WIFI232-610 need version switch via commands (such as following descriptionof N-ver and Z-ver). With command AT+FVER=n to switch to N-ver and with commandAT+FVER=z to switch to Z-ver.4.4.1 USR-WIFI232-D2 Ethernet Interface Networking (As AP)PC1PC2USR-WIFI232- D 2IP:10.10.100.101GateWay:10.10.100.254APIP:10.10.100.254IP:10.10.100.100GateWay:10.10.100.254100M EthFigure 22 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 EthernetEthernetEthernetEthernet InterfaceInterfaceInterfaceInterface NetworkingNetworkingNetworkingNetworking (As(As(As(As AP)AP)AP)AP)USR-WIFI232-D2 module works as AP and also the cent er of this network. All devices’IP addressin this network shall use the same network segment with USR-WIFI232-D2 and they canntercommunication with this method.4.4.2 USR-WIFI232-D2 Ethernet Interface Networking (As STA, N-Ver)PC1USR-WIFI232- D 2APPC2IP:10.10.100.101GateWay:10.10.100.254IP:10.10.100.254IP:192.168. 1 .101GateWay:192.168. 1 .101IP:192.168. 1 . 1IP:192.168.1.100GateWay:192.168. 1 . 1100M EthSTA N-Ver
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 27 of 78 tec@usr.cnFigure 23 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 EthernetEthernetEthernetEthernet InterfaceInterfaceInterfaceInterface NetworkingNetworkingNetworkingNetworking (As(As(As(As STASTASTASTA ,,,, N-VerN-VerN-VerN-Ver ))))USR-WIFI232-D2 module works asSTA(Software is N-Version ), and module set as router mode.When module connect toAP,it will get wireless port IP address from AP ( For example:192.168.1.100 ) . At the same time, module also form a subnet ( Default 10.10.100.254 ) and alldevices connected to module Ethernet interface will get assigned IP address ( For example:10.10.100.101 ) .So as shown , PC1 at internal subnet can initiate a connection to PC2 (For USR-WIFI232-D2 works as router mode), but PC2 can ’ t active initiate a connection to PC1.4.4.3 USR-WIFI232-D2 Ethernet Interface Networking (As STA, Z-Ver)PC1USR-WIFI232-D2APPC2IP:192.168. 1 .101GateWay:192.168. 1 . 1IP:192.168. 1 .10GateWay:192.168. 1 . 1IP:192.168. 1 . 1IP:192.168. 1 .100GateWay:192.168. 1 . 1100M EthSTA Z-VerFigure 24 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 EthernetEthernetEthernetEthernet InterfaceInterfaceInterfaceInterface NetworkingNetworkingNetworkingNetworking (As(As(As(As STASTASTASTA ,,,, Z-VerZ-VerZ-VerZ-Ver ))))For above networking, USR-WIFI232-D2 module works as STA (Firmware is Z-Version ),andmodule configured as bridge mode. When module connect toAP,all devices connected tomodule Ethernet interface will get assigned IP address from AP (For example: 192.168.1.101).Formodule works as bridge mode, it can be treated as a transparent device and PC1, PC2 cancommunicate without any limit. But in this networking, USR-WIFI232-D2 module needs assign astatic LANIPaddress (For example: 192.168.1.10) if module also needs communication with APor configuration through web page.4.54.54.54.5 WI-FIWI-FIWI-FIWI-FI parameterparameterparameterparameter settingsettingsettingsetting4.5.1 Auto- Frequency FunctionWhen module works as STA, USR-WIFI232-D2 will adjust its wireless channel to keep the samechannel with associated AP and connect in.When module works as AP and USR-WIFI232-D2 enable Auto-frequency function, then whenmodule boot up, it will select the best wireless channel based on surrounding environment.4.5.2 SecurityUSR-WIFI232-D2 module supports multiple wireless encryption mechanisms, and enables toprotect the security of user’s data transmission, the mechanisms include:WEPWPA-PSK/TKIPWPA-PSK/AES
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 28 of 78 tec@usr.cnWPA2-PSK/TKIPWPA2-PSK/AES4.5.3 Search Function for STAWhen using web configurationSTAInterface Setting Page, user can push “ Search ” button to findsurroundingAP,and find a AP to associated.Figure 25 SearchSearchSearchSearch pagepagepagepage4.5.4 Address BindingUSR-WIFI232-D2 module supports the feature of binding the BSSID address of target network.According to the provisions of 802.11 protocol, different wireless networks can have a samenetwork name (i.e. SSID / ESSID), but must correspond to a unique BSSID address (i.e. MACaddress). Illegal intruders can create a wireless network with the same SSID / ESSID, it will makeSTAs in the network to join to the illegalAP,thereby and then network leakage happen.Users can preventSTAfrom joining to illegal network by binding the BSSID address, to improvewireless network security.4.64.64.64.6 UARTUARTUARTUART FrameFrameFrameFrame SchemeSchemeSchemeScheme4.6.1 UART Free-FrameUSR-WIFI232-D2 support UART free-frame function. If user select open this function, module willcheck the intervals between any two bytes when rec ei ving UART data. If this interval timeexceeds defined value (50ms default), USR-WIFI232-D2 will think it as the end of one frame andtransfer this free-frame to WiFi port, or USR-WIFI232-D2 will receive UART data until 4K bytes,then transfer 4KB frame to WiFi port.USR-WIFI232-D2 ’ s default interval time is 50ms. User can also set this interval to fast (10ms)throughATcommand. But user have to consider if user MCU can send UART data with 10msinterval ,or the UART data may be divide as fragment.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 29 of 78 tec@usr.cnThroughATcommand: AT+FUARTTE=fas t /normal, user can set the interval time: fast (10ms) andnormal (50ms). This command is factory default setting command and AT+RELD can ’ t change itsvalue.4.6.2 UART Auto-FrameUSR-WIFI232-D2 support UART auto-frame function. If user select open this function and settingauto-frame trigger length and auto-frame trigger time parameters, then module will auto framingthe data which received from UART port and transmitting to the network as pre-defined datastructure.Auto-frameAuto-frameAuto-frameAuto-frame triggertriggertriggertrigger length:length:length:length: The fixed data length that module used to transmitting to thenetwork.Auto-frameAuto-frameAuto-frameAuto-frame triggertriggertriggertrigger time:time:time:time: After the trigger time, if UART port received data can ’ t reach auto-frame trigger length, then module will transmitting available data to the network and bypassthe auto-frame trigger length condition.Detailed UART auto-frame function can refer to AT+ instruction set “ UARTF/UARTFT/UARTFL ”introduction.4.74.74.74.7 NetworkNetworkNetworkNetwork SettingSettingSettingSettingUSR-WIFI232-D2 module has two TCP/UDP Socket: Socket A and Socket B. Serial data writtento the module, will be sent to the SocketAand B simultaneously; TCP/UDP data that modulereceives through either SocketAor B,will be sent to the serial port.Dual Socket through different settings, you can achieve a variety of network interconnect. Whenthe module shipped only open Socket A, Socket B default is not to connect, if the user needs touse, please set byATcommands.4.7.1 Socket ASocket A has three work mode: TCP Server, TCP Client, UDP.The setting method, please refer tothe AT+NETP command instruction.When SocketAconfigured as TCP Server, it supports Multi-TCP link connection, and maximum32 TCP clients permitted to connect to Socket A.Multi-TCP link connection will work as following structure:Upstream: All dates from different TCP connection or client will be transmitted to the serial port asa sequence.Downstream: All data from serial port (user) will be duplicate and broadcast to every TCPconnection or client.Detailed multi-TCP link data transmition structure as following figure:
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 30 of 78 tec@usr.cnFigure 26 Multi-TCPMulti-TCPMulti-TCPMulti-TCP LinkLinkLinkLink DataDataDataData TransmitionTransmitionTransmitionTransmition StructureStructureStructureStructure4.7.2 Socket BSocket B has one work mode: TCP Client, please refer to the AT + SOCKB command instruction.With variety work mode, socket B can provide users with flexible data transfer methods.Forexample, Socket B can connect to a remote server in order to achieve remote control.4.84.84.84.8 NewNewNewNew functionfunctionfunctionfunctionThis chapter is based on the function of V4.02.10.USR13 and above, if not this version you canskip this section.4.8.1 TCP password authenticationThis feature is available only on the module as a TCP server, when the TCP client connectionmodule, the module will authenticate each connected tcp.Each TCP client first data is the “ password +0x0d+0x0a ” (the password is Webpageauthentication password). The default password is “ admin ” , so the first piece of data should be"0x61 0x64 0x6D 0x69 0x6E 0x0D 0x0A" ( Hex ). If the password is correct, the module returns"OK", on the other hand, return to the "NO" and disconnect.The TCP connection of this function can be Webpage in "TCP connection passwordauthentication" is opened or disable. Please refer to the specific "5.1.2" section.4.8.2 Upload IDThis function only applies to the module as a TCP client, in front of the data when moduleconnected to the server with two bytes of ID (ID the range is 0 ~ 65535, the high byte before, andthe low byte behind) plus two bytes ID radix-minus-one complement.Module is the default ID is1111,for example, is sent to the server when the first four bytes "0x57 0x04 0xfb 0 xa8".There are two ways to upload their own id: one is to upload their own id for connection to theserver for the first time;The other is a plus id in front of each data.ID number related parameter is set in the "serial port and other Settings" section of the web, buildjoint function of ID for the first time, and each data with the function of ID are opened by default.ID can also use the at command to set the related parameters, specific refer to 5.2.1.4.32-5.2.1.4.34 section.4.8.3 S elf-adaption Baudrate
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 31 of 78 tec@usr.cnThis feature, please cooperate with our company's virtual serial port software use.Use a serial port connected module, and use the at command "at + AABR = on" open thisfunction and restart.In the USR - VOCM software "synchronous baud rate (RFC2217 similar )" isselected, the following figure .Figure 27 RFCRFCRFCRFC 2217221722172217In this way, the module of baud rate will be as the USR-VCOM to change at any time, and don'thave to restart the module.If restart the module, baud rate and will come back to before.4.8.4 WEB IOThis function only work for "GPIO mode".When the module is in the "GPIO mode", enter the Webpage in " WEB IO ", you can click on thecorresponding button to control module pin level. Without the need to download and install app,any platform, any equipment, as long as you can into the built-in Webpage of module through thebrowser built- you can control module pin of IO.4.8.5 KeepaliveV4.02.10. USR13 and above version of the firmware added keepalive when the TCP connectionmechanism, so when the module of network anomalies, timely diagnose abnormal to the networkand disconnect, when the network has resumed after, and just in time to connect to the server.4.8.6 MultipleSTAparametersThis function based on V4.02.10 D.U SR18 and above version of the firmware, in the sta mode, ifcan network signal is too low, it will automatically switch to the other AP network (switchingnetwork automatically restart).This feature provides a signal threshold, when the current network signals is lower than thecritical value, the module of automatic switching network and restart.If the signal value is set to100, the module will not switch network.Even if the current network signal is not the currentnetwork will always search, not heavy to other networks.The function of the specific Settings page refer to section 4.5.4.4.8.7 WebsocketThis module can realize the function of the websocket server, allowing serial real-time interactionwith the web module, replace the previous HTTP GET, POST, corresponding faster.This moduleprovides the corresponding websocket test page for user testing, specific page is as follows:(webPage:10.10.100.254/websocketen.html)
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 32 of 78 tec@usr.cnFigure 28 WebsocketWebsocketWebsocketWebsocket PagePagePagePageClick on the "connect" page and then implements a connection, so a serial port with page cansend or receive data from each other.This module websocket server support 8 client connectionat the same time.This function for web applications, and for web users with higher response speed, if you want tocustomize the corresponding web page, can connect your company.4.94.94.94.9 PalmodicPalmodicPalmodicPalmodic SignalSignalSignalSignalBase on selected factory default setting, “ Ready ” signal can have two output statuses:Status One: The module will output “0”after normal boot up. This signal used to judge ifmodule finish boot up and ready for application.Status Two: The module will output “Palmodic Signal ”after normal boot up.The palmodicsignal is 0.5Hz square wave with dutyfactor 1:1. User can query this signal to judge ifmoduleis active “live ”or need to re-boot. When module switches to command mode, it willoutput “0”, which used to distinguish work mode and command mode.Notes:This function is user selected factory setting and RELD instruction will not effective for thisfunction. If user not requires this function, the default factory setting is Status One. Contact withUSR Technology for more detailed support.4.104.104.104.10 ParametersParametersParametersParameters ConfigurationConfigurationConfigurationConfigurationUSR-WIFI232-D2 module support s two methods to configuration parameters: WebWebWebWeb AccessingAccessingAccessingAccessingand AT+instructionAT+instructionAT+instructionAT+instruction set.set.set.set.Web accessing means users can configure parameters through built-in webpage. When USR-WIFI232-D2 module connected to wireless network, parameters configuration is done on a PCconnected to the same wireless network. AT+instruction set configuration means user configure
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 33 of 78 tec@usr.cnparameters through serial interface command. Refer to “ AT+instruction set ” chapter for moredetail.Notes:Notes:Notes:Notes:USR can customized the parameters setting as customer request and ship USR-WIFI232-D2modules with these parameters as factory default configuration. It will reduce user ’ s moduleconfiguration time for mass production. Also, if user need different parameters setting for everymodule, USR can provide the auto-configuration tool to speed up the module con fi gurationduration. Please contact USR technical interface to acquire this tool if required.4.114.114.114.11 FirmwareFirmwareFirmwareFirmware UpgradeUpgradeUpgradeUpgradeUSR-WIFI232-D2 module supports firmware upgrade online .
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 34 of 78 tec@usr.cn5555 WebWebWebWeb AccessingAccessingAccessingAccessing andandandand AT+instructionAT+instructionAT+instructionAT+instruction setsetsetset5.15.15.15.1 ConfigurationConfigurationConfigurationConfiguration viaviaviavia WebWebWebWeb AccessingAccessingAccessingAccessingWhen first use USR-WIFI232-D2 modules, user may need some configuration. User can connectto USR-WIFI232-D2 module ’ s wireless interface with following default setting information andconfigure the module through laptop.Table 7 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 WebWebWebWeb AccessAccessAccessAccess DefaultDefaultDefaultDefault SettingSettingSettingSettingParametersParametersParametersParameters DefaultDefaultDefaultDefault SettingSettingSettingSettingSSID USR-WIFI232-A P_xxxxIP Address 10.10.10 0 .254Subnet Mask255.255.255.0User NameadminPassword admin5.1.1 Open Web Management InterfaceStep 1: Connect laptop to SSID “ USR-WIFI232-AP_xxxx ” of USR-WIFI232-D2 module viawireless LAN card;Step 2: After wireless connection OK. Open browser and access “ http://10.10.100.254http://10.10.100.254http://10.10.100.254http://10.10.100.254 ” ;Step 3: Then input user name and password in the page as following and click “ OK ” button.Figure 29 OpenOpenOpenOpen WebWebWebWeb ManagementManagementManagementManagement pagepagepagepageThe USR-WIFI232-D2 web management page support English and Chinese language. User canselect language environment at the top right corner and click “ Apply ” button.The main menu include nine pages: “ Quick Configure ” , “ Mode Selection ” , ” AP InterfaceSetting ” , ”STAInterface Setting ” , ” Application Setting ” , “ Ethernet Setting ” , ’’ HTTPD Clientm ode ” , “ WEB IO ” and “ Device Management ” .
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 35 of 78 tec@usr.cn5.1.2 Quick ConfigureThis page provides users with a method of rapid configuration module.Users according to thesteps to configure the parameters and restart the module page, you can let the module is normalwork, reduced the configuration steps and time.Of course the options on this page is less, if somedetailed configuration, still need to the corresponding configuration page.Figure 30 QuickQuickQuickQuick ConfigureConfigureConfigureConfigure PagePagePagePageThis page has four configuration options and a restart, the corresponding instructions below:WI-FI Setting: set the working mode of wifi, AP mode or the STA.Ethernet Ports Setting: open/close the Ethernet ports, and set up the corresponding workmode.UART Setting: set serial port parameters, including baud rate, parity bit, 485 functions and soon.Network Setting: set network parameters, Only TCPA related parameters.Device Management: when after completion of the above parameters are configured, clickreset module.5.1.3 Mode Selection PageThis page use to setting the wireless networking mode (AP andSTAmode)."Data transmission mode" selection module working mode are "Transparent Mode", "Serial Commandmode", "GPIO mode" and ”” HTTPD-Client Mode ” .
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 36 of 78 tec@usr.cnFigure 31 ModeModeModeMode SelectionSelectionSelectionSelection PagePagePagePage5.1.4 AP Interface Setting PageThis page use to setting the parameters when USR-WIFI232-D2 module works asAP.Figure 32 APAPAPAP InterfaceInterfaceInterfaceInterface SettingSettingSettingSetting PagePagePagePage5.1.5STAInterface Setting PageThis page use to setting the parameters when USR-WIFI232-D2 module works as STA.Such as SSID of AP which module need to connected, and also select the networking type: DHCP orstatic IP address.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 37 of 78 tec@usr.cnFigure 33 STASTASTASTA InterfaceInterfaceInterfaceInterface SettingSettingSettingSetting PagePagePagePage5.1.6 Application Setting PageThis page use to setting the parameters of serial port communication, such as UARTsetting , UART AutoFrame Setting , Ethernet function ,Device ID setting and high layer networkprotocol setting which used support serial communication.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 38 of 78 tec@usr.cnFigure 34 ApplicationApplicationApplicationApplication SettingSettingSettingSetting PagePagePagePageNotes:Notes:Notes:Notes:Generally, Network protocols support three modes: TCPTCPTCPTCP ServerServerServerServer ,TCPTCPTCPTCP ClientClientClientClient ,UDPUDPUDPUDP ServerServerServerServer ,UDPUDPUDPUDPClientClientClientClient .When the module is configured to UDP server side, the module will memory the UDP client endof the last communication, and communication with this UDP client.While the UDP client modewill only with the targetIPaddress and communication.When set to the TCP Server, do not needto enter the IP address.For other Settings, need to fill in the need to connect each other IPaddress.Fill in port with protocol port number, at the ends of the communication port number mustbe the same.The Socket B only as a TCP client terminal to communicate with the server.TCP connection password authentication: when the module in the TCP server mode, passwordauthentication on the TCP client connect to.Note: this verification is only in a module as a TCP server.After the opening, the TCP client connectedmodule, the first data which sent to the module is password and carriage returns.The password is thepassword to login page default is "admin".Such as the default when sending the first data should be"0x61 0x64 0x6D 0x69 0x6E 0x0D 0x0A" (hex) .5.1.7 Ethernet SettingThis page is used to set two Ethernet front-end ports of the module, two Ethernet front-end portscan be open or closed.And so the second can be set to the WAN port to use, this module can beused as a secondary router, making it easy for users to network.Specific Settings page is asfollows:
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 39 of 78 tec@usr.cnFigure 35 EthernetEthernetEthernetEthernet SettingSettingSettingSetting PagePagePagePage5.1.8 HTTPD Client ModeThis page sets the HTTP header in the HTTPD Client mode.Include: the address of the server,the server port, request type, protocol header path, Connection, user-agent.HTTPD Client mode support POST, PUT, GET three HTTP request types.Is a POST or PUTrequest way, serial data can be added to the back of the HTTP header;When the request is aGET, data can be added to the back of the path in the HTTP header.The specific way of sendingdata can consult section 4.2.4.Figure 36 HTTPDHTTPDHTTPDHTTPD ClientClientClientClient ModeModeModeMode PagePagePagePage5.1.9 WEB IO
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 40 of 78 tec@usr.cnFigure 37 WEBWEBWEBWEB IOIOIOIO PagePagePagePage5.1.10 Device Management PageThis page use to manage USR-WIFI232-D2 module general setting, such as administrator setting,restart module button, restore factory default setting button, and update firmware through webpage.Figure 38 DeviceDeviceDeviceDevice ManagementManagementManagementManagement PagePagePagePage
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 41 of 78 tec@usr.cnNotes:Notes:Notes:Notes:Restart module button: When you setting the parameters of different web pages, you will click“ Apply ” button to confirm the setting, but the setting take effect only after user click the “ Restart ”button here, the module will re-boot up and ref re sh the memory information with new changes.5.25.25.25.2 AT+instructionAT+instructionAT+instructionAT+instruction IntroductionIntroductionIntroductionIntroduction5.2.1 Configuration ModeWhen USR-WIFI232-D2 power up, it will default works as transparent transmission mode, thenuser can switch to configuration mode by serial port command. USR-WIFI232-D2 UART defaultparameters setting as below figureFigure 39 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 DefaultDefaultDefaultDefault UARTUARTUARTUART PortPortPortPort ParametersParametersParametersParametersIn configuration mode, user can setting the module through AT+ instruction set, which cover allweb page setting function.5.2.1.1 Switch to Configuration ModeTwo steps to finish switching from transparent transmission mode to configuration mode.UARTUARTUARTUART inputinputinputinput ““““ ++++++++++++ ”””” ,,,, afterafterafterafter modulemodulemodulemodule receivereceivereceivereceive ““““ ++++++++++++ ”””” ,,,, andandandand feedbackfeedbackfeedbackfeedback ““““ aaaa ”””” asasasas confirmation.confirmation.confirmation.confirmation.UARTUARTUARTUART inputinputinputinput ““““ aaaa ”””” ,,,, afterafterafterafter modulemodulemodulemodule receivereceivereceivereceive ““““ aaaa ”””” andandandand feedbackfeedbackfeedbackfeedback ““““ +ok+ok+ok+ok ”””” totototo gogogogo intointointointo AT+AT+AT+AT+instructioninstructioninstructioninstruction setsetsetset configurationconfigurationconfigurationconfiguration mode.mode.mode.mode.Figure 40 SwitchSwitchSwitchSwitch totototo ConfigurationConfigurationConfigurationConfiguration ModeModeModeModeNotes:Notes:Notes:Notes:
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 42 of 78 tec@usr.cn1. When user input “ +++ ” (No “ Enter ” key required), the UART port will display feedbackinformation “ a ” , and not display input information ” +++ ” as above UART display.2. Any other input or wrong step to UART port will cause the module still works as original mode(transparent transmission).5.2.2 AT+ Instruction Set OverviewUser can input AT+ Instruction through hyper terminal or other serial debug terminal, also canprogram the AT+ Instruction to script. User can also input “ AT+H ” to list all AT+ Instruction anddescription to start.Figure 41 ”””” AT+HAT+HAT+HAT+H ”””” InstructionInstructionInstructionInstruction forforforfor HelpHelpHelpHelpWe supply software USR-WIFI232-Setup to send command easily, software setup:Figure 42 SerialSerialSerialSerial portportportport parameterparameterparameterparameter
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 43 of 78 tec@usr.cnClick “ Open Com ” , send “ +++a ” , it will reply +ok in left side, then type in and send the commandyou need to send, then click “ AT+RELD ” to restore, then parameters saved.Figure 43 softwaresoftwaresoftwaresoftware ofofofof USR-WIFI232-SetupUSR-WIFI232-SetupUSR-WIFI232-SetupUSR-WIFI232-SetupAbove is by COM, also you can send by WIFI:First, connect with PC, open the software, see Net partFigure 44 SearchSearchSearchSearch modulemodulemodulemoduleClick search, then will show module, click module then you can send command.5.2.2.1 Instruction Syntax FormatAT+Instruction protocol is based on the instruction of ASCII command style, the description ofsyntax format as follow.FormatFormatFormatFormat DescriptionDescriptionDescriptionDescription< >: Means the parts must be included[ ]: Means the optional part
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 44 of 78 tec@usr.cnCommandCommandCommandCommand MessageMessageMessageMessageAT+<CMD>[op][para-1,para-2,para-3,para-4AT+<CMD>[op][para-1,para-2,para-3,para-4AT+<CMD>[op][para-1,para-2,para-3,para-4AT+<CMD>[op][para-1,para-2,para-3,para-4 ………… ]<CR>]<CR>]<CR>]<CR>AT+: Prefix of command message;CMD: Command string;[op]: Symbol of command operator,“ = ” : The command requires parameters input;“ NULL ” : Query the current command parameters setting;[para-n]: Parameters input for setting if required;<CR> : ” Enter ” Key, it ’ s 0x0a or 0x0d in ASCII;NotesNotesNotesNotes : When input AT+Instruction, “ AT+<CMD> ” character will display capital letter automaticand other parts will not change as you input.ResponseResponseResponseResponse MessageMessageMessageMessage+<RSP>[op]+<RSP>[op]+<RSP>[op]+<RSP>[op] [para-1,para-2,para-3,para-4[para-1,para-2,para-3,para-4[para-1,para-2,para-3,para-4[para-1,para-2,para-3,para-4 ………… ]<CR><LF><CR><LF>]<CR><LF><CR><LF>]<CR><LF><CR><LF>]<CR><LF><CR><LF>+: Prefix of response message;RSP: Response string;“ ok ” : Success“ ERR ” : Failure[op] : =[para-n]: Parameters if query command or Error code when error happened;<CR>: ASCII 0x0d;<LF>: ASCIII 0x0a;ErrorErrorErrorError CodeCodeCodeCodeTable 8 ErrorErrorErrorError CodeCodeCodeCode DescriptionDescriptionDescriptionDescription USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 WebWebWebWeb AccessAccessAccessAccess DefaultDefaultDefaultDefault SettingSettingSettingSettingErrorErrorErrorError CodeCodeCodeCode DescriptionDescriptionDescriptionDescription-1 Invalid Command Format-2 Invalid Command-3 Invalid Operation Symbol-4 Invalid Parameter-5 Operation Not Permitted5.2.2.2 AT+ Instruction SetTable 9 AT+AT+AT+AT+ InstructionInstructionInstructionInstruction SetSetSetSet ListListListListInstructionInstructionInstructionInstruction DescriptionDescriptionDescriptionDescription<null> NULLE Open/Close show back functionENTM Set module into transparent transmission modeNETP Set/Query network protocol parametersUART Set/Query serial port parameters
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 45 of 78 tec@usr.cnUARTF Open/Close UART auto-frame functionUARTFT Set/Query UART auto-frame trigger timeUARTFL Set/Query UART auto-frame trigger lengthTMODE Set/Query data transmission mode(transparent transmission or agreement transmission)WMODE Set/Query WIFI work mode (AP or STA)WSKEY Set/Query WIFI security parameters as STAWSSSID Set/Query WIFI target AP SSID parameters as STAWSLK Query WiFi link status as STAWEBU Set/Query WEB page login parameters(User Name and Password)WAP Set/Query WIFI parameters as APWAKEY Set/Query WIFI security parameters as APHIDESSID Set/Query hide AP ’ s SSIDMSLP Set modules into power save mode.(Turn OFF WiFi)WSCAN Seek AP when module works as STA modeTCPLK Query if TCP link already build-upTCPDIS Open/Cose TCP (Only TCP Client available)WANN Set/Query WAN setting, only effective as STA modeLANN Set/Query LAN setting, only effective as AP modeDHCPDEN Enable/Disable LAN DHCP server functionDHCPGW Set/Query DHCP gateway addressTCPTO Set/Query TCP timeoutMAXSK Set/Query maxima TCP connectionTCPB Open/Close TCPB functionTCPPTB Set/Query TCPB port numberTCPADDB Set/Query TCPB server addressTCPTOB Set/Query TCPB time out timeTCPLKB Query TCPB link statusSTTC Enable/Disable STA port scan functionDOMAIN Set/Query domain of module webpageFRLDEN Enable/Disable nReload pin functionRELD Restore to factory default settingFUDLX Open / close the 485 functionMMID Device IDIDFIR Send an ID when module connection is establishedIDEVE Every time to send data to send IDAABR Open / close baud rate adaptive functionMID Query module ID informationVER Query module software version informationH HelpHTTPURL Set /Query HTTP server IP address and Port NumberHTTPTP Set /Query HTTP request typeHTTPPHSet/Query HTTP protocol header pathHTTPCN Set/Query Connection of HTTP protocol headerHTTPUASet/Query User-Agent of HTTP protocol headerEPHYAOpen/Close ETH 1 interfaceEPHYBOpen/Close ETH 2 interface
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 46 of 78 tec@usr.cnNotes:Notes:Notes:Notes: USR-WIFI232-D2 module can works as AP or STA, user have to use different AT+ Instructionto set WiFi parameters when module works as AP orSTAmode.5.2.2.2.15.2.2.2.15.2.2.2.15.2.2.2.1 AT+EAT+EAT+EAT+EFunction: Open/Close show back function;Format:AT+E<CR>AT+E<CR>AT+E<CR>AT+E<CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>When USR-WIFI232-D2 module firstly switch from transparent transmission to configuration mode,show back status is open, input “ AT+E ” to close show back function, input “ AT+E ” again to open showback function.5.2.2.2.25.2.2.2.25.2.2.2.25.2.2.2.2 AT+ENTMAT+ENTMAT+ENTMAT+ENTMFunction: Set module into transparent transmi ss ion mode;Format:AT+ENTM<CR>AT+ENTM<CR>AT+ENTM<CR>AT+ENTM<CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>When operate this command, module switch from configuration mode to transparent transmissionmode.5.2.2.2.35.2.2.2.35.2.2.2.35.2.2.2.3 AT+NETPAT+NETPAT+NETPAT+NETPFunction: Set/Query network protocol parameters;Format:Query OperationAT+NETP<CR>AT+NETP<CR>AT+NETP<CR>AT+NETP<CR>+ok=<protocol,CS,port,IP><CR><+ok=<protocol,CS,port,IP><CR><+ok=<protocol,CS,port,IP><CR><+ok=<protocol,CS,port,IP><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+NETP=<protocol,CS,port,IP><CR>AT+NETP=<protocol,CS,port,IP><CR>AT+NETP=<protocol,CS,port,IP><CR>AT+NETP=<protocol,CS,port,IP><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:protocol:TCPUDPCS: Network mode:SERVERCLIENTPort: protocol port ID: Decimal digit and less than 65535IP: Server’s IP address when module set as clientAfter USR-WIFI232-D2 module boots up again, the setting will be effective.5.2.2.2.45.2.2.2.45.2.2.2.45.2.2.2.4 AT+UARTAT+UARTAT+UARTAT+UARTFunction: Set/Query serial port parameters;Format:Query Operation
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 47 of 78 tec@usr.cnAT+UART<CR>AT+UART<CR>AT+UART<CR>AT+UART<CR>+ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR><+ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR><+ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR><+ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+UART=<baudrate,data_bits,stop_bit,parity,flowctrl><CR>AT+UART=<baudrate,data_bits,stop_bit,parity,flowctrl><CR>AT+UART=<baudrate,data_bits,stop_bit,parity,flowctrl><CR>AT+UART=<baudrate,data_bits,stop_bit,parity,flowctrl><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:baudrate:50,75,110,134,150,200,300,600,1200,1800,2400,4800,9600,19200,38400,57600,115200,230400,345600,460800data_bits:5,6,7,8stop_bits:1,2parity:NONE,EVEN,ODD,MARK,SPACEflowctrl :hardware flow control (CTSRTS)NFC: No flow controlFC: flow controlAfter USR-WIFI232-D2 module boots up again , the setting will be effective.5.2.2.2.55.2.2.2.55.2.2.2.55.2.2.2.5 AT+AT+AT+AT+ UARTFUARTFUARTFUARTFFunction: Open/Close UART auto-frame function;Format:Query OperationAT+AT+AT+AT+ UARTF<CR>UARTF<CR>UARTF<CR>UARTF<CR>+ok=<para><CR><+ok=<para><CR><+ok=<para><CR><+ok=<para><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ UARTF=<paraUARTF=<paraUARTF=<paraUARTF=<para ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:para:disable - Close auto-frame function;enable - Open auto-frame function;5.2.2.2.65.2.2.2.65.2.2.2.65.2.2.2.6 AT+AT+AT+AT+ UARTFTUARTFTUARTFTUARTFTFunction: Set/Query UART auto-frame trigger time;Format:Query OperationAT+AT+AT+AT+ UARTFT<CR>UARTFT<CR>UARTFT<CR>UARTFT<CR>+ok=<time><CR><+ok=<time><CR><+ok=<time><CR><+ok=<time><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ UARTFT=<timeUARTFT=<timeUARTFT=<timeUARTFT=<time ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:time: Range 100 ~10000; Unit: ms. Auto-frame trigger time
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 48 of 78 tec@usr.cn5.2.2.2.75.2.2.2.75.2.2.2.75.2.2.2.7 AT+AT+AT+AT+ UARTFLUARTFLUARTFLUARTFLFunction: Set/Query UART auto-frame trigger length;Format:Query OperationAT+AT+AT+AT+ UARTFL<CR>UARTFL<CR>UARTFL<CR>UARTFL<CR>+ok=<len><CR><+ok=<len><CR><+ok=<len><CR><+ok=<len><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ UARTFL=<lenUARTFL=<lenUARTFL=<lenUARTFL=<len ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:len: Range 64 ~4096; Unit: byte. Auto-frame trigger length;5.2.2.2.85.2.2.2.85.2.2.2.85.2.2.2.8 AT+TMODEAT+TMODEAT+TMODEAT+TMODEFunction: Set/Query data transmi ss ion mode;Format:Query OperationAT+TMODE<CR>AT+TMODE<CR>AT+TMODE<CR>AT+TMODE<CR>+ok=<tmode><CR><+ok=<tmode><CR><+ok=<tmode><CR><+ok=<tmode><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ TMODE=<tmode><CR>TMODE=<tmode><CR>TMODE=<tmode><CR>TMODE=<tmode><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:tmode: Data transm iss ion modeThrough: Transparent transmi ss ionAgreement: Agreement transmi ss ionHttpdclient :Httpd C lient ModeGpio : GPIO ModeAfter USR-WIFI232-D2 module boots up again, the setting will be effective.5.2.2.2.95.2.2.2.95.2.2.2.95.2.2.2.9 AT+WMODEAT+WMODEAT+WMODEAT+WMODEFunction: Set/Query WIFI work mode;Format:Query OperationAT+WMODE<CR>AT+WMODE<CR>AT+WMODE<CR>AT+WMODE<CR>+ok=<mode><CR><+ok=<mode><CR><+ok=<mode><CR><+ok=<mode><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ WMODE=<mode><CR>WMODE=<mode><CR>WMODE=<mode><CR>WMODE=<mode><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:mode:WIFI work modeAPSTAAfter USR-WIFI232-D2 module boots up again, the setting will be effective.5.2.2.2.105.2.2.2.105.2.2.2.105.2.2.2.10 AT+WSKEYAT+WSKEYAT+WSKEYAT+WSKEYFunction: Set/Query WIFI security parameters as STA;Format:
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 49 of 78 tec@usr.cnQuery OperationAT+WSKEY<CR>AT+WSKEY<CR>AT+WSKEY<CR>AT+WSKEY<CR>+ok=<auth,encry,key><CR><+ok=<auth,encry,key><CR><+ok=<auth,encry,key><CR><+ok=<auth,encry,key><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ WSKEY=<WSKEY=<WSKEY=<WSKEY=< auth,encry,key><CR>auth,encry,key><CR>auth,encry,key><CR>auth,encry,key><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:auth: Authentication modeOPENSHAREDWPAPSKencry:Encryption algorithmNONE: When “ auth=OPEN ” , effectiveWEP: When “ auth=OPEN ” or “ SHARED ” , effectiveTKIP: When ” auth= WPAPSK ” , effectiveAES: When “ auth= WPAPSK ” , effectivekey: password, ASCII code, shall less than 64 bit and greater than 8bitThis Instruction only effective for USR-WIFI232-D2 works as STA. After USR-WIFI232-D2 moduleboots up again, the setting will be effective. But user can set this command when module configuredasAP.5.2.2.2.115.2.2.2.115.2.2.2.115.2.2.2.11 AT+WSSSIDAT+WSSSIDAT+WSSSIDAT+WSSSIDFunction: Set/Query WIFI target AP SSID parameters as STA.Format:Query OperationAT+WSSSID<CR>AT+WSSSID<CR>AT+WSSSID<CR>AT+WSSSID<CR>+ok=<ap+ok=<ap+ok=<ap+ok=<ap’’’’ssss ssid><CR><ssid><CR><ssid><CR><ssid><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ WSSSID=<apWSSSID=<apWSSSID=<apWSSSID=<ap’’’’ssss ssidssidssidssid ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:ap’s ssid: AP ’ s SSIDThis Instruction only effective for USR-WIFI232-D2 works as STA. After USR-WIFI232-D2 moduleboots up again, the setting will be effective. But user can set this command when module configuredasAP.5.2.2.2.125.2.2.2.125.2.2.2.125.2.2.2.12 AT+AT+AT+AT+ WSLKWSLKWSLKWSLKFunction: Query WiFi link status as STAFormat:Query OperationAT+AT+AT+AT+ WSLK<CR>WSLK<CR>WSLK<CR>WSLK<CR>+ok=<ret><CR><+ok=<ret><CR><+ok=<ret><CR><+ok=<ret><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:ret” Disconnected ” , if no WiFi connection;
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 50 of 78 tec@usr.cn” AP’SSID (AP ’ s MAC ” ), if WiFi connection available;” RF Off ” , if WiFi OFF;This Instruction only effective for USR-WIFI232-D2 works as STA. After USR-WIFI232-D2 moduleboots up again, the setting will be effective. But user can set this command when module configuredasAP.5.2.2.2.135.2.2.2.135.2.2.2.135.2.2.2.13 AT+WEBUAT+WEBUAT+WEBUAT+WEBUFunction: Set/Query WEB page login parameters;Format:Query OperationAT+WEBU<CR>AT+WEBU<CR>AT+WEBU<CR>AT+WEBU<CR>+ok=<usr,password><CR><+ok=<usr,password><CR><+ok=<usr,password><CR><+ok=<usr,password><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ WEBU=<WEBU=<WEBU=<WEBU=< usr,passwordusr,passwordusr,passwordusr,password ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:usr: User name for WEB page access;password :Password for WEB page access;5.2.2.2.145.2.2.2.145.2.2.2.145.2.2.2.14AT+WAPAT+WAPAT+WAPAT+WAPFunction: Set/Query WIFI parameters as AP;Format:Query OperationAT+WAP<CR>AT+WAP<CR>AT+WAP<CR>AT+WAP<CR>+ok=<wifi_mode,ssid,channel><CR><+ok=<wifi_mode,ssid,channel><CR><+ok=<wifi_mode,ssid,channel><CR><+ok=<wifi_mode,ssid,channel><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ WAP=<wifi_mode,ssid,channel><CR>WAP=<wifi_mode,ssid,channel><CR>WAP=<wifi_mode,ssid,channel><CR>WAP=<wifi_mode,ssid,channel><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:wifi_mode: WiFi protocols11BG11B11G11BGN11Nssid: SSID when module works as AP;channel: WIFI channel selectionAUTOCH1~CH11This Instruction only effective for USR-WIFI232-D2 works asAP.After USR-WIFI232-D2 module bootsup again, the setting will be effective. But user can set this command when module configured as STA.5.2.2.2.155.2.2.2.155.2.2.2.155.2.2.2.15 AT+WAKEYAT+WAKEYAT+WAKEYAT+WAKEYFunction: Set/Query WIFI security parameters as AP;Format:Query OperationAT+WAKEY<CR>AT+WAKEY<CR>AT+WAKEY<CR>AT+WAKEY<CR>
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 51 of 78 tec@usr.cn+ok=<auth,encry,key><CR><+ok=<auth,encry,key><CR><+ok=<auth,encry,key><CR><+ok=<auth,encry,key><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ WAKEY=<WAKEY=<WAKEY=<WAKEY=< auth,encry,key><CR>auth,encry,key><CR>auth,encry,key><CR>auth,encry,key><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:auth: Authentication modeOPENSHAREDWPAPSKencry:Encryption algorithmNONE: When “ auth=OPEN ” , effective;WEP: When “ auth=OPEN ” , effective or “ SHARED ” , effective;TKIP: When “ auth=WPAPSK ” , effective;AES:When “ auth=WPAPSK ” , effective;TKIPAES:When “ auth=WPAPSK ” , effective;key: password, ASCII code, shall less than 64 bit and greater than 8bit;This Instruction only effective for USR-WIFI232-D2 works as AP. After USR-WIFI232-D2 module bootsup again, the setting will be effective. But user can set this command when module configured as STA.5.2.2.2.165.2.2.2.165.2.2.2.165.2.2.2.16 AT+HIDESSIDAT+HIDESSIDAT+HIDESSIDAT+HIDESSIDFunction: Set/Query hide AP’s SSID;Format:Query OperationAT+HIDSSID<CR>AT+HIDSSID<CR>AT+HIDSSID<CR>AT+HIDSSID<CR>+ok=<sta.><CR><LF><CR><LF>+ok=<sta.><CR><LF><CR><LF>+ok=<sta.><CR><LF><CR><LF>+ok=<sta.><CR><LF><CR><LF>Set OperationAT+HIDSSID=<sta><CR>AT+HIDSSID=<sta><CR>AT+HIDSSID=<sta><CR>AT+HIDSSID=<sta><CR>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:When Query,sta reply if module ’ s SSID is hide;On-not hide SSIDOff- hide SSIDWhen Set,Off-hide SSIDOn- not hide SSID5.2.2.2.175.2.2.2.175.2.2.2.175.2.2.2.17AAAAT+MSLPT+MSLPT+MSLPT+MSLPFunction: Set modules into power save mode.(Turn OFF WiFi);Format:Query OperationAT+AT+AT+AT+ MSLPMSLPMSLPMSLP <CR><CR><CR><CR>+ok=<sta.><CR><+ok=<sta.><CR><+ok=<sta.><CR><+ok=<sta.><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set Operation
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 52 of 78 tec@usr.cnAT+AT+AT+AT+ MSLP=<on/off><CR>MSLP=<on/off><CR>MSLP=<on/off><CR>MSLP=<on/off><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:When Query,sta reply if the module in sleep mode;On - Module not in sleep mode (WiFi ON);Off - Module in sleep mode(WiFi OFF);When Set,Off - Set module to sleep mode (WiFi OFF);On - Set module to normal mode (WiFi ON);When module go into sleep mode, user can input “ AT+MSLP=on ” to re-start the module and modulego into transparent transmission mode.5.2.2.2.185.2.2.2.185.2.2.2.185.2.2.2.18 AT+WSCANAT+WSCANAT+WSCANAT+WSCANFunction: Seek AP when module works asSTAmode;Format:AT+AT+AT+AT+ WSCAN<CR>WSCAN<CR>WSCAN<CR>WSCAN<CR>+ok=<ap_site><CR><+ok=<ap_site><CR><+ok=<ap_site><CR><+ok=<ap_site><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:ap_site: AP searched;5.2.2.2.195.2.2.2.195.2.2.2.195.2.2.2.19 AT+AT+AT+AT+ TCPLKTCPLKTCPLKTCPLKFunction: Query if TCP link already build-up;Format:AT+AT+AT+AT+ TCPLK<CR>TCPLK<CR>TCPLK<CR>TCPLK<CR>+ok=<sta><CR><+ok=<sta><CR><+ok=<sta><CR><+ok=<sta><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:sta.: if module already setup TCP link;on: TCP link setup;off: TCP link not setup;5.2.2.2.205.2.2.2.205.2.2.2.205.2.2.2.20ATATATAT++++ TCPDISTCPDISTCPDISTCPDISFunction: Open/Cose TCP (Only TCP Client available);Format:Query OperationAT+TCPDIS<CR>AT+TCPDIS<CR>AT+TCPDIS<CR>AT+TCPDIS<CR>+ok=<sta><CR><+ok=<sta><CR><+ok=<sta><CR><+ok=<sta><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ TCPDIS=<on/off><CR>TCPDIS=<on/off><CR>TCPDIS=<on/off><CR>TCPDIS=<on/off><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:sta.: set/qu er y TCP link status;on: TCP link availab l e; When setting “ on ” , module will connect to TCP serverright away.off: TCP link not availab l e; when setting “ off ” , module will disconnect with TCPserver and not connect again.5.2.2.2.215.2.2.2.215.2.2.2.215.2.2.2.21 AT+AT+AT+AT+ WANNWANNWANNWANNFunction: Set/Query WAN setting, only effective as STA mode;
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 53 of 78 tec@usr.cnFormat:Query OperationAT+WANN<CR>AT+WANN<CR>AT+WANN<CR>AT+WANN<CR>+ok=<mode,address,mask,gateway><CR><+ok=<mode,address,mask,gateway><CR><+ok=<mode,address,mask,gateway><CR><+ok=<mode,address,mask,gateway><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ WANN=<WANN=<WANN=<WANN=< mode,address,mask,gatewaymode,address,mask,gatewaymode,address,mask,gatewaymode,address,mask,gateway ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:mode: IP setting for WAN portstatic: Static IPDHCP: Dynamic IPaddress: WAN port IP address;mask: WAN port subnet mask;gateway: WAN port gateway address;This Instruction only effective for USR-WIFI232-D2 works as STA. After USR-WIFI232-D2 moduleboots up again, the setting will be effective. But user can set this command when module configuredasAP.5.2.2.2.225.2.2.2.225.2.2.2.225.2.2.2.22 AT+AT+AT+AT+ LANNLANNLANNLANNFunction: Set/Query LAN setting, only effective as AP mode;Format:Query OperationAT+LANN<CR>AT+LANN<CR>AT+LANN<CR>AT+LANN<CR>+ok=<address,mask+ok=<address,mask+ok=<address,mask+ok=<address,mask ><CR><><CR><><CR><><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ LANN=<address,maskLANN=<address,maskLANN=<address,maskLANN=<address,mask ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:address: LAN port IP address;mask: LAN port subnet mask;This Instruction only effective for USR-WIFI232-D2 works asAP.After USR-WIFI232-D2 module bootsup again, the setting will be effective. But user can set this command when module configured as STA.5.2.2.2.235.2.2.2.235.2.2.2.235.2.2.2.23 AT+DHCPDENAT+DHCPDENAT+DHCPDENAT+DHCPDENFunction: Enable/Disable LAN DHCP server function;Format:Query OperationAT+DHCPDEN<CR>AT+DHCPDEN<CR>AT+DHCPDEN<CR>AT+DHCPDEN<CR>+ok=<sta><CR><LF><CR><LF>+ok=<sta><CR><LF><CR><LF>+ok=<sta><CR><LF><CR><LF>+ok=<sta><CR><LF><CR><LF>Set OperationAT+DHCPDEN=<sta><CR>AT+DHCPDEN=<sta><CR>AT+DHCPDEN=<sta><CR>AT+DHCPDEN=<sta><CR>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:sta.IfEnable/Disable LAN DHCP server function;on: Enable LAN DHCP function
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 54 of 78 tec@usr.cnoff: Disable LAN DHCP function5.2.2.2.245.2.2.2.245.2.2.2.245.2.2.2.24 AT+AT+AT+AT+ DHCPGWDHCPGWDHCPGWDHCPGWFunction: Set/Query DHCP gateway address;Format:Query OperationAT+AT+AT+AT+ DHCPGW<CR>DHCPGW<CR>DHCPGW<CR>DHCPGW<CR>+ok=<address><CR><+ok=<address><CR><+ok=<address><CR><+ok=<address><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ DHCPGW=<addressDHCPGW=<addressDHCPGW=<addressDHCPGW=<address ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:address: DHCP gate address;5.2.2.2.255.2.2.2.255.2.2.2.255.2.2.2.25 AT+AT+AT+AT+ TCPTOTCPTOTCPTOTCPTOFunction: Set/Query TCP timeout;Format:Query OperationAT+AT+AT+AT+ TCPTO<CR>TCPTO<CR>TCPTO<CR>TCPTO<CR>+ok=<time><CR><+ok=<time><CR><+ok=<time><CR><+ok=<time><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ TCPTO=<timeTCPTO=<timeTCPTO=<timeTCPTO=<time ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:time: TCP timeout time.<= 600, (600s);>=0, (0 means no timeout);Default, 300s;5.2.2.2.265.2.2.2.265.2.2.2.265.2.2.2.26 AT+AT+AT+AT+ MAXSKMAXSKMAXSKMAXSKFunction: Set/Query maxima TCP connection;Format:Query OperationAT+AT+AT+AT+ MAXSK<CR>MAXSK<CR>MAXSK<CR>MAXSK<CR>+ok=<num><CR><+ok=<num><CR><+ok=<num><CR><+ok=<num><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ MAXSKMAXSKMAXSKMAXSK =<num=<num=<num=<num ><CR>><CR>><CR>><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:num: 1~32, default 32. maxima TCP connection;When configure as TCP/Server, USR-WIFI232-D2 support maxim a 32 TCP connections.Ifnot requireso much connection, user can resetting this parameters.5.2.2.2.275.2.2.2.275.2.2.2.275.2.2.2.27 AT+TCPBAT+TCPBAT+TCPBAT+TCPBFunction: Open/Close TCPB function;Format:
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 55 of 78 tec@usr.cnQuery OperationAT+TCPB<CR>AT+TCPB<CR>AT+TCPB<CR>AT+TCPB<CR>+ok=<sta><CR><+ok=<sta><CR><+ok=<sta><CR><+ok=<sta><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ TCPB=<on/off><CR>TCPB=<on/off><CR>TCPB=<on/off><CR>TCPB=<on/off><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:sta: TCPB enable statuson, TCPB enableoff, TCPB disableAfter USR-WIFI232-D2 module boots up again, the setting will be effective.5.2.2.2.285.2.2.2.285.2.2.2.285.2.2.2.28 AT+TCPPTBAT+TCPPTBAT+TCPPTBAT+TCPPTBFunction: Set/Query TCPB port number;Format:Query OperationAT+TCPPTB<CR>AT+TCPPTB<CR>AT+TCPPTB<CR>AT+TCPPTB<CR>+ok=<port><CR><+ok=<port><CR><+ok=<port><CR><+ok=<port><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ TCPB=<port><CR>TCPB=<port><CR>TCPB=<port><CR>TCPB=<port><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:port: decimal ,<65535After USR-WIFI232-D2 module boots up again, the setting will be effective.5.2.2.2.295.2.2.2.295.2.2.2.295.2.2.2.29 AT+TCPADDBAT+TCPADDBAT+TCPADDBAT+TCPADDBFunction: Set/Query TCPB server address;Format:Query OperationAT+TCPADDB<CR>AT+TCPADDB<CR>AT+TCPADDB<CR>AT+TCPADDB<CR>+ok=<add><CR><+ok=<add><CR><+ok=<add><CR><+ok=<add><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ TCPADDB=<add><CR>TCPADDB=<add><CR>TCPADDB=<add><CR>TCPADDB=<add><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:add: TCPB server address, can be IP address or url.After USR-WIFI232-D2 module boots up again, the setting will be effective5.2.2.2.305.2.2.2.305.2.2.2.305.2.2.2.30 AT+TCPTOBAT+TCPTOBAT+TCPTOBAT+TCPTOBFunction: Set/Query TCPB time out time;Format:Query OperationAT+TCPTOB<CR>AT+TCPTOB<CR>AT+TCPTOB<CR>AT+TCPTOB<CR>+ok=<time><CR><+ok=<time><CR><+ok=<time><CR><+ok=<time><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ TCPTOB=<time><CR>TCPTOB=<time><CR>TCPTOB=<time><CR>TCPTOB=<time><CR>
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 56 of 78 tec@usr.cn+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:time: TCPB time out time, <=600 (600s), >=0 (No time out), default 300After USR-WIFI232-D2 module boots up again, the setting will be effective.5.2.2.2.315.2.2.2.315.2.2.2.315.2.2.2.31 AT+TCPLKBAT+TCPLKBAT+TCPLKBAT+TCPLKBFunction: Query TCPB link status;Format:AT+TCPCKB<CR>AT+TCPCKB<CR>AT+TCPCKB<CR>AT+TCPCKB<CR>+ok=<sta><CR><+ok=<sta><CR><+ok=<sta><CR><+ok=<sta><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:sta: TCPB link statuson, TCPB link OKoff, TCPB link not availab l e5.2.2.2.325.2.2.2.325.2.2.2.325.2.2.2.32 AT+AT+AT+AT+ STTCSTTCSTTCSTTCFunction : Enable/Disable STA port scan functionFormat:Query OperationAT+AT+AT+AT+ STTCSTTCSTTCSTTC <CR><CR><CR><CR>+ok+ok+ok+ok =<sta>=<sta>=<sta>=<sta> <CR><<CR><<CR><<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+STTC=<on/off><CR>AT+STTC=<on/off><CR>AT+STTC=<on/off><CR>AT+STTC=<on/off><CR>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:Sta: when query, this value feedbackOn: Enable STA port scan functionOff: Disable STA port scan function5.2.2.2.335.2.2.2.335.2.2.2.335.2.2.2.33 AT+DOMAINAT+DOMAINAT+DOMAINAT+DOMAINFunction: Set/Query domain of module webpage;FormatQuery OperationAT+DOMAIN<CR>AT+DOMAIN<CR>AT+DOMAIN<CR>AT+DOMAIN<CR>+ok=<domian><CR><LF><CR><LF>+ok=<domian><CR><LF><CR><LF>+ok=<domian><CR><LF><CR><LF>+ok=<domian><CR><LF><CR><LF>Set OperationAT+DOMAIN=<domain><CR>AT+DOMAIN=<domain><CR>AT+DOMAIN=<domain><CR>AT+DOMAIN=<domain><CR>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:domain: domain to access to module webpage5.2.2.2.345.2.2.2.345.2.2.2.345.2.2.2.34 AT+FRLDENAT+FRLDENAT+FRLDENAT+FRLDENFunction: Enable/Disable nReload pin function;Format:Query OperationAT+FRLDEN<CR>AT+FRLDEN<CR>AT+FRLDEN<CR>AT+FRLDEN<CR>
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 57 of 78 tec@usr.cn+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>Set OperationAT+FRELDEN=<on/off><CR>AT+FRELDEN=<on/off><CR>AT+FRELDEN=<on/off><CR>AT+FRELDEN=<on/off><CR>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:On/off: Enable or Disable nReload pin functionOn, enable nReload pin function;Off, disable nReload pin function;Notes: AT+FRLDEN is F-Setting, means restore to factory setting will not affect this command.5.2.2.2.355.2.2.2.355.2.2.2.355.2.2.2.35 AT+FUDLXAT+FUDLXAT+FUDLXAT+FUDLXFunction: Enable/Disable 485 function;Format:Query OperationAT+FAT+FAT+FAT+F UDLXUDLXUDLXUDLX <CR><CR><CR><CR>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>Set OperationAT+FAT+FAT+FAT+F UDLXUDLXUDLXUDLX =<on/off><CR>=<on/off><CR>=<on/off><CR>=<on/off><CR>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:On/off: Enable or Disable 485 functionOn, enable 485 function;Off, disable 485 function;Notes: AT+F UDLX is F-Setting, means restore to factory setting will not affect this command.5.2.2.2.365.2.2.2.365.2.2.2.365.2.2.2.36 AT+AT+AT+AT+ MMIDMMIDMMIDMMIDFunction: Set/Query Device ID ;Format:Query OperationAT+AT+AT+AT+ MMIDMMIDMMIDMMID <CR><CR><CR><CR>+ok=<time><CR><+ok=<time><CR><+ok=<time><CR><+ok=<time><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set OperationAT+AT+AT+AT+ MMIDMMIDMMIDMMID =<time><CR>=<time><CR>=<time><CR>=<time><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:ID : device id(0~65535)After USR-WIFI232-D2 module boots up again, the setting will be effective.5.2.2.2.375.2.2.2.375.2.2.2.375.2.2.2.37 AT+IDFIRAT+IDFIRAT+IDFIRAT+IDFIRFunction: Enable/Disable “ Send an ID when module connection is established ” function;Format:Query OperationAT+AT+AT+AT+ IDFIRIDFIRIDFIRIDFIR <CR><CR><CR><CR>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>Set OperationAT+AT+AT+AT+ IDFIRIDFIRIDFIRIDFIR =<on/off><CR>=<on/off><CR>=<on/off><CR>=<on/off><CR>
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 58 of 78 tec@usr.cn+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:On/off: Enable or Disable “ Send an ID when module connection is established ”functionOn, enable “ Send an ID when module connection is established ” function;Off, disable “ Send an ID when module connection is established ” function;5.2.2.2.385.2.2.2.385.2.2.2.385.2.2.2.38 AT+IDEVEAT+IDEVEAT+IDEVEAT+IDEVEFunction: Enable/Disable Every time to send data to send ID function;Format:Query OperationAT+AT+AT+AT+ IDEVEIDEVEIDEVEIDEVE <CR><CR><CR><CR>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>Set OperationAT+AT+AT+AT+ IDEVEIDEVEIDEVEIDEVE =<on/off><CR>=<on/off><CR>=<on/off><CR>=<on/off><CR>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:On/off: Enable or Disable Every time to send data to send ID functionOn, enable Every time to send data to send ID function;Off, disable Every time to send data to send ID function;5.2.2.2.395.2.2.2.395.2.2.2.395.2.2.2.39 AT+AABRAT+AABRAT+AABRAT+AABRFunction: Enable/Disable Self-adaption Baudrate function;Format:Query OperationAT+AT+AT+AT+ AABRAABRAABRAABR <CR><CR><CR><CR>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>+ok=<on/off><CR><LF><CR><LF>Set OperationAT+AT+AT+AT+ AABRAABRAABRAABR =<on/off><CR>=<on/off><CR>=<on/off><CR>=<on/off><CR>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>+ok<CR><LF><CR><LF>Parameters:On/off: Enable or Disable 485 functionOn, enable 485 function;Off, disable 485 function;5.2.2.2.405.2.2.2.405.2.2.2.405.2.2.2.40 AT+RELDAT+RELDAT+RELDAT+RELDFunction: Restore to factory default setting;Format:AT+AT+AT+AT+ RELD<CR>RELD<CR>RELD<CR>RELD<CR>+ok=rebooting+ok=rebooting+ok=rebooting+ok=rebooting ………… <CR><<CR><<CR><<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>This command restores the module to factory default setting, and then re-starts the module.5.2.2.2.415.2.2.2.415.2.2.2.415.2.2.2.41AT+ZAT+ZAT+ZAT+ZFunction: Re-start module;Format:AT+AT+AT+AT+ Z<CR>Z<CR>Z<CR>Z<CR>5.2.2.2.425.2.2.2.425.2.2.2.425.2.2.2.42 AT+MIDAT+MIDAT+MIDAT+MIDFunction: Query module ID information;
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 59 of 78 tec@usr.cnFormat:Query OperationAT+MID<CR>AT+MID<CR>AT+MID<CR>AT+MID<CR>+ok=<module_id><CR><+ok=<module_id><CR><+ok=<module_id><CR><+ok=<module_id><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:module_id: MID information;A11-yymmddnnnn “ yymmdd ” date; “ nnnn ” serial number;5.2.2.2.435.2.2.2.435.2.2.2.435.2.2.2.43 AT+VERAT+VERAT+VERAT+VERFunction: Query module software version information;Format:Query OperationAT+VER<CR>AT+VER<CR>AT+VER<CR>AT+VER<CR>+ok=<ver><CR><+ok=<ver><CR><+ok=<ver><CR><+ok=<ver><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:ver: Module software version information;5.2.2.2.445.2.2.2.445.2.2.2.445.2.2.2.44 AT+HAT+HAT+HAT+HFunction: Help;Format:Query OperationAT+H<CR>AT+H<CR>AT+H<CR>AT+H<CR>+ok=<comm+ok=<comm+ok=<comm+ok=<comm andandandand help><CR><help><CR><help><CR><help><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:comm an d help: command introduction;5.2.2.2.455.2.2.2.455.2.2.2.455.2.2.2.45 AT+AT+AT+AT+ HTTPURLHTTPURLHTTPURLHTTPURLFunction:Set /Query HTTP server IP address and Port Number.Format:Query Operation:AT+HTTPURL<CR>AT+HTTPURL<CR>AT+HTTPURL<CR>AT+HTTPURL<CR>+ok=<IP,Port><CR><+ok=<IP,Port><CR><+ok=<IP,Port><CR><+ok=<IP,Port><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set Operation:AT+HTTPURL=<IP,Port><CR>AT+HTTPURL=<IP,Port><CR>AT+HTTPURL=<IP,Port><CR>AT+HTTPURL=<IP,Port><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:IP:HTTP server IP address.Port : HTTP server Port number 。5.2.2.2.465.2.2.2.465.2.2.2.465.2.2.2.46 AT+AT+AT+AT+ HTTPTPHTTPTPHTTPTPHTTPTPFunction: Set /Query HTTP request type.Format:Query Operation:AT+HTTPTP<CR>AT+HTTPTP<CR>AT+HTTPTP<CR>AT+HTTPTP<CR>+ok=<Type><CR><+ok=<Type><CR><+ok=<Type><CR><+ok=<Type><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set Operation:AT+HTTPTP=<Type><CR>AT+HTTPTP=<Type><CR>AT+HTTPTP=<Type><CR>AT+HTTPTP=<Type><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 60 of 78 tec@usr.cnParameters:Type :GET(default) or POST.5.2.2.2.475.2.2.2.475.2.2.2.475.2.2.2.47 AT+AT+AT+AT+ HTTPPHHTTPPHHTTPPHHTTPPHFunction:Set/Query HTTP protocol header path.Format:Query Operation:AT+HTTPPH<CR>AT+HTTPPH<CR>AT+HTTPPH<CR>AT+HTTPPH<CR>+ok=<Path><CR><+ok=<Path><CR><+ok=<Path><CR><+ok=<Path><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set Operation:AT+HTTPPH=<Path><CR>AT+HTTPPH=<Path><CR>AT+HTTPPH=<Path><CR>AT+HTTPPH=<Path><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:Path: Max length is 50 bytes.5.2.2.2.485.2.2.2.485.2.2.2.485.2.2.2.48 AT+AT+AT+AT+ HTTPCNHTTPCNHTTPCNHTTPCNFunction:Set/Query Connection of HTTP protocol header.Format:Query Operation:AT+HTTPCN<CR>AT+HTTPCN<CR>AT+HTTPCN<CR>AT+HTTPCN<CR>+ok=<Connection><CR><+ok=<Connection><CR><+ok=<Connection><CR><+ok=<Connection><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set Operation:AT+HTTPCN=<Connection><CR>AT+HTTPCN=<Connection><CR>AT+HTTPCN=<Connection><CR>AT+HTTPCN=<Connection><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:Connection: Max length is 20 bytes.5.2.2.2.495.2.2.2.495.2.2.2.495.2.2.2.49 AT+AT+AT+AT+ HTTPUAHTTPUAHTTPUAHTTPUAFunction:Set/Query User-Agent of HTTP protocol header.Format:Query Operation:AT+HTTPUA<CR>AT+HTTPUA<CR>AT+HTTPUA<CR>AT+HTTPUA<CR>+ok=<Parameter><CR><+ok=<Parameter><CR><+ok=<Parameter><CR><+ok=<Parameter><CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Set Operation:AT+HTTPUA=<Parameter><CR>AT+HTTPUA=<Parameter><CR>AT+HTTPUA=<Parameter><CR>AT+HTTPUA=<Parameter><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:Parameter: Max length is 20 bytes.5.2.2.2.505.2.2.2.505.2.2.2.505.2.2.2.50 AT+EPHYAT+EPHYAT+EPHYAT+EPHYAAAAFunction: Open/Close ETH 1 interface;Format:Set OperationAT+AT+AT+AT+ EPHY=<on/off><CR>EPHY=<on/off><CR>EPHY=<on/off><CR>EPHY=<on/off><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:On/offOff: Close Ethernet port 1 function;
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 61 of 78 tec@usr.cnOn: Open Ethernet port 1 function;5.2.2.2.515.2.2.2.515.2.2.2.515.2.2.2.51 AT+EPHYAT+EPHYAT+EPHYAT+EPHYBBBBFunction: Open/Close ETH 2 interface;Format:Set OperationAT+AT+AT+AT+ EPHY=<on/off><CR>EPHY=<on/off><CR>EPHY=<on/off><CR>EPHY=<on/off><CR>+ok<CR><+ok<CR><+ok<CR><+ok<CR>< LFLFLFLF ><CR><><CR><><CR><><CR>< LFLFLFLF >>>>Parameters:On/offOff: Close Ethernet port 2 function;On: Open Ethernet port 2 function;6666 USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 UsageUsageUsageUsage IntroductionIntroductionIntroductionIntroduction6.16.16.16.1 MMMM oduleoduleoduleodule DDDD ebugebugebugebug6.1.1 Software Debug ToolsIn order to facilitate the use of my company, development of the serial and network debugging two-in-one test software, USR-TCP232-Test6.1.2 Network ConnectionIn order to test the serial port to the WIFI network address conversion, we will module serial connectedwith the computer, network and computer links to WIFI.Due to the need to have both a WIFI and serial special requirements, only a minority of the notebookcomputer can achieve, the user can use the desktop with a USB card, or use the notebook computerwith a USB to serial line way, the author uses the desktop and WIFI card form test, desktop with serial.( Note: there USB transfer RS232 the line quality uneven, some good and some bad, in order not towaste your valuable time, look for buying a used FT232 chip scheme suggested switching line, aboutthe price $ 10 )
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 62 of 78 tec@usr.cnDC5-18VPOWERWIFI or EthernetRS232Figure 45 ConnectionConnectionConnectionConnection diagramdiagramdiagramdiagramOn the serial connection, module pin leads to 3.3V TTL level, not directly connected with the computer,need to bring the bottom or users are TTL to RS232 connecting line connected to the computer, inorder to facilitate the user to test the use of, we provide a variety of floor for the user to choose, here inthe case of USR-WIFI232-2 .Hardware connectivity, for module power supply, the red power indicator light, wait about 6 seconds( internal system boot ), Ready lights, said system startup complete, can operate, entering the nextstep.6.1.3 DebugAs shown above, opened in PC program, set the COM export and open the serial port connection
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 63 of 78 tec@usr.cnFigure 46 ““““ CommToolsCommToolsCommToolsCommTools ”””” SerialSerialSerialSerial DebugDebugDebugDebug ToolsToolsToolsToolsOpen test software USR-TCP232-Test.exe, selection of hardware attached to the computer's serialnumber, this is COM 1 , choose 57600 baud rate, such as the WIFI module serial default baud rate,open the serial port.Network settings in TCP client mode, the server IP address input 10.10.100.254, this is WIFI moduledefault IP address, server port number 8899, this module default monitor TCP port number, click thelink to establish TCP connection ,Then click the create connection.Figure 47 ““““ TCPTCPTCPTCP UDPUDPUDPUDP DbgDbgDbgDbg ”””” ToolsToolsToolsTools CreateCreateCreateCreate ConnectionConnectionConnectionConnectionBecause of the USR-WIFI232-D2 module default support for transparent transmission mode, so nowyou can debug tools two-way data, all data will be wholly intact transmission to the other side ofdisplay. The testing process can be seen in module TXD and RXD indicator lights in the data throughthe flashing.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 64 of 78 tec@usr.cnFigure 48 TheTheTheThe testtesttesttest resultsresultsresultsresults showshowshowshow thatthatthatthat thethethethe networknetworknetworknetwork andandandand serialserialserialserial portportportportNoteNoteNoteNote : because of the RTS/CTS pin processing difference, currently available on the part of theserial debugging software for the module of the system is not available, please be sure to want touse USR-TCP232-Test we provide testing, or just RXD TXD GND connected the three line to thecomputer, please notice .6.26.26.26.2 UseUseUseUse CasesCasesCasesCases6.2.1 Wireless Control ApplicationUSR-WIFI232-D2User DeviceAP SSID:USR-WIFI232-AP_xxxxUARTFigure 49 WirelessWirelessWirelessWireless ControlControlControlControl ApplicationApplicationApplicationApplicationFor this wireless control application, USR-WIFI232-D2 works as AP mode. Module ’ s serial portconnects to user device. So, control agent (Smart phone for this example) can manage and control theuser device through the wireless connection with USR-WIFI232-D2 module.6.2.2 Remote Management Application
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 65 of 78 tec@usr.cnUSR-WIFI232-D 2STAUARTUSR-WIFI232-D 2STAUARTInternetUser DeviceUser DeviceFigure 50 RemoteRemoteRemoteRemote ManagementManagementManagementManagement ApplicationApplicationApplicationApplicationFor this remote management application, USR-WIFI232-D2 works as STA mode and connects toInternet through wirelessAP.Module configured as TCP Client and communicates with remote TCPserver at Internet. Module ’ s serial port connects to user device.So, user device ’ s data or sampling information can send to remote TCP server for storage orprocessing. Also remote TCP server can send command to control and manage the user devicethrough the wireless network.6.2.3 Transparent Serial Port ApplicationFor this transparent serial port application, two USR-WIFI232-D2 modules connect as below figures tobuild up a transparent serial port connection.USR-WIFI232-D 2User DeviceUARTUSR-WIFI232-D 2UARTAP SSID:USR-WIFI232-AP_xxxxLAN IP:10.10.100.254Net Prot:Tcp ServerProtocol Port:8899STA SSID:USR-WIFI232-AP_xxxxWAN IP:DHCPNet Prot:Tcp client10.10.100.254:8899LAN IP:10.10.99.2541 #2 #User DeviceFigure 51 TransparentTransparentTransparentTransparent SerialSerialSerialSerial PortPortPortPort ApplicationApplicationApplicationApplicationFor left side USR-WIFI232-D2 module, configured as AP mode and use default SSID and IP address,network protocol configured as TCP/Server mode, and protocol port ID: 8899.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 66 of 78 tec@usr.cnFor right side USR-WIFI232-D2 module, configured as STA mode and setting the same SSID (” USR-WIFI232-AP_xxxx ” for this example )with left side USR-WIFI232-D2 module, enable DHCP networkand network protocol configured as TCP/Client mode, protocol port ID: 8899. Target IP address partsetting the same IP address with left side USR-WIFI232-D2 module ( “ 10.10.100.254 ” for this example).When right side USR-WIFI232-D2 boot up, it will find wireless AP (SSID :USR-WIFI232-AP_xxxx forthis example) and open TCP/Client network protocol to connect with left side module ’ s TCP/Server. Allthese operation will be automatic and after finished, the two user devices connected to USR-WIFI232-D2 module through serial port can communicate each other and think the connection between them isfully transparent.Note:Note:Note:Note: LANLANLANLAN IPIPIPIP addressaddressaddressaddress andandandand WANWANWANWAN portportportport shouldshouldshouldshould inininin differentdifferentdifferentdifferent segment,segment,segment,segment, asasasas picturepicturepicturepicture shown,shown,shown,shown, wewewewe changechangechangechangetotototo 10.10.99.25410.10.99.25410.10.99.25410.10.99.254 (the(the(the(the addressaddressaddressaddress getgetgetget fromfromfromfrom leftleftleftleft modulemodulemodulemodule WANWANWANWAN portportportport DHCPDHCPDHCPDHCP isisisis 10.10.100.xxx)10.10.100.xxx)10.10.100.xxx)10.10.100.xxx)6.2.4 Wireless Data Acquisition Card ApplicationFor this wireless data acquisition card application, one PC works as data server and every dataacquisition card connects with a USR-WIFI232-D2 module to support wireless connection function.USR-WIFI232-D 2User DeviceUARTUARTUSR-WIFI232-D 2UARTIP:10.10.100.100Net Prot:tcp server,8899STA SSID:USR-WIFI232-AP_xxxxLAN IP:10.10.99.254WAN IP:10.10.100.101Net Prot:tcp client,10.10.100.100:8899STA SSID:USR-WIFI232-AP_xxxxLAN IP:10.10.98.254WAN IP:10.10.100.102Net Prot:tcp client,10.10.100.100:8899AP SSID:USR-WIFI232-AP_xxxxLAN IP:10.10.100.254Net Prot:tcp client,10.10.100.100:8899User DeviceUser DeviceFigure 52 WirelessWirelessWirelessWireless DataDataDataData AcquisitionAcquisitionAcquisitionAcquisition CardCardCardCard ApplicationApplicationApplicationApplication
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 67 of 78 tec@usr.cnAs above figure, one USR-WIFI232-D2 configured as AP mode and all others configured as STA mode.All USR-WIFI232-D2 which configured asSTAand data server PC wireless connected to USR-WIFI232-D2 which configured as AP to make up a wires network.Data server PC open TCP/Server protocol and all USR-WIFI232-D2 modules open TCP/Clientprotocol. All data acquisition cards’data and sampling information can be transmitted to data serverPC for operation.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 68 of 78 tec@usr.cnAppendixAppendixAppendixAppendix AAAA :::: QuestionsQuestionsQuestionsQuestions andandandand AnswersAnswersAnswersAnswersQ1:Q1:Q1:Q1: HowHowHowHow totototo configureconfigureconfigureconfigure transparenttransparenttransparenttransparent serialserialserialserial portportportport applicationapplicationapplicationapplication (TCP(TCP(TCP(TCPprotocol)protocol)protocol)protocol) withwithwithwith twotwotwotwo WIFIWIFIWIFIWIFI modules?modules?modules?modules?Network structure as below figure:Module 1# Setting:Works as AP mode;--See “ Mode Selection Page”LAN IP address: 10.10.100.254;--See “ AP Interface Setting Page”Network Protocal:TCP/Server, Port ID: 8899;-- See “ Application Setting Page”(Module default setting);Module 2# Setting:Works as STA mode; --See “ Mode Selection Page ”WAN connection type: DHCP or Static IP (For this example:10.10.100.100)--See “ STA Interface Setting Page”Network Protocal:TCP/Client, Port ID: 8899; Application IP address: Module 1#’s LANIP address (10.10.100.254);-- See “ Application Setting Page”Notes:Notes:Notes:Notes: When module 2# works asSTAmode, module ’ s WiFi interface works as WANport. Module ’ s WAN IP address and LAN IP address shall be setting different segment.So, module 2# ’ s LAN IP address must change to other segment; (For this sample, wechange to 10.10.99.254);--See “ AP Interface Setting Page”USR-WIFI232-D 2User DeviceUARTUSR-WIFI232-D 2UARTAP SSID:USR-WIFI232-AP_xxxxLAN IP:10.10.100.254Net Prot:Tcp ServerProtocol Port:8899STA SSID:USR-WIFI232-AP_xxxxWAN IP:DHCPNet Prot:Tcp client10.10.100.254:8899LAN IP:10.10.99.2541 #2 #User DeviceFigure 53 ConfigureConfigureConfigureConfigure TransparentTransparentTransparentTransparent SerialSerialSerialSerial PortPortPortPort ConnectionConnectionConnectionConnection (TCP)(TCP)(TCP)(TCP)
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 69 of 78 tec@usr.cnQ2:Q2:Q2:Q2: WhereWhereWhereWhere totototo SetSetSetSet WIFIWIFIWIFIWIFI ModuleModuleModuleModule LANLANLANLAN IPIPIPIP andandandand WANWANWANWAN IPIPIPIP throughthroughthroughthrough WebWebWebWebPagePagePagePage ?USR-WIFI232-D2 Wireless LAN IP address setting see “ AP Interface Setting Page ” as belowFigure,Figure 54 ModuleModuleModuleModule LANLANLANLAN IPIPIPIP SettingSettingSettingSettingUSR-WIFI232-D2 Wireless WAN IP address setting see “STAInterface Setting Page ” as belowFigure, User can set WAN connection type to DHCP and STATICIP.Figure 55 ModuleModuleModuleModule WANWANWANWAN IPIPIPIP SettingSettingSettingSettingQ3:Q3:Q3:Q3: HowHowHowHow totototo configureconfigureconfigureconfigure transparenttransparenttransparenttransparent serialserialserialserial portportportport applicationapplicationapplicationapplication (UDP(UDP(UDP(UDPprotocol)protocol)protocol)protocol) withwithwithwith twotwotwotwo WIFIWIFIWIFIWIFI modules?modules?modules?modules?Network structure as below figure:Module 1# Setting:Works as AP mode;--See “ Mode Selection Page”LAN IP address: 10.10.100.254;--See “ AP Interface Setting Page”Network Protocal:UDP, Port ID: 8899; Application IP address:10.10.100.100;-- See “ Application Setting Page”Module 2# Setting:Works as STA mode; --See “ Mode Selection Page ”WAN connection type: Static IP (10.10.100.100)--See “ STA Interface Setting Page”Network Protocal:UDP, Port ID: 8899; Application IP address: Module 1# ’ s LAN IPaddress (10.10.100.254);-- See “ Application Setting Page”LAN IP address: 10.10.99.254 (Different net segment with WAN port)
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 70 of 78 tec@usr.cn--See “ AP Interface Setting Page”USR-WIFI232- D 2User DeviceUARTUSR-WIFI232-D2UARTAP SSID:USR-WIFI232-AP_xxxxLAN IP:10.10.100.254Net Prot:UDP10.10.100.100:8899STA SSID:USR-WIFI232-AP_xxxxWAN IP:DHCPNet Prot:UDP10.10.100.254:8899LAN IP:10.10.99.2541 #2 #User DeviceFigure 56 ConfigureConfigureConfigureConfigure TransparentTransparentTransparentTransparent SerialSerialSerialSerial PortPortPortPort ConnectionConnectionConnectionConnection (UDP)(UDP)(UDP)(UDP)Q4:Q4:Q4:Q4: WhereWhereWhereWhere totototo setsetsetset USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 modulemodulemodulemodule networknetworknetworknetwork protocolprotocolprotocolprotocol (TCP/UDP)?(TCP/UDP)?(TCP/UDP)?(TCP/UDP)?USR-WIFI232-D2 network protocol setting see “ Application Setting Page ” as below Figure,Protocol: TCP ServerOnly Port ID required: 8899 (Default)Figure 57 ModuleModuleModuleModule NetworkNetworkNetworkNetwork Protocols:Protocols:Protocols:Protocols: TCP/ServerTCP/ServerTCP/ServerTCP/ServerProtocol: TCP ClientApplication IP address required: it ’ s target TCP server ‘ s IP address;Port ID required: 8899 (Default)Figure 58 ModuleModuleModuleModule NetworkNetworkNetworkNetwork Protocol:Protocol:Protocol:Protocol: TCP/ClientTCP/ClientTCP/ClientTCP/ClientProtocol: UDPNo Server/Client selection required;
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 71 of 78 tec@usr.cnApplication IP address required: it ’ s target device ‘ s IP address;Port ID required: 8899 (Default)Figure 59 ModuleModuleModuleModule NetworkNetworkNetworkNetwork Protocol:Protocol:Protocol:Protocol: UDPUDPUDPUDPQ5:Q5:Q5:Q5: HowHowHowHow totototo configureconfigureconfigureconfigure transparenttransparenttransparenttransparent serialserialserialserial portportportport application:application:application:application: TwoTwoTwoTwo WIFIWIFIWIFIWIFImodulesmodulesmodulesmodules allallallall configuredconfiguredconfiguredconfigured asasasasSTASTASTASTAandandandand connectionconnectionconnectionconnection throughthroughthroughthrough AP?AP?AP?AP?Network structure as below figure:Module 1# Setting: ( We use USR-WIFI232-D2 as AP for this example)Works as AP mode and all default setting;Module 2# Setting:Works as STA mode; --See “ Mode Selection Page ”WAN connection type: Static IP: 10.10.100.100;--See “ STA Interface Setting Page”Network Protocal:TCP/Server, Port ID: 8899;-- See “ Application Setting Page”LAN IP address: 10.10.99.254 (Different net segment with WAN port);--See “ AP Interface Setting Page”Module 3# Setting:Works as STA mode; --See “ Mode Selection Page ”WAN connection type: Static IP: 10.10.100.101;--See “ STA Interface Setting Page”Network Protocal:TCP/Client, Port ID: 8899; Application IP address: Module 2#’s WANIP address (10.10.100.100);-- See “ Application Setting Page”LAN IP address: 10.10.98.254 (Different net segment with WAN port);--See “ AP Interface Setting Page”
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 72 of 78 tec@usr.cnUSR-WIFI232-D2User DeviceUARTUSR-WIFI232-D 2UARTUSR-WIFI232- D 2UARTSTA SSID:USR-WIFI232- ALAN IP:10.10.99.254WAN IP:10.10.100.100Net Prot:Tcp ServerProtocol Port:8899STA SSID:USR-WIFI232- AWAN IP:10.10.100.101Net Prot:Tcp client10.10.100.100:8899LAN IP:10.10.98.254AP SSID:USR-WIFI232- ALAN IP:10.10.100.254Net Prot:Tcp ServerProtocol Port:8899User DeviceUser DeviceFigure 60 TwoTwoTwoTwo USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 ModulesModulesModulesModules ConnectionConnectionConnectionConnection ThroughThroughThroughThrough APAPAPAPQ6:Q6:Q6:Q6: HowHowHowHow totototo avoidavoidavoidavoid IPIPIPIP addressaddressaddressaddress conflictionconflictionconflictionconfliction whenwhenwhenwhen applyapplyapplyapply USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2module?module?module?module?The following address allocation method can avoid the IP address confliction for dynamic andstatic IP address mixed application.M odule dynamicIPaddress range from 100 to 200 for lastIPaddress segment.Such as default IP: 10.10.100.254. When module works asAP,the IP address modulecan allocate to STA is from 10.10.100.100 to 10.10.100.200;So, if user needs to set static IP for dedicatedSTAinternal network, the available IPaddress range can start from 10.10.100.1 to 10.10.100.99.Q7:Q7:Q7:Q7: PCPCPCPC worksworksworksworks asasasas server,server,server,server, allallallall WIFIWIFIWIFIWIFI modulesmodulesmodulesmodules worksworksworksworks asasasas datadatadatadata acquisitionacquisitionacquisitionacquisitioncardcardcardcard andandandand connectconnectconnectconnect withwithwithwith PC,PC,PC,PC, howhowhowhow totototo configureconfigureconfigureconfigure thisthisthisthis application?application?application?application?Network structure as below figure: Three USR-WIFI232-D2 module setup 3 TCP links with PCserver. Module 1# works as AP and all devices connect to module 1# through WiFi interface;PC Setting:IP address: 10.10.100.100;Network Protocal:TCP/Server, Port ID: 8899;Module 1# Setting:Works as AP mode;
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 73 of 78 tec@usr.cnLAN IP address: 10.10.100.254;Network Protocal:TCP/Client, Port ID: 8899; Application IP address:10.10.100.100;Module 2# Setting:Works as STA mode;WAN connection type: Static IP: 10.10.100.101;Network Protocal:TCP/Client, Port ID: 8899; Application IP address:10.10.100.100;LAN IP address: 10.10.99.254 (Different net segment with WAN port);Module 3# Setting:Works as STA mode;WAN connection type: Static IP: 10.10.100.102;Network Protocal:TCP/Client, Port ID: 8899; Application IP address:10.10.100.100;LAN IP address: 10.10.98.254 (Different net segment with WAN port);USR-WIFI232-D 2UARTUSR-WIFI232-D 2UARTUARTIP:10.10.100.100Net Prot:tcp server,8899STA SSID:USR-WIFI232-AP_xxxxLAN IP:10.10.99.254WAN IP:10.10.100.101Net Prot:tcp client,10.10.100.100:8899STA SSID:USR-WIFI232-AP_xxxxLAN IP:10.10.98.254WAN IP:10.10.100.102Net Prot:tcp client,10.10.100.100:8899AP SSID:USR-WIFI232-AP_xxxxLAN IP:10.10.100.254Net Prot:tcp client,10.10.100.100:8899User DeviceUser DeviceUser DeviceUSR-WIFI232-D 2Figure 61 WirelessWirelessWirelessWireless DataDataDataData AcquisitionAcquisitionAcquisitionAcquisition CardCardCardCard SettingSettingSettingSettingQ8:Q8:Q8:Q8: WIFIWIFIWIFIWIFI modulemodulemodulemodule supportsupportsupportsupport UDPUDPUDPUDP multicast?multicast?multicast?multicast?At present, all the WIFI module does not support UDP multicast function,IP multicast addressrange is " 224.0.0.0 ~ 239.255.255.255 ” , When setting module, please don't set this IP section, ifset, may cause the module can't normal start.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 74 of 78 tec@usr.cnQ9:WIFIQ9:WIFIQ9:WIFIQ9:WIFI modulemodulemodulemodule operatesoperatesoperatesoperates ininininSTASTASTASTAmode,mode,mode,mode, thethethethe PCPCPCPC howhowhowhow totototo getgetgetget thethethethe IPIPIPIPmodule?module?module?module?All wifi module supports UDP search ,they will return to their respectiveIP,MAC, MID, detailedsearch process is as follows:1. PC via UDP broadcast (broadcast address: xx.xx.xx.255, Port: 48899) sent a password, thedefault password is: "HF-A11ASSISTHREAD", the password can be usedATcommands (AT+ FASWD) set up,it's Up to 100 bytes.2. After the module receives a password, if the password is correct, to the address (Unicast,Port: 48899) sends local IP address and MAC address and name of the module.(IP,MAC,MID as 10.10.100.254,888 B5D0000E2, guxin).S o you can get to theIPaddress of the module.
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 75 of 78 tec@usr.cnAppendixAppendixAppendixAppendix b:b:b:b: evbevbevbevb referencereferencereferencereference designdesigndesigndesign
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 76 of 78 tec@usr.cnAppendixAppendixAppendixAppendix cccc :::: externalexternalexternalexternal powerpowerpowerpower shutdownshutdownshutdownshutdown modemodemodemodereferencereferencereferencereference designdesigndesigndesignAppendixAppendixAppendixAppendix c:c:c:c: TheTheTheThe FCCFCCFCCFCC statementstatementstatementstatementFCCFCCFCCFCC STATEMENTSTATEMENTSTATEMENTSTATEMENT1. This device complies with Part 15 of the FCC Rules. Operation is subject to the following twoconditions:(1) This device may not cause harmful interference.(2) This device must accept any interference received, including interference that may causeundesired operation.2. Changes or modifications not expressly approved by the party responsible for compliancecouldvoid the user's authority to operate the equipment.NOTE: This equipment has been tested and found to comply with the limits for a Class B digitaldevice, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonableprotection against harmful interference in a residential installation.This equipment generates uses and can radiate radio frequency energy and, if not installed andused in accordance with the instructions, may cause harmful interference to radiocommunications.However, there is no guarantee that interference will not occur in a particular installation. If this
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 77 of 78 tec@usr.cnequipment does cause harmful interference to radio or wifi , which can bedetermined by turning the equipment off and on, the user is encouraged to try to correct theinterference by one or more of the following measures:Reorient or relocate the receiving antenna.Increase the separation between the equipment and receiver.Connect the equipment into an outlet on a circui t different from that to which the receiver isconnected.Consult the dealer for help.FCCFCCFCCFCC RadiationRadiationRadiationRadiation ExposureExposureExposureExposure StatementStatementStatementStatementThis equipment complies with FCC radiation exposure limits set forth for an uncontrolledenvironment. This equipment should be installed and operated with minimum distance 20cmbetween the radiator & your body .
USR-WIFI232- D2 User Manual www.usr iot .comJinan USR IOT Technology Limited Page 78 of 78 tec@usr.cnAppendixAppendixAppendixAppendix e:e:e:e: ContactContactContactContact InformationInformationInformationInformation------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ContactContactContactContact us:us:us:us:Company: Jinan USR IOT Technology LimitedAddress: 1-728, Huizhan Guoji Cheng, Gaoxin Qu, Jinan, Shandong, ChinaTel:86-531-55507297, 86-531-88826739Web: www.usr iot . comEmail: sales@usr.cn, order@usr.cn--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------AppendixAppendixAppendixAppendix ffff :::: DisclaimerDisclaimerDisclaimerDisclaimerThisThisThisThis documentdocumentdocumentdocument providesprovidesprovidesprovides informationinformationinformationinformation aboutaboutaboutabout USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2USR-WIFI232-D2 modules,modules,modules,modules, thisthisthisthis documentdocumentdocumentdocument doesdoesdoesdoesnotnotnotnot grantgrantgrantgrant anyanyanyany licenselicenselicenselicense totototo intellectualintellectualintellectualintellectual propertypropertypropertyproperty rights.rights.rights.rights. ExceptExceptExceptExcept thethethethe responsibilityresponsibilityresponsibilityresponsibility declareddeclareddeclareddeclared ininininthethethethe productproductproductproduct salesalesalesale clause,clause,clause,clause, USRUSRUSRUSR doesdoesdoesdoes notnotnotnot assumeassumeassumeassume anyanyanyany otherotherotherother responsibilities.responsibilities.responsibilities.responsibilities. InInInIn addition,addition,addition,addition, USRUSRUSRUSRdoesdoesdoesdoes notnotnotnot makemakemakemake anyanyanyany warrantieswarrantieswarrantieswarranties forforforfor thethethethe salesalesalesale andandandand useuseuseuse ofofofof thisthisthisthis product,product,product,product, includingincludingincludingincluding thethethethe suitabilitysuitabilitysuitabilitysuitabilityofofofof thethethethe productproductproductproduct forforforfor aaaa particularparticularparticularparticular purpose,purpose,purpose,purpose, merchantabilitymerchantabilitymerchantabilitymerchantability orororor fitnessfitnessfitnessfitness forforforfor anyanyanyany patent,patent,patent,patent, copyrightcopyrightcopyrightcopyrightorororor otherotherotherother intellectualintellectualintellectualintellectual propertypropertypropertyproperty infringement,infringement,infringement,infringement, etc.etc.etc.etc. USRUSRUSRUSR maymaymaymay makemakemakemake changeschangeschangeschanges totototo specificationsspecificationsspecificationsspecificationsandandandand productproductproductproduct descriptionsdescriptionsdescriptionsdescriptions withoutwithoutwithoutwithout notice.notice.notice.notice.AppendixAppendixAppendixAppendix gggg :::: HistoryHistoryHistoryHistoryEd.V 1.0.0 Created on 7 -11-201 4 .ENDENDENDEND OFOFOFOF DOCUMENTDOCUMENTDOCUMENTDOCUMENT

Navigation menu