-
Notifications
You must be signed in to change notification settings - Fork 145
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
Custom device network possibilities with esp-matter framework #5
Comments
@thecashit It's definitely possible to integrate Matter with your existing application, both are application tasks based on esp-idf.
Yes, Matter runs in a separate task, you can launch esp-httpd in main task or separate task as well.
Wi-Fi provisioning is part of the normal Matter commissoning process. But if you alreay have your own way to setup Wi-Fi credentials, it's also doable using Matter on-network commissioning method, which commissions a on-network device (already connected to IP network) to Matter fabric.
blemesh_bridge is a good example for your reference, it enables the external platform feature, and customizes the BLE service in addition to the Matter usage.
It should be a single integrated firmware runs on the SoC. |
@chshu Thank your very much for detailed explanation. |
There maybe some misunderstanding on the word "provide Wi-Fi credentials to Matter".
|
@chshu Thank you for clarification. Let's see what we will try to achieve.
Point 1 - i really cannot understand how to start esp_matter and provide SSID/Password to connect to.
Point 2: if the user provide credentials via Mater BLE scope how can we get this credentials to save in our firmware to use in step 2 described before Point 3: if the user use our proprietary commissioning and setup wi-fi credentials via non-Matter scope how can we restart Matter with that credentials (similar with Point 1) I understand that is is unusual questions but it will be excellent if we will be able to made such mechanism. Thank you |
@thecashit Understood the mechanism you want to achieve, it's indeed a customized use case. A quick answer to your Points is that all Wi-Fi related operation can be done using ESP's Wi-Fi APIs, Matter application and other non-Matter applicaiton (including you own code logic) could coexist, they all call into Wi-Fi APIs to configure Wi-Fi and register the callback to receive the Wi-Fi events (like connected, disconnected). The current Matter logic is as follow:
To achieve your goal, you need to store Wi-Fi credentials in nvs, and write your own code to do the wifi scan, and choose the one conenct to (this can be done using ESP's nvs and wifi APIs, nothing matter related). But I'm confused on the real use case, since a matter fabric always stay in single local network, normally it should not switch wifi network. |
@chshu Thank you very much for the explanation, everything became clear. The use case is quite simple - the user can move the device between different locations, each with its own SSID ... But yes, in this case, most likely Matter will not be able to connect to the controller, since the controllers will be different. Thanks again for the clarifications. I close the issue, if there are any problems, I will create a new one. |
Hi there,
Currently we have firmware based on esp-idf that fully covers all device functionality. It uses both Wi-Fi and BLE.
How can we merge current firmare with esp-matter framework?
Or maybe we can start matter core simultaneously with our current firmware?
Thnx
The text was updated successfully, but these errors were encountered: