Sorry. I mean bluetooth packet (v4.2) contains 1-byte preamble, 4-bytes access address, 2-bytes header,maximum 251-bytes payload,optional 4-bytes message integrity check (MIC),3-bytes cyclic redundancy check (CRC). When encryption is used ,the message integrity check (MIC) is sent with the payload.
The Message Integrity Check (MIC) will be automatically appended in the PDU as soon as you enable any of the available security mode. Please enable any security mode and use a BLE sniffer to check it. You should not modify the SDK.
Hi Zhangtinglu,
I'm not sure what your query is? Could you share more information for what are you going to do?
By the way, just a kindly reminder, you can post your question in Chinese on our CN forum:
https://support.dialog-semiconductor.com/forums/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software-dialog-%E2%80%9Csmartbond%E2%80%9D%E7%B3%BB%E5%88%97%E4%BD%8E%E5%8A%9F%E8%80%97%E8%93%9D%E7%89%99%E2%80%94%E8%BD%AF%E4%BB%B6
Br,
Yibin
Sorry. I mean bluetooth packet (v4.2) contains 1-byte preamble, 4-bytes access address, 2-bytes header,maximum 251-bytes payload,optional 4-bytes message integrity check (MIC),3-bytes cyclic redundancy check (CRC). When encryption is used ,the message integrity check (MIC) is sent with the payload.
I need to use MIC, how to do it?
Hi zhangtinglu,
The SDK does not expose any APIs for user to access the data of LL package.
However, you can use a sniffer to watch these.
Could you tell why you're trying to get these datas?
Br, Yibin
Hi CYibin
I just explained the meaning of MIC. I don't want to modify the data of LL package. I only want the data of LL package to contain the MIC.
because it belongs to the Bluetooth standard protocol.I think it can be done by configuring SDK.
Hi zhangtinglu8888,
The Message Integrity Check (MIC) will be automatically appended in the PDU as soon as you enable any of the available security mode. Please enable any security mode and use a BLE sniffer to check it. You should not modify the SDK.
Thanks, PM_Dialog
Thank you. You solved my question