This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Peripheral - Auto connect to Android

Hello,

I am currently starting with the hole ble topic. This forum helps me a lot in the last weeks to understand ble.

I am using S110 to provide a peripheral device. It works without any problems. As client I build an android application.

I can scan, connect, receive notifications, indications, can read & write. Disconnect also works. :)

But not I have a question.

Currently I have to manually start my android app, when I want to transfer some data from ble to android device. Is it possible to send some kind of broadcast and in android the service will connect to peripheral device?

I have seen some devices in the market, like "Withings Pulse 36", which start and connect automaticially. How could I realize this in a similiar way? Running Ble scan continuously in background is not my prefered solution. :)

I hope somebody of you can help me.

Thank you

Chipp

Parents
  • If you want your phone to detect a device, the phone needs to scan. So Ziran suggestion could be the solution you are looking for. You can not adjust scanning window or scanning interval on Android or IOS device but you can adjust the scanning timeout. So you can program your app to start the scanning periodically and then have a relatively short scanning timeout.

Reply
  • If you want your phone to detect a device, the phone needs to scan. So Ziran suggestion could be the solution you are looking for. You can not adjust scanning window or scanning interval on Android or IOS device but you can adjust the scanning timeout. So you can program your app to start the scanning periodically and then have a relatively short scanning timeout.

Children
No Data
Related