Advertisement

Shenzhen Hi-Link Electronic Co., Ltd.
HLK-B35 User Manual
Reserved © Shenzhen Hi-Link Electronic Co., Ltd
Version:V1.0
Revise date:2020 年 11 月 19 日

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HLK-B35 and is the answer not in the manual?

Questions and answers

Summary of Contents for Hi-Link HLK-B35

  • Page 1 Shenzhen Hi-Link Electronic Co., Ltd. HLK-B35 User Manual Reserved © Shenzhen Hi-Link Electronic Co., Ltd Version:V1.0 Revise date:2020 年 11 月 19 日...
  • Page 2: Table Of Contents

    CONTENTS 目 1. PRODUCT INTRODUCTION ............................1 1.1. BRIEF INTRODUCTION ............................1 1.2. PRODUCT FEATURES ............................1 1.3. PERFORMANCE AND ELECTRICAL PARAMETERS ....................2 1.4. PRODUCT PACKAGE SIZE AND PIN DEFINITION ....................4 1.5. PIN INTRODUCTION ............................4 1.6. SYSTEM BLOCK DIAGRAM ............................ 6 1.7.
  • Page 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 ................................. 23 5. BLUETOOTH DISTRIBUTION NETWORK AND DATA TRANSPARENT TRANSMISSION ..........24 5.1.
  • Page 4: Product Introduction

    TCP/IP protocol stack, which can realize the conversion between the user's serial port and the wireless network (WIFI/BLE). With the HLK-B35 module, the traditional serial device can transmit its own data through the Internet without changing any configuration, providing a complete and fast solution for the user's serial device to transmit data through the network.
  • Page 5: Performance And Electrical Parameters

    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...
  • Page 6 HLK-B35 User Manual Voltage GPIO driver Max:12.8 mA ability Working current ≥800mA Claim Module current 700mA Peak No-load operation 44mA Current Operating -40℃~85℃ temperature Transmission Serial port 9600-921600bps rate Penetrate TCP Client wireless network STA/AP Types of Security WPS/WEP/WPA/WPA2 Personal/WPA2 Enterprise/WPA3...
  • Page 7: Product Package Size And Pin Definition

    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 Module pin interface Network name Type Description Chip enable, high active, low reset preserve preserve IO11 preserve...
  • Page 8 HLK-B35 User Manual preserve preserve IO20 preserve WiFi connection IO21 0: WiFi is not connected 1: WiFi is connected TCP connection IO22 0: Not connected to the TCP server 1: Connected to the TCP server Module status indicator Indicator light not used...
  • Page 9: System Block Diagram

    HLK-B35 User Manual 1.6. System Block Diagram HLK-B35 Module architecture diagram Pic 2. 1.7. Test board introduction Pic 3 Test board introduction 第 6 页 共 30...
  • Page 10: Function Description

    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.
  • Page 11: Uart To Wifi Ap

    2.4. Serial port working status conversion After the HLK-B35 is powered on, the default is the transparent transmission mode. By pulling down the pin ES0 (GPIO12) for less than 50ms to enter the at command mode, the module will treat the received data as an at command, and send the at command to let The module enters the transparent transmission mode.
  • Page 12: Serial-To-Network Data Conversion

    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 TCP Server Pic 9 In this mode, the module monitors the specified port and waits for the TCP Client to connect.
  • Page 13: Module As Udp Server

    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.
  • Page 14: Basic At Commands

    The module is in transparent transmission mode by default 3.1.2. Query software version number:at+ver=? Type Grammar Return and description HLK-B35(V1.00Nov 9 2020-07:38:59) Query at+ver=? instruction Note: current version number and firmware date 第 11 页 共 30...
  • Page 15 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 # at+ver=<?> -- version info at+help ..instructions Note: List all current AT commands and parameter prompts 3.1.4.
  • Page 16 HLK-B35 User Manual at+uart=? Query 115200,8,n,1 at+uart=? Note: Query the serial port baud rate, data bit, instruction validation, stop bit 3.1.6. Query MAC address:at+Get_MAC Type Grammar Return and description at+Get_MAC=? Query 40:d6:3c:15:5f:e8 at+Get_MAC=? instruction Note: Reply to the mac address of the module 3.1.7.
  • Page 17: Wi-Fi Related At Commands

    HLK-B35 User Manual WI-FI related AT commands 3.2. 3.2.1. Set the network mode of the module:at+netmode Type Grammar Return and description at+netmode=2 at+netmode=2 instruction Note: Set the module to STA mode at+netmode=? Query at+netmode=? instruction Note:2: STA mode 3: 2.4G AP mode 3.2.2.
  • Page 18: Tcp/Ip Related At Commands

    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 2,ChinaNet-vwnA,54:66:6c:c1:af:40,4,-98,WPA2-P at+scanap SK/WPA-PSK instructions 3,qfdz6868,bc:5f:f6:c3:fd:e6,13,-81,WPA2-PSK/WP A-PSK ..Note:Scanned surrounding WiFi name, MAC address, channel, signal strength, encryption method TCP/IP Related AT commands 3.3.
  • Page 19 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 at+net_ip=? Query 192.168.16.254,255.255.255.0,192.168.16.254 at+net_ip=? instruction Note:Module current IP, subnet mask, gateway 3.3.3.
  • Page 20 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 8080 at+CLport=? Note:The local port of the module under the client is instruction 8080 3.3.6. Set the remote IP in client mode:at+remoteip...
  • Page 21: Ble Related At Commands

    HLK-B35 User Manual 3.3.8. Set the framing length of the serial port : at+uartpacklen supported currently 3.3.9. Set the framing time of the serial port:at+uartpacklen Not supported currently BLE related AT commands 3.4. 3.4.1. Set Bluetooth broadcast name:at+ble_name Type Grammar...
  • Page 22 HLK-B35 User Manual at+ds_node=enter ds mode Note:The prompt message after the module is at+ds_node=enter ds mode instruction switched to transparent transmission mode is successful at+ble_name=? Query enter ds mode at+ble_name=? Note:When the module is switched to transparent instruction transmission mode, it will output:enter ds mode 3.5.3.
  • Page 23: At Command Control Code Example

    //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.00Nov 18 2020-23:54:48) at+uart=? 115200,8,n,1 at+netmode=? at+mode=? client at+dhcpc=? 4.2. Configure the module as a client (static ip address) code:...
  • Page 24 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 at+netmode=2 at+wifi_conf=HI-LINK,wpa2_aes,12345678 at+dhcpc=0 at+net_ip=192.168.8.35,255.255.255.0,192.168.8.5 at+remoteip=192.168.8.103...
  • Page 25: Configure The Module As A Server (Dynamic Ip Address)

    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\...
  • Page 26: Reset

    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 Then the module will restart and restore the factory default configuration parameters Long press the ES0 button on the bottom plate for more than 3 The hardware reset method is :...
  • Page 27: Bluetooth Distribution Network And Data Transparent Transmission

    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...
  • Page 28: Module Power Consumption Measured Data

    HLK-B35 User Manual Pic 15 Send transparent data in APP Pic 16 Receive transparent data 6. Module power consumption measured data 6.1. Power consumption in Sta mode Pic 17 Bluetooth broadcast is turned on, and the module as a client keeps trying to connect to the working current of the remote server 第...
  • Page 29: Power Consumption Of Transparent Data Transmission In Sta Mode

    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.
  • Page 30: Appendix A Document Revision History

    HLK-B35 User Manual 7. Appendix A Document Revision History Version Revision scope Date V1.0 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.
  • Page 31 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 §...
  • Page 32 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.
  • Page 33 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.247) listed on the...

Table of Contents