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-IPC2600 series includes 0~2 RS232 ports with their corresponding COM ports and device files, as shown in the table below:
ED-IPC2612, ED-IPC2622, ED-IPC2632
Number of RS232 Ports | Corresponding COM Port | Corresponding Device File |
---|---|---|
2 | COM1, COM3 | /dev/com1, /dev/com3 |
ED-IPC2613, ED-IPC2623, ED-IPC2633
Number of RS232 Ports | Corresponding COM Port | Corresponding Device File |
---|---|---|
1 | COM1 | /dev/com1 |
Preparation:
The RS232 ports of ED-IPC2600 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-IPC2600 series includes 2~4 RS485 ports with their corresponding COM ports and device files, as shown in the table below:
ED-IPC2612, ED-IPC2622, ED-IPC2632
Number of RS485 Ports | Corresponding COM Port | Corresponding Device File |
---|---|---|
2 | COM2, COM4 | /dev/com2, /dev/com4 |
ED-IPC2613, ED-IPC2623, ED-IPC2633
Number of RS485 Ports | Corresponding COM Port | Corresponding Device File |
---|---|---|
3 | COM2, COM3, COM4 | /dev/com2, /dev/com3, /dev/com4 |
ED-IPC2614, ED-IPC2624, ED-IPC2634
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-IPC2600 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-IPC2600 includes 4 or 8 DI ports, which can be configured according to the actual requirement.
Preparation:
The connection of the DI port of the ED-IPC2600 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
- DI0 indicates the corresponding port number.
5.12 Configuring DO
The ED-IPC2600 includes 4 or 8 DO ports, which can be configured according to the actual requirement.
Preparation:
The connection of the DO port of the ED-IPC2600 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 port number.
- 1 indicates that the pin is high level.
- Setting the output to a low level.
gpiofind DO0 | awk '{print substr($0,9)}' | xargs -i bash -c "gpioset {}=0
- DO0 indicates the corresponding port number.
- 0 indicates that the pin is low level.
5.13 Configuring CAN
This chapter introduces the configuration method of 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-IPC2600 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 can0 type can bitrate 1000000
where can0 is the port number and the values include can0 and can1.
- Execute the following command to open the CAN port.
sudo ip link set can0 up
where can0 is the port serial number and the values include can0 and can1.
- Execute the following command to set up the CAN port for communication.
- Receive data:
candump can0
- Send data:
cansend can0 123#1122334455667788
where can0 is the port serial number and the values include can0 and can1.
123#1122334455667788
is the message to be sent, which can be customised by the user according to the format.