Giter Site home page Giter Site logo

Comments (10)

bzbarsky-apple avatar bzbarsky-apple commented on June 28, 2024

I tried using the chip-tool api to connect
./chip-tool pairing code 1 21104754926

Where did that code come from? Is that the one the Android app provided?

./chip-tool payload discover commissionables also fails.

There is no "payload discover" command in chip-tool...

What is avahi, if you have it installed, showing you about the commissionable advertisement in question?

from connectedhomeip.

pmatsibekker avatar pmatsibekker commented on June 28, 2024

from connectedhomeip.

pmatsibekker avatar pmatsibekker commented on June 28, 2024

from connectedhomeip.

bzbarsky-apple avatar bzbarsky-apple commented on June 28, 2024

chip-tool discover commissionables should generally work. So if that's not working, then chances are either a commissioning window is not being opened, or the device that is commissionable and chip-tool are not on the same network, or something on that network is messing with dns-sd.

avahi could be a way to at least cross-check that the issue is not with chip-tool itself, just in case.

from connectedhomeip.

pmatsibekker avatar pmatsibekker commented on June 28, 2024

from connectedhomeip.

pmatsibekker avatar pmatsibekker commented on June 28, 2024

Ok, so I have it working now. Couple of things to note.

  1. This does not work with WSL for me. It seems to need the full ubuntu install desktop install.
  2. You need to --bypass-attestation-verifier=true to complete the commissioning.

Commissioning then complete successfully and I could see the new fabric linking on my android.
However, one concern was that the logging didn't provide me with the discriminator code that I could understand. I was able to successfully toggle a matter plug by using discriminator set to 1.
If you know how to distinguish it from the logs that would be very helpful going forward.

Otherwise, the controller does as advertised. Thank you!

from connectedhomeip.

bzbarsky-apple avatar bzbarsky-apple commented on June 28, 2024

You need to --bypass-attestation-verifier=true to complete the commissioning.

Probably because it's signed by a PAA that has not been imported into the SDK source tree yet.... I hope.

the logging didn't provide me with the discriminator code that I could understand. I was able to successfully toggle a matter plug by using discriminator set to 1.

I'm not sure what you mean @pmatsibekker. Discriminator is only used during commissioning, to narrow the set of things you might try to commission.

Where are you using the discriminator in any way? Normally you "use" it just by using the pairing code (which encodes the discriminator, or part of it in the case of the numeric code).

from connectedhomeip.

pmatsibekker avatar pmatsibekker commented on June 28, 2024

from connectedhomeip.

bzbarsky-apple avatar bzbarsky-apple commented on June 28, 2024

If I understand the api correctly, the controllers need the descriptor id to distinguish the individual devices on the fabric node once commissioned.

Once the device is commissioned, all you need is the node ID.

The node ID is assigned by the commissioner, and can be anything the commissioner wants, as long as it's unique within the commissioner's fabric. The commissioning command used above:

pairing code 0x1 26058243772

is using 0x1 as the node ID to assign to the commissionee. After that, you need to use the same node ID to sent it commands. You can use any other node ID you want here, as desired.... It's totally up to you, as the commissioner.

I'm not sure whether that actually answers your question/concern, though. If it doesn't, can you please clearly explain what problem you are trying to address here?

from connectedhomeip.

pmatsibekker avatar pmatsibekker commented on June 28, 2024

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.