Coder Social home page Coder Social logo

matter-rs's Introduction

Hi ๐Ÿ‘‹, this is Kedar!

I have been working on embedded systems/connected devices. I lead Application Frameworks initiatives at Espressif, working on Matter, ESP-ZeroCode, ESP-Jumpstart, ESP-RainMaker, HomeKit, Alexa, and many other exciting projects.

  • Be proud of your team, passionate about your products, deliver delight
  • ๐Ÿ“ซ Director of Engg at Espressif
  • ๐Ÿ”ญ Interested in Systems software, Security
  • โค๏ธ simplicity in design and API
  • ๐Ÿ’ฌ Blog | Homepage | Tweet
  • Fun fact: We did the first HomeKit on MCU, Weave on MCU, Alexa on MCU and GVA on MCU! ๐Ÿค˜

matter-rs's People

Contributors

andy31415 avatar avsheth avatar kedars avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

matter-rs's Issues

Commissioning fails on Linux

Hi all!
I really appreciate your work on this crate; The functionality that is already implemented looks quite promising to me!
Unfortunately, I was not yet able to commission the example as described in the README because the CHIP tool crashes. Here is an extract of the log:

[1662967379.124620][23231:23237] CHIP:EM: Received message of type 0x40 with protocolId (0, 0) and MessageCounter:10578812 on exchange 33111i
[1662967379.124623][23231:23237] CHIP:EM: Found matching exchange: 33111i, Delegate: 0x7fed2800c860
[1662967379.124626][23231:23237] CHIP:EM: Rxd Ack; Removing MessageCounter:223883550 from Retrans Table on exchange 33111i
[1662967379.124628][23231:23237] CHIP:EM: Removed CHIP MessageCounter:223883550 from RetransTable on exchange 33111i
[1662967379.124634][23231:23237] CHIP:SC: Received error (protocol code 2) during PASE process: ../Projects/connectedhomeip/examples/chip-tool/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:756: CHIP Error 0x00000038: Invalid PASE parameter
[1662967379.124637][23231:23237] CHIP:IN: SecureSession[0x7fed2800a0e0]: Released - Type:1 LSID:28137
[1662967379.124641][23231:23237] CHIP:SC: Failed during PASE session setup: ../Projects/connectedhomeip/examples/chip-tool/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:756: CHIP Error 0x00000038: Invalid PASE parameter
[1662967379.124644][23231:23237] CHIP:TOO: Secure Pairing Failed
[1662967379.124654][23231:23237] CHIP:TOO: Pairing Failure: ../Projects/connectedhomeip/examples/chip-tool/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:756: CHIP Error 0x00000038: Invalid PASE parameter
[1662967379.124657][23231:23237] CHIP:EM: Sending Standalone Ack for MessageCounter:10578812 on exchange 33111i
[1662967379.124662][23231:23237] CHIP:IN: Prepared unauthenticated message 0x7fed3e255fd0 to 0x0000000000000000 (0)  of type 0x10 and protocolId (0, 0) on exchange 33111i with MessageCounter:223883551.
[1662967379.124668][23231:23237] CHIP:IN: Sending unauthenticated msg 0x7fed3e255fd0 with MessageCounter:223883551 to 0x0000000000000000 at monotonic time: 0000000000495F84 msec
[1662967379.124696][23231:23237] CHIP:EM: Flushed pending ack for MessageCounter:10578812 on exchange 33111i
[1662967379.124778][23231:23231] CHIP:CTL: Shutting down the commissioner
[1662967379.124794][23231:23231] CHIP:CTL: Stopping commissioning discovery over DNS-SD
[1662967379.124830][23231:23231] CHIP:CTL: Shutting down the controller
[1662967379.124838][23231:23231] CHIP:IN: Expiring all sessions for fabric 0x1!!
[1662967379.124845][23231:23231] CHIP:FP: Forgetting fabric 0x1
[1662967379.124856][23231:23231] CHIP:TS: Pending Last Known Good Time: 2022-09-06T15:14:17
[1662967379.124921][23231:23231] CHIP:TS: Previous Last Known Good Time: 2022-09-06T15:14:17
[1662967379.124928][23231:23231] CHIP:TS: Reverted Last Known Good Time to previous value
[1662967379.124945][23231:23231] CHIP:CTL: Shutting down the commissioner
[1662967379.124950][23231:23231] CHIP:CTL: Stopping commissioning discovery over DNS-SD
[1662967379.124968][23231:23231] CHIP:CTL: Shutting down the controller
[1662967379.124973][23231:23231] CHIP:CTL: Shutting down the System State, this will teardown the CHIP Stack
[1662967379.125221][23231:23231] CHIP:DMG: IM WH moving to [Uninitialized]
[1662967379.125228][23231:23231] CHIP:DMG: IM WH moving to [Uninitialized]
[1662967379.125233][23231:23231] CHIP:DMG: IM WH moving to [Uninitialized]
[1662967379.125239][23231:23231] CHIP:DMG: IM WH moving to [Uninitialized]
[1662967379.125246][23231:23231] CHIP:DMG: All ReadHandler-s are clean, clear GlobalDirtySet
[1662967379.125263][23231:23231] CHIP:BLE: BleConnectionDelegate::CancelConnection is not implemented.
[1662967379.125345][23231:23231] CHIP:DL: writing settings to file (/tmp/chip_counters.ini-6rOj5p)
[1662967379.127292][23231:23231] CHIP:DL: renamed tmp file to file (/tmp/chip_counters.ini)
[1662967379.127299][23231:23231] CHIP:DL: NVS set: chip-counters/total-operational-hours = 0 (0x0)
[1662967379.127302][23231:23231] CHIP:DL: Inet Layer shutdown
[1662967379.127304][23231:23231] CHIP:DL: BLE shutdown
[1662967379.127307][23231:23231] CHIP:DL: System Layer shutdown
[1662967379.127316][23231:23231] CHIP:TOO: Run command failure: ../Projects/connectedhomeip/examples/chip-tool/third_party/connectedhomeip/src/protocols/secure_channel/PASESession.cpp:756: CHIP Error 0x00000038: Invalid PASE parameter

The Rust example itself logs two error messages:

[2022-09-12T07:22:53Z ERROR matter::sys::sys_linux] Linux is not yet supported for MDNS Service
[2022-09-12T07:22:59Z ERROR matter::secure_channel::core] PASE Not enabled

From briefly looking at the code, I assume that you are working on MacOS? I am on Ubuntu 22.04, so this may be part of the problem. For testing purpose, I added an MDNS implementation for sys_publish_service() to sys/sys_linux.rs. However, the second error remained, so I suppose this is the actual problem. Could you give me some hints?

Thanks four your help!
Regards :)

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.