5 Configuring System

This chapter introduces how to configure system.

5.1 Finding Device IP

Finding Device IP

5.2 Remote Login

Remote Login

5.3 Configuring Storage Devices

Configuring Storage Devices

5.4 Configuring Ethernet IP

Configuring Ethernet IP

5.5 Configuring Wi-Fi (Optional)

Configuring Wi-Fi

5.6 Configuring Bluetooth (Optional)

Configuring Bluetooth

5.7 Configuring 4G (Optional)

Configuring 4G

5.8 Configuring Buzzer

Configuring Buzzer

5.9 Configuring RTC

Configuring RTC

5.10 Configuring Serial Port

This section describes how to configure the serial port.

5.10.1 Installing picocom tool

In the Linux environment, you can use the picocom tool to debug the serial ports RS232 and RS485.

Execute the following command to install the picocom tool.

sudo apt-get install picocom

5.10.2 Configure COM port (COM0)

The ED-HMI2320-156c device includes one COM0 port, which is the device's debug serial port by default.

The COM port and device file corresponding to RS232 are shown in the following table:

COM portSilk screen in PCBACorresponding device file
COMDB9/dev/com0

Preparation:

The connection between the COM0 port of the ED-HMI2320-156c device and the external devices has been completed.

Steps:

  1. Execute the following command to open the serial port COM0 and configure the serial port baud rate to 115200.

picocom -b 115200 /dev/com0

  1. Input commands as needed to control external device

5.10.3 Configure COM port (COM1~COM3)

The ED-HMI2320-156c device includes 3 COM ports (COM1~COM3), which can be expanded to 0~2 RS485 or 1~3 RS232 interfaces according to actual user needs.

When configured as 3 RS232 ports, the corresponding COM ports and device files are shown in the following table:

COM portSilk screen in PCBACorresponding device file
COM1J8/dev/com1
COM2J9/dev/com2
COM3J10/dev/com3

When configured as 2 RS232 and 1 RS485 ports, the corresponding COM ports and device files are shown in the following table:

COM portSilk screen in PCBACorresponding device file
COM1J8/dev/com1
COM2J9/dev/com2
COM3J16/dev/rs485_1

When configured as 1 RS232 and 2 RS485 ports, the corresponding COM ports and device files are shown in the following table:

COM portSilk screen in PCBACorresponding device file
COM1J8/dev/com1
COM2J16/dev/rs485_1
COM3J17/dev/rs485_2

Taking the configuration of 1 RS232 port (COM1) as an example, the specific operations of configuring the COM port are introduced.

Preparation:

The connection between the COM ports (COM1~COM3) of the ED-HMI2320-156c device and the external devices has been completed.

Steps:

  1. Execute the following command to open the serial port COM1 and configure the serial port baud rate to 115200.

picocom -b 115200 /dev/com1

  1. Input commands as needed to control external device

5.11 Configuring Audio (optional)

The ED-HMI2320-156c device includes one audio input (supports access to MIC) and one audio output. The volume of Master and MIC can be adjusted, and it supports audio recording of MIC.

5.11.1 Adjusting The Volume

It supports manual adjustment of MIC and Master volume.

  • Adjusting the volume of MIC and Master through desktop icons.

Steps

  1. Click the icon image-20240705170754752or image-20240705170835245 ,in the upper right corner of the desktop to open the volume adjustment colume.

    image-20240705170900289
  2. Drag the button of the volume adjustment column up and down to adjust the volume, check or uncheck the Mute check box to mute and unmute the audio.

  • Opening the volume adjustment interface through the command line to adjust the volume.

Steps:

  1. Execute the following command to open the volume adjustment interface.

alsamixer

image-20240705171001398

  1. View the volume value of the current Master in the opened interface. You can adjust the volume through the ↑ key and ↓ key on the keyboard, and press the M key to mute and unmute the audio.
Keyboard KeyFunction
Volume+
Volume-
MMute or Unmute

5.11.2 Configuring Recording

It supports the audio recording of MIC input.

Preparation:

The audio input interface is connected to the MIC, and the MIC is not muted.

Steps:

  1. Open command pane,execute the following command to start recording audio named name.wav, as shown in the figure below.

arecord -fdat -Dhw:0 --vumeter=stereo name.wav

image-20240705171229979

ParametersDescription
datIndicating the audio format, and only supports recording in dat format.
0Indicates the sound card for recording. You need to inquire it by executing `arecord -l` before recording, as shown below:
image-20240705171320030
name.wavIndicates the recorded file name, which can be customized by the user.
  1. Press Ctrl+C to save and close the recording.
  2. Execute the following command to obtain the saving path of the recording file.

pwd