<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/</id><updated>2020-10-15T13:21:54.215000Z</updated><subtitle>Recent posts to CAN communications with Raspberry Pi and CodeSys</subtitle><entry><title>CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/?limit=25#a137" rel="alternate"/><published>2020-10-15T13:21:54.215000Z</published><updated>2020-10-15T13:21:54.215000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.com5eca131ac9040b7ad415769193024b39317d718e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have no problem with PiCAN2&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/?limit=25#c4d5/f388/5708" rel="alternate"/><published>2020-06-04T07:04:14.659000Z</published><updated>2020-06-04T07:04:14.659000Z</updated><author><name>Ingo</name><uri>https://forge.codesys.com/u/ingo/</uri></author><id>https://forge.codesys.com34b39681f2badddd7693920b0f3d26674d8a907e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I can imagine two common problems:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The socket CAN device is not configured as it should be and CODESYS doesn't find it.&lt;/li&gt;
&lt;li&gt;The rts_setbaud.sh script is not in place, not found or doesn't have the proper rights.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Maybe we start with the first one, and you send us the output of "System Info" in the Raspberry Pi deploy tool inside CODESYS (Tools -&amp;gt; Update Raspberry Pi -&amp;gt; System Info).&lt;/p&gt;
&lt;p&gt;And regarding issue 2:&lt;br/&gt;
Did you change anything in the config file regarding that script? Just because it should already be prepared that you don't need to change anything manually.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/?limit=25#c4d5/f388" rel="alternate"/><published>2020-05-26T15:37:06.214000Z</published><updated>2020-05-26T15:37:06.214000Z</updated><author><name>molarcheveque</name><uri>https://forge.codesys.com/u/molarcheveque/</uri></author><id>https://forge.codesys.com9e3a3782687cf2bbb7465d10435b1607c53892ee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have the same problem... the CAN0 is working from the terminal, but not able to make it work in Codesys. I have the following error. No CAN Driver Found. and the bus is not running.... (see attached picture)&lt;/p&gt;
&lt;p&gt;what am I missing.&lt;br/&gt;
thanks for your help...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/?limit=25#c4d5" rel="alternate"/><published>2020-02-27T16:48:14.331000Z</published><updated>2020-02-27T16:48:14.331000Z</updated><author><name>jond</name><uri>https://forge.codesys.com/u/jond/</uri></author><id>https://forge.codesys.com9ecee90dfb41759990247412d96a89057256f492</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have similar problem with PiCanV2 from Skpang &lt;br/&gt;
Canbus is working on the raspi, I can see messages by using candump can0.&lt;br/&gt;
Have installed Codesys Version is 3.5.14.0.&lt;br/&gt;
Downloaded CANbus example from the store.&lt;br/&gt;
Unfortunately I can not get the example working.&lt;/p&gt;
&lt;p&gt;Can you help me please to get this example running on Raspberry 3 controlled with Codesys?&lt;br/&gt;
Cheers,&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/?limit=25#046c" rel="alternate"/><published>2020-02-27T16:48:13.419000Z</published><updated>2020-02-27T16:48:13.419000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com51e3f3f7a073d212761a6581ca3367f4294dfa03</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
to have this script executable is mandatory:&lt;br/&gt;
 l &lt;a class="" href="https://forum.codesys.com/viewtopic.php?f=21&amp;amp;t=8463&amp;amp;p=20132&amp;amp;lan=en" rel="nofollow"&gt;viewtopic.php?f=21&amp;amp;t=8463#p20132&lt;/a&gt; l &lt;/p&gt;
&lt;p&gt;#!/bin/sh&lt;br/&gt;
BITRATE=&lt;code&gt;expr $2 \\* 1000&lt;/code&gt;&lt;br/&gt;
ifconfig $1 down&lt;br/&gt;
echo ip link set $1 type can bitrate $BITRATE&lt;br/&gt;
ip link set $1 type can bitrate $BITRATE&lt;br/&gt;
ifconfig $1 up&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/?limit=25#fef6" rel="alternate"/><published>2020-02-27T16:48:10.785000Z</published><updated>2020-02-27T16:48:10.785000Z</updated><author><name>CanBohr</name><uri>https://forge.codesys.com/u/canbohr/</uri></author><id>https://forge.codesys.comd20ee1c6a9bb2c0efa32ad707639dbc7cd71128c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;a class="user-mention" href="/u/bmunsil/"&gt;@bmunsil&lt;/a&gt;&lt;br/&gt;
I have a problem with PiCanV2 from Skpang &lt;br/&gt;
Codesys gives me the error message "Bus not running"&lt;br/&gt;
But the canbus is working on the raspi, I can see messages by using candump can0.&lt;br/&gt;
Codesys Version is 3.5.12.0.&lt;br/&gt;
Can you tell me where you found the solution for your problem?&lt;br/&gt;
Cheers,&lt;br/&gt;
CanBohr&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/?limit=25#4eae" rel="alternate"/><published>2020-02-27T16:48:09.850000Z</published><updated>2020-02-27T16:48:09.850000Z</updated><author><name>bmunsil</name><uri>https://forge.codesys.com/u/bmunsil/</uri></author><id>https://forge.codesys.com7acb9b508848a2482e17e5f0f77c477bea8ada35</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have the PiCanV2 from Skpang it took some browsing of the forums here, but there is a really good thread on it that will help you get it working. you can compile socketcan into you image and configure the codesys control to auto load on CAN1. I actually have an image that I would be more than happy to share if you send me your information. as a side note I am NOT a Linux or Codesys expert. I have just compiled the bits and pieces that the community has provided to make a working system. &lt;/p&gt;
&lt;p&gt;so far I have it running on a Raspberry PI B, and Raspberry PI 2 B. I don't have a Raspberry PI 3 yet to get it working but I have been told that there is little difference in the configurations. &lt;/p&gt;
&lt;p&gt;I do know however that the Device version 3.5.9.20 doesn't work for me. I have to use an older device version in Codesys V3. &lt;/p&gt;
&lt;p&gt;I know this was a bunch of random info put into a not so nicely formatted post but I hope it somewhat helps.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/?limit=25#b92a" rel="alternate"/><published>2020-02-27T16:48:07.223000Z</published><updated>2020-02-27T16:48:07.223000Z</updated><author><name>menno</name><uri>https://forge.codesys.com/u/menno/</uri></author><id>https://forge.codesys.comc68b695047242a62df929ff591e4883ad0f73d8a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;CODESYS supports SocketCAN communication. I managed to get CODESYS CAN communication working on a Raspberry Pi 3 with CanberryDual. However, for some reason it only works if one mcp2515-overlay is configured in /boot/config.txt, so only one CAN bus is working. Still figuring out, why that is the case and whether it is a CODESYS or SocketCAN problem. Any help on this appreciated.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CAN communications with Raspberry Pi and CodeSys</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/274eafb034/?limit=25#c9f8" rel="alternate"/><published>2020-02-27T16:48:06.114000Z</published><updated>2020-02-27T16:48:06.114000Z</updated><author><name>egret</name><uri>https://forge.codesys.com/u/egret/</uri></author><id>https://forge.codesys.com66fb37d4f13a188693868159b301971ea3f137ae</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Codesys Forum,&lt;/p&gt;
&lt;p&gt;I would like to use the Raspberry Pi with an SPI CAN module to establish CAN communications. However, I'm unclear on a few points:&lt;/p&gt;
&lt;p&gt;With "&lt;a class="" href="http://store.codesys.com/systeme/codesys-control-for-raspberry-pi-sl.html" rel="nofollow"&gt;CODESYS Control for Raspberry Pi SL&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'm considering the following CAN modules. Can anybody recommend one over another?&lt;br/&gt;
 SK Pang Electronics - &lt;a class="" href="http://skpang.co.uk/catalog/pican2-canbus-board-for-raspberry-pi-23-p-1475.html" rel="nofollow"&gt;PiCAN2&lt;/a&gt;&lt;br/&gt;
 MikroElektronika - &lt;a class="" href="http://www.mikroe.com/click/can-spi-3.3v/" rel="nofollow"&gt;CAN SPI click 3.3V&lt;/a&gt; with &lt;a class="" href="http://www.mikroe.com/click/pi2-shield/" rel="nofollow"&gt;Pi 2 click SHIELD&lt;/a&gt;&lt;br/&gt;
 IndustrialBerry - &lt;a class="" href="http://www.industrialberry.com/canberrydual-v2-1/" rel="nofollow"&gt;CanBerryDual V2.1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If CAN communications is the only requirement is the Beaglebone a better alternative?&lt;/p&gt;
&lt;p&gt;Regards, Ben&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>