Module:M954B/M954C module under Linux

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
(2.Second confirm and edit transmittal mode)
(1.First jump mode)
Line 124: Line 124:
== How to use M954B/M954C driver ==
== How to use M954B/M954C driver ==
-
=== 1.First jump mode ===
+
=== 1.Jump mode ===
you need to know which mode do you want and check device jump to the correct mode
you need to know which mode do you want and check device jump to the correct mode

Revision as of 16:12, 6 February 2023

OSKernrlModulebaudrateTEST ModeDriverDownload

Ubuntu 18.04.3

4.18.0-25-generic

M954C

9600/38400/115200

RS485

AX99100 v1.6

AX99100 v1.6

Ubuntu20.04.3 Lts

5.13.0-28-generic

M954C

9600/38400/115200

RS485

AX99100 v1.8

AX99100 v1.8

Debian 8.11.1 amd64

3.16.0.6-amd64

M954B

9600/38400/115200

RS485

AX99100 v1.6

AX99100 v1.6

Debian 9.4

4.9.0.14-amd64

M954B

9600/38400/115200

RS485

AX99100 v1.6

AX99100 v1.6

OpenSUSE Tumbleweed 15.2

5.10.9-1-default

M954B

9600/38400/115200

RS485

AX99100 v1.6

AX99100 v1.6

Debian 9.13

4.9.0-16-amd64

M954B

9600/38400/115200

RS485

AX99100 v1.6

AX99100 v1.6

Debain 10.10

4.19.0-17-amd64

M954B

9600/38400/115200

RS485

AX99100 v1.6

AX99100 v1.6

edit table

Contents

How to use M954B/M954C driver

1.Jump mode

you need to know which mode do you want and check device jump to the correct mode

Image:M954C_JUMP.JPG

2.Confirm and edit transmittal mode

Image:AX99100 Mode.JPG

After your confirm your transmittal mode

Edit ax99100_sp.c code to your requirement(default is RS232)

Image:Ax99100 sp default.JPG

For example if you want to test RS485 half duplex so you need to change the code uart mode

//Port1/Port2/Port3/Port4
.uart_mode= AX99100_RS485_HALF_DUPLEX,

You have 4 ports ,so you need to change code port1-port4 uart mode

3.Build driver to kernel

After edit ax99100_sp.c you can start to build AX99100 driver

#sudo make

Image:AX99100 make.JPG


Ends of your compiler , build driver to the kernel

#sudo insmod ax99100.ko
#sudo rmmod ax99100

Image:AX99100 insmod.JPG

#sudo make install

Image:AX99100 makeinstall.JPG

At last make sure can test device

#ls /dev/ttyF*

Image:AX99100 ttyF.JPG

4.TEST

Software:cutecom

send the word from port1(ttyF0) to port2(ttyF1)

Image:Cutecom ttyF0.JPG

Personal tools