Android Autoconnect/Autopair BLE

2 posts / 0 new
Last post
irfansehic
Offline
Last seen:4 years 1 month ago
加入:2016-01-07 12:16
Android Autoconnect/Autopair BLE

Hello everybody!

I have a few questions concerning Android and BLE, specifically the DA14580 chip.
Let us assume I have a small data logger which I take with me to collect various
environment data, which I want to upload to my Android phone every time it gets
in the proximity.
Now, I now Android App can be opened by an established Bluetooth connection, so
so Android part is clear (establish connection, request data...)
As far as BLE goes, what would be required on this side? I am using an external
microcontroller with DA14580 for the BT software and stack.
How to connect automatically to a device which was discovered (which I already paired
with earlier on)?
How to request a list of devices in the proximity from the DA14580?

How to save power? If I leave my BT chip on for an hour after I've done logging my data,
I will waste a lot of power... Can I use the deep sleep and wake up if a device was discovered?
^ OK this question might be a bit far fetched, but someone might have a good idea.

Thanks!

Device:
MT_dialog
Offline
Last seen:2 months 4 days ago
Staff
加入:2015-06-08 11:34
Hi irfansehic,

Hi irfansehic,

Only the centrals are capable of sending connection requests, so i suppose that you can implement a phone application that when he sees an advertising string with a device that supports a special service to try and connect to it. If the devices are allready paired the connection will be succesfull, but if the devices are not paired and the central initiates a pairing request, the peripheral should drop the connection immidiatelly. Also you can use directed advertising instead of undirected advertising and connect to a specific central after the bonding procedure is successfully completed.

I dont get the question regarding the list of devices in the proximity of the 580, the 580 will be a central (only scanning) or a peripheral (only advertising) ? If its a central you will receive all the available advertising messages near the 580, if its a peripheral you cant scan for devices while the device is in peripheral role.

Regarding you last question, its a bit unclear, can you please elaborate a bit ?

Thanks MT_dilaog