Last Updated on : 2024-08-12 06:28:11download
Integration of standard Bluetooth Low Energy (LE) protocol helps you test Bluetooth LE functionalities and data pass-through. This applies to production tests on PCBAs and end products to guarantee the device quality and performance during the manufacturing process.
After you have tested the basic features, you can perform functionality testing separately or integrate it into the end product test to verify the wireless performance. You can define how a test is triggered as needed.
Scenarios:
Features:
Perform the received signal strength indicator (RSSI) test on modules to measure the RF performance.
Test tool:
ty_mdev
.Test steps:
Some chip models such as BK3431Q and BK3432 do not support scanning for a designated beacon. You need to perform an RF test with a dongle.
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) | 0x0E |
4 5 |
2 | Data length | 0x00 0x00 |
6 | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder |
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) | 0x0E |
4 5 |
2 | Data length (Len) | Upper 8 bits Lower 8 bits |
6 to 6+Len-1 | Len | Data | See the following table |
6+Len | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder |
Data format
Data | Description |
---|---|
{“ret”:true,“rssi”:“-55”} | The RSSI is -55 dBm. |
{“ret”:false} | The designated signal is not found. |
With the data pass-through testing service, the module enables a connection to the Bluetooth host software (including dongle or mobile app). Also, the module and the MCU exchanges data. When the MCU needs to implement production tests over Bluetooth, this command can be used for the MCU to communicate with the host software or mobile app.
Module <-> MCU:
No. | Bytes | Field | Description |
---|---|---|---|
0 1 |
2 | Header | 0x66 0xAA |
2 | 1 | Version number | 0x00 |
3 | 1 | Command (CMD) | 0xF0 |
4 5 |
2 | Data length (Len) | Upper 8 bits Lower 8 bits |
6 | 1 | Protocol type | 0x03 |
7 to 7+Len-1 | Len | DATA | Includes the subcommand and data for the pass-through protocol |
7+Len | 1 | CRC8 | Start from the header, add up all the bytes, and then divide the sum by 256 to get the remainder |
A: Typically, beacon testing is the simplest way to test Bluetooth functionalities and can basically ensure that Bluetooth functionalities work as expected.
The dongle test or data pass-through method is better for testing firmware functionalities in an all-round way, including the Bluetooth functionalities and more. The specific testing method depends on the production testing needs of the product.
A:
Make sure the Bluetooth module is in the unbound state, because the production test can only be implemented in the unbound state.
Make sure you select the correct Service UUID in the mobile app. Some earlier firmware might use UUID 0x1910
, while newer firmware might use UUID 0xFD50
. You can use the nRF Connect app to connect the mobile app and device. Observe and check whether they are connected.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback