6 Replies Latest reply on Nov 28, 2016 1:15 AM by chaplin.u_1533771

    Paring/Bonding problem with CySmart App on Android

    giorgio.marinangeli_1521296

      I want connect my BLE peripheral device with an Android app using pairing/bonding features.

         

      As start point I used Day_015_Bonding example from Cypress 100_Projects_in_100_Days examples.

         

      As Android App I used CySmart App running on my Asus NEXUS Tablet with Android 5.1 installed.
      The connection is never done.

         

      My tablet rejects the connection and It doesn't show me any PassKey Form to enable the connection and complete the pairing/bondin procedure.

         

      I tried to use a different Android APP like nRF Master Control Panel and the connection doesn't work with this app too.

      In the serial log console, connected with my CYBLE 0220001 device, no passkey is showed.
      The paring/bonding procedure doesn't work.

         

      This is the serial console output:

         

      BLE_Bonding Device ON
      Starting to advertise
      Advertisement is enabled
      Device  Connected
      Starting Discovery
      Discovery complete.
      CYBLE_EVT_GAP_AUTH_FAILED: 18
      Device Disconnected
      Restarting Advertisement..
      Advertisement is enabled

         

      If I use CySmart Software V.1.1 running on my Windows 7 PC with cypress BLE dongle,
      I can discover my BLE peripheral,
      When i press connect button, CySmart software requires the PassKey.
      My BLE peripheral generates the PassKey ( I can read Its on serial console ).
      And the pairing/bonding connection works well.

         

      Please help me, 
      I need to connect my peripheral with an android app in secure mode using a paring PassKey.