Intel® Makers
Intel® Edison, Intel® Joule™, Intel® Curie™, Intel® Galileo
Announcements
Welcome - This is a Peer-to-Peer Forum only. Intel has discontinued these products but you may find support from other customers on this Forum
9868 Discussions

Problem in receiving BT SPP data from phone

QWang16
Novice
946 Views

Hi guys,

I want to use my mobile phone to control my Edison board, so I tried to follow the instructions in the post https://software.intel.com/en-us/articles/turn-onoff-edison-arduino-on-bd-led-via-bluetooth-spp-by-i... Turn on/off Intel(R) Edison Arduino on board LED via Bluetooth SPP by using the IoT dev kit | Intel® Developer Zone.

I used the python script, SPP C++ library, and test code provided. The python script SPP-pipe-out.py worked, I could see data appearing in the terminal and "cat /tmp/ble_pipe_out" also worked, but I could not open "/tmp/ble_pipe_out" in my C++ code, it got a return value -1 and stopped.

I would be grateful if any could help. I have wasted too much time on switching languages, and I really want to stick with C++ now.

1 Solution
QWang16
Novice
100 Views

OK, I solved it myself.

In stead of using the C++ library (Intel_Edison_BT_SPP.cpp and hpp file) provided, I used the SPP library for Aduino provided in another post https://software.intel.com/en-us/blogs/2015/05/19/communicate-to-arduino-code-with-your-android-phon... IoT - Communicate to Arduino code with your Android* Phone by Bluetooth Serial Port Profile (SPP) on Intel® Edison | Int… and this one and its python scripts can work.

View solution in original post

1 Reply
QWang16
Novice
101 Views

OK, I solved it myself.

In stead of using the C++ library (Intel_Edison_BT_SPP.cpp and hpp file) provided, I used the SPP library for Aduino provided in another post https://software.intel.com/en-us/blogs/2015/05/19/communicate-to-arduino-code-with-your-android-phon... IoT - Communicate to Arduino code with your Android* Phone by Bluetooth Serial Port Profile (SPP) on Intel® Edison | Int… and this one and its python scripts can work.

View solution in original post

Reply