Skip to main content
zxin.2116
Associate II
November 25, 2019
Question

Use computer Bluetooth connect to STM32WB board,need PIN

  • November 25, 2019
  • 2 replies
  • 2333 views

0690X00000AsPxfQAF.png0690X00000AsNqmQAF.png0690X00000AsNqrQAF.jpgI want use computer Bluetooth to communicate with STM32 board .

First, I use ST BLE sensor, succeed.

second,use conputer to connect,I need to write PIN.

Last,I use labview to scan ,I cannot find it.

I want to set up a route from stm32WB to my PC base application .

How can I solve the second step.

the STM32WB use the code is \\ P-NUCLEO-WB55.Nucleo\Applications\BLE

This topic has been closed for replies.

2 replies

Stecklo
Senior
November 25, 2019

Pin is set in aci_gap_set_authentication_requirement(). It is "111111" by default

zxin.2116
zxin.2116Author
Associate II
November 25, 2019

thanks,I have find it :BleApplicationContext.BleApplicationContext_legacy.bleSecurityParam.Fixed_Pin = 111111;​

zxin.2116
zxin.2116Author
Associate II
November 25, 2019

but I still connot connect succeed. my computer can connect iphone(2)​ which connect to STM32WB board succeed.

Stecklo
Senior
November 25, 2019

Which operation system and API do you use on the PC?

Does your Bluetooth adapter support Bluetooth 4.0?