[etherlab-users] "Invalid mailbox configuration", how to configure?
Stefan Löfgren
stlo at dontdownload.com
Mon Mar 17 15:45:08 CET 2008
You bet I'll make another try. Seems to be working (se below).
Do you also have an explaination to the message in syslog:
Mar 17 16:08:07 lablinux kernel: EtherCAT ERROR: Mailbox error response
received from slave 0 - Code 0x0002: "MBXERR_UNSUPPORTEDPROTOCOL".
Mar 17 16:08:07 lablinux kernel: EtherCAT ERROR: Failed to read mapped Pdo
index from slave 0.
Mar 17 16:08:07 lablinux kernel: EtherCAT ERROR: Mailbox error response
received from slave 0 - Code 0x0004: "MBXERR_SERVICENOTSUPPORTED".
/S
root at lablinux:~# cat /sys/ethercat/master0/slave000/info
Ring position: 0
State: PREOP (PREOP)
Flags: ok
Data link status:
Port 0: Phy 255 (unknown), Link up, Loop open, Signal detected
Port 1: Phy 255 (unknown), Link down, Loop closed, No signal
Port 2: Phy 255 (unknown), Link down, Loop closed, No signal
Port 3: Phy 255 (unknown), Link down, Loop closed, No signal
Identity:
Vendor ID: 0x00000014 (20)
Product code: 0x000006C9 (1737)
Revision number: 0x00000003 (3)
Serial number: 0x00000000 (0)
Mailboxes:
RX: 0x0000/0, TX: 0x0000/0
Supported protocols: CoE
Sync managers / Pdo mapping:
SM0: addr 0x1800, size 20, control 0x26, enable
No Pdos mapped.
SM1: addr 0x1832, size 20, control 0x22, enable
No Pdos mapped.
SM2: addr 0x1000, size 8, control 0x24, enable
No Pdos mapped.
SM3: addr 0x1100, size 8, control 0x20, enable
No Pdos mapped.
---------- Original Message -----------
From: Florian Pose <fp at igh-essen.com>
To: etherlab-users at lists.etherlab.org
Sent: Mon, 17 Mar 2008 15:26:40 +0100
Subject: Re: [etherlab-users] "Invalid mailbox configuration", how to configure?
> On Mon, Mar 17, 2008 at 12:39:44PM +0100, Stefan Löfgren wrote:
> > More info on that seg-fault:
> >
> > The number of SMs seems to be ok.
> > The segmentation fault is in here somewhere (I don't know exactly where yet):
> >
> > Row 833-848 (approx. in file "master/slave.c")
> >
> > list_for_each_entry(pdo, &sync->mapping.pdos, list) {
> > buf += sprintf(buf, " %s 0x%04X \"%s\"\n",
> > pdo->dir == EC_DIR_OUTPUT ? "RxPdo" : "TxPdo",
> > pdo->index, pdo->name ? pdo->name : "???");
> >
> > list_for_each_entry(pdo_entry, &pdo->entries, list) {
> > buf += sprintf(buf,
> > " 0x%04X:%X \"%s\", %u bit\n",
> > pdo_entry->index, pdo_entry->subindex,
> > pdo_entry->name ? pdo_entry->name : "???",
> > pdo_entry->bit_length);
>
> Oh, I can see the reason. The internal sync manager structure is not
> a flat one. I should have made a deep copy... ;-)
>
> Sorry for the inconvenience. This one should fix the bug:
>
> http://etherlab.org/download/ethercat-1.4.0-pre-trunk-r1088.tar.bz2
>
> Could you please have another try?
>
> --
> Best regards,
> Florian Pose
>
> http://etherlab.org
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at lists.etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users
------- End of Original Message -------
More information about the Etherlab-users
mailing list