I'm working with the nRF52840 PDK and I'm wondering how to change the PHY (preferably to CODED) in a Mesh. Has that been implemented yet? Or when can we expect this feature?
I'm working with the nRF52840 PDK and I'm wondering how to change the PHY (preferably to CODED) in a Mesh. Has that been implemented yet? Or when can we expect this feature?
Hi
You could try to change the radio_mode configuration in the set_default_broadcast_configuration(broadcast_t * p_broadcast) function in advertiser.c, and in the scanner_config_reset(void) function in scanner.c
In theory this should allow you to switch the entire mesh over to a different phy, but we haven't tested it so try it out at your own risk :)
We have no concrete plans at the moment to add official support for different phy's, but there is no particular reason it shouldn't work.
Please note that the long range mode is mislabeled. It is called RADIO_MODE_NRF_62K5BIT in the header file, but corresponds to the 125kbps BLE long range mode instead.
Best regards
Torbjørn
Hi
You could try to change the radio_mode configuration in the set_default_broadcast_configuration(broadcast_t * p_broadcast) function in advertiser.c, and in the scanner_config_reset(void) function in scanner.c
In theory this should allow you to switch the entire mesh over to a different phy, but we haven't tested it so try it out at your own risk :)
We have no concrete plans at the moment to add official support for different phy's, but there is no particular reason it shouldn't work.
Please note that the long range mode is mislabeled. It is called RADIO_MODE_NRF_62K5BIT in the header file, but corresponds to the 125kbps BLE long range mode instead.
Best regards
Torbjørn
If you are using the Mesh SDK, an additional caveat would be that the time spent on air for the coded phy will be more so that would mean you would need to increase the time being spent in the Timeslot API to compensate for the longer on air packets.
Edit: See Hung Bui's comments below in modifying the code to get the longer range to work.