<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to PIGEON RB300 Raspberry CM CAN bus failure</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e94a7171b9/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e94a7171b9/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/e94a7171b9/</id><updated>2020-02-27T16:26:04.738000Z</updated><subtitle>Recent posts to PIGEON RB300 Raspberry CM CAN bus failure</subtitle><entry><title>PIGEON RB300 Raspberry CM CAN bus failure</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e94a7171b9/?limit=25#2ecf" rel="alternate"/><published>2020-02-27T16:26:04.738000Z</published><updated>2020-02-27T16:26:04.738000Z</updated><author><name>jbunel</name><uri>https://forge.codesys.com/u/jbunel/</uri></author><id>https://forge.codesys.comae68d04b5f3a9a8ba6a1373ec9e83304ad5976ea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there a tutorial step by step to use canopen in codesys with raspberry compute ?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PIGEON RB300 Raspberry CM CAN bus failure</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e94a7171b9/?limit=25#7deb" rel="alternate"/><published>2020-02-27T16:26:03.648000Z</published><updated>2020-02-27T16:26:03.648000Z</updated><author><name>jbunel</name><uri>https://forge.codesys.com/u/jbunel/</uri></author><id>https://forge.codesys.comf6908ff6407bd30ae00b54c266dcd57d48a07431</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi. I try to do the same as GiorgioT ; and i have the same problem !&lt;/p&gt;
&lt;p&gt;So :&lt;br/&gt;
Hardware : &lt;br/&gt;
Pigeon RB350 (the CanOpen master) + Step by step IGUS D1 card (the CanOpen slave)&lt;/p&gt;
&lt;p&gt;Software : &lt;br/&gt;
Codesys V3.5 SP14 64 bits&lt;/p&gt;
&lt;p&gt;Conf :&lt;br/&gt;
 "/etc/CODESYScontrol_User.cfg" and "/opt/codesys/scripts/rts_set_baud.sh" are exactly the same as KRISTECH description&lt;/p&gt;
&lt;p&gt;The can0 interface is working properly since i can send/receive frames on the bus through the cansend/candump commands. Like GiorgioT.&lt;/p&gt;
&lt;p&gt;Please do someone know, what is missing ?&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Codesys Can Failure.png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=4467"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PIGEON RB300 Raspberry CM CAN bus failure</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e94a7171b9/?limit=25#8a4a" rel="alternate"/><published>2020-02-27T16:26:01.027000Z</published><updated>2020-02-27T16:26:01.027000Z</updated><author><name>ainvertek</name><uri>https://forge.codesys.com/u/ainvertek/</uri></author><id>https://forge.codesys.com4750ac68404c05f6d5c882bcac0c1888743f3dbd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Worked for me as well Kristech for the Pcan USB adapter&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PIGEON RB300 Raspberry CM CAN bus failure</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e94a7171b9/?limit=25#3db9" rel="alternate"/><published>2020-02-27T16:26:00.112000Z</published><updated>2020-02-27T16:26:00.112000Z</updated><author><name>GiorgioT</name><uri>https://forge.codesys.com/u/giorgiot/</uri></author><id>https://forge.codesys.comebc3e4d75c35a457597134d4eba8290655d04202</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you very much Kristech,&lt;/p&gt;
&lt;p&gt;It's working like a charm now.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PIGEON RB300 Raspberry CM CAN bus failure</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e94a7171b9/?limit=25#35d1" rel="alternate"/><published>2020-02-27T16:25:57.575000Z</published><updated>2020-02-27T16:25:57.575000Z</updated><author><name>kristech</name><uri>https://forge.codesys.com/u/kristech/</uri></author><id>https://forge.codesys.comafe838b4297e21948c9098d46e1a4103af25f591</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Modify the CODESYS configuration file /etc/CODESYScontrol_User.cfg:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="k"&gt;[SysCom]&lt;/span&gt;
&lt;span class="c1"&gt;;Linux.Devicefile=/dev/ttyS&lt;/span&gt;
&lt;span class="k"&gt;[CmpBlkDrvCom]&lt;/span&gt;
&lt;span class="c1"&gt;;Com.0.Name=MyCom&lt;/span&gt;
&lt;span class="c1"&gt;;Com.0.Baudrate=115200&lt;/span&gt;
&lt;span class="c1"&gt;;Com.0.Port=3&lt;/span&gt;
&lt;span class="c1"&gt;;Com.0.EnableAutoAddressing=1&lt;/span&gt;
&lt;span class="k"&gt;[CmpSocketCanDrv]&lt;/span&gt;
&lt;span class="na"&gt;ScriptPath&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;/opt/codesys/scripts/&lt;/span&gt;
&lt;span class="na"&gt;ScriptName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;rts_set_baud.sh&lt;/span&gt;
&lt;span class="k"&gt;[SysProcess]&lt;/span&gt;
&lt;span class="na"&gt;Command.0&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;shutdown&lt;/span&gt;
&lt;span class="k"&gt;[CmpApp]&lt;/span&gt;
&lt;span class="na"&gt;Bootproject.RetainMismatch.Init&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;Application.1&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;PIGEON_CANmaster&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;add the bash script /opt/codesys/scripts/rts_set_baud.sh&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;\&lt;/span&gt;&lt;span class="o"&gt;#!/&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;sh&lt;/span&gt;
&lt;span class="n"&gt;BITRATE&lt;/span&gt;&lt;span class="o"&gt;=`&lt;/span&gt;&lt;span class="n"&gt;expr&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="err"&gt;\\&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="o"&gt;`&lt;/span&gt;
&lt;span class="n"&gt;ifconfig&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="n"&gt;down&lt;/span&gt;
&lt;span class="n"&gt;echo&lt;/span&gt; &lt;span class="n"&gt;ip&lt;/span&gt; &lt;span class="n"&gt;link&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="n"&gt;can&lt;/span&gt; &lt;span class="n"&gt;bitrate&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="n"&gt;BITRATE&lt;/span&gt;
&lt;span class="n"&gt;ip&lt;/span&gt; &lt;span class="n"&gt;link&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="n"&gt;can&lt;/span&gt; &lt;span class="n"&gt;bitrate&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="n"&gt;BITRATE&lt;/span&gt;
&lt;span class="n"&gt;ifconfig&lt;/span&gt; &lt;span class="err"&gt;$&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;then modify the permissions:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="n"&gt;chmod&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;opt&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;codesys&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;scripts&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;rts_set_baud&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sh&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>PIGEON RB300 Raspberry CM CAN bus failure</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e94a7171b9/?limit=25#b770" rel="alternate"/><published>2020-02-27T16:25:56.704000Z</published><updated>2020-02-27T16:25:56.704000Z</updated><author><name>GiorgioT</name><uri>https://forge.codesys.com/u/giorgiot/</uri></author><id>https://forge.codesys.comba808eb051cca066ac5afe28b9a46a56a72c0c46</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have been working for almost 2 years with Beagleboneblack in industrial environments for motion control with great results. &lt;br/&gt;
We are going to use other boards along with the BBB ones for our projects.&lt;/p&gt;
&lt;p&gt;We are now developing new projects with the Pigeon RB300 board (Raspberry Computer Module) but we stumbled on the CAN Bus Failure.&lt;/p&gt;
&lt;p&gt;The can0 interface is working properly since i can send/receive frames on the bus through the cansend/candump commands.&lt;br/&gt;
The Codesys Log reports this error: '&lt;strong&gt;cannot execute ./rts_set_baud.sh - can0 will not work&lt;/strong&gt;' (see attached pictures).&lt;br/&gt;
I followed the steps in this old post : &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=21&amp;amp;t=5611&amp;amp;start=30" rel="nofollow"&gt;https://forum.codesys.com/viewtopic.php?f=21&amp;amp;t=5611&amp;amp;start=30&lt;/a&gt; &lt;br/&gt;
I created and saved this file in /root, / and /home/pi but codesys seems not finding it. The file has all permissions (+rwx for all users).&lt;br/&gt;
Even if i set the baud by hand through&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="n"&gt;ip&lt;/span&gt; &lt;span class="n"&gt;link&lt;/span&gt; &lt;span class="k"&gt;set&lt;/span&gt; &lt;span class="n"&gt;can0&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt; &lt;span class="k"&gt;type&lt;/span&gt; &lt;span class="n"&gt;can&lt;/span&gt; &lt;span class="n"&gt;bitrate&lt;/span&gt; &lt;span class="mi"&gt;125000&lt;/span&gt;
&lt;span class="n"&gt;sudo&lt;/span&gt; &lt;span class="n"&gt;ifconfig&lt;/span&gt; &lt;span class="n"&gt;can0&lt;/span&gt; &lt;span class="n"&gt;up&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I always get can bus failure.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screenshot (430).png" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=3551"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>