baksa15
Posts: 1
Joined: Thu Oct 13, 2016 1:35 pm

Bluetooth communication between Pi3 and Pi3

Thu Oct 13, 2016 1:41 pm

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.

heartbismane
Posts: 5
Joined: Thu Oct 13, 2016 4:12 am

Re: Bluetooth communication between Pi3 and Pi3

Fri Oct 14, 2016 11:45 am

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
Last edited by heartbismane on Sat Jan 14, 2017 12:30 am, edited 1 time in total.

User avatar
Douglas6
Posts: 5018
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Bluetooth communication between Pi3 and Pi3

Fri Oct 14, 2016 4:11 pm

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.

Return to “Beginners”