5 Configuring System
This chapter introduces how to configure system.
5.1 Finding Device IP
5.2 Remote Login
5.3 Configuring Storage Devices
5.4 Configuring Ethernet IP
5.5 Configuring Wi-Fi (Optional)
5.6 Configuring Bluetooth (Optional)
5.7 Configuring 4G (Optional)
5.8 Configuring Buzzer
5.9 Configuring RTC
5.10 Configuring Serial Port
This chapter introduces the configuration method of RS232 and RS485.
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 Configuring RS232
ED-HMI3630-116C includes 0~2 RS232 ports with corresponding COM ports and device files, as shown in the table below:
ED-HMI3632-116C
| Number of RS232 Ports | Corresponding COM Port | Corresponding Device File |
|---|---|---|
| 2 | COM1, COM3 | /dev/com1, /dev/com3 |
ED-HMI3633-116C
| Number of RS232 Ports | Corresponding COM Port | Corresponding Device File |
|---|---|---|
| 1 | COM1 | /dev/com1 |
Preparation:
The RS232 ports of ED-HMI3630-116C has been connected with external device.
Steps:
- Execute the following command to open the serial port com1, and configure the serial port baud rate to 115200.
picocom -b 115200 /dev/com1
- Input commands as needed to control external device.
5.10.3 Configuring RS485
ED-HMI3630-116C includes 2~4 RS485 ports with their corresponding COM ports and device files, as shown in the table below:
ED-HMI3632-116C
| Number of RS485 Ports | Corresponding COM Port | Corresponding Device File |
|---|---|---|
| 2 | COM2, COM4 | /dev/com2, /dev/com4 |
ED-HMI3633-116C
| Number of RS485 Ports | Corresponding COM Port | Corresponding Device File |
|---|---|---|
| 3 | COM2, COM3, COM4 | /dev/com2, /dev/com3, /dev/com4 |
ED-HMI3634-116C
| Number of RS485 Ports | Corresponding COM Port | Corresponding Device File |
|---|---|---|
| 4 | COM1, COM2, COM3, COM4 | /dev/com1, /dev/com2, /dev/com3, /dev/com4 |
Preparation:
The RS485 ports of ED-HMI3630-116C has been connected with external device.
Steps:
- Execute the following command to open the serial port com4, and configure the serial port baud rate to 115200.
picocom -b 115200 /dev/com4
- Input commands as needed to control external device.
5.11 Configuring DI
The ED-HMI3630-116C includes 8 DI ports, which can be configured according to the actual requirement.
Preparation:
The connection of the DI port of the ED-HMI3630-116C to the external sensor has been completed.
Steps:
- Execute the following commands in sequence to detect and install the gpiod tool.
sudo apt update
sudo apt install gpiod
- Execute the following command to read the data from the corresponding DI port.
gpiofind DI0 | awk '{print substr($0,9)}' | xargs -i bash -c "gpioget {}"
DI0indicates the corresponding interface index, with a valid range ofDI0toDI7.
5.12 Configuring DO
The ED-HMI3630-116C includes 8 DO ports, which can be configured according to the actual requirement.
Preparation:
The connection of the DO port of the ED-HMI3630-116C to the external load has been completed.
Steps:
- Execute the following commands in sequence to detect and install the gpiod tool.
sudo apt update
sudo apt install gpiod
- Execute the following commands to set the output to high or low.
- Setting the output to a high level.
gpiofind DO0 | awk '{print substr($0,9)}' | xargs -i bash -c "gpioset {}=1"
DO0 indicates the corresponding interface index, with a valid range of DO0 to DO7; a logic 1 represents a high level on the pin.
- Setting the output to a low level.
gpiofind DO0 | awk '{print substr($0,9)}' | xargs -i bash -c "gpioset {}=0"
DO0 indicates the corresponding interface index, with a valid range of DO0 to DO7; a logic 0 represents a low level on the pin.
5.13 Configuring CAN
5.13.1 Installing can-utils tool
Execute the following commands in sequence to detect and install the can-utils tool.
sudo apt update
sudo apt install can-utils
5.13.2 Setting CAN state
Preparation:
The connection of the CAN port of the ED-HMI3630-116C to external devices has been completed.
Steps:
- Execute the following command to set the baud rate of the CAN port to 1000000.
sudo ip link set canb0 type can bitrate 1000000
canb0 is the port number and the values include canb0 and canb1.
- Execute the following command to open the CAN port.
sudo ip link set canb0 up
canb0 is the port serial number and the values include canb0 and canb1.
- Execute the following command to set up the CAN port for communication.
- Receive data:
candump canb0
- Send data:
cansend canb0 123#1122334455667788
canb0 is the port serial number and the values include canb0 and canb1.
123#1122334455667788 is the message to be sent, which can be customised by the user according to the format.
