Skip to content

Native Esp32 Support - #155

Open
schrein wants to merge 13 commits into
iot-lab:rpi-picofrom
icube-inetlab:esp32-c6c1
Open

schrein wants to merge 13 commits into
iot-lab:rpi-picofrom
icube-inetlab:esp32-c6c1

Conversation

@schrein

@schrein schrein commented Sep 17, 2026

Copy link
Copy Markdown
Member

Share support for:

  • ON ESP32 C6C1
  • ON ESP32 LoPy4/FiPy
  • CN rpi3bplus (start/stop USB port)


function check_rpi_mcu() {
HARD=`grep Hardware /proc/cpuinfo | cut -d ":" -f 2`
if [[ $HARD == *"BCM"* ]]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could also check the content of /var/local/config/control_node_type. It should contain RPI.
The proposed solution doesn't really guarantee that it's a raspberry pi.

import serial
from serial import SerialException

import RPi.GPIO as GPIO

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import RPi.GPIO as GPIO
try:
import RPi.GPIO as GPIO
except ImportError:
GPIO = None

and later in the reset method:

if GPIO is None:
    LOGGER.warning("No RPi.GPIO module available, cannot reset")
    return 1

@staticmethod
def _board_require_power_cycle(board):
"""nrf52dk and nrf52840dk requires a power cycle after exp_start.
"""nrf52dk, nrf52840dk and lopy4requires a power cycle after exp_start.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""nrf52dk, nrf52840dk and lopy4requires a power cycle after exp_start.
"""nrf52dk, nrf52840dk and lopy4 require a power cycle after exp_start.

# nrf52dk and nrf52840dk needs a power cycle before their serial
# becomes fully usable.
if firmware_path is not None and self._board_require_power_cycle(self.open_node.TYPE):
# even after idle_firmware flash

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you also have to edit the first list of this comment to mention the lopy4 board.

Comment thread Makefile
docker run -it --rm \
-v $(PWD):/shared \
-v /dev/iotlab:/dev/iotlab \
-v /dev:/dev \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that seems unrelated. Cannot you explain why it is needed?

Comment thread gateway_code/control_nodes/cn_rpi3bplus/__init__.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants