hello,
i am using nrf52840 with our cutomised board and trying to achieve long range using coded phy and using that long range demo example as base i have sucessfully changed ble_blinky peripheral example to phy coded and changed the ble_app_rscs_c central example to phy coded and sucessfully connecting every 10 seconds and disconnecting. my application is whenever a connection happens my device display(which is connected to pherical) should print the message that coming from server every 10 seconds.I have checked this application with coded phy but i have nt getting that much distance these are the changes i did in code for phycoded
in ble_app_blinky
#define MIN_CONN_INTERVAL MSEC_TO_UNITS(7.5, UNIT_1_25_MS) /**< Minimum acceptable connection interval (0.5 seconds). */
#define MAX_CONN_INTERVAL MSEC_TO_UNITS(500, UNIT_1_25_MS) /**< Maximum acceptable connection interval (1 second). */
#define SLAVE_LATENCY 0 /**< Slave latency. */
#define CONN_SUP_TIMEOUT MSEC_TO_UNITS(8000, UNIT_10_MS) /**< Connection supervisory time-out (4 seconds). */
static ble_gap_adv_data_t m_adv_data =
{
.adv_data =
{
.p_data = m_enc_advdata,
.len = BLE_GAP_ADV_SET_DATA_SIZE_MAX
},
.scan_rsp_data =
{
.p_data = NULL,
.len = 0
}
};
adv_params.primary_phy = BLE_GAP_PHY_CODED;
adv_params.secondary_phy = BLE_GAP_PHY_CODED;
adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED;
adv_params.p_peer_addr = NULL;
adv_params.scan_req_notification = 1;
adv_params.filter_policy = BLE_GAP_ADV_FP_ANY;
adv_params.interval = 160*2;
adv_params.duration =0;
i am setting the tx power in advertising start
err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_adv_handle, m_output_power_selected);
in central example
static ble_gap_scan_params_t m_scan_param = /**< Scan parameters requested for scanning and connection. */
{
.active = 0x01,
.interval = 0x00A0,
.window = 0x00A0,
.filter_policy = BLE_GAP_SCAN_FP_ACCEPT_ALL,
.timeout = 0x0000,
// // Choose only one of the following scan_phys
.scan_phys = BLE_GAP_PHY_CODED,
//
.extended = 1,
};
and setting the tx power in advertising start function and also in ble_gap_connected
my question is
what are the other things should i change to improve the distance?is there any method for that can any one help me with this??
is there any method to improve the range with phycoded
thanks and regards
manikandan v