完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我们的Android应用程序正在产生错误19,“远程设备被迫断开连接”。我们的Android开发人员已经请求知道BLE堆栈正在记录什么,以及嗅到HI的能力(不确定他在这里意味着什么)。迄今为止,我在互联网上看到的关于错误19的所有内容都出现在其他芯片上(ti、SiliconLabs、Nordic),这些制造商中没有一个曾经指出问题是在芯片中,而是Android的问题。这里有人有什么消息吗?
以上来自于百度翻译 以下为原文 Our Android app is generating error 19, "Remote device has forced a disconnect." quite a few times when trying to make the initial connection. Our Android developer has requested to know what the BLE stack is logging and the ability to sniff the HI (not sure what he means here). Everything I've read so far on the Internet about error 19 occurs on other chip as well (TI, SiliconLabs, Nordic) and none of those manufacturers have ever indicated that the problem is in the chip but a problem with Android. Does anybody here have any information? |
|
相关推荐
3个回答
|
|
|
BLE API具有检查HI(硬件接口)状态的功能。没有内置的日志记录功能,但您可以看到处理BLE回调参数/事件时发生的所有事件。然后,您可以将这些事件/结果镜像到UART输出或类似的日志记录。
CyByLoPraceSeVScript()将处理调用调用CyByLead启动(回调)的回调函数所发生的所有事件;函数。 如果您有从回调处理程序记录的数据/事件,那么您应该看到更多关于该问题的信息。 有一点要注意的是,Android和其他“标准”操作系统的设备往往有怪癖/刚涉及某些硬件的连接行为(如蓝牙,USB,等)导致只属于特定的硬件特定的操作系统甚至是特定版本的问题。 我的猜测是,你缺少处理一些事件发送响应的Android应用程序,它是希望以正确连接。 以上来自于百度翻译 以下为原文 The BLE APIs have functions to check the HI (Hardware Interface) states for behavior. There is not built-in logging functionality, but you can see all of the events that occur when handling the BLE Callback arguments/events. Then, you can just mirror those events/results to a UART output or something similar for logging. CyBle_ProcessEvents() will handle all events that occured by calling the callback function passed to the CyBle_Start(callback); function. If you have the data/events logged from the callback handler, then you should see more information on the issue(s). One thing to note is that Android and other "standard" OS on devices tend to have quirks/rigid behavior involving certain hardware connections (such as bluetooth, u***, etc.) leading to issues that pertain only to specific hardware for specific OS and possibly even for specific versions. My guess would be that you are missing handling some of the events to send responses to the android app that it is expecting in order to correctly connect. |
|
|
|
|
yuhe82 发表于 2018-9-24 11:39 非常感谢!这是我在阅读数据表时所期待的。 以上来自于百度翻译 以下为原文 Thank you very much! This is what I expected from reading the datasheet. |
|
|
|
|
|
回调中的HCI事件具有最低级别的信息,但我没有深入挖掘它们,以了解它们是多么有用。但是,如果您正在寻找比回调中的标准BLE事件所提供的更详细的信息,那么HCI事件将是查找日志数据的下一个位置。 祝你好运, 亚·普拉特 以上来自于百度翻译 以下为原文 The HCI events in the callback have the lowest-level information, but I have not dug into them deeply enough to know how useful they are. But, if you are looking for more detailed information than what the standard BLE events in the callback provide, then the HCI events would be the next place to look for logging data. Best of luck, Elijah Pratt |
|
|
|
|
只有小组成员才能发言,加入小组>>
788个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7386 浏览 0 评论
2490 浏览 1 评论
2183 浏览 1 评论
4046 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2093 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7879浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6448浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
760浏览 2评论
735浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
8300浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-15 08:05 , Processed in 0.749479 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
361