Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:general_information:tutorial:can [2015/07/15 13:41] – liedmann | en:general_information:tutorial:can [2025/01/28 11:17] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== CAN ===== | ===== CAN ===== | ||
| + | |||
| + | < | ||
| + | <panel title=" | ||
| + | |||
| + | ==== CAN configuration STKa8Xx ==== | ||
| + | |||
| + | DIP switch SW1 and SW2 are used to configure the CAN interfaces CAN1 and CAN2. | ||
| + | \\ | ||
| + | {{: | ||
| + | \\ | ||
| + | ==== List available CAN Interfaces ==== | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | |||
| + | output: | ||
| + | 1: lo: < | ||
| + | link/ | ||
| + | 2: can0: < | ||
| + | link/can | ||
| + | 3: can1: < | ||
| + | link/can | ||
| + | </ | ||
| + | \\ | ||
| + | ==== Activate CAN Interface ==== | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | \\ | ||
| + | ==== Change Default CAN Bitrate ==== | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | \\ | ||
| + | ==== Loopback Test CAN Interface ==== | ||
| + | * Connect wires to the provided PHOENIX connectors from the Starterkit as shown below.\\ | ||
| + | {{: | ||
| + | \\ | ||
| + | * Following command examples shows how to test the CAN interface | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | </ | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | |||
| + | output: | ||
| + | root@tqma8xqp-mba8xx: | ||
| + | </ | ||
| + | < | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | root@MBaXXX: | ||
| + | |||
| + | output: | ||
| + | root@tqma8xqp-mba8xx: | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | <WRAP hide> | ||
| ==== setting CAN bautrate ==== | ==== setting CAN bautrate ==== | ||
| < | < | ||
| Line 27: | Line 102: | ||
| < | < | ||
| root@MBaXXX: | root@MBaXXX: | ||
| - | root@MBaXXX: | + | root@MBaXXX: |
| </ | </ | ||
| ++++ | ++++ | ||
| + | </ | ||