完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我正在安卓和RN4020设备之间连接蓝牙低能耗通信。广告和连接功能都很好。Android上的所有服务和特性都是可见的。使用SDF、SDM、SDN等更新的设备信息被Android识别。但问题是,在Android上看不到使用SUW或SHW命令更新的特性值。1)在发送命令“SDM,hello”后,命令“GDM”读取“你好”和“SURR,2A24”读取“6656C6C6F”。Android也看到了“你好”。2)另一方面,在发送命令“SUW,2A24427965”之后,命令“GDM”和“SUR,2A24”读出正确的值(即“再见”或“427965”),但是Android仍然看到由SDM设置的前一个模型名“Hello”。没有帮助。另外,尽管“SUR,2A19”报告“32”,但是Android不识别更新电池电平值“SUW,2A19,32”。我多次浏览RN4020数据表和用户指南,但是找不到任何提示。我怎么了?有人能帮忙吗?谢谢
以上来自于百度翻译 以下为原文 Hi there, I'm hooking up Bluetooth Low Energy communication between Android and the RN4020 device. Advertising and connection are perfectly functional. All services and characteristics are visible on Android. Updated device information using SDF,SDM,SDN,etc. is recognized by Android. But the problem is, that updated characteristic values using the SUW or SHW commands are not seen on Android. Here are two examples (using the model name characteristic UUID=2A24). 1) After sending the command "SDM,Hello" the command "GDM" reads "Hello" and "SUR,2A24" reads "48656C6C6F". Android sees "Hello", too. So everything's fine in this case. 2) On the other hand, after sending the command "SUW,2A24,427965", the commands "GDM" and "SUR,2A24" read the correct values (i.e. "Bye" or "427965"), but Android still sees the previous model name "Hello" that was set by SDM. Rebooting either Android or RN4020 does not help. Also, updating the battery level value "SUW,2A19,32" is not recognized by Android, even though "SUR,2A19" reports "32". I worked through the RN4020 datasheet and user guide many times, but I cannot find any hint. What am I doing wrong? Can anybody help? Thanks |
|
相关推荐
3个回答
|
|
电源周期你的Android设备将解决这个问题。这个william hill官网
已经讨论过很多次了,我已经给出了同样的想法至少三次。
以上来自于百度翻译 以下为原文 Power cycle your android device will solve the problem. This has been discussed in this forum many times and I have given out the same ideas at least three times. |
|
|
|
谢谢你的答复。我已经在上传应用之后试着给我的Android供电了,我每天晚上都关掉:不,没用。我已经说过“重新启动Android或者RN4020都无济于事”,但是为什么我还要给Android循环供电呢?我只是想更新一个特性值。再也没有了。在不重新启动或清空缓存的情况下,这是可能的。终端用户也不会为他的手机供电,只是为了从外围设备获得一个新的值。
以上来自于百度翻译 以下为原文 Thanks for your reply. I already tried to power cycle my Android after uploading the app, and I switch it off every night: No, it doesn't help. I already stated that "Rebooting either Android or RN4020 does not help." But why should I power cycle the Android, anyway? I simply want to update a characteristic value. Nothing more. This must be possible without rebooting or emptying caches. The end user won't power cycle his phone either, just to get a new value from the peripheral. |
|
|
|
如果你发送“ls”命令,RN4020的回复是什么?
以上来自于百度翻译 以下为原文 What does the RN4020 reply if you send the "LS" command? |
|
|
|
只有小组成员才能发言,加入小组>>
5248 浏览 9 评论
2036 浏览 8 评论
1956 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3217 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2264 浏览 5 评论
786浏览 1评论
677浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
603浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
684浏览 0评论
581浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 03:18 , Processed in 1.080890 second(s), Total 52, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (威廉希尔官方网站 图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号