Hi, I've just upgraded to wireshark 2.2.3 from 1.6.5 (I think it was). I use the following command to extract information from EtherCAT frames:
In the previous version the ecat.data field would output data from all datagrams but in the latest version it is only outputting data from the first three datagrams. My EtherCAT frames generally have either 4 for 5 datagrams. If I use -e ecat.sub4.data, no data is output (blank lines). If I use -e ecat.sub5.data then if there is a fifth datagram it is output. Here is a summary of a frame with 4 datagrams:
Is there any other information I need to supply to help figure out why datagram 4 is not outputting its data? Thanks, G. A capture file can be found here: https://1drv.ms/u/s!AoLeUQXl-H0MgQmMddI1ja_Yob95 Note: the frames with 4 or more datagrams are further down the capture. asked 09 Jan '17, 20:56 grf edited 10 Jan '17, 00:48 showing 5 of 6 show 1 more comments |
One Answer:
answered 10 Jan '17, 02:30 Jaap ♦ I'm away from the computer till tomorrow so will check it out then. Thanks (10 Jan '17, 02:37) grf Thanks. The field I needed to use is ecat.reg.dc.systimeL (10 Jan '17, 13:58) grf |
A sample capture file would be nice.
Sorry, couldn't find how to attach a file, can you let me know how? In the meantime I've added a link for one. Thanks, G.
A link to the file is fine (and the only way, there's no attachment option here).
When I look at the details of the frames in Wireshark (2.2.2), in this case the first one with 4 datagrams, frame 815, I see that there is no field ecat.data in the last datagram, only interpreted timestamps. What data were you expecting?
The ones I'm interested are mostly from around frame 2719, before that there's also a whole lot of configuration frames with other datagrams.
It's the "EtherCAT datagram: Cmd: 'FRMW' (14), Len: 4, Adp 0x3, Ado 0x910, Cnt 4" datagram that I want. This datagram should have 4 bytes of data, which is a 32bit timestamp from an EtherCAT slave.
Note: I've got "enable disector" checked under the ESL protocol to show the extended EtherCAT Switch Link data at the end of the frame. Otherwise it shows this data as Pad bytes.
Also, looking at frame 815, although its not the one I'm interested in it should still have 24 bytes of data. It is also timestamp related information.
(EtherCAT datagram: Cmd: 'FPRD' (4), Len: 24, Adp 0x1, Ado 0x910, Cnt 1)