mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-14 18:46:59 +00:00
62 lines
2.9 KiB
Plaintext
62 lines
2.9 KiB
Plaintext
ESP-Hosted-MCU
|
|
--------------
|
|
|
|
(ESP32-P4 only)
|
|
|
|
Recently Espressif introduced a new concept along with the ESP32-P4.
|
|
These ESP32-P4 chips do not have any RF hardware present, so they don't support WiFi, Bluetooth or 802.15.4 (Zigbee)
|
|
|
|
This means boards with an ESP32-P4 and WiFi support do have a secondary Esp module present, like an ESP32-C6.
|
|
This secondary module does run the "ESP-Hosted-MCU" firmware.
|
|
In theory it should be possible to run just about any combination of ESP32-xx with an ESP32-P4, however currently only ESP32-C6 is supported even though there are ESP32-P4 boards with an ESP32-C5 being sold.
|
|
|
|
The protocol used between the processor running ESPEasy and the secondary ESP can change over time, so it is important to keep both firmware versions in sync.
|
|
|
|
ESPEasy does show information on both firmware/protocol versions on the WiFi Station config page.
|
|
|
|
For example:
|
|
|
|
.. code-block::
|
|
|
|
ESP-Host Fw Version: 2.12.3
|
|
ESP-Hosted-MCU Fw Version: 2.12.3
|
|
ESP-Hosted-MCU Chip: ESP32-C6
|
|
MAC: E4:B3:23:A9:3F:68
|
|
|
|
Update ESP-Hosted-MCU Firmware
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
It has been made relatively easy to update the secondary ESP using the ``wifiotahostedmcu`` command.
|
|
|
|
This does not require any extra parameters. It only needs a direct connection to the internet.
|
|
Either via the WiFi module itself, or via Ethernet.
|
|
|
|
This will then try to download the matching firmware version from GitHub.
|
|
|
|
|
|
Update ESP-Hosted-MCU fw. version 0.0.6
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
The ESP32-C6 is running the ESP-Hosted-MCU firmware from Espressif.
|
|
Typically new boards are running version 0.0.6 of that firmware, which doesn't yet support a lot of WiFi commands.
|
|
And even worse, when trying to call unsupported commands, the whole ESP32-P4 board may crash.
|
|
One of those commands not yet supported in this early version is to query the firmware version.
|
|
|
|
As soon as ESPEasy is installed on a new ESP32-P4 board and a network connection is active (with access to the internet), it is strongly adviced to run the command wifiotahostedmcu via the console. This will then install the most recent ESP-Hosted-MCU firmware matching the installed build of ESPEasy.
|
|
Typically this will be the Ethernet network interface which is present on most ESP32-P4 boards.
|
|
|
|
Since the state the WiFi firmware of a freshly installed ESP32-P4 is unknown,
|
|
the wifi STA adapter is set to 'disabled' by default.
|
|
The Ethernet interface will be set active. (as long as there aren't any new boards with a different Ethernet chip)
|
|
To set the WiFi STA interface to enabled, enter the following command via the serial console:
|
|
|
|
.. code-block:: none
|
|
|
|
networkenable,1
|
|
|
|
Don't forget to save the settings using the ``save`` command, or else the network interface will be disabled again after a reboot.
|
|
|
|
This is also why WiFi STA is always index 1 and WiFi AP is index 2.
|
|
|
|
N.B. There is of course also the ``networkdisable`` command.
|