Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Contributor I
2,308 Views

Reg:connection of bluetooth to intel edison

Hi all,

I'm using Intel edison arduino expansion board and the image I'm using is meta-intel-edison which is having bluez-5.24 .I'm not able to connect to the bluetooth and I"m getting the error as "unable to connect ".

I'm following the below steps

1)python SPP-loopback.py &

2)rfkill unblock bluetooth

3) bluetoothctl

4)agent KeyboardDisplay

5) default-agent

6)scan on

7)pair < address>

8)trust

9)connect

After connecting to the address ,it is sometimes coming as "unable to connect" and even if it connecting ,instead of getting as bluetooth , it is getting our device name.My device name is I'm here.and I'm pinning the image of this.

The problem is in the first image instead of getting as [bluetooth]# ,Im getting my device name and in the second image ,I'm unable to connect to the device.Please do needful.

Thanks and Regards,

Radhika

10 Replies
New Contributor I
23 Views

Hi,

I'm using http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel-edison/about/ meta-intel-edison - Layer for the Intel Edison Development Platform and trying to connect edison's bluetooth to an android via bluetooth.I'm following the below steps

1)python SPP-loopback.py &

2)rfkill unblock bluetooth

3)bluetoothctl

4)agent KeyboardDisplay

5)default-agent

6)scan on

7)pair < address>

8)trust

9)connect

For other edison board I'm able to detect and connect via android,for other Edison board,I'm able to connect but after connecting,I'm getting the bluetooth device name i.,e [I'm here]# (my android device name) instead of getting as [Bluetooth]# (at the bottom of the below pic).Therefore,I'm unable to transmit and receive via the bluetooth spp pro in android.I'm pinning the screenshots of what I have tried and from my android.I'm using the Bluetooth version 5.37.

I'm able to connect to Bluetooth but after connecting immediately,I'm getting the above message in my mobile and instead of getting as 1st image on my console ,i.e,[bluetooth]# ,I'm getting as 2nd image [I'm here]#

Please do needful.Any and every help is appreciated.

Thanks and Regards,

Radhika.

0 Kudos
Community Manager
23 Views

Hi Radhika,

 

 

As I understand from your post you're using a custom image right? To what kind of Bluetooth device are you attempting to pair? Is your problem only the change of device name or do you see any errors when you run the pair, trust and connect commands? After the connect command it seems as if the connection was successful and ready to use Bluetooth.

 

There's lots of useful information on the SPP-loopback.py and the general steps to configure and work with Bluetooth on the Edison here http://www.intel.com/content/www/us/en/support/boards-and-kits/000005743.html http://www.intel.com/content/www/us/en/support/boards-and-kits/000005743.html . Go through the guide to confirm you've followed the correct steps to configure.

 

 

Let us know if you found this useful.

 

 

-Sergio

 

0 Kudos
New Contributor I
23 Views

Hai Sergio,

Thanks for the reply,while trying opkg upgrade,the bluez version is changed from 5.24 to 5.37,I think this might the problem,So Inorder to get back the bluez version as 5.24 from 5.37 ,what are the steps to be followed.

Can we use opkg upgrade on the edison..I'm unable to install npm withou opkg upgrade,So can you please provide me the steps to install npm and bluez5.24 .

Thanks and Regards,

Radhika.

0 Kudos
New Contributor I
23 Views

Hi all,

Can I please know how can I access bluetooth for version 5.37 ,I have tried the following steps inorder to convert the bluetooth version to 5.24

root@edison: wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.24.tar.xz --no-check-certificate

root@edison: tar -xf bluez-5.24.tar.xz

root@edison: cd bluez-5.24

root@edison: ./configure --disable-systemd --disable-udev

root@edison: make

root@edison: make install

root@edison: export PATH=$PATH:~/bluez-5.24/attrib/

The version is now 5.24 ,but it is not working,I'm able to send the characters from spp-pro android mobile but unable to receive on edison.

Thanks and Regards,

Radhika

0 Kudos
Community Manager
23 Views

Thank you for letting us know you've already returned to bluez 5.24. In your previous post you were asking about opkg upgrade, this is not the way to upgrade specific packages. In case you want to upgrade specific packages you can use opkg install " . Also, npm is installed by default in the latest Edison image. You can download the latest image here https://software.intel.com/en-us/iot/hardware/edison/downloads https://software.intel.com/en-us/iot/hardware/edison/downloads

 

 

-Sergio

 

0 Kudos
Community Manager
23 Views

Hi Radhika,

 

 

Do you still need assistance with this case?

 

 

-Sergio

 

0 Kudos
New Contributor I
23 Views

I'm also having similar problem when upgrading from Bluez 5.24 to the latest on repo 5.37. For some unknown reason bluetoothctl will accept a connection and then immediately disconnect. Currently trying to revert back to 5.24 by rebuilding the source code and will report back any result.

0 Kudos
Community Manager
23 Views

Hi D.Sync

 

 

Keep us updated on your progress

 

 

-Sergio

 

0 Kudos
New Contributor I
23 Views

Just to report that downgrading from Bluez 5.37 to 5.24 is a success. One thing to note is that `make install` will put the bluetoothd and obexd binary into /usr/local/libexec/bluetooth instead of /usr/lib/bluez.

Following are the commands that I used to downgrade, with systemd enabled.

```

wget https://www.kernel.org/pub/linux/bluetooth/bluez-5.24.tar.xz

tar -xvf bluez-5.24.tar.xz

./configure --with-systemdsystemunitdir=/lib/systemd/system --with-systemduserunitdir=/usr/lib/systemd

make

make install

```

0 Kudos
Community Manager
23 Views

Hi D.Sync,

 

 

Thank you for sharing the steps to install Bluez 5.24 with the community.

 

 

-Sergio

 

0 Kudos