Do you have a question about the Hi-Link HLK-B40 and is the answer not in the manual?
Detailed pinout and function mapping for the HLK-B40 module, essential for hardware connections and integration.
Explains how data is transmitted transparently between serial port and Bluetooth, simplifying user interaction.
Covers the two primary operating modes: transmission and AT command mode for configuration and control.
Describes the purpose and behavior of each input and output pin on the module, aiding hardware integration.
Details the host/slave roles and how connections are established and managed between devices for communication.
Instructions for using the dedicated test board to quickly verify module functionality and setup procedures.
Step-by-step guide to test serial port to Bluetooth data transmission using the module and a mobile app.
Outlines the syntax and structure for sending AT commands to configure and control the module's parameters.
Comprehensive list of available AT commands, their parameters, and expected responses for module configuration.
The HLK-B40 is a master-slave integrated Bluetooth transparent transmission module, designed to facilitate wireless data exchange for devices equipped with a serial port. This module simplifies the process of sending and receiving data via Bluetooth, eliminating the need for users to manage complex Bluetooth protocol stacks or RF circuits. It functions as a transparent pipeline between the serial port and a Bluetooth connection, forwarding data received from the serial port to connected Bluetooth devices and vice versa.
The core function of the HLK-B40 is transparent serial port to Bluetooth data transmission. It operates in two primary modes: transmission mode and AT command mode.
In transmission mode, the module acts as a direct conduit for serial data and Bluetooth-connected data, enabling bidirectional communication. This means any data sent to the module's serial port is forwarded over Bluetooth, and any data received via Bluetooth is forwarded to the serial port. The module defaults to this mode upon startup.
In AT command mode, users can query and configure the module's parameters by sending AT commands through the serial port. This allows for customization of various operational aspects without interrupting the Bluetooth connection state. To enter AT command mode from transmission mode, a short low-level pulse (0.5 to 3 seconds) must be applied to pin PC5. To exit AT command mode and return to transmission mode, the AT+TS=1 command is used.
The HLK-B40 supports both host and slave roles in a Bluetooth connection. When configured as a slave, it can connect to multiple host devices (up to 20 simultaneously), including other B40 modules acting as hosts. In a multi-to-one connection, data received from the slave module's serial port is forwarded to all connected host devices, and data from each connected host device is forwarded to the slave module's serial port.
The module incorporates Bluetooth Low Energy (BLE 5.1) technology, offering faster transmission speeds and an extended range of 40 to 100 meters in open environments. It also supports low-power modes, with sleep currents as low as 6 µA, and allows for custom connection and broadcast intervals to optimize power consumption.
The HLK-B40 offers several features that enhance its usability and adaptability:
The HLK-B40 is designed with features that contribute to its reliability and ease of maintenance:
| Output Power | 4dBm |
|---|---|
| Modulation Type | GFSK |
| Transmission Distance | 10m |
| Transmit Power | 4 dBm |
| Antenna | PCB Antenna |
| Frequency Range | 2402-2480MHz |
| Supply Voltage | 3.3V |
| Frequency | 2.4GHz |