-
Notifications
You must be signed in to change notification settings - Fork 327
Description
Describe the bug
There is a menu item to set preferred PHY on connection. This works, I can switch connection to nrf52840 device to CODED and back to 2M or whatever. My device gets the PHY update request and handles it by default code in nrf5 SDK and it works. I can see in nrfconnect log the phy being updated and also when selecting 'read PHY' menu item it shows again correctly in the log (both TX/RX as CODED or 2M)
However it does not work for the other direction, my device sends PHY update request to CODED back to the phone and nothing happens at all - nothing in log and the phy remains the same.
In the device I send the BLE_GAP_EVT_PHY_UPDATE_REQUEST with phy being CODED=4 and I later get BLE_GAP_EVT_PHY_UPDATE event with success status code 0 and RX/TX phy being unchanged and still 2M=2
Expected behavior
central device = phone running nRFConnect should accept PHY update to CODED
nrfConnect should also log the device PHY update request with the result (changed or unchanged)
- Android version: 12
- Phone model Motorola Edge 30 (dubai)
- App Version 4.29.1
Additional context
this is tested with nrf52840 boards running Espruino
PHY update works in both directions (central<->peripheral) between two devices running Espruino so I don't think the device is the problem