Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some problems about bluetooth mesh sdk on android 13 #9

Open
015-Michelle opened this issue Jun 20, 2023 · 2 comments
Open

some problems about bluetooth mesh sdk on android 13 #9

015-Michelle opened this issue Jun 20, 2023 · 2 comments
Assignees

Comments

@015-Michelle
Copy link

提供的demo

有问题机型 :oppo find x3 pro
安卓版本 : 13
在2.5版本上:scan -> provisioning -> connecting.. (loadig一段时间后,弹窗"subscribing to the device characteristic failed") 
在3.1版本上:scan -> provisioning -> connecting..(一直loading,只要不退出就不会终止)

均杀掉app并重新打开,在networks和devices列表能看到设备存在,连接设备后可以控制(连上概率较小,尝试多次只成功一次,可能尝试了10次吧)

配对设备:

配对过程中,我们的设备已经给出了配对成功的响应,但是在我们自己的app中还是一直处于配对的loading状态,但是杀掉app后发现设备已经存在数据库中了。  调试发现,是ProvisionerConnection.provision内ProvisioningCallback的success没有回调
此时,如果再一次重新配对,那么就会返回"Node exist in database"的错误信息(error的错误回调是有的)
接着,杀掉app,发现设备在设备列表内。
删除设备的操作正常。

连接设备:

在demo中安卓13仅成功过一次,但是之后就再也没有连上过了;在我们自己的app中,总是杀掉app,进来能连上一次,后来就一直连不上
(主要是一直都搜索不到设备,导致我们没法去连接,但是我们通过BluetoothLeAdvertiser.startAdvertising,可以给我们的设备发包)

ProvisionerConnection.provision内ProvisioningCallback的success没有回调,我们尝试的操作:

在一段时间内,若发现还没有返回,则对比前后数据库内node,找到新增的node,并返回。这样配对的流程没有问题了,但是回到设备列表,无法正常写入数据ConnectableDeviceWriteCallback报错。杀掉app并重新打开,连接设备,可以正常连接,对设备写入数据也是正常的。

ble_mesh_log.zip

@015-Michelle
Copy link
Author

same problem : oppo find x2 & onePlus 9pro

@015-Michelle
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants