Shenzhen Hi-Link Electronic Co., Ltd. HLK-B35 User Manual Version:V1.0 Revise date:2020 年 11 月 19 日 Reserved © Shenzhen Hi-Link Electronic Co.
目 CONTENTS 1. PRODUCT INTRODUCTION........................................................................................................................................ 1 1.1. BRIEF INTRODUCTION........................................................................................................................................ 1 1.2. PRODUCT FEATURES............................................................................................................................................ 1 1.3.
4.1. QUERY CONFIGURATION INFORMATION............................................................................................................ 20 4.2. CONFIGURE THE MODULE AS A CLIENT (STATIC IP ADDRESS).................................................................. 20 4.3. CONFIGURE THE MODULE AS A SERVER (DYNAMIC IP ADDRESS)................................................................ 22 4.4. RESET.....................................................................................................
HLK-B35 User Manual 1. Product Introduction 1.1. Brief introduction HLK-B35 is a low-cost embedded UART-WIFI (serial-wireless network) module launched by Hi-link Electronics. It is a Wi-Fi + BLE combined chipset for low-power and high-performance application development.
HLK-B35 User Manual QSPI Flash Instant AES Decryption (OTFAD)-AES-128, CTR mode Support AES 128/192/256 bit encryption engine, true random number generator (TRNG), public key accelerator (PKA) Widely used in the Internet of Things 1.3. Performance and electrical parameters Table 1 Performance and electrical parameters Model HLK-B35 encapsulation In-line Module IEEE 802.11 b/g/n Wireless standard Low energy consumption 5.0: supports BLE 5.
HLK-B35 User Manual Voltage GPIO driver Max:12.
HLK-B35 User Manual 1.4. Product package size and pin definition Pic1 HLK-B35 Product package size and pin definition 1.5. Pin introduction Table 2 PIN Module pin interface Network name Type Description 1 RST I Chip enable, high active, low reset 2 IO5 I/O preserve 3 IO2 I/O preserve 4 IO11 I/O preserve ES0 button, enter at command 5 IO12 I/O mode/restore factory settings, please pull up if not in use 6 IO14 I/O preserve 7 IO17 I/O preserve 8 VCC P 3.
HLK-B35 User Manual 9 GND P GND 10 NC I/O preserve 11 NC I/O preserve 12 IO20 I/O preserve WiFi connection 13 IO21 I/O 0: WiFi is not connected 1: WiFi is connected TCP connection 14 IO22 I/O 0: Not connected to the TCP server 1: Connected to the TCP server 15 GND P GND 16 IO0 I/O Module status indicator 17 IO8 I/O Indicator light not used 18 IO1 I/O preserve 19 IO3 I/O Debug serial port (TX pin) 20 IO4 I/O Debug serial port (RX pin) 21 RXD I/O Main serial
HLK-B35 User Manual 1.6. System Block Diagram Pic 2. HLK-B35 Module architecture diagram 1.7.
HLK-B35 User Manual 2. Function description HLK-B35 supports serial port to WIFI STA, serial port to WIFI AP and serial port to BLE mode. The module is powered on by default in AP mode (IP is fixed at 192.168.169.1), as a UPD server, port 9000, WiFi hotspot name is HLK_B35_WIFIxxxxxxxx, where xxxxxxxx is the last 4 bytes of the module's MAC address. The Bluetooth name is HLK_B35_BLExxxxxxxx, where xxxxxxxx is the last 4 bytes of the module's MAC address. 2.1.
HLK-B35 User Manual 2.3. UART to WIFI AP Pic 7 Module as AP In AP mode, mobile phones, PCs or other wifi devices can be connected to the B35 module through wifi, and serial devices can transmit data through the B35 module and other wifi devices. 2.4. Serial port working status conversion After the HLK-B35 is powered on, the default is the transparent transmission mode.
HLK-B35 User Manual 2.5. Serial-to-network data conversion 2.5.1. Module as TCP Server TCP Client TCP Client TCP Client TCP Server Pic 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 4 A TCP Client connects to the TCP Server. 2.5.2.
HLK-B35 User Manual 2.5.3. Module as UDP Server UDP Client UDP Server Pic 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. The module will only record the remote information of the last connection, and the data sent by the serial port will be sent directly to the recorded remote ip and port. 2.5.4.
HLK-B35 User Manual at+[command]=[value],[value],[value]...... All commands start with "at" and end with "\r\n". If the command is not sent in this format, the module will not proceed. It does not return any data; after the effective instruction is recognized, the module will return the corresponding data or perform the corresponding operation, and Return OK; invalid command module will directly return ERR.
HLK-B35 User Manual 3.1.3. AT help instruction:at+help Type Grammar Return and description at+help # at+help -- This text # ate=<1/0> -- echo on/off Execute instructions # at+ver=> -- version info at+help ...... OK Note: List all current AT commands and parameter prompts 3.1.4. Switch echo:at+ate Type Grammar Return and description at+ate=1 OK Note: The echo function is successfully turned on.
HLK-B35 User Manual at+uart=? Query instruction at+uart=? 115200,8,n,1 Note: Query the serial port baud rate, data bit, validation, stop bit 3.1.6. Query MAC address:at+Get_MAC Type Query instruction Grammar Return and description at+Get_MAC=? at+Get_MAC=? 40:d6:3c:15:5f:e8 Note: Reply to the mac address of the module 3.1.7. Rest:at+default Type Set instruction Grammar Return and description at+default=1 at+default=1 OK Note:module reset 3.1.8.
HLK-B35 User Manual 3.2. WI-FI related AT commands 3.2.1. Set the network mode of the module:at+netmode Type Grammar Return and description at+netmode=2 Set instruction Query instruction Ok at+netmode=2 Note: Set the module to STA mode at+netmode=? 2 at+netmode=? Note:2: STA mode 3: 2.4G AP mode 3.2.2.
HLK-B35 User Manual 3.2.4. Scan for nearby routes:at+scanap Type Grammar Return and description at+scnfap +CWLAP: 0,IT-soft,e6:d3:32:06:e7:9d,11,-85,WPA2-PSK/WP A-PSK 1,yangyipeng,00:6b:8e:78:cd:c7,9,-61,WPA2-PSK/ WPA-PSK Execute instructions 2,ChinaNet-vwnA,54:66:6c:c1:af:40,4,-98,WPA2-P at+scanap SK/WPA-PSK 3,qfdz6868,bc:5f:f6:c3:fd:e6,13,-81,WPA2-PSK/WP A-PSK ...... OK Note:Scanned surrounding WiFi name, MAC address, channel, signal strength, encryption method 3.3. TCP/IP Related AT commands 3.
HLK-B35 User Manual is that the instruction: at+dhcpc=0 has been executed, otherwise it is regarded as an invalid instruction In AP mode, the default address of the module is 192.168.169.1 and cannot be set Query instruction at+net_ip=? 192.168.16.254,255.255.255.0,192.168.16.254 at+net_ip=? Note:Module current IP, subnet mask, gateway 3.3.3.
HLK-B35 User Manual is that the instruction: at+mode=client has been executed, otherwise it is regarded as an invalid instruction at+CLport=? Query instruction 8080 at+CLport=? Note:The local port of the module under the client is 8080 3.3.6. Set the remote IP in client mode:at+remoteip Type Grammar Return and description at+remoteip=192.168.11.102 Ok Set at+remoteip=192.168.11.
HLK-B35 User Manual 3.3.8. Set the framing length of the serial port : at+uartpacklen supported currently Not 3.3.9. Set the framing time of the serial port:at+uartpacklen Not supported currently 3.4. BLE related AT commands 3.4.1. Set Bluetooth broadcast name:at+ble_name Type Grammar Return and description at+ble_name=B35_BLE Set instruction at+ble_name=B35_BLE Ok Note:The Bluetooth broadcast name supports up to 29 bytes at+ble_name=? Query instruction 3.5.
HLK-B35 User Manual at+ds_node=enter ds mode Ok Set instruction at+ds_node=enter ds mode Note:The prompt message after the module is switched to transparent transmission mode is successful at+ble_name=? Query instruction enter ds mode at+ble_name=? Note:When the module is switched to transparent transmission mode, it will output:enter ds mode 3.5.3.
HLK-B35 User Manual 4. AT command control code example 4.1. Query configuration information code: char *query="\ //Define string pointer at+ver=?\r\n\"; //Query the firmware version number at+uart=?\r\n\ //Query serial port parameters at+netmode=?\r\n\ //Query distribution method at+mode=?\r\n\ //Query tcp connection mode at+dhcpc=?\r\n\ //Query dhcp Com_send(query); //Send these data out from the serial port feedback: at+ver=? HLK-B35(V1.
HLK-B35 User Manual at+remoteip=192.168.8.103\r\n\ //Set remote IP at+remoteport=9000\r\n\ //Set remote port at+remotepro=tcp\r\n\ //Set up TCP transmission at+mode=client\r\n\ //Module as client at+net_commit=1\r\n\ //Submit parameters at+reconn=1\r\n\"; //Restart module Com_send(commands_wifi_client_static); //Send parameters from the serial port Feedback: at+uart=115200,8,n,1 OK at+netmode=2 OK at+wifi_conf=HI-LINK,wpa2_aes,12345678 OK at+dhcpc=0 OK at+net_ip=192.168.8.35,255.255.255.
HLK-B35 User Manual 4.3. Configure the module as a server (dynamic ip address) code: char *commands_wifi_ap="\ at+netmode=2\r\n\ //Set the module to STA mode at+wifi_conf=HI-LINK,wpa2_aes,00000000\r\n\ //Set the name, encryption method and password of the connection route at+dhcpc=1\r\n\ //Use dynamic IP at+remoteport=8000\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,8,n,1\r\n\ //Set ser
HLK-B35 User Manual 4.4. Reset code: char *commands_device_default=” at+default=1\r\n\”; //reset Com_send(commands_device_default); feedback: at+default=1 OK Then the module will restart and restore the factory default configuration parameters The hardware reset method is : Long press the ES0 button on the bottom plate for more than 3 seconds to restore the factory settings. For more functions, please use the configuration software to set up.
HLK-B35 User Manual 5. Bluetooth distribution network and data transparent transmission 5.1. Bluetooth distribution network (1) Ensure that the module is in STA mode, that is, at+netmode=2 AT command has been executed (2) Turn on the Bluetooth of the mobile phone, open the HLK-BLE.apk application APP, and find the default Bluetooth broadcast name of the module B35-BLE Click, if the connection is successful, the APP interface will switch to the transparent transmission test interface.
HLK-B35 User Manual Pic 15 Send transparent data in APP Pic 16 Receive transparent data 6. Module power consumption measured data 6.1.
HLK-B35 User Manual 6.2. Power consumption of transparent data transmission in Sta mode Pic 18 Bluetooth broadcast is turned on, and the module acts as a working current for the client to connect to the remote server and continuously send data 6.3.
HLK-B35 User Manual 7. Appendix A Document Revision History Version V1.0 Revision scope Date First edition 2020-11-19 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.
HLK-B35 User Manual the Integrator will be responsible to satisfy SAR/ RF Exposure requirements, when the module integrated into the host device. Module statement The single-modular transmitter is a self-contained, physically delineated, component for which compliance can be demonstrated independent of the host operating conditions, and which complies with all eight requirements of § 15.212(a)(1) as summarized below. 1) The radio elements have the radio frequency circuitry shielded.
HLK-B35 User Manual try to correct the interference 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 circuit different from that to which the receiver is connected. -Consult the dealer or an experienced radio/TV technician for help Integration instructions for host product manufacturers according to KDB 996369 D03 OEM Manual v01 2.
HLK-B35 User Manual 784748 stating “Contains Transmitter Module FCC ID: 2AD56HLK-B35”. 2.9 Information on test modes and additional testing requirements Data transfer module demo board can control the EUT work in RF test mode at specified test Channel. 2.10 Additional testing, Part 15 Subpart B disclaimer The modular transmitter is only FCC authorized for the specific rule parts (FCC Part 15.