完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好!目标:RN4020显示我的Android私人服务EI试图在Android工作室上创建一个Android应用程序来连接一个RN4020模块,我遇到了一些关于“LC”和“ls”命令的歧义。当我连接到RN4020模块时,我从RN4020启动LC和LS命令,这是什么样子的。我的应用程序的输出:我有一个蓝牙GATT服务器,它有一个预先指定的服务和一个定制服务。为什么LC命令不显示我的Android服务器GATT服务?它只是一个奇怪的服务,我不知道它的起源。非常感谢你的帮助!
以上来自于百度翻译 以下为原文 Hello everyone ! Goal : RN4020 display my Android private service I'm trying to create an Android app on Android Studio to connect a RN4020 module and I met some ambiguity about 'LC' and 'LS' command. When i'm connected to the RN4020 module, I launch the LC and LS command from the RN4020 and this what appears 10000000328E0FBBC6421AA6699BDADA //<= LC COMMAND 10000002328E0FBBC6421AA6699BDADA,002A,02 10000001328E0FBBC6421AA6699BDADA,002C,04 10000001328E0FBBC6421AA6699BDADA,002D,10 END END //<== LS COMMAND This is my output of my application : fr.myapplication D/BluetoothGattServer: registerCallback() fr.myapplication D/BluetoothGattServer: registerCallback() - UUID=9322cbc6-e3d3-4e37-81f6-4f0a8cedd7c5 fr.myapplication D/BluetoothGattServer: onServerRegistered() - status=0 serverIf=7 fr.myapplication D/BluetoothGattServer: addService() - service: 86c86302-fc10-1399-df43-fceb24618252 fr.myapplication D/BluetoothGattServer: addService() - service: 7000001b-53e7-eda2-2649-5ecbd0bbfb85 fr.myapplication D/BluetoothGattServer: onServiceAdded() - service=86c86302-fc10-1399-df43-fceb24618252status=0 fr.myapplication D/HELLO: Our gatt server service was added. fr.myapplication D/BluetoothGattServer: onServiceAdded() - service=7000001b-53e7-eda2-2649-5ecbd0bbfb85status=133 fr.myapplication D/HELLO: Our gatt server service was added. fr.myapplication D/HELLO: Created our own GATT server. fr.myapplication D/BluetoothGatt: connect() - device: 00:1E:C0:30:AB:23, auto: false fr.myapplication D/BluetoothGatt: registerApp() fr.myapplication D/BluetoothGatt: registerApp() - UUID=8b1285d0-3cdd-4490-8103-9a4ccc18deaf fr.myapplication D/BluetoothLeService: Trying to create a new connection. fr.myapplication D/BluetoothGatt: onClientRegistered() - status=0 clientIf=8 fr.myapplication I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@12b4e9d time:54834322 fr.myapplication V/ActivityThread: updateVisibility : ActivityRecord{db6b455 token=android.os.BinderProxy@c7d9b49 {fr.myapplication/fr.myapplication.DeviceScanActivity}} show : false fr.myapplication D/BluetoothGattServer: onServerConnectionState() - status=0 serverIf=7 device=00:1E:C0:30:AB:23 fr.myapplication D/BluetoothGattServer: Server connected, update device to list fr.myapplication D/HELLO: Our gatt server connection state changed, new state fr.myapplication D/HELLO: 2 //Which means STATE_CONNECTED fr.myapplication D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=8 device=00:1E:C0:30:AB:23 fr.myapplication I/BluetoothLeService: Connected to GATT server. fr.myapplication D/BluetoothGatt: discoverServices() - device: 00:1E:C0:30:AB:23 fr.myapplication I/BluetoothLeService: Attempting to start service discovery:true fr.myapplication D/BluetoothGatt: onClientConnParamsChanged() - Device=00:1E:C0:30:AB:23 interval=6 status=0 fr.myapplication D/BluetoothGatt: onSearchComplete() = Device=00:1E:C0:30:AB:23 Status=0 fr.myapplication D/BluetoothGatt: onClientConnParamsChanged() - Device=00:1E:C0:30:AB:23 interval=39 status=0 fr.myapplication D/BluetoothAdapter: stopLeScan() I have a bluetooth gatt server which has one predifined service and one custom service. Why the LC command doesn't show my android server gatt services ? It just shows a weird service that I don't know its origin. Thanks a lot for your help ! |
|
相关推荐
1个回答
|
|
LC将列出连接的对等设备中的客户端服务。LS将列出当前模块中的服务器服务。
以上来自于百度翻译 以下为原文 LC will list the client services in the connected peer device. LS will list the server services in the current module. |
|
|
|
只有小组成员才能发言,加入小组>>
5280 浏览 9 评论
2053 浏览 8 评论
1966 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3228 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2275 浏览 5 评论
812浏览 1评论
706浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
645浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
704浏览 0评论
600浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-1-9 13:24 , Processed in 1.899115 second(s), Total 75, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (威廉希尔官方网站 图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号