---
updatedAt: 2025-11-05T20:46:06.000Z
agentTools:
  projectIndex: https://esf.eurotech.com/v7.2.0/llms.txt
---

# RaspberryPi

ESF for RaspberryPi an evaluation-only version of ESF, not tailored for production.

## Ethernet Configuration

The default configuration of the Ethernet interfaces for the RaspberryPi is the following:

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Interface Name
      </th>

      <th>
        Gateway Label
      </th>

      <th>
        Status
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        eth0
      </td>

      <td>
        N/A
      </td>

      <td>
        Enabled for WAN - DHCP Client
      </td>
    </tr>
  </tbody>
</Table>

## Wireless Configuration

The wireless interface of the RaspberryPi is the **wlan0**.\
By default, the interface is **disabled**.

To set the right Wi-Fi regulatory domain based on your current world region following the instructions <a href="https://www.raspberrypi.org/documentation/computers/configuration.html#using-the-desktop" target="_blank">here</a> In case of problems, you could try to edit the `/etc/default/crda` adding the <a href="https://it.wikipedia.org/wiki/ISO_3166-1_alpha-2" target="_blank">ISO 3166-1 alpha-2</a> code of your region

## Firewall Configuration

The default ESF firewall configuration for the the RaspberryPi is as follows:

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Port
      </th>

      <th>
        Protocol
      </th>

      <th>
        Permitted Network
      </th>

      <th>
        Permitted Interface Name
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        67
      </td>

      <td>
        udp
      </td>

      <td>
        0.0.0.0/0
      </td>

      <td>
        eth0
      </td>
    </tr>

    <tr>
      <td>
        67
      </td>

      <td>
        udp
      </td>

      <td>
        0.0.0.0/0
      </td>

      <td>
        wlan0
      </td>
    </tr>

    <tr>
      <td>
        53
      </td>

      <td>
        udp
      </td>

      <td>
        0.0.0.0/0
      </td>

      <td>
        eth0
      </td>
    </tr>

    <tr>
      <td>
        53
      </td>

      <td>
        udp
      </td>

      <td>
        0.0.0.0/0
      </td>

      <td>
        wlan0
      </td>
    </tr>

    <tr>
      <td>
        443
      </td>

      <td>
        tcp
      </td>

      <td>
        10.234.0.0/16
      </td>

      <td>
        tun0
      </td>
    </tr>

    <tr>
      <td>
        443
      </td>

      <td>
        tcp
      </td>

      <td>
        0.0.0.0/0
      </td>

      <td>
        eth0
      </td>
    </tr>

    <tr>
      <td>
        4443
      </td>

      <td>
        tcp
      </td>

      <td>
        10.234.0.0/16
      </td>

      <td>
        tun0
      </td>
    </tr>

    <tr>
      <td>
        4443
      </td>

      <td>
        tcp
      </td>

      <td>
        0.0.0.0/0
      </td>

      <td>
        eth0
      </td>
    </tr>

    <tr>
      <td>
        22
      </td>

      <td>
        tcp
      </td>

      <td>
        10.234.0.0/16
      </td>

      <td>
        tun0
      </td>
    </tr>

    <tr>
      <td>
        22
      </td>

      <td>
        tcp
      </td>

      <td>
        0.0.0.0/0
      </td>

      <td>
        eth0
      </td>
    </tr>

    <tr>
      <td>
        5353
      </td>

      <td>
        udp
      </td>

      <td>
        0.0.0.0/0
      </td>

      <td>
        eth0
      </td>
    </tr>
  </tbody>
</Table>

## Clock Service

NTS is supported via chrony-advance option only with chrony version greater then 4.x installed.

# GPIO

> 🚧 The GPIO configuration provided by ESF is relative to Raspberry PI version 3 or more. If you have an older device use the following `jdk.dio.properties` file to update your configuration, then reboot ESF.

```text jdk.dio.properties
#
# Copyright (c) 2011, 2014 Eurotech and/or its affiliates
#
#  All rights reserved. This program and the accompanying materials
#  are made available under the terms of the Eclipse Public License v1.0
#  which accompanies this distribution, and is available at
#  http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#   Eurotech
#

5 = deviceType: gpio.GPIOPin, pinNumber:5, name:GPIO05
6 = deviceType: gpio.GPIOPin, pinNumber:6, name:GPIO06
12 = deviceType: gpio.GPIOPin, pinNumber:12, name:GPIO12
13 = deviceType: gpio.GPIOPin, pinNumber:13, name:GPIO13
16 = deviceType: gpio.GPIOPin, pinNumber:16, name:GPIO16
17 = deviceType: gpio.GPIOPin, pinNumber:17, name:GPIO_GEN0
18 = deviceType: gpio.GPIOPin, pinNumber:18, name:GPIO_GEN1
19 = deviceType: gpio.GPIOPin, pinNumber:19, name:GPIO19
20 = deviceType: gpio.GPIOPin, pinNumber:20, name:GPIO20
21 = deviceType: gpio.GPIOPin, pinNumber:21, name:GPIO21
22 = deviceType: gpio.GPIOPin, pinNumber:22, name:GPIO_GEN3
23 = deviceType: gpio.GPIOPin, pinNumber:23, name:GPIO_GEN4
24 = deviceType: gpio.GPIOPin, pinNumber:24, name:GPIO_GEN5
25 = deviceType: gpio.GPIOPin, pinNumber:25, name:GPIO_GEN6
26 = deviceType: gpio.GPIOPin, pinNumber:26, name:GPIO26
27 = deviceType: gpio.GPIOPin, pinNumber:27, name:GPIO_GEN2

gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3
uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0
```