Hello Patrick,

First question, why do you use this outdated preempt rt kernel.
You can use 2.33.11-rt30, runs very nice.

I also had trouble using the generic driver under debian 6.0 (native kernel) with a 8139too card. The card was not sending. May be it is same problem.

Can you access any slave on the problematic host?

You use a fielbus coupler from wago like Beckhoff BKXXXX. That are complex slaves.

Best Regards

Andreas

Am 28.02.2011 16:24, schrieb Patrick Brunner:
Dear all
Trying to set up an EtherCAT master on two different industrial PCs (see details below), I'm facing the problem, that the slave's SII can't be read on one system, while the other is just working fine (proper initialisation and I/O transfer running).
Apart from the underlying IPC, the setup is identical:
- (only) bus slave: Wago buscoupler (750-354) with some digital output modules
- EtherCAT master module: ec_generic (--enable-cycles --enable-hrtimer)
- EtherCAT master version: latest snapshot
- OS: Debian 6.0
- Linux kernel: 2.6.31.12-rt21 (PREEMPT RT) and 2.6.37.1 (PREEMPT) -> same problem on both versions Switching from one system to the other, only the disk and network cable are swapped, and the controller's MAC address updated accordingly in the configuration file. IPC #1: (problematic) Intel Atom, 2x Intel 82574IT gigabit ethernet controller (kernel module: e1000e) IPC #2: (working) AMD GeodeLX, 2x Davicom DM9102 ethernet controller (kernel module: dmfe, v1.36.4) As the only difference between the two boards (from a software point of view) is the ethernet controller, I'm suspecting a problem in interfacing between the ec_generic module and the NIC's driver module. Would that be possible at all? The output of dmesg, ethercat master -v and slaves -v from the problematic system is attached below.
Anybody an idea what could be wrong? Any help is highly appreciated!
Best regards,
Patrick
Output ethercat master -v
=================
Master0
  Phase: Idle
  Active: no
  Slaves: 1
  Ethernet devices:
    Main: 00:a0:10:00:96:3e (attached)
      Link: UP
      Tx frames:   192517
      Rx frames:   192516
      Lost frames: 0
      Tx bytes:    11551020
      Tx errors:   0
      Tx frame rate [1/s]:    933    935    907
      Tx rate [KByte/s]:     54.7   54.8   53.1
      Loss rate [1/s]:          0      0      0
      Frame loss [%]:         0.0    0.0    0.0
    Backup: None.
  Distributed clocks:
    Reference clock: Slave 0
    Application time: 0
                      2000-01-01 00:00:00.000000000
Output ethercat slaves -v
================
=== Master 0, Slave 0 ===
State: INIT
Flag: E
Identity:
  Vendor Id:       0x00000000
  Product code:    0x00000000
  Revision number: 0x00000000
  Serial number:   0x00000000
DL information:
  FMMU bit operation: no
  Distributed clocks: yes, 64 bit
  DC system time transmission delay: 0 ns
Port Type Link Loop Signal NextSlave RxTime [ns] Diff [ns] NextDc [ns] 0 MII up open yes - 928938138 0 0 1 MII down closed no - - - - 2 N/A down closed no - - - - 3 N/A down closed no - - - -
Output dmesg
=========
[    0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.31.12-rt21-486-usb (root@debian <mailto:root@debian>) (gcc version 4.3.2 (Debian 4.3.2-1.1) ) #7 PREEMPT RT Fri Feb 25 13:55:32 CET 2011
.... parts skipped
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.31.12-rt21-486-usb root=UUID=09ba4145-2180-492b-a056-7dd86c7ef3b5 ro quiet
.... parts skipped
[    0.000000] Real-Time Preemption Support (C) 2004-2007 Ingo Molnar
[    0.000000] Preemptible RCU implementation.
[    0.000000] NR_IRQS:288
[    0.000000] Extended CMOS year: 2000
[    0.000000] Fast TSC calibration using PIT
[    0.000000] Detected 1595.880 MHz processor.
[    0.000999] Console: colour VGA+ 80x25
[    0.000999] console [tty0] enabled
[    0.000999] hpet clockevent registered
[ 0.000999] HPET: 3 timers in total, 0 timers will be used for per-cpu timer [ 0.000999] Calibrating delay loop (skipped), value calculated using timer frequency.. 3191.76 BogoMIPS (lpj=1595880)
.... parts skipped
[    0.000999] CPU: Intel(R) Atom(TM) CPU Z530   @ 1.60GHz stepping 02
.... parts skipped
[    7.939023] e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2
[    7.939031] e1000e: Copyright (c) 1999-2008 Intel Corporation.
[ 7.939118] e1000e 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    7.939163] e1000e 0000:01:00.0: setting latency timer to 64
[ 7.939335] 0000:01:00.0: 0000:01:00.0: Failed to initialize MSI-X interrupts. Falling back to MSI interrupts.
[    7.939498] e1000e 0000:01:00.0: irq 24 for MSI/MSI-X
[    8.011046] Uniform Multi-Platform E-IDE driver
[    8.038179] usbcore: registered new interface driver usbfs
[    8.038230] usbcore: registered new interface driver hub
[ 8.046165] 0000:01:00.0: eth0: (PCI Express:2.5GB/s:Width x1) 00:a0:10:00:96:3e
[    8.046173] 0000:01:00.0: eth0: Intel(R) PRO/1000 Network Connection
[    8.046264] 0000:01:00.0: eth0: MAC: 3, PHY: 8, PBA No: ffffff-0ff
[ 8.046324] e1000e 0000:02:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    8.046367] e1000e 0000:02:00.0: setting latency timer to 64
[ 8.046545] 0000:02:00.0: 0000:02:00.0: Failed to initialize MSI-X interrupts. Falling back to MSI interrupts.
[    8.046708] e1000e 0000:02:00.0: irq 25 for MSI/MSI-X
.... parts skipped
[ 8.141879] 0000:02:00.0: eth1: (PCI Express:2.5GB/s:Width x1) 00:a0:10:00:96:3d
[    8.141887] 0000:02:00.0: eth1: Intel(R) PRO/1000 Network Connection
[    8.141979] 0000:02:00.0: eth1: MAC: 3, PHY: 8, PBA No: ffffff-0ff
.... parts skipped
[   11.505563] e1000e 0000:01:00.0: irq 24 for MSI/MSI-X
[   11.560337] e1000e 0000:01:00.0: irq 24 for MSI/MSI-X
[   11.561155] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 13.155482] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[   13.155490] 0000:01:00.0: eth0: 10/100 speed: disabling TSO
[   13.155919] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   23.322083] eth0: no IPv6 routers present
[   52.606983] EtherCAT: Master driver devel unknown
[   52.608788] EtherCAT: 1 master waiting for devices.
[ 52.647171] ec_generic: EtherCAT master generic Ethernet device module devel unknown
[   52.647191] EtherCAT: Accepting device 00:A0:10:00:96:3E for master 0.
[   52.647213] ec_generic: Binding socket to interface 2 (eth0).
[   52.656062] EtherCAT 0: Starting EtherCAT-IDLE thread.
[   52.656148] EtherCAT 0: Link state changed to UP.
[   52.657230] EtherCAT 0: 1 slave(s) responding.
[   52.657238] EtherCAT 0: Slave states: INIT.
[   52.658208] EtherCAT WARNING 0: 1 datagram TIMED OUT!
[   52.658676] EtherCAT 0: Scanning bus.
[ 52.665683] EtherCAT ERROR 0-0: Reception of SII read datagram failed: No response. [ 52.665932] EtherCAT ERROR 0-0: Failed to determine SII content size: Reading word offset 0x0040 failed. Assuming 64 words. [ 52.668673] EtherCAT ERROR 0-0: Reception of SII read datagram failed: No response.
[   52.668922] EtherCAT ERROR 0-0: Failed to fetch SII contents.
[   52.669216] EtherCAT 0: Bus scanning completed in 12 ms.


_______________________________________________
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users


Mit freundlichem Gruß

Andreas Stewering-Bone

--
------------------------------------------------------------------------

Dipl.-Ing.(FH) Andreas Stewering-Bone
andreas.stewering-b...@igh-essen.com
Tel.: +49 201 / 36014-15

Ingenieurgemeinschaft IgH
Gesellschaft für Ingenieurleistungen mbH
Heinz-Bäcker-Str. 34
D-45356 Essen
Amtsgericht Essen HRB 11500
USt-Id.-Nr.: DE 174 626 722
Geschäftsführung:
- Dr.-Ing. S. Rotthäuser,
- Dr.-Ing. T. Finke,
- Dr.-Ing. W. Hagemeister
Tel.: +49 201 / 360-14-0
http://www.igh-essen.com

------------------------------------------------------------------------

_______________________________________________
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to