[etherlab-dev] EoE IP command patch

Graeme Foot Graeme.Foot at touchcut.com
Wed Feb 6 22:35:29 CET 2019


Hi,

FYI, I've updated my EoE patches and added a new one.

0001-eoe-addif-delif-tools.patch

This has been updated so that if the "eoe_autocreate" flag is 1 (true) then static "eoe_interfaces" can still be used, resulting in a combination of static and dynamic EoE ifaces.  I'm doing this so I can have static iface ports for my switch devices (EL6601, EL6614 modules) and dynamic iface ports for my Yaskawa sigma 7 amps which support configuration via EoE.


0002-eoe-via-rtdm.patch

Line number changes due to the above patch.


0003-eoe-ip.patch

This is a new patch to fix some EoE bugs to do with the "ethercat ip" command.  The ip command allows you to set the MAC, IP address, subnet mask, gateway, DNS server and name on an EoE device.  This command was returning errors saying it had timed out.  This was due to the EoE frame thread receiving and dropping the reply from the ip command.  I'm not sure if this became a problem due to the mailbox patches or whether it would have been a problem anyway.  Note: the ip command would also drop mailbox replies that were meant to go to the EoE frame thread handler.

To resolve this I have created two EoE mailbox reply caches.  One for the EoE frame thread and one for the ip command.

Secondly the EtherCAT master was packing the ip command data, so if an item was not being set subsequent items would not leave a space for it and dynamically sizing the data structure.  The ETG.1000.6 standard shows the ip command (EoE Init Request) data structure requires the data to have fixed positions and to leave space for unused items.  It is also a fixed size.  I have confirmed this with Beckhoff.


Regards,
Graeme Foot.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20190206/3340f88c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-eoe-addif-delif-tools.patch
Type: application/octet-stream
Size: 75299 bytes
Desc: 0001-eoe-addif-delif-tools.patch
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20190206/3340f88c/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-eoe-via-rtdm.patch
Type: application/octet-stream
Size: 14987 bytes
Desc: 0002-eoe-via-rtdm.patch
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20190206/3340f88c/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-eoe-ip.patch
Type: application/octet-stream
Size: 15808 bytes
Desc: 0003-eoe-ip.patch
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20190206/3340f88c/attachment-0005.obj>


More information about the etherlab-dev mailing list