Softdevice Extended Advertising: iOS connection

I am running into a recurring issue with attempting to connect to a nRF52840DK advertising using extended advertising from iOS devices.
Connections repeatedly fail to establish (HCI error 0x3E) regardless of how close the devices are.
All testing is being done with a nRF52840DK, NCS v2.7.0 and an in-tree sample:
```
west build -b nrf52840dk/nrf52840 zephyr/samples/bluetooth/extended_adv/advertiser/ -p
```

Essentially, no matter how many times I reboot this device and attempt to connect using nRF Connect for Mobile, it is only on very rare occasions that I get a result other than:

*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
Starting Extended Advertising Demo
Starting Extended Advertising


Connected (err 0x00)
Connected state!
Initiating disconnect within 5 seconds...
Disconnected (reason 0x3E)
Connection object available from previous conn. Disconnect is complete!
ASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/conn.c:1630
        Invalid conn type 0

Running the same sample with the Zephyr controller (CONFIG_BT_LL_SW_SPLIT=y) does not exhibit the issue:
```
west build -b nrf52840dk/nrf52840 zephyr/samples/bluetooth/extended_adv/advertiser/ -p -- -DCONFIG_BT_LL_SW_SPLIT=y
```
Console:

*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***
*** Using Zephyr OS v3.6.99-100befc70c74 ***
Starting Extended Advertising Demo
Starting Extended Advertising
Connected (err 0x00)
Connected state!
Initiating disconnect within 5 seconds...
Disconnected (reason 0x16)
Connection object available from previous conn. Disconnect is complete!
Disconnected state! Restarting advertising
Starting Extended Advertising
Connected (err 0x00)
Connected state!
Initiating disconnect within 5 seconds...
Disconnected (reason 0x16)
Connection object available from previous conn. Disconnect is complete!
Disconnected state! Restarting advertising

System Information:
iPhone 15,4 (iPhone 15)
iOS 17.5.1
nRF Connect for Mobile 2.7.7

Parents Reply Children
  • Hi Maria,

    It is almost 18 months later, and the same issue still exist on the `v3.2.0-preview2` tag, with the same reproduction steps.
    The following logs just repeat several times a second.

    Starting Extended Advertising
    Connected (err 0x00)
    Connected state!
    Initiating disconnect within 5 seconds...
    Disconnected, reason 0x3E 
    Connection object available from previous conn. Disconnect is complete!
    Remote disconnected early...
    Disconnected state! Restarting advertising
    Starting Extended Advertising
    Connected (err 0x00)
    Connected state!
    Initiating disconnect within 5 seconds...
    Disconnected, reason 0x3E 
    Connection object available from previous conn. Disconnect is complete!
    Remote disconnected early...
    Disconnected state! Restarting advertising
    Starting Extended Advertising
    Connected (err 0x00)
    Connected state!
    Initiating disconnect within 5 seconds...
    Disconnected, reason 0x3E 
    Connection object available from previous conn. Disconnect is complete!
    Remote disconnected early...
    Disconnected state! Restarting advertising

    To me this is basic functionality that doesn't work, is there any plan to fix this?

  • As far as I know, this is yet to be fixed in the SDK, as it was more than just a patch job. It is not planned for NCS 3.2.0 either. However, I was told today when asking that this has been fixed on the iOS side in iOS 26.

    Best regards,

    Simon

Related