In order to change the bitrate of the nRF52840 I tried to change the following code on advertiser.c :
static inline void set_default_broadcast_configuration(broadcast_t * p_broadcast)
{
p_broadcast->params.access_address = BEARER_ACCESS_ADDR_DEFAULT;
p_broadcast->params.radio_config.payload_maxlen = RADIO_CONFIG_ADV_MAX_PAYLOAD_SIZE;
p_broadcast->params.radio_config.radio_mode = RADIO_MODE_BLE_1MBIT;
//p_broadcast->params.radio_config.tx_power = RADIO_POWER_NRF_0DBM;
#if NRF52840_XXAA
p_broadcast->params.radio_config.tx_power = RADIO_POWER_NRF_POS8DBM;
#else
p_broadcast->params.radio_config.tx_power = RADIO_POWER_NRF_POS4DBM;
#endif
}
I tried to change the radio_mode to RADIO_MODE_NRF_62K5BIT in order to gain more receiver sensitivity.
After the change the nodes stop communicating.
Can you help?