Moxa UPort 1250I [48/50] Module driver configuration

Moxa UPort 1250 [48/50] Module driver configuration
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

Содержание

Скачать