Cypress技术论坛
直播中

崔丽

7年用户 231经验值
私信 关注
[问答]

WICED CYW20719-B1未配对操作变慢和故障

嗨队,
你能帮助找出根本原因和解决方案修复BT不成对失败问题吗?
提前感谢。
问题描述。
芯片:CYW20719-B1
WSDE SDK:WICE Studio 6和Wice工作室6.1
FW:WICE Studio默认演示项目:SNIP/BT/SPP和SNIP/BT/A2DP。
描述:
当使用Android手机设备多次对未配对操作时,我们将PIN码或密钥不正确的问题,无法再次配对。
复制步骤:
1。下载演示固件后,重置以运行它。
2。打开Android手机上的蓝牙设备,在蓝牙设备列表中,我们可以看到演示设备,如“SPP测试”或“WICE A2DP测试”等等。
三。对于第一次配对操作,Android手机可以很快地与目标SPP或A2DP设备连接和配对,并且没有任何问题。
4。未与目标设备配对,然后使用同一目标设备执行第二配对操作,
我们发现,与第一次相同的操作相比,这对操作要花费很长的时间。
但最终,它将连接并配对成功。
注意,在进入下一步之前,这些步骤可能会获得更多的时间。
5。未与目标设备配对,然后用同一目标设备进行第三次(n次)配对操作,
此时,配对操作将花费很长的时间,最后,该操作将失败,并且不与目标设备配对。
Android手机将提示“PIN码或密钥不正确,无法与目标设备配对”的信息。
6。遇到步骤5所示的配对失败问题后。Android手机无法与目标设备配对。
7。只有复位后的目标设备,那么Android手机设备可以连接和对目标设备再次。
8。但是当你重做操作步骤的6步,同样的问题再次发生。
所以这将是一个严重的问题在联合国削削与cyw20719-b1装置多次。
注意,一定要做对的配对操作多次,对故障问题描述在第三年代是一个典型的例子,但事实上,它可能发生在多次重试。
谢谢,
杜德利

以上来自于百度翻译


     以下为原文
  Hi Team,

Could you help find the root cause and the solution to fix the BT unpair-pair failure issue?
Thanks in advance.

Issue Description.
Chip: CYW20719-B1
WICED SDK: WICED Studio 6.0 and WICED Studio 6.1
FW: WICED Studio default demo projects: snip/bt/spp and snip/bt/a2dp.
Description:
When donging unpair-pair operations multiple times with Android Phone device, we will PIN code or secret key incorrect issue and unable to pair again issue.
Reproduce Steps:
1. After downloaded the demo firmware, then reset to run it.
2. Open the Bluetooth on the Android Phone device, in the bluetooth device list, we can see the demo device, such as "spp test" or "wiced a2dp test", and so on.
3. For the first time pair operation, the Android Phone can connect and pair with the target SPP or A2DP device very fast, and without any issue.
4. Un-pair with the target device, then do the second pairing operation with the same target device,
    We found that the pair operation will take much long time than do the same operation during the first time.
    But at last, it will connect and pair success.
    Note, this steps may success much more time before you get into next step.
5. Un-pair with the target device, then do the third(N times) paring operation with the same target device,
    At this time, the pair operation will take very long time, and at last, this operation will failed and not paired with the target device.
    And the Android Phone will prompt the information that "PIN code or secret key is incorrect, unable to pair with the target device."
6. After encounter the pair failure issue as shown in step 5. The Android Phone cannot pair with the target device any more.

7. Only after reset the target device, then the Android Phone device can connect and pair with the target device again.
8. But after you redo the steps of step3 to step 6, the same issue will happen again.
    So it would be a serious issue when trying to un-paring and paring with the CYW20719-B1 device multiple times.

Note, be sure to do the unpair-pair operations multiple times, the pair failure issue described here at the third time is just a typical example, but indeed, it may happen after multiple times retry.

Thanks,
Dudley

回帖(1)

陈炜

2018-10-22 10:05:14
嗨,杜德利
问题可以复制。让我再解释一下这样的情况:
1。CYW20719是A2DP设备,Android手机首次连接到设备和配对/绑定。
2。Android手机删除绑定信息。而A2DP设备则没有。
三。然后Android手机再次连接到A2DP设备。在这种情况下,Android手机认为A2DP设备是一种不绑定的新设备,而A2DP设备将Android手机作为绑定设备,并交换绑定信息中存储的密钥。然后,配对过程应该失败,如果A2DP设备有删除旧绑定信息的机制,并初始化新的配对过程,这不会导致连接失败,但可能需要一些时间。如果A2DP设备没有这样的机制,连接应该失败。根据您的测试结果,CYW20719具有这样的机制,但花费了大量的时间。
通过我的测试,CYW20706在这种情况下工作顺利。
你可以分享一些评论吗?
当做
詹森

以上来自于百度翻译


     以下为原文
  Hi Dudley
 
Issue can be reproduced. Let me explain more for such situation:
1. CYW20719 is A2DP device, Android phone connect to device and pair/bonding successfully at first time.
2. The Android phone delete the bonding info. While the A2DP device not.
3. Then Android  phone connect to the A2DP device again. In this situation, Android phone thought A2DP device is a new device which not bonded, while A2DP device take Android phone as a bonding device and exchange the keys stored in bonding info.  Then the pairing process should be failed and if A2DP device has the mechanism to delete the old bonding info and init the new pairing process, that will not lead to connection failed but may take some time.  If A2DP device has no such mechanism, the connection should be failed. Per your test results, the CYW20719 has such mechanism but it take a lot of time.
 
Per my test, the CYW20706 works smooth in such situation.
@jactbtta zhez  Could you please share some comments.
 
Regards
Jenson
举报

更多回帖

发帖
×
20
完善资料,
赚取积分