Skip to main content
MBRAI.9
Associate
June 11, 2024
Question

BlueNRG2 aci_gap_init

  • June 11, 2024
  • 2 replies
  • 1337 views

Hello, 

I use the STEVAL-IDB008V2 and I updated the BLE stack to v2.1f.

Since this update I have an error when calling the aci_gap_init api.

Please find below the sequence when I use an older stack   

SEND => ACI_GAP_INIT_OPCODE
Parameters:
| GAP Role : 0x04 [ST_GAP_ROLE_CENTRAL]
| Privacy Enabled : 0x00 [ST_PRIVACY_DISABLED]
| Device Name Char Len : 0x0B [11]
---

COM30 -> [RX] = [04:0E:0A:01:8A:FC:00:05:00:06:00:08:00]
RECEIVE => HCI_COMMAND_COMPLETE_EVENT
Parameters:
| Command_Opcode : 0xFC8A [ACI_GAP_INIT_OPCODE]
| Status : 0x00 [HCI_STATUS_SUCCESS]
| Service Handle : 0x0005 [5]
| Dev Name Char Handle : 0x0006 [6]
| Appearance Char Handle : 0x0008 [8]

and when I use the new stack, I get : 

COM4 -> [TX] = [01:8A:FC:03:04:00:0B]
SEND => ACI_GAP_INIT_OPCODE
Parameters:
| GAP Role : 0x04 [ST_GAP_ROLE_CENTRAL]
| Privacy Enabled : 0x00 [ST_PRIVACY_DISABLED]
| Device Name Char Len : 0x0B [11]
---

COM4 -> [RX] = [04:0E:0A:01:8A:FC:42:00:00:00:00:00:00]
RECEIVE => HCI_COMMAND_COMPLETE_EVENT
Parameters:
| Command_Opcode : 0xFC8A [ACI_GAP_INIT_OPCODE]
| Status : 0x42 [None]
| Service Handle : 0x0000 [0]
| Dev Name Char Handle : 0x0000 [0]
| Appearance Char Handle : 0x0000 [0]

 

STEVAL For information, I get the same error when I use the BlueNRG GUI v4.7.1

I used the DTMUART v3.4.0.

Why the aci_gap_init is called with correct parameters and the stack replies with a status != success ?

Thansk for your support.

 

KR,

Mehdi BRAÏK

2 replies

Christian N
ST Employee
June 12, 2024
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
Dams
Associate III
October 31, 2024

Hello, 

I have the same behavior with the BlueNRG GUI 4.7.1 and a board IDB008V1M at the ACI_GAP_INIT.

Dams_0-1730377204219.png


The script OTA_Central.py works with my board if the stack of BlueNRG-2 is 2.1c but not with stack 2.1f.
In the repository of the BlueNRG GUI 4.7.1, the DTM_UART.hex found set the stack 2.1f. 
How can I do to have the script working with stack 2.1f ?

Regards,