Module:CC007 module

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
(How to use F81534-change Mode)
(How to use F81534-change Mode)
Line 105: Line 105:
3.Example
3.Example
-
Examples 1. Change ttyUSB3 to RS232 Mode
+
1. Change ttyUSB3 to RS232 Mode
#./set_mode ttyUSB3 1
#./set_mode ttyUSB3 1
#./set_gpio ttyUSB3 1
#./set_gpio ttyUSB3 1
-
Examples 2. Change ttyUSB3 to RS485 Mode
+
2. Change ttyUSB3 to RS485 Mode
#./set_mode ttyUSB3 2
#./set_mode ttyUSB3 2
#./set_gpio ttyUSB3 2
#./set_gpio ttyUSB3 2
-
Examples 3. Change ttyUSB3 to RS422 Mode
+
3. Change ttyUSB3 to RS422 Mode
#UART Mode is don’t care.
#UART Mode is don’t care.
#./set_gpio ttyUSB3 0
#./set_gpio ttyUSB3 0
<font Size="8"><font color=#FF0000> Notice</font>
<font Size="8"><font color=#FF0000> Notice</font>
 +
<font Size="8"><font color=#FF0000>Set gpio uart mode only test 0-RS422/1-RS232/-RS485 Function</font>
<font Size="8"><font color=#FF0000>Set gpio uart mode only test 0-RS422/1-RS232/-RS485 Function</font>

Revision as of 17:03, 6 February 2023

OSKernrlModuleDriverDownload!

Ubuntu 18.04.2

4.18.0-15-generic

F81534

F81534 v1.24

V1.24 mode

Fedora33

5.9.14-200.fc33.X86_64

F81534

F81534 v1.25

V1.25 mode

Ubuntu 20.04

5.4.0-47-generic

F81534

F81534 v1.24

V1.24 mode

OpenSUSE Tumbleweed 15.2

5.9.14-1-default

F81534

F81534 v1.25

V1.25 mode

Debain 10.6

4.19.0-13-amd64

F81534

F81534 V1.24

V1.24 mode

edit table

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)

  1. cd F81534
  2. make clean ; make ; make install
  3. modprobe usbserial
  4. rmmod f81534 ; insmod f81534.ko

3.check new port added by “dmesg | grep ttyUSB”.

  1. reboot

How to use F81534-change Mode

1.unzip tool zip file

  1. make clean ; make
  2. you'll get set_mode&set_gpio in the same folder

2.Using demo application

Image:F81534_set_mode.JPG

Image:F81534_set_gpio.JPG

3.Example

1. Change ttyUSB3 to RS232 Mode

  1. ./set_mode ttyUSB3 1
  2. ./set_gpio ttyUSB3 1

2. Change ttyUSB3 to RS485 Mode

  1. ./set_mode ttyUSB3 2
  2. ./set_gpio ttyUSB3 2

3. Change ttyUSB3 to RS422 Mode

  1. UART Mode is don’t care.
  2. ./set_gpio ttyUSB3 0

Notice


Set gpio uart mode only test 0-RS422/1-RS232/-RS485 Function

Personal tools