請先看『使用說明』
Module:CC007 module
From LEXWiKi
OS | Kernrl | Module | Driver | Download! | |
---|---|---|---|---|---|
Ubuntu 18.04.2 |
4.18.0-15-generic |
F81534 |
F81534 v1.24 | ||
Fedora33 |
5.9.14-200.fc33.X86_64 |
F81534 |
F81534 v1.25 | ||
Ubuntu 20.04 |
5.4.0-47-generic |
F81534 |
F81534 v1.24 | ||
OpenSUSE Tumbleweed 15.2 |
5.9.14-1-default |
F81534 |
F81534 v1.25 | ||
Debain 10.6 |
4.19.0-13-amd64 |
F81534 |
F81534 V1.24 |
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
Instructions (control via ap) We also provide demo application to control mode changing. All following operation should work with root privilege. • set_mode.c ◦ Control F81532/534 internal RTS operation mode. ◦ Using Linux RS485 ioctl TIOCGRS485/TIOCSRS485 to get/set mode. • set_gpio.c ◦ Control F81532/534 M0/M1/M2 output only pin to control target transceiver per port. ◦ Auto-detect sysfs or gpiolib to control F81532/534 Build demo application • change to demo application folder. • make clean ; make • you'll get set_mode & set_gpio in the same folder.
GPIO Mode table: • 0: 000 – RS422 (EVB) • 1: 001 – RS232 (EVB) • 2: 010 – RS485 (TX Enable with RTS Low) (EVB) • 3: 011 – RS485_1 (TX Enable with RTS High) (EVB) • 4: 100 – RS422_Term (EVB) • 5: 101 – RS232_coexist (EVB) • 6: 110 – RS485_Term (EVB) • 7: 111 – Shutdown (EVB) UART Mode table: • 1: eModeRS232 • 2: eModeRS485 (TX Enable with RTS Low) • 3: eModeRS485 (TX Enable with RTS High)