UPort 1200/1400/1600 Series
Driver Installation
2-36
Module Driver Configuration
We cover the following topics in this section:
•
Building the Moxa Driver
•
Installing the Moxa Driver
Building the Moxa Driver
Before using the Moxa driver, you will need to compile all of the source code. This only needs to be done once,
unless you modify the source code. If the source code is modified, then you will need to re-compile it.
To compile the source code, change to the
/moxa/mxuport
directory, and then run the
ls
(list) command to
check if the
Makefile
file is in the directory. Next, run the “make” command as follows:
# make
Installing the Moxa Driver
To install the Moxa driver, change to the
/moxa/mxuport
directory, and then run the
ls
(list) command to
check if the
Makefile
file is in the directory. Next, run the “make install” command as follows:
# make install
The driver files “mxuport.ko” and “mxusbserial.ko” will be compiled and copied to system directories.
Loading the Moxa Driver
To load the Moxa driver, change to the
/moxa/mxuport
directory, and then run the
ls
(list) command to
check if the
Makefile
file is in the directory. Next, run the “modprobe mxuport” command as follows:
# modprobe mxuport
After loading the Moxa driver, run the following command to check the Moxa serial port
# ls /dev/ttyMXUSB*
NOTE
The serial COM port will be ttyMXUSB[nnn], nnn = 0~255.
For example, ttyMXUSB0,ttyMXUSB1 ...
Unloading the Moxa driver
To unload the Moxa driver, change to the
/moxa/mxuport
directory, and then run the
ls
(list) command to
check if the
Makefile
file is in the directory. Next, run the two “rmmod” commands as follows:
# rmmod mxuport
# rmmod mxusbserial
Uninstalling the Moxa driver
To uninstall the Moxa driver, change to the
/moxa/mxuport
directory, and then run the
ls
(list) command to
check if the
Makefile
file is in the directory. Next, run the two “make remove” command as follows:
# make remove
Содержание UPort 1250
Страница 10: ...UPort 1200 1400 1600 Series Introduction 1 7 UPort 1610 16 1650 16 Dimensions UPort 1250 UPort 1250I...
Страница 11: ...UPort 1200 1400 1600 Series Introduction 1 8 UPort 1410 1450 1450I UPort 1610 8 1650 8...
Страница 12: ...UPort 1200 1400 1600 Series Introduction 1 9 UPort 1610 16 1650 16...
Страница 38: ...UPort 1200 1400 1600 Series Driver Installation 2 26...