Moxa V2426A-C2-W7E [25/88] Epm 3438 driver installation

Moxa V2426A-C7 [25/88] Epm 3438 driver installation
V2400A Series Expansion Modules Software Installation and Programming Guide
4-5
2. To change the default serial interface mode, edit the setinterface command you have just added to the
Moxa rules file (
/etc/udev/rules.d/96-moxa.rules). This will cause the Linux kernel to
automatically set the V2400A module to your preferred interface at every reboot.
For RS-232, use
RUN+="/bin/setinterface /dev/ttyM%n 0"
For RS-485 2-wire, use
RUN+="/bin/setinterface /dev/ttyM%n 1"
For RS-422, use
RUN+="/bin/setinterface /dev/ttyM%n 2"
For RS-485 4-wire, use
RUN+="/bin/setinterface /dev/ttyM%n 3"
3. When finished, reboot your computer
Moxa:~# reboot
4. Once the computer restarts, confirm that the interfaces have been reset to the default settings.
Moxa:~# setinterface /dev/ttyM0
Now setting is RS485-2WIRES interface.
EPM-3438 Driver Installation
Upload the driver package to /dev/shm, a temporary file system on your computer.
root@Moxa:~# scp v2400a-epm3438_1.0.0_amd64.deb moxa@192.168.3.127:/dev/shm
Install the package:
root@Moxa:~# cd /dev/shm
root@Moxa: /dev/shm# dpkg -i v2400a-epm3438_1.0.0_amd64.deb
Selecting previously unselected package v2400a-epm3438.
(Reading database ... 48016 files and directories currently installed.)
Unpacking v2400a-epm3438 (from v2400a-epm3438_1.0.0_amd64.deb) ...
Setting up v2400a-epm3438 (1.0.0) ...
root@Moxa:/dev/shm#
After the driver is installed, you can use lsmod to check if the epm3438 module is loaded in the kernel.
Moxa:~# lsmod|more
Module Size Used by
epm3438 12748 0
It will be loaded automatically when the system boots up.
To uninstall the driver, use the following command:
root@Moxa:~# dpkg --purge v2400a-epm3438
EPM-3438 Programming Guide
Digital I/O
Digital input/output channels are featured in some models of Moxa embedded computers, including the
UC-7408, UC-8410, IA240, IA260, W406, and EPM-3438. These channels can be accessed at run-time for
control or monitoring using the functions in the following sections. Each of the digital output (DO) channels can
be individually set to high or low for each port, starting from 0. The digital input (DI) channels can be used to
detect the state change of the digital input signal. The header file of digital I/O functions is
mxdgio.h, which
is located in the Linux
digit_input_change directory.

Содержание

Похожие устройства

Скачать