<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problem with MCP2515 and library CANbus</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3406e092d8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3406e092d8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/3406e092d8/</id><updated>2025-03-27T14:05:36.409000Z</updated><subtitle>Recent posts to Problem with MCP2515 and library CANbus</subtitle><entry><title>Problem with MCP2515 and library CANbus</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3406e092d8/?limit=25#e9cd" rel="alternate"/><published>2025-03-27T14:05:36.409000Z</published><updated>2025-03-27T14:05:36.409000Z</updated><author><name>czek</name><uri>https://forge.codesys.com/u/buczekj/</uri></author><id>https://forge.codesys.comf4b6ae7e08656fafeceaa952c2a97f98a35a7677</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, &lt;br/&gt;
I encountered this same error. I was able to resolve it by allocating more messages when I open the network driver (ctMessages:= 100). By default it is set to 25.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with MCP2515 and library CANbus</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/3406e092d8/?limit=25#e660" rel="alternate"/><published>2021-11-25T17:19:56.402000Z</published><updated>2021-11-25T17:19:56.402000Z</updated><author><name>chrismel</name><uri>https://forge.codesys.com/u/chrismel/</uri></author><id>https://forge.codesys.com675e4ef06277faededcb4640ebe15d32d36f502d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi guys,&lt;br/&gt;
I'm starting a project with a raspberry pi and MCP2515 CAN-module.&lt;/p&gt;
&lt;p&gt;I've implemented code to open and send message to "can0" and apparently it work.&lt;/p&gt;
&lt;p&gt;However, when I try to send more then 10 messages each 100ms, the module block all trasmission.&lt;/p&gt;
&lt;p&gt;I've noticed CL2.CreateMessage(...., ....) return the error message "30112" I believe it is "queue error".&lt;/p&gt;
&lt;p&gt;After that I tried to change the "txqueuelen" of the device using the command "ifconfig can0 txqueuelen 10000"&lt;br/&gt;
but the issue it's the same.&lt;/p&gt;
&lt;p&gt;I can send little more than 20 messages for a few minutes before I generate the same error.&lt;/p&gt;
&lt;p&gt;How do I transmit hundred messages on the CAN?&lt;br/&gt;
Should I change other settings on the raspberry?&lt;/p&gt;
&lt;p&gt;I append the code I made to send messages.&lt;/p&gt;
&lt;p&gt;Let me know if you have any advice to give me to make it work.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>