Skip to main content
zxin.2116
Associate II
Nov 25, 2019 1:55 PM UTC
Question

Use computer Bluetooth connect to STM32WB board,need PIN

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.

4 replies

Stecklo
Senior
Nov 25, 2019 2:00 PM UTC

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

zxin.2116
zxin.2116Author
Associate II
Nov 25, 2019 2:18 PM UTC

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

zxin.2116
zxin.2116Author
Associate II
Nov 25, 2019 2:19 PM UTC

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

Stecklo
Senior
Nov 25, 2019 5:22 PM UTC

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

Does your Bluetooth adapter support Bluetooth 4.0?