Connexion d'un programme Arduino sur Intel Edison avec un téléphone Android via Bluetooth SPP (Serial Port Profile)

Arduino Bluetooth BT SPP (Bluetooth Serial port profile), , Bluetooth . Arduino , . Bluetooth Bluetooth , Intel Galileo. Intel Edison Bluetooth, Arduino-, Arduino . .



:




«Connecting the Intel Edison board to your Android Phone with Serial Port Profile (SPP)» , Intel Edison Android SPP. , SPP Arduino. « Intel Edison Android Bluetooth LE (BLE)» , Bluetooth Arduino, Bluetooth .

Bluetooth, ? , .

Arduino Linux Intel Edison, mmap(). Arduino Linux. , Arduino .

, (named pipes) IPC ( ) Arduino Python c Bluetooth SPP.

Edison Bluetooth


1. bluetooth-service.tar.gz.

2. bluetooth-service.tar.gz /home/root/Bluetooth :

mkdir /home/root/bluetooth
cd /home/root/bluetooth
mv /home/root/bluetooth-service.tar.gz ./
tar -xvf bluetooth-service.tar.gz

3. bluetooth-spp-pin.service /lib/systemd/system/:

cp bluetooth-spp-pin.service /lib/systemd/system

4. systemd:

systemctl enable bluetooth-spp-pin

5. :

reboot

6. :

systemctl status bluetooth-spp-pin


Arduino Edison


  1. Intel-Edison-BT-SPP-Library.zip.
  2. Arduino, , C:\Users\username\Documents\Arduino\libraries. Arduino IDE File->Preferences->Sketchbook Location.
  3. Intel® Arduino IDE 1.6.0 .
  4. bt_test File->Examples->Intel Edison BT SPP Driver Library.
  5. Edison.
  6. Serial Monitor, , - .


  1. BT SPP PlayStore. , BLE_SPP_PRO.
  2. Bluetooth Edison .
  3. -, 8888. 70 bluetooth-pin-service.py.
  4. Edison (myedison).
  5. - Edison, Serial Monitor Arduino IDE.





:


Bluetooth -, SPP. , Bluetooth . Bluetooth , . BT SPP Arduino , . Edison Android BT SPP . , Edison , . , , Bluetooth Intel Edison. .

:


, BT SPP Edison. fifo Edison’ BT SPP . fifo, Linux , Arduino. Arduino. , Linux Arduino fifo. Node.js JSON Arduino, Arduino . ! Android BT SPP !

Source: https://habr.com/ru/post/fr383533/


All Articles