cancel
Showing results for 
Search instead for 
Did you mean: 

BNRG2A1 Terminates connection before reading service characteristics

JWall.1
Associate II

I am using the STM32 NUCLEOL476 with a X-Nucleo-BNRG2A1. I opened the example project for Central Device. The board scans and finds the BLE device. I can select the device and it will connect to it. Then it reads the Service then terminates. I have tried several different working BLE devices and the same problem occurs. This is the printout I get

------------------- START_CONNECTION -------------------

aci_gap_create_connection() OK

 Device 0 connected 

 - address 00:a0:50:d2:22:99

 - connection handle 0x0801

 CONNECTION_COMPLETE

 SERVICE_DISCOVERY

 connection handle 0x0801

aci_gatt_disc_all_primary_services() OK

 hci_disconnection_complete_event() unexpected reason: 0x08

CONNECTION_TERMINATED

 GATT Procedure completed with error 0x41 (0x0801)

 ---------------- DISCONNECTION_COMPLETE ----------------

There is not much online regarding this except possibly supervision time needs to be increased. I havent found where in the example code to do this or if there is another issue causing it.

I am using rev3.3 X-Cube-BLE2, the the STMCubeIDE project.

Any help would be appreciated.

0 REPLIES 0