This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

FANSTEL EV-BT840F set maximum transmission power +8dbm

Hii

I m using Fanstel Ev board (BT840F) using nRF5248 Fimware. 

i want to set  maximum transmission power +8dbm in FANSTEL Ev Board but i got an error code 7 is Indicate invalide parameter.

same firware i used in nRF52840 DK ,it's work well no issue ,so i need solution from you plz reply ASAP.

Note : I have set +4dbm Tx power and it's workig well but i want to set max Tx power.

Parents
  • Hi

    1. What function is returning error 7?
    2. What SDK and Softdevice version are you using?
    3. Are you using the exact same versions on both kits?
    4. Can you show us your code?

     

  • Hi

    Ans1.  Tx Power Set Function

                        err_code= sd_ble_gap_tx_power_set(RADIO_TXPOWER_TXPOWER_Pos8dBm);
                       APP_ERROR_CHECK(err_code);

    Ans2. I m using s132_nrf52_3.0.0_softdevice ,SDK -nRF5_SDK_12.3.0_d7731ad

    Ans3. Same Firmware i m using both kits

    ANS4. 

    static void gap_params_init(void)
    {
    uint32_t err_code;
    ble_gap_conn_params_t gap_conn_params;
    ble_gap_conn_sec_mode_t sec_mode;

    BLE_GAP_CONN_SEC_MODE_SET_OPEN(&sec_mode);

    err_code = sd_ble_gap_device_name_set(&sec_mode,
    (const uint8_t *) DEVICE_NAME,
    strlen(DEVICE_NAME));
    APP_ERROR_CHECK(err_code);

    //Set power level to +8dBm
    err_code = sd_ble_gap_tx_power_set(RADIO_TXPOWER_TXPOWER_Pos8dBm);
    // APP_ERROR_CHECK(err_code);
    if(err_code==NRF_SUCCESS)
    {
    nrf_gpio_pin_set(LED_3);
    nrf_delay_ms(2000);

    nrf_gpio_pin_clear(LED_3);
    nrf_delay_ms(1000);

    nrf_gpio_pin_set(LED_3);
    nrf_delay_ms(2000);

    nrf_gpio_pin_clear(LED_3);
    nrf_delay_ms(1000);

    }
    else
    {
    //printf("\r\nTX  SET ERROR = %04x\r\n",err_code);
    }

    memset(&gap_conn_params, 0, sizeof(gap_conn_params));
    gap_conn_params.min_conn_interval = MIN_CONN_INTERVAL;
    gap_conn_params.max_conn_interval = MAX_CONN_INTERVAL;
    gap_conn_params.slave_latency = SLAVE_LATENCY;
    gap_conn_params.conn_sup_timeout = CONN_SUP_TIMEOUT;

    err_code = sd_ble_gap_ppcp_set(&gap_conn_params);
    APP_ERROR_CHECK(err_code);
    }

  • Hi,

    The S132 is made for nRF52832 which doesn't support 8 dBm output power. Hence you get error 7, NRF_ERROR_INVALID_PARAM, when you call sd_ble_gap_tx_power_set() with 8 as a parameter. 

Reply Children
No Data
Related