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:
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
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.
I wonder if there 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
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