[Etherlab-users] Problem with running Etherlab and Ethercat Master

Henrik Barie henrik.barie at ei.thm.de
Mon Sep 19 17:22:14 CEST 2022


Hello Andreas,

thank you very much for the installation manual,

in /etc/sysconfig/ I only had an "ethercat" file but no "ethercat.conf"
I deleted "ethercat"

Ive had a problem with
KEYRING=/usr/share/keyrings/ethercat.gpg curl -fsSL 
https://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/xUbuntu_22.04/Release.key 
| gpg --dearmor | sudo tee  "$KEYRING" >/dev/null

it said
tee: '': File or Directory not found

but it seems to be solved by typing sudo tee"$KEYRING"
(without any spaces between tee and "$KEYRING".

It executed without any messages.

after step 3. "sudo apt-get update"  I got an error message:

.....
W: GPG-Fehler: 
http://download.opensuse.org/repositories/home:/bone11111:/branches:/science:/EtherLab/xUbuntu_22.04 
./ InRelease: Die folgenden Signaturen konnten nicht überprüft werden, 
weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 
A08216C4FF0D8EF7
N: Das Laden der konfigurierten Datei »main/binary-i386/Packages« wird 
übersprungen, da das Depot »https://esm.ubuntu.com/realtime/ubuntu jammy 
InRelease« die Architektur »i386« nicht unterstützt.

I searched for a solution to get the public key but the code/command I 
found was deprecated and didnt work.

I continued with step 4.
sudo apt-get install linux-headers-5.15.0-1020-realtime
which said:
....
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht 
aktualisiert.

but shouldnt it have changed something?

in step 5. the testmanager couldnt be found


I wasnt sure if the "ethercat"-file from 
/usr/local/share/etherlab/etc/sysconfig/ethercat has to be copied to 
/etc/sysconfig or if it should be an "etherlab.conf"-file that must be 
copied?

also after the intallation there was no new
/lib/modules/KERNELVERSION/ethercat - file, which I deleted before.

message after starting and checking the master:

Master0
   Phase: Idle
   Active: no
   Slaves: 4
   Ethernet devices:
     Main: 88:a4:c2:bf:73:10 (attached)
       Link: UP
       Tx frames:   34954
       Tx bytes:    2156184
       Rx frames:   34953
       Rx bytes:    2156124
       Tx errors:   0
       Tx frame rate [1/s]:    488   2403    547
       Tx rate [KByte/s]:     28.6  145.3   32.9
       Rx frame rate [1/s]:    488   2403    547
       Rx rate [KByte/s]:     28.6  145.3   32.9
     Common:
       Tx frames:   620372
       Tx bytes:    37340208
       Rx frames:   620344
       Rx bytes:    37338528
       Lost frames: 28
       Tx frame rate [1/s]:    488   2403    547
       Tx rate [KByte/s]:     28.6  145.3   33.0
       Rx frame rate [1/s]:    488   2403    547
       Rx rate [KByte/s]:     28.6  145.3   33.0
       Loss rate [1/s]:          0      0      0
       Frame loss [%]:         0.0    0.0    0.0
   Distributed clocks:
     Reference clock:   Slave 0
     DC reference time: 0
     Application time:  0
                        2000-01-01 00:00:00.000000000

status:

● ethercat.service - EtherCAT Master Kernel Modules
      Loaded: loaded (/lib/systemd/system/ethercat.service; disabled; 
vendor preset: enabled)
      Active: active (exited) since Mon 2022-09-19 12:48:01 CEST; 4h 3min 
ago
     Process: 3296 ExecStart=/usr/local/share/etherlab/sbin/ethercatctl 
start (code=exited, stat>
    Main PID: 3296 (code=exited, status=0/SUCCESS)
         CPU: 13ms

Sep 19 12:48:01 ec-Lenovo-V15-G2-ITL systemd[1]: Starting EtherCAT 
Master Kernel Modules...
Sep 19 12:48:01 ec-Lenovo-V15-G2-ITL systemd[1]: Finished EtherCAT 
Master Kernel Modules.
lines 1-9/9 (END)

Sadly it still doesnt work properly, I guess the installation wasnt 
complete. Do you know how I can fix the errors that occurred?


Regards
Henrik



More information about the Etherlab-users mailing list