This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请教:关于simple_peripheral例程bond问题



我们采用SDK中的simple_peripheral例程进行测试,正常情况下,手机配对时显示的信息是:

BLE Peripheral

0xB0912269F43B

Initialized

Advertising

Num Conns: 1

0x78104A7E8F43

Connected Advertising

Pairing started

Passcode: 123456

Pairing success

Bond save success

Disconnected

Advertising

我们用一个手机(此处称为手机A)测试成功,信息如上。

但是利用另外手机(此处称为手机B)配对测试时,信息显示如下:

BLE Peripheral

0xB0912269F43B

Initialized

Advertising

Num Conns: 1

0x78104A7E8F43

Connected Advertising

Pairing started

Passcode: 123456

Pairing success

Bond save success

一直处于这种状态,手机上显示是配对成功了。但此时再用手机A配对时,无法配对。只有在手机B取消配对后,再用手机A就能配对成功。

手机B取消配对后,会立即继续显示:

Disconnected

Advertising

//后面就是手机A配对信息

说明例程simple_peripheral对不同手机配对是不同的,且有的配对不正确。

请问:如何修改例程处理这个问题,使得例程对各种手机都能配对成功?

谢谢!