CANbus Module
Revision as of 12:43, 25 May 2022 by Voipac (talk | contribs) (Created page with "Category:iMX8M Industrial Development Kit Category:iMX8M Industrial Peripherals <!-- --> <div style="float:right">__TOC__</div> On this page PCIe card functionality i...")
On this page PCIe card functionality is shown. Both Bluetooth and WiFi operations are tested using dual band Intel AC 3160 wireless card. Mini PCI Express slot must provide PCIe and USB signals to support all the features.
Input: None
Output: Device driver is available
root@imx6-tinyrexpro:~# ip addr show dev can0 2: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10 link/can
Input: Connect a pair of iMX6 TinyRex Development boards and a couple of dedicated CAN evaluation modules
Output: Boards communicate between each other. Sent messages are received successfully
Board 1 (receiver) commands and outputs:
root@imx6-tinyrexpro:~# ip link set can0 type can bitrate 1000000 root@imx6-tinyrexpro:~# ip link set can0 up flexcan 2090000.flexcan can0: writing ctrl=0x01232054 root@imx6-tinyrexpro:~# candump can0 & [1] 833 root@imx6-tinyrexpro:~# can0 123 [4] DE AD BE EF
Board 2 (transmitter and receiver) commands and outputs:
root@imx6-tinyrexpro:~# ip link set can0 type can bitrate 1000000 root@imx6-tinyrexpro:~# ip link set can0 up flexcan 2090000.flexcan can0: writing ctrl=0x01232054 root@imx6-tinyrexpro:~# candump can0 & [1] 847 root@imx6-tinyrexpro:~# cansend can0 123#DEADBEEF root@imx6-tinyrexpro:~# can0 123 [4] DE AD BE EF