<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to My raspberry pi is so slow i cannot connect it - why</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/</id><updated>2020-02-27T16:11:19.159000Z</updated><subtitle>Recent posts to My raspberry pi is so slow i cannot connect it - why</subtitle><entry><title>My raspberry pi is so slow i cannot connect it - why</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/?limit=25#9204" rel="alternate"/><published>2020-02-27T16:11:19.159000Z</published><updated>2020-02-27T16:11:19.159000Z</updated><author><name>Volvo742</name><uri>https://forge.codesys.com/u/volvo742/</uri></author><id>https://forge.codesys.com26a44a1058c267b4db22823d7e8684fca140756d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
then use this example:&lt;br/&gt;
c:\Users\&amp;lt;wnidowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.8.10\Examples\PiFace_FB.project&lt;br/&gt;
BR&lt;br/&gt;
Edwin&amp;lt;/wnidowsusername&amp;gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I said 'i dont know how to develop own libraries'. Not 'do not want to develop own libraries ' &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My raspberry pi is so slow i cannot connect it - why</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/?limit=25#4a50" rel="alternate"/><published>2020-02-27T16:11:18.349000Z</published><updated>2020-02-27T16:11:18.349000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com7917efac2b511ed2aa36dbc27ac725b343d45679</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;'do not want to develop own libraries'&lt;/p&gt;
&lt;p&gt;then use this example, this is without develop an own library just use the spi master from the project/application:&lt;/p&gt;
&lt;p&gt;c:\Users\&amp;lt;wnidowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.8.10\Examples\PiFace_FB.project&amp;lt;/wnidowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My raspberry pi is so slow i cannot connect it - why</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/?limit=25#d666" rel="alternate"/><published>2020-02-27T16:11:16.084000Z</published><updated>2020-02-27T16:11:16.084000Z</updated><author><name>Volvo742</name><uri>https://forge.codesys.com/u/volvo742/</uri></author><id>https://forge.codesys.com837b7974a57ec87f7cdf547619a1bd4100870b18</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I fix'd it. Just increase the cycles.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My raspberry pi is so slow i cannot connect it - why</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/?limit=25#312c" rel="alternate"/><published>2020-02-27T16:11:15.290000Z</published><updated>2020-02-27T16:11:15.290000Z</updated><author><name>Volvo742</name><uri>https://forge.codesys.com/u/volvo742/</uri></author><id>https://forge.codesys.com090bdf4e32e11ad62d44d843f26287ca492a148f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello! So i need to remove the while loop in BIN_TO_DEC function? &lt;/p&gt;
&lt;p&gt;I will try with disable that.&lt;/p&gt;
&lt;p&gt;The reason i have made my own SPI is beacuse i dont know how to develope own libraries. Beacuse i want to make libraries who run in the background. And the libraries parameter can be changed while the PLC runs. There is no tutorial for that.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My raspberry pi is so slow i cannot connect it - why</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/?limit=25#c91c" rel="alternate"/><published>2020-02-27T16:11:14.479000Z</published><updated>2020-02-27T16:11:14.479000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com6b174e6aa4e8f9312426e1ce6541d10781ce8d60</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;guess this while loop seems to be the problem.&lt;/p&gt;
&lt;p&gt;Login to the raspberry pi,&lt;br/&gt;
then &lt;br/&gt;
sudo -s&lt;br/&gt;
cd /root/&lt;br/&gt;
rm App*&lt;/p&gt;
&lt;p&gt;in case your Application is in /root/PlcLogic&lt;br/&gt;
rm /root/PlcLogic/App*&lt;/p&gt;
&lt;p&gt;this will solve the problem with the load. (Sure on next download with your programm it is back again)&lt;/p&gt;
&lt;p&gt;If you want to prevent situations like this you could either enable processorload supervision by adding&lt;br/&gt;
the following section to /etc/CODESYSControl.cfg&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[CmpSchedule]&lt;/span&gt;&lt;br/&gt;
ProcessorLoad.Enable=1&lt;br/&gt;
ProcessorLoad.Maximum=95&lt;/p&gt;
&lt;p&gt;or you could disable Implicit generate bootapplication see screenshot.&lt;/p&gt;
&lt;p&gt;Some remarks to your application, why not using the Example application for MCP3008?&lt;br/&gt;
There is an ready to use Projektexample for SPI and MCP3008&lt;br/&gt;
"c:\Users\&amp;lt;yourwindowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.8.10\Examples\MCP3008Temperature.project" &lt;br/&gt;
If this is not what you Need you could either adapt this SPI Driver or use:&lt;br/&gt;
"c:\Users\&amp;lt;wnidowsusername&amp;gt;\CODESYS Control for Raspberry PI\3.5.8.10\Examples\PiFace_FB.project"  which should show how to use SPI from the application code. &amp;lt;/wnidowsusername&amp;gt;&amp;lt;/yourwindowsusername&amp;gt;&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: ImplicitBootproject.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1984"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: MCP3008.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1983"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My raspberry pi is so slow i cannot connect it - why</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/?limit=25#f50e" rel="alternate"/><published>2020-02-27T16:11:12.203000Z</published><updated>2020-02-27T16:11:12.203000Z</updated><author><name>Volvo742</name><uri>https://forge.codesys.com/u/volvo742/</uri></author><id>https://forge.codesys.comebf57f99d59cc8998d30efa14d38af28ba071c98</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Edwin Schwellinger hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Hi,&lt;br/&gt;
please check the system load by 'top'&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The codesyscontrol takes about 90-99 CPU usage. I have tried to reinstalling codesyscontrol but its the same story.&lt;/p&gt;
&lt;p&gt;It's looks like i have made to heavy code. But is that possible? I only have tree programs.&lt;/p&gt;
&lt;p&gt;I have uploaded my project. The comments is on Swedish, but you only need to run this without wire any anything to the bredboard.&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=1982" rel="nofollow"&gt;Styrsystem.rar &lt;span&gt;&lt;span&gt;[385.21 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My raspberry pi is so slow i cannot connect it - why</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/?limit=25#90fe" rel="alternate"/><published>2020-02-27T16:11:11.374000Z</published><updated>2020-02-27T16:11:11.374000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com61ae13dc5fd520889ad9465e253c13eb0986487f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;please check the system load by 'top'&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>My raspberry pi is so slow i cannot connect it - why</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/8db0f52e2a/?limit=25#44fd" rel="alternate"/><published>2020-02-27T16:11:09.076000Z</published><updated>2020-02-27T16:11:09.076000Z</updated><author><name>Volvo742</name><uri>https://forge.codesys.com/u/volvo742/</uri></author><id>https://forge.codesys.com0263fcf614e0153e6ae28105c2d8a111f4c349c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;I have just made a program in Codesys and i upload it and everything works perfect! &lt;/p&gt;
&lt;p&gt;But then when i was editing the code in Codesys and try to upload, i can't find my PI. I try to plug it into the TV but a can only se the wall of linux text and the text disapear when i just see the login in terminal mode.  After that the TV screen is blank black. But the TV does not say "no connection".&lt;/p&gt;
&lt;p&gt;What is wrong with my PI? Have Codesys made so it won't start due to cpu usage?&lt;/p&gt;
&lt;p&gt;Edit: Now something happening.  I could login almost. It's really slow&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Zitat:&lt;/strong&gt;&lt;br/&gt;
Raspbian GNU/Linux 8 raspberry tty4&lt;br/&gt;
raspberry login: pi&lt;br/&gt;
Password: (raspberry)&lt;br/&gt;
Login time out after 60 seconds&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Edit 2:&lt;/p&gt;
&lt;p&gt;Im in the terminal now.  Really slow. I can see the text moving down.&lt;/p&gt;
&lt;p&gt;I have write the command.&lt;br/&gt;
Sudo /etc/init.d/codesyscontrol stop &lt;/p&gt;
&lt;p&gt;It stops.&lt;/p&gt;
&lt;p&gt;Edit 3:&lt;br/&gt;
I removed all *.app file from./room to /root/junk as temp file.&lt;/p&gt;
&lt;p&gt;I can start X Now. I can find my device, but my PI is slow. It taket minutes to login. &lt;/p&gt;
&lt;p&gt;Edit 4:&lt;br/&gt;
But now i can't find my PI in Codesys. So slow.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>