Difference between revisions of "EPC-R5710 CANBus or CAN-FD"
From ESS-WIKI
Xingxing.li (talk | contribs) (Created page with " === '''CANBus or CAN-FD''' === Two epc-r5710s are required. One of them acts as the receiver and executes the command of (step1), while the other acts as the sender an...") |
Xingxing.li (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | |||
=== '''CANBus or CAN-FD''' === | === '''CANBus or CAN-FD''' === | ||
Line 4: | Line 5: | ||
Two epc-r5710s are required. One of them acts as the receiver and executes the command of (step1), while the other acts as the sender and executes the command of (Step2).<br/> The (can) ports of two machines need to be linked together<br/> The receiver needs to complete the line preparation | Two epc-r5710s are required. One of them acts as the receiver and executes the command of (step1), while the other acts as the sender and executes the command of (Step2).<br/> The (can) ports of two machines need to be linked together<br/> The receiver needs to complete the line preparation | ||
− | <span lang="EN-US" style="font-size:9.0pt"><span style="font-family:" | + | <span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">EPC-R5710 A</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">:</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">Pin2</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">——</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">>EPC-R5710 B</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">:</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">Pin2</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">,</span></span> |
+ | |||
+ | <span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">EPC-R5710 A:</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">Pin7</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">——>EPC-R5710 B:</span></span><span lang="EN-US" style="font-size:9.0pt"><span style="font-family:">Pin7</span></span> | ||
+ | |||
+ | [[File:EPC-R5710 CANFD.png|600x600px|EPC-R5710 CANFD.png]] | ||
+ | |||
+ | '''Step1: set reciver config''' | ||
+ | <pre># ip link set can0 down | ||
+ | # ip link set can0 up type can bitrate 1000000 | ||
+ | [ 1381.546624] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready | ||
+ | # ip link set can0 up | ||
+ | # candump can0 | ||
+ | </pre> | ||
− | + | '''Step 2: Set sender config''' | |
+ | <pre># ip link set can0 down | ||
+ | # ip link set can0 up type can bitrate 1000000 | ||
+ | [ 1381.546624] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready | ||
+ | # ip link set can0 up | ||
+ | # cansend can0 888#11223344 | ||
+ | </pre> | ||
− | + | The receiver can display the content sent by the sender | |
− | + | [[File:EPC-R5710 CANFD 1.png]] |
Revision as of 01:54, 8 September 2023
CANBus or CAN-FD
Two epc-r5710s are required. One of them acts as the receiver and executes the command of (step1), while the other acts as the sender and executes the command of (Step2).
The (can) ports of two machines need to be linked together
The receiver needs to complete the line preparation
EPC-R5710 A:Pin2——>EPC-R5710 B:Pin2,
EPC-R5710 A:Pin7——>EPC-R5710 B:Pin7
Step1: set reciver config
# ip link set can0 down # ip link set can0 up type can bitrate 1000000 [ 1381.546624] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready # ip link set can0 up # candump can0
Step 2: Set sender config
# ip link set can0 down # ip link set can0 up type can bitrate 1000000 [ 1381.546624] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready # ip link set can0 up # cansend can0 888#11223344
The receiver can display the content sent by the sender