Last Updated on : 2024-06-24 08:13:32download
The generic Bluetooth Low Energy (LE) module offers integration with Find My iOS, helping implement the device’s location and search features in the iOS system.
Application scenarios
Features
The protocol in this section applies to Bluetooth LE generic firmware that integrates Apple’s Find My feature. This protocol only applies to the GR5513 Bluetooth LE generic firmware.
The MCU sends the following data.
No. | Bytes | Field | Description |
---|---|---|---|
0 1 |
2 | Header | 0x55 0xAA |
2 | 1 | Version number | 0x00 |
3 | 1 | Command (CMD) | 0xC3 |
4 5 |
2 | Data length (Len) | 0x00 0x02 |
6 | 1 | Subcommand | 0x00 |
7 | 1 | Config |
|
8 | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Example:
55 AA 00 C3 00 02 00 01 C5
to enable the Find My advertising feature.55 AA 00 C3 00 02 00 00 C4
to disable the Find My advertising feature.The module returns the following data.
No. | Bytes | Field | Description |
---|---|---|---|
0 1 |
2 | Header | 0x55 0xAA |
2 | 1 | Version number | 0x00 |
3 | 1 | Command (CMD) | 0xC3 |
4 5 |
2 | Data length (Len) | 0x00 0x02 |
6 | 1 | Subcommand | 0x00 |
7 | 1 | Status |
|
8 | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Example:
55 AA 00 C3 00 02 00 01 C5
, indicating that the setting failed.55 AA 00 C3 00 02 00 00 C4
, indicating that the setting was successful.When an offline device is unbound from the Find My app, a local unbinding operation needs to be performed on the device so that the device can be paired again.
The MCU sends the following data.
No. | Bytes | Field | Description |
---|---|---|---|
0 1 |
2 | Header | 0x55 0xAA |
2 | 1 | Version number | 0x00 |
3 | 1 | Command (CMD) | 0xC3 |
4 5 |
2 | Data length (Len) | 0x00 0x01 |
6 to 6+Len-1 | 1 | Subcommand | 0x01 |
6+Len | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
For example, the MCU sends the command 55 AA 00 C3 00 01 01 C4
, and the device is locally unbound from Find My.
The binding relationship of Find My iOS is independent of that of the Tuya-enabled app. If a device is locally unbound from Find My, it will not be unbound from the Tuya-enabled app. However, the unbinding from Find My will trigger a device restart to initialize related parameters. As a result, the Bluetooth connection to the Tuya-enabled app might be interrupted.
The module returns the following data.
No. | Bytes | Field | Description |
---|---|---|---|
0 1 |
2 | Header | 0x55 0xAA |
2 | 1 | Version number | 0x00 |
3 | 1 | Command (CMD) | 0xC3 |
4 5 |
2 | Data length (Len) | 0x00 0x02 |
6 | 1 | Subcommand | 0x01 |
7 | 1 | Status |
|
8 | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Example:
55 AA 00 C3 00 02 01 01 C6
, indicating a failure.55 AA 00 C3 00 02 01 00 C5
, indicating a success.The certification test by Find My Certification Assistant (FMCA) requires reading the serial number (SN) of the device. However, for security reasons, the device prohibits reading the SN by default. This command can be used to temporarily enable the device to read the SN in order to get the necessary information for the FMCA certification test. The device will disable the read permission after 5 minutes each time it is enabled.
The MCU sends the following data.
No. | Bytes | Field | Description |
---|---|---|---|
0 1 |
2 | Header | 0x55 0xAA |
2 | 1 | Version number | 0x00 |
3 | 1 | Command (CMD) | 0xC3 |
4 5 |
2 | Data length (Len) | 0x00 0x02 |
6 | 1 | Subcommand | 0x02 |
7 | 1 | Config | 0x01 : Allow to read the SN. |
8 | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Example:
55 AA 00 C3 00 02 02 01 C7
to temporarily enable reading the Find My SN.The module returns the following data.
No. | Bytes | Field | Description |
---|---|---|---|
0 1 |
2 | Header | 0x55 0xAA |
2 | 1 | Version number | 0x00 |
3 | 1 | Command (CMD) | 0xC3 |
4 5 |
2 | Data length (Len) | 0x00 0x02 |
6 | 1 | Subcommand | 0x02 |
7 | 1 | Status |
|
8 | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Example:
55 AA 00 C3 00 02 02 01 C7
, indicating a failure.55 AA 00 C3 00 02 02 00 C6
, indicating a success.This command provides status notifications related to Find My, including but not limited to notifications on the Find My app about actions triggered, such as finding the device and playing music, and the changes in the pairing and binding status of Find My.
The module sends the following data.
No. | Bytes | Field | Description |
---|---|---|---|
0 1 |
2 | Header | 0x55 0xAA |
2 | 1 | Version number | 0x00 |
3 | 1 | Command (CMD) | 0xC3 |
4 5 |
2 | Data length (Len) | 0x00 0x02 |
6 | 1 | Subcommand | 0x03 |
7 | 1 | PlayScene | The status. Valid values:
|
8 | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Example:
55 AA 00 C3 00 02 03 00 C7
.55 AA 00 C3 00 02 03 01 C8
.55 AA 00 C3 00 02 03 02 C9
.55 AA 00 C3 00 02 03 03 CA
.55 AA 00 C3 00 02 03 05 CC
.55 AA 00 C3 00 02 03 06 CD
to notify the change of the device status.After receiving the notification of pairing timeout, the MCU should have the logic to put the device into pairing mode again. Refer to Find My advertising feature (0xC300) and send the command 55 AA 00 C3 00 02 00 01 C5
to put the device into pairing mode again.
The MCU returns the following data.
No. | Bytes | Field | Description |
---|---|---|---|
0 1 |
2 | Header | 0x55 0xAA |
2 | 1 | Version number | 0x00 |
3 | 1 | Command (CMD) | 0xC3 |
4 5 |
2 | Data length (Len) | 0x00 0x02 |
6 | 1 | Subcommand | 0x03 |
7 | 1 | Status |
|
8 | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder. |
Example:
55 AA 00 C3 00 02 03 01 C8
, indicating a failure.55 AA 00 C3 00 02 03 00 C7
, indicating a success.Yes, the Find My feature is independent of the Tuya-enabled connection and control features, and the device supports multiple connections. Therefore, devices can be connected to and controlled by the Find My app and Tuya-enabled apps at the same time.
Yes.
If you have any problems with TuyaOS development, you can post your questions in the Tuya Developer Forum.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback