This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Getting "Encrypted Packet decrypted incorrectly (bad NIC)" while 'Pairing' the 2 devices with 'LESC enabled', with the help of nRF_BLE_Sniffer.

I'm trying to pair my device (nRF82382) to nRF Connect (Dev Kit) and using another Dev Kit as a BLE_Sniffer. I'm trying to establish Pairing with LESC enabled. It's Pairing correctly however, after the step where Slave sends a 'LL_START_ENC_REQ', everything from there gives the error "Encrypted packet decrypted incorrectly (bad MIC)". Sending a command from nRF_Connect to the device and reading the stream of data from device to nRF Connect, everything is appearing as "Encrypted packet decrypted incorrectly (bad MIC)". I'm also sharing the log for your better understanding. I'm not doing any data encryption then why is it saying this ? 

Also, very important, when I view data that is being streamed by device on nRF Connect it's showing the right data, then why is sniffer displaying this error?

Can you please explain me what this bad MIC is, why is it showing here and how to resolve this ?

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
1620 12.076 Master_0x91b041bf LE 1M SMP 11 49691 1 1 False 781 Sent Pairing Request: AuthReq: No Bonding, SecureConnection | Initiator Key(s): <none> | Responder Key(s): <none>
1621 12.080 Slave_0x91b041bf LE 1M LE LL 0 151 1 0 False 781 Empty PDU
1622 12.126 Master_0x91b041bf LE 1M LE LL 0 49602 0 0 False 782 Empty PDU
1623 12.159 Slave_0x91b041bf LE 1M SMP 11 150 0 1 False 782 Rcvd Pairing Response: AuthReq: No Bonding, SecureConnection | Initiator Key(s): <none> | Responder Key(s): <none>
1624 12.175 Master_0x91b041bf LE 1M LE LL 0 49603 1 1 False 783 Empty PDU
1625 12.178 Slave_0x91b041bf LE 1M LE LL 0 151 1 0 False 783 Empty PDU
1626 12.229 Master_0x91b041bf LE 1M SMP 69 49689 0 0 False 784 Sent Pairing Public Key
1627 12.233 Slave_0x91b041bf LE 1M LE LL 0 150 0 1 False 784 Empty PDU
1628 12.272 Master_0x91b041bf LE 1M LE LL 0 49139 1 1 False 785 Empty PDU
1629 12.280 Slave_0x91b041bf LE 1M SMP 69 150 1 0 True 785 Rcvd Pairing Public Key
1630 12.284 Master_0x91b041bf LE 1M LE LL 0 150 0 0 False 785 Empty PDU
1631 12.288 Slave_0x91b041bf LE 1M SMP 21 150 0 1 False 785 Rcvd Pairing Confirm
1632 12.326 Master_0x91b041bf LE 1M SMP 21 48511 1 1 False 786 Sent Pairing Random
1633 12.329 Slave_0x91b041bf LE 1M LE LL 0 151 1 0 False 786 Empty PDU
1634 12.375 Master_0x91b041bf LE 1M LE LL 0 49522 0 0 False 787 Empty PDU
1635 12.379 Slave_0x91b041bf LE 1M SMP 21 150 0 1 False 787 Rcvd Pairing Random
1636 12.426 Master_0x91b041bf LE 1M SMP 21 49522 1 1 False 788 Sent Pairing DHKey Check
1637 12.429 Slave_0x91b041bf LE 1M LE LL 0 150 1 0 False 788 Empty PDU
1638 12.476 Master_0x91b041bf LE 1M LE LL 0 49522 0 0 False 789 Empty PDU
1639 12.479 Slave_0x91b041bf LE 1M SMP 21 150 0 1 False 789 Rcvd Pairing DHKey Check
1640 12.525 Master_0x91b041bf LE 1M LE LL 0 49524 1 1 False 790 Empty PDU
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX