Ask Your Question
0

EtherCAT command enum invalid

asked 2026-06-02 03:19:41 +0000

In some previous version, I can use filter such as ecat.cmd == BRD to find specific datagram of EtherCAT.
However in Version 4.6.6 or other recent versions, I can't do that and there is "BRD" cannot be found among the possible values for ecat.cmd. displaying at the bottom of the software.
I will appreciate it if support for doing that could be restored.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2026-06-02 03:45:46 +0000

Chuckc gravatar image

fc06600d: EtherCAT: General improvements

         { &hf_ecat_cmd,
           { "Command", "ecat.cmd",
-             FT_UINT8, BASE_HEX, VALS(EcCmdShort), 0x0, NULL, HFILL }
+            FT_UINT8, BASE_HEX, VALS(EcCmdLong), 0x0, NULL, HFILL }
         },

Field was changed to use the long value strings:
ecat.cmd == "Broadcast Read"

The sub cmd fields still use short name:
ecat.sub1.cmd == BRD still supported but ecat.sub1.cmd == "BRD" preferred.

packet-ethercat-datagram.c:

static const value_string EcCmdLong[] =
{
   {     0, "No operation" },
   {     1, "Auto Increment Physical Read" },
   {     2, "Auto Increment Physical Write" },
   {     3, "Auto Increment Physical ReadWrite" },
   {     4, "Configured address Physical Read" },
   {     5, "Configured address Physical Write" },
   {     6, "Configured address Physical ReadWrite" },
   {     7, "Broadcast Read" },
   {     8, "Broadcast Write" },
   {     9, "Broadcast ReadWrite" },
   {    10, "Logical Read" },
   {    11, "Logical Write" },
   {    12, "Logical ReadWrite" },
   {    13, "Auto Increment Physical Read Multiple Write" },
   {    14, "Configured Address Physical Read Multiple Write" },
   {   255, "EXT" },
   {   0, NULL }
};

edit flag offensive delete link more

Comments

Thanks, I tried your method and it works.
However, writing the full name is still quite troublesome.
And sub* need to traverse to find each sub-datagrams.

Tenportion gravatar imageTenportion ( 2026-06-02 03:57:30 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2026-06-02 03:19:41 +0000

Seen: 4 times

Last updated: 21 mins ago