CN / EN
CN / EN

Ask a New Question

Design Support

If you need one-on-one support for confidential technical issues with your project, please click on "Contact Us" below.

Issue Setting BLE Transmit Power Above 4 dBm on GR5513BENDU GR551x

927***950

2024-03-19 17:06

Hello,

I’m currently developing a program for the GR5513BENDU processor and encountering an issue with the Bluetooth Low Energy (BLE) transmit power setting. I’m attempting to set the maximum transmit power to 7 dBm using the ble_gap_tx_power_set function. However, when I read back the power using the ble_gap_tx_power_get function, it returns a value of 4 dBm. For some reason, I’m unable to set the power higher than 4 dBm.

Has anyone else faced this issue or can provide insight into why the transmit power cannot be set above 4 dBm despite the function allowing for a higher value?

Any help or suggestions would be greatly appreciated.

Thank you!

0 Favorites

0 Likes

13 Answers

zhongchengzhi

Goodix Employee
2024-03-19 17:57

Hi,

1. What's your SDK version?

2. did you set the advertising or connetion TX power level?

0 Comments

0 Likes

0 Favorites

Your comment

927***950

2024-03-19 22:44

Hi,

  1. My SDK version is 2.0.2, but I've also tried 2.0.1. It seems like this issue wasn't observed on version 1.7.0.
  2. Yes, I've tried both modes. I used ble_gap_tx_power_set(BLE_GAP_ACTIVITY_ROLE_ADV, 0, 7) and ble_gap_tx_power_set(BLE_GAP_ACTIVITY_ROLE_CON, 0, 7)

I'm using make for building the project.


0 Comments

0 Likes

0 Favorites

Your comment

zhongchengzhi

Goodix Employee
2024-03-20 20:41

Hi, have you tried the 3 dBm, what will happen?

1 Comment

0 Likes

0 Favorites

Your comment

927***950

2024-03-23 14:45

In both modes, when setting the BLE transmission power to 3dBm, the function ble_gap_tx_power_get returns 3.

0 Comments

0 Likes

0 Favorites

Your comment

zhongchengzhi

Goodix Employee
2024-03-25 15:07

Hi,

1. Is your chip calibrated? Could you dump "int16_t tx_power_offset" this variable?

2. You can use the instrument to measure the output power level, if the measured Tx power level is OK, you can ignore the ble_gap_tx_power_get return value.

0 Comments

0 Likes

0 Favorites

Your comment

927***950

2024-03-25 21:28

1) I do not know if my chip is calibrated. The dump of the int16_t tx_power_offset variable returns 0x0000.

2) Unfortunately, I do not have a device for measuring the output power

0 Comments

0 Likes

0 Favorites

Your comment

zhongchengzhi

Goodix Employee
2024-03-26 14:33

Could you use the attachment file replace the ble_app_cts example same name file, compile and run, then show me the log?

user_app.zip

0 Comments

0 Likes

0 Favorites

Your comment

927***950

2024-03-26 15:34
APP_I: Goodix BLE SDK V2.0.1 (commit 3b19832f)
APP_I: Local Board EA:CB:3E:CF:00:05.
APP_I: Current Time example started.
APP_D: (First tx_power_offset: 0)ADV status: 00, error: 0
APP_D: First error_code: 0, tx_pwr: 7
APP_D: (Second tx_power_offset: 12)ADV status: 00, error: 0
APP_D: Second error_code: 0, tx_pwr: 4
APP_D: (Third tx_power_offset: 0)ADV status: 00, error: 0
APP_D: Third error_code: 0, tx_pwr: 7
APP_I: (tx_power_offset: 0)status: 0, tx_pwr: 7
APP_I: (tx_power_offset: 0)status: 0, tx_pwr: 7
APP_I: (tx_power_offset: 0)status: 0, tx_pwr: 7
APP_I: (tx_power_offset: 0)status: 0, tx_pwr: 7


0 Comments

0 Likes

0 Favorites

Your comment

zhongchengzhi

Goodix Employee
2024-03-26 17:06

I see the ble_gap_tx_power_get return value is 7 dBm, not you said 4 dBm, so what's the difference?


0 Comments

0 Likes

0 Favorites

Your comment

927***950

2024-03-26 18:47

Yes, I can see that in the ble_app_cts project, setting the output power to 7 dBm is working. However, in my project, it's giving such logs:


(First tx_power_offset: 0)ADV status: 00, error: 0
First error_code: 0, tx_pwr: 4
(Second tx_power_offset: 12)ADV status: 00, error: 0
Second error_code: 0, tx_pwr: 1
(Third tx_power_offset: 0)ADV status: 00, error: 0
Third error_code: 0, tx_pwr: 4

I don't see a significant difference in the configuration of these two projects yet.

0 Comments

0 Likes

0 Favorites

Your comment

You can answer questions after logging in, please or register

Your Voice Matters
Contact Sales

Scan to follow

Open WeChat, use "Scan" to follow.