Page 3
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 ....................18 4.2.1 Router Connection ..........................18 4.2.2 Lookup Module IP ........................... 18 5. Electrical Specification .............................21 5.1 Electric Parameter ............................
, built-in TCP/IP protocol stack, can realize the user serial port-wireless network (WIFI) conversion. Through the HLK-B32 module, the traditional serial device can transmit its own data through the Internet network without changing any configuration, which provides a complete and fast solution for the user's serial port device to transmit the data through the network.
GPIO59 SOCKET connection status indication GPIO58 WIFI connection status indication Serial port 0 input for transparent transmission and at command UART_RXD0 setting Serial port 0 output, used for transparent transmission and at UART_TXD0 command setting, need to be pulled low or left hanging UART_RXD1 Serial port 1 input SYS_RST_N...
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.
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.
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 ...
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.00 (Nov 30 2017) Query instruction format: at+[command]=? 3.1 Query Current Module Version: at+ver...
3.3 Set up Serial Port: at+uart Command Type Grammar Return and description at+uart=115200,8,n,1 at+uart=115200,8,n,1 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 at+dhcpc=1 at+dhcpc=1 at+dhcpc=?
3.7 Set up Remote IP When Modules Work as Client: at+remoteip Command Type Grammar Return and description at+remoteip=192.168.11.102 at+remoteip=192.168.11.102 Description: set the remote ip of the mode at+remoteip=? Query Command at+remoteip=? 192.168.11.102 Description: query remote ip 3.8 Set up Remote Port When Module Act as Client: at+remoteport Command Type Grammar Return and description...
3.11 Set the Module's ssid and Password: at+wifi_conf Command Type Grammar Return and description at+wifi_conf=HI-LINK_5FE8,none,12345678 at+wifi_conf=HI-LINK_5FE8,n one,12345678 Description: set the ssid and password of the module at+wifi_conf=? Query Command at+wifi_conf=? HI-LINK_5FE8,none,12345678 Description: Query the ssid and password of the module 3.12 Set up Socket Connection Protocol: at+remotepro Command Type Grammar...
3.15 Query Module MAC Address: at+Get_MAC Command Type Grammar Return and description at+Get_MAC=? at+Get_MAC=? Query Command 40:D6:3C:15:5F:E8 40:D6:3C:15:5F:E8 Description: query module mac address 3.16 Set the Frame Length: at + uartpacklen Command Type Grammar Return and description at+uartpacklen=64 at+uartpacklen=64 Description:Set the frame length of the module to 64 bytes at+uartpacklen=? Query Command at+uartpacklen=?
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;...
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.
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.
Page 23
The input voltage to the module should be nominally 5 VDC, typical value 5VDC and the ambient temperature of the module should not exceed 80℃. Limited module procedures N/A Trace antenna designs N/A Antennas The module of HLK-B32 has one antenna port and the antenna gain as below: 2.4G Wi-Fi: 3.76dBi; 5G Wi-Fi: 4.69dBi.
Page 24
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.
Page 25
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.
Need help?
Do you have a question about the HLK-B32 and is the answer not in the manual?
Questions and answers