Shenzhen HI-Link Electronic Co.
Content 1. Product Profile ............................................................................................................................................................1 1.1 Overview ....................................................................................................................................................... 1 1.2 Product Characteristics ..................................................................................................................................
4.1 Introduction of Serial Port Upgrade Method .............................................................................................. 17 4.1.1 Open Serial Port Upgrade Software ....................................................................................................17 4.1.2 Start to Upgrade ............................................................................................................................... 18 4.2 Introduction of Network Upgrade Methods .........................
1. Product Profile 1.1 Overview HLK-B32 is a new low-cost embedded UART-WIFI module (serial-Wireless network) developed by Shenzhen Hi-Link co., Ltd. This product is an embedded module based on the serial interface in line with the network standard , built-in TCP/IP protocol stack, can realize the user serial port-wireless network (WIFI) conversion.
1.4 Technical Specifications Table 1 Module Model Package Wireless standard Frequency range Product Technical specifications HLK-B32 Plug-in 2.4G 802.11 b/g/n; 5G 802.11 a 2.4G wifi: 2412MHz-2462MHz; 5G Wi-Fi: 5150-5250MHz; 5250-5350MHz; 5470-5725MHz; 5725-5850MHz 802.11b: 15.85dBm (@1Mbps) Transmitting power 802.11g: 16.85dBm (@6Mbps) 802.11n20: 13.69dBm; 802.11n40: 12.16dBm 802.11a: Wireless 5150-5250MHz: 11.78dBm;5250-5350MHz: 14.28dBm; 5470-5725MHz: 15.35dBm;5725-5850MHz: 11.74dBm; 802.
1.5 Pins Introduction Table 2 Module pin interface Pin Network Name Type Description 1 NC NC 2 NC NC 3 NC NC 4 NC NC 5 NC NC 6 NC NC 7 NC NC 8 GND 9 NC 10 3V3 11 NC NC 12 NC NC 13 NC NC 14 NC NC 15 NC NC 16 GPIO0 17 NC NC 18 NC NC 19 NC NC 20 NC NC 21 NC NC 22 NC NC 23 NC NC 24 NC NC 25 NC NC 26 NC NC 27 NC NC 28 NC NC 29 NC NC 30 NC NC 31 NC NC Ground GND NC P I/O External power supply pin: 3.
32 NC NC 33 NC NC 34 NC NC 35 GPIO59 SOCKET connection status indication 36 GPIO58 WIFI connection status indication 37 NC NC 38 UART_RXD0 Serial port 0 input for transparent transmission and at command setting 39 UART_TXD0 Serial port 0 output, used for transparent transmission and at command setting, need to be pulled low or left hanging 40 UART_RXD1 Serial port 1 input 41 NC NC 42 SYS_RST_N 43 NC NC 44 UART_TXD1 Serial port 1 output 45 NC NC 46 VDD_5V 47 NC NC
mode and the target ap hotspot is not connected. (3) The wifi indicator flashes fourthly periodically: indicates that the module is in 2.4g ap mode, but it does not indicate whether there is a sta client device connected. (4) The wifi indicator flashes periodically: indicates that the module is in the 5.8g ap mode, but it does not indicate whether there is a sta client device connected.
Figure 2. One-click distribution network 2.5 Web Distribution Function When the module is in ap mode, input 192.168.16.254 in the browser, and then input the account and password admin, later enter the web page setting interface. (Default factory firmware is not supported) Figure 3.
module's web page setup function. 2.6 Serial to WIFI STA Figure 4. Module as STA The module converts the serial port data into wifi data to achieve the purpose of networking.
2.7 Serial Port Working State Conversion After the HLK-B32 is powered on, the default mode is transmission mode. By pulling down the pin ES0 (GPIO0) to enter at instruction mode longer than 50ms, the module will process the received data as at instructions, send at instructions to let the module into transparent mode, After the network connection, the data received by the serial port will be transmitted as transparent data. Send at command Power on Transparent mode AT mode Pull down es0 pin Figure 6.
2.8.2 Module as TCP Client TCP Server TCP Client Figure 10. TCP Client In this mode, the module will actively connect to the specified IP, port, all the data sent from the TCP Server end is sent directly to the serial port, and the data from the serial port to the TCP Server side. Abnormal network disconnection can result in active re-connection of the module. 2.8.3 Module as UDP Server UDP Client UDP Server Figure 11.
2.8.4 Module as UDP Client UDP Server UDP Client Figure 12. UDP Client In this mode, the module sends the serial port data directly to the specified ip, port, and the data returned from the server will be sent to the serial port. 2.9 Application Areas Smart home; Instruments and instruments; Wi-Fi remote monitoring / control; Toy field; Color LED control; Fire protection, security intelligent integrated management; Smart card terminals, wireless POS machines, handheld devices and so on.
Figure 13. ES/RST Exits transparent transmission mode Instruction format: in AT instruction mode, the system can be configured through the AT instructions of the serial port. The command format is as follows: at+[command]=[value],[value],[value]...... All commands begin with "at" and "\ r" end. If the command is not encapsulated in this format, it will not be processed and will return a different return value depending on the command module. For example:“at+ver=?” Module will return: HLK-B32 (V1.
3.3 Set up Serial Port: at+uart Command Type Grammar Return and description EO at+uart=115200,8,n,1 at+uart=115200,8,n,1 Ok Description: Set up serial Port parameters at+uart=? Query Command at+uart=? 115200,8,n,1 Description:query serial port parameters 3.4 Set up DHCP: at+dhcpc Command Type Grammar Return and description EO at+dhcpc=1 at+dhcpc=1 ok at+dhcpc=? Query Command 1 at+dhcpc=? Description: 1: dhcp mode, 0: static ip 3.
3.7 Set up Remote IP When Modules Work as Client: at+remoteip Command Type EO Query Command Grammar Return and description at+remoteip=192.168.11.102 at+remoteip=192.168.11.102 ok Description: set the remote ip of the mode at+remoteip=? at+remoteip=? 192.168.11.102 Description: query remote ip 3.
3.11 Set the Module's ssid and Password: at+wifi_conf Command Type EO Grammar Return and description at+wifi_conf=HI-LINK_5FE8,n at+wifi_conf=HI-LINK_5FE8,none,12345678 ok Description: set the ssid and password of the module one,12345678 at+wifi_conf=? Query Command at+wifi_conf=? HI-LINK_5FE8,none,12345678 Description: Query the ssid and password of the module 3.
3.15 Query Module MAC Address: at+Get_MAC Command Type Query Command Grammar at+Get_MAC=? 40:D6:3C:15:5F:E8 Return and description at+Get_MAC=? 40:D6:3C:15:5F:E8 Description: query module mac address 3.
4. Upgrade Introduction The upgrade of HLK-B32 module can be carried out through serial port or network, and the appropriate upgrade method can be selected according to the field environment. 4.1 Introduction of Serial Port Upgrade Method In the upgrade folder there is a img file, upgrade software mainly read the files inside to upgrade; There are three files in the img folder, where HLK-B32.img and HLK-B32 (b.1.00.1 20180611182552).
4.2 Introduction of Network Upgrade Methods In order to realize the network upgrade of the module, it is necessary to connect the line module through wifi, and then to upgrade the data transmission according to the ip of the module. 4.2.1 Router Connection Modules that need to be upgraded can be configured and connected to routers through serial port configuration tools, or ap mode can be used. 4.2.
5.2.1 STA Mode 5V power supply, the module is configured in STA mode to test the current. Average value:77mA, maximum value:169mA The detailed current waveform is shown below.
5.2.2 Smart C Mode 5V power supply, no mode is configured for the module, and the tested current is in the default STA state to be distributed. Average value:68mA, maximum value:167mA The detailed current waveform is shown below 6. Appendix A Document Revision Version No. Revised scope Date V1.21 Power supply changed from 3.3v to 5v V1.22 Add upgrade function description V1.
FCC Caution: Any C hanges or m odifications not e xpressly a pproved b y t he pa rty r esponsible f or c ompliance could void the user's authority to operate the equipment. This de vice c omplies w ith part 15 of t he FCC R ules. Operation i s s ubject t o t he f ollowing t wo conditions: (1) T his de vice may not c ause ha rmful interference, a nd (2) this de vice must a ccept any interference received, including interference that may cause undesired operation.
Label and compliance information When the module is installed in the host device, the FCC ID label must be visible through a window on the final device or it must be visible when an access panel, door or cover is easily re‐moved. If not, a second label must be placed on the outside of the final device that contains the following text: Contains Transmitter Module FCC ID: 2AD56HLK-B32, the FCC ID can be used only when all FCC ID compliance requirements are met.
shall be placed in the receive mode or idle mode, if possible. If receive mode only is not possible then, the radio shall be passive (preferred) and/or active scanning. In these cases, this would need to enable activity on the communication BUS (i.e., PCIe, SDIO, USB) to ensure the unintentional radiator circuitry is enabled. Testing laboratories may need to add attenuation or filters depending on the signal strength of any active beacons (if applicable) from the enabled radio(s). See ANSI C63.4, ANSI C63.