quick connection of slave and master

⚠️
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.
4 posts / 0 new
Last post
BenjaminDu
Offline
Last seen:2 months 1 week ago
加入:2016-03-14 02:38
quick connection of slave and master

I have two da14580 one is advertising and another is listening.

If the two Da14580 know each other device name or advertiser address, is there anyway for the two to get connected in a quick way?

Can I use app_connect directly without scanning?

Thanks

Benjamin

Device:
MT_dialog
Offline
Last seen:2 months 4 weeks ago
工作人员
加入:2015-06-08 11:34
Hi BenjaminDu,

Hi BenjaminDu,

If you are aware of the central's device's address, then you can perform a directed advertising procedure (using the app_easy_directed_advertise_start() and via assigning the central's address to the .peer_addr member of the user_adv_conf structure), and since the advertising is directed then the two devices will be connected quickly. Regarding connection without the central scanning, that is impossible, the central should be listening (scanning) in order to get the advertising from the peripheral side. The app_connect function that you mention, i suppose that you mean the app_on_connection() and the corresponding callback, this function is executed when the peripheral is connected and not in order to instruct a connection from the peripheral, also its not possible to instruct a connection from the peripheral, only the central can issue a connection request.

Thanks MT_dialog

BenjaminDu
Offline
Last seen:2 months 1 week ago
加入:2016-03-14 02:38
Thanks MT_dialog team,

Thanks MT_dialog team,

My SDK is V3 and I can't find app_easy_directed_advertise_start , maybe this is due to my old version.
我想知道ere is similar function in V3.
I tried to move my project to V5 , but failed as I can't move my available example to V5.

Benjamin

MT_dialog
Offline
Last seen:2 months 4 weeks ago
工作人员
加入:2015-06-08 11:34
Hi BenjaminDu,

Hi BenjaminDu,

The function that i ve mentioned is only available in SDK5 version, there is no such API on SDK3, Dialog strongly recommends in moving into the latest SDK. Regarding the directed advertising on SDK3 you will have to construct the GAPM_START_ADVERTISE_CMD command and send it towards the stack, you can check the implementation from SDK5 as a reference.

Thanks MT_dialog