Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
866 Views

Problem in receiving BT SPP data from phone

Jump to solution

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.


Accepted Solutions
Highlighted
Novice
20 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
Highlighted
Novice
21 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