Files
AI-on-the-edge-device/code
CaCO3 58cbd680e8 Add demo mode (#1720)
* move main part to cam file

* added demo mode

* .

* add a define to configure the logfile handling (#1709)

Co-authored-by: CaCO3 <caco@ruinelli.ch>

* Move Logfile Switch to define.h

* Update Reboot Algo

* Update server_ota.cpp

* Avoid loading of status infos twice (#1711)

* Force a reboot even reboot task cannot be created due to lack of heap (#1713)

* Deinit all components before reboot

* Update

* Update

* Force reboot when reboot task cannot be created

* Improve log message when web UI is incomplete (#1716)

* improve warning if version.txt is missing

* typo

* show round duration in log

Co-authored-by: CaCO3 <caco@ruinelli.ch>

* .

* .

* .

* creade demo dir

* fix static IP in UP, improve explanation for HA (#1719)

* fix static IP in UP, improve explanation for HA

* Update edit_config_param.html

Co-authored-by: CaCO3 <caco@ruinelli.ch>

* Create demo folder at startup (if not present)

* move demo files

* Update defines.h (#1726)

* updated description

* moved to expert section

* fixed broken enabled state

Co-authored-by: CaCO3 <caco@ruinelli.ch>
Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com>
Co-authored-by: Slider0007 <115730895+Slider0007@users.noreply.github.com>
2022-12-30 21:57:56 +01:00
..
2022-09-25 08:49:47 +02:00
2022-12-30 21:57:56 +01:00
2022-12-30 00:11:11 +01:00
2020-11-20 19:34:55 +01:00
2022-12-30 21:57:56 +01:00
2022-12-19 22:05:45 +01:00
2020-11-20 19:34:55 +01:00
2022-10-25 13:19:26 +02:00
2022-12-28 13:10:23 +01:00
2022-12-28 13:10:23 +01:00
2022-12-28 13:10:23 +01:00

Build

Preparations

git clone https://github.com/jomjol/AI-on-the-edge-device.git
cd AI-on-the-edge-device
git checkout rolling
git submodule update --init

Build and Flash within terminal

See further down to build it within an IDE.

Compile

cd code
platformio run --environment esp32cam

Upload

pio run --target upload --upload-port /dev/ttyUSB0

Alternatively you also can set the UART device in platformio.ini, eg. upload_port = /dev/ttyUSB0

Monitor UART Log

pio device monitor -p /dev/ttyUSB0

Build and Flash with Visual Code IDE

  • Download and install VS Code

  • Install the VS Code platform io plugin

    • Check for error messages, maybe you need to manually add some python libraries
      • e.g. in my Ubuntu a python3-env was missing: sudo apt-get install python3-venv
  • git clone this project

    • in Linux:

      git clone https://github.com/jomjol/AI-on-the-edge-device.git
      cd AI-on-the-edge-device
      git checkout rolling
      git submodule update --init
      
  • in VS code, open the AI-on-the-edge-device/code

    • from terminal: cd AI-on-the-edge-device/code && code .
  • open a pio terminal (click on the terminal sign in the bottom menu bar)

  • make sure you are in the code directory

  • To build, type platformio run --environment esp32cam

    • or use the graphical interface:
    • the build artifacts are stored in code/.pio/build/esp32cam/
  • Connect the device and type pio device monitor. There you will see your device and can copy the name to the next instruction

  • Add upload_port = you_device_port to the platformio.ini file

  • make sure an sd card with the contents of the sd_card folder is inserted and you have changed the wifi details

  • pio run --target erase to erase the flash

  • pio run --target upload this will upload the bootloader.bin, partitions.bin,firmware.bin from the code/.pio/build/esp32cam/ folder.

  • pio device monitor to observe the logs via uart