4 Replies
      Latest reply on Oct 22, 2015 10:22 AM by Gualtier Malde
      KaHo Level 1 Level 1 (0 points)

        Dear Team and Developpers,


        My team and I have engineered and released last year on the market a BLE product based on the TI cc2541, stack 1.4.0.

        This accessory uses Just Works pairing.


        Up to iOS 9.0.x everything was just fine.

        Since the upgrade I noticed that full pairing (1st ever connection) or half pairing (the accessory is forgotten on the iPad 3) fail


        Using ComProbe BLE Protocol Analyzer, the pairing process stops just after the exchange of the pairing random value at the SMP layer.

        Here are the logs, to be opened the ComProbe free software : https://drive.google.com/file/d/0BxzxSBSzsu49aW45d1FyeFE2SkE/view?usp=sharing

        The central (iPad 3) isn't actually starting the encryption.


        The connection is then terminated after channel encryption timeout.


        That's a serious problem as, for my iPad 3 clients, they cannot use their accessory anymore.


        Is it a known bug ?

        Is there any workaround ?




        • Re: BLE pairing fails with iOS 9.0.x on iPad 3 A1416 model
          Gualtier Malde Apple Staff Apple Staff (530 points)

          Please test this with the latest seed of iOS 9.1 beta. If it does not resolve your issue with the iPad 3, please file a bug report at https://bugreport.apple.com


          In the meantime, if you want to solve this issue on your end you can try and fix it in firmware.

          The reason for having this issue is the peripherals assuming that some reserved bits in BLE Spec 4.0 would always be zero.

          iOS 9 is now using the new LE Secure Connections pairing model, and the SC bit is set to 1 in the pairing request.


          The peripheral can ignore this request and choose to use the legacy pairing model, but it cannot ignore the bits when creating the keys.


          The peripheral is supposed to use the pairing request exactly as received to calculate the keys. Some peripherals are assuming that some of the reserved bits would be zero and calculating the keys based on the wrong data when iOS sends a pairing request with these bits (in this case the SC bit) set to 1.

          1 of 1 people found this helpful
            • Re: BLE pairing fails with iOS 9.0.x on iPad 3 A1416 model
              KaHo Level 1 Level 1 (0 points)

              Dear Gualtier,


              Thanks for your feedback! I'll try the 9.1 Beta ASAP and share the results on this forum.

              The solution of adapting our accessory firmware may be hard or even impossible for the products already sold.




              • Re: BLE pairing fails with iOS 9.0.x on iPad 3 A1416 model
                KaHo Level 1 Level 1 (0 points)

                Dear Gualtier,


                I have new logs that I think worth sharing.


                For the same accessory with the same firmware and the same version of iOS (9.0.2), but with an iPadMini (A1432), the encryption starts right after the pairing random exchange. You can see the LL_ENC_REQ sent by the Central in these log : drive.google.com/.../view


                IMHO this is the symptom : the central sends no LL_ENC_REQ.

                If I remember well, iPads 3 were the very firsts pads to be compatible with BLE, and have BT 4.0 only chips. This is confirmed by the LL_VERSION_IND in the logs.


                If iOS 9.0.2 uses the same LE Secure Connection features whatever the iPhone/iPad model, the fact that this lack of encryption appears only with iPads 3  would mean that this is a bug for this model and maybe because it has BT4.0 controller.


                What do you think about it ?


                Best Regards,