How to enable message integrity check

Learn MoreFAQsTutorials

7 posts / 0 new
Last post
zhangtinglu8888
Offline
Last seen:2 months 1 week ago
Joined:2015-06-15 07:20
How to enable message integrity check

When transmitting Bluetooth, I need to use the MIC(message integrity check) of the packet. How can I configure the SDK

Device:
CYibin
Offline
Last seen:3 months 4 weeks ago
Staff
Joined:2017-12-14 02:48
Hi Zhangtinglu,

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

zhangtinglu8888
Offline
Last seen:2 months 1 week ago
Joined:2015-06-15 07:20
Sorry. I mean bluetooth

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?

CYibin
Offline
Last seen:3 months 4 weeks ago
Staff
Joined:2017-12-14 02:48
Hi zhangtinglu,

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

zhangtinglu8888
Offline
Last seen:2 months 1 week ago
Joined:2015-06-15 07:20
Hi CYibin

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.

PM_Dialog
Offline
Last seen:15 min 21 sec ago
Staff
Joined:2018-02-08 11:03
Hi zhangtinglu8888,

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

zhangtinglu8888
Offline
Last seen:2 months 1 week ago
Joined:2015-06-15 07:20
Thank you. You solved my

Thank you. You solved my question