Hello! I'm using a module nrf51822 as a ble peripheral device.
And my device's RSSI is alway about -60db and the power comsumtion is 4mA.
Even i tried to change in sd_ble_gap_tx_power_set with all the parameters (-40, -30, -20, -16, -12, -8, -4, 0, and 4).
And this is my main:
/**@brief Application main function.
*/
int main(void)
{
uint32_t err_code;
bool erase_bonds;
// Initialize.
APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false);
uart_init();
buttons_leds_init(&erase_bonds);
ble_stack_init();
gap_params_init();
services_init();
advertising_init();
sd_ble_gap_tx_power_set(4);
conn_params_init();
uart_putstring("UART Start!\r\n");
err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
APP_ERROR_CHECK(err_code);
// Enter main loop.
for (;;)
{
power_manage();
if(g_bConnected) {
ble_nus_string_send(&m_nus,(uint8_t*)"hello",5);
}
}
}
What did i miss?
Thanks in advance.
Awaiting for your revert.
Regards.