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!
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