rainmaker cli provision 失败

Moderator: ESP_ZT

chenmantone
Posts: 7
Joined: Thu Apr 13, 2023 1:37 am

rainmaker cli provision 失败

Postby chenmantone » Tue May 30, 2023 2:11 am

ESP32-C3-DecKitM-1板子运行esp-rainmaker的switch例程,cli provision 失败,显示如下:
C:\Espressif\esp-rainmaker\cli>python rainmaker.py provision c1823c4a
Please connect to the wifi PROV_XXXXXX and Press Enter to continue...
Connecting to 192.168.4.1:80 (this may take some time)
[ERROR]:_X25519PublicKey.public_bytes() missing 2 required positional arguments: 'encoding' and 'format'

请问这里意思是证书有错吗?ESP32-C3不是self claim的吗?

ESP_ZB2
Posts: 21
Joined: Wed Dec 28, 2022 12:33 pm

Re: rainmaker cli provision 失败

Postby ESP_ZB2 » Wed May 31, 2023 2:26 am

  1. 你发一下完整的log,然后把SDKCONFIG也一起发上来

chenmantone
Posts: 7
Joined: Thu Apr 13, 2023 1:37 am

Re: rainmaker cli provision 失败

Postby chenmantone » Wed May 31, 2023 7:43 am

ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403806d2
0x403806d2: esp_restart_noos_dig at C:/Espressif/frameworks/esp-idf-v5.0.1/components/esp_system/esp_system.c:64 (discriminator 1)

SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd5820,len:0x16a8
load:0x403cc710,len:0x968
load:0x403ce710,len:0x2ee0
entry 0x403cc710
I (35) boot: ESP-IDF v5.0.1-dirty 2nd stage bootloader
I (35) boot: compile time 17:04:59
I (35) boot: chip revision: v0.3
I (37) boot.esp32c3: SPI Speed : 80MHz
I (42) boot.esp32c3: SPI Mode : DIO
I (47) boot.esp32c3: SPI Flash Size : 4MB
I (52) boot: Enabling RNG early entropy source...
I (57) boot: Partition Table:
I (61) boot: ## Label Usage Type ST Offset Length
I (68) boot: 0 esp_secure_cert unknown 3f 06 0000d000 00002000
I (75) boot: 1 nvs WiFi data 01 02 00010000 00006000
I (83) boot: 2 otadata OTA data 01 00 00016000 00002000
I (90) boot: 3 phy_init RF data 01 01 00018000 00001000
I (98) boot: 4 ota_0 OTA app 00 10 00020000 00190000
I (105) boot: 5 ota_1 OTA app 00 11 001b0000 00190000
I (113) boot: 6 fctry WiFi data 01 02 00340000 00006000
I (120) boot: End of partition table
I (125) esp_image: segment 0: paddr=00020020 vaddr=3c0f0020 size=43770h (276336) map
I (176) esp_image: segment 1: paddr=00063798 vaddr=3fc92800 size=02d6ch ( 11628) load
I (179) esp_image: segment 2: paddr=0006650c vaddr=40380000 size=09b0ch ( 39692) load
I (190) esp_image: segment 3: paddr=00070020 vaddr=42000020 size=e89f0h (952816) map
I (339) esp_image: segment 4: paddr=00158a18 vaddr=40389b0c size=08c20h ( 35872) load
I (352) boot: Loaded app from partition at offset 0x20000
I (352) boot: Disabling RNG early entropy source...
I (363) cpu_start: Pro cpu up.
I (372) cpu_start: Pro cpu start user code
I (372) cpu_start: cpu freq: 160000000 Hz
I (372) cpu_start: Application information:
I (375) cpu_start: Project name: switch
I (380) cpu_start: App version: 1.0
I (385) cpu_start: Compile time: May 31 2023 14:26:07
I (391) cpu_start: ELF file SHA256: 30ad28ca26e317c5...
I (397) cpu_start: ESP-IDF: v5.0.1-dirty
I (402) cpu_start: Min chip rev: v0.3
I (407) cpu_start: Max chip rev: v0.99
I (412) cpu_start: Chip rev: v0.3
I (416) heap_init: Initializing. RAM available for dynamic allocation:
I (424) heap_init: At 3FC9A780 len 00041F90 (263 KiB): DRAM
I (430) heap_init: At 3FCDC710 len 00002950 (10 KiB): STACK/DRAM
I (436) heap_init: At 50000020 len 00001FE0 (7 KiB): RTCRAM
I (444) spi_flash: detected chip: generic
I (448) spi_flash: flash io: dio
W (452) rmt(legacy): legacy driver is deprecated, please migrate to `driver/rmt_tx.h` and/or `driver/rmt_rx.h`
I (462) coexist: coexist rom version 9387209
I (467) cpu_start: Starting scheduler.
I (472) esp_rmaker_console: Initialising UART on port 0
I (472) uart: queue free spaces: 8
I (482) esp_rmaker_commands: Registering command: reboot
I (482) esp_rmaker_commands: Registering command: up-time
I (492) esp_rmaker_commands: Registering command: mem-dump
I (492) esp_rmaker_commands: Registering command: task-dump
I (502) esp_rmaker_commands: Registering command: cpu-dump
I (512) esp_rmaker_commands: Registering command: sock-dump
I (512) esp_rmaker_commands: Registering command: heap-trace
I (522) esp_rmaker_commands: Registering command: reset-to-factory
I (522) esp_rmaker_commands: Registering command: local-time
I (532) esp_rmaker_commands: Registering command: tz-set
I (542) esp_rmaker_commands: Registering command: add-user
I (542) esp_rmaker_commands: Registering command: get-node-id
I (552) esp_rmaker_commands: Registering command: wifi-prov
I (562) esp_rmaker_commands: Registering command: cmd
I (562) gpio: GPIO[9]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3
I (572) gpio: GPIO[19]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (592) pp: pp rom version: 9387209
I (592) net80211: net80211 rom version: 9387209
I (602) wifi:wifi driver task: 3fca651c, prio:23, stack:6656, core=0
I (602) system_api: Base MAC address is not set
I (602) system_api: read default base MAC address from EFUSE
I (622) wifi:wifi firmware version: 17afb16
I (622) wifi:wifi certification version: v7.0
I (622) wifi:config NVS flash: enabled
I (622) wifi:config nano formating: disabled
I (632) wifi:Init data frame dynamic rx buffer num: 32
I (632) wifi:Init management frame dynamic rx buffer num: 32
I (642) wifi:Init management short buffer num: 32
I (642) wifi:Init dynamic tx buffer num: 32
I (642) wifi:Init static tx FG buffer num: 2
I (652) wifi:Init static rx buffer size: 1600
I (652) wifi:Init static rx buffer num: 10
I (662) wifi:Init dynamic rx buffer num: 32
I (662) wifi_init: rx ba win: 6
I (662) wifi_init: tcpip mbox: 32
I (672) wifi_init: udp mbox: 6
I (672) wifi_init: tcp mbox: 6
I (672) wifi_init: tcp tx win: 5744
I (682) wifi_init: tcp rx win: 5744
I (682) wifi_init: tcp mss: 1440
I (692) wifi_init: WiFi IRAM OP enabled
I (692) wifi_init: WiFi RX IRAM OP enabled
I (702) esp_rmaker_work_queue: Work Queue created.
I (712) esp_mqtt_glue: AWS PPI: ?Platform=APN3|A0|RM|EX00|RMDev|1x0|58CF79E9CC78
I (712) esp_mqtt_glue: Initialising MQTT
I (712) esp_rmaker_mqtt_budget: MQTT Budgeting initialised. Default: 100, Max: 1024, Revive count: 1, Revive period: 5
I (732) app_main: RainMaker Initialised.
I (732) esp_rmaker_node: Node ID ----- 58CF79E9CC78
I (742) esp_rmaker_ota_using_topics: OTA enabled with Topics
I (742) esp_rmaker_ota: OTA state = 2
I (752) esp_rmaker_time: Initializing SNTP. Using the SNTP server: pool.ntp.org
I (762) esp_rmaker_time_service: Time service enabled
I (762) esp_rmaker_time: SNTP already initialized.
I (772) app_insights: Enable CONFIG_ESP_INSIGHTS_ENABLED to get Insights.
I (772) esp_rmaker_core: Starting RainMaker Work Queue task
I (782) esp_rmaker_work_queue: RainMaker Work Queue task started.
I (792) app_wifi: Starting provisioning
I (802) phy_init: phy_version 950,11a46e9,Oct 21 2022,08:56:12
I (832) wifi:mode : sta (58:cf:79:e9:cc:78)
I (832) wifi:enable tsf
I (842) wifi:mode : sta (58:cf:79:e9:cc:78) + softAP (58:cf:79:e9:cc:79)
I (842) wifi:Total power save buffer number: 16
I (842) wifi:Init max length of beacon: 752/752
I (842) wifi:Init max length of beacon: 752/752
I (852) wifi:Total power save buffer number: 16
I (862) wifi_prov_mgr: Provisioning started with service name : PROV_14e626
I (862) app_wifi: Provisioning started
I (872) esp_rmaker_local: Event 1
I (872) app_wifi: Scan this QR code from the ESP RainMaker phone app for Provisioning.

█▀▀▀▀▀█ ▀▄▄▀▀█ ▀█▄ ▀█ ▄ █▀▀▀▀▀█
█ ███ █ ▀ ██▄ ▀▄ █ █▄ █ ███ █
█ ▀▀▀ █ ▀▄▀▄▄▀ ▀█▀▀██▀▄▀ █ ▀▀▀ █
▀▀▀▀▀▀▀ █ █▄▀▄█▄█ ▀▄█ ▀ █ ▀▀▀▀▀▀▀
▀▀▄██▄▀ █▀▀▄▄ ▄▀▀▄█ ▀▄▄ ▀▄▄ ▄▄▀
█▄▀█▀ ▀▄██▄▀▀▀▄█▀▄█ ▄▀ █ ▄█▄█▀
█▄█▀▀ ▀▀█▀ ▀▀▄██▄ ▄▀▄ █ ▄▀█ ▀▄▄▀
█▀ ▀ ▄▀▄▄▀ █▀ ▄█▄ ▄█▄ ▄▄▀▄▄█ ▄
▀▄▀█▄▀▄ █▀▄█▀▄█▀▄▀▄▀ ▄█ ███▄ ██
▀█▀ ▄▀▀█▀▄█▀ ▄▀██▀▄▀█ ▀█ █▀▀ ▀▄▄▀
▄ ▄▀ ▀▄▄ ▄█ ▄█▄▀▀█▄█▄█▀▀█ ▀▄ ▄▀
█ █▀ ▀█▄▀ ▀█▀▄▀█▄█▄▀▀█▀█ ▄█ ▀▄▄█
▀▀▀▀▀ ▀▀██▀██▄▄██▄█▀█ ▀██▀▀▀█▄▄▀
█▀▀▀▀▀█ █ █ ███ ▄▀▄ █▄█ ▀ █ ▄▄
█ ███ █ ██ ▀ ▀▄█▀▄█▄▄ ▀██▀▀▀▀▄▄▀▀
█ ▀▀▀ █ ▄ ▄▀▄█▄▀█ █▀ ▀▀███▄▀█ █▄█
▀▀▀▀▀▀▀ ▀ ▀ ▀ ▀▀ ▀ ▀▀▀▀▀▀


I (1062) app_wifi: If QR code is not visible, copy paste the below URL in a browser.
https://rainmaker.espressif.com/qrcode. ... t":"softap"}
I (1082) app_main: Provisioning QR : {"ver":"v1","name":"PROV_14e626","pop":"6a9aead4","transport":"softap"}
I (1092) app_wifi: Provisioning Started. Name : PROV_14e626, POP : 6a9aead4
I (1102) app_wifi: Provisioning will auto stop after 150 minute(s).
I (31422) wifi:new:<1,1>, old:<1,1>, ap:<1,1>, sta:<0,0>, prof:1
I (31422) wifi:station: 30:f7:72:29:71:6b join, AID=1, bgn, 40U
I (31432) wifi:<ba-add>idx:2 (ifx:1, 30:f7:72:29:71:6b), tid:0, ssn:0, winSize:64
I (31442) esp_netif_lwip: DHCP server assigned IP to a client, IP is: 192.168.4.2
W (79732) protocomm_httpd: Resetting socket session id as socket 57 was closed



C:\Espressif\esp-rainmaker\cli>python rainmaker.py getnodes
User is not associated with any nodes.

C:\Espressif\esp-rainmaker\cli>python rainmaker.py provision 6a9aead4
Please connect to the wifi PROV_XXXXXX and Press Enter to continue...
Connecting to 192.168.4.1:80 (this may take some time)
[ERROR]:_X25519PublicKey.public_bytes() missing 2 required positional arguments: 'encoding' and 'format'

后来用手机Nova Home 可以正常加上,但删除后再用cli来加还是这样不行
Attachments
sdkconfig - 副本.txt
(60.12 KiB) Downloaded 233 times

ESP_ZB2
Posts: 21
Joined: Wed Dec 28, 2022 12:33 pm

Re: rainmaker cli provision 失败

Postby ESP_ZB2 » Thu Jun 01, 2023 8:25 am

  1. CLI 中的 provision 比较旧了,已经弃用了,并且该工具只能用于连接 wifi,后面的 mapping 还是要手动自己做,建议直接用 app 配网。

Who is online

Users browsing this forum: No registered users and 10 guests