cancel
Showing results for 
Search instead for 
Did you mean: 

BLE stack questions regarding connection and advertising

DS.4
Senior II

I have some question related to the BLE stack code. Specifically regarding GAP operation.

My device is the peripheral.

On first connection to my device from peer :

  1. How long can a 'connection procedure' take. From when the stack is receiving a connection request from peer until creating a connection event for the M4 (GAP_GENERAL_CONNECTION_ESTABLISHMENT_PROC), is there a timeout, can it be calculated ?
  2. In case I initiate an ACI_GAP_SET_NON_CONNECTABLE command in the middle of a 'connection procedure', does connection fail? does the command return a specific error? do I get GAP_AUTO_CONNECTION_ESTABLISHMENT_PROC with a specific error code? which one?
  3. In case of switching to ACI_GAP_SET_NON_DISCOVERABLE , am I still connectable ? 
  4. In case the periph is ACI_GAP_SET_LIMITED_DISCOVERABLE, and it gets connected , do I get an ACI_GAP_LIMITED_DISCOVERABLE_EVENT or only the connection event and in what order?  
  5. In case i am ACI_GAP_SET_LIMITED_DISCOVERABLE, and I don't get connected, am I still 'connectable' after the ACI_GAP_LIMITED_DISCOVERABLE_EVENT? or do I need to use ACI_GAP_SET_NON_CONNECTABLE?
  6. In case the periph got connected (stack stops advertising auto.) but I still run the command ACI_GAP_SET_NON_CONNECTABLLE, will I always get an error code? which one?
  7. Is there a way to poll BLE stack to know if it is advertising or not?
1 REPLY 1
Remy ISSALYS
ST Employee

Hello,

You can look STM32WB_BLE_Wireless_Interface.html file, this document describes the STM32WB BLE Application Commands Interface (ACI), Host Commands Interface (HCI) and the events. I hope you can find all the necessary information you need in this file.

Best Regards