5 Replies Latest reply on Feb 28, 2018 9:12 AM by e.pratt_1639216

    Bonding PSoC 4 BLE with an iPad Air 2


      Using the PSoC 4 BLE Pioneer board and the example project called "BLE Proximity Bonding- Peripheral" by GRSR I can connect to my iPad Air 2 using the "LightBlue" app just fine, and they both act as if they are bonded if I power down the Pioneer board and power it back up....unless I leave its power off for 7 minutes or more.   Less than 7 minutes and they re-connect as they should.  More than 7 minutes and it's as if they never heard of each other before.  I've also tried the same test using an app I created for the iPad with TechBASIC with the same results. 


      Any thoughts or advice anyone?




        • 1. Re: Bonding PSoC 4 BLE with an iPad Air 2

          Hello ,


          Kindly attach the project.




          • 2. Re: Bonding PSoC 4 BLE with an iPad Air 2

            The only thing that would change depending on how long you leave the unit off is whether a potential battery/capacitor discharges within that time frame. Are you sure the unit is turning off in the first place, and not just having the power source disconnected? (The unit might have enough power stored to hold data for 7 minutes for example before the capacitor/charge runs out).

            • 3. Re: Bonding PSoC 4 BLE with an iPad Air 2

              File attached to original message. 


              • 4. Re: Bonding PSoC 4 BLE with an iPad Air 2



                I did think of the power held up by a cap but with power off there remains only about 1mv of noise on vdd.  To be sure, though, I connected a short wire from vdd to Gnd (with power disconnected) and it had no effect.


                Thinking more about this, it seems like the power being held up by a cap, etc. shouldn't keep it from reconnecting when power is reapplied. Unless, somehow, that erased the stored bonding info from flash.


                I would like to bounce another thought off of you:   According to several things I picked up on the net it sounds like iOS decides to store bonding information only after it figures out the peripheral wants it to by reading a secure characteristic or service. It also seems like that may mean that my PSoC4 BLE Component has to be set for bonding and authentication with encryption.   It doesn't seem like this is possible when it doesn't have input/output for authenicating it.  What do you think?




                • 5. Re: Bonding PSoC 4 BLE with an iPad Air 2

                  Interesting thought; Yeah, powering stuff off is usually straight forward, but it was a thought


                  Bonding information has to be explicitly stored by both parties for it to work. I assume you are already storing it on the local PSoC4, so we can rule that out. And from the sounds of it, the iPad Air 2 holds the bond information for 7 minutes before wiping the bonding data and not using it.


                  One of the two devices needs to either: Request bonding when they connect together, or you need to access bonding-restricted attributes with the Central device when connected to initiate a bonding sequence (you should have code for handling this already).


                  You can still do bonding/authentication without input/output, BUT you will need to determine how you want it to truly authenticate then, as the easiest way is to have the human user verify both sides of the device for confirmation (OutOfBand key passing using a human).


                  You can either do this with a first device bonds, some button/procedure to initiate bonding for a new device, some alternative human interface to bond, etc. The software can be written to handle custom bonding/authentication with no Input/Output, but it makes it much harder than it would be otherwise