1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我试图通过我的BLE应用程序实现密码控制(通过智能手机)。我有一个只写密码特性和几个其他自定义特性。
最初,禁用的特性(除了密码特性)通过: CyBLY-GATSISDABABLE属性(XXXXY句柄); 一旦收到正确的密码,我通过以下方式启用其他特性: CyBLY-GATESENABLE属性(XXXXY句柄); 使用CyScript,我不能看到新启用的特性出现,或者使用“发现所有属性”或“读取所有特性”。我能假设它们在这一点上是可用的和可用的吗?这是解决这一问题的有效方法吗? 谢谢 丰富的 以上来自于百度翻译 以下为原文 I am trying to implement password control (via smartphone) of my BLE application. I have a write-only password characteristic and several other custom characteristics. Initially the characteristics are disabled (except the password characteristic) via: CyBle_GattsDisableAttribute(xxxx_HANDLE); Once the correct password is received I enable the other characteristics via: CyBle_GattsEnableAttribute(xxxx_HANDLE); Using CySmart I cannot see the newly enabled characteristics appear, either using "discover all attributes" or "read all characteristics". Can I assume they are enabled and usable at this point? Is this a valid way to approach this? Thanks Rich |
|
相关推荐
7个回答
|
|
丰富的,
是的,在启用特性之后,您可以假设它是可用的。检查API的返回值,以确保该属性确实被启用。 在CySMART中,如果在启用属性之后“发现所有属性”,那么您应该能够看到新特性。我用一个简单的项目测试了它,效果很好。 以上来自于百度翻译 以下为原文 Rich, Yes, after the characteristic is enabled, you can assume it to be usable. Check the return value of the API to ensure that the attribute was indeed enabled. In CySmart, if you "Discover All Attributes" after the attributes are enabled, then you should be able to see the new characteristics. I tested this with a simple project and it worked fine. |
|
|
|
正如YSSU所说的,请务必检查返回代码,看看是否有错误。很可能在启用/禁用函数返回错误时遇到问题。
以上来自于百度翻译 以下为原文 As yssu said, make sure to check the return code to see if there was an error. Most likely you are having trouble with the enable/disable function returning an error. |
|
|
|
谢谢你的帮助。在启用的特性“发现所有属性”不告诉他们。如果启用后,我写的使用cyble_gattswriteattributevalue特征然后用“发现所有属性”他们出现。 这有道理吗? 谢谢 丰富的 以上来自于百度翻译 以下为原文 Thank you for the help. After enabling the characteristic "Discover All Attributes" does not show them. If, after enabling them, I write to the characteristic using CyBle_GattsWriteAttributeValue and then use "Discover All Attributes" they show up. Does this make sense? Thanks Rich |
|
|
|
xcwykj 发表于 2019-1-4 20:22 它是否也为禁用该属性做了同样的行为? 在启用/禁用属性之后读取属性会产生相同的效果吗? 在启用/禁用属性函数上找不到很多有用的文档… 以上来自于百度翻译 以下为原文 Does it do the same behavior for the disabling of the attribute as well? Does reading the attribute after enabling/disabling it cause the same effect? I can't find much useful documentation on the enable/disable attribute functions... |
|
|
|
我将不得不试验禁用。 我一直在和我认为的柏树虫搏斗。我一直在改变我的定制服务的特性,在某些时候,禁用我的特性,我不再连接到外围设备! 如果我没有禁用它连接罚款。 经过大量调试,我发现如果禁用列表中的最后一个特性(在GUI中),则无法连接。替换列表中的最后一个特性,而不是禁用它。 柏树,需要验证吗? 丰富的 以上来自于百度翻译 以下为原文 I will have to experiment with the disabling... I have been fighting what I think is a Cypress bug. I have been changing the characteristics in my custom service and at some point, disabling the characteristics as I was, I was no longer to connect to the peripheral! If I did not disable it connected fine. After a lot of debugging I found that if you disable the last characteristic in the list (In the GUI) you cannot connect. Replacing the last characteristic in the list with one that I am not disabling fixed it. Cypress, care to verify? Rich |
|
|
|
xcwykj 发表于 2019-1-4 20:50 你确定你使用的是最新版本的BLE组件,即V3.30?我已经测试了这些API,没有发现任何问题。 您是否可以分享您的项目,以便我们能够测试?可能是一些我们可能遗漏或不正确实现的角落案例。 以上来自于百度翻译 以下为原文 Are you sure you are using the latest version of BLE component, i.e v3.30? I have tested these APIs and not found any issue. Would it possible for you to share your project so that we can test? Might be some corner case which we might have missed or an incorrect implementation. |
|
|
|
烈阳异丙醇 发表于 2019-1-4 21:04 你是柏树员工吗?我需要一个直接的柏树电子邮件,并必须核实一个不披露到位。 丰富的 以上来自于百度翻译 以下为原文 Are you a Cypress employee? I would need a direct Cypress email and would have to verify that a non-disclosure is in place. Rich |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2101 浏览 1 评论
1848 浏览 1 评论
3666 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1783 浏览 6 评论
1533 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
564浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
418浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
434浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
911浏览 2评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-21 20:41 , Processed in 0.973644 second(s), Total 88, Slave 72 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号