Skip to content

Comissioning a device times out #5

@LennyPenny

Description

@LennyPenny

Heyo,
thanks for this project!

I'm trying to add one of the matter devices that is already in my apple home to the example controller from this.

./target/debug/examples/demo ca-bootstrap
/target/debug/examples/demo ca-create-controller 100
# turn on pairing mode in apple home
./target/debug/examples/demo discover commissionable --timeout 3 
remaining time: 3.00sec
remaining time: 2.50sec
remaining time: 2.00sec
remaining time: 1.50sec
remaining time: 1.00sec
remaining time: 0.49sec
MatterDeviceInfo {
    service: "xxx",
    device: "xxx",
    ips: [
        xxx,
    ],
    name: None,
    vendor_id: Some(
        "xxx",
    ),
    product_id: Some(
        "xxx",
    ),
    discriminator: Some(
        "xxx",
    ),
    commissioning_mode: Some(
        WithPasscode,
    ),
    pairing_hint: Some(
        "xx",
    ),
    source_ip: "192.168.2.y:5353",
    port: Some(
        5540,
    ),
}
MatterDeviceInfo {
    service: "xxx",
    device: "xxx",
    ips: [
        xxx,
    ],
    name: None,
    vendor_id: Some(
        "xxx",
    ),
    product_id: Some(
        "xxx",
    ),
    discriminator: Some(
        "xxx",
    ),
    commissioning_mode: Some(
        WithPasscode,
    ),
    pairing_hint: Some(
        "36",
    ),
    source_ip: "[xxx]:5353", 
    port: Some(
        5540,
    ),
./target/debug/examples/demo decode-manual-pairing-code xxx                                                                                             
discriminator: xxx
passcode: xxx
/target/debug/examples/demo commission 192.168.2.y:5540 100 300 xxx --verbose                                                                          
[2026-02-04T18:03:26.904Z DEBUG /home/lenny/gits/rust-matc/src/controller.rs:241 matc::controller] start auth_spake
[2026-02-04T18:03:26.904Z DEBUG /home/lenny/gits/rust-matc/src/controller.rs:245 matc::controller] send pbkdf request
[2026-02-04T18:03:26.905Z TRACE src/retransmit.rs:35 matc::retransmit] send msg counter:2659449743
[2026-02-04T18:03:29.906Z TRACE src/retransmit.rs:53 matc::retransmit] retransmit counter = 2659449743
[2026-02-04T18:03:32.907Z TRACE src/retransmit.rs:53 matc::retransmit] retransmit counter = 2659449743
[2026-02-04T18:03:35.908Z TRACE src/retransmit.rs:53 matc::retransmit] retransmit counter = 2659449743
[2026-02-04T18:03:38.909Z TRACE src/retransmit.rs:53 matc::retransmit] retransmit counter = 2659449743

thread 'main' (52355) panicked at examples/demo.rs:205:14:
called `Result::unwrap()` on an `Err` value: retransmit timeout exceeded
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I made sure UDP 5555 is open on my machine.

Is there anything I'm missing? Does the discriminator that gets printed when decoding the pairing code matter? It doesn't mach the discovered commissionable device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions