<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/</id><updated>2022-07-08T14:51:56.506000Z</updated><subtitle>Recent posts to CANopen slave crashes on "Start Remote Node" command from master, SYNC related</subtitle><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#77f2/6699" rel="alternate"/><published>2022-07-08T14:51:56.506000Z</published><updated>2022-07-08T14:51:56.506000Z</updated><author><name>sean-barton</name><uri>https://forge.codesys.com/u/sean-barton/</uri></author><id>https://forge.codesys.comc6f0c8e014683ead66231f136da839433ea5a16c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I made the changes you suggested and I've noticed the slave  can running several minutes before crashing.&lt;/p&gt;
&lt;p&gt;In most cases, I have been powering off/on both ECUs to test on startup.&lt;/p&gt;
&lt;p&gt;There are typically errors due to peripheral status and items that havn't affected the ECU in the past but because you pointed out the log, I ran through it more thoroughly. While watching the log during the start process, I notice four errors that occur after the slave crashes. They seem to show some sort of "fatal" status (not exceptions) but it's not very clear. I'll dive into these errors more deeply.&lt;/p&gt;
&lt;p&gt;The application and CAN cycles are on different tasks. The CAN task average is 8.5ms with a maximum cycle time of 16ms. The task interval is set to 100ms. There is no jitter on either task.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#77f2" rel="alternate"/><published>2022-07-07T22:02:33.783000Z</published><updated>2022-07-07T22:02:33.783000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.comeebaabd16bdf84c89d8baf26bd73dc0105cf610e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In the "window" all PDO is transmitted and received. You have 100ms and I think you need 50ms so that should be alright.&lt;br/&gt;
But hereafter you have only 20ms to SDOs and I suppose "heart beat"s (But I don't know) You have 3 heart beats one from each slave and one from the master maybe 20ms is not enough. What about a period of 160ms and heart beats of 320ms. What happens if you power off/on for the system. CODESYS has a log for each slave what does these say?&lt;br/&gt;
What is your application cycle (not SYNC cycle)?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#d55b/4e08" rel="alternate"/><published>2022-07-07T20:13:21.410000Z</published><updated>2022-07-07T20:13:21.410000Z</updated><author><name>sean-barton</name><uri>https://forge.codesys.com/u/sean-barton/</uri></author><id>https://forge.codesys.comeab967e516d33ba363abc3ad2195888802d28200</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I changed the heartbeat time from its original 200ms to 240ms as a multiple of the SYNC period of 120ms. At first it seemed to work, so I disconnected to change a PDO I have running as Asynchronous to Acyclic which also has active data transferring on it. I reconnected, and it appeared to work but after about 15 seconds the slave crashed again. Usually the connection stops immediately but this time it was working and I could verify that the data was transferring to the other device. &lt;/p&gt;
&lt;p&gt;That was on the first few connections, but now the slave has gone back to crashing almost immediately every time a connection is made. Since the first successful connection, I've only played with the timings in the hopes of getting the connection back - even putting everything back to when the first successful connection was made but the slave still crashes.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#d55b" rel="alternate"/><published>2022-07-07T16:59:04.679000Z</published><updated>2022-07-07T16:59:04.679000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.com1b7fbf65d177acbc77738526cf11b1028829fe62</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I don't know SIL2 but since it has something to do with safety one could imagine that heart beat might be a requirement. If you enable the "heat beat" let the time for "heart beat" producing be a multiple of the the SYNC period.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#9072/9541" rel="alternate"/><published>2022-07-07T14:42:45.112000Z</published><updated>2022-07-07T14:42:45.112000Z</updated><author><name>sean-barton</name><uri>https://forge.codesys.com/u/sean-barton/</uri></author><id>https://forge.codesys.combb1ddb641b85ae71c00527c0bbcfed02d16d303c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I disabled both heartbeat producing on master and slave with the new SYNC settings. On the CANbus I observed the reset message from the master but the slave does not report a pre-operational state, only 00. When a "Start Remote Node" message is issued from the master, the slave stops working as before, with the red LEDs showing and no activity from the slave on the CANbus.&lt;/p&gt;
&lt;p&gt;After the above observation, I also noticed heartbeat consuming on the slave was enabled. I disabled this setting but the result was the same, the slave ECU stops responding on start message from the master.&lt;/p&gt;
&lt;p&gt;I should note that the ECUs are SIL2 but I have not implemented any code in the Safety PLC side. I'm not sure if this matters.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#8706/ffb7" rel="alternate"/><published>2022-07-07T14:32:45.409000Z</published><updated>2022-07-07T14:32:45.409000Z</updated><author><name>sean-barton</name><uri>https://forge.codesys.com/u/sean-barton/</uri></author><id>https://forge.codesys.com4a597965b97a6de55fe777b2fadcf6dca1c12b28</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, that is correct. without SYNC the slave LEDs remain green and operate as normal. The system is using two mobile industrial ECUs of the same manufacture.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#9072" rel="alternate"/><published>2022-07-07T05:45:20.288000Z</published><updated>2022-07-07T05:45:20.288000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.coma528da6828383186a0b800b26f45a2c6f5831cf2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Try to disable heart beat producing on master, but enable SYNC with your new timing settings&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#8706" rel="alternate"/><published>2022-07-07T05:38:43.192000Z</published><updated>2022-07-07T05:38:43.192000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.com80b9697eb25ffd073b36494cf207a01c8681808d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;"If I disable the SYNC producing setting in the master CANopen manager, the above observation is the same except only Asynchronous PDO data is showing on the CANbus, and the slave continues to operate."&lt;br/&gt;
Does that mean that without SYNC, the led on the slave remains green.&lt;br/&gt;
What is your system (Raspberry Pi or something else?)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#8df3/596e" rel="alternate"/><published>2022-07-06T19:57:53.148000Z</published><updated>2022-07-06T19:57:53.148000Z</updated><author><name>sean-barton</name><uri>https://forge.codesys.com/u/sean-barton/</uri></author><id>https://forge.codesys.come0ff87676b6f389823a9d4551a5123dae398a6af</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There are 63 receive PDOs and 43 transmit PDOs - 106 in total. I didn't know about the window length being smaller, the default was 1000 for cycle time and 1200 for window (microseconds) - I just increased both by the same factor.&lt;/p&gt;
&lt;p&gt;I tried exchanging the values for cycle period and window length (microseconds) to 120000 and 100000 respectively, and enabling the SYNC but the same problem occurs.&lt;/p&gt;
&lt;p&gt;I have a bus load analyzer which shows the bus load no higher than 18% on startup but 0.2% on average so the bus does not appear to be overloaded.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>CANopen slave crashes on "Start Remote Node" command from master, SYNC related</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e527f4fa97/?limit=25#8df3" rel="alternate"/><published>2022-07-06T19:30:46.291000Z</published><updated>2022-07-06T19:30:46.291000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.com7ef407085e353cae09bbaca426d821910fa3cf17</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;How many PDOs do you have?&lt;br/&gt;
The Cycle period has to be larger than the Window length. If I understand it correctly the window is the period of time where the PDOs are transmitted and received. &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>