Discussion:
[Etherlab-dev] FoE for bigger files with unofficial patchset
Boris Skegin
2021-05-16 12:45:04 UTC
Permalink
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
--
Etherlab-dev mailing list
Etherlab-***@etherlab.org
https:/
Loading...