Skip to main content
daniele2399
Associate II
December 6, 2016
Solved

Bluenrg-ms bonding with PIN

  • December 6, 2016
  • 2 replies
  • 1074 views
Posted on December 06, 2016 at 15:28

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
This topic has been closed for replies.
Best answer by Andrea Palmieri
Posted on December 06, 2016 at 17:45

Hi,

you can refer to the FP-SNS-FLIGHT1 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

2 replies

Andrea Palmieri
ST Employee
December 6, 2016
Posted on December 06, 2016 at 17:45

Hi,

you can refer to the FP-SNS-FLIGHT1 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

daniele2399
Associate II
December 7, 2016
Posted on December 07, 2016 at 10:24

Hi Andrea,

thanks a lot for the quick reply, I'll give it a try soon but it seems already more clear.

Ciao,

Daniele