Skip to main content
Ggual.1
Associate
February 10, 2021
Question

BLE disconnect immediately after connection

  • February 10, 2021
  • 1 reply
  • 838 views

Hi,

I am trying to develop a ble application with the stm32wb55 and stm32cubemx. The MCU is on st nucleo board.

I have create a new cubemx project, add middleware BLE STM32_WPAN, add scheduler on while() cycle in main.c, add IPCC interrupt handlers in stm32wbxx_it.c.

It's peripheral custom template, I have 1 service with 3 characteristics with all UUIDs filled and without read/write permission need.

Advertising start but when I try to connect the device disconnect immediately after connection. I see that through breakpoints in debug mode. First eventi is EVT_LE_CONN_COMPLETE and immediately after EVT_DISCONN_COMPLETE. I see in hci_disconnection_complete_event_rp0 the reason value and it is 0x3e alias ERR_CONN_FAILED_TO_ESTABLISH.

So I don't understand what is the problem, why the connection drop soon after connection.

Can someone help me?

Thanks

This topic has been closed for replies.

1 reply

Ggual.1
Ggual.1Author
Associate
February 11, 2021

up?