Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Community Manager
1,270 Views

Mobile Device to Intel Edison Bluetooth

Hello,

I am trying to transfer data from my Android device to the Intel Edison via Bluetooth using Bleno, but I am unable to pair the devices. The phone is able to see the correct name broadcasted from the edison, but whenever I try to pair the devices from Android, the edison accepts the connection and then immediately disconnects. Whenever this happens, the phone says that it is unable to pair due to an incorrect passkey or pin even though I was unable to type a passkey. I have tried connecting through bluetoothctl utility as well, but the device also disconnects almost immediately, but it does ask to confirm the pin.

Versions:

Bluez = 5.37

Yocto = 201606061707

What I've tried:

Before I run the bluetoothctl utility I run:

rfkill unblock bluetooth

hciconfig hci0 up

In the bluetoothctl utility i run the following:

power on

pairable on

agent on

default-agent

discoverable on

After those commands I am able to find the device from my phone.

Using Bleno I run the following before:

rfkill unblock bluetooth

killall bluetoothd

hciconfig hci0 up

I run the "echo" example from the Bleno examples folder.

I have tried reinstalling bluez5, but nothing changed.

I have also tried the steps here: http://www.linuxquestions.org/questions/linux-wireless-networking-41/setting-up-bluez-with-a-passkey... Setting up BlueZ with a passkey/PIN (to be used as headset for iPhone) , but to no avail.

I have also tried installing ubilinux and trying these steps on there, but to even worse results.

I am wondering if there is anything that I am missing to get the bluetooth working or if I should look to other bluetooth sources.

Thank you!

Tags (1)
0 Kudos
7 Replies
Highlighted
Community Manager
14 Views

Hi NoahPena,

Thanks for your interest in the Intel Edison Platform.

I'm sorry to hear that your Android device is not connecting to your Edison by Bluetooth. Can you please try the steps in this thread (/message/290479# 290479 https://communities.intel.com/message/290479# 290479) to see if your device still disconnects.

I have also found this links, they might be useful:

http://rexstjohn.com/configure-intel-edison-for-bluetooth-le-smart-development/ Configure Intel Edison for Bluetooth LE (Smart) Development - Rex St John | 雷克斯 聖約翰

https://github.com/sandeepmistry/bleno/tree/master/examples bleno/examples at master · sandeepmistry/bleno · GitHub

 

I will be waiting for your reply, have a nice day.

Best Regards,

 

-Jose.
0 Kudos
Highlighted
Community Manager
14 Views

Hi NoahPena,

 

 

We would like to know if you were able to connect your Android device to your Edison via Bluetooth. Please let us know in order to assist you.

 

 

We hope you have a nice day!

 

 

Best Regards,

 

-Jose.
0 Kudos
Highlighted
Community Manager
14 Views

Thank you for your help Jose!

I have already tried all of those options with no success. I'm able to connect with the "nRF Connect" Android App, but I am unable to connect to the Edison using the default Bluetooth Settings Page or using the Bluetooth LE example from Google (https://developer.android.com/samples/BluetoothLeGatt/index.html BluetoothLeGatt | Android Developers

Whenever I try to connect to the Edison, the console on the Edison says that it accepts the connection from my phone, but then immediately disconnects and displays a dialogbox on Android with the text "Couldn't pair with because of an incorrect PIN or passkey".

0 Kudos
Highlighted
Community Manager
14 Views

Hi NoahPena,

 

 

I'm sorry to hear that my last suggestions didn't work. I have a couple of questions:

 

 

1) Which image version are you using?

 

2) Have you try using other Android devices?

 

 

I will be waiting for your reply, have a nice day.

 

 

Best regards,

 

-Jose.
0 Kudos
Highlighted
Community Manager
14 Views

Hi NoahPena,

 

 

Were you able to connect your Android device to your Edison? If not could you please answer the questions in my previous reply.

 

 

I will be waiting for your reply, we hope you have a weekend!

 

 

Best Regards,

 

-Jose.
0 Kudos
Highlighted
Community Manager
14 Views

in case anyone else is looking for answer, bluetooth SPP is broken on edison yokto images later than 2.5

Trying to find out if there is any fix.

0 Kudos
Highlighted
Community Manager
14 Views

Hi guys,

This issue is due to the BlueZ version on the newest images, please follow the steps in this thread in order to update the library: .

Have a nice day!

Best Regards,

 

-Jose.
0 Kudos