I just make some change Tx power level on "ble_app_blinky" app, i see that: when change Tx power(-20, -16,.., -4, 0, 4) like this code i mark red color below.
-------------------------------------------------
int8_t tx_power_level = -20;
ble_uuid_t adv_uuids[] = {{LBS_UUID_SERVICE, m_lbs.uuid_type}};
// Build and set advertising data.
memset(&advdata, 0, sizeof(advdata));
advdata.name_type = BLE_ADVDATA_FULL_NAME;
advdata.include_appearance = true;
advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
advdata.p_tx_power_level = &tx_power_level;
memset(&srdata, 0, sizeof(srdata));
srdata.uuids_complete.uuid_cnt = sizeof(adv_uuids) / sizeof(adv_uuids[0]);
srdata.uuids_complete.p_uuids = adv_uuids;
//srdata.p_tx_power_level = &tx_power_level;
err_code = ble_advdata_encode(&advdata, m_adv_data.adv_data.p_data, &m_adv_data.adv_data.len);
APP_ERROR_CHECK(err_code);
err_code = ble_advdata_encode(&srdata, m_adv_data.scan_rsp_data.p_data, &m_adv_data.scan_rsp_data.len);
APP_ERROR_CHECK(err_code);
--------------------------------------------------------
Check " nRF Connect" on smart phone tx power display on my phone is changed like photo below. Tx power display changed but RSSI same(the distance from NRF52811 to my phone same.)
I cannot add image file so i will text here!
-------------------------
Nordict_Blinky
Services: Nordic LED and Button Service
Tx Power: -20 dbm
Rssi: -55dbm(range: -54dbm->-58dbm)
-------------------------
Nordict_Blinky
Services: Nordic LED and Button Service
Tx Power: 4 dbm
Rssi: -56dbm(range: -55dbm->-57dbm)
-------------------------
Measure power consumtion with power monitor equipment. It not change, it same for all case tx_power_level = -20 or -16 or ..4dm, @@
int8_t tx_power_level = -20; int8_t tx_power_level = 4;
-->Is that we can not setup Tx power level for increate battery time life in the program code?
Can you share experience to change Tx power??
Thanks