[etherlab-users] Master0 dead

Gavin Lambert gavinl at compacsort.com
Wed Apr 19 01:37:59 CEST 2017


The "waiting for devices" state means that no network devices are available for EtherCAT yet.

You need to check your configuration file (if you're using SysV /etc/init.d/ethercat then the file is /etc/sysconfig/ethercat; if you're using SystemD ethercat.service then the file is /etc/ethercat.conf).  You need to define both the driver module to use (which one depends on what network interface you have) and also define the MAC addresses of each interface that should be used for EtherCAT communication.

> -----Original Message-----
> From: etherlab-users [mailto:etherlab-users-bounces at etherlab.org] On
> Behalf Of ???
> Sent: Wednesday, 19 April 2017 08:42
> To: etherlab-users at etherlab.org
> Subject: [etherlab-users] Master0 dead
> 
> Hi
> 
> I'm learning how to use ethercat
> 
> When I start ethcat and want to see the status I get the message below:
> 
> hsu at hsu-desktop:~/ethercat-1.5.2/examples/dc_user$ sudo
> /etc/init.d/ethercat start
> /etc/sysconfig/ethercat: 1:
> ------------------------------------------------------------------------------:
> not found
> Starting EtherCAT master 1.5.2 WARNING: All config files need .conf:
> /etc/modprobe.d/emc2, it will be ignored in a future release.
> WARNING: All config files need .conf: /etc/modprobe.d/emc2, it will be
> ignored in a future release.
>  done
> 
> hsu at hsu-desktop:~/ethercat-1.5.2/examples/dc_user$ sudo
> /etc/init.d/ethercat status
> /etc/sysconfig/ethercat: 1:
> ------------------------------------------------------------------------------:
> not found
> Checking for EtherCAT master 1.5.2
> Master0  dead
> 
> More information:
> 
> hsu at hsu-desktop:~/ethercat-1.5.2/examples/dc_user$ ethercat master
> Master0
>   Phase: Waiting for device(s)...
>   Active: no
>   Slaves: 0
>   Ethernet devices:
>     Main: c8:9c:dc:a2:6f:56 (waiting...)
>       Link: DOWN
>       Tx frames:   0
>       Tx bytes:    0
>       Rx frames:   0
>       Rx bytes:    0
>       Tx errors:   0
>       Tx frame rate [1/s]:      0      0      0
>       Tx rate [KByte/s]:      0.0    0.0    0.0
>       Rx frame rate [1/s]:      0      0      0
>       Rx rate [KByte/s]:      0.0    0.0    0.0
>     Common:
>       Tx frames:   0
>       Tx bytes:    0
>       Rx frames:   0
>       Rx bytes:    0
>       Lost frames: 0
>       Tx frame rate [1/s]:      0      0      0
>       Tx rate [KByte/s]:      0.0    0.0    0.0
>       Rx frame rate [1/s]:    132  48370    397
>       Rx rate [KByte/s]:   7206.4    0.0  320.8
>       Loss rate [1/s]:          0      0      0
>       Frame loss [%]:         0.0    0.0    0.0
>   Distributed clocks:
>     Reference clock: None
>     Application time: 0
>                       2000-01-01 00:00:00.000000000
> 
> the dmesg
> [   16.042793] ADDRCONF(NETDEV_UP): eth0: link is not ready
> [   16.043339] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow
> Control: RX
> [   16.055960] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> [   16.681028] EtherCAT: Master driver 1.5.2 2eff7c993a63
> [   16.682397] EtherCAT: 1 master waiting for devices.
> [   16.974627] ec_8139too EtherCAT-capable Fast Ethernet driver
> 0.9.28, master 1.5.2 2eff7c993a63
> [   17.158937] ppdev: user-space parallel port driver
> [   22.547621] ISO 9660 Extensions: Microsoft Joliet Level 3
> [   22.549474] ISO 9660 Extensions: RRIP_1991A
> [   26.353652] eth0: no IPv6 routers present
> [44214.675801] EtherCAT: Master module cleaned up.
> [44215.708167] 8139too Fast Ethernet driver 0.9.28 [44216.736945] EtherCAT:
> Master driver 1.5.2 2eff7c993a63 [44216.738867] EtherCAT: 1 master waiting
> for devices.
> [44216.758327] ec_8139too EtherCAT-capable Fast Ethernet driver 0.9.28,
> master 1.5.2 2eff7c993a63 [44278.309710] EtherCAT: Requesting master 0...
> [44278.309712] EtherCAT ERROR 0: Master still waiting for devices!
> [46256.569165] EtherCAT: Requesting master 0...
> [46256.569175] EtherCAT ERROR 0: Master still waiting for devices!
> 
> 
> I use VirtualBox and use linuxCNC(10.04) download at
> http://www.linuxcnc.org/iso/ubuntu-10.04-linuxcnc3-i386.iso
> 
> the module is 8139too
> 
> 
> Could you can help me to solve this question?
> 
> Thanks!
> 
> Best regards -Young





More information about the Etherlab-users mailing list