ST意法半导体
直播中

曲芳

8年用户 171经验值
私信 关注
[问答]

Bluenrg-ms与PIN绑定如何使用

嗨,
我使用的是Bluenrg-ms芯片组,固件版本为7.1.e(0x715)。一切正常,除了授权设置。每个设备都可以连接到BLE,而无需任何权限请求(PIN)。通过挖掘我发现函数'aci_gap_slave_security_request'应该完成这项工作,但我不知道在哪里以及如何使用它(相关的回调来处理,根据结果做的动作)。任何人都能帮我解决这个问题吗?
非常感谢,
丹尼尔

#spbtle-rf #bluenrg-ms #ble

以上来自于谷歌翻译


以下为原文




Hi,
I'm using the Bluenrg-ms chipset with firmware version 7.1.e (0x715). Everything works fine, except from the authorization settings. Each device can connect to the BLE without any request for permissions (PIN). By digging a bit I've found that the function 'aci_gap_slave_security_request' should do the job, but I don't exactly know where and how to use it (related callbacks to handle, actions to do according to the result). Can anybody help me through this?
Thanks a lot,
Daniele

#spbtle-rf #bluenrg-ms #ble

回帖(2)

曹皓轩

2019-3-4 10:21:22
嗨,
您可以参考STM32 ODE功能包
http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-ode-function-pack-sw/fp-sns-flight1。 HTML
特别是,源文件sensor_service.c处理函数中与安全相关的事件:
HCI_Event_CB()
问候,
安德里亚

以上来自于谷歌翻译


以下为原文




Hi,
you can refer to the  STM32 ODE function pack available
http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32-ode-function-pack-sw/fp-sns-flight1.html
.In particular, the source file sensor_service.c handles security related events in function:
HCI_Event_CB()
Regards,
Andrea
举报

曲芳

2019-3-4 10:26:35
嗨安德里亚,
非常感谢快速回复,我很快就会试一试,但似乎已经更清楚了。
再见,
丹尼尔

以上来自于谷歌翻译


以下为原文




Hi Andrea,
thanks a lot for the quick reply, I'll give it a try soon but it seems already more clear.
Ciao,
Daniele
举报

更多回帖

发帖
×
20
完善资料,
赚取积分