cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable OOB?

DS.4
Senior II

STM32WB55 as a central (client)

Sending ACI_GAP_SEND_PAIRING_REQ and getting ACI_GAP_PAIRING_COMPLETE_EVENT with failed. reason: AUTH_REQ_CANNOT_BE_MET.

As I matched all the other settings to the server(peripheral) device settings.

Was curious if the OOB feature might be failing it? How can I disable OOB ?

From your documentation AN5270:

ACI_GAP_SET_AUTHENTICATION_REQUIREMENT Description Set the authentication requirements for the device. If the OOB_Enable is set to 0, the following 16 octets of OOB_Data are ignored on reception. This command has to be given only when the device is not in a connected state.

but the command does not have OOB_Enable parameter.

tBleStatus aci_gap_set_authentication_requirement( uint8_t Bonding_Mode,
                                                   uint8_t MITM_Mode,
                                                   uint8_t SC_Support,
                                                   uint8_t KeyPress_Notification_Support,
                                                   uint8_t Min_Encryption_Key_Size,
                                                   uint8_t Max_Encryption_Key_Size,
                                                   uint8_t Use_Fixed_Pin,
                                                   uint32_t Fixed_Pin,
                                                   uint8_t Identity_Address_Type );

The device I am trying to connect:

My server device I am trying to pair is a legacy device.

It has security mode 1

It has security level : Authenticated 4 LE secure connection with encryption

strict pairing : Yes

IO capabilities: Display

Key press notification : No

Bonding requirement : Bonding

Encryption key size:16

2 REPLIES 2
Remy ISSALYS
ST Employee

Hello,

It's not possible to disable OOB, there isn't any API to do this, but if you don't used OOB, don't worry about them. Are you sure that the security database is cleared on both side before pairing request?

Best Regards

DS.4
Senior II

Thanks, it was an issue with the authentication settings. Cleared security db just in case though!