This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Auto pairing and connect nrf51822 with 2 iphones

Hello,

I have a project based on nrf51822 and SDK 10/S130. I have read about advertising mode and whitelist, but could not find my answer for my issue anywhere in the zone. I am trying to pair and connect 2 iphone with my project, not at the same time. Is it possible to pair and auto connect to iphone 1, and then disconnect and use the second iphone to pair and connect. What I am getting is this error on iphone 2: “pairing unsuccessful pairing took too long, Make sure “dev_name” is turned on , in range and is ready to pair. Also the way I disconnect the first iphone is by moving it into some other room with long distance away to make sure that I see “dev_name Not Connected” on iphone 1, and also I see the led start blinking showing its advertising again. If I bring the iphone 1 close to nrf51822, I see instant pairing and connection automatically.

Thanks

Parents
  • On embedded device like nRF5x chips all the magic lives in firmware. So ultimate question is: what bloody firmware you have in that thing?:) If it is your customized FW then you should be able to debug how it advertise and what it does on Security Manager level once the connection is established. If you use untouched FW from Nordic SDK then we should be able to see in the code what it can do in terms of paired and bonded devices.

    Also in such cases having BLE sniffer or similar RF analyzer trace is very helpful (actually that's the way how most of BLE developers would debug this case because it's crucial to see if the second phone connects at all and if then in what stage it hangs).

Reply
  • On embedded device like nRF5x chips all the magic lives in firmware. So ultimate question is: what bloody firmware you have in that thing?:) If it is your customized FW then you should be able to debug how it advertise and what it does on Security Manager level once the connection is established. If you use untouched FW from Nordic SDK then we should be able to see in the code what it can do in terms of paired and bonded devices.

    Also in such cases having BLE sniffer or similar RF analyzer trace is very helpful (actually that's the way how most of BLE developers would debug this case because it's crucial to see if the second phone connects at all and if then in what stage it hangs).

Children
No Data
Related