<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Raspberry pi EtherCAT - Netwerk adapted could not be opened</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4252b84e5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4252b84e5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/e4252b84e5/</id><updated>2022-05-26T07:42:28.426000Z</updated><subtitle>Recent posts to Raspberry pi EtherCAT - Netwerk adapted could not be opened</subtitle><entry><title>Raspberry pi EtherCAT - Netwerk adapted could not be opened</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4252b84e5/?limit=25#5b33" rel="alternate"/><published>2022-05-26T07:42:28.426000Z</published><updated>2022-05-26T07:42:28.426000Z</updated><author><name>broos72482</name><uri>https://forge.codesys.com/u/broos72482/</uri></author><id>https://forge.codesys.com9da8619e2bfc931bac6b7f7c5d57e0cf3bddee11</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I found out that when booting from sd-card the usb to ethernet adapter is recognised ok. Only when i boot from usb (using a M.2 Expansion Board voor Argon ONE) different USB to ethernet adapters will not be recognised at boot time.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi EtherCAT - Netwerk adapted could not be opened</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4252b84e5/?limit=25#44e7" rel="alternate"/><published>2022-05-26T07:42:23.830000Z</published><updated>2022-05-26T07:42:23.830000Z</updated><author><name>broos72482</name><uri>https://forge.codesys.com/u/broos72482/</uri></author><id>https://forge.codesys.com4f8401d7cc3359648019c70fdc1519f16aea9101</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I found out that when booting from sd-card the usb to ethernet adapter is recognised ok. Only when i boot from usb (using a M.2 Expansion Board voor Argon ONE) different USB to ethernet adapters will not be recognised at boot time.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi EtherCAT - Netwerk adapted could not be opened</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4252b84e5/?limit=25#93dd" rel="alternate"/><published>2022-05-04T07:55:04.627000Z</published><updated>2022-05-04T07:55:04.627000Z</updated><author><name>broos72482</name><uri>https://forge.codesys.com/u/broos72482/</uri></author><id>https://forge.codesys.com189fa4d6f8487ee5b6b906b9740a27ea3d12efc0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;h1 id="thanks-for-your-help-runtime-restart-was-the-solution"&gt;Thanks for your help. runtime restart was the solution.&lt;/h1&gt;
&lt;p&gt;The problem was that the UGREEN USB 3.0 adapter was NOT on the list of hardware for the Raspberry pi. So I bought a USB 2.0 Belkin adapter, which was on the list of compatible hardware (https://elinux.org/RPi_VerifiedPeripherals).&lt;br/&gt;
However the're is a problem with both network adapters when booting the Raspberry pi. The are not recognized at boot time. So rebooting was not an option.&lt;/p&gt;
&lt;p&gt;Using eth0 would probably work. What i tried is using the USB network adapter on eth1 for connection with the soft-plc, ssh, nomachine. But I couldn't get it working.&lt;/p&gt;
&lt;p&gt;After that I disabled tcp/ip in the dhcpcd.conf file with the options noipv4 and noipv6 after interface eth1. But don't know if thats necessary?&lt;/p&gt;
&lt;p&gt;But when I put the Belkin adapter in the Raspberry pi after a reboot it is perfectly recognized, I use the dmesg command for that.&lt;br/&gt;
Now when i use: &lt;br/&gt;
sudo /etc/init.d/codesyscontrol stop&lt;br/&gt;
sudo /etc/init.d/codesyscontrol start&lt;br/&gt;
It works perfectly.&lt;br/&gt;
===========================&lt;br/&gt;
Question:&lt;br/&gt;
    - I still have to solve the booting problem. Assuming I use eth0 for SSH, codesys: Will a&lt;br/&gt;
      PiHAT with an extra ethernet port be a possibility ? Will it work better in combination&lt;br/&gt;
      with the codesys soft PLC ? Can you give me any advise ?&lt;br/&gt;
      - I think the problem with the booting might be a problem when the system boots the&lt;br/&gt;
      usb-&amp;gt; ethernet driver is not loaded so the networkadapter might not be recognized.&lt;br/&gt;
      For a PiHAT may be the modules (ethernet driver) is loaded earlier in the booting process.&lt;br/&gt;
      If I can solve that problem is there a way to kickstart the EtherCAT bus manually&lt;br/&gt;
      from a program in the soft-PLC? This would give me the possibility to start the bus without&lt;br/&gt;
      restarting the soft-PLC ?&lt;br/&gt;
 Thanks in advance.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi EtherCAT - Netwerk adapted could not be opened</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4252b84e5/?limit=25#8c98" rel="alternate"/><published>2022-05-02T08:56:23.201000Z</published><updated>2022-05-02T08:56:23.201000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com16e23173e925308e8d1ff3dc6cf6230e82fd72a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;does the same configuration work on eth0?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi EtherCAT - Netwerk adapted could not be opened</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4252b84e5/?limit=25#2085" rel="alternate"/><published>2022-04-30T13:54:37.208000Z</published><updated>2022-04-30T13:54:37.208000Z</updated><author><name>broos72482</name><uri>https://forge.codesys.com/u/broos72482/</uri></author><id>https://forge.codesys.comc6c6098543af4af2faadf61c5dfc6e200e8b5467</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;img src="./attachment/attachment.png" width="150%"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Raspberry pi EtherCAT - Netwerk adapted could not be opened</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/e4252b84e5/?limit=25#b609" rel="alternate"/><published>2022-04-30T13:43:42.555000Z</published><updated>2022-04-30T13:43:42.555000Z</updated><author><name>broos72482</name><uri>https://forge.codesys.com/u/broos72482/</uri></author><id>https://forge.codesys.comf8d87cb4114512230de89cff9d782cf17210ecfa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have a very simple demo application using a:&lt;br/&gt;
    - Raspberry pi 4b.&lt;br/&gt;
    - UGreen 10/100/1000 MB USB 3.0 networkadapter.&lt;br/&gt;
    - Codesys soft-PLC for the raspberry pi (Codesys V3.5 SP17 Patch 2 64-bit).&lt;/p&gt;
&lt;p&gt;The demo applicatition looks as follows:&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/ProgrammLayout.PNG" width="50%"/&gt;&lt;br/&gt;
What have i done:&lt;br/&gt;
        - I've downloaded the xml descriptor files.&lt;br/&gt;
        - Inserted the EtherCAT Master.&lt;br/&gt;
        - Inserted a buscoupler.&lt;br/&gt;
        - Inserted a EL1008 DI module.&lt;br/&gt;
        - Inserted a EL2008 DO module.&lt;/p&gt;
&lt;p&gt;When start the application i get the following messages from the logging:&lt;br/&gt;
&lt;img src="./attachment/Logging.PNG" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;Scanning doesn't find any devices. When i first connect the application it seems to try to communicatie. I&lt;br/&gt;
see the communication leds blinking now and then and after a while it stops.&lt;br/&gt;
However for linux the interface seems to be working. ifconfig eth1 shows it transmits packets but doesnt&lt;br/&gt;
receive anything. &lt;img src="./attachment/Linux_eth1.PNG" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;Any help is appreciated.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>