Setting TX Power Level of DA14531

Learn MoreFAQsTutorials

7 posts / 0 new
Last post
dirjud
Offline
Last seen:6 months 2 weeks ago
Joined:2018-06-14 23:50
Setting TX Power Level of DA14531

I can't find any documentation stating how to change the TX power level. I see that is adjustable from the datasheet, but I can't find how to set the appropriate register to turn the TX power down for a beacon we are building. Our beacon is getting picked up way too far away and we want to see how it performs at a lower TX power setting.

Device:
PM_Dialog
Offline
Last seen:8 hours 11 min ago
Staff
Joined:2018-02-08 11:03
Hi dirjud,
dirjud
Offline
Last seen:6 months 2 weeks ago
Joined:2018-06-14 23:50
I want to change it

I want to change it programmatically in my c-code. How do I do that?

dirjud
Offline
Last seen:6 months 2 weeks ago
Joined:2018-06-14 23:50
In looking through some

In looking through some examples, I have found the rf_pa_pwr_set() function and have been trying it, but it doesn't seem to have any effect on the RSSI as measured by the receiving device. Here is my code:

void user_app_init(void) { app_param_update_request_timer_used = EASY_TIMER_INVALID_TIMER; // Initialize Manufacturer Specific Data mnf_data_init(); // Initialize Advertising and Scan Response Data memcpy(stored_adv_data, USER_ADVERTISE_DATA, USER_ADVERTISE_DATA_LEN); stored_adv_data_len = USER_ADVERTISE_DATA_LEN; memcpy(stored_scan_rsp_data, USER_ADVERTISE_SCAN_RESPONSE_DATA, USER_ADVERTISE_SCAN_RESPONSE_DATA_LEN); stored_scan_rsp_data_len = USER_ADVERTISE_SCAN_RESPONSE_DATA_LEN; rf_pa_pwr_set(RF_TX_PWR_LVL_MINUS_19d5); //rf_pa_pwr_set(RF_TX_PWR_LVL_PLUS_2d5); default_app_on_init(); }

Am I calling this function in the correct place? Any ideas on why it doesn't appear to be working?

PM_Dialog
Offline
Last seen:8 hours 11 min ago
Staff
Joined:2018-02-08 11:03
Hi dirjud,

Hi dirjud,

您可以使用rf_pa_pwr_set () API来select the Tx output power level- it is in the rf_531.h / .c. The preferable Tx level can be selected from the rf_tx_pwr_lvl_t enum, which defines the transmit output power level from -19.5 dBm up to +2.5 dBm

Please give a try and let me know with the results.

Thanks, PM_Dialog

dirjud
Offline
Last seen:6 months 2 weeks ago
Joined:2018-06-14 23:50
In looking through some

In looking through some examples, I have found the rf_pa_pwr_set() function and have been trying it, but it doesn't seem to have any effect on the RSSI as measured by the receiving device. Here is my code:

void user_app_init(void) { app_param_update_request_timer_used = EASY_TIMER_INVALID_TIMER; // Initialize Manufacturer Specific Data mnf_data_init(); // Initialize Advertising and Scan Response Data memcpy(stored_adv_data, USER_ADVERTISE_DATA, USER_ADVERTISE_DATA_LEN); stored_adv_data_len = USER_ADVERTISE_DATA_LEN; memcpy(stored_scan_rsp_data, USER_ADVERTISE_SCAN_RESPONSE_DATA, USER_ADVERTISE_SCAN_RESPONSE_DATA_LEN); stored_scan_rsp_data_len = USER_ADVERTISE_SCAN_RESPONSE_DATA_LEN; rf_pa_pwr_set(RF_TX_PWR_LVL_MINUS_19d5); //rf_pa_pwr_set(RF_TX_PWR_LVL_PLUS_2d5); default_app_on_init(); }

Am I calling this function in the correct place? Any ideas on why it doesn't appear to be working?

PM_Dialog
Offline
Last seen:8 hours 11 min ago
Staff
Joined:2018-02-08 11:03
Hi dirjud,

Hi dirjud,

Accordign to rf_pa_pwr_set() comments :

"Selects the Tx output power level. The selected value will be applied to hardware when set_recommended_settings() is called."

Can you please call the set_recommended_settings() ? Is there any change?

Thanks, PM_Dialog