Last Updated on : 2025-06-04 03:18:00download
Bluetooth Low Energy (LE) Long Range is a key enhancement introduced by the Bluetooth Special Interest Group (SIG) in the Bluetooth 5.0 standard, designed to address the distance limitations of conventional Bluetooth LE communications. Its core technological innovation lies in the adoption of the LE Coded PHY, which significantly enhances link budget through forward error correction (FEC) and symbol redundancy (S=2/S=8 encoding schemes). This enables reliable communication distances exceeding one kilometer in open environments.
It is recommended to use the TI official development boards. For more hardware information, see BLE-CC2340.
Install the TuyaOS development environment and download the latest version of TuyaOS SDK (CC2340). For detailed steps, refer to Environment Setup.
Connect the development board to the computer via the serial port.
Download the host software (refer to the user guide). Select the correct serial port and set the baud rate 115200.
Choose System > Handshake and click Send Cmd to implement a handshake between the host software and the device.
Next, you can use the host software to explore more functionalities. For more information, see the Bluetooth LE Basics Demo.
Bluetooth LE devices typically operate in two states: advertising and connecting. The tuyaos_demo_ble_cc2340
supports two types, including standard advertising and long-range advertising.
The standard advertising uses the following interfaces:
tal_ble_advertising_start
tal_ble_advertising_data_set
tal_ble_advertising_stop
tal_ble_advertising_data_update
The long-range advertising uses the following interfaces:
tal_ble_ext_advertising_create
tal_ble_ext_advertising_config
tal_ble_ext_advertising_start
tal_ble_ext_advertising_stop
tal_ble_ext_advertising_delete
Long-range advertising must first be configured as extended advertising.
Long-range advertising and standard advertising can be enabled simultaneously or used independently. The following four scenarios are described:
tal_ble_advertising_start
interfaces in tuya_sdk_callback.c
.TUYA_BLE_FEATURE_LONG_RANGE
.Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback