[etherlab-users] "Invalid mailbox configuration", how to configure?

Phil Sutter sutter at informatik.hs-furtwangen.de
Thu Mar 13 17:00:28 CET 2008


On Thu, Mar 13, 2008 at 04:04:23PM +0100, Stefan Löfgren wrote:
> <Sm MinSize="16" MaxSize="50" DefaultSize="20" StartAddress="#x1800"
> ControlByte="#x26" Enable="1">MBoxOut</Sm>
> <Sm MinSize="16" MaxSize="50" DefaultSize="20" StartAddress="#x1832"
> ControlByte="#x22" Enable="1">MBoxIn</Sm>

This is the information you need.

> Shouldn't this information be stored in the Eeprom? And how do I transfer this
> information to the slave?

I'm quite sure there is a reason why you find this information in an
XML-file. ;)

Did you try reading out the EEPROM via TwinCAT? There is a chance of
writing a full EEPROM (including the missing information) via
/sys/ethercat/master0/eeprom and having the device rescanned by the
master after that.

> > Mar 13 15:31:46 lablinux kernel: EtherCAT ERROR: Failed to set PREOP 
> > state, slave 0 refused state change (INIT + ERROR).
> > Mar 13 15:31:46 lablinux kernel: EtherCAT ERROR: AL status message 0x0016:
> > "Invalid mailbox configuration".
> > 
> > Mailboxes:
> >   RX mailbox: 0x0000/0, TX mailbox: 0x0000/0
> >   Supported protocols: CoE

Looks like the mailbox registers are missing in the slave's EEPROM. In a
previous mail to this list I explained how one could quick-fix these
problems by manually filling in the information after the slave's EEPROM
has been read out by the master.
AFAIK there is no functionality to configure the mailbox from outside of
the master, yet.

Greetings, Phil



More information about the Etherlab-users mailing list