HLK-B40 User Manual CONTENTS Terminology&noun interpretation........................ 2 Introduction............................3 Pin definition............................4 3. Typical application circuits........................6 Basic functional instructions........................7 4.1 The principle of transmission......................7 4.2 Module operating mode (transmission and AT command mode)..........8 4.3 Description of the input and output pin functions................9 4.4 Bluetooth device roles and connections..................9...
HLK-B40 User Manual Terminology&noun interpretation Name. Instructions Transmission Transparent transmission is to forward data as is between Bluetooth and serial port Bluetooth A short-range wireless communication technology Bluetooth Low Energy, a new Bluetooth technology specification that consumes less power and has a higher transmission and communication distance...
User Manual 1. Introduction HLK-B40 is a kind of Master-Slave serial port transmission Bluetooth module based on BLE5.1, All kinds of devices with serial port can use Bluetooth wireless to send and receive data simply and quickly through this module.
Page 5
HLK-B40 User Manual Pins Symbol. Functions Type Power source MIC_BIA Keep the functionality MIC_IN Keep the functionality VMID Keep the functionality AOUT_P Keep the functionality AOUT_N Keep the functionality RESET Reset restart module, high level is effective, VCHG Charger input, prohibited without battery VBAT The power supply is input to DC3.3V and the...
HLK-B40 User Manual Pins Symbol. Functions Type Bluetooth connection status output, high: not connected, low: connected Current operating mode output, high: master, low: slave Keep the functionality Power source External antenna output Table 2 Pin definition Table 3. Typical application circuits Below is the basic application circuit reference of this module, if you need more functions, please refer to the module manual or contact our engineers to assist.
Bluetooth, data sent through Bluetooth will also be forwarded to the serial port, the entire process users do not need to care about complex Bluetooth connection how to achieve, HLK-B40 module from beginning to end is only the original data transfer and transmission of data without the user's convenience and transmission.
HLK-B40 User Manual Figure 4 One-to-one Bluetooth connection transmission function schematic This module can be connected by multiple Bluetooth host devices when acting as a Bluetooth accessor, including other B40 modules as hosts. Under a multi-to-one connection, the data received from the serial port of the machine module is forwarded via Bluetooth to each connected host device, each Data from connected host devices is also forwarded to the serial port from the machine module.
HLK-B40 User Manual affect the Bluetooth connection state, string Mouth-Bluetooth pivot is paused, the data received by the serial port is processed by the current AT instruction; In transmission mode, the 18th pin PC5 is entered with a short low level (0.5 to 3s) and the module switches out of transmission to AT command mode.
HLK-B40 User Manual Valid only if the low-power sleep function is enabled The module hibernate High level - full speed work, low level - hibernation state output High level - not connected, low level - connected, Bluetooth connection transmission channel has been established; When the...
HLK-B40 User Manual You can choose to turn on the pairing and binding function of the Bluetooth connection. After it is turned on, the security can be increased, but the operation steps are increased accordingly. It is valid in slave or master mode. The pairing method is PASSKEY ENTRY, 6-digit PingCode.
5.2. Quickly verify bluetooth serial transmission Our company has developed a special mobile phone Bluetooth transparent transmission test APP for this module for users to use. For APP introduction and instructions, please refer to HLK-B40 Bluetooth Transparent Transmission Module Mobile APP Instructions.
HLK-B40 User Manual Serial port of module Mobile APP Figure 9 Data transmission through serial port and app 6. Low power sleep function This module is developed based on BLE 5.1 supporting low power consumption and can be flexibly configured in many aspects to further reduce power consumption.
HLK-B40 User Manual currently dormant or wake-up: High: wake-up, full-speed operation. Figure 10 Control and state timing after low power function is turned on 7. AT command 7.1 ATinstruction format description All at instructions are in ascii string format and end with carriage return.
HLK-B40 User Manual Set class instructions: Send Response AT+<CMD>=<val>\r\n Set sucessfully: AT+<CMD>=<val>\r\n OK\r\n Or set failure: AT+<CMD>=<val>\r\n ERROR\r\n For ASCII code: 0x0D 0x0A 7.2 At instruction list and description command Item Description Range parameters Example name send response Software AT+MAC=? AT+VER=1.03(20092421)
Page 16
HLK-B40 User Manual send response AT+BAND=? AT+BAND=115200 1200,2400,4800,9600,14400, 19200,38400,57600,115200, Serial. BAND 230400,460800,921600 Porter rate send response Default:115200 AT+BAND=230400 AT+BAND=230400 1-18, 18 grades send response Default: 8 AT+RFPOWER=? AT+RFPOWER=8 The smaller the transmission Bluetooth. distance, the lower the power RFPOWER Transmit power consumption;...
Page 17
HLK-B40 User Manual send response 1 slave AT+ROLE=? AT+ROLE=1 module 2 host ROLE BLE role send response Default value: 1 AT+ROLE=2 AT+ROLE=2 send response 0 does not require pairing AT+ENCRYPT=? AT+ENCRYPT=0 Pairing binding binding ENCRYPT 1 requires pairing and send...
Page 18
HLK-B40 User Manual Integer, unit s send response Bluetooth 0: Represents only one AT+RECONNI=? AT+RECONNI=0 automatically attempt to connect at startup, re-connects RECONNI not a reconnect when the send response 1 to 60: The connection is AT+RECONNI=10 AT+RECONNI=10 module is the...
HLK-B40 Bluetooth transmission mode phone APP usage instructions. 9. OTA functionality In the mobile phone APP, through Bluetooth wireless upgrade module firmware, the specific operation please refer to the HLK-B40 Bluetooth transmission module mobile phone APP Instructions for use. 10. Contact info Shenzhen Hi-Link Electronic CO.,Ltd Address:...
Need help?
Do you have a question about the HLK-B40 and is the answer not in the manual?
Questions and answers