问题如题:
You are probably suffering from a firmware bug on your peripheral which is exposed by some changes in iOS 9.
The reason for having this issue would be if your peripheral is calculating the key based on the assumption that some reserved bits (according to BLE Spec 4.0) in the pairing request would always be zero.
iOS 9 is now using the new LE Secure Connections pairing model, and the SC bit is set to 1 in the pairing request.
The peripheral can ignore this request and choose to use the legacy pairing model, but it cannot ignore the bits when creating the keys, and must use the data as received to calculate them.
Peripherals are supposed to use the pairing request exactly as received to calculate the keys otherwise the keys will be wrong when iOS sends a pairing request with these bits (in this case the SC bit) set to 1
请问下,英文部分描述的保留需要在哪里改,谢谢,问题很急,项目完结待出货。
Yan:
haibin,
你使用的最新的SDK 2.1 吗?
因为我知道2540 的 SDK 1.4.1 对这个问题有解决,所以我问你是否用了最新的2640最新的SDK 2.1.
理论上应该由支持更新版本的一方向下兼容。
haibin deng:
回复 Yan:
Hi Y
那ANCS这个例程,2.1的SDK有例子吗,谢谢!