[etherlab-users] Further comment regarding "No such device"

Jeff Krasky jeff.krasky at dspcg.com
Tue Jul 19 19:42:58 CEST 2011


Regarding the error I receive when executing the sample program:

#include <ecrt.h>
int main (void)
{
	ec_master_t * master = ecrt_request_master (0);
	if (! master )
		return 1; // error

	pause (); // wait for signal
	return 0;
}

"Failed to reserve master: No such device" is the output I receive.  I just
executed the command 'ethercat master' and here is the result:

dhcppc0:~ # ethercat master
Master0
  Phase: Waiting for device...
  Active: no
  Slaves: 0
  Ethernet devices:
    Main: ff:ff:ff:ff:ff:ff (waiting...)
      Link: DOWN
      Tx frames:   0
      Rx frames:   0
      Lost frames: 0
      Tx bytes:    0
      Tx errors:   0
      Tx frame rate [1/s]:      0      0      0
      Tx rate [KByte/s]:      0.0    0.0    0.0
      Loss rate [1/s]:          0      0      0
      Frame loss [%]:         0.0    0.0    0.0

    Backup: None.
  Distributed clocks:
    Reference clock: None
    Application time: 0
                      2000-01-01 00:00:00.000000000

Could the issue be that I have no slave connected?  The Ethernet cable is
simply running to the router.

Thanks,


Jeff




More information about the Etherlab-users mailing list