Hello!
I'm trying to make an application using DA14580. A sensor will wake the DA14580 up and it will connect to the phone via BT using an app running in the background. I was wondering if the DA14580 is able to connect with the phone or the phone is the one who has to connect to the DA1580.
Thank you very much
Device:
The phone connects to your DA14580. Either your DA14580 has a very long latency (so the phone does not close the connection) or your DA14580 closes the connection after waking up and resends an advertisement message to your phone and the phone can reconnect.
Hi vrabo,
The BLE protocol dictates that the central device is the one that will send the connection request and not the peripheral, so its up to the central to decide about the connection.
Thanks MT_dialog
Thank you for the quick answer
So, the phone will have to scan all the time and when it sees that the peripheral wakes up sends the connection request. The peripheral will advertise in direct mode right? Any examples how to use the direct mode?
Hi vrado,
Yes, the peripheral will have to scan in order to see the directed or undirected advertising from the peripheral device and send the connection request. Its not obligatory for the peripheral to advertise in directed mode (although this will assure that the connection will be established quicker and there will be no case for a different central to connect to your peripheral by mistake, since the directed advertising concerns only the central device with a specific bd address). There is no reference design or example that uses the directed advertising but its fairly easy to use it via the app_easy_gap_directed_advertise_start() function, the function uses the parameters defined in the user_config.h file in the user_adv_conf function.
Thanks MT_dialog