Code Monkey home page Code Monkey logo

Comments (5)

igor90ns avatar igor90ns commented on August 22, 2024

Any updates? or information is this issue affecting more then this device (is it SoC, manufacturer etc issue?)

from connectedhomeip.

yunhanw-google avatar yunhanw-google commented on August 22, 2024

Hi, @igor90ns

It seems to me we can suppress ChipDeviceControllerException when invoking pairing API for android, but the root cause is related to BLE Gatt Service, you may check whether svcId is null or not with your debugging build.

You mention "On all other devices it seems that commissioning works fine", I assume this fails with the particular thread device, which seems to soemthing wrong on its BLE configuration. with that thread device

BluetoothGattService subscribeSvc = bluetoothGatt.getService(svcUUID);

UUID svcUUID = convertBytesToUUID(svcId);
BluetoothGattService sendSvc = bluetoothGatt.getService(svcUUID);
if (sendSvc == null) {
  Log.e(TAG, "Bad service");
  return false;
}

from connectedhomeip.

igor90ns avatar igor90ns commented on August 22, 2024

Hi, @igor90ns

It seems to me we can suppress ChipDeviceControllerException when invoking pairing API for android, but the root cause is related to BLE Gatt Service, you may check whether svcId is null or not with your debugging build.

BluetoothGattService subscribeSvc = bluetoothGatt.getService(svcUUID);

UUID svcUUID = convertBytesToUUID(svcId);
BluetoothGattService sendSvc = bluetoothGatt.getService(svcUUID);
if (sendSvc == null) {
  Log.e(TAG, "Bad service");
  return false;
}

I am using libraries and i cant access values, but when I set breakpoint i can see that var6 is null
UUID var5 = convertBytesToUUID(svcId);
BluetoothGattService var6 = var4.getService(var5);
if (var6 == null) {
Log.e(TAG, "Bad service");
return false;

You mention "On all other devices it seems that commissioning works fine", I assume this fails with the particular thread device, which seems to soemthing wrong on its BLE configuration. with that thread device

No, it means that I have tried same use case with different mobile devices (Samsung S22, Google Pixel 7, Huawei P9 Lite) and it works correctly with thread devices, but when i try same on Xiaomi Tab 5 (model 21051182g) with android 13 chiptool app crashes.

Regarding thread device, I have used Nanoleaf bulb and led strip (matter certified devices)

from connectedhomeip.

joonhaengHeo avatar joonhaengHeo commented on August 22, 2024

@igor90ns
I also found a similar issue. (LG Valvet in Android 12 version.)
Can you check if it is modified with the PR I uploaded?

from connectedhomeip.

yunhanw-google avatar yunhanw-google commented on August 22, 2024

@igor90ns feel free to reopen or create a new issue if it is still problematic, thanks

from connectedhomeip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.