beautypg.com

AAEON PFM-C20N User Manual

Page 40

background image

C AN B u s M o d u l e

P F M - C 2 0 N

Chapter 3 Driver Installation

3 - 15

The default Monitor Port is “can0”. You may use the following

instruction to assign the Monitor Port to be “can1.”

[root@localhost Fedora5]# ./receive can1

And then, use the other Terminal to transmit message.

[root@localhost Fedora5]# ./can_send 567 0x11 0x22 0x33 0x44

0x55 0x66

The following three digits of “can_send” is ID. (You can key in

000-999, decimal. The example is “567.”)

And then, you may key in 0~8 messages (0x00~0xff, hexadecimal.

The example is 0x11…)

The default Transmit Port is “can1.” You also can use the following

instruction to assign the Transmit Port.

[root@localhost Fedora5]# ./can_send –D can0 567 0x11 0x22 0x33

0x44 0x55 0x66

Adding up “-D can0” to command the Transmit Port as “can0” after

“can_send.”

If “can0” has been set to be the Monitor Port and it starts to monitor

data bus, you cannot assign “can0” as the Transmit Port.

If it is a successful transmission, the Terminal which receives data

will have shown the following message on Terminal window.