大家好!目标: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 applica
tion :
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 !