I am trying to pair two QN9090 devices(SDK_2.6.3_QN9090) using OOB method.
The following parameters are used both peripheral and central.
gapPairingParameters_t gPairingParameters = {
.withBonding = gAppUseBonding_d,
.securityModeAndLevel = gSecurityMode_1_Level_4_c,
.maxEncryptionKeySize = mcEncryptionKeySize_c,
.localIoCapabilities = gIoNone_c,
.oobAvailable = TRUE,
.centralKeys = (gapSmpKeyFlags_t)(gIrk_c),
.peripheralKeys = (gapSmpKeyFlags_t)(gIrk_c),
.leSecureConnectionSupported = TRUE,
.useKeypressNotifications = FALSE,
};
Initially the pairing request was sent by central and response was sent by peripheral.
I am having few doubts after this.
1)I am trying to start the encryption between peripheral and central. Currently I am struggling how to start the encryption link between the devices.
2)I know For secure connection LTK cannot be distributed, it will generated internally, But how can i exchange LTK and store it for secure pairing between peripheral and central .
3)I registered L2Cap connection using PSM Value and I am able to transfer the data using L2CAP, but I need to send data using SMP L2CAP . I tried with SMP CID (0x0006). But unable to transfer the data in SMP L2CAP.
Thanks