0% found this document useful (0 votes)
8 views

Can Config

Uploaded by

Mahesh Mallah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Can Config

Uploaded by

Mahesh Mallah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

CAN Configuration Commands

There are two kinds of CAN configuration commands. The 1 kind of internal
sending and receiving data is to send and receive data by fixed 20 bytes, and
the 1 kind is to send and receive data by variable length. One method can be
selected according to needs.
1.1 CAN parameter setting command (20-byte transceiver)
Serial Definition
Number
0 Header 0xaa
1 Header 0x55
2 Type 0x 02- Set (use fixed 20- byte protocol to send and
receive data)
3 CAN Baud Rate 0x 01(1Mbps) 0x02 (800kbps )0x03 (500kbps ),0x04
(400kbps ),0x05 (250kbps ),0x06 (200kbps ),0x07
(125kbps ),0x08 (100kbps ),0x09 (50kbps )
0x0a (20kbps) 0x0b (10kbps) 0x0c (5kbps)

4 Frame Type 0x 01- Standard Frame, Extended Frame 0x 02


5 Filter ID1 1~8- bit, high byte before, low byte after
6 Filter ID2 9~16- bit, high byte before, low byte after
7 Filter ID3 17~24- bit, high byte before, low byte after
8 Filter ID4 25~32- bit, high byte before, low byte after
9 Mask ID1 1~8- bit, high byte before, low byte after
10 Mask ID2 9~16- bit, high byte before, low byte after
11 Mask ID3 17~24- bit, high byte before, low byte after
12 Mask ID4 25~32- bit, high byte before, low byte after
13 CAN mode 0x 00- normal mode ,0x 01- silent mode, 0x 02- loopback
mode, 0x 03- loopback
Silent Mode
14 automatic 0x 00 -- automatic retransmission 0x 01 -- disable
resend automatic retransmission
15 Spare 0x00
16 Spare 0x00
17 Spare 0x00
18 Spare 0x00
19 check code From the frame type to the error code, the sum of the
lower 8 bits (red part)
1.2 CAN parameter setting command (variable length transceiver)
Serial Definition
Number
0 Header 0xaa
1 Header 0x55
2 Type 0x12- Set (use variable protocol to send and receive
data)
3 CAN Baud Rate 0x 01(1Mbps) 0x02 (800kbps )0x03 (500kbps ),0x04
(400kbps ),0x05 (250kbps ),0x06 (200kbps ),0x07
(125kbps ),0x08 (100kbps ),0x09 (50kbps )
0x0a (20kbps) 0x0b (10kbps) 0x0c (5kbps)

4 Frame Type 0x 01- Standard Frame, Extended Frame 0x 02


5 Filter ID1 1~8- bit, high byte before, low byte after
6 Filter ID2 9~16- bit, high byte before, low byte after
7 Filter ID3 17~24- bit, high byte before, low byte after
8 Filter ID4 25~32- bit, high byte before, low byte after
9 Mask ID1 1~8- bit, high byte before, low byte after
10 Mask ID2 9~16- bit, high byte before, low byte after
11 Mask ID3 17~24- bit, high byte before, low byte after
12 Mask ID4 25~32- bit, high byte before, low byte after
13 CAN mode 0x 00- normal mode ,0x 01- silent mode, 0x 02- loopback
mode, 0x 03- loopback
Silent Mode
14 automatic 0x 00 -- automatic retransmission 0x 01 -- disable
resend automatic retransmission
15 Spare 0x00
16 Spare 0x00
17 Spare 0x00
18 Spare 0x00
19 check code From the frame type to the error code, the sum of the
lower 8 bits (red part)

You might also like