1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我找不到一个专门为cysmart开发页面,所以我提出我的问题在这里:我已经开发了一个Windows 7的宿主应用程序使用cysmart图书馆通过cysmart API参考指南曝光。我的应用程序通过CY5677 USB软件进行通信。我们已经改变了我们的外围设计咯,但是现在我的主机应用程序无法完成配对更多。没有预期的ll_enc_req包发送给周围;相反,icybledevice ble_error_insufficient_resources pair()方法返回的。这从未发生,但事实上,我甚至没有被分组显示这是一个问题的cysmart元件内部。知道发生了什么事吗?
以上来自于百度翻译 以下为原文 I can't find a dedicated page for CySmart development, so I'm posing my question here: I've developed a Windows 7 BLE Host application using the CySmart libraries as exposed via the CySmart API Reference Guide. My app communicates through a CY5677 USB dongle. We have changed our peripheral design slightly, but now my Host app can't complete pairing any more. The expected LL_ENC_REQ packet is never sent to the peripheral; instead, the ICyBleDevice.Pair() method returns BLE_ERROR_INSUFFICIENT_RESOURCES. This never used to happen, but the fact that the LL packet isn't even being sent indicates this is a problem internal to the CySmart components. Any idea what's going on? |
|
相关推荐
3个回答
|
|
错误“ble_error_insufficient_resources”是由枚举类cystatus并不是icybledevice返回。pair()(返回为cyapierr类部分在API参考指南中提到的163页#状态)
链接:http://www.cypress.com/file/232791/download API参考指南 因此,它看起来像是blemgrcb类部分的连接处理是无法与设备连接。因为连接处理返回结果和状态是对等设备连接,这是你的情况ble_error_insuffecient_resources连接相关的错误。 因此,将你的项目,这样我可以在你的代码看看,帮助你更好的。 当做, 德黑拉杰 以上来自于百度翻译 以下为原文 The error "BLE_ERROR_INSUFFICIENT_RESOURCES" is returned by the enum class CyStatus and not the ICyBleDevice.Pair() (which returns the status as part of CyApiErr class as mentioned in page#163 in the API reference guide) API reference guide link: http://www.cypress.com/file/232791/download Hence, it looks like the connection handler which is part of BleMgrCb class is not able to connect with the device. Because the connection handler returns the result and status which is the peer device connected and errors associated with the connection which is BLE_ERROR_INSUFFECIENT_RESOURCES in your case. Hence, attach your project so that I can have a look at your code and assist you better. Regards, Dheeraj |
|
|
|
twtetrwerw 发表于 2018-8-29 10:02 嗨,Dheeraj, 谢谢你的快速反应。实际上,连接请求是由主机发送并由目标接收的。事实上,CyBrErrReCalbB.OnCelpDeD()处理程序返回CyStas.BulyStasuSurk的状态以及包含对等设备的CysCultRebug对象。这使我相信这种联系已经确立。 因为状态指示成功,所以我的代码接下来用这个CyclithTrime.Enter注册我的设备回调,然后在实例化CysAsvices对象之后调用设备的对()方法。正是这个设备的CyBuffeCeCalBut.OnApple完成的处理程序返回了CyStasu.BLyErrRoRo.Sun足够的资源状态。 我将附上我的VisualStudio项目(C.A.N.Plus WiFrm)用于您的评论。 再次感谢你的帮助! 凯文德格罗德 起泡模拟器 347.4 K 以上来自于百度翻译 以下为原文 Hi Dheeraj, Thanks for the quick response. Actually, the connection request is sent by the Host and received by the target. In fact, the CyBleMgrCallback.OnConnected() handler returns a status of CyStatus.BLE_STATUS_OK along with a CyConnectResult object containing a peer device. This leads me to believe that the connection has been established. Because the status indicates success, my code next registers my device callbacks with this CyConnectResult.Device, and then invokes the device's Pair() method after instantiating a CyPairSettings object. It is this device's CyBleDeviceCallback.OnPairingCompleted handler that returns a status of CyStatus.BLE_ERROR_INSUFFICIENT_RESOURCES. I will attach my Visual Studio project (C#/.NET plus WinForms) for your review. Thanks again for your help! Kevin Degrood
|
|
|
|
卿小知1 发表于 2018-8-29 10:16 嗨,Dheeraj, 我找到了问题所在:我的狗的配对表已经满了!外围设备在小代码更改后工作但停止工作的原因是蓝牙设备地址被无意地改变了。以前的BDA已经在GELE的配对表中,但是在外围设备的固件被更新之后,它使用了一个新的、不同的BDA。自然地,软件狗没有任何额外空间来容纳这个新的BDA,因此报告了“资源不足”。我用CyScript程序本身证实了这一点,这最终揭示了这个错误条件的原因。 再次感谢你的帮助, 凯文 以上来自于百度翻译 以下为原文 HI Dheeraj, I figured out what the issue was: my dongle's pairing table was full! The reason why the peripheral used to work but stopped working after a minor code change is because the Bluetooth Device Address was inadvertently changed. The previous BDA was already in the dongle's pairing table, but after the peripheral's firmware was updated it used a new, different BDA. Naturally, the dongle didn't have any extra room for this new BDA and thus reported 'Insufficient Resources'. I confirmed this using the CySmart program itself, which finally revealed the cause of this error condition. Thanks once again for all your help, Kevin |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2105 浏览 1 评论
1851 浏览 1 评论
3669 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1786 浏览 6 评论
1536 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
570浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
423浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
384浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
915浏览 2评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 01:01 , Processed in 0.939376 second(s), Total 82, Slave 66 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号