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

connection problem after bond is restored

Hi, I have successfully implemented a HID keyboard, using the nRF8001 and arduino sdk 0.9.1 ported to a microchip PIC18F controller. Connecting to iPhone iOS7.1.2

Everything works well until i reset power on the micro controller. Then it does the following:

Bond restored successfully

Already bonded : Advertising started : Waiting to be connected

Evt Connected

Already bonded : Advertising started : Waiting to be connected

Evt Connected

and stays in this loop.

I then have to delete the bond on the micro, and forget the device from the iPhone.

I would be grateful for any suggestions on where to look to resolve this issue

kind regards,

Damian

Parents
  • The default HID_Keyboard_template example will print the text below when it's been bonded with a central. It will expect to be connected to the same central every time on startup until you clear the bond.

    --------------------------------------------------------------------------------------------
    Arduino setup
    Evt Device Started: Setup
    Evt Device Started: Standby
    Previous Bond present. Restoring
    Using existing bond stored in EEPROM.
       To delete the bond stored in EEPROM, connect Pin 6 to 3.3v and Reset.
       Make sure that the bond on the phone/PC is deleted as well.
    Bond restored successfully
    Already bonded : Advertising started : Waiting to be connected
    --------------------------------------------------------------------------------------------
    

    If you clear the bond it prints:

    --------------------------------------------------------------------------------------------
    Arduino setup
    Evt Device Started: Setup
    Evt Device Started: Standby
    No Bond present in EEPROM.
    Advertising started : Waiting to be connected and bonded
    --------------------------------------------------------------------------------------------
    

    So it looks like you need to clear your bond on the nRF8001 device and you should be able to reconnect and bond to a new device.

Reply
  • The default HID_Keyboard_template example will print the text below when it's been bonded with a central. It will expect to be connected to the same central every time on startup until you clear the bond.

    --------------------------------------------------------------------------------------------
    Arduino setup
    Evt Device Started: Setup
    Evt Device Started: Standby
    Previous Bond present. Restoring
    Using existing bond stored in EEPROM.
       To delete the bond stored in EEPROM, connect Pin 6 to 3.3v and Reset.
       Make sure that the bond on the phone/PC is deleted as well.
    Bond restored successfully
    Already bonded : Advertising started : Waiting to be connected
    --------------------------------------------------------------------------------------------
    

    If you clear the bond it prints:

    --------------------------------------------------------------------------------------------
    Arduino setup
    Evt Device Started: Setup
    Evt Device Started: Standby
    No Bond present in EEPROM.
    Advertising started : Waiting to be connected and bonded
    --------------------------------------------------------------------------------------------
    

    So it looks like you need to clear your bond on the nRF8001 device and you should be able to reconnect and bond to a new device.

Children
No Data
Related