[etherlab-users] mini.c modify
Drew Bertwistle
Drew.Bertwistle at lightsource.ca
Thu Jun 25 21:48:43 CEST 2009
Dear Dr. Pose,
I have changed this portion of the code:
const static ec_pdo_entry_reg_t domain1_regs[] = {
{AnaInSlavePos, MTS, 0x3101, 1, &off_ana_in},
{}
};
I have also changed the debug level to 1 as you suggested and posted a
portion of the syslog below:
Jun 25 13:20:59 bertwistle kernel: [ 197.574895] EtherCAT: Master
driver 1.4.0 r1611
Jun 25 13:20:59 bertwistle kernel: [ 197.576213] EtherCAT: 1 master
waiting for devices.
Jun 25 13:20:59 bertwistle avahi-daemon[4580]: Interface eth0.IPv4 no
longer relevant for mDNS.
Jun 25 13:20:59 bertwistle avahi-daemon[4580]: Leaving mDNS multicast
group on interface eth0.IPv4 with address 169.254.5.7.
Jun 25 13:20:59 bertwistle NetworkManager: <info> SWITCH: terminating
current connection 'eth0' because it's no longer valid.
Jun 25 13:20:59 bertwistle NetworkManager: <info> Deactivating device
eth0.
Jun 25 13:20:59 bertwistle avahi-autoipd(eth0)[5403]: if_indextoname()
failed: No such device or address
Jun 25 13:20:59 bertwistle avahi-autoipd(eth0)[5403]: Callout STOP,
address 169.254.5.7 on interface (null)
Jun 25 13:20:59 bertwistle avahi-autoipd(eth0)[5404]: if_indextoname()
failed: No such device or address
Jun 25 13:20:59 bertwistle avahi-daemon[4580]: Withdrawing address
record for fe80::a00:27ff:fec4:7c on eth0.
Jun 25 13:20:59 bertwistle avahi-daemon[4580]: Withdrawing address
record for 169.254.5.7 on eth0.
Jun 25 13:20:59 bertwistle kernel: [ 197.763507] ACPI: PCI interrupt
for device 0000:00:03.0 disabled
Jun 25 13:20:59 bertwistle NetworkManager: nm_device_is_802_3_ethernet:
assertion `dev != NULL' failed
Jun 25 13:20:59 bertwistle NetworkManager: nm_device_is_802_11_wireless:
assertion `dev != NULL' failed
Jun 25 13:20:59 bertwistle kernel: [ 197.852538] EtherCAT Intel(R)
PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Jun 25 13:20:59 bertwistle kernel: [ 197.852546] Copyright (c)
1999-2006 Intel Corporation.
Jun 25 13:20:59 bertwistle kernel: [ 197.852722] ACPI: PCI Interrupt
0000:00:03.0[A] -> GSI 19 (level, low) -> IRQ 16
Jun 25 13:20:59 bertwistle NetworkManager: <debug> [1245957659.327482]
nm_hal_device_removed(): Device removed (hal udi is
'/org/freedesktop/Hal/devices/net_08_00_27_c4_00_7c').
Jun 25 13:20:59 bertwistle NetworkManager: <info> Deactivating device
eth0.
Jun 25 13:20:59 bertwistle kernel: [ 198.227975] ec_e1000:
0000:00:03.0: e1000_probe: (PCI:33MHz:32-bit) 08:00:27:c4:00:7c
Jun 25 13:20:59 bertwistle kernel: [ 198.330193] EtherCAT: Accepting
device 08:00:27:C4:00:7C for master 0.
Jun 25 13:20:59 bertwistle kernel: [ 198.333365] EtherCAT: Starting
EtherCAT-IDLE thread.
Jun 25 13:20:59 bertwistle kernel: [ 198.334393] ec_e1000: ec0:
e1000_probe: Intel(R) PRO/1000 Network Connection
Jun 25 13:20:59 bertwistle kernel: [ 198.334886] ec_e1000: ec0:
e1000_watchdog: NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
Jun 25 13:20:59 bertwistle kernel: [ 198.334901] EtherCAT: Link state
changed to UP.
Jun 25 13:20:59 bertwistle kernel: [ 198.337710] EtherCAT: 1 slave(s)
responding.
Jun 25 13:20:59 bertwistle kernel: [ 198.337717] EtherCAT: Slave
states: INIT.
Jun 25 13:20:59 bertwistle kernel: [ 198.339715] EtherCAT: Scanning
bus.
Jun 25 13:20:59 bertwistle kernel: [ 198.512930] EtherCAT: Bus scanning
completed in 176 ms.
Jun 25 13:20:59 bertwistle kernel: [ 198.515317] EtherCAT: Slave
states: PREOP.
Jun 25 13:21:16 bertwistle kernel: [ 215.442348] EtherCAT WARNING: 1
frame CORRUPTED!
Jun 25 13:21:18 bertwistle kernel: [ 216.939100] EtherCAT WARNING: 2
frames CORRUPTED!
Jun 25 13:21:53 bertwistle kernel: [ 252.198571] EtherCAT WARNING: 1
frame CORRUPTED!
Jun 25 13:21:55 bertwistle kernel: [ 253.695319] EtherCAT WARNING: 2
frames CORRUPTED!
Jun 25 13:22:09 bertwistle kernel: [ 267.708828] EtherCAT: Master debug
level set to 1.
Jun 25 13:22:09 bertwistle kernel: [ 267.710140] EtherCAT DEBUG: File
closed.
Jun 25 13:22:20 bertwistle kernel: [ 278.526482] ec_mini: no version
for "ecrt_request_master" found: kernel tainted.
Jun 25 13:22:20 bertwistle kernel: [ 278.532670] ec_mini: Starting...
Jun 25 13:22:20 bertwistle kernel: [ 278.532673] EtherCAT: Requesting
master 0...
Jun 25 13:22:20 bertwistle kernel: [ 278.532675] EtherCAT DEBUG: IDLE
-> OPERATION.
Jun 25 13:22:20 bertwistle kernel: [ 278.532676] EtherCAT: Successfully
requested master 0.
Jun 25 13:22:20 bertwistle kernel: [ 278.532678] EtherCAT DEBUG:
ecrt_master_callbacks(master = 0xf4d9e800, request_cb = 0xf895d010,
release_cb = 0xf895d000, cb_data = 0x0)
Jun 25 13:22:20 bertwistle kernel: [ 278.532679] ec_mini: Registering
domain...
Jun 25 13:22:20 bertwistle kernel: [ 278.532681] EtherCAT DEBUG:
ecrt_master_create_domain(master = 0xf4d9e800)
Jun 25 13:22:20 bertwistle kernel: [ 278.532682] EtherCAT DEBUG:
Created domain 0.
Jun 25 13:22:20 bertwistle kernel: [ 278.532683] EtherCAT DEBUG:
ecrt_master_slave_config(master = 0xf4d9e800, alias = 0, position = 1,
vendor_id = 0x40, product_code = 0x26483052)
Jun 25 13:22:20 bertwistle kernel: [ 278.532685] EtherCAT DEBUG:
Creating slave configuration for 0:1, 0x00000040/0x26483052.
Jun 25 13:22:20 bertwistle kernel: [ 278.532688] EtherCAT DEBUG: Failed
to find slave for configuration 0:1.
Jun 25 13:22:20 bertwistle kernel: [ 278.532692] ec_mini: Configuring
PDOs...
Jun 25 13:22:20 bertwistle kernel: [ 278.532693] EtherCAT DEBUG:
ecrt_slave_config_pdos(sc = 0xebc22c00, n_syncs = 4294967295, syncs =
0xf895e260)
Jun 25 13:22:20 bertwistle kernel: [ 278.532695] EtherCAT DEBUG:
ecrt_slave_config_sync_manager(sc = 0xebc22c00, sync_index = 1, dir = 2)
Jun 25 13:22:20 bertwistle kernel: [ 278.532696] EtherCAT DEBUG:
ecrt_slave_config_pdo_assign_clear(sc = 0xebc22c00, sync_index = 1)
Jun 25 13:22:20 bertwistle kernel: [ 278.532698] EtherCAT DEBUG:
ecrt_slave_config_pdo_assign_add(sc = 0xebc22c00, sync_index = 1,
pdo_index = 0x1A00)
Jun 25 13:22:20 bertwistle kernel: [ 278.532700] EtherCAT DEBUG:
ecrt_slave_config_pdo_mapping_clear(sc = 0xebc22c00, pdo_index = 0x1A00)
Jun 25 13:22:20 bertwistle kernel: [ 278.532702] EtherCAT DEBUG:
ecrt_slave_config_pdo_mapping_add(sc = 0xebc22c00, pdo_index = 0x1A00,
entry_index = 0x3101, entry_subindex = 0x01, entry_bit_length = 16)
Jun 25 13:22:20 bertwistle kernel: [ 278.532704] EtherCAT DEBUG:
ecrt_slave_config_pdo_mapping_add(sc = 0xebc22c00, pdo_index = 0x1A00,
entry_index = 0x3101, entry_subindex = 0x02, entry_bit_length = 32)
Jun 25 13:22:20 bertwistle kernel: [ 278.532706] EtherCAT DEBUG:
ecrt_slave_config_pdo_mapping_add(sc = 0xebc22c00, pdo_index = 0x1A00,
entry_index = 0x3101, entry_subindex = 0x03, entry_bit_length = 32)
Jun 25 13:22:20 bertwistle kernel: [ 278.532708] ec_mini: Registering
PDO entries...
Jun 25 13:22:20 bertwistle kernel: [ 278.532709] EtherCAT DEBUG:
ecrt_domain_reg_pdo_entry_list(domain = 0xf7738a80, regs = 0xf895d3a0)
Jun 25 13:22:20 bertwistle kernel: [ 278.532711] EtherCAT DEBUG:
ecrt_master_slave_config(master = 0xf4d9e800, alias = 0, position = 1,
vendor_id = 0x40, product_code = 0x26483052)
Jun 25 13:22:20 bertwistle kernel: [ 278.532714] EtherCAT DEBUG:
ecrt_slave_config_reg_pdo_entry(sc = 0xebc22c00, index = 0x3101,
subindex = 0x01, domain = 0xf7738a80, bit_position = 0x0)
Jun 25 13:22:20 bertwistle kernel: [ 278.532716] EtherCAT DEBUG: Domain
0: Added 10 bytes, total 10.
Jun 25 13:22:20 bertwistle kernel: [ 278.532717] ec_mini: Activating
master...
Jun 25 13:22:20 bertwistle kernel: [ 278.532718] EtherCAT DEBUG:
ecrt_master_activate(master = 0xf4d9e800)
Jun 25 13:22:20 bertwistle kernel: [ 278.532720] EtherCAT: Domain0:
Logical address 0x00000000, 10 byte, expected working counter 1.
Jun 25 13:22:20 bertwistle kernel: [ 278.532722] EtherCAT: Datagram
domain0-0: Logical offset 0x00000000, 10 byte, type LRD.
Jun 25 13:22:20 bertwistle kernel: [ 278.532723] EtherCAT DEBUG:
Stopping master thread.
Jun 25 13:22:20 bertwistle kernel: [ 278.537922] EtherCAT DEBUG: Master
IDLE thread exiting...
Jun 25 13:22:20 bertwistle kernel: [ 278.545678] EtherCAT: Master
thread exited.
Jun 25 13:22:20 bertwistle kernel: [ 278.545684] EtherCAT DEBUG: FSM
datagram is f4d9eacc.
Jun 25 13:22:20 bertwistle kernel: [ 278.545688] EtherCAT: Starting
EtherCAT-OP thread.
Jun 25 13:22:20 bertwistle kernel: [ 278.565545] ec_mini: Starting
cyclic sample thread.
Jun 25 13:22:20 bertwistle kernel: [ 278.565549] ec_mini: Started.
Jun 25 13:22:20 bertwistle kernel: [ 278.566915] EtherCAT DEBUG:
Operation thread running.
Jun 25 13:22:20 bertwistle kernel: [ 278.605214] ec_mini: 1 slave(s).
Jun 25 13:22:20 bertwistle kernel: [ 278.605215] ec_mini: AL states:
0x02.
Jun 25 13:22:20 bertwistle kernel: [ 278.605216] ec_mini: Link is up.
Jun 25 13:23:11 bertwistle kernel: [ 329.901895] EtherCAT WARNING: 1
frame CORRUPTED!
Jun 25 13:23:14 bertwistle kernel: [ 332.919348] EtherCAT WARNING: 1
frame CORRUPTED!
Jun 25 13:23:21 bertwistle kernel: [ 339.960772] EtherCAT WARNING: 1
frame CORRUPTED!
Jun 25 13:23:37 bertwistle kernel: [ 356.053119] EtherCAT WARNING: 1
frame CORRUPTED!
Jun 25 13:24:18 bertwistle kernel: [ 396.285837] EtherCAT WARNING: 1
frame CORRUPTED!
More information about the Etherlab-users
mailing list