ESP32 OTA详解-中文翻译版
发布日期:2021-05-10 04:41:40 浏览次数:27 分类:精选文章

本文共 3283 字,大约阅读时间需要 10 分钟。

ESP32 OTA������������������

������

ESP32������������������������Wi-Fi���������������������������������������������������������������������������������������������ESP-IDF���������������������������������OTA���������

  • ������API���������app_update������������������������������
  • ������API���������esp_https_ota������������������������ API���������HTTPS���������
  • ������������

    ������������OTA���������������������������������

    • ESP32���������������ESP32-WROVER Kit���ESP32-DevKit C���
    • Wi-Fi���������������������������������������������������������������������������������������������

    ������������

    ���������������������������������idf.py menuconfig������

  • ���������������

    • ������������������������������������Wi-Fi������������������
    • Wi-Fi���������������ESSID������������
    • ���������������������������������������������IP101������
  • ������������������

    • ���Firmware Upgrade URL���������HTTPS���������������������������https://<host-ip>:<host-port>/<firmware-image-filename>���������https://192.168.2.106:8070/hello-world.bin������
  • ���������������

    ������idf.py -p PORT flash monitor���

    • ���������������������������������������������������ota_data���������������������������������������������������
    • ��������������������������������������� [warnings]..."������������������

    HTTPS���������������

    ������HTTPS������������

  • ������������������������������������������������cd build������
    openssl req -x509 -newkey rsa:2048 -keyout ca_key.pem -out ca_cert.pem -days 365 -nodes
  • ������HTTPS������������
    winpty openssl s_server -WWW -key ca_key.pem -cert ca_cert.pem -port 8070
  • ���������Windows���������������winpty������������������������

    Flash���������ESP32

    ���������������������������server_certs������������������������ESP32���

    cp ca_cert.pem /path/to/ota/example/server_certs/

    OTA������������

    ������OTA������������

  • ESP32������������������������AP���Wi-Fi������������������
  • ������HTTPS���������������������������������������
  • ������������������OTA������������������������ota_data���������������������������������������������������������
  • ���������������������ota_data���������������������������������������������������
  • ������������

    ���������������������������������������������ESP-IDF������������������������

    • ������CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE���������������������������������������������������������
    • ������ Terraria������������������������������������������GPIO������������������������������������������������������������

    ������������������������

    native_ota_example���������������������������������

    • ������PROJECT_VER���$PROJECT_PATH/version.txt���Git���������
    • y��zde.mac���������������������������������������������

    ������������

    • ���������ota_begin error err=0x104������
      • ������������������������������������������������������������������4MB������
      • ���������������������������������CSV���������components/partition_table���������������������������������������������
    • ���������������������������������idf.py erase_flash���������������������

    HTTPS���������������

    ������HTTPS������������������������������������������������

    FILE:hello-world.binACCEPT

    ������������

    • ������������������������������������HTTPS���������������8070������
    • ���������IP���������CN���������������������
    • Git���������������������������������������PROJECT_VER������1������

    ������������

    • ������������������������
    • ������������������xfxuezhang
    上一篇:PyQt5 Pyinstaller Failed to execute script部分解决方法
    下一篇:关于双指针的简单理解

    发表评论

    最新留言

    不错!
    [***.144.177.141]2025年04月27日 16时52分45秒