<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can driver]]></title><description><![CDATA[<p dir="auto">Hello, I have connected my raspberry with the can bus with a separate can hat. I manage to get the bus visible with the can sniffer. Do I have to do some changes in the driver in rexygen? Somehow I wasn't able to receive any data with the Canrecv block.</p>
]]></description><link>https://forum.rexygen.com/topic/173/can-driver</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 05:16:01 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/173.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 16 Dec 2020 15:50:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can driver on Tue, 29 Dec 2020 14:28:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi Toni,<br />
FilterIdMask can be used for filtering messages from more devices. In your case, there is only one device, so you can set FilterIdMask as 0xfff. For message decomposing, use the <strong>INTSM</strong> blocks (<a href="http://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/INTSM.html">www.rexygen.com/doc/ENGLISH/MANUALS/BRef/INTSM.html</a>). The basic example of using INTSM block can be found in this thread: <a href="https://forum.rexygen.com/topic/174/reading-and-writing-4-byte-floating-point-from-modbus?_=1609251284153">https://forum.rexygen.com/topic/174/reading-and-writing-4-byte-floating-point-from-modbus?_=1609251284153</a><br />
For decomposing a byte value into bits can be used block <strong>BDOCT</strong>(<a href="http://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/BDOCT.html">www.rexygen.com/doc/ENGLISH/MANUALS/BRef/BDOCT.html</a>).</p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/670</link><guid isPermaLink="true">https://forum.rexygen.com/post/670</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Tue, 29 Dec 2020 14:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to Can driver on Mon, 28 Dec 2020 13:32:56 GMT]]></title><description><![CDATA[<p dir="auto">Now i'm able receive data correctly, thanks. Next question is, am I uderstant FilterIdMask wrong. Now I receive data exsample ID288 05 57 13 00 00 5B 00 00, but it reversed in rexygen, like 00 00 5B 00 00 13 57 05.  If I want use bit 1 (or  6 in reversed?) , in exsample HEX 57, can't use FilterIdMask to block other bytes?There is picture how ID/bytes is going in my project, this ID288 byte2 is Coolant temp, but if use FilterID 0x288 and FilterIdMask 0x1 it wont work? Is there some good idea how this should do?</p>
<p dir="auto">Thanks!</p>
<p dir="auto"><img src="/assets/uploads/files/1609162198376-id-chart.png" alt="ID chart.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.rexygen.com/post/665</link><guid isPermaLink="true">https://forum.rexygen.com/post/665</guid><dc:creator><![CDATA[Bentoni]]></dc:creator><pubDate>Mon, 28 Dec 2020 13:32:56 GMT</pubDate></item><item><title><![CDATA[Reply to Can driver on Mon, 21 Dec 2020 17:30:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi, yes, it's almost certainly a licensing issue. Please check your mail. I will send you further instructions.</p>
]]></description><link>https://forum.rexygen.com/post/656</link><guid isPermaLink="true">https://forum.rexygen.com/post/656</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Mon, 21 Dec 2020 17:30:30 GMT</pubDate></item><item><title><![CDATA[Reply to Can driver on Mon, 21 Dec 2020 16:53:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> <img src="/assets/uploads/files/1608569533787-log2.png" alt="log2.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Hi, look like this. Could it be licensing problem?</p>
]]></description><link>https://forum.rexygen.com/post/655</link><guid isPermaLink="true">https://forum.rexygen.com/post/655</guid><dc:creator><![CDATA[Bentoni]]></dc:creator><pubDate>Mon, 21 Dec 2020 16:53:19 GMT</pubDate></item><item><title><![CDATA[Reply to Can driver on Sun, 20 Dec 2020 12:12:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/133">@reitinge</a> I send picture tomorrow. I buy also rexcore professional licence and notice that not include can-licence? Is it possible buy can licence separately?</p>
<p dir="auto">Thanks<br />
Toni</p>
]]></description><link>https://forum.rexygen.com/post/654</link><guid isPermaLink="true">https://forum.rexygen.com/post/654</guid><dc:creator><![CDATA[Bentoni]]></dc:creator><pubDate>Sun, 20 Dec 2020 12:12:06 GMT</pubDate></item><item><title><![CDATA[Reply to Can driver on Fri, 18 Dec 2020 20:13:23 GMT]]></title><description><![CDATA[<p dir="auto">Hi Toni,<br />
your settings in the <a href="http://80-candrvt.sh">80-candrvt.sh</a> file is correct. Please follow these steps:</p>
<ol>
<li>Open <em>RexDraw</em> and connect to your Raspberry Pi (in the menu <em>Target -&gt; Connect</em> or F7 key).</li>
<li>Click on <em>Target</em> menu again and select <em>Configure System Log</em>.</li>
<li>Check the <em>I/O driver messages</em> -&gt; <em>Information</em> box (as marked on attached figure) and hit the OK button.<br />
<img src="/assets/uploads/files/1608321493750-67fc1e1a-a716-45fc-bca7-34c59b0fd859-image.png" alt="67fc1e1a-a716-45fc-bca7-34c59b0fd859-image.png" class=" img-fluid img-markdown" /></li>
<li>Download your project again to your Raspberry Pi (<em>Project</em> -&gt; <em>Compile and Download</em> or F6 key)</li>
<li>Open <em>Target</em> -&gt; <em>Show System Log</em>, make a printscreen of this log and post it here.</li>
</ol>
<p dir="auto">That should show us what's going wrong.</p>
<p dir="auto">Thanks for your cooperation,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/651</link><guid isPermaLink="true">https://forum.rexygen.com/post/651</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Fri, 18 Dec 2020 20:13:23 GMT</pubDate></item><item><title><![CDATA[Reply to Can driver on Thu, 17 Dec 2020 21:29:32 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I'm not so good at english, so I use links to explain. Sorry for that.</p>
<p dir="auto">So I try communicate with car engine control unit. Using this shield -&gt;<br />
<a href="https://www.waveshare.com/wiki/RS485_CAN_HAT">https://www.waveshare.com/wiki/RS485_CAN_HAT</a></p>
<p dir="auto">I made settings to /boot/config.txt what shield user manual wanted, and install can-utils what include that cansniffer. -&gt; <a href="https://github.com/linux-can/can-utils">https://github.com/linux-can/can-utils</a><br />
Using this I'm able to receive data properly.</p>
<p dir="auto">If I open /etc/rexcore/rexcore.env.d/80-candrvt.sh there is no line REX_CAN_DEV=can0<br />
Only -&gt;<br />
#!/bin/sh<br />
#for setting CAN-Network-interface bitrate uncomment next line ant set devicename and bitrate<br />
#ip link set can0 type can bitrate 1000000 restart -ms 1000<br />
#ip link set can0 up<br />
exit 0</p>
<p dir="auto">I try uncomment 1, 3 and 4 line, set bitrate 500000, but no help. Before this, after reboot need use those same ip link commands to get cansniffer work, but now there is no need use those, so think maybe it's right settings?</p>
<p dir="auto">I use a demo license, I guess it doesn't matter?</p>
<p dir="auto">I use example project 0406-01 station 2, only change Can0_recv block filterId -&gt; 0x288. Also try second time use FilterIdMask 0x1 instead 0xFFF<br />
Using cansniffer it looks like -&gt;<br />
288  05 57 13 00 00 5B 00 00<br />
388  83 02 00<br />
480  15 20 00 00 00 00 00 00</p>
<p dir="auto">Thanks,<br />
Toni</p>
]]></description><link>https://forum.rexygen.com/post/647</link><guid isPermaLink="true">https://forum.rexygen.com/post/647</guid><dc:creator><![CDATA[Bentoni]]></dc:creator><pubDate>Thu, 17 Dec 2020 21:29:32 GMT</pubDate></item><item><title><![CDATA[Reply to Can driver on Thu, 17 Dec 2020 11:59:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi, could you provide some more information?</p>
<ol>
<li>What device are you trying to communicate with via the CAN bus?</li>
<li>Can you share your Rexygen project here?</li>
<li>What type of CAN Bus Sniffer do you have?</li>
</ol>
<p dir="auto">For the CAN driver to work properly, you need to edit the file <em>/etc/rexcore/rexcore.env.d/80-candrvt.sh</em> on your Raspberry Pi. Uncomment lines from "REX_CAN_DEV=can0" onwards and fill the proper value to the "REX_CAN_BITRATE=...".</p>
<p dir="auto">Cheers,<br />
Jan</p>
]]></description><link>https://forum.rexygen.com/post/645</link><guid isPermaLink="true">https://forum.rexygen.com/post/645</guid><dc:creator><![CDATA[reitinge]]></dc:creator><pubDate>Thu, 17 Dec 2020 11:59:36 GMT</pubDate></item></channel></rss>