Last Updated on : 2024-11-20 02:13:28download
This topic describes the generic solution for interfacing with Tuya’s Bluetooth modules, consisting of protocol features description and common troubleshooting questions.
The Bluetooth generic firmware is developed by Tuya for adapting to different Bluetooth chip platforms. Your MCU can interface with Tuya’s Bluetooth modules that have the generic firmware flashed to enable your product to connect to the Tuya Developer Platform. Besides it, the generic firmware provides extended features such as OTA update, production test, and low power mode.
Functionality
In a nutshell, the Bluetooth generic firmware provides two essential functions.
The generic firmware does not process the data received from the MCU but only verifies the data. The module serves as a mediator that connects the MCU with the cloud and transmits data between them.
Firmware category
The generic firmware is classified by product categories.
Product category | Chip/module |
---|---|
Locks | TYBN1 and BK3431Q |
Health or shared products | BK3432, BK3431Q, and TYBT3L |
Common products | BK3432, TYBT3L, and TYBT4L |
A module model can have various firmware specific to multiple product categories.
Protocol category
Protocol | Description |
---|---|
Generic protocol | Applies to all product categories |
Low power protocol | Applies to certain product categories |
Lock-specific generic protocol | Applies to the lock category |
Health product-specific generic protocol | Applies to the health product category |
This topic describes the basic and generic protocol applicable to all categories. Specifically, the firmware varies depending on product categories and models. For more information, see Categories of generic firmware.
The serial communication between the Bluetooth module flashed with the generic firmware and the MCU follows the Bluetooth generic serial protocol. The serial communication enables the Bluetooth module to communicate the firmware features to the MCU.
This serial protocol comprises the basic features, such as heartbeat detection and status reporting, as well as extended features such as OTA update. For more information, see Bluetooth Serial Communication Protocol.
0x00
to 0x09
.Tuya continuously updates the generic firmware with fixed issues and added new features.
The MCU SDK contains the code used to implement the Bluetooth generic serial protocol so that you can directly port the SDK to your target platform to enable your product to connect to the Tuya Developer Platform. For more information, see MCU SDK Porting.
The MCU SDK requirements for the MCU are as follows.
Steps to get the MCU SDK are as follows.
Log in to the Tuya Developer Platform and go to the product list.
Choose a product in Developing and click Continue to Develop on the Operation column.
Click the tab named Hardware Development. Scroll down the page, find Development Documents, and download the MCU SDK.
For more information, see Bluetooth Common Solution.
If your MCU does not have sufficient resources or porting SDK is not feasible, you can interface the serial protocol yourself. Note that the basic features must be implemented. Otherwise, your product will not work properly. For more information, see Basic Features.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback