Hi-Link HLK-B20 User Manual Download Page 7

5

/13

.

Shenzhen Hi-Link Electronic Co., Ltd.

Manual

HLK-B20

4. Function description

The module function is mainly to realize the mutual conversion of Bluetooth data and serial data.

HLK-B20

SERIAL

BLE

COM1

MCU

Bluetooth

device

Figure 4 Serial to BLE mode

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, the HLK-
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 HLK-
B20.

5. 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.

Power on

Yes

No

Normal configur.?

Transparent

mode

1.

ES0(PIN5) pin

AT

command

mode

1.at+reconn=0

Figure 5 . Serial port working state transition

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.

Summary of Contents for HLK-B20

Page 1: ...Shenzhen Hi Link Electronic Co Ltd HLK B20 User Manual BLE 4 2 wireless module...

Page 2: ...5 Serial port working state conversion 5 6 Led light indication meaning 6 7 Parameter configuration method 6 8 Serial port AT command configuration 6 8 1 AT instruction format 6 8 1 1 Ver 7 8 1 2 Uar...

Page 3: ...h can realize data conversion between user serial port and Bluetooth interface 1 1 Basic parameters High speed ARM9E core MCU 2 4G 1T1R BLE 4 2 160k programming space 20KB RAM Power supply voltage 0 9...

Page 4: ...Transmit power 4DB Receiving sensitivity 96dbm Received power 5 1ma Transmit power 4 5ma Antenna type External internal antenna Other parameters Status indicator Status indication Environmental standa...

Page 5: ...ype Function description Default features 1 RSTN I Chip enable high efficiency CPU reset 2 P07 I O P07 SPI_NSS PWM5 GPIO SPI PWM 3 P14 I O P14 PWM4 GPIO PWM 4 P10 I O P10 PWM0 GPIO PWM 5 P11 I O P11 P...

Page 6: ...h and serial ports Figure 3 HLK B20 module test board 3 1 Restore factory settings To ensure that all configuration procedures are correct first reset the module to factory settings Modules that are a...

Page 7: ...uetooth 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 HLK B20 5 Serial port working state conversi...

Page 8: ...rt AT command To configure parameters 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 that configures the mod...

Page 9: ...e system 8 1 1 Ver Function Firmware version query Format at ver r Parameter No 8 1 2 Uart Function Serial port configuration settings Format at uart baud data parity stop r Parameter Baud Baud rate D...

Page 10: ...le_status r Parameter 0 Not connected 1 Connected 8 1 6 ble_name Function Query Bluetooth connection status Format at ble_name blename r Parameter blename Bluetooth name 8 1 7 default Function Restore...

Page 11: ...n tool 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 tr...

Page 12: ...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...

Page 13: ...ronic Co Ltd Manual HLK B20 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 Figure 11...

Page 14: ...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 zone 1 2 3 4 5 6 7 8 Upper...

Page 15: ...13 13 Shenzhen Hi Link Electronic Co Ltd Manual HLK B20 Appendix A Document Revision History Version number Revision Scope Date 1 00 2019 4 15...

Page 16: ...nal 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 oper...

Page 17: ...ipment 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...

Reviews: