Shenzhen Hi-Link Electronic Co., Ltd. HLK-B36 User Manual Version:V1.00 Revised date:08/12/2021 Reserved © Shenzhen Hi-Link Electronic Co.
CONTENTS 1. Product Introduction...................................................................................................................1 1.1. Brief introduction............................................................................................................ 1 1.2. Product feature................................................................................................................ 1 1.3. Technical specifications.................................................................
.2. Local port operation:at+CLport.................................................................................. 15 3.3. Set up the serial port:at+uart......................................................................................... 15 3.4. Set DHCP:at+dhcpc...................................................................................................... 15 3.5. Set wifi connection mode:at+netmode................................................................... 16 3.6.
8.2.2. WIFI+BLE Bluetooth.........................................................................................29 8.2.3. STA mode........................................................................................................... 30 8.2.4. Default mode...................................................................................................... 30 9. Appendix A Document revision history...................................................................................
1.1. Product Introduction HLK-B36 is a low-cost embedded UART-WIFI (serial port-wireless network) module launched by Hi-link Electronics. This product is based on an embedded module conforming to the network standard through a serial interface, with a built-in TCP/IP protocol stack, which can realize the conversion between the user's serial port and the wireless network (WIFI/BLE).
1.3. Technical Specifications Table 1 Module Product Techinical Specification Model HLK-B36 Package In-line Wireless standard IEEE 802.11 b/g/n Frequency Range Wifi:2.412GHz-2.462GHz BT:2.402GHz-2.408GHz bluetooth standard:BLE 4.2 802.11b: 16.66(@11Mbps) Average power Wifi parameters 802.11n: 13.85dBm (@HT20), 10.87dBm (HT40- MCS7) Receiving sensitivity Antenna form Hardware interface Operating Voltage GPIO drive capability 802.11b: -88.4 dBm (@11Mbps ,CCK) 802.11g: -75.
Serial port transparent transmission Transmission rate 110-921600bps 1个 TCP Client Wireless network STA/AP type Security Software parameters WEP/WPA-PSK/WPA2-PSK Mechanism Encryption type WEP64/WEP128/TKIP/AES Firmware upgrade Firmware upgrade Network protocol IPv4, TCP/UDP User configuration AT+ command set, one-key intelligent configuration of network distribution 1.4.
6 P21_TMS_F_CS I/O P21 7 P20_TCK_F_SC I/O P20 8 VBAT P 3.
1.5. Product packaging Figure 1 HLK-B36 package size 1.6. Block diagram 26MHz 3.3V UART PWM GPIO HLK-B36 1 IPEX Connector FLASH(2MB) SPI Figure 2.
1.7. Testboard description Figure 3 Test board description diagram 1.8. Power requirements Power requirements Power input voltage DC:3.3±0.3V No-load running current 130±50mA Supply current requirements ≥800mA 1.9. WIFI transmission power consumption WIFI transmission power consumption Transmission power Mode Speed 11b 11Mbps 17.
1.10. WIFI receiving power consumption Mode Speed Current(ma) 11b 11Mbps 100 11g 54Mbps 100 11n MCS7 100.5 1.11. Power consumption in each working mode of WIFI State Average current Description (3v3) wifi Turn off the radio, the initialization MCU is at full speed Keep wifi connection Keep connected to the router Maximum current(3v3) Unit 45.2 46.3 ma 101 342 ma 93 363 ma 100.5 193.7 ma 100.8 129.
54m RF average output power,802.11n OFDM Mode MCS7 Frequency error - 13 - dBm -10 - 10 ppm Maximum Unit 1.13. Receiving sensitivity in each mode of WIFI Paremeters RF average output power,802.11b cck Mode 11m RF average output power,802.11g OFDM Mode 54m RF average output power,802.11n OFDM Mode MCS7 Minimum Typical value - -91 - dBm - -74 - dBm - -70 - dBm 2. Function description HLK-B36 supports serial port to WIFI STA, serial port to WIFI AP and serial port to BLE mode. 2.1.
4). The wifi indicator flashes quickly: it means that the module is in a STA mode and connected to the wifi hotspot. When there is data transmission, the module LED will flash quickly 2.2. One-key configuration mode For the IOT wifi module, based on cost and performance considerations, there is no touch screen interactive interface like a mobile phone. The user can see the ap list on the mobile phone and click to enter the password to connect to the network.
When the module is in one-key network configuration status, the module needs to be set to one-key network configuration mode. You can use the serial port configuration tool to set the module to one-key network configuration mode. Figure 5 setting as one key configuration 2.3.
The module converts the serial port data of the device into wifi data to achieve the purpose of networking the device. 2.4. Serial port to WIFI AP Figure 7 Module as ap In AP mode, mobile phones, PCs or other wifi devices can be connected to the B36 module through wifi, and serial devices can transmit data through the B36 module and other wifi devices 2.5. Serial port working status conversion After the HLK-B36 is powered on, the default is the transparent transmission mode.
2.6. Serial-to-network data conversion 2.6.1. Module as TCP Server TCP Client TCP Client TCP Server TCP Client Figure 9 TCP Server In this mode, the module monitors the specified port and waits for the TCP Client to connect. After connection, all TCP data is sent directly to the serial port, and the data from the serial port is sent to all TCP Clients. When the module is used as a TCP Server, it supports up to 5 A TCP Client connects to the TCP Server 2.6.2.
the TCP Server. Abnormal network disconnection will cause the module to reconnect actively. 2.6.3. Module as UDP Server UDP Client UDP Server Figure 11 UDP Server In this mode, the module opens the local designated port. Once the data sent to this port is received, the module will send the data to the serial port and record the remote ip and port.
returned from the server will be sent to the serial port. 2.7. Application field Smart home; Instrumentation; Wi-Fi remote monitoring/control; Toy field; Color LED control; Intelligent integrated management of fire protection and security; Smart card terminals, wireless POS machines, handheld devices, etc.。 3. ATAT command instructions Command format: In the AT command mode, the system can be configured through the AT command of the serial port.
3.2. Local port operation:at+CLport Command Grammar Return and description type at+CLport=8080 Ok Note: When the module is set to tcpclient, the local port of at+CLport=8080 Set the module is set to port 8080. When the module is set to tcpserver, it is invalid. Range: (1-65535) instruction at+CLport=? at+CLport=? 8080 Note:Query local port 3.3.
Query instruction at+dhcpc=? at+dhcpc=? 1 Note:1:dhcp mode,0:static ip 3.5. Set wifi connection mode:at+netmode Command Grammar Return and description type at+netmode=3 Set instruction Query instruction Ok at+netmode=3 Note:Set the module to ap mode at+netmode=? at+netmode=? 3 Note:1:smartconfig 2:sta mode,3:2.4G ap mode 3.6.
Query instruction at+remoteip=? at+remoteip=? 192.168.11.102 Note:Query remote ip 3.8. Set the remote port when the module is used as client :at+remoteport Command Grammar Return and description type at+remoteport=1234 ok Set instruction Note:1. When the module is set to tcpserver, this port is the at+remoteport=1234 listening port of the module 2.
at+reconn=1 ok Note:System restart 3.11. Set the ssid and password of the module:at+wifi_conf Command Grammar Return and description type at+wifi_conf=HLK-B36_1234,none,12345678 Set at+wifi_conf=HI-LINK_5FE8 instruction ,none,12345678 Query instruction ok Note:Set the ssid and password of the module, none:No definition, format required at+wifi_conf=? at+wifi_conf=? HLK-B36_1234,none,12345678 Note:Query the ssid and password of the module 3.12.
Note:Query the IP of module,gateway,dns 3.14. Query STA mode network connection status:at+wifi_ConState Command Grammar Return and description type at+wifi_ConState=? Query instruction at+wifi_ConState=? Disconnected Note:In sta mode, the module wifi is not connected, Connected means the network is connected. 3.15.
3.17. Set framing time:at+uartpacktimeout Command Grammar Return and description type at+ uartpacktimeout=200 ok Set instruction Note:Set the framing time of module to 200ms: range: at+uartpacktimeout=200 5-5000 If it exceeds the range during setting, it will automatically change to the maximum or minimum value Query instruction at+uartpacktimeout=? at+uartpacktimeout=? 200 Note:Query the framing time of module is 200ms 3.18.
at+dhcpc=?\r\n\ //Query dhcp at+net_ip=?\r\n\ //Query the ip of module at+remoteip=?\r\n\ //Query remote ip at+remoteport=?\r\n\ //Query port at+remotepro=?\r\n\ //Query socket connection protocol at+mode=?\r\n\ at+uart=?\r\n\ //Query tcp connection mode //Query serial port parameters at+uartpacklen=?\r\n\ //Query the framing length of serial port at+uartpacktimeout=?\r\n\ at+ver=?\r\n\ //Query serial port framing time //Query the firmware version number "; Com_send(query); //Send these da
4.2. Serial port to wifi client(static ip address) code: char *commands_wifi_client_static="\\ at+netmode=2\r\n\ //Set to wireless network card sta mode at+wifi_conf=HI-LINK,none,12345678\r\n\ at+dhcpc=0\r\n\ //Set wifi, encryption method and password //Use static ip at+net_ip=192.168.11.254,255.255.255.0,192.168.11.1\r\n\ //Set the ip of module at+remoteip=192.168.11.245\r\n\ //Set the IP address for remote connection at+remoteport=8080\r\n\ //Set the remote port to be connected at+remotepro=tcp
at+uartpacklen=64 ok at+uartpacktimeout=10 ok at+net_commit=1 4.3. Serial port to wifi server(Dynamic ip address) Code: char *commands_wifi_ap="\ at+netmode=2\r\n\ //Set to wireless network card mode at+wifi_conf=Hi-Link_,none,0000000000\r\n\ //Set hotspot name and password of wifi connection at+dhcpc=1\r\n\ //Use dynamic IP at+remoteport=8080\r\n\ //Set local listening port at+remotepro=tcp\r\n\ //Set the socket connection method at+mode=server\r\n\ //Socket connects as server at+uart=115200,
at+remoteport=8080 ok at+remotepro=tcp at+mode=server at+uart=115200,8,n,1 ok at+uartpacklen=64 ok at+uartpacktimeout=10 ok at+net_commit=1 4.4. Reset Code: char *commands_device_default="\\ at+default=1\r\n\ //reset Com_send(commands_device_default); feedback: at+default=1 1s later,Then the module will restart and restore the factory default configuration parameters For more functions,please use the configuration uart and software to set up.
4.5.
5. Restore factory settings method Press and hold the ES0 button on the bottom panel for more than 6 seconds to restore the factory settings. 6. Bluetooth data transparent transmission Bluetooth data transparent transmission means that after the Bluetooth connection successfully, the module will send the data received from the Bluetooth from the serial port, and the data received by the module's serial port will be sent from the Bluetooth. The Bluetooth function of module only supports Bluetooth 4.2.
Pic 15 Bluetooth transmission test 7. Bluetooth distribution network The Bluetooth configuration network is to connect to Bluetooth, send the wifi name and password to module, and then the module connects to router according to the received wifi name and password. In sta and ap modes, Bluetooth is turned on, and the module can be connected through the Bluetooth of mobile phone.
Pic 16 Bluetooth distribution network interface First enter the wifi name and password, and then click the "Start Configuration" button, the phone will send the hotspot name and password to module via Bluetooth, and the module will save it after receiving it, and then restart it, and proceed according to hotspot name and password sent by the phone wifi connection 8. Electrical characteristics 8.1.Electrical parameters Electrical parameters(for reference only) Power input voltage DC:3.3±0.
Supply current requirement ≥800mA 8.2. Current waveform Module test environment: single module without backplane test, single 2.4G, 3DB antenna. 8.2.1. AP mode Use 3.3V power supply, configure the module to test current in AP mode, average value:110mA,maximum value: 313mA. The detailed current waveform is shown below. Pic 17 apMode transmission current test 8.2.2. WIFI+BLE Bluetooth Use 3.
Pic 18. BLE+WiFi transparent transmission current test 8.2.3. STA mode Use 3.3V power supply, configure the module in STA mode to connect to a 2.4g router, the current obtained from the WiFi transparent transmission test, the average value: 110mA, the maximum value: 231mA. The detailed current waveform is shown below. Pic 19. sta mode transmission current test 8.2.4. Default mode Use 3.
Pic 20. Default mode current test 9.Appendix A Document revision history Version Revision scope Date V1.00 First edition 2020-12-8 FCC Statements (OEM) Integrator has to assure compliance of the entire end-product incl. the integrated RF Module. For 15 B (§15.107 and if applicable §15.109) compliance, the host manufacturer is required to show compliance with 15 while the module is installed and operating.
new host device per definition in §15.101. Integrator is reminded to assure that these installation instructions will not be made available to the end-user of the final host device. The final host device, into which this RF Module is integrated" has to be labeled with an auxiliary label stating the FCC ID of the RF Module, such as "Contains FCC ID: 2AD56HLK-B36 "This device complies with part 15 of the FCC rules.
with Part 15 requirements with any type of input signal. 3) The module contains power supply regulation on the module. 4) The module contains a permanently attached antenna. 5) The module demonstrates compliance in a stand-alone configuration. 6) The module is labeled with its permanently affixed FCC ID label. 7) The module complies with all specific rules applicable to the transmitter, including all the conditions provided in the integration instructions by the grantee.
Integration instructions for host product manufacturers according to KDB 996369 D03 OEM Manual v01 2.2 List of applicable FCC rules FCC Part 15.247 2.3 Specific operational use conditions This transmitter/module and its antenna(s) must not be co-located or operating in conjunction with any transmitter. This information also extends to the host manufacturer’s instruction manual. 2.4 Limited module procedures not applicable 2.