* Wed, Oct 20, 2010 - 08:35:58 +0000, Juri Gerke - juri.ge...@afpt.de: > Hi all, > > I work together with Mr. Mueller. So how do i use EOE in user space?
If your EOE-Device works right and EOE is enabled, you should have a regular ethernet device, created by the master. The only problem is to tell the slave which IP-Adress it may use. DHCP may be an option. but depends on the capabilities of the slave. As I understand, for each slave there's a subnet in 192.168.0.0, where the slave address determines that subnet. On the master side address 1 is used by definition while on the slave side any address between 2 and 254 may be set. $ ifconfig eoe0s13 Link encap:Ethernet HWaddr 00:11:22:33:44:07 inet addr:192.168.13.1 Bcast:192.168.13.255 Mask:255.255.255.0 inet6 addr: fe80::211:22ff:fe33:4407/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2669 errors:4 dropped:0 overruns:0 frame:0 TX packets:2671 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:123042 (120.1 KiB) TX bytes:1483058 (1.4 MiB) eth0 Link encap:Ethernet HWaddr 00:d0:c9:b0:88:11 inet addr:10.17.176.163 Bcast:10.17.176.255 Mask:255.255.255.0 inet6 addr: fe80::2d0:c9ff:feb0:8811/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:164234 errors:0 dropped:0 overruns:0 frame:0 TX packets:157054 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:38349941 (36.5 MiB) TX bytes:140565839 (134.0 MiB) $ ethercat slaves 0 0:0 OP + EK1100 EtherCAT-Koppler (2A E-Bus) 1 0:1 OP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung 2 0:2 OP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung 3 0:3 OP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung 4 0:4 OP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung 5 0:5 OP + EL2004 4K. Dig. Ausgang 24V, 0,5A 6 0:6 OP + EL2004 4K. Dig. Ausgang 24V, 0,5A 7 0:7 OP + EL2004 4K. Dig. Ausgang 24V, 0,5A 8 0:8 OP + EL2004 4K. Dig. Ausgang 24V, 0,5A 9 0:9 OP + EL2008 8K. Dig. Ausgang 24V, 0.5A 10 0:10 OP + EL1104 4K. Dig. Eingang 24V, 3ms, Sensorversorgung 11 0:11 OP + EL6001 Schnittstelle (RS232) 12 0:12 OP + EL6001 Schnittstelle (RS232) 13 0:13 OP + PCC $ ping 192.168.13.2 PING 192.168.13.2 (192.168.13.2) 56(84) bytes of data. 64 bytes from 192.168.13.2: icmp_seq=1 ttl=64 time=27.4 ms 64 bytes from 192.168.13.2: icmp_seq=2 ttl=64 time=5.68 ms Here's another example with more than one slaves: eoe0s4 Link encap:Ethernet HWaddr 00:11:22:33:44:19 inet addr:192.168.4.1 Bcast:192.168.4.255 Mask:255.255.255.0 inet6 addr: fe80::211:22ff:fe33:4419/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:148 errors:22 dropped:0 overruns:0 frame:0 TX packets:69 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:12823 (12.5 KiB) TX bytes:4620 (4.5 KiB) eoe0s5 Link encap:Ethernet HWaddr 00:11:22:33:44:1a inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0 inet6 addr: fe80::211:22ff:fe33:441a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:115 errors:21 dropped:0 overruns:0 frame:0 TX packets:55 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:9777 (9.5 KiB) TX bytes:3862 (3.7 KiB) eoe0s6 Link encap:Ethernet HWaddr 00:11:22:33:44:1b inet addr:192.168.6.1 Bcast:192.168.6.255 Mask:255.255.255.0 inet6 addr: fe80::211:22ff:fe33:441b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:94 errors:38 dropped:0 overruns:0 frame:0 TX packets:45 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:7851 (7.6 KiB) TX bytes:3102 (3.0 KiB) -- Erwin Burgstaller _______________________________________________ etherlab-users mailing list etherlab-users@etherlab.org http://lists.etherlab.org/mailman/listinfo/etherlab-users