2 Replies Latest reply on Aug 9, 2016 1:54 AM by resh

    Day16_Authentication does not work

    ssn2kor_1610241

      Hi,

         

      When I run the 100 Projects in 100 days example "#16 Authentication", http://www.cypress.com/blog/100-projects-100-days/project-016-authentication I have problems bonding and reconnecting on my Nexus phone with CySmart app,

         

      I don't get screen to enter Passkey and I see "Bonding in progress.. Please wait" after a while the device disconnects with "Authentication process timeout".

         

      Below is the terminal output:

         

      Bluetooth Stack ON:
      Set the I/O capabilities:
      Updated the I/O capabilities:DISPLAY_ONLY
      Started to advertise
      Device Connected

         

      CYBLE_EVT_GAP_AUTH_REQ from Master:
      Unauthenticated and data signing
      Bonding:yes
      eKeySize: 0x10
      err: 0x0
      CYBLE_EVT_GAP_PASSKEY_DISPLAY_REQUEST. Passkey is: 1454889.
      Please enter the passkey on peer device.
      CYBLE_EVT_GAP_AUTH_FAILED: 15
      Device Disconnected

         

      As far I understand the Passkey should be 6 digits but I see here as 7 digits(sometimes). Is this correct(attached is the uart log file)?

         

      Also how do I use static passkey entry, I did see a post regarding this but could not find much information. Some example workspace would be greatly helpful.

         

      Any inputs would be of great help and appreciate the same.

         

      Regards