請先看『使用說明』
Module:CC007 module
From LEXWiKi
Only Test GPIO R232/RS422/RS485 Function
How to Install F81534 driver
Fintek F81534 driver install
1.Prepare the kernel tree & compiler tools for your distribution.
#sudo su #apt-get update #apt-get install build-essential gcc
2.unzip driver zip file (F81534-532_DriverSourceCode-<version>_Linux.zip)
- cd F81534
- make clean ; make ; make install
- modprobe usbserial
- rmmod f81534 ; insmod f81534.ko
3.check new port added by “dmesg | grep ttyUSB”.
- reboot
How to use F81534-change Mode
1.unzip tool zip file
- make clean ; make
- you'll get set_mode&set_gpio in the same folder
2.Using demo application
3.Example
Examples 1. Change ttyUSB3 to RS232 Mode
- ./set_mode ttyUSB3 1
- ./set_gpio ttyUSB3 1
Examples 2. Change ttyUSB3 to RS485 Mode
- ./set_mode ttyUSB3 2
- ./set_gpio ttyUSB3 2
Examples 3. Change ttyUSB3 to RS422 Mode
- UART Mode is don’t care.
- ./set_gpio ttyUSB3 0
Examples 4. Change ttyUSB3 to RS422 with termination Mode
- UART Mode is don’t care.
- ./set_gpio ttyUSB3 4
Examples 5. Change ttyUSB3 to RS485 with termination Mode
- ./set_mode ttyUSB3 2
- ./set_gpio ttyUSB3 6