Using ED-IPC and ED-HMI on Standard Raspberry Pi OS (Trixie)

1 Overview

Introduces the background and scope of using ED-IPC and ED-HMI on the standard Raspberry Pi OS (Trixie).

1.1 Background

Some of our ED-IPC and ED-HMI series products are shipped with Raspberry Pi OS (Bookworm) pre-installed. To meet the needs of users who wish to develop applications based on Raspberry Pi OS (Trixie), we have completed the relevant adaptation and optimization for this scenario.

Currently, the ED-IPC and ED-HMI series products are fully compatible with the native drivers of the standard Raspberry Pi OS (Trixie). For versions of Raspberry Pi OS (Trixie) released on or after September 15, 2026, users only need to first modify the config.txt configuration file to enable the required ports, and then install the corresponding software packages for extended functionalities to ensure normal operation. This upgrade effectively broadens the application range of the products and allows for more flexible responses to the diverse needs of different users.

1.2 Scope of Application

This application applies to the EDATEC ED-IPC3630 and ED-HMI3630 series products. The compatible OS versions and corresponding product models are as follows:

Software ScopeProduct Models
Standard Raspberry Pi OS (Trixie, releases from September 15, 2026 onwards)ED-IPC Series
ED-HMI Series
ED-PLC Series
ED-SBC Series
ED-CM4 Series

2 Configuration Guide

This chapter describes the specific configuration methods for using ED-IPC, ED-HMI, ED-PLC, ED-SBC, and ED-CM4 series products on the standard Raspberry Pi OS (Trixie, releases from September 15, 2026 onwards). The configuration steps vary slightly depending on the product model; please follow the instructions corresponding to your specific model.

2.1 For ED-HMI3630-101C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file:​ Modify the configuration file according to the product model to enable the required ports.

  2. Install software packages:​ After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.1.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file.
dtoverlay=vc4-kms-dsi-edatec-panel-101c,i2c4,interrupt=7
dtoverlay=ed-ipc,ipc3600
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=spi1-2cs,cs0_spidev=off,cs1_spidev=off
dtoverlay=mcp2515,spi1-0,oscillator=16000000,interrupt=15
dtoverlay=mcp2515,spi1-1,oscillator=16000000,interrupt=14
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
force_eeprom_read=0
disable_poe_fan=1
dtparam=i2c_arm=on

The result after adding the information is shown in the figure below:

step-2
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to add the udev rules for COM ports.

sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
step-4
  1. Execute the following command to add the udev rules for CAN ports.
sudo tee /etc/udev/rules.d/50-can.rules >/dev/null <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/axi/*.pcie/*.spi/spi_master/spi1/spi1.0/net/can*", NAME="canb0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/axi/*.pcie/*.spi/spi_master/spi1/spi1.1/net/can*", NAME="canb1"
EOF
step-5
  1. Create an automation script to configure the LCD screen properties.

    a. Execute the following command to create the configuration script file.

    sudo nano ed-hmi-primary.sh
    

    b. Copy the following content into the script file.

    #!/bin/bash
    
    D_DSI="DSI-2"
    D_I2C="10-0014"
    I2C_ALIAS="i2c_csi_dsi0"
    
    init_i2c()
    {
     local t_dsi
     local t_i2c
    
     t_dsi=$(
         dtc -I fs /proc/device-tree 2>/dev/null |
         sed -nE "s/.*${I2C_ALIAS} = (.*i2c.*);$/\1/p" |
         sed 's/\//\\\//g'
     )
    
     t_i2c=$(
         dtc -I fs /proc/device-tree 2>/dev/null |
         sed -nE "s/.*\<i2c([0-9]*) = ${t_dsi};$/\1/p" |
         head -n 1
     )
    
     if [ -n "${t_i2c}" ]; then
         D_I2C="${t_i2c}-0014"
     fi
    }
    
    update_wayfire()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config"
    
     cat > "/home/${t_user}/.config/wayfire.ini" << EOF
    [command]
    repeatable_binding_volume_up = KEY_VOLUMEUP
    command_volume_up = wfpanelctl volumepulse volu
    repeatable_binding_volume_down = KEY_VOLUMEDOWN
    command_volume_down = wfpanelctl volumepulse vold
    binding_mute = KEY_MUTE
    command_mute = wfpanelctl volumepulse mute
    binding_menu = <super>
    command_menu = wfpanelctl smenu menu
    binding_terminal = <ctrl> <alt> KEY_T
    command_terminal = lxterminal
    binding_bluetooth = <ctrl> <alt> KEY_B
    command_bluetooth = wfpanelctl bluetooth menu
    binding_netman = <ctrl> <alt> KEY_W
    command_netman = wfpanelctl netman menu
    binding_grim = KEY_SYSRQ
    command_grim = grim
    binding_orca = <ctrl> <alt> KEY_SPACE
    command_orca = gui-pkinst orca reboot
    binding_quit = <ctrl> <alt> KEY_DELETE
    command_quit = lxde-pi-shutdown-helper
    binding_power = KEY_POWER
    command_power = pwrkey
    
    [input-device:generic ft5x06 (79)]
    output = ${D_DSI}
    
    [input-device:generic ft5x06 (80)]
    output = ${D_DSI}
    
    [input-device:FT5406 memory based driver]
    output = ${D_DSI}
    
    [input]
    xkb_model = pc105
    xkb_layout = gb
    xkb_variant =
    
    [output:${D_DSI}]
    mode = 800x1280@40000
    position = 0,0
    transform = 90
    primary = true
    
    [input-device:Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [input-device:${D_I2C} Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [window-rules]
    rule-1 = on created if title is "LXTerminal" then maximize
    EOF
    }
    
    update_kanshi()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/kanshi"
    
     cat > "/home/${t_user}/.config/kanshi/config" << EOF
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
    }
    
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
         output HDMI-A-1 enable position 1280,0 transform normal
    }
    EOF
    }
    
    update_labwc()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <labwc_config>
      <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
      <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
    </labwc_config>
    EOF
    }
    
    update_labwc_autostart()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/autostart" << EOF
    if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
    
     grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
    
     if [ \$? -ne 0 ]; then
         sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
             /home/${t_user}/.config/wf-panel-pi.ini
     fi
    
    else
    
     cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
    [panel]
    monitor=${D_DSI}
    launcher_000001=lxde-x-www-browser.desktop
    launcher_000002=pcmanfm.desktop
    launcher_000003=lxterminal.desktop
    EOL
    
    fi
    EOF
    }
    
    update_squeekboard()
    {
     local file="/etc/xdg/labwc/autostart"
    
     if [ ! -f "${file}" ]; then
         return
     fi
     if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
         sed -i \
             "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
             "${file}"
    
     else
         sed -i \
             "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
             "${file}"
    
     fi
    }
    
    update_wayland()
    {
     local home
     local t_user
    
     for home in /home/*; do
    
         [ -d "${home}" ] || continue
    
         t_user=$(basename "${home}")
    
         echo "Configuring Wayland for user: ${t_user}"
    
         update_wayfire "${t_user}"
         update_kanshi "${t_user}"
         update_labwc "${t_user}"
         update_labwc_autostart "${t_user}"
    
         chown -R "${t_user}:${t_user}" \
             "/home/${t_user}/.config"
    
     done
    
     update_squeekboard
    }
    
    update_x11()
    {
     cat > /usr/share/dispsetup.sh << 'EOF'
    #!/bin/sh
    
    D_DSI=$(xrandr | awk '/^DSI.* connected/ {print $1; exit}')
    
    D_HDMI=$(xrandr | awk '/^HDMI.* connected/ {print $1; exit}')
    
    D_TOUCH=$(xinput | awk -F'id=' \
    '/Goodix Capacitive TouchScreen/ && /pointer/ {
     gsub(/^.*↳ /,"",$1)
     sub(/[ \t]+$/,"",$1)
     print $1
     exit
    }')
    
    
    if [ -n "$D_DSI" ]; then
    
     if [ -n "$D_HDMI" ] && \
        xrandr \
        --output "$D_HDMI" \
        --auto \
        --pos 1280x0 \
        --output "$D_DSI" \
        --primary \
        --mode 800x1280 \
        --pos 0x0 \
        --rotate left \
        --dryrun
     then
    
         xrandr \
         --output "$D_HDMI" \
         --auto \
         --pos 1280x0 \
         --output "$D_DSI" \
         --primary \
         --mode 800x1280 \
         --pos 0x0 \
         --rotate left
    
     elif xrandr \
          --output "$D_DSI" \
          --primary \
          --mode 800x1280 \
          --pos 0x0 \
          --rotate left \
          --dryrun
     then
    
         xrandr \
         --output "$D_DSI" \
         --primary \
         --mode 800x1280 \
         --pos 0x0 \
         --rotate left
    
     fi
    
    
     if [ -n "$D_TOUCH" ]; then
         xinput --map-to-output "$D_TOUCH" "$D_DSI"
     fi
    
    fi
    
    if [ -e /usr/share/ovscsetup.sh ]; then
     /usr/share/ovscsetup.sh
    fi
    
    exit 0
    EOF
    
     chmod 755 /usr/share/dispsetup.sh
    }
    
    run()
    {
     if [ "$(id -u)" -ne 0 ]; then
         echo "ERROR: this script must be run as root"
         exit 1
     fi
     init_i2c
     update_wayland
     update_x11
    
     echo "HMI36 101C display setup completed."
    }
    
    run
    

    c. Execute the following commands to make the script executable and run it.

    sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
    
    step-56
  2. After the LCD screen property configuration is complete, execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.1.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.2 For ED-IPC3630, ED-HMI3630-116C, ED-HMI3630-133C, and ED-HMI3630-156C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.2.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=ed-ipc,ipc3600
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=spi1-2cs,cs0_spidev=off,cs1_spidev=off
dtoverlay=mcp2515,spi1-0,oscillator=16000000,interrupt=15
dtoverlay=mcp2515,spi1-1,oscillator=16000000,interrupt=14
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
force_eeprom_read=0
disable_poe_fan=1
dtparam=i2c_arm=on

The result after adding the information is shown in the figure below:

step-56
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
step-56
  1. Execute the following command to add the udev rules for CAN ports.
cat > "/etc/udev/rules.d/50-can.rules" <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/axi/*.pcie/*.spi/spi_master/spi1/spi1.0/net/can*", NAME="canb0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/axi/*.pcie/*.spi/spi_master/spi1/spi1.1/net/can*", NAME="canb1"
EOF
step-56
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.2.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
  1. (Optional) Execute the following command to install the ed-ddcci-mib-tool package.
sudo apt install ed-ddcci-mib-tool

TIP

ED-HMI3630-116C, ED-HMI3630-133C, and ED-HMI3630-156C all require the installation of the ed-ddcci-mib-tool package, while the ED-IPC3630 does not need to install this package.

2.3 For ED-HMI3120-101C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.3.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-101c,i2c4,interrupt=7
dtoverlay=ed-ipc,ipc3100
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019113423866
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to add the udev rules for COM ports.

sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Create an automation script to configure the LCD screen properties.

    a. Execute the following command to create the configuration script file.

       sudo nano ed-hmi-primary.sh
    

    b. Copy the following content into the script file.

    #!/bin/bash
    
    D_DSI="DSI-2"
    D_I2C="10-0014"
    I2C_ALIAS="i2c_csi_dsi0"
    
    update_wayfire()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config"
    
     cat > "/home/${t_user}/.config/wayfire.ini" << EOF
    [command]
    repeatable_binding_volume_up = KEY_VOLUMEUP
    command_volume_up = wfpanelctl volumepulse volu
    repeatable_binding_volume_down = KEY_VOLUMEDOWN
    command_volume_down = wfpanelctl volumepulse vold
    binding_mute = KEY_MUTE
    command_mute = wfpanelctl volumepulse mute
    binding_menu = <super>
    command_menu = wfpanelctl smenu menu
    binding_terminal = <ctrl> <alt> KEY_T
    command_terminal = lxterminal
    binding_bluetooth = <ctrl> <alt> KEY_B
    command_bluetooth = wfpanelctl bluetooth menu
    binding_netman = <ctrl> <alt> KEY_W
    command_netman = wfpanelctl netman menu
    binding_grim = KEY_SYSRQ
    command_grim = grim
    binding_orca = <ctrl> <alt> KEY_SPACE
    command_orca = gui-pkinst orca reboot
    binding_quit = <ctrl> <alt> KEY_DELETE
    command_quit = lxde-pi-shutdown-helper
    binding_power = KEY_POWER
    command_power = pwrkey
    
    [input-device:generic ft5x06 (79)]
    output = ${D_DSI}
    
    [input-device:generic ft5x06 (80)]
    output = ${D_DSI}
    
    [input-device:FT5406 memory based driver]
    output = ${D_DSI}
    
    [input]
    xkb_model = pc105
    xkb_layout = gb
    xkb_variant =
    
    [output:${D_DSI}]
    mode = 800x1280@40000
    position = 0,0
    transform = 90
    primary = true
    
    [input-device:Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [input-device:${D_I2C} Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [window-rules]
    rule-1 = on created if title is "LXTerminal" then maximize
    EOF
    }
    
    update_kanshi()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/kanshi"
    
     cat > "/home/${t_user}/.config/kanshi/config" << EOF
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
    }
    
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
         output HDMI-A-1 enable position 1280,0 transform normal
    }
    EOF
    }
    
    update_labwc()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <labwc_config>
      <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
      <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
    </labwc_config>
    EOF
    }
    
    update_labwc_autostart()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/autostart" << EOF
    if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
    
     grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
    
     if [ \$? -ne 0 ]; then
         sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
             /home/${t_user}/.config/wf-panel-pi.ini
     fi
    
    else
    
     cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
    [panel]
    monitor=${D_DSI}
    launcher_000001=lxde-x-www-browser.desktop
    launcher_000002=pcmanfm.desktop
    launcher_000003=lxterminal.desktop
    EOL
    
    fi
    EOF
    }
    
    update_squeekboard()
    {
     local file="/etc/xdg/labwc/autostart"
    
     if [ ! -f "${file}" ]; then
         return
     fi
     if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
         sed -i \
             "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
             "${file}"
    
     else
         sed -i \
             "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
             "${file}"
    
     fi
    }
    
    update_wayland()
    {
     local home
     local t_user
    
     for home in /home/*; do
    
         [ -d "${home}" ] || continue
    
         t_user=$(basename "${home}")
    
         echo "Configuring Wayland for user: ${t_user}"
    
         update_wayfire "${t_user}"
         update_kanshi "${t_user}"
         update_labwc "${t_user}"
         update_labwc_autostart "${t_user}"
    
         chown -R "${t_user}:${t_user}" \
             "/home/${t_user}/.config"
    
     done
    
     update_squeekboard
    }
    
    run()
    {
     if [ "$(id -u)" -ne 0 ]; then
         echo "ERROR: this script must be run as root"
         exit 1
     fi
     update_wayland
     echo "HMI31 101C display setup completed."
    }
    
    run
    

    c. Execute the following commands to make the script executable and run it.

    sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
    
    image-20261019113648665
  2. After the LCD screen property configuration is complete, execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.3.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.4 For ED-HMI3120-070C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.4.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-070c,i2c4,interrupt=7
dtoverlay=ed-ipc,ipc3100
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.4.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.5 For ED-HMI3020-101C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt and the sound card configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.5.1 Modify the config.txt and the sound card configuration file

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=17
dtoverlay=uart2-pi5
dtoverlay=uart4-pi5
dtparam=pcie=on
dtparam=pciex1=on
dtoverlay=rt5616
dtoverlay=act-led,gpio=16
gpio=6=op,dl

The result after adding the information is shown in the figure below:

image-20261019170025147
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to add the udev rules for COM ports.

sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
EOF
image-20261019170150244
  1. Run the following command to add the udev rule for backlight control.
sudo tee /etc/udev/rules.d/backlight-permissions.rules >/dev/null <<'EOF'
SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power"
EOF
image-20261019171328432
  1. Create an automation script to configure the LCD screen properties.

    a. Execute the following command to create the configuration script file.

    sudo nano ed-hmi-primary.sh
    

    b. Copy the following content into the script file.

    #!/bin/bash
    
    D_DSI="DSI-2"
    D_I2C="11-0014"
    I2C_ALIAS="i2c_csi_dsi0"
    
    update_wayfire()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config"
    
     cat > "/home/${t_user}/.config/wayfire.ini" << EOF
    [command]
    repeatable_binding_volume_up = KEY_VOLUMEUP
    command_volume_up = wfpanelctl volumepulse volu
    repeatable_binding_volume_down = KEY_VOLUMEDOWN
    command_volume_down = wfpanelctl volumepulse vold
    binding_mute = KEY_MUTE
    command_mute = wfpanelctl volumepulse mute
    binding_menu = <super>
    command_menu = wfpanelctl smenu menu
    binding_terminal = <ctrl> <alt> KEY_T
    command_terminal = lxterminal
    binding_bluetooth = <ctrl> <alt> KEY_B
    command_bluetooth = wfpanelctl bluetooth menu
    binding_netman = <ctrl> <alt> KEY_W
    command_netman = wfpanelctl netman menu
    binding_grim = KEY_SYSRQ
    command_grim = grim
    binding_orca = <ctrl> <alt> KEY_SPACE
    command_orca = gui-pkinst orca reboot
    binding_quit = <ctrl> <alt> KEY_DELETE
    command_quit = lxde-pi-shutdown-helper
    binding_power = KEY_POWER
    command_power = pwrkey
    
    [input-device:generic ft5x06 (79)]
    output = ${D_DSI}
    
    [input-device:generic ft5x06 (80)]
    output = ${D_DSI}
    
    [input-device:FT5406 memory based driver]
    output = ${D_DSI}
    
    [input]
    xkb_model = pc105
    xkb_layout = gb
    xkb_variant =
    
    [output:${D_DSI}]
    mode = 800x1280@40000
    position = 0,0
    transform = 90
    primary = true
    
    [input-device:Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [input-device:${D_I2C} Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [window-rules]
    rule-1 = on created if title is "LXTerminal" then maximize
    EOF
    }
    
    update_kanshi()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/kanshi"
    
     cat > "/home/${t_user}/.config/kanshi/config" << EOF
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
    }
    
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
         output HDMI-A-1 enable position 1280,0 transform normal
    }
    EOF
    }
    
    update_labwc()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <labwc_config>
      <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
      <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
    </labwc_config>
    EOF
    }
    
    update_labwc_autostart()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/autostart" << EOF
    if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
    
     grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
    
     if [ \$? -ne 0 ]; then
         sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
             /home/${t_user}/.config/wf-panel-pi.ini
     fi
    
    else
    
     cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
    [panel]
    monitor=${D_DSI}
    launcher_000001=lxde-x-www-browser.desktop
    launcher_000002=pcmanfm.desktop
    launcher_000003=lxterminal.desktop
    EOL
    
    fi
    EOF
    }
    
    update_squeekboard()
    {
     local file="/etc/xdg/labwc/autostart"
    
     if [ ! -f "${file}" ]; then
         return
     fi
     if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
         sed -i \
             "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
             "${file}"
    
     else
         sed -i \
             "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
             "${file}"
    
     fi
    }
    
    update_wayland()
    {
     local home
     local t_user
    
     for home in /home/*; do
    
         [ -d "${home}" ] || continue
    
         t_user=$(basename "${home}")
    
         echo "Configuring Wayland for user: ${t_user}"
    
         update_wayfire "${t_user}"
         update_kanshi "${t_user}"
         update_labwc "${t_user}"
         update_labwc_autostart "${t_user}"
    
         chown -R "${t_user}:${t_user}" \
             "/home/${t_user}/.config"
    
     done
    
     update_squeekboard
    }
    
    run()
    {
     if [ "$(id -u)" -ne 0 ]; then
         echo "ERROR: this script must be run as root"
         exit 1
     fi
     update_wayland
     echo "HMI30 101C display setup completed."
    }
    
    run
    

    c. Execute the following commands to make the script executable and run it.

    sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
    
    image-20261019170337819
  2. Run the following command to install the audio software package.

sudo apt install libasound2-plugins libpulsedsp pulseaudio-utils pulseaudio -y
  1. Write the ALSA state.

    a. Run the following command to reduce the PipeWire volume to 30%.

    wpctl set-volume @DEFAULT_SINK@ 30%
    

    b. Run the following command to modify the rt5616codec property in /var/lib/alsa/asound.state.

    sudo python3 - <<'PYCODE'
    from pathlib import Path
    import re
    
    state_path = Path('/var/lib/alsa/asound.state')
    new_block = r"""state.rt5616codec {
     control.1 {
     	iface MIXER
     	name 'HP Playback Switch'
     	value.0 true
     	value.1 true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.2 {
     	iface MIXER
     	name 'HPVOL Playback Switch'
     	value.0 true
     	value.1 true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.3 {
     	iface MIXER
     	name 'HP Playback Volume'
     	value.0 31
     	value.1 31
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 39'
     		dbmin -4650
     		dbmax 1200
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.4 {
     	iface MIXER
     	name 'OUT Playback Switch'
     	value.0 true
     	value.1 true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.5 {
     	iface MIXER
     	name 'OUT Channel Switch'
     	value.0 false
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.6 {
     	iface MIXER
     	name 'OUT Playback Volume'
     	value.0 31
     	value.1 31
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 39'
     		dbmin -4650
     		dbmax 1200
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.7 {
     	iface MIXER
     	name 'DAC1 Playback Volume'
     	value.0 172
     	value.1 172
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 175'
     		dbmin -65625
     		dbmax 0
     		dbvalue.0 -2625
     		dbvalue.1 -2625
     	}
     }
     control.8 {
     	iface MIXER
     	name 'IN1 Boost Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 8'
     		dbmin 0
     		dbmax 5200
     		dbvalue.0 0
     	}
     }
     control.9 {
     	iface MIXER
     	name 'IN2 Boost Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 8'
     		dbmin 0
     		dbmax 5200
     		dbvalue.0 0
     	}
     }
     control.10 {
     	iface MIXER
     	name 'IN Capture Volume'
     	value.0 23
     	value.1 23
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 31'
     		dbmin -3450
     		dbmax 1200
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.11 {
     	iface MIXER
     	name 'ADC Capture Switch'
     	value.0 false
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.12 {
     	iface MIXER
     	name 'ADC Capture Volume'
     	value.0 47
     	value.1 47
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 127'
     		dbmin -17625
     		dbmax 30000
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.13 {
     	iface MIXER
     	name 'ADC Boost Volume'
     	value.0 0
     	value.1 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 3'
     		dbmin 0
     		dbmax 3600
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.14 {
     	iface MIXER
     	name 'RECMIXL INL1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.15 {
     	iface MIXER
     	name 'RECMIXL BST2 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.16 {
     	iface MIXER
     	name 'RECMIXL BST1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.17 {
     	iface MIXER
     	name 'RECMIXR INR1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.18 {
     	iface MIXER
     	name 'RECMIXR BST2 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.19 {
     	iface MIXER
     	name 'RECMIXR BST1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.20 {
     	iface MIXER
     	name 'Stereo1 ADC MIXL ADC1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.21 {
     	iface MIXER
     	name 'Stereo1 ADC MIXR ADC1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.22 {
     	iface MIXER
     	name 'DAC MIXL Stereo ADC Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.23 {
     	iface MIXER
     	name 'DAC MIXL INF1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.24 {
     	iface MIXER
     	name 'DAC MIXR Stereo ADC Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.25 {
     	iface MIXER
     	name 'DAC MIXR INF1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.26 {
     	iface MIXER
     	name 'Stereo DAC MIXL DAC L1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.27 {
     	iface MIXER
     	name 'Stereo DAC MIXL DAC R1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.28 {
     	iface MIXER
     	name 'Stereo DAC MIXR DAC R1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.29 {
     	iface MIXER
     	name 'Stereo DAC MIXR DAC L1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.30 {
     	iface MIXER
     	name 'OUT MIXL BST1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.31 {
     	iface MIXER
     	name 'OUT MIXL BST2 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.32 {
     	iface MIXER
     	name 'OUT MIXL INL1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.33 {
     	iface MIXER
     	name 'OUT MIXL REC MIXL Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.34 {
     	iface MIXER
     	name 'OUT MIXL DAC L1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.35 {
     	iface MIXER
     	name 'OUT MIXR BST2 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.36 {
     	iface MIXER
     	name 'OUT MIXR BST1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.37 {
     	iface MIXER
     	name 'OUT MIXR INR1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.38 {
     	iface MIXER
     	name 'OUT MIXR REC MIXR Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.39 {
     	iface MIXER
     	name 'OUT MIXR DAC R1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.40 {
     	iface MIXER
     	name 'HPO MIX DAC1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.41 {
     	iface MIXER
     	name 'HPO MIX HPVOL Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.42 {
     	iface MIXER
     	name 'LOUT MIX DAC L1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.43 {
     	iface MIXER
     	name 'LOUT MIX DAC R1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.44 {
     	iface MIXER
     	name 'LOUT MIX OUTVOL L Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.45 {
     	iface MIXER
     	name 'LOUT MIX OUTVOL R Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
    }"""
    pattern = re.compile(r'(?ms)^state\.rt5616codec \{\n.*?^\}')
    assert pattern.fullmatch(new_block), 'RT5616 状态块格式不完整'
    current = state_path.read_text() if state_path.exists() else ''
    blocks = list(pattern.finditer(current))
    assert len(blocks) <= 1, '状态文件包含重复的 rt5616codec 块'
    if blocks:
     existing = blocks[0]
     merged = current[:existing.start()] + new_block + current[existing.end():]
    else:
     merged = current.rstrip('\n') + ('\n\n' if current.strip() else '') + new_block + '\n'
    state_path.write_text(merged)
    state_path.chmod(0o644)
    PYCODE
    

    c. Run the following command to reapply the modified content to the sound card.

    sudo alsactl -U -f /var/lib/alsa/asound.state restore rt5616codec
    
  2. Write WirePlumber configuration.

    a. Run the following command to create the /etc/wireplumber/wireplumber.conf.d/ directory.

    sudo mkdir -p /etc/wireplumber/wireplumber.conf.d/
    

    b. Run the following command to create the 51-ed-config-rt5616.conf file, then write the audio configuration properties.

    sudo tee /etc/wireplumber/wireplumber.conf.d/51-ed-config-rt5616.conf >/dev/null <<'WP51'
    # Debian 13 compatibility for the legacy 3020 audio package.
    monitor.alsa.rules = [
      {
     matches = [
       {
         device.name = "~alsa_card.*"
         api.alsa.card.name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
         api.alsa.soft-mixer = false
       }
     }
      }
      {
     matches = [
       {
         node.name = "~alsa_output.*"
         alsa.card_name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
           priority.session = 1200
           api.alsa.soft-mixer = false
           audio.format = "S16LE"
       }
     }
      }
    ]
    WP51
    

    c. Run the following command to create the 52-rt5616-defaults.conf file, then write the sound card configuration properties.

    sudo tee /etc/wireplumber/wireplumber.conf.d/52-rt5616-defaults.conf >/dev/null <<'WP52'
    monitor.alsa.rules = [
      {
     matches = [
       { api.alsa.card.name = "~vc4-hdmi-.*" }
     ]
     actions = {
       update-props = {
         device.disabled = true
       }
     }
      }
      {
     matches = [
       {
         node.name = "~alsa_output.*"
         alsa.card_name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
         priority.session = 3000
       }
     }
      }
      {
     matches = [
       {
         node.name = "~alsa_input.*"
         alsa.card_name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
         priority.session = 3000
       }
     }
      }
    ]
    WP52
    

    d. Run the following command to restart the WirePlumber service.

    systemctl --user restart wireplumber
    
  3. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.5.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.6 For ED-HMI3020-070C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt and the sound card configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.6.1 Modify the config.txt and the sound card configuration file

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=17
dtoverlay=uart2-pi5
dtoverlay=uart4-pi5
dtparam=pcie=on
dtparam=pciex1=on
dtoverlay=rt5616
dtoverlay=act-led,gpio=16
gpio=6=op,dl

The result after adding the information is shown in the figure below:

image-20261019170025147
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to add the udev rules for COM ports.

sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
EOF
image-20261019170150244
  1. Run the following command to add the udev rule for backlight control.
sudo tee /etc/udev/rules.d/backlight-permissions.rules >/dev/null <<'EOF'
SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power"
EOF
image-20261019171328432
  1. Run the following command to install the audio software package.
sudo apt install libasound2-plugins libpulsedsp pulseaudio-utils pulseaudio -y
  1. Write the ALSA state.

    a. Run the following command to reduce the PipeWire volume to 30%.

    wpctl set-volume @DEFAULT_SINK@ 30%
    

    b. Run the following command to modify the rt5616codec property in /var/lib/alsa/asound.state.

    sudo python3 - <<'PYCODE'
    from pathlib import Path
    import re
    
    state_path = Path('/var/lib/alsa/asound.state')
    new_block = r"""state.rt5616codec {
     control.1 {
     	iface MIXER
     	name 'HP Playback Switch'
     	value.0 true
     	value.1 true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.2 {
     	iface MIXER
     	name 'HPVOL Playback Switch'
     	value.0 true
     	value.1 true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.3 {
     	iface MIXER
     	name 'HP Playback Volume'
     	value.0 31
     	value.1 31
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 39'
     		dbmin -4650
     		dbmax 1200
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.4 {
     	iface MIXER
     	name 'OUT Playback Switch'
     	value.0 true
     	value.1 true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.5 {
     	iface MIXER
     	name 'OUT Channel Switch'
     	value.0 false
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.6 {
     	iface MIXER
     	name 'OUT Playback Volume'
     	value.0 31
     	value.1 31
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 39'
     		dbmin -4650
     		dbmax 1200
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.7 {
     	iface MIXER
     	name 'DAC1 Playback Volume'
     	value.0 172
     	value.1 172
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 175'
     		dbmin -65625
     		dbmax 0
     		dbvalue.0 -2625
     		dbvalue.1 -2625
     	}
     }
     control.8 {
     	iface MIXER
     	name 'IN1 Boost Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 8'
     		dbmin 0
     		dbmax 5200
     		dbvalue.0 0
     	}
     }
     control.9 {
     	iface MIXER
     	name 'IN2 Boost Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 8'
     		dbmin 0
     		dbmax 5200
     		dbvalue.0 0
     	}
     }
     control.10 {
     	iface MIXER
     	name 'IN Capture Volume'
     	value.0 23
     	value.1 23
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 31'
     		dbmin -3450
     		dbmax 1200
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.11 {
     	iface MIXER
     	name 'ADC Capture Switch'
     	value.0 false
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.12 {
     	iface MIXER
     	name 'ADC Capture Volume'
     	value.0 47
     	value.1 47
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 127'
     		dbmin -17625
     		dbmax 30000
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.13 {
     	iface MIXER
     	name 'ADC Boost Volume'
     	value.0 0
     	value.1 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 3'
     		dbmin 0
     		dbmax 3600
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.14 {
     	iface MIXER
     	name 'RECMIXL INL1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.15 {
     	iface MIXER
     	name 'RECMIXL BST2 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.16 {
     	iface MIXER
     	name 'RECMIXL BST1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.17 {
     	iface MIXER
     	name 'RECMIXR INR1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.18 {
     	iface MIXER
     	name 'RECMIXR BST2 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.19 {
     	iface MIXER
     	name 'RECMIXR BST1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.20 {
     	iface MIXER
     	name 'Stereo1 ADC MIXL ADC1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.21 {
     	iface MIXER
     	name 'Stereo1 ADC MIXR ADC1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.22 {
     	iface MIXER
     	name 'DAC MIXL Stereo ADC Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.23 {
     	iface MIXER
     	name 'DAC MIXL INF1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.24 {
     	iface MIXER
     	name 'DAC MIXR Stereo ADC Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.25 {
     	iface MIXER
     	name 'DAC MIXR INF1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.26 {
     	iface MIXER
     	name 'Stereo DAC MIXL DAC L1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.27 {
     	iface MIXER
     	name 'Stereo DAC MIXL DAC R1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.28 {
     	iface MIXER
     	name 'Stereo DAC MIXR DAC R1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.29 {
     	iface MIXER
     	name 'Stereo DAC MIXR DAC L1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.30 {
     	iface MIXER
     	name 'OUT MIXL BST1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.31 {
     	iface MIXER
     	name 'OUT MIXL BST2 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.32 {
     	iface MIXER
     	name 'OUT MIXL INL1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.33 {
     	iface MIXER
     	name 'OUT MIXL REC MIXL Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.34 {
     	iface MIXER
     	name 'OUT MIXL DAC L1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.35 {
     	iface MIXER
     	name 'OUT MIXR BST2 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.36 {
     	iface MIXER
     	name 'OUT MIXR BST1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.37 {
     	iface MIXER
     	name 'OUT MIXR INR1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.38 {
     	iface MIXER
     	name 'OUT MIXR REC MIXR Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.39 {
     	iface MIXER
     	name 'OUT MIXR DAC R1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.40 {
     	iface MIXER
     	name 'HPO MIX DAC1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.41 {
     	iface MIXER
     	name 'HPO MIX HPVOL Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.42 {
     	iface MIXER
     	name 'LOUT MIX DAC L1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.43 {
     	iface MIXER
     	name 'LOUT MIX DAC R1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.44 {
     	iface MIXER
     	name 'LOUT MIX OUTVOL L Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.45 {
     	iface MIXER
     	name 'LOUT MIX OUTVOL R Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
    }"""
    pattern = re.compile(r'(?ms)^state\.rt5616codec \{\n.*?^\}')
    assert pattern.fullmatch(new_block), 'RT5616 状态块格式不完整'
    current = state_path.read_text() if state_path.exists() else ''
    blocks = list(pattern.finditer(current))
    assert len(blocks) <= 1, '状态文件包含重复的 rt5616codec 块'
    if blocks:
     existing = blocks[0]
     merged = current[:existing.start()] + new_block + current[existing.end():]
    else:
     merged = current.rstrip('\n') + ('\n\n' if current.strip() else '') + new_block + '\n'
    state_path.write_text(merged)
    state_path.chmod(0o644)
    PYCODE
    

    c. Run the following command to reapply the modified content to the sound card.

    sudo alsactl -U -f /var/lib/alsa/asound.state restore rt5616codec
    
  2. Write WirePlumber configuration.

    a. Run the following command to create the /etc/wireplumber/wireplumber.conf.d/ directory.

    sudo mkdir -p /etc/wireplumber/wireplumber.conf.d/
    

    b. Run the following command to create the 51-ed-config-rt5616.conf file, then write the audio configuration properties.

    sudo tee /etc/wireplumber/wireplumber.conf.d/51-ed-config-rt5616.conf >/dev/null <<'WP51'
    # Debian 13 compatibility for the legacy 3020 audio package.
    monitor.alsa.rules = [
      {
     matches = [
       {
         device.name = "~alsa_card.*"
         api.alsa.card.name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
         api.alsa.soft-mixer = false
       }
     }
      }
      {
     matches = [
       {
         node.name = "~alsa_output.*"
         alsa.card_name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
           priority.session = 1200
           api.alsa.soft-mixer = false
           audio.format = "S16LE"
       }
     }
      }
    ]
    WP51
    

    c. Run the following command to create the 52-rt5616-defaults.conf file, then write the sound card configuration properties.

    sudo tee /etc/wireplumber/wireplumber.conf.d/52-rt5616-defaults.conf >/dev/null <<'WP52'
    monitor.alsa.rules = [
      {
     matches = [
       { api.alsa.card.name = "~vc4-hdmi-.*" }
     ]
     actions = {
       update-props = {
         device.disabled = true
       }
     }
      }
      {
     matches = [
       {
         node.name = "~alsa_output.*"
         alsa.card_name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
         priority.session = 3000
       }
     }
    }
    {
     matches = [
       {
         node.name = "~alsa_input.*"
         alsa.card_name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
         priority.session = 3000
       }
     }
      }
    ]
    WP52
    

    d. Run the following command to restart the WirePlumber service.

    systemctl --user restart wireplumber
    
  3. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.6.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.7 For ED-HMI3010-101C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.7.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=2

The result after adding the information is shown in the figure below:

image-20261019174517527
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Create an automation script to configure the LCD screen properties.

    a. Execute the following command to create the configuration script file.

    sudo nano ed-hmi-primary.sh
    

    b. Copy the following content into the script file.

    #!/bin/bash
    
    D_DSI="DSI-2"
    D_I2C="11-0014"
    I2C_ALIAS="i2c_csi_dsi0"
    
    update_wayfire()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config"
    
     cat > "/home/${t_user}/.config/wayfire.ini" << EOF
    [command]
    repeatable_binding_volume_up = KEY_VOLUMEUP
    command_volume_up = wfpanelctl volumepulse volu
    repeatable_binding_volume_down = KEY_VOLUMEDOWN
    command_volume_down = wfpanelctl volumepulse vold
    binding_mute = KEY_MUTE
    command_mute = wfpanelctl volumepulse mute
    binding_menu = <super>
    command_menu = wfpanelctl smenu menu
    binding_terminal = <ctrl> <alt> KEY_T
    command_terminal = lxterminal
    binding_bluetooth = <ctrl> <alt> KEY_B
    command_bluetooth = wfpanelctl bluetooth menu
    binding_netman = <ctrl> <alt> KEY_W
    command_netman = wfpanelctl netman menu
    binding_grim = KEY_SYSRQ
    command_grim = grim
    binding_orca = <ctrl> <alt> KEY_SPACE
    command_orca = gui-pkinst orca reboot
    binding_quit = <ctrl> <alt> KEY_DELETE
    command_quit = lxde-pi-shutdown-helper
    binding_power = KEY_POWER
    command_power = pwrkey
    
    [input-device:generic ft5x06 (79)]
    output = ${D_DSI}
    
    [input-device:generic ft5x06 (80)]
    output = ${D_DSI}
    
    [input-device:FT5406 memory based driver]
    output = ${D_DSI}
    
    [input]
    xkb_model = pc105
    xkb_layout = gb
    xkb_variant =
    
    [output:${D_DSI}]
    mode = 800x1280@40000
    position = 0,0
    transform = 90
    primary = true
    
    [input-device:Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [input-device:${D_I2C} Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [window-rules]
    rule-1 = on created if title is "LXTerminal" then maximize
    EOF
    }
    
    update_kanshi()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/kanshi"
    
     cat > "/home/${t_user}/.config/kanshi/config" << EOF
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
    }
    
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
         output HDMI-A-1 enable position 1280,0 transform normal
    }
    EOF
    }
    
    update_labwc()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <labwc_config>
      <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
      <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
    </labwc_config>
    EOF
    }
    
    update_labwc_autostart()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/autostart" << EOF
    if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
    
     grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
    
     if [ \$? -ne 0 ]; then
         sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
             /home/${t_user}/.config/wf-panel-pi.ini
     fi
    
    else
    
     cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
    [panel]
    monitor=${D_DSI}
    launcher_000001=lxde-x-www-browser.desktop
    launcher_000002=pcmanfm.desktop
    launcher_000003=lxterminal.desktop
    EOL
    
    fi
    EOF
    }
    
    update_squeekboard()
    {
     local file="/etc/xdg/labwc/autostart"
    
     if [ ! -f "${file}" ]; then
         return
     fi
     if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
         sed -i \
             "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
             "${file}"
    
     else
         sed -i \
             "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
             "${file}"
    
     fi
    }
    
    update_wayland()
    {
     local home
     local t_user
    
     for home in /home/*; do
    
         [ -d "${home}" ] || continue
    
         t_user=$(basename "${home}")
    
         echo "Configuring Wayland for user: ${t_user}"
    
         update_wayfire "${t_user}"
         update_kanshi "${t_user}"
         update_labwc "${t_user}"
         update_labwc_autostart "${t_user}"
    
         chown -R "${t_user}:${t_user}" \
             "/home/${t_user}/.config"
    
     done
    
     update_squeekboard
    }
    
    run()
    {
     if [ "$(id -u)" -ne 0 ]; then
         echo "ERROR: this script must be run as root"
         exit 1
     fi
     update_wayland
     echo "HMI30 101C display setup completed."
    }
    
    run
    

    c. Execute the following commands to make the script executable and run it.

    sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
    
    image-20261019170337819
  3. After the LCD screen property configuration is complete, execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.7.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.8 For ED-HMI3010-070C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.8.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=2

The result after adding the information is shown in the figure below:

image-20261019180608018
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.8.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.9 For ED-HMI2630-101C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.9.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=7
dtoverlay=ed-ipc,ipc2100,exp8x8y
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=spi6-2cs,cs0_spidev=disable,cs1_pin=17,cs1_spidev=disable
dtoverlay=mcp2515,spi6-0,oscillator=16000000,interrupt=15
dtoverlay=mcp2515,spi6-1,oscillator=16000000,interrupt=14

The result after adding the information is shown in the figure below:

image-20261019182408809
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to add the udev rules for COM ports.

sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261019182805220
  1. Execute the following command to add the udev rules for CAN ports.
sudo tee /etc/udev/rules.d/50-can.rules >/dev/null <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.1/net/can*", NAME="canb1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.0/net/can*", NAME="canb0"
EOF
image-20261019183121975
  1. Create an automation script to configure the LCD screen properties.

    a. Execute the following command to create the configuration script file.

    sudo nano ed-hmi-primary.sh
    

    b. Copy the following content into the script file.

    #!/bin/bash
    
    D_DSI="DSI-1"
    D_I2C="10-0014"
    I2C_ALIAS="i2c_csi_dsi"
    
    update_wayfire()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config"
    
     cat > "/home/${t_user}/.config/wayfire.ini" << EOF
    [command]
    repeatable_binding_volume_up = KEY_VOLUMEUP
    command_volume_up = wfpanelctl volumepulse volu
    repeatable_binding_volume_down = KEY_VOLUMEDOWN
    command_volume_down = wfpanelctl volumepulse vold
    binding_mute = KEY_MUTE
    command_mute = wfpanelctl volumepulse mute
    binding_menu = <super>
    command_menu = wfpanelctl smenu menu
    binding_terminal = <ctrl> <alt> KEY_T
    command_terminal = lxterminal
    binding_bluetooth = <ctrl> <alt> KEY_B
    command_bluetooth = wfpanelctl bluetooth menu
    binding_netman = <ctrl> <alt> KEY_W
    command_netman = wfpanelctl netman menu
    binding_grim = KEY_SYSRQ
    command_grim = grim
    binding_orca = <ctrl> <alt> KEY_SPACE
    command_orca = gui-pkinst orca reboot
    binding_quit = <ctrl> <alt> KEY_DELETE
    command_quit = lxde-pi-shutdown-helper
    binding_power = KEY_POWER
    command_power = pwrkey
    
    [input-device:generic ft5x06 (79)]
    output = ${D_DSI}
    
    [input-device:generic ft5x06 (80)]
    output = ${D_DSI}
    
    [input-device:FT5406 memory based driver]
    output = ${D_DSI}
    
    [input]
    xkb_model = pc105
    xkb_layout = gb
    xkb_variant =
    
    [output:${D_DSI}]
    mode = 800x1280@40000
    position = 0,0
    transform = 90
    primary = true
    
    [input-device:Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [input-device:${D_I2C} Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [window-rules]
    rule-1 = on created if title is "LXTerminal" then maximize
    EOF
    }
    
    update_kanshi()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/kanshi"
    
     cat > "/home/${t_user}/.config/kanshi/config" << EOF
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
    }
    
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
         output HDMI-A-1 enable position 1280,0 transform normal
    }
    EOF
    }
    
    update_labwc()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <labwc_config>
      <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
      <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
    </labwc_config>
    EOF
    }
    
    update_labwc_autostart()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/autostart" << EOF
    if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
    
     grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
    
     if [ \$? -ne 0 ]; then
         sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
             /home/${t_user}/.config/wf-panel-pi.ini
     fi
    
    else
    
     cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
    [panel]
    monitor=${D_DSI}
    launcher_000001=lxde-x-www-browser.desktop
    launcher_000002=pcmanfm.desktop
    launcher_000003=lxterminal.desktop
    EOL
    
    fi
    EOF
    }
    
    update_squeekboard()
    {
     local file="/etc/xdg/labwc/autostart"
    
     if [ ! -f "${file}" ]; then
         return
     fi
     if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
         sed -i \
             "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
             "${file}"
    
     else
         sed -i \
             "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
             "${file}"
    
     fi
    }
    
    update_wayland()
    {
     local home
     local t_user
    
     for home in /home/*; do
    
         [ -d "${home}" ] || continue
    
         t_user=$(basename "${home}")
    
         echo "Configuring Wayland for user: ${t_user}"
    
         update_wayfire "${t_user}"
         update_kanshi "${t_user}"
         update_labwc "${t_user}"
         update_labwc_autostart "${t_user}"
    
         chown -R "${t_user}:${t_user}" \
             "/home/${t_user}/.config"
    
     done
    
     update_squeekboard
    }
    
    run()
    {
     if [ "$(id -u)" -ne 0 ]; then
         echo "ERROR: this script must be run as root"
         exit 1
     fi
     update_wayland
     echo "HMI26 101C display setup completed."
    }
    
    run
    

    c. Execute the following commands to make the script executable and run it.

    sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
    
    image-20261019184342176
  2. After the LCD screen property configuration is complete, Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.9.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.10 For ED-HMI2220-101C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.10.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=7
dtoverlay=ed-ipc,ipc2210
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019184030063
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Create an automation script to configure the LCD screen properties.

    a. Execute the following command to create the configuration script file.

    sudo nano ed-hmi-primary.sh
    

    b. Copy the following content into the script file.

    #!/bin/bash
    
    D_DSI="DSI-1"
    D_I2C="10-0014"
    I2C_ALIAS="i2c_csi_dsi"
    
    update_wayfire()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config"
    
     cat > "/home/${t_user}/.config/wayfire.ini" << EOF
    [command]
    repeatable_binding_volume_up = KEY_VOLUMEUP
    command_volume_up = wfpanelctl volumepulse volu
    repeatable_binding_volume_down = KEY_VOLUMEDOWN
    command_volume_down = wfpanelctl volumepulse vold
    binding_mute = KEY_MUTE
    command_mute = wfpanelctl volumepulse mute
    binding_menu = <super>
    command_menu = wfpanelctl smenu menu
    binding_terminal = <ctrl> <alt> KEY_T
    command_terminal = lxterminal
    binding_bluetooth = <ctrl> <alt> KEY_B
    command_bluetooth = wfpanelctl bluetooth menu
    binding_netman = <ctrl> <alt> KEY_W
    command_netman = wfpanelctl netman menu
    binding_grim = KEY_SYSRQ
    command_grim = grim
    binding_orca = <ctrl> <alt> KEY_SPACE
    command_orca = gui-pkinst orca reboot
    binding_quit = <ctrl> <alt> KEY_DELETE
    command_quit = lxde-pi-shutdown-helper
    binding_power = KEY_POWER
    command_power = pwrkey
    
    [input-device:generic ft5x06 (79)]
    output = ${D_DSI}
    
    [input-device:generic ft5x06 (80)]
    output = ${D_DSI}
    
    [input-device:FT5406 memory based driver]
    output = ${D_DSI}
    
    [input]
    xkb_model = pc105
    xkb_layout = gb
    xkb_variant =
    
    [output:${D_DSI}]
    mode = 800x1280@40000
    position = 0,0
    transform = 90
    primary = true
    
    [input-device:Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [input-device:${D_I2C} Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [window-rules]
    rule-1 = on created if title is "LXTerminal" then maximize
    EOF
    }
    
    update_kanshi()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/kanshi"
    
     cat > "/home/${t_user}/.config/kanshi/config" << EOF
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
    }
    
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
         output HDMI-A-1 enable position 1280,0 transform normal
    }
    EOF
    }
    
    update_labwc()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <labwc_config>
      <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
      <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
    </labwc_config>
    EOF
    }
    
    update_labwc_autostart()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/autostart" << EOF
    if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
    
     grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
    
     if [ \$? -ne 0 ]; then
         sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
             /home/${t_user}/.config/wf-panel-pi.ini
     fi
    
    else
    
     cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
    [panel]
    monitor=${D_DSI}
    launcher_000001=lxde-x-www-browser.desktop
    launcher_000002=pcmanfm.desktop
    launcher_000003=lxterminal.desktop
    EOL
    
    fi
    EOF
    }
    
    update_squeekboard()
    {
     local file="/etc/xdg/labwc/autostart"
    
     if [ ! -f "${file}" ]; then
         return
     fi
     if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
         sed -i \
             "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
             "${file}"
    
     else
         sed -i \
             "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
             "${file}"
    
     fi
    }
    
    update_wayland()
    {
     local home
     local t_user
    
     for home in /home/*; do
    
         [ -d "${home}" ] || continue
    
         t_user=$(basename "${home}")
    
     	if ! getent group "${t_user}" >/dev/null 2>&1; then
     		echo "Skip user without matching group: ${t_user}"
     		continue
     	fi
    
         echo "Configuring Wayland for user: ${t_user}"
    
         update_wayfire "${t_user}"
         update_kanshi "${t_user}"
         update_labwc "${t_user}"
         update_labwc_autostart "${t_user}"
    
         chown -R "${t_user}:${t_user}" \
             "/home/${t_user}/.config"
    
     done
    
     update_squeekboard
    }
    
    run()
    {
     if [ "$(id -u)" -ne 0 ]; then
         echo "ERROR: this script must be run as root"
         exit 1
     fi
     update_wayland
     echo "HMI22 101C display setup completed."
    }
    
    run
    

    c. Execute the following commands to make the script executable and run it.

    sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
    
    image-20261019184445520
  3. After the LCD screen property configuration is complete, Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.10.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.11 For ED-HMI2220-070C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.11.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=7
dtoverlay=ed-ipc,ipc2210
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019184657970
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.11.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.12 For ED-HMI2120-101C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.12.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=7
dtoverlay=ed-ipc,ipc2100
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261020093851282
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to add the udev rules for COM ports.

sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261020094109238
  1. Create an automation script to configure the LCD screen properties.

    a. Execute the following command to create the configuration script file.

    sudo nano ed-hmi-primary.sh
    

    b. Copy the following content into the script file.

    #!/bin/bash
    
    D_DSI="DSI-1"
    D_I2C="10-0014"
    I2C_ALIAS="i2c_csi_dsi"
    
    update_wayfire()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config"
    
     cat > "/home/${t_user}/.config/wayfire.ini" << EOF
    [command]
    repeatable_binding_volume_up = KEY_VOLUMEUP
    command_volume_up = wfpanelctl volumepulse volu
    repeatable_binding_volume_down = KEY_VOLUMEDOWN
    command_volume_down = wfpanelctl volumepulse vold
    binding_mute = KEY_MUTE
    command_mute = wfpanelctl volumepulse mute
    binding_menu = <super>
    command_menu = wfpanelctl smenu menu
    binding_terminal = <ctrl> <alt> KEY_T
    command_terminal = lxterminal
    binding_bluetooth = <ctrl> <alt> KEY_B
    command_bluetooth = wfpanelctl bluetooth menu
    binding_netman = <ctrl> <alt> KEY_W
    command_netman = wfpanelctl netman menu
    binding_grim = KEY_SYSRQ
    command_grim = grim
    binding_orca = <ctrl> <alt> KEY_SPACE
    command_orca = gui-pkinst orca reboot
    binding_quit = <ctrl> <alt> KEY_DELETE
    command_quit = lxde-pi-shutdown-helper
    binding_power = KEY_POWER
    command_power = pwrkey
    
    [input-device:generic ft5x06 (79)]
    output = ${D_DSI}
    
    [input-device:generic ft5x06 (80)]
    output = ${D_DSI}
    
    [input-device:FT5406 memory based driver]
    output = ${D_DSI}
    
    [input]
    xkb_model = pc105
    xkb_layout = gb
    xkb_variant =
    
    [output:${D_DSI}]
    mode = 800x1280@40000
    position = 0,0
    transform = 90
    primary = true
    
    [input-device:Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [input-device:${D_I2C} Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [window-rules]
    rule-1 = on created if title is "LXTerminal" then maximize
    EOF
    }
    
    update_kanshi()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/kanshi"
    
     cat > "/home/${t_user}/.config/kanshi/config" << EOF
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
    }
    
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
         output HDMI-A-1 enable position 1280,0 transform normal
    }
    EOF
    }
    
    update_labwc()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <labwc_config>
      <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
      <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
    </labwc_config>
    EOF
    }
    
    update_labwc_autostart()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/autostart" << EOF
    if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
    
     grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
    
     if [ \$? -ne 0 ]; then
         sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
             /home/${t_user}/.config/wf-panel-pi.ini
     fi
    
    else
    
     cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
    [panel]
    monitor=${D_DSI}
    launcher_000001=lxde-x-www-browser.desktop
    launcher_000002=pcmanfm.desktop
    launcher_000003=lxterminal.desktop
    EOL
    
    fi
    EOF
    }
    
    update_squeekboard()
    {
     local file="/etc/xdg/labwc/autostart"
    
     if [ ! -f "${file}" ]; then
         return
     fi
     if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
         sed -i \
             "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
             "${file}"
    
     else
         sed -i \
             "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
             "${file}"
    
     fi
    }
    
    update_wayland()
    {
     local home
     local t_user
    
     for home in /home/*; do
    
         [ -d "${home}" ] || continue
    
         t_user=$(basename "${home}")
    
         echo "Configuring Wayland for user: ${t_user}"
    
         update_wayfire "${t_user}"
         update_kanshi "${t_user}"
         update_labwc "${t_user}"
         update_labwc_autostart "${t_user}"
    
         chown -R "${t_user}:${t_user}" \
             "/home/${t_user}/.config"
    
     done
    
     update_squeekboard
    }
    
    run()
    {
     if [ "$(id -u)" -ne 0 ]; then
         echo "ERROR: this script must be run as root"
         exit 1
     fi
     update_wayland
     echo "HMI21 101C display setup completed."
    }
    
    run
    

    c. Execute the following commands to make the script executable and run it.

    sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
    
    image-20261020113439660
  2. After the LCD screen property configuration is complete, Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.12.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.13 For ED-HMI2120-070C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.13.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=7
dtoverlay=ed-ipc,ipc2100
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to add the udev rules for COM ports.

sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.13.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.14 For ED-HMI2020-101C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.14.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=16
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtparam=i2c_arm=on

The result after adding the information is shown in the figure below:

image-20261019110557010
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Create an automation script to configure the LCD screen properties.

    a. Execute the following command to create the configuration script file.

    sudo nano ed-hmi-primary.sh
    

    b. Copy the following content into the script file.

    #!/bin/bash
    
    D_DSI="DSI-1"
    D_I2C="10-0014"
    I2C_ALIAS="i2c_csi_dsi"
    
    update_wayfire()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config"
    
     cat > "/home/${t_user}/.config/wayfire.ini" << EOF
    [command]
    repeatable_binding_volume_up = KEY_VOLUMEUP
    command_volume_up = wfpanelctl volumepulse volu
    repeatable_binding_volume_down = KEY_VOLUMEDOWN
    command_volume_down = wfpanelctl volumepulse vold
    binding_mute = KEY_MUTE
    command_mute = wfpanelctl volumepulse mute
    binding_menu = <super>
    command_menu = wfpanelctl smenu menu
    binding_terminal = <ctrl> <alt> KEY_T
    command_terminal = lxterminal
    binding_bluetooth = <ctrl> <alt> KEY_B
    command_bluetooth = wfpanelctl bluetooth menu
    binding_netman = <ctrl> <alt> KEY_W
    command_netman = wfpanelctl netman menu
    binding_grim = KEY_SYSRQ
    command_grim = grim
    binding_orca = <ctrl> <alt> KEY_SPACE
    command_orca = gui-pkinst orca reboot
    binding_quit = <ctrl> <alt> KEY_DELETE
    command_quit = lxde-pi-shutdown-helper
    binding_power = KEY_POWER
    command_power = pwrkey
    
    [input-device:generic ft5x06 (79)]
    output = ${D_DSI}
    
    [input-device:generic ft5x06 (80)]
    output = ${D_DSI}
    
    [input-device:FT5406 memory based driver]
    output = ${D_DSI}
    
    [input]
    xkb_model = pc105
    xkb_layout = gb
    xkb_variant =
    
    [output:${D_DSI}]
    mode = 800x1280@40000
    position = 0,0
    transform = 90
    primary = true
    
    [input-device:Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [input-device:${D_I2C} Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [window-rules]
    rule-1 = on created if title is "LXTerminal" then maximize
    EOF
    }
    
    update_kanshi()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/kanshi"
    
     cat > "/home/${t_user}/.config/kanshi/config" << EOF
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
    }
    
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
         output HDMI-A-1 enable position 1280,0 transform normal
    }
    EOF
    }
    
    update_labwc()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <labwc_config>
      <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
      <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
    </labwc_config>
    EOF
    }
    
    update_labwc_autostart()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/autostart" << EOF
    if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
    
     grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
    
     if [ \$? -ne 0 ]; then
         sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
             /home/${t_user}/.config/wf-panel-pi.ini
     fi
    
    else
    
     cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
    [panel]
    monitor=${D_DSI}
    launcher_000001=lxde-x-www-browser.desktop
    launcher_000002=pcmanfm.desktop
    launcher_000003=lxterminal.desktop
    EOL
    
    fi
    EOF
    }
    
    update_squeekboard()
    {
     local file="/etc/xdg/labwc/autostart"
    
     if [ ! -f "${file}" ]; then
         return
     fi
     if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
         sed -i \
             "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
             "${file}"
    
     else
         sed -i \
             "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
             "${file}"
    
     fi
    }
    
    update_wayland()
    {
     local home
     local t_user
    
     for home in /home/*; do
    
         [ -d "${home}" ] || continue
    
         t_user=$(basename "${home}")
    
     	if ! getent group "${t_user}" >/dev/null 2>&1; then
     		echo "Skip user without matching group: ${t_user}"
    			continue
     	fi
     	
         echo "Configuring Wayland for user: ${t_user}"
    
         update_wayfire "${t_user}"
         update_kanshi "${t_user}"
         update_labwc "${t_user}"
         update_labwc_autostart "${t_user}"
    
         chown -R "${t_user}:${t_user}" \
             "/home/${t_user}/.config"
    
     done
    
     update_squeekboard
    }
    
    run()
    {
     if [ "$(id -u)" -ne 0 ]; then
         echo "ERROR: this script must be run as root"
         exit 1
     fi
     update_wayland
     echo "HMI20 101C display setup completed."
    }
    
    run
    

    c. Execute the following commands to make the script executable and run it.

    sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
    
    image-20261019112304959
  3. After the LCD screen property configuration is complete, Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.14.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.15 For ED-HMI2020-070C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.15.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=16
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtparam=i2c_arm=on

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.15.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.16 For ED-HMI2002-101C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.16.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=vc4-kms-dsi-edatec-panel-101c,interrupt=2

The result after adding the information is shown in the figure below:

image-20261019110557010
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Create an automation script to configure the LCD screen properties.

    a. Execute the following command to create the configuration script file.

    sudo nano ed-hmi-primary.sh
    

    b. Copy the following content into the script file.

    #!/bin/bash
    
    D_DSI="DSI-1"
    D_I2C="10-0014"
    I2C_ALIAS="i2c_csi_dsi"
    
    update_wayfire()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config"
    
     cat > "/home/${t_user}/.config/wayfire.ini" << EOF
    [command]
    repeatable_binding_volume_up = KEY_VOLUMEUP
    command_volume_up = wfpanelctl volumepulse volu
    repeatable_binding_volume_down = KEY_VOLUMEDOWN
    command_volume_down = wfpanelctl volumepulse vold
    binding_mute = KEY_MUTE
    command_mute = wfpanelctl volumepulse mute
    binding_menu = <super>
    command_menu = wfpanelctl smenu menu
    binding_terminal = <ctrl> <alt> KEY_T
    command_terminal = lxterminal
    binding_bluetooth = <ctrl> <alt> KEY_B
    command_bluetooth = wfpanelctl bluetooth menu
    binding_netman = <ctrl> <alt> KEY_W
    command_netman = wfpanelctl netman menu
    binding_grim = KEY_SYSRQ
    command_grim = grim
    binding_orca = <ctrl> <alt> KEY_SPACE
    command_orca = gui-pkinst orca reboot
    binding_quit = <ctrl> <alt> KEY_DELETE
    command_quit = lxde-pi-shutdown-helper
    binding_power = KEY_POWER
    command_power = pwrkey
    
    [input-device:generic ft5x06 (79)]
    output = ${D_DSI}
    
    [input-device:generic ft5x06 (80)]
    output = ${D_DSI}
    
    [input-device:FT5406 memory based driver]
    output = ${D_DSI}
    
    [input]
    xkb_model = pc105
    xkb_layout = gb
    xkb_variant =
    
    [output:${D_DSI}]
    mode = 800x1280@40000
    position = 0,0
    transform = 90
    primary = true
    
    [input-device:Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [input-device:${D_I2C} Goodix Capacitive TouchScreen]
    output = ${D_DSI}
    
    [window-rules]
    rule-1 = on created if title is "LXTerminal" then maximize
    EOF
    }
    
    update_kanshi()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/kanshi"
    
     cat > "/home/${t_user}/.config/kanshi/config" << EOF
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
    }
    
    profile {
         output ${D_DSI} mode 800x1280 position 0,0 transform 90
         output HDMI-A-1 enable position 1280,0 transform normal
    }
    EOF
    }
    
    update_labwc()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/rc.xml" << EOF
    <?xml version="1.0" encoding="UTF-8"?>
    <labwc_config>
      <touch deviceName="Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
      <touch deviceName="${D_I2C} Goodix Capacitive TouchScreen" mapToOutput="${D_DSI}" />
    </labwc_config>
    EOF
    }
    
    update_labwc_autostart()
    {
     local t_user=$1
    
     mkdir -p "/home/${t_user}/.config/labwc"
    
     cat > "/home/${t_user}/.config/labwc/autostart" << EOF
    if [ -f /home/${t_user}/.config/wf-panel-pi.ini ]; then
    
     grep -q "^monitor=" /home/${t_user}/.config/wf-panel-pi.ini
    
     if [ \$? -ne 0 ]; then
         sed -i "/^\[panel\]/a\monitor=${D_DSI}" \
             /home/${t_user}/.config/wf-panel-pi.ini
     fi
    
    else
    
     cat > /home/${t_user}/.config/wf-panel-pi.ini << EOL
    [panel]
    monitor=${D_DSI}
    launcher_000001=lxde-x-www-browser.desktop
    launcher_000002=pcmanfm.desktop
    launcher_000003=lxterminal.desktop
    EOL
    
    fi
    EOF
    }
    
    update_squeekboard()
    {
     local file="/etc/xdg/labwc/autostart"
    
     if [ ! -f "${file}" ]; then
         return
     fi
     if grep -q "^export SQUEEKBOARD_PREFERRED_OUTPUT=" "${file}"; then
         sed -i \
             "s|^export SQUEEKBOARD_PREFERRED_OUTPUT=.*|export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}|" \
             "${file}"
    
     else
         sed -i \
             "1i export SQUEEKBOARD_PREFERRED_OUTPUT=${D_DSI}" \
             "${file}"
    
     fi
    }
    
    update_wayland()
    {
     local home
     local t_user
    
     for home in /home/*; do
    
         [ -d "${home}" ] || continue
    
         t_user=$(basename "${home}")
    
         echo "Configuring Wayland for user: ${t_user}"
    
         update_wayfire "${t_user}"
         update_kanshi "${t_user}"
         update_labwc "${t_user}"
         update_labwc_autostart "${t_user}"
    
         chown -R "${t_user}:${t_user}" \
             "/home/${t_user}/.config"
    
     done
    
     update_squeekboard
    }
    
    run()
    {
     if [ "$(id -u)" -ne 0 ]; then
         echo "ERROR: this script must be run as root"
         exit 1
     fi
     update_wayland
     echo "HMI20 101C display setup completed."
    }
    
    run
    

    c. Execute the following commands to make the script executable and run it.

    sudo chmod +x ed-hmi-primary.sh && sudo ./ed-hmi-primary.sh
    
    image-20261019112304959
  3. After the LCD screen property configuration is complete, Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.16.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.17 For ED-HMI2002-070C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.17.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=vc4-kms-dsi-edatec-panel-070c,interrupt=2

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.17.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.18 For ED-CM4SEN Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.18.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
enable_uart=1
otg_mode=1
dtoverlay=i2c-rtc,pcf8563
dtoverlay=spi6-1cs,cs0_pin=18,cs0_spidev=disabled
dtoverlay=mcp2515,spi6-0,oscillator=16000000,interrupt=7
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
gpio=11=op,dl
dtoverlay=sdhost,gpios_22_27,preserve_mmc

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to add the udev rules for COM ports.

sudo tee /etc/udev/rules.d/50-local.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA[0-9]*|ttyS[0-9]*", PROGRAM="/bin/sh -c '\
        TTYADDR=$$(readlink /sys/class/tty/%k/device | sed -e "s|.*/||" -e "s|[.].*||" -e "s|^20|7e|" -e "s|^3f|7e|" -e "s|^fe|7e|"); \
        SERIAL0=$$(strings /proc/device-tree/aliases/serial0 2>/dev/null); \
        S0ADDR=$$(echo "$$SERIAL0" | sed -e "s|.*serial@||" -e "s|/.*||"); \
        [ -n "$$SERIAL0" ] && [ -n "$$S0ADDR" ] && [ "$$TTYADDR" = "$$S0ADDR" ] && echo 0 || exit 1; \
'", SYMLINK+="rs232", GOTO="rs232_done"
KERNEL=="ttyAMA2", SYMLINK+="rs485-3"
KERNEL=="ttyAMA3", SYMLINK+="rs485-1"
KERNEL=="ttyAMA4", SYMLINK+="rs485-2"
KERNEL=="ttyAMA5", SYMLINK+="rs485-4"
LABEL="rs232_done"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.18.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.19 For ED-CM4NANO Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.19.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
otg_mode=1
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.19.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.20 For ED-CM4MEDIA Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt and the sound card configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.20.1 Modify the config.txt and the sound card configuration file

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
gpio=15=op,dh
dtoverlay=wm8960-soundcard,media
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Write the ALSA state.

    a. Run the following command to reduce the PipeWire volume to 30%.

    wpctl set-volume @DEFAULT_SINK@ 30%
    

    b. Run the following command to modify the wm8960soundcard property in /var/lib/alsa/asound.state.

    sudo python3 - <<'PYCODE'
    from pathlib import Path
    import re
    
    state_path = Path('/var/lib/alsa/asound.state')
    new_block = r"""state.wm8960soundcard {
     control.1 {
     	iface MIXER
     	name 'Capture Volume'
     	value.0 63
     	value.1 63
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 63'
     		dbmin -1725
     		dbmax 3000
     		dbvalue.0 3000
     		dbvalue.1 3000
     	}
     }
     control.2 {
     	iface MIXER
     	name 'Capture Volume ZC Switch'
     	value.0 false
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.3 {
     	iface MIXER
     	name 'Capture Switch'
     	value.0 true
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.4 {
     	iface MIXER
     	name 'Left Input Boost Mixer LINPUT3 Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     		dbmin -9999999
     		dbmax 600
     		dbvalue.0 -9999999
     	}
     }
     control.5 {
     	iface MIXER
     	name 'Left Input Boost Mixer LINPUT2 Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     		dbmin -9999999
     		dbmax 600
     		dbvalue.0 -9999999
     	}
     }
     control.6 {
     	iface MIXER
     	name 'Right Input Boost Mixer RINPUT3 Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     		dbmin -9999999
     		dbmax 600
     		dbvalue.0 -9999999
     	}
     }
     control.7 {
     	iface MIXER
     	name 'Right Input Boost Mixer RINPUT2 Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     		dbmin -9999999
     		dbmax 600
     		dbvalue.0 -9999999
     	}
     }
     control.8 {
     	iface MIXER
     	name 'Right Input Boost Mixer RINPUT1 Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 3'
     		dbmin 0
     		dbmax 2900
     		dbvalue.0 0
     	}
     }
     control.9 {
     	iface MIXER
     	name 'Left Input Boost Mixer LINPUT1 Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 3'
     		dbmin 0
     		dbmax 2900
     		dbvalue.0 0
     	}
     }
     control.10 {
     	iface MIXER
     	name 'Playback Volume'
     	value.0 255
     	value.1 255
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 255'
     		dbmin -9999999
     		dbmax 0
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.11 {
     	iface MIXER
     	name 'Headphone Playback Volume'
     	value.0 123
     	value.1 123
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 127'
     		dbmin -9999999
     		dbmax 600
     		dbvalue.0 200
     		dbvalue.1 200
     	}
     }
     control.12 {
     	iface MIXER
     	name 'Headphone Playback ZC Switch'
     	value.0 false
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.13 {
     	iface MIXER
     	name 'Speaker Playback Volume'
     	value.0 127
     	value.1 127
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 127'
     		dbmin -9999999
     		dbmax 600
     		dbvalue.0 600
     		dbvalue.1 600
     	}
     }
     control.14 {
     	iface MIXER
     	name 'Speaker Playback ZC Switch'
     	value.0 false
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.15 {
     	iface MIXER
     	name 'Speaker DC Volume'
     	value 3
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 5'
     	}
     }
     control.16 {
     	iface MIXER
     	name 'Speaker AC Volume'
     	value 3
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 5'
     	}
     }
     control.17 {
     	iface MIXER
     	name 'PCM Playback -6dB Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.18 {
     	iface MIXER
     	name 'ADC Polarity'
     	value 'No Inversion'
     	comment {
     		access 'read write'
     		type ENUMERATED
     		count 1
     		item.0 'No Inversion'
     		item.1 'Left Inverted'
     		item.2 'Right Inverted'
     		item.3 'Stereo Inversion'
     	}
     }
     control.19 {
     	iface MIXER
     	name 'ADC High Pass Filter Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.20 {
     	iface MIXER
     	name 'DAC Polarity'
     	value 'No Inversion'
     	comment {
     		access 'read write'
     		type ENUMERATED
     		count 1
     		item.0 'No Inversion'
     		item.1 'Left Inverted'
     		item.2 'Right Inverted'
     		item.3 'Stereo Inversion'
     	}
     }
     control.21 {
     	iface MIXER
     	name 'DAC Deemphasis Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.22 {
     	iface MIXER
     	name '3D Filter Upper Cut-Off'
     	value High
     	comment {
     		access 'read write'
     		type ENUMERATED
     		count 1
     		item.0 High
     		item.1 Low
     	}
     }
     control.23 {
     	iface MIXER
     	name '3D Filter Lower Cut-Off'
     	value Low
     	comment {
     		access 'read write'
     		type ENUMERATED
     		count 1
     		item.0 Low
     		item.1 High
     	}
     }
     control.24 {
     	iface MIXER
     	name '3D Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 15'
     	}
     }
     control.25 {
     	iface MIXER
     	name '3D Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.26 {
     	iface MIXER
     	name 'ALC Function'
     	value Off
     	comment {
     		access 'read write'
     		type ENUMERATED
     		count 1
     		item.0 Off
     		item.1 Right
     		item.2 Left
     		item.3 Stereo
     	}
     }
     control.27 {
     	iface MIXER
     	name 'ALC Max Gain'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     	}
     }
     control.28 {
     	iface MIXER
     	name 'ALC Target'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 15'
     	}
     }
     control.29 {
     	iface MIXER
     	name 'ALC Min Gain'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     	}
     }
     control.30 {
     	iface MIXER
     	name 'ALC Hold Time'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 15'
     	}
     }
     control.31 {
     	iface MIXER
     	name 'ALC Mode'
     	value ALC
     	comment {
     		access 'read write'
     		type ENUMERATED
     		count 1
     		item.0 ALC
     		item.1 Limiter
     	}
     }
     control.32 {
     	iface MIXER
     	name 'ALC Decay'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 15'
     	}
     }
     control.33 {
     	iface MIXER
     	name 'ALC Attack'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 15'
     	}
     }
     control.34 {
     	iface MIXER
     	name 'Noise Gate Threshold'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 31'
     	}
     }
     control.35 {
     	iface MIXER
     	name 'Noise Gate Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.36 {
     	iface MIXER
     	name 'ADC PCM Capture Volume'
     	value.0 255
     	value.1 255
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 255'
     		dbmin -9999999
     		dbmax 3000
     		dbvalue.0 3000
     		dbvalue.1 3000
     	}
     }
     control.37 {
     	iface MIXER
     	name 'Left Output Mixer Boost Bypass Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     		dbmin -2100
     		dbmax 0
     		dbvalue.0 -2100
     	}
     }
     control.38 {
     	iface MIXER
     	name 'Left Output Mixer LINPUT3 Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     		dbmin -2100
     		dbmax 0
     		dbvalue.0 -2100
     	}
     }
     control.39 {
     	iface MIXER
     	name 'Right Output Mixer Boost Bypass Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     		dbmin -2100
     		dbmax 0
     		dbvalue.0 -2100
     	}
     }
     control.40 {
     	iface MIXER
     	name 'Right Output Mixer RINPUT3 Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 7'
     		dbmin -2100
     		dbmax 0
     		dbvalue.0 -2100
     	}
     }
     control.41 {
     	iface MIXER
     	name 'ADC Data Output Select'
     	value 'Left Data = Left ADC;  Right Data = Right ADC'
     	comment {
     		access 'read write'
     		type ENUMERATED
     		count 1
     		item.0 'Left Data = Left ADC;  Right Data = Right ADC'
     		item.1 'Left Data = Left ADC;  Right Data = Left ADC'
     		item.2 'Left Data = Right ADC; Right Data = Right ADC'
     		item.3 'Left Data = Right ADC; Right Data = Left ADC'
     	}
     }
     control.42 {
     	iface MIXER
     	name 'DAC Mono Mix'
     	value Stereo
     	comment {
     		access 'read write'
     		type ENUMERATED
     		count 1
     		item.0 Stereo
     		item.1 Mono
     	}
     }
     control.43 {
     	iface MIXER
     	name 'DAC Filter Characteristics'
     	value Normal
     	comment {
     		access 'read write'
     		type ENUMERATED
     		count 1
     		item.0 Normal
     		item.1 Sloping
     	}
     }
     control.44 {
     	iface MIXER
     	name 'Left Boost Mixer LINPUT2 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.45 {
     	iface MIXER
     	name 'Left Boost Mixer LINPUT3 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.46 {
     	iface MIXER
     	name 'Left Boost Mixer LINPUT1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.47 {
     	iface MIXER
     	name 'Right Boost Mixer RINPUT2 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.48 {
     	iface MIXER
     	name 'Right Boost Mixer RINPUT3 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.49 {
     	iface MIXER
     	name 'Right Boost Mixer RINPUT1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.50 {
     	iface MIXER
     	name 'Left Input Mixer Boost Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.51 {
     	iface MIXER
     	name 'Right Input Mixer Boost Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.52 {
     	iface MIXER
     	name 'Left Output Mixer PCM Playback Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.53 {
     	iface MIXER
     	name 'Left Output Mixer LINPUT3 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.54 {
     	iface MIXER
     	name 'Left Output Mixer Boost Bypass Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.55 {
     	iface MIXER
     	name 'Right Output Mixer PCM Playback Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.56 {
     	iface MIXER
     	name 'Right Output Mixer RINPUT3 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.57 {
     	iface MIXER
     	name 'Right Output Mixer Boost Bypass Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.58 {
     	iface MIXER
     	name 'Mono Output Mixer Left Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.59 {
     	iface MIXER
     	name 'Mono Output Mixer Right Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
    }"""
    pattern = re.compile(r'(?ms)^state\.wm8960soundcard \{\n.*?^\}')
    assert pattern.fullmatch(new_block), 'wm8960 状态块格式不完整'
    current = state_path.read_text() if state_path.exists() else ''
    blocks = list(pattern.finditer(current))
    assert len(blocks) <= 1, '状态文件包含重复的 wm8960soundcard  块'
    if blocks:
     existing = blocks[0]
     merged = current[:existing.start()] + new_block + current[existing.end():]
    else:
     merged = current.rstrip('\n') + ('\n\n' if current.strip() else '') + new_block + '\n'
    state_path.write_text(merged)
    state_path.chmod(0o644)
    PYCODE
    

    c. Run the following command to reapply the modified content to the sound card.

    sudo alsactl -U -f /var/lib/alsa/asound.state restore wm8960soundcard
    

    d. Run the following command to write the asound configuration.

    sudo tee /etc/asound.conf >/dev/null <<'EOF'
    defaults.pcm.card 2
    defaults.ctl.card 2
    defaults.timer.card 2
    EOF
    
  3. Write the WirePlumber and alsa-card-profile configuration.

    a. Run the following command to create the /etc/wireplumber/wireplumber.conf.d/ directory.

    sudo mkdir -p /etc/wireplumber/wireplumber.conf.d/
    

    b. Run the following command to create the 51-ed-config-wm8960.conf file, then write the audio configuration properties.

    sudo tee /etc/wireplumber/wireplumber.conf.d/51-ed-config-wm8960.conf >/dev/null <<'WP51'
    # Debian 13 compatibility for the legacy CM4media audio package.
    # Managed by ed-config: keep the WM8960 hardware mixer authoritative.
    monitor.alsa.rules = [
      {
     matches = [
       {
         device.name = "~alsa_card.*"
         api.alsa.card.name = "wm8960-soundcard"
       }
     ]
     actions = {
       update-props = {
         api.alsa.soft-mixer = false
         device.profile-set = "ed-wm8960.conf"
       }
     }
      }
      {
     matches = [
       {
         node.name = "~alsa_output.*"
         alsa.card_name = "wm8960-soundcard"
       }
     ]
     actions = {
       update-props = {
         priority.session = 1200
         api.alsa.soft-mixer = false
         audio.format = "S16LE"
       }
     }
      }
    ]
    WP51
    

    c. Run the following command to create the /etc/alsa-card-profile/mixer/profile-sets/ directory.

    sudo mkdir -p /etc/alsa-card-profile/mixer/profile-sets/
    

    d. Run the following command to create the /etc/alsa-card-profile/mixer/paths/ directory.

    sudo mkdir -p /etc/alsa-card-profile/mixer/paths/
    

    e. Run the following command to create the ed-wm8960.conf file, then write the audio configuration properties.

    sudo tee /etc/alsa-card-profile/mixer/profile-sets/ed-wm8960.conf >/dev/null <<'EOF'
    # Managed by ed-config: WM8960 ACP profile without the generic speaker-path
    # operation that mutes the independent headphone volume control.
    [General]
    auto-profiles = yes
    
    [Mapping stereo-fallback]
    device-strings = hw:%f
    fallback = yes
    channel-map = front-left,front-right
    paths-output = ed-wm8960-output-speaker analog-output-headphones
    paths-input = analog-input
    priority = 1
    EOF
    

    f. Run the following command to create the ed-wm8960-output-speaker.conf file, then write the sound card configuration properties.

    sudo tee /etc/alsa-card-profile/mixer/paths/ed-wm8960-output-speaker.conf >/dev/null <<'EOF'
    # Managed by ed-config: do not mute the independent WM8960 headphone control
    # when the speaker route is selected.
    [General]
    priority = 100
    description-key = analog-output-speaker
    
    [Properties]
    device.icon_name = audio-speakers
    
    [Element Speaker]
    required-any = any
    switch = mute
    volume = merge
    override-map.1 = all
    override-map.2 = all-left,all-right
    
    .include analog-output.conf.common
    EOF
    

    g. Run the following command to restart the WirePlumber service.

    systemctl --user restart wireplumber
    
  4. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.20.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.21 For ED-CM4IND Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.21.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtparam=spi=on
dtoverlay=spi1-1cs,cs0_pin=16,cs0_spidev=off
dtoverlay=jedec-spi-nor,spi1-0
dtoverlay=i2c-rtc,pcf8563
dtoverlay=ads1015,cha_gain=1,chb_gain=1,chc_gain=1,chd_gain=1
gpio=7=ip,pu
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
otg_mode=1
gpio=6=ip,pu
gpio=25=op,dl

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to add the udev rules for COM ports.

sudo tee /etc/udev/rules.d/50-local.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", SYMLINK+="rs485-2"
KERNEL=="ttyAMA4", SYMLINK+="rs485-1"
KERNEL=="ttyAMA5", SYMLINK+="rs232"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.21.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.22 For ED-SBC3300 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.22.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
enable_uart=1
dtoverlay=i2c-rtc,pcf8563
gpio=45=op,dh
dtoverlay=wk2xxx-uart,sbc2300
dtoverlay=uart0-pi5
dtoverlay=uart1-pi5
dtoverlay=uart2-pi5
dtoverlay=uart3-pi5
dtoverlay=uart4-pi5
dtoverlay=ed-ipc,ipc3300
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=ed-backlight-pwm-pi5,sg215

The result after adding the information is shown in the figure below:

image-20261019112051524
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttysWK*", ACTION=="add", PROGRAM="/bin/sh -c 'chgrp -R dialout /dev/%k && chmod -R g=u /dev/%k'"
KERNEL=="ttyAMA0", PROGRAM="/bin/sh -c 'echo 0'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttysWK0", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttysWK1", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
KERNEL=="ttysWK2", PROGRAM="/bin/sh -c 'echo 5'", SYMLINK+="com%c"
KERNEL=="ttysWK3", PROGRAM="/bin/sh -c 'echo 6'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="rs485_%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="rs485_%c"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.22.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd ed-wk2xxx-uart-firmware

2.23 For ED-SBC2300 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.23.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
enable_uart=1
dtoverlay=i2c-rtc,pcf8563
gpio=45=op,dh
dtparam=ant2
dtoverlay=wk2xxx-uart,sbc2300
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=ed-ipc,ipc2300
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=ed-backlight-pwm

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttysWK0", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttysWK1", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
KERNEL=="ttysWK2", PROGRAM="/bin/sh -c 'echo 5'", SYMLINK+="com%c"
KERNEL=="ttysWK3", PROGRAM="/bin/sh -c 'echo 6'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="rs485_%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="rs485_%c"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.23.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd ed-wk2xxx-uart-firmware

2.24 For ED-PLC2010 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.24.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=ed-ipc,plc2010
dtoverlay=sdhost,gpios_22_27,preserve_mmc

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/99-com.rules >/dev/null <<'EOF'
SUBSYSTEM=="input", GROUP="input", MODE="0660"
SUBSYSTEM=="i2c-dev", GROUP="i2c", MODE="0660"
SUBSYSTEM=="spidev", GROUP="spi", MODE="0660"
SUBSYSTEM=="bcm2835-gpiomem", GROUP="gpio", MODE="0660"
SUBSYSTEM=="rpivid-*", GROUP="video", MODE="0660"

KERNEL=="vcsm-cma", GROUP="video", MODE="0660"
SUBSYSTEM=="dma_heap", GROUP="video", MODE="0660"

SUBSYSTEM=="gpio", GROUP="gpio", MODE="0660"
SUBSYSTEM=="gpio", KERNEL=="gpiochip*", ACTION=="add", PROGRAM="/bin/sh -c 'chgrp -R gpio /sys/class/gpio && chmod -R g=u /sys/class/gpio'"
SUBSYSTEM=="gpio", ACTION=="add", PROGRAM="/bin/sh -c 'chgrp -R gpio /sys%p && chmod -R g=u /sys%p'"
SUBSYSTEM=="pwm", ACTION!="remove", PROGRAM="/bin/sh -c 'chgrp -R gpio /sys%p && chmod -R g=u /sys%p'"

KERNEL=="ttyAMA0", PROGRAM="/bin/sh -c '\
	ALIASES=/proc/device-tree/aliases; \
	if cmp -s $$ALIASES/uart0 $$ALIASES/serial0; then \
		echo 0;\
	elif cmp -s $$ALIASES/uart0 $$ALIASES/serial1; then \
		echo 1; \
	else \
		exit 1; \
	fi\
'", SYMLINK+="serial%c"

KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c '\
	ALIASES=/proc/device-tree/aliases; \
	if [ -e /dev/ttyAMA0 ]; then \
		exit 1; \
	elif cmp -s $$ALIASES/uart0 $$ALIASES/serial0; then \
		echo 0;\
	elif cmp -s $$ALIASES/uart0 $$ALIASES/serial1; then \
		echo 1; \
	else \
		exit 1; \
	fi\
'", SYMLINK+="serial%c"

KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
	ALIASES=/proc/device-tree/aliases; \
	if cmp -s $$ALIASES/uart1 $$ALIASES/serial0; then \
		echo 0; \
	elif cmp -s $$ALIASES/uart1 $$ALIASES/serial1; then \
		echo 1; \
	else \
		exit 1; \
	fi \
'", SYMLINK+="serial%c"

KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"

KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"

KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"

KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"

ACTION=="add", SUBSYSTEM=="vtconsole", KERNEL=="vtcon1", RUN+="/bin/sh -c '\
	if echo RPi-Sense FB | cmp -s /sys/class/graphics/fb0/name; then \
		echo 0 > /sys$devpath/bind; \
	fi; \
'"
EOF
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.24.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.25 For ED-IPC3400 Series+

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.25.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.25.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd

2.26 For ED-IPC3200 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.26.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc3210
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.26.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.27 For ED-IPC3100, ED-HMI3120-116C, ED-HMI3120-133C, ED-HMI3120-156C, ED-HMI3120-185C and ED-HMI3120-215C Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.27.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc3100
dtoverlay=uart1
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=sdio-pi5
dtparam=rtc=off
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi0
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019112407388
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA1", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts successfully, the screen should display correctly, and all interfaces should function properly.

2.27.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd
  1. (Optional) Run the following command to install the ed-ddcci-mib-tool software package.
sudo apt install ed-ddcci-mib-tool

TIP

The ED-HMI3120-116C, ED-HMI3120-133C, ED-HMI3120-156C, ED-HMI3120-185C, and ED-HMI3120-215C all require the installation of the ed-ddcci-mib-tool software package. The ED-IPC3100 Series does not need to install this software package.

2.28 For ED-IPC3020 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt and the sound card configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.28.1 Modify the config.txt and the sound card configuration file

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=uart2-pi5
dtoverlay=uart4-pi5
dtparam=pcie=on
dtparam=pciex1=on
dtoverlay=rt5616
dtoverlay=act-led,gpio=16
gpio=6=op,dl

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Run the following command to add the udev rule for backlight control.

    sudo tee /etc/udev/rules.d/backlight-permissions.rules >/dev/null <<'EOF'
    SUBSYSTEM=="backlight",RUN+="/bin/chmod 666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power"
    EOF
    
    image-20261019171328432
  2. Run the following command to install the audio software package.

sudo apt install libasound2-plugins libpulsedsp pulseaudio-utils pulseaudio -y
  1. Write the ALSA state.

    a. Run the following command to reduce the PipeWire volume to 30%.

    wpctl set-volume @DEFAULT_SINK@ 30%
    

    b. Run the following command to modify the rt5616codec property in /var/lib/alsa/asound.state.

    sudo python3 - <<'PYCODE'
    from pathlib import Path
    import re
    
    state_path = Path('/var/lib/alsa/asound.state')
    new_block = r"""state.rt5616codec {
     control.1 {
     	iface MIXER
     	name 'HP Playback Switch'
     	value.0 true
     	value.1 true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.2 {
     	iface MIXER
     	name 'HPVOL Playback Switch'
     	value.0 true
     	value.1 true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.3 {
     	iface MIXER
     	name 'HP Playback Volume'
     	value.0 31
     	value.1 31
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 39'
     		dbmin -4650
     		dbmax 1200
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.4 {
     	iface MIXER
     	name 'OUT Playback Switch'
     	value.0 true
     	value.1 true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.5 {
     	iface MIXER
     	name 'OUT Channel Switch'
     	value.0 false
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.6 {
     	iface MIXER
     	name 'OUT Playback Volume'
     	value.0 31
     	value.1 31
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 39'
     		dbmin -4650
     		dbmax 1200
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.7 {
     	iface MIXER
     	name 'DAC1 Playback Volume'
     	value.0 172
     	value.1 172
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 175'
     		dbmin -65625
     		dbmax 0
     		dbvalue.0 -2625
     		dbvalue.1 -2625
     	}
     }
     control.8 {
     	iface MIXER
     	name 'IN1 Boost Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 8'
     		dbmin 0
     		dbmax 5200
     		dbvalue.0 0
     	}
     }
     control.9 {
     	iface MIXER
     	name 'IN2 Boost Volume'
     	value 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 1
     		range '0 - 8'
     		dbmin 0
     		dbmax 5200
     		dbvalue.0 0
     	}
     }
     control.10 {
     	iface MIXER
     	name 'IN Capture Volume'
     	value.0 23
     	value.1 23
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 31'
     		dbmin -3450
     		dbmax 1200
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.11 {
     	iface MIXER
     	name 'ADC Capture Switch'
     	value.0 false
     	value.1 false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 2
     	}
     }
     control.12 {
     	iface MIXER
     	name 'ADC Capture Volume'
     	value.0 47
     	value.1 47
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 127'
     		dbmin -17625
     		dbmax 30000
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.13 {
     	iface MIXER
     	name 'ADC Boost Volume'
     	value.0 0
     	value.1 0
     	comment {
     		access 'read write'
     		type INTEGER
     		count 2
     		range '0 - 3'
     		dbmin 0
     		dbmax 3600
     		dbvalue.0 0
     		dbvalue.1 0
     	}
     }
     control.14 {
     	iface MIXER
     	name 'RECMIXL INL1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.15 {
     	iface MIXER
     	name 'RECMIXL BST2 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.16 {
     	iface MIXER
     	name 'RECMIXL BST1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.17 {
     	iface MIXER
     	name 'RECMIXR INR1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.18 {
     	iface MIXER
     	name 'RECMIXR BST2 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.19 {
     	iface MIXER
     	name 'RECMIXR BST1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.20 {
     	iface MIXER
     	name 'Stereo1 ADC MIXL ADC1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.21 {
     	iface MIXER
     	name 'Stereo1 ADC MIXR ADC1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.22 {
     	iface MIXER
     	name 'DAC MIXL Stereo ADC Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.23 {
     	iface MIXER
     	name 'DAC MIXL INF1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.24 {
     	iface MIXER
     	name 'DAC MIXR Stereo ADC Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.25 {
     	iface MIXER
     	name 'DAC MIXR INF1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.26 {
     	iface MIXER
     	name 'Stereo DAC MIXL DAC L1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.27 {
     	iface MIXER
     	name 'Stereo DAC MIXL DAC R1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.28 {
     	iface MIXER
     	name 'Stereo DAC MIXR DAC R1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.29 {
     	iface MIXER
     	name 'Stereo DAC MIXR DAC L1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.30 {
     	iface MIXER
     	name 'OUT MIXL BST1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.31 {
     	iface MIXER
     	name 'OUT MIXL BST2 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.32 {
     	iface MIXER
     	name 'OUT MIXL INL1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.33 {
     	iface MIXER
     	name 'OUT MIXL REC MIXL Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.34 {
     	iface MIXER
     	name 'OUT MIXL DAC L1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.35 {
     	iface MIXER
     	name 'OUT MIXR BST2 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.36 {
     	iface MIXER
     	name 'OUT MIXR BST1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.37 {
     	iface MIXER
     	name 'OUT MIXR INR1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.38 {
     	iface MIXER
     	name 'OUT MIXR REC MIXR Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.39 {
     	iface MIXER
     	name 'OUT MIXR DAC R1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.40 {
     	iface MIXER
     	name 'HPO MIX DAC1 Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.41 {
     	iface MIXER
     	name 'HPO MIX HPVOL Switch'
     	value true
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.42 {
     	iface MIXER
     	name 'LOUT MIX DAC L1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.43 {
     	iface MIXER
     	name 'LOUT MIX DAC R1 Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.44 {
     	iface MIXER
     	name 'LOUT MIX OUTVOL L Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
     control.45 {
     	iface MIXER
     	name 'LOUT MIX OUTVOL R Switch'
     	value false
     	comment {
     		access 'read write'
     		type BOOLEAN
     		count 1
     	}
     }
    }"""
    pattern = re.compile(r'(?ms)^state\.rt5616codec \{\n.*?^\}')
    assert pattern.fullmatch(new_block), 'RT5616 状态块格式不完整'
    current = state_path.read_text() if state_path.exists() else ''
    blocks = list(pattern.finditer(current))
    assert len(blocks) <= 1, '状态文件包含重复的 rt5616codec 块'
    if blocks:
     existing = blocks[0]
     merged = current[:existing.start()] + new_block + current[existing.end():]
    else:
     merged = current.rstrip('\n') + ('\n\n' if current.strip() else '') + new_block + '\n'
    state_path.write_text(merged)
    state_path.chmod(0o644)
    PYCODE
    

    c. Run the following command to reapply the modified content to the sound card.

    sudo alsactl -U -f /var/lib/alsa/asound.state restore rt5616codec
    
  2. Write WirePlumber configuration.

    a. Run the following command to create the /etc/wireplumber/wireplumber.conf.d/ directory.

    sudo mkdir -p /etc/wireplumber/wireplumber.conf.d/
    

    b. Run the following command to create the 51-ed-config-rt5616.conf file, then write the audio configuration properties.

    sudo tee /etc/wireplumber/wireplumber.conf.d/51-ed-config-rt5616.conf >/dev/null <<'WP51'
    # Debian 13 compatibility for the legacy 3020 audio package.
    monitor.alsa.rules = [
      {
     matches = [
       {
         device.name = "~alsa_card.*"
         api.alsa.card.name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
         api.alsa.soft-mixer = false
       }
     }
      }
      {
     matches = [
       {
         node.name = "~alsa_output.*"
         alsa.card_name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
           priority.session = 1200
           api.alsa.soft-mixer = false
           audio.format = "S16LE"
       }
     }
      }
    ]
    WP51
    

    c. Run the following command to create the 52-rt5616-defaults.conf file, then write the sound card configuration properties.

    sudo tee /etc/wireplumber/wireplumber.conf.d/52-rt5616-defaults.conf >/dev/null <<'WP52'
    monitor.alsa.rules = [
      {
     matches = [
       { api.alsa.card.name = "~vc4-hdmi-.*" }
     ]
     actions = {
       update-props = {
         device.disabled = true
       }
     }
      }
      {
     matches = [
       {
         node.name = "~alsa_output.*"
         alsa.card_name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
         priority.session = 3000
       }
     }
      }
      {
     matches = [
       {
         node.name = "~alsa_input.*"
         alsa.card_name = "rt5616-codec"
       }
     ]
     actions = {
       update-props = {
         priority.session = 3000
       }
     }
      }
    ]
    WP52
    

    d. Run the following command to restart the WirePlumber service.

    systemctl --user restart wireplumber
    
  3. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.28.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.29 For ED-IPC2630 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.29.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2100,exp8x8y
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=spi6-2cs,cs0_spidev=disable,cs1_pin=17,cs1_spidev=disable
dtoverlay=mcp2515,spi6-0,oscillator=16000000,interrupt=15
dtoverlay=mcp2515,spi6-1,oscillator=16000000,interrupt=14

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Execute the following command to add the udev rules for CAN ports.
sudo tee /etc/udev/rules.d/50-can.rules >/dev/null <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.1/net/can*", NAME="canb1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.0/net/can*", NAME="canb0"
EOF
image-20261019112204933
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.29.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.30 For ED-IPC2620 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.30.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2100,exp8x8y
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=spi6-2cs,cs0_spidev=disable,cs1_pin=17,cs1_spidev=disable
dtoverlay=mcp2515,spi6-0,oscillator=16000000,interrupt=15

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Execute the following command to add the udev rules for CAN ports.
sudo tee /etc/udev/rules.d/50-can.rules >/dev/null <<'EOF'
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", DEVPATH=="/devices/platform/soc/*spi/spi_master/spi6/spi6.0/net/can*", NAME="canb0"
EOF
image-20261019112204933
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.30.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.31 For ED-IPC2610 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.31.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2100,exp8x8y
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.31.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.32 For ED-IPC2400 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.32.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtparam=i2c_arm=on
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
        echo 1\
'", SYMLINK+="com%c"

KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c '\
        echo 3\
'", SYMLINK+="com%c"

KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c '\
        echo 5\
'", SYMLINK+="com%c"

KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c '\
        echo 4\
'", SYMLINK+="com%c"

KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c '\
        echo 2\
'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.32.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd

2.33 For ED-IPC2200 and ED-IPC2500 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.33.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2210
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.33.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.34 For ED-IPC2100 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.34.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtparam=i2c_arm=on
dtoverlay=ed-ipc,ipc2100
dtoverlay=uart2
dtoverlay=uart3
dtoverlay=uart4
dtoverlay=uart5
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtoverlay=sdhost,gpios_22_27,preserve_mmc
enable_uart=1

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.
  2. Execute the following command to add the udev rules for COM ports.
sudo tee /etc/udev/rules.d/98-com.rules >/dev/null <<'EOF'
KERNEL=="ttyAMA3", PROGRAM="/bin/sh -c 'echo 1'", SYMLINK+="com%c"
KERNEL=="ttyAMA5", PROGRAM="/bin/sh -c 'echo 2'", SYMLINK+="com%c"
KERNEL=="ttyAMA2", PROGRAM="/bin/sh -c 'echo 3'", SYMLINK+="com%c"
KERNEL=="ttyAMA4", PROGRAM="/bin/sh -c 'echo 4'", SYMLINK+="com%c"
EOF
image-20261019112051524
  1. Execute the following command to reboot the device for the changes to take effect.
sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.34.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-clte, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-clte ed-usb-tools ed-lvd

2.35 For ED-IPC2010 Series

The configuration process consists of the following two steps, which should be performed sequentially:

  1. Modify the config.txt configuration file: Modify the configuration file according to the product model to enable the required ports.

  2. software packages: After completing the configuration modification, install the corresponding software packages for extended functionalities to ensure normal operation.

2.35.1 Modifying the config.txt File

Preparation:

  • The device has been flashed with the latest standard Raspberry Pi OS (Trixie, release dated September 15, 2026 or later).
  • The device has booted up normally and an external monitor is connected.

Steps:

  1. Open a terminal window on the device and execute the following command to open the /boot/firmware/config.txt file.
sudo nano /boot/firmware/config.txt
  1. Add the following information at the [all] section at the end of the /boot/firmware/config.txt file`.
dtoverlay=sdhost,gpios_22_27,preserve_mmc
dtoverlay=i2c-rtc,pcf8563,i2c_csi_dsi
dtparam=i2c_arm=on

The result after adding the information is shown in the figure below:

image-20261019115759798
  1. Press ctrl+o to save the file, then press Enter, and finally press ctrl+x to exit the file editing mode.

  2. Execute the following command to reboot the device for the changes to take effect.

sudo reboot
  1. After the device restarts, all interfaces can work normally.

2.35.2 Installing Software Packages

Preparation:

The device has completed the modification of the config.txt file.

Steps:

  1. Open a terminal window and execute the following commands in sequence to download the key and create the edatec.list file.
curl -sS https://apt.edatec.cn/pubkey.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/edatec-archive-stable.gpg 
echo "deb https://apt.edatec.cn/raspbian stable main" | sudo tee /etc/apt/sources.list.d/edatec.list
sudo apt update
  1. Run the following command to install the ed-reboot, ed-rtc, ed-usb-tools, and ed-lvd software packages.
sudo apt install ed-reboot ed-rtc ed-usb-tools ed-lvd