Page 1 of 1

Bluetooth communication between Pi3 and Pi3

Posted: Thu Oct 13, 2016 1:41 pm
by baksa15
Hi I am the beginner of the raspberry pi.

I'm using raspberry 3 model B, and i want to communicate through bluetooth (I already know that RPi3 supports bluetooth 4.1 without any external devices) and send and receive texts each other.

Please give me some information or helpful sites.

Re: Bluetooth communication between Pi3 and Pi3

Posted: Fri Oct 14, 2016 11:45 am
by heartbismane
I am interested with this too. But I don't have time to experiment.

In the following tutorial, one side is Bluefruit LE device and the other side is raspberry pi. But I think it can work for Pi to Pi too (with some modifications):

https://learn.adafruit.com/bluefruit-le ... y/overview

Let us know details if/when you find your solution..

drawarc java

Re: Bluetooth communication between Pi3 and Pi3

Posted: Fri Oct 14, 2016 4:11 pm
by Douglas6
Using BLE is one option, although by no means the easiest. Much simpler is to use classic Bluetooth with the Serial Port Profile.
Here's a guide to setup SPP on both Pis: viewtopic.php?p=947185#p947185.
Then on the slave Pi3, run this in a separate terminal:

Code: Select all

sudo rfcomm watch hci0
on the the master Pi3, run, in a separate terminal:

Code: Select all

sudo rfcomm connect hci0 <bdaddr>
where <bdaddr> is the Bluetooth device address of the slave Pi3.
That will give you a /dev/rfcomm0 device on each Pi, which can be used to read and write text data with a terminal program such as minicom, or any programming language.