Page 3
3.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. Set tcp connection mode:at+mode................16 3.7. Set the remote IP when the module is used as a client:at+remoteip......16 3.8.
Page 4
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................... 31...
TCP/IP protocol stack, which can realize the conversion between the user's serial port and the wireless network (WIFI/BLE). Through the HLK-B36 module, the traditional serial device can transmit its own data through the Internet network without changing any configuration, providing a complete and fast solution for the user's serial device to transmit data through the network.
Serial port Transmission rate 110-921600bps transparent TCP Client 1个 transmission Wireless network STA/AP type Security WEP/WPA-PSK/WPA2-PSK Mechanism Software Encryption type WEP64/WEP128/TKIP/AES parameters Firmware upgrade Firmware upgrade Network protocol IPv4, TCP/UDP AT+ command set, one-key intelligent configuration of User configuration network distribution 1.4.
Page 8
P21_TMS_F_CS P20_TCK_F_SC VBAT 3.3V power Enter at command mode/restore factory settings, please pull up if you don’t use it, same as P22 P6_PWM0 P6,PWM0 P7_PWM1 Wifi indicator Wifi connection status indicator P8_PWM2 1: connected 0: Disconnected Socket connection status indicator P9_PWM3 1: connected 0: Disconnected...
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 Current(ma) consumption 11Mbps 17.5dbm...
1.10. WIFI receiving power consumption Mode Speed Current(ma) 11Mbps 54Mbps MCS7 100.5 1.11. Power consumption in each working mode of WIFI Average current State Description Maximum current(3v3) Unit (3v3) wifi Turn off the radio, the 45.2 46.3 initialization MCU is at full speed Keep wifi Keep connected to the...
RF average output power,802.11n OFDM Mode MCS7 2. Function description HLK-B36 supports serial port to WIFI STA, serial port to WIFI AP and serial port to BLE mode. 2.1. wifi indicator flashing description Through the blinking mode of the LED indicator, we can quickly know the running status of the module.
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.
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.
2.5. Serial port working status conversion After the HLK-B36 is powered on, the default is the transparent transmission mode. By pulling down the pin ES0 (PIN5) for more than 50ms and less than 2s to enter the at command mode, the module will treat the received data as an at command and send the at comand to makes the module enter 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 TCP Server Figure 9 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.
the TCP Server. Abnormal network disconnection will cause the module to reconnect actively. 2.6.3. Module as UDP Server UDP Client UDP Server UDP Server Figure 11 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.
All commands start with "at" and end with "\r". If the command is not encapsulated in this format, it will not be processed, and the module will return different return values according to different commands. For example: "at+ver=?" The module will return: HLK-B36 (b.1.00.120191206180224) Query command format: at+[command]=? 3.1. Query the current module version:at+ver Grammar rules:...
3.2. Local port operation:at+CLport Command Grammar Return and description type at+CLport=8080 Note: When the module is set to tcpclient, the local port of at+CLport=8080 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=?
at+dhcpc=? Query at+dhcpc=? instruction Note:1:dhcp mode,0:static ip 3.5. Set wifi connection mode:at+netmode Command Grammar Return and description type at+netmode=3 at+netmode=3 Note:Set the module to ap mode instruction at+netmode=? Query at+netmode=? instruction Note:1:smartconfig 2:sta mode,3:2.4G ap mode 3.6. Set TCP connection mode:at+mode Command Grammar Return and description...
at+remoteip=? Query at+remoteip=? 192.168.11.102 instruction 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 Note:1. When the module is set to tcpserver, this port is the listening port of the module at+remoteport=1234 instruction...
at+reconn=1 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 at+wifi_conf=HI-LINK_5FE8 Note:Set the ssid and password of the module, instruction ,none,12345678 none:No definition, format required at+wifi_conf=? Query at+wifi_conf=? HLK-B36_1234,none,12345678 instruction Query Note:...
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 Disconnected at+wifi_ConState=? instruction Note:In sta mode, the module wifi is not connected, Connected means the network is connected. 3.15. Query module MAC address :at+Get_MAC Command Grammar Return and description...
3.17. Set framing time:at+uartpacktimeout Command Grammar Return and description type uartpacktimeout =200 Note:Set the framing time of module to 200ms: range: uartpacktimeout =200 5-5000 instruction If it exceeds the range during setting, it will automatically change to the maximum or minimum value uartpacktimeout Query uartpacktimeout...
Page 25
//Query serial port framing time at+ver=?\r\n\ //Query the firmware version number "; Com_send(query); //Send these data out from the serial port feedback: at+netmode=? 0 at+wifi_conf=? Hi-Link,none,12345678 at+dhcpd=? 0 at+dhcpc=? 1 at+net_ip=? 192.168.15.254,255.255.254.0,192.168.11.1 at+remoteip=? 192.168.11.245 at+remoteport=? 8080 at+remotepro=? tcp at+mode=? server...
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\ //Set wifi, encryption method and password at+dhcpc=0\r\n\ //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...
//Socket connects as server at+uart=115200,8,n,1\r\n\ //Set serial port parameters at+uartpacklen=64\r\n\ //Set the framing length at+uartpacktimeout=10\r\n\ //Set framing time at+net_commit=1\r\n\ //Submit parameters at+reconn=1\r\n\"; //Restart module Com_send(commands_wifi_ap); feedback: at+netmode=2 ok at+wifi_conf=HI-LINK,none,12345678 ok at+dhcpc=1 at+remoteip=192.168.11.245 ok 第 23 页 共 34 页...
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 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. The serial port on the left side of the software automatically generates the corresponding setting instructions.
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.
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.
Bluetooth distribution network interface Pic 16 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.
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. apMode transmission current test Pic 17 8.2.2.
BLE+WiFi transparent transmission current test Pic 18. 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.
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.
Page 36
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.
Page 37
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.
Page 38
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.
Need help?
Do you have a question about the HLK-B36 and is the answer not in the manual?
Questions and answers