SPP is classic BT I believe. There is no such profile for BLE (I think).. You might have to create your own profile similar to SPP.
Does anyone have more info on serial data transfer for BLE?
since 1 month I search for a possibility for SPP over BLE.
For shure there do not exist any service for this ! (not for androit, not for iPad)
BLE is not designed for this. You can google for SPP_over_BLE .....
Also the most android devices have a lot of problems with the BLE library or they don't have BLE.
BLE by design cannot do stream communication. Its designed to transfer only changes in device state, so communication is kept to a minimum. There are ways to emulate something like a serial port, but doing so would completely defeat the low-powe aspects of it.
Maybe google for 'Bluetooth low energy introduction' or 'BLE GATT' to see how BLEs design works.
As Undesh pointed out, there is no SPP profile for BLE; it is confined to BT Classic (supportedprofiles by BLE are listed at https://developer.bluetooth.org/gatt/profiles/Pages/ProfilesHome.aspx ).
If you need a similar functionality, you can create a custom profile on your BLE Pioneer kit and use it to send/receive bulk of data from a Client device (such as Android Phone). But please note that Android Phone, by default, will not be able to recognize the profile and will only expose the services and characteristics associated with your custom profile. You may have to use those APIs to create your own App and complete the system.
The "UART_to_BLE_peripheral" project in the attachment works with the CySmart Android app. The firmware has a custom service which acts as a bridge between UART and BLE communication. The project is tested for 115200 baud rate.
BLE UART without LPM.rar 3.9 MB
Missed a note.
Make sure to install latest creator version from cypress.com. This project may not work with an older creator version.
I had the same exact interrogation and your project is really what I needed. I have still one problem left.
I am just beginning developping with PSoC Creator and, as I understand it, I have to connect my UART to P1_4 and P1_5 connectors. Am I correct ?
When I do so, I am able to get the BLE Advertising message and BLE Stack Initialized Successfully messages back to my terminal but I cannot send any information to the board.
Do you have, like for some projects, a photo describing your environment ?
I can provide one of our environment if needed.
I have updated the UART_BLE project (please see attached). I have also attached a user guide for the set up.
- For your aplication, I don't think you need flow control, so please ,make sure that the RTS/CTS is unchecked (as shown in attached image) in the UART configuration window. The FLOW_CONTROL macro in main.h should also be commented.
- Also make sure that P1 and P1 are selected for UART RX/TX respectively.
Let me know if you still face some problem.
BLE UART.rar 2.0 MB
I've tried to get this example to work on the Pioneer Kit (focusing on the Central side for now), for some reaon I don't get the UART debug messages. I'm using the kit CY8CKIT "out of the box" and can compile and load the project but don't see anything on the kit's COM port.
Does the code run on the kit "out of the box" on the UART created by the prgraming/debug USB port or does it need modification / another UART? (I feel like I'm missing something).
I've tried disabling the flow control (both in the UART properties and the main.h) but that doesn't seem to help.
Will it work with iphone app?