You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would really like to use Bluefruit and make a Long Range connection between Servers and my Central. I know that it is not build in Bluefruit by default, but there must be a way to get that done. Who can help me what to change to get Long Range to work?
I first try to update the coding to BLE_GAP_PHY_CODED right after a connect. I do that by calling set_coded_phy from the connect_event routine. The conn_handle is available there. I use the routine below, bu I keep getting error 19. I cannot change sdk_config.h because it is not the SDK but Adafruit lib in Android. I burned the bootloader: feather_nrf52840_sense_bootloader-0.9.2_s140_6.1.1.hex
void set_coded_phy(uint16_t conn_handle)
{
ble_gap_phys_t phys;
phys.tx_phys = BLE_GAP_PHY_CODED; // Gebruik Coded PHY voor transmissie
phys.rx_phys = BLE_GAP_PHY_CODED; // Gebruik Coded PHY voor ontvangst
// Stuur een PHY update request
uint32_t err_code = sd_ble_gap_phy_update(conn_handle, &phys);
if (err_code == NRF_SUCCESS) {
log_p("Request PHY-update send.");
} else if (err_code == NRF_ERROR_RESOURCES) {
log_p("Too few resources (Error 19). try again later.");
} else {
log_p("Error LongRange PHY: %d", err_code);
}
}
Does anyone have a tip for me how to make this work?
Many thanks in advance.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would really like to use Bluefruit and make a Long Range connection between Servers and my Central. I know that it is not build in Bluefruit by default, but there must be a way to get that done. Who can help me what to change to get Long Range to work?
I first try to update the coding to BLE_GAP_PHY_CODED right after a connect. I do that by calling set_coded_phy from the connect_event routine. The conn_handle is available there. I use the routine below, bu I keep getting error 19. I cannot change sdk_config.h because it is not the SDK but Adafruit lib in Android. I burned the bootloader: feather_nrf52840_sense_bootloader-0.9.2_s140_6.1.1.hex
void set_coded_phy(uint16_t conn_handle)
{
ble_gap_phys_t phys;
phys.tx_phys = BLE_GAP_PHY_CODED; // Gebruik Coded PHY voor transmissie
phys.rx_phys = BLE_GAP_PHY_CODED; // Gebruik Coded PHY voor ontvangst
// Stuur een PHY update request
uint32_t err_code = sd_ble_gap_phy_update(conn_handle, &phys);
if (err_code == NRF_SUCCESS) {
log_p("Request PHY-update send.");
} else if (err_code == NRF_ERROR_RESOURCES) {
log_p("Too few resources (Error 19). try again later.");
} else {
log_p("Error LongRange PHY: %d", err_code);
}
}
Does anyone have a tip for me how to make this work?
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions