Difference between revisions of "UIO-4031 CAN-FD:U-CAN1/2"
From ESS-WIKI
Xingxing.li (talk | contribs) (Created page with " File:UIO-4031 CAN12.png File:UIO-4031 CAN12 Pin.png") |
Xingxing.li (talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | [[File:UIO-4031 CAN12.png]] | + | [[File:UIO-4031 CAN12.png|RTENOTITLE]] |
| − | [[File:UIO-4031 CAN12 Pin.png]] | + | [[File:UIO-4031 CAN12 Pin.png|RTENOTITLE]] |
| + | |||
| + | === '''Send and Receive Data''' === | ||
| + | |||
| + | '''Mode of connection:''' | ||
| + | |||
| + | U-CAN1_CAN-D-=>U-CAN2_CAN-D- | ||
| + | |||
| + | U-CAN1_CAN-D+=>U-CAN2_CAN-D+ | ||
| + | |||
| + | [[File:UIO-4031 U-CAN1.png]] | ||
| + | |||
| + | === '''Send and Receive Data''' === | ||
| + | <pre># #---- As receiver ----# # | ||
| + | # ip link set can1 down | ||
| + | # ip link set can1 type can bitrate 1000000 dbitrate 2000000 fd on | ||
| + | # ip link set can1 up | ||
| + | # candump can1 & | ||
| + | |||
| + | # #---- Can2 as sender ----# # | ||
| + | # ip link set can2 down | ||
| + | # ip link set can2 type can bitrate 1000000 dbitrate 2000000 fd on | ||
| + | # ip link set can2 up | ||
| + | # cansend can2 123##155 | ||
| + | |||
| + | # #----If no error, the receiver will receive the following data----# # | ||
| + | can1 123 [01] 55 | ||
| + | </pre> | ||
| + | |||
| + | See more details of the usage of “candump” and “cansend” : | ||
| + | <pre># candump --help | ||
| + | # cansend --help</pre> | ||
| + | |||
| + | Note: | ||
| + | |||
| + | 1. Receiver should run before sender. | ||
| + | |||
| + | 2. The “bitrate” and “dbbitrate” should be the same for sender and receiver | ||
Latest revision as of 03:16, 20 December 2024
Send and Receive Data
Mode of connection:
U-CAN1_CAN-D-=>U-CAN2_CAN-D-
U-CAN1_CAN-D+=>U-CAN2_CAN-D+
Send and Receive Data
# #---- As receiver ----# # # ip link set can1 down # ip link set can1 type can bitrate 1000000 dbitrate 2000000 fd on # ip link set can1 up # candump can1 & # #---- Can2 as sender ----# # # ip link set can2 down # ip link set can2 type can bitrate 1000000 dbitrate 2000000 fd on # ip link set can2 up # cansend can2 123##155 # #----If no error, the receiver will receive the following data----# # can1 123 [01] 55
See more details of the usage of “candump” and “cansend” :
# candump --help # cansend --help
Note:
1. Receiver should run before sender.
2. The “bitrate” and “dbbitrate” should be the same for sender and receiver


