7 Replies Latest reply on Oct 2, 2015 6:29 AM by rdy_set_go

    How do I solve Failed to pair: org.bluez.Error.AuthenticationFailed error on Intel Edison

    Duc-Ngo-CSSE

      Hi,

       

      I am using Intel Edison with a Nordic nRF51822 Bluetooth Smart Beacon Kit v1.1. I am trying to pair the Intel Edison using bluetooth and bluetoothctl command to the Nordic Bluetooth Smart Beacon.

       

      I enabled bluetooth using these commands:

       

      rfkill unblock bluetooth

      bluetoothctl

       

      scan on

      // to find the MAC address of the bluetooth smart beacon

       

      scan off

      // turn off the asynchronous scan

      agent on

      default-agent

      // set the agent on to the default-agent

      pair F8:8D:A2:5A:12:54

       

      I get these error messages after letting it connect:

       

      [CHG] Device F8:8D:A2:5A:12:54 Connected: yes

      Failed to pair: org.bluez.Error.AuthenticationFailed

      [CHG] Device F8:8D:A2:5A:12:54 Connected: no

       

      Any help would be greatly appreciated.

        • 1. Re: How do I solve Failed to pair: org.bluez.Error.AuthenticationFailed error on Intel Edison
          CMata_Intel

          Hi Duc-Ngo-CSSE ;

           

          Which image are you using? Are you using the last release and BlueZ5.24?

          Try these steps:

          root@edison:~# rfkill unblock bluetooth 
          root@edison:~# bluetoothctl 
          [bluetooth]# agent KeyboardDisplay 
          [bluetooth]# default-agent 
          [bluetooth]# scan on 
          [bluetooth]# scan off 
          [bluetooth]# pair <device> 
          

           

          Regards;

          CMata

          • 2. Re: How do I solve Failed to pair: org.bluez.Error.AuthenticationFailed error on Intel Edison
            Duc-Ngo-CSSE

            On Intel Edison, this is the output from running uname -a

             

            root@ksedison4:~# uname -a

            Linux ksedison4 3.10.17-poky-edison+ #1 SMP PREEMPT Fri Jan 30 14:16:35 CET 2015 i686 GNU/Linux

             

            The Intel Edison I am using runs BlueZ5.24.

            root@ksedison4:~# bluetoothctl

            [bluetooth]# version

            Version 5.24

             

            I am attempting to pair the Intel Edison to a Texas Instruments SensorTag (which has a Bluetooth chip).

             

            The following error is produced from running the suggested commands.

                 Failed to pair: org.bluez.Error.AuthenticationCanceled

             

            This is the output on Intel Edison after running the suggested commands:

             

            root@ksedison4:~# rfkill unblock bluetooth

            root@ksedison4:~# bluetoothctl

            [NEW] Controller 98:4F:EE:03:83:AB ksedison4 [default]

            [NEW] Device F8:8D:D2:6A:97:18 One

            [bluetooth]# agent KeyboardDisplay

            Agent registered

            [bluetooth]#

            [bluetooth]# default-agent

            Default agent request successful

            [bluetooth]# scan on

            Discovery started

            [CHG] Controller 98:4F:EE:03:83:AB Discovering: yes

            [NEW] Device F0:B4:79:11:29:A7 Eliko Hagen’s MacBook Pro

            [NEW] Device F8:8D:A2:5A:12:54 BC-6A-29-C3-86-F4

            [CHG] Device F8:8D:A2:5A:12:54 Name: SensorTag

            [CHG] Device F8:8D:A2:5A:12:54 Alias: SensorTag

            [CHG] Device F8:8D:A2:5A:12:54 RSSI: -56

            [bluetooth]# pair F8:8D:A2:5A:12:54

            Attempting to pair with F8:8D:A2:5A:12:54

            [CHG] Device F8:8D:A2:5A:12:54 Connected: yes

            [CHG] Device F8:8D:A2:5A:12:54 Connected: no

            Failed to pair: org.bluez.Error.AuthenticationCanceled

            [CHG] Device F8:8D:A2:5A:12:54 RSSI: -74

            [bluetooth]#

             

            I appreciate the help. Do you know what could be causing the following error?

                 Failed to pair: org.bluez.Error.AuthenticationCanceled

            • 3. Re: How do I solve Failed to pair: org.bluez.Error.AuthenticationFailed error on Intel Edison
              CMata_Intel

              Hi Duc-Ngo-CSSE ;

               

              Is this happening with all the devices or it's just happening with the sensor? Have you tried to pair and connect your Edison to your  PC or smartphone?

               

              Check the list of devices with:

              [bluetooth]# devices
                -> If there is something in here, run:
              [bluetooth]# remove XX:XX:XX:XX:XX:XX
                 Now run the command trust and then try to pair:
              [bluetooth]# trust XX:XX:XX:XX:XX:XX
              [bluetooth]# pair XX:XX:XX:XX:XX:XX
              

               

              Regards;

              CMata

              • 4. Re: How do I solve Failed to pair: org.bluez.Error.AuthenticationFailed error on Intel Edison
                Duc-Ngo-CSSE

                It's just happening with the sensor. I can successfully pair and then connect the Intel Edison using Bluetooth to an Android tablet, using agent KeyboardDisplay as well as agent NoInputNoOutput - following your instructions. I have not tried the other agents with the tablet.

                 

                What is the purpose of the agent NoInputNoOutput? Do any of the agents work with a sensor that has no way to accept pairing by user interaction? When I use the NoInputNoOutput agent and pair the Intel Edison with the Android tablet via Bluetooth, it requires user interaction to accept pairing (pressing keys on the tablet's touchscreen, and then accept pairing on the Intel Edison bluetoothctl command line by typing input).

                 

                The sensors do not have any way to get user input (no display and no keyboard).

                 

                I tried the four agents with a TI SensorTag (one of the sensors) with no success.

                 

                I appreciate the help. Any suggestions on what to try?

                • 5. Re: How do I solve Failed to pair: org.bluez.Error.AuthenticationFailed error on Intel Edison
                  CMata_Intel

                  Hi Duc-Ngo-CSSE

                   

                  I think you will find helpful the Intel® Edison Products Bluetooth* User Guide (PDF).

                  The available agents allows you handle actions like pairing in different ways. For example  NoInputNoOutput allows you to do a pairing without requesting for a PIN.

                  Using the NoInputNoOutput agent to pair and connect the Edison to your PC, do you still need to interact to put a pin?

                  What is the outcome of pairing and connecting the sensor with the PC? Is it achievable? Is there a way that there could be a problem with the sensor?

                  Have you tried to use hcitool?

                   

                  Regards;

                  CMata

                  • 6. Re: How do I solve Failed to pair: org.bluez.Error.AuthenticationFailed error on Intel Edison
                    Duc-Ngo-CSSE

                    Using the NoInputNoOutput agent to pair and connect the Edison to your PC, do you still need to interact to put a pin?

                    * I can connect the Edison to my PC using the NoInputNoOutput agent without interacting to put a pin.

                     

                    What is the outcome of pairing and connecting the sensor with the PC? Is it achievable?

                    * I'm currently using Windows 8. I will investigate.

                     

                    Is there a way that there could be a problem with the sensor?

                    *

                     

                    Have you tried to use hcitool?

                    * I'll report back with it.


                    • 7. Re: How do I solve Failed to pair: org.bluez.Error.AuthenticationFailed error on Intel Edison
                      rdy_set_go

                      Hello,

                      Have you sort out the problem? I am in the same state like you were. I am trying to connect HC-05 serial bluetooth module to edison and I am getting the same error that you were.

                      I am able to connect HC-05 to my cellphone as well as laptop but not with edison.