This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

iPhone7 + nrf52 + SDK12/s132 doesn't connect

I have an odd situation. I've been using an iPhone 5 and 6 to connect to, and test against, both an nRF51 (redbear nano) and the same code built for nRF52. It works fine.

Today I provisioned an iPhone 7, with the latest version of ios of course.

And my app works perfectly fine with the nRF51, but it is completely unable to talk with the nRF52.

When I explore using nRF Connect on the iPhone 7, as you'd expect I can see everything perfectly when looking at the nRF51.

But when I explore the nRF52 using nRF Connect, and tap the advertised device, something different happens. On the Service screen, it says "Connected", however there are zero advertised services listed. It is truly bizarre.

Using wireshark I've done a capture - see response.

I am not an expert at on-wire analysis or even wireshark, so I'm hoping that you might be able to suggest what I do to take next steps to debug.

Your thoughts would be appreciated; thanks.

Parents
  • I know that this hasn't gotten attention yet, but I really hope someone from Nordic would please comment because it's really a blocker.

    I have now reduced this to being an SDK V12 issue. Meaning, the following all work perfectly with my app and Nordic's own: iPhone 5s + nRF51822 + SDKV11/S130 iPhone 7 + nRF51822 + SDKV11/S130 iPhone 5s + nRF52822 + SDKV12/S132

    It fails, with my app and Nordic's own, on: iPhone 7 + nRF52822 + SDKV12/S132

    FYI, because I know that this is likely to be the very first thing that a Nordic employee would reasonably ask, I've now eliminated my app from the equation.

    These two captures are from the SDKV12 ble_peripheral hrs app, using the up-to-date nRF Toolbox app on the iPhone.

    I'm running the hrs app on my nRF52832.

    This capture is done using the iPhone 5s running iOS 9.3.5, and it works perfectly:

    dl.dropboxusercontent.com/.../hrs-nrf52-iphone5s-good.pcapng

    This capture is done using the iPhone 7 running iOS 10.0.1, and it fails the same way as my app failed above:

    dl.dropboxusercontent.com/.../hrs-nrf52-iphone7-bad.pcapng

  • Doubt it's an SDKV12 SDK issue, more likely an S132 V3 issue. The captures don't show anything particularly interesting, it does show the exchange of max TX/RX length information (LL data length) in the bad capture because the softdevice identifies as BTLE 4.2.

    It would be interesting to see a dump of iPhone7 -> S132V2 (SDK11 if you like) or to nrf51822 running S130, that should show a similar start. The dump you have the phone is BTLE 4.1

    I don't understand the random L2CAP message from the master in the middle of the whole thing, in either dump, it's marked as a continuation but doesn't continue anything.

    I'd be inclined to say iOS bug at this point. I don't know if any phone previous to iPhone 7 identifies as BTLE 4.2, and there can't be many products out there running S132V3. The nRF52 has replied to everything, the phone isn't asking more questions, which it should be.

Reply
  • Doubt it's an SDKV12 SDK issue, more likely an S132 V3 issue. The captures don't show anything particularly interesting, it does show the exchange of max TX/RX length information (LL data length) in the bad capture because the softdevice identifies as BTLE 4.2.

    It would be interesting to see a dump of iPhone7 -> S132V2 (SDK11 if you like) or to nrf51822 running S130, that should show a similar start. The dump you have the phone is BTLE 4.1

    I don't understand the random L2CAP message from the master in the middle of the whole thing, in either dump, it's marked as a continuation but doesn't continue anything.

    I'd be inclined to say iOS bug at this point. I don't know if any phone previous to iPhone 7 identifies as BTLE 4.2, and there can't be many products out there running S132V3. The nRF52 has replied to everything, the phone isn't asking more questions, which it should be.

Children
No Data
Related