Configuring 4G

Users can optionally choose ED-IPC and ED-HMI devices with 4G versions. Before using the 4G network, related configurations are required. If the purchased ED-IPC or ED-HMI device includes 4G functionality, the 4G function is enabled by default from the factory. After inserting the SIM card and powering on the device, the 4G network will connect automatically.

The 4G dial-up reconnection software package (ed-qmi-tool) is pre-installed by default on our company's devices. It is recommended that users utilize this tool to connect to 4G networks. The following section details the specific steps to configure and connect to a 4G network using the pre-installed ed-qmi-tool.

TIP

If users have other requirements and wish to configure the network using the Network Manager tool in Raspberry Pi OS, please refer to Configuring 4G.

Scenarios Without APN Configuration

If the user's 4G network does not require APN configuration, the 4G network status can be checked by following the steps below.

Preparation:

  • The ED-IPC or ED-HMI device has started normally.
  • A Nano SIM card with 4G network service has been correctly installed into the device's SIM card slot.

NOTE

Please turn off the power before inserting or removing the Nano SIM card.

Steps:

  1. Open the command window and execute the following command to check if the 4G network is connected.
ifconfig

The returned information is as shown in the figure below (the wwan0 interface indicates the 4G interface):

wwan0
  • If the wwan0 interface in the returned information displays a specific IP address, it indicates that the 4G network is connected.
  • If the wwan0 interface in the returned information does not display a specific IP address, it indicates that the 4G network is not connected.
  1. Execute the following command to query the status of the 4G service.
sudo systemctl status ed-lte-daemon.service

The returned information is as shown in the figure below:

active-running
  • If the information at the marked position in the returned message shows "Active: active (running)", it indicates that the 4G status is normal.
  • If the information at the marked position in the returned message shows "Active: inactive (dead)", it indicates that the 4G status is abnormal.

Scenarios With APN Configuration

If the user's 4G network requires APN configuration, it can be configured by following the steps below.

Preparation:

  • The ED-IPC or ED-HMI device has started normally.
  • A Nano SIM card with 4G network service has been correctly installed into the ED-IPC or ED-HMI SIM card slot.
  • The APN name, username, and password have been obtained. The following information is used as an example:
    • APN name: APN1
    • Username: admin
    • Password: admin

NOTE

Please turn off the power before inserting or removing the Nano SIM card.

Steps:

  1. Open the command window and execute the following commands in sequence to open the ed-qml.conf configuration file.
cd /etc/
sudo nano ed-qml.conf
  1. Configure the "apn", "apn_user", and "apn_password" in the "APN Config" section as needed.
apn-1

TIP

Parameters such as "4G reset", "Network", and "intervaltime" all support user configuration as needed.

  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 restart the 4G network service for the configuration to take effect.

sudo systemctl restart ed-lte-daemon.service
  1. Open the command window and execute the following command to check if the 4G network is connected.
ifconfig

The returned information is as shown in the figure below (the wwan0 interface indicates the 4G interface):

wwan0
  • If the wwan0 interface in the returned information displays a specific IP address, it indicates that the 4G network is connected.
  • If the wwan0 interface in the returned information does not display a specific IP address, it indicates that the 4G network is not connected.
  1. Execute the following command to query the status of the 4G service.
sudo systemctl status ed-lte-daemon.service

The returned information is as shown in the figure below:

active-running
  • If the information at the marked position in the returned message shows "Active: active (running)", it indicates that the 4G status is normal.
  • If the information at the marked position in the returned message shows "Active: inactive (dead)", it indicates that the 4G status is abnormal.

Basic Configuration Commands

If the 4G network cannot be connected, use the following commands for querying and configuration.

CommandDescription
sudo ed-lte-tool --daemonStart the 4G monitoring program and automatically connect to the 4G network
ifconfigCheck if the 4G network is connected. The wwan0 interface represents the 4G interface, as shown in the figure below.
wwan0
  • If the wwan0 interface displays a specific IP address, it indicates 4G is connected.
  • If the wwan0 interface does not display a specific IP address, it indicates 4G is not connected.
sudo systemctl status ed-lte-daemon.serviceCheck the service status of 4G, as shown in the figure below.
active-running
  • If the information at the marked position is "Active: active (running)", it indicates the 4G status is normal.
  • If the information at the marked position is "Active: inactive (dead)", it indicates the 4G status is abnormal.
sudo systemctl enable ed-lte-daemon.serviceEnable the 4G service
sudo systemctl start ed-lte-daemon.serviceStart the 4G service
sudo systemctl stop ed-lte-daemon.serviceStop the 4G service
sudo ed-lte-tool -mView 4G module information
sudo ed-lte-tool -sCheck 4G signal strength
sudo ed-lte -cDial-up to connect to the internet
sudo ed-lte -dDisconnect the network connection. Automatic reconnection is not supported after disconnection
cd /var/log/ed-qmi/
sudo nano xxxx-xx-xx.log
Enter the /var/log/ed-qmi/ directory to view log files, where xxxx-xx-xx is year-month-day, format like 2025-06-18
journalctl -u ed-lte-daemon.serviceView real-time logs of the 4G network

TIP

When the 4G port connection is normal, if the 4G service status is found to be abnormal, you can execute the following commands in sequence to enable and start the 4G service.

sudo systemctl enable ed-lte-daemon.service
sudo systemctl start ed-lte-daemon.service