<?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[QCanBusDevice: Error &quot;Network is down&quot;]]></title><description><![CDATA[<p dir="auto">Hi all!</p>
<p dir="auto">At the moment I am trying to use QCanBusDevice and QCanFrame for CAN communication.<br />
I am able to set up the connection and to configure the device.<br />
But if I try to send a message via</p>
<pre><code>QCanBusDevice::writeFrame(const QCanBusFrame &amp;frame) 
</code></pre>
<p dir="auto">I get the error</p>
<pre><code>QCanBusDevice::WriteError (2)
</code></pre>
<p dir="auto">which means</p>
<pre><code>"Network is down".
</code></pre>
<p dir="auto">Has anyone an idea what causes this error and how to solve it?</p>
<p dir="auto">Regards,<br />
MHermann</p>
]]></description><link>https://forum.qt.io/topic/84108/qcanbusdevice-error-network-is-down</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 02:52:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/84108.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Oct 2017 12:15:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QCanBusDevice: Error &quot;Network is down&quot; on Thu, 12 Oct 2017 13:07:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aha_1980">@<bdi>aha_1980</bdi></a> :</p>
<p dir="auto">Thanks for your help.<br />
I found the error. Now the CAN communication is working.</p>
<p dir="auto">The code for setting up the CAN network was correct, but the script was not executed at startup. :|<br />
I think I would not have checked the script again without your hint.</p>
<p dir="auto">Btw. I am using Qt5.9.</p>
]]></description><link>https://forum.qt.io/post/420368</link><guid isPermaLink="true">https://forum.qt.io/post/420368</guid><dc:creator><![CDATA[MHermann]]></dc:creator><pubDate>Thu, 12 Oct 2017 13:07:23 GMT</pubDate></item><item><title><![CDATA[Reply to QCanBusDevice: Error &quot;Network is down&quot; on Thu, 12 Oct 2017 12:51:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mhermann">@<bdi>MHermann</bdi></a> said in <a href="/post/420364">QCanBusDevice: Error "Network is down"</a>:</p>
<blockquote>
<p dir="auto">Or does a successful connect not indicate, that the CAN network setup is correct?</p>
</blockquote>
<p dir="auto">I can not tell you exactly at the moment, maybe it succeeds if the can device is present but not up.</p>
<p dir="auto">You could try sending a test frame with cansend to see if you SocketCAN setup is correct.</p>
<p dir="auto">Also please tell me: which Qt version are you using?</p>
]]></description><link>https://forum.qt.io/post/420365</link><guid isPermaLink="true">https://forum.qt.io/post/420365</guid><dc:creator><![CDATA[aha_1980]]></dc:creator><pubDate>Thu, 12 Oct 2017 12:51:57 GMT</pubDate></item><item><title><![CDATA[Reply to QCanBusDevice: Error &quot;Network is down&quot; on Thu, 12 Oct 2017 12:45:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/aha_1980">@<bdi>aha_1980</bdi></a> :<br />
Yes. I am using SocketCAN. Setting up the CAN network is done at system startup by a little script.<br />
Otherwise</p>
<pre><code>QCanBusDevice::connectDevice()
</code></pre>
<p dir="auto">would fail.<br />
Or does a successful connect not indicate, that the CAN network setup is correct?</p>
]]></description><link>https://forum.qt.io/post/420364</link><guid isPermaLink="true">https://forum.qt.io/post/420364</guid><dc:creator><![CDATA[MHermann]]></dc:creator><pubDate>Thu, 12 Oct 2017 12:45:39 GMT</pubDate></item><item><title><![CDATA[Reply to QCanBusDevice: Error &quot;Network is down&quot; on Thu, 12 Oct 2017 12:40:50 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/mhermann">@<bdi>MHermann</bdi></a>, and welcome to the forum!</p>
<p dir="auto">Which CAN plugin do you use? If you, for example, use SocketCAN, you will have to set up the CAN network before: <a href="http://doc.qt.io/qt-5/qtserialbus-socketcan-overview.html#socketcan-usage" target="_blank" rel="noopener noreferrer nofollow ugc">http://doc.qt.io/qt-5/qtserialbus-socketcan-overview.html#socketcan-usage</a></p>
]]></description><link>https://forum.qt.io/post/420363</link><guid isPermaLink="true">https://forum.qt.io/post/420363</guid><dc:creator><![CDATA[aha_1980]]></dc:creator><pubDate>Thu, 12 Oct 2017 12:40:50 GMT</pubDate></item></channel></rss>