You are here

Automatic Connection of the BLE to Android | Cypress Semiconductor

Automatic Connection of the BLE to Android

Summary: 4 Replies, Latest post by hli on 15 Apr 2016 10:38 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
Aviraj Singh's picture
4 posts

Hi All

I am extremely new to BLE so please bear with me ! I am using the CY8CKIT-042-BLE PSoC 4/PRoC Pioneer Kit and I tried a few code examples given in PSoC Creator 3.3 and got them to work successfully on my Android phone with the CySmart application installed on the phone. 

Now my aim to design a custom android application which has access to all the Services, Characteristics and Descriptors that I have in my custom profile. My main question is that is there a way that the chip automatically connects to the phone as soon as the chip powers up. Right now, one has to manually connect it each time and pair. Can that process be automated so that the connection is established automatically as soon as the chip gets power ?

Any help will be much appreciated. Thanks a lot in advance.


yt7pwr_1520051's picture
3 posts

If you want automatic connection then Android must scan 100% of time for new Bluetooth devices! The battery will be quickly discharged! You can try periodical scan (every 5-10s) and upon discovery of BLE advertisement packets connect-pair with your device.

roit's picture
Cypress Employee
221 posts

Additionally, connection in BLE is initiated by the BLE Central device which in this case is your Android Application. The firmware on device side (PSoC 4 BLE/PRoC BLE) has nothing to do with auto connection, except keep advertising.

gaurav.garg_1569466's picture
5 posts

Hi, Have you already develop an android app with Custom BLE profile ?

user_78878863's picture
2551 posts

Please, when you have a new question open a new thread. No one will suspect your question in a thread about automatic connections, so less people will be able to answer you.

You can ask the Cypress support for the source code the CySmart Android app - this is a good starting point for your own app (but search google for Android BLE tutorials also help tremendously)

Log in to post new comments.