Hi-link Hlk-b20 Ble 4.2 Wireless Module User Manual

Hi-link Hlk-b20 Ble 4.2 Wireless Module User Manual

Hi-Link-LOGO

Hi-Link HLK-B20 BLE 4.2 Wireless ModuleHi-Link-HLK-B20-BLE-4.2-Wireless-Module-PRODUCT

Product description

HLK-B20 is a new low-consumption Bluetooth BLE 4.2 control module made by Hi-Link. This product is a Bluetooth-compliant module based on the universal serial interface. It has a built-in BLE 4.2 protocol stack, which can realize data conversion between the user serial port and Bluetooth interface.

Basic parameters

  •  High-speed ARM9E core MCU
  •  2.4G/1T1R, BLE 4.2
  •  160k programming space, 20KB RAM
  •  Power supply voltage 0.9-3.6v
  •  Ultra-low supply voltage, low power consumption
  •  Built-in crystal, high stability
  •  Small chip package 4×4
  •  Rich peripheral interface, SPI, I2C, ADC, UART, PWM, GPIO
  •  Widely used in the Internet of Things
  •  High-speed 10-bit multi-channel ADC with internal filtering
  •  Easy to connect, fast speed

Product Overview

Technical specifications

Transfer ProtocolBluetooth standard: BLE 4.2
Supply voltage0.9-3.6V
Air speed1Mbps
Number of channels40
Frequency Range2400-2480MHZ
Transmit power4DB
Receiving sensitivity-96dbm
Received power5.1ma
Transmit power4.5ma
Antenna typeExternal /internal antenna
Other parameters
Status indicatorStatus indication
 

 

Environmental standard

Operating temperature: -40-125℃
Working humidity: 10%-90%RH (Non-condensing)
Storage temp.: -40-90℃
Storage humidity: 5%-90%RH (Non-condensing)
Other performanceBand bandwidth optional: 1MHz

Hardware description
HLK-B20 dimension as below:(L*W)=16mm*25mm Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-2

Block diagram Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-3

Default pin function

No.Network nameTypeFunction descriptionDefault features
1RSTNIChip enable, high efficiencyCPU reset
2P07I/OP07,SPI_NSS,PWM5GPIO,SPI,PWM
3P14I/OP14,PWM4GPIO,PWM
4P10I/OP10,PWM0GPIO,PWM
5P11I/OP11,PWM1GPIO,PWM
6P12I/OP12,PWM2GPIO,PWM
7P13I/OP13,PWM3GPIO,PWM
83V3P3.3V power supplyPower
9P31I/OP31GPIO
10P32I/OP32GPIO
11P17I/OP17,uart2_rxdGPIO,uart2
12P16I/OP16, uart2_txdGPIO,uart2
13P34I/OP32GPIO
14P33I/OP33GPIO
15GNDPGNDGND
16P02I/OP02,SCLGPIO,I2C
17P03I/OP03,SDAGPIO,I2C
18P04I/OP04,SPI_CLKGPIO,SPI
19P05I/OP05,SPI_MOSIGPIO,SPI
20P06I/OP06,SPI_MISOGPIO,SPI
21P01I/OUart1_rxdUart1, Transparent transmission serial port
22P00I/OUart1_txdUart1, Transparent transmission serial

port

Test board description

The test board is mainly used to test the data transmission function of the HLK-B20’s Bluetooth and serial ports.Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-4 Restore factory settings
To ensure that all configuration procedures are correct, first reset the module to factory settings. Modules that are already in factory mode can skip this step. Provide 5V (1000mA) power supply to power on the module, wait for about 1 second, let the module start up. After the startup is completed, pull down the ES0 (PIN5) pin for more than 6S. When the LED corresponding to the STA is always on, it means that the module is restored the factory settings successfully, then release the ES0 pin, the system will automatically restart. The system is already in factory mode after rebooting.

Function description

The module function is mainly to realize the mutual conversion of Bluetooth data and serial data.Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-5

In this mode, the BLE Bluetooth device transmits the data to the HLK-B20 module via Bluetooth, and the HLK-B20 module sends the received data from the serial port. When the serial port gets data, theHLK-B20 sends the serial port data from the Bluetooth terminal to realize the conversion of serial data and Bluetooth data. When the HLK-B20 has a Bluetooth device connected, the HLK-B20 will turn off the broadcast of the Bluetooth name, and other Bluetooth devices will no longer be able to connect to the Lk-B20.

Serial port working state conversion

The module defines the working state of the serial port as two modes: transparent transmission mode and AT command mode.Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-6

After normal power-on, the module directly enters the transparent mode. If Bluetooth is not connected, the data will not be sent out from Bluetooth. If Bluetooth is connected, the data will be sent out from Bluetooth. In any state, keeping the ES0 pin low for longer than Tes and less than Trst will immediately enter the AT command mode.Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-7

Led light indication meaning

  • The status of the led connection module’s P02 pin, corresponding to the sta led on the test board:
    •  Double flash: Bluetooth is not connected, and is in transparent mode
    •  Triple flash: AT command mode
    •  Long extinction or fast flash: Bluetooth is connected, it will flash quickly when there is transparent data transmission

Parameter configuration method

The module configuration is mainly configured through the serial port AT command. Toconfigureparameters through the serial AT command, you need to let the module enter the AT command mode first.The serial port configuration tool HLK-B20_CONFIG, which configures the module throughtheATcommand mode, through the parameters of each configuration combination, provides a simple and convenient configuration process.

Serial port AT command configuration

AT instruction format
In AT mode, system parameters can be configured through the AT command of the serial port. The format of the instruction is as follows: at+[command]=[value]\r Different return values of the module will be returned depending on the different command. Example: “at+ble_name=blename\r” sets the module broadcast address to blame. Example: “at+ver=?\r” queries the module program version number.

verModule Version
uartSerial port configuration
defaultRestore factory setting
ble_nameBluetooth name
net_commitSubmit configuration parameters
reconnRestart the serial port service
ble_statusBluetooth connection status
RebootRestart the system

Ver

FunctionFirmware version query
Formatat+ver=?\r
ParameterNo

Uart

FunctionSerial port configuration settings
Formatat+uart=<baud>, <data>, <parity>, <stop>\r
ParameterBaud: Baud rate Data: Data bit Parity: Check Digit Stop: Stop bit length

net_commit

FunctionSubmit network settings
Formatat+net_commit=< Net_commit >\r
Parameter0:invalid 1:Submit

Reconn

FunctionRestart the serial port conversion service
Formatat+ reconn =< reconn >\r
Parameter0: invalid

1: Restart the serial port conversion service

ble_status

FunctionQuery Bluetooth connection status
Formatat+ ble_status =?\r
Parameter0: Not connected

1: Connected

ble_name

FunctionQuery Bluetooth connection status
Formatat+ ble_name =<blename>\r
Parameterblename: Bluetooth name

default

FunctionRestore factory setting
Formatat+ default =1\r
ParameterNo

Reboot

FunctionRestart the system
Formatat+ reboot =1\r
ParameterNo

Configuration Tool DescriptionHi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-8

  1.  Command window to be sent
  2.  Serial port number selection
  3. Bluetooth name setting
  4.  Serial port parameters
  5.  Serial port return command
  6.  Submit configuration
  7.  Query configuration
  8.  Enter transparent mode
  9.  Restore factory settings

Transparent transmission minimum systemHi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-9

Bluetooth data transmission

Bluetooth data transmission is that after the Bluetooth connection is successful, the module will send the data received from the Bluetooth by the serial port, and the data received from the module serial port will be sent out by the Bluetooth. The module Bluetooth function only supports Bluetooth 4.2. Install the Bluetooth mobile phone test software HLK-BLE.apk, open the Bluetooth function of the mobile phone, and then open the app, it will search for the Bluetooth name at the beginning of HLK-BLE_on the app.Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-10

Then select the last item Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-11

Then input the sent data in the send box, click Send, the data will be received on the serial port, and the data sent by the serial port will be received on the app.Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-12

Reflow soldering temperature curve

When the module is over-fired, please strictly follow this temperature curve. If the temperature deviation of the reflow soldering is too large, the module will be damaged!

Temperature setting (degrees Celsius)
Warm zone12345678
Upper-temperature zone 

125

 

135

 

155

 

185

 

195

 

225

 

240

 

230

Lower temperature

zone

 

125

 

135

 

155

 

185

 

195

 

225

 

240

 

230

Conveyor speed: 70.0 cm/min

Hi-Link-HLK-B20-BLE-4.2-Wireless-Module-FIG-13

Appendix A Document Revision History

Version numberRevision ScopeDate
1.002019-4-15
  •  List of applicable FCC rules
    FCC Part 15.247
  •  RF exposure considerations
    This module is certified that complies with RF exposure requirements under 5mm RF  distance.
  •  Label and compliance information
    FCC ID label on the final system must be labeled with “Contains FCC ID:
    2AD56HLK-B20” or “Contains transmitter module FCC ID: 2AD56HLK-B20”.
  •  Information on test modes and additional testing requirements
    Contact Shenzhen HaiLingKe Electronic co.,Ltd will provide a stand-alone modular transmitter test mode. Additional testing and certification may be necessary when multiple modules are used in a host.
  •  Additional testing, Part 15 Subpart B disclaimer
    To ensure compliance with all non-transmitter functions the host manufacturer is responsible for ensuring compliance with the module(s) installed and fully operational. For example, if a host was previously authorized as an unintentional radiator under the Supplier’s Declaration of Conformity procedure without a transmitter-certified module and a module is added, the host manufacturer is responsible for ensuring that the after the module is installed and operational the host continues to be compliant with the Part 15B unintentional radiator requirements. Since this may depend on the details of how the module is integrated with the host, ShenZhen HaiLingKe Electronic co.,Ltd shall provide guidance to the host manufacturer for compliance with the Part 15B requirements.

FCC Warning

This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions:
(1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. NOTE 1: This product has been tested and found to comply with the limits for a Class B digital device, pursuant to Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This product generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this product does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to 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. NOTE 2: Any changes or modifications to this unit not expressly approved by the party responsible for compliance could void the user’s authority to operate the equipment.

FCC Radiation Exposure Statement:
This equipment complies with FCC radiation exposure limits set forth for an uncontrolled environment. End-users must follow the specific operating instructions for satisfying RF exposure compliance.

  • Note 1: This module is certified that complies with RF exposure requirements under 5mm RF distance. This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter.
  • Note 2: Any modifications made to the module will void the Grant of Certification, this module is limited to OEM installation only and must not be sold to end-users, end-user has no manual instructions to remove or install the device, only software or operating procedure shall be placed in the end-user operating manual of final products.
  • Note 3: The module may be operated only with the antenna with which it is authorized. Any antenna that is of the same type and of equal or less directional gain as an antenna that is authorized with the intentional radiator may be marketed with, and used with, that intentional radiator.

Documents / Resouces

Download manual
Here you can download full pdf version of manual, it may contain additional safety instructions, warranty information, FCC rules, etc.


Related Manuals