+
Skip to content

jpcornil-git/ayab-esp32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeRabbit Pull Request Reviews

ESP32 WebApp platform for Ayab

UnoR4 WiFi (esp32s3) platform to support ayab webapp development

Features

  • WiFi connectivity
    • STA mode with DHCP client for normal operations
    • AP mode with DHCP server when there is no WiFi or to configure WiFi
  • mDNS server to access device by name rather than IP address (default=ayab.local)
  • websocket to serial proxy enabling ayab api over a network (with webapp or ayab-desktop)
  • http server to access the ayab webapp
  • LITTLEFS file system to store http server files (html, css, js, ...)
  • Over-The-Air (OTA) updates for esp32 firmware, ayab (RA4M1) firmware or LITTLEFS (partition or individual files)

How to build

Serial monitor (system logs)

Connect the UnoR4 USB interface to your computer and start a serial console (minicom, putty, ...) or a webserial application with a baud rate set to 115200 for the corresponding port.

Flash Update

Install ayab-esp32

  • Find download and gnd pin on the 6-pin header next to the USB-C connector and short them with a jumper
  • Connect UnoR4 USB (or reboot ESP32 to take above into account)
  • Run one the following method to write the flash image produced above:
    • command line :
      > esptool.py write_flash 0x0 build/ayab-esp32_flash.bin
    • web application: https://espressif.github.io/esptool-js/ (flash from 0x0 and use 460800 for the baud rate)
    • Wait until the flash update is completely finished !
  • Disconnect UnoR4 USB
  • Remove jumper and restart (unplug USB)
    • Note: at first boot the RA4M1 flash is updated (~3-4 seconds extra to boot) and device will fall back in AP mode (ãfter ~10s/3 failing attempt to connect to WiFi)
  • Connect to device's WiFi (SSID="AP Ayab Wifi")

Restore factory firmware

Flash recovery (Espressif's Flash Download Tool):

UnoR4 Serial connectivity

            +-------+                    +-------+
USBSerial --| ESP32 |--Serial0--Serial --| RA4M1 |-- Serial1-- pin header
(USBCDC)    |       | (Tx/43, Rx/44)     |       |
            |       |--Serial1--Serial2--|       |
            |       |                    |       |
            |       |--gpio4 -- Reset  --|       |
            |       |                    |       |
            |       |--gpio9 -- MD/Boot--|       |
            +-------+                    +-------+

About

ESP32 platform for ayab webapp development

Resources

License

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载