-
Notifications
You must be signed in to change notification settings - Fork 165
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
Only a few pieces of information can be written using 'generate_esp32uchip_factory-bin. py' (CON-1305) #1054
Comments
Those were recently added in project-chip/connectedhomeip#34363, can you try the script from connectedhomeip's master branch? Or you can use esp-matter-mfg-tool. It supports product label and product URL, and others will be added soon.
|
I am using the factory mode, and there is a difference between the two tools "generate_esp32uchip_factory-bin" and "esp-mtter-mfg-tool". How can I use "esp-mtter-mfg-tool" to write the file "Esp-Development-PAI-Cert. der" into the chip? If the item '-- pai' is' -- pai/home/alen/esp-matter/connected homeip/connected homeip/out/host/Esp Development PaiCert.der ', an error will occur 1.generate_esp32_chip_factory_bin.py command: ./generate_esp32_chip_factory_bin.py -d 1083 -p 10831125
|
@MaplestoryAlen sorry for a delayed response... --pai do not take in a cert, for providing CA certs you have to use the
If you have these certs in PEM format then that would be great, the utility right now works with PEM certs and need support for DER (will do that soon) DER to PEM
|
I used a tool to generate bin files and tried testing mode, but both encountered problems partition.csv 1.Write flash "partition.bin" and "esp_secure_cert.bin" I wrote product name: 81ma1 using esp-mtter-mfg-tool, but the actual read product name :TEST PRODUCT Set the factory mode and wrote 'XXX_ partition. bin' into fctry, which may result in the inability to distribute the network, May I ask where I went wrong? I need to write some information into the chip now, and be able to read this information in cluster ->basic information, such as "productname", "product label" and other information. |
Can you please share the sdkconfig. I suspect few config options are not set... Please enable CONFIG_ ENABLE_ESP32_FACTORY_DATA_PROVIDER and then set
Also, I hope that CONFIG_CHIP_FACTORY_NAMESPACE_PARTITION_LABEL is unchanged and its "nvs", cause you are flashing at "nvs". I know, the config options are a bit messy, and we are trying to figure out some way to simplify them. |
Please check the log file The Commissioning window is closed when the device is powered on because the Bluetooth broadcast failed |
This happens when BLEManager does not find the discriminator. Can you please share the |
Please check the sdkconfig file |
In your sdkconfig, all the configuration options are correctly configured, so it should work. To try out at my end, I used few options from your sdkconfig and it worked perfectly fine, I was able to commission the device as well... (I used C3)
|
Thank you very much. The issue has been resolved Solution (source code unchanged)
|
This is the command for writing:
./generate_esp32_chip_factory_bin.py -d 1083 -p 10831125
--product-name 81ma1 --product-id 0x8000
--vendor-name Testvendor --vendor-id 0xFFF1
--hw-ver 1009 --hw-ver-str 1.0.0.9 --serial-num 202408091125
--dac-cert /home/alen/esp-matter/connectedhomeip/connectedhomeip/out/host/Esp-Development-DAC-01.der
--dac-key /home/alen/esp-matter/connectedhomeip/connectedhomeip/out/host/Esp-Development-DAC-Key-01.der
--pai-cert /home/alen/esp-matter/connectedhomeip/connectedhomeip/out/host/Esp-Development-PAI-Cert.der
--cd /home/alen/esp-matter/connectedhomeip/connectedhomeip/out/host/esp_dac_fff1_8000.der --dac-in-secure-cert --target esp32s3
But other information cannot be written, such as the Product URL and Product Label. Is there any way for me to write this information and burn it into the chip? I saw some API interfaces in "platform/ESP32/ESP32FactorySData Provider. h"
At present, I can only read a few, and I don't know how to write the others, so reading has failed
May I ask if there is any way for me to write and read information from the Basic Information Cluster?
The text was updated successfully, but these errors were encountered: