⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
vrabo
Offline
Last seen:2 years 11 months ago
加入:2016-11-04 19:19
Reconnecting BLE

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:
marss
Offline
Last seen:8 months 6 days ago
加入:2015-05-08 10:18
The phone connects to your

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.

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi vrabo,

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

vrabo
Offline
Last seen:2 years 11 months ago
加入:2016-11-04 19:19
Thank you for the quick

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?

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi vrado,

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