[etherlab-users] [EXTERNAL] RE: foe_write returns error

Gavin Lambert gavin.lambert at tomra.com
Thu May 28 01:42:20 CEST 2020


The unofficial patchset is at https://sourceforge.net/u/uecasm/etherlab-patches/ci/default/tree/


Gavin Lambert
Senior Software Developer

[cid:logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png]
[cid:compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png]<http://www.compacsort.com> [cid:facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png] <https://www.facebook.com/Compacsort>  [cid:linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png] <https://www.linkedin.com/company/compac-sorting-equipment/>  [cid:youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png] <https://vimeo.com/compacsort>  [cid:twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png] <https://twitter.com/compacsort>  [cid:insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png] <https://www.instagram.com/compacsort/>

COMPAC SORTING EQUIPMENT LTD | 4 Henderson Pl | Onehunga | Auckland 1061 | New Zealand
Switchboard: +64 96 34 00 88 | tomra.com<http://www.tomra.com>

The information contained in this communication and any attachment is confidential and may be legally privileged. It should only be read by the person(s) to whom it is addressed. If you have received this communication in error, please notify the sender and delete the communication.

From: Pierre Kurkdjian
Sent: Thursday, 28 May 2020 11:33
To: etherlab-users at etherlab.org
Subject: Re: [etherlab-users] [EXTERNAL] RE: foe_write returns error

I am using etherlab ethercat 1.5.2.
Which etherlab patchset version supports FoE ?
I also prefer using Twincat but my specification requires firmware update with Etherlab Ethercat.

Thank you very much Gavin for your answer.


From: Gavin Lambert <gavin.lambert at tomra.com<mailto:gavin.lambert at tomra.com>>
Date: Wednesday, May 27, 2020 at 4:24 PM
To: Pierre Kurkdjian <pkurkdjian at gmto.org<mailto:pkurkdjian at gmto.org>>, "etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>" <etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>>
Subject: [EXTERNAL] RE: foe_write returns error

Which version of the Etherlab master are you using?

Out of the box, FoE does not work – you need to use the unofficial patchset version.

Having said that, where possible I’d still recommend using TwinCAT to update the firmware of Beckhoff slaves.


Gavin Lambert
Senior Software Developer


[cid:image001.png at 01D634E4.302669E0]
[cid:image002.png at 01D634E4.302669E0]<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.compacsort.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C75b54f6dbc9a4144040f08d802964330%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637262191676804104&sdata=eRsUT6FqeJfml7OmEwd5FKEgr3GtfuhxFbiTjxjnALQ%3D&reserved=0>[cid:image003.png at 01D634E4.302669E0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FCompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C75b54f6dbc9a4144040f08d802964330%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637262191676814099&sdata=vGysWXP6lExVGnj7jV%2BUA3KCXObvgYLaMKF%2BINdqs8I%3D&reserved=0>[cid:image004.png at 01D634E4.302669E0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fcompac-sorting-equipment%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C75b54f6dbc9a4144040f08d802964330%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637262191676814099&sdata=XkfjwDjXHm9INPukGJOBJXjpXMgqn2WMvRGfNLE4zFM%3D&reserved=0>[cid:image005.png at 01D634E4.302669E0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvimeo.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C75b54f6dbc9a4144040f08d802964330%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637262191676824090&sdata=1AFVPaHFyUORca50zR%2FttNXU0TYGb%2FuVrMb2sVFzrQ8%3D&reserved=0>[cid:image006.png at 01D634E4.302669E0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fcompacsort&data=02%7C01%7Cgavin.lambert%40tomra.com%7C75b54f6dbc9a4144040f08d802964330%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637262191676824090&sdata=2p6L9cM8uDV8dVR%2FBaflsP548fLsHR019WTOXoLkN8w%3D&reserved=0>[cid:image007.png at 01D634E4.302669E0]<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.instagram.com%2Fcompacsort%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C75b54f6dbc9a4144040f08d802964330%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637262191676834084&sdata=uRWc0MA7WD6wEgU09dv5gO8QFZ9LFSSG6pXqtgmh8G4%3D&reserved=0>

COMPAC SORTING EQUIPMENT LTD | 4 Henderson Pl | Onehunga | Auckland 1061 | New Zealand
Switchboard: +64 96 34 00 88 | tomra.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.tomra.com%2F&data=02%7C01%7Cgavin.lambert%40tomra.com%7C75b54f6dbc9a4144040f08d802964330%7C4308d118edd143008a37cfeba8ad5898%7C0%7C1%7C637262191676834084&sdata=EJCGPVVUIUD5B%2FBLPh3LUIB1RZkc%2B6TrgFX1aAUKiwU%3D&reserved=0>

The information contained in this communication and any attachment is confidential and may be legally privileged. It should only be read by the person(s) to whom it is addressed. If you have received this communication in error, please notify the sender and delete the communication.

From: Pierre Kurkdjian
Sent: Thursday, 28 May 2020 05:20
To: etherlab-users at etherlab.org<mailto:etherlab-users at etherlab.org>
Subject: [etherlab-users] foe_write returns error

Hello Etherlab Ethercat community,


I am trying to update the ethercat firmware of a Beckhoff slave using the command “ethercat foe_write”.

I set the ethercat slave to the right state (BOOT state) and then I run the command “ethercat foe_write”. Unfortunately I get an error message (“Failed to write via FoE: FOE_TIMEOUT_ERROR”) and I don’t know whether the firmware has been updated or not.



This is what I do:



$ ethercat -p0 state INIT

$ ethercat -p0 state BOOT

$ ethercat foe_write -p0 -o ECATFW__ the_new_firmware.hex

Failed to write via FoE: FOE_TIMEOUT_ERROR


Notice: the file named “the_new_firmware.hex“ really  exists. If I enter the name of a non-existing file then I get a different error message.
Did someone get the same issue. Thank you for your help.

Best,
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0004.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11439 bytes
Desc: image001.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0070.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1630 bytes
Desc: image002.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0071.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1751 bytes
Desc: image003.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0072.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1856 bytes
Desc: image004.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0073.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 1971 bytes
Desc: image005.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0074.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 20279 bytes
Desc: image006.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0075.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 1507 bytes
Desc: image007.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0076.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png
Type: image/png
Size: 11438 bytes
Desc: logo_compac_5dcf97ef-52f5-498c-8b9b-728410ddffaf.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0077.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png
Type: image/png
Size: 1629 bytes
Desc: compacicon_82e8a8c7-154a-4a32-9720-a5badb6258e0.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0078.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png
Type: image/png
Size: 1750 bytes
Desc: facebook_fa85b924-53b9-45cc-8162-0564f64ec3a3.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0079.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png
Type: image/png
Size: 1855 bytes
Desc: linkedin_4ec016ad-84fa-443c-85a3-b9615a4ccef8.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0080.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png
Type: image/png
Size: 1970 bytes
Desc: youtube_32142163-fc27-4aed-b14d-e8a377f98a6d.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0081.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png
Type: image/png
Size: 20278 bytes
Desc: twitter_d89338d8-98c8-4b65-9a9e-7b1333160b0d.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0082.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png
Type: image/png
Size: 1506 bytes
Desc: insta2_1cd85de9-b3a2-4971-9904-52b2481a7c82.png
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20200527/9df37c90/attachment-0083.png>


More information about the Etherlab-users mailing list