esp_prov.py 崩溃

kongshui
Posts: 13
Joined: Tue May 16, 2023 11:49 am

esp_prov.py 崩溃

Postby kongshui » Tue May 16, 2023 11:53 am

ubuntu20.04
esp-idf V4.4
ESP32_LyraT

板子跑的demo是:esp-idf/examples/provisioning/legacy/softap_prov,什么都没改。
然后运行esp_prov.py崩溃
python3 esp_prov.py --transport softap --sec_ver 1 --pop abcd1234 --ssid xxxx --passphrase xxxxx

崩溃log如下:
Connecting to 192.168.4.1:80

==== Starting Session ====
Traceback (most recent call last):
File "esp_prov.py", line 426, in <module>
if not establish_session(obj_transport, obj_security):
File "esp_prov.py", line 168, in establish_session
request = sec.security_session(response)
File "/home/jyb/esp/esp-idf/tools/esp_prov/security/security1.py", line 68, in security1_session
return self.setup0_request()
File "/home/jyb/esp/esp-idf/tools/esp_prov/security/security1.py", line 100, in setup0_request
self.__generate_key()
File "/home/jyb/esp/esp-idf/tools/esp_prov/security/security1.py", line 86, in __generate_key
encoding=serialization.Encoding.Raw,
File "/usr/lib/python3.8/enum.py", line 384, in __getattr__
raise AttributeError(name) from None
AttributeError: Raw

麻烦大佬们帮忙看看是为什么?找了好久都没解决。

ESP_LiuH
Posts: 42
Joined: Fri Feb 10, 2023 7:20 am

Re: esp_prov.py 崩溃

Postby ESP_LiuH » Tue May 23, 2023 9:53 am

建议使用对应的 Provisioning APP 进行验证,见如下链接 https://www.espressif.com/zh-hans/support/download/apps

kongshui
Posts: 13
Joined: Tue May 16, 2023 11:49 am

Re: esp_prov.py 崩溃

Postby kongshui » Wed May 24, 2023 11:41 am

App可以使用,但是我想解决这个问题。

Who is online

Users browsing this forum: No registered users and 39 guests