Hello,

we have a little file system in our slave device which we access via FoE
read requests.
For small files there is no problem, but with larger files the transfer
aborts after the 9th
packet is send to the master but the master gives the error message


Failed to write via FoE: FOE_MBOX_FETCH_ERROR


The syslog log like that:


Jun 2 09:33:42 syncat kernel: [228127.471701] EtherCAT ERROR 0-0: Data do
not fit in receive buffer!
Jun 2 09:33:42 syncat kernel: [228127.476400] EtherCAT ERROR 0-0: Corrupt
mailbox response received!
Jun 2 09:33:42 syncat kernel: [228127.476407] EtherCAT DEBUG: 00 14 00 04
22 02 01 00 08 00 00 00 73 20 65 74
Jun 2 09:33:42 syncat kernel: [228127.476413] EtherCAT DEBUG: 20 61 63 63
75 73 61 6D 20 65 74 20 6A 75 73 74
Jun 2 09:33:42 syncat kernel: [228127.476419] EtherCAT DEBUG: 6F 20 64 75
6F 20 64 6F 6C 6F 72 65 73 20 65 74
Jun 2 09:33:42 syncat kernel: [228127.476424] EtherCAT DEBUG: 20 65 61 20
72 65 62 75 6D 2E 20 53 74 65 74 20
Jun 2 09:33:42 syncat kernel: [228127.476429] EtherCAT DEBUG: 63 6C 69 74
61 0A 6B 61 73 64 20 67 75 62 65 72
Jun 2 09:33:42 syncat kernel: [228127.476434] EtherCAT DEBUG: 67 72 65 6E
2C 20 6E 6F 20 73 65 61 20 74 61 6B
Jun 2 09:33:42 syncat kernel: [228127.476439] EtherCAT DEBUG: 69 6D 61 74
61 20 73 61 6E 63 74 75 73 20 65 73
Jun 2 09:33:42 syncat kernel: [228127.476444] EtherCAT DEBUG: 74 20 4C 6F
72 65 6D 20 69 70 73 75 6D 20 64 6F
Jun 2 09:33:42 syncat kernel: [228127.476449] EtherCAT DEBUG: dropped 769
bytes
Jun 2 09:33:42 syncat kernel: [228127.476451] EtherCAT DEBUG: 63 6F 6E 73
65 74 65 74 75 72 20 73 61 64 69
Jun 2 09:33:42 syncat kernel: [228127.476456] EtherCAT DEBUG: 70 73 63 69
6E 67 20 65 6C 69 74 72 2C 20 20 73
Jun 2 09:33:42 syncat kernel: [228127.476461] EtherCAT DEBUG: 65 64 20 64
69 61 6D 20 6E 6F 6E 75 6D 79 0A 65
Jun 2 09:33:42 syncat kernel: [228127.476466] EtherCAT DEBUG: 69 72 6D 6F
64 20 74 65 6D 70 6F 72 20 69 6E 76
Jun 2 09:33:42 syncat kernel: [228127.476471] EtherCAT DEBUG: 69 64 75 6E
74 20 75 74 20 6C 61 62 6F 72 65 20
Jun 2 09:33:42 syncat kernel: [228127.476476] EtherCAT DEBUG: 65 74 20 64
6F 6C 6F 72 65 20 6D 61 67 6E 61 20
Jun 2 09:33:42 syncat kernel: [228127.476481] EtherCAT DEBUG: 61 6C 69 71
75 79 61 6D 20 65 72 61 74 2C 20 73
Jun 2 09:33:42 syncat kernel: [228127.476486] EtherCAT DEBUG: 65 64 20 64
69 61 6D 0A 76 6F 6C 75 70 74 75 61
Jun 2 09:33:42 syncat kernel: [228127.476492] EtherCAT ERROR 0-0: Failed to
handle FoE request.


This is interesting since the packet is constructed the same as the
previous 8 data packets (you can also take a look at
the attached wireshark snippet).


We tried different files and all files larger ~9k break at the 9th packet
the same way. Our mailbox syncmanager for
these tests has a size of 1024 bytes. We also tried to read the same file
with TwinCAT and there we don't get this
error. The file is completely downloaded.


We use this fork of the Etherlab master which is in the low level still
Version 1.5.2.
https://github.com/synapticon/Etherlab_EtherCAT_Master



For me it looks like a buffer filling up somewhere, but a first look into
fsm_foe didn't show up something like that. Anybody
has a idea where to look to solve this issue?




Thanks,
Frank
-- 

*Frank Jeschke*
Senior Software Developer
------------------------------

*Synapticon* | Robotic Control Systems
Mobile: +49 173 / 3274611
Direct: +49 7031 / 30 478 - 29
Fax: +49 7031 / 30 478 - 99

*synapticon.com* <https://www.synapticon.com/> | Twitter
<https://twitter.com/#!/synapticon_co> | Facebook
<https://fb.com/Synapticon>

Synapticon GmbH | Daimlerstraße 26 | 71101 Schönaich, Germany
Secretary +49 7031 / 30 478 -0 | Managing Director: Nikolai Ensslen
Amtsgericht Stuttgart HRB 756076 | USt-ID DE271647127

This message and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. Please notify the sender immediately if you have received this
e-mail by mistake and delete it from your system.

Attachment: 2017-06-02-foe_read_9th_packet_error.pcapng
Description: Binary data

_______________________________________________
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to