8
2005-2017 © Innodisk Corporation. All Rights Reserved
2.3. Switch Mode by Software (for EMP2-X404/X801,
EPG2-X401)
This section is applicable to following products.
Product No.
RS232 RS485HD RS485FD Switch Method
EMP2-X404
O
O
O
Software
EMP2-X801
O
O
O
Software
EGP2-X401
O
O
O
Software
After installing driver and control tools, you can simply execute below
command to initial EMP2 device.
Notice, all EMP2 control tools need to be executed as root.
COMMAND: emp2init
The emp2init will help you check if the driver has been loaded on the
system and setup all ports following the configuration file (/etc/emp2.cfg).
If the configuration file did not exist, it will create a default one for you, all
ports will be configured as RS232 mode by default.
Notice that, the emp2init must be executed after system boot up every
time to make sure the driver loaded well and all ports be configured as you
want.
COMMAND: emp2cfg <port> <mode>
The <port> specify which port you want to configure, start from 1. And the
<mode> specify the target mode, "lo" for LOOPBACK, "232" for RS-232,
"485hd" for RS485 Half-Duplex, and "485fd" for RS-485 Full-Duplex.