<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=Transclusion%3A_Debian%3A_iMX7%3A_CAN_Bus</id>
	<title>Transclusion: Debian: iMX7: CAN Bus - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=Transclusion%3A_Debian%3A_iMX7%3A_CAN_Bus"/>
	<link rel="alternate" type="text/html" href="https://www.mediawiki.compulab.com/w/index.php?title=Transclusion:_Debian:_iMX7:_CAN_Bus&amp;action=history"/>
	<updated>2026-04-17T18:41:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://www.mediawiki.compulab.com/w/index.php?title=Transclusion:_Debian:_iMX7:_CAN_Bus&amp;diff=4362&amp;oldid=prev</id>
		<title>imported&gt;Uri.mashiach at 15:17, 10 December 2018</title>
		<link rel="alternate" type="text/html" href="https://www.mediawiki.compulab.com/w/index.php?title=Transclusion:_Debian:_iMX7:_CAN_Bus&amp;diff=4362&amp;oldid=prev"/>
		<updated>2018-12-10T15:17:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:17, 10 December 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Software &lt;/del&gt;to install {{filename|can-utils}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;===== Software installation =====&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Use the following command &lt;/ins&gt;to install {{filename|can-utils}}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;root@cl-rootfs:~# apt-get install --no-install-recommends can-utils&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;root@cl-rootfs:~# apt-get install --no-install-recommends can-utils&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Uri.mashiach</name></author>
		
	</entry>
	<entry>
		<id>https://www.mediawiki.compulab.com/w/index.php?title=Transclusion:_Debian:_iMX7:_CAN_Bus&amp;diff=3371&amp;oldid=prev</id>
		<title>Ilya at 11:43, 14 June 2017</title>
		<link rel="alternate" type="text/html" href="https://www.mediawiki.compulab.com/w/index.php?title=Transclusion:_Debian:_iMX7:_CAN_Bus&amp;diff=3371&amp;oldid=prev"/>
		<updated>2017-06-14T11:43:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Software to install {{filename|can-utils}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# apt-get install --no-install-recommends can-utils&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Loading CAN modules =====&lt;br /&gt;
If the FLEXCAN driver and/or Raw CAN protocol compiled as module(s), they must be loaded prior to enabling CAN interface.&lt;br /&gt;
&lt;br /&gt;
* The FLEXCAN driver gets loaded automatically. Make sure it is loaded: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# lsmod | grep can&lt;br /&gt;
flexcan                102  0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:The FLEXCAN driver can be loaded manually:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# modprobe flexcan&lt;br /&gt;
30a00000.can supply xceiver not found, using dummy regulator&lt;br /&gt;
flexcan 30a00000.can: device registered (reg_base=f5a00000, irq=277)&lt;br /&gt;
30a10000.can supply xceiver not found, using dummy regulator&lt;br /&gt;
flexcan 30a10000.can: device registered (reg_base=f5a10000, irq=278)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Load Raw CAN protocol module:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# modprobe can-raw&lt;br /&gt;
can: raw protocol (rev 20120528)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== CAN interface configuration =====&lt;br /&gt;
It is recommended configure the CAN interface, with the {{filename|iproute2}} utilities.&lt;br /&gt;
&lt;br /&gt;
* To make sure the right {{filename|ip}} utility is used, run:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# ip -V&lt;br /&gt;
ip utility, iproute2-ss151103&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Configure the CAN interface bit-rate to 125 Kbits/sec (values of up to 1Mbit/sec are supported):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# ip link set can0 type can bitrate 125000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Enable the CAN interface:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# ip link set can0 up&lt;br /&gt;
flexcan 30a00000.can can0: writing ctrl=0x0b312005&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Send/Receive packets =====&lt;br /&gt;
Use {{filename|cansend}} and {{filename|candump}} utilities to send and receive packets via CAN interface.&lt;br /&gt;
&lt;br /&gt;
* Send standard CAN frame (on the first device):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# cansend can0 111#1122334455667788&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Send extended CAN frame (on the first device):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# cansend can0 11111111#1122334455667788&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Dump all received data frames as well as error frames (on the second device):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@cl-rootfs:~# candump any,0:0,#FFFFFFFF&lt;br /&gt;
  can0  111  [8] 11 22 33 44 55 66 77 88&lt;br /&gt;
  can0  11111111  [8] 11 22 33 44 55 66 77 88&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ilya</name></author>
		
	</entry>
</feed>