Does BLE support SPP to Android device?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaHu_285096
Level 5
Level 5
10 likes received 250 replies posted 100 replies posted

 I have purchased and received the new BLE kit but have not yet dug into the features or tried to run it up.

   

Just had a quick question that someone who has already worked with it may be able to answer.

   

Does the module support SPP and are there any sample Android apps for routines available?

   

ie. I want to pair smart phone with the PSCO BLE device and transfer serial data in either direction.

   

I currently do this with an external Sena OEM BT module but would like to investigate lowered cost using the BT built into the new device.

   

 

   

Thanks

0 Likes
11 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Did you see this -

   

 

   

    

   

          

   

http://www.element14.com/community/thread/24847/l/psoc-4-pioneer-kit-community-project029-bluetooth-...

   

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 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?

0 Likes
Anonymous
Not applicable

Hello,

   

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.

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

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.

0 Likes
Anonymous
Not applicable

 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.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

Hi,

   

Will it work with iphone  app?

   

Thanks,

0 Likes
Anonymous
Not applicable

Missed a note.

   

Make sure to install latest creator version from cypress.com. This project may not work with an older creator version.

0 Likes
Anonymous
Not applicable

Hello,

   

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.
 

   

Best Regards,

   

 

   

Julien
 

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Julian,

   

I have updated the UART_BLE project (please see attached). I have also attached a user guide for the set up.

   
        
  1. 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.
  2.     
  3. Also make sure that P1[4] and P1[5] are selected for UART RX/TX respectively.
  4.    
   

Let me know if you still face some problem.

   

Regards,

   

Rahul

0 Likes
Anonymous
Not applicable

Hi Rahul-

   

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.

0 Likes