[Etherlab-dev] FoE for bigger files with unofficial patchset

Boris Skegin boris.skegin.de at googlemail.com
Sun May 16 14:45:04 CEST 2021


Hello.

We use https://github.com/ribalda (IgH EtherCAT Master + Gavin Lambert
unofficial patchset).

We could successfully write a config file to our Copley slave with

ethercat foe_write -p0 Ourfile.xml .

But reading this file back with

ethercat foe_read -p0 -o output.xml devcfg.xml

was not possible, as first we got an error message about rx_buffer
being too small. Seemed reasonable since our file is about 90 KB.

So we increased the buffer size in
https://github.com/ribalda/ethercat/blob/master/tool/CommandFoeRead.cpp#L117
up to 100000 bytes, this caused the following error messages in the kernel log:

[Tue May 11 12:00:38 2021] EtherCAT 0: Slave states on main device: PREOP.
[Tue May 11 12:01:15 2021] EtherCAT ERROR 0-main-0: Received packet
number 0, expected 256.
[Tue May 11 12:01:15 2021] EtherCAT ERROR 0-main-0: Failed to handle
FoE request.
[Tue May 11 12:01:59 2021] EtherCAT ERROR 0-main-0: Received packet
number 0, expected 256.
[Tue May 11 12:01:59 2021] EtherCAT ERROR 0-main-0: Failed to handle
FoE request.

So our naive approach failed.
Nevertheless: is there a quick remedy for this?

Thanks.

boris


More information about the Etherlab-dev mailing list