ICube-Robotics / ethercat_driver_ros2

Hardware Interface for EtherCAT module integration with ros2_control
https://icube-robotics.github.io/ethercat_driver_ros2/
Apache License 2.0
156 stars 45 forks source link

ioctl() version magic is differing: /dev/EtherCAT0: 33, ethercat tool: 31 #134

Open ibrahimsel opened 5 months ago

ibrahimsel commented 5 months ago

[ethercat_sdo_srv_server-5] [ERROR] [1719907935.360533917] [ethercat_manager]: ioctl() version magic is differing: /dev/EtherCAT0: 33, ethercat tool: 31

I'm getting the above error when I try to set an sdo with the following ros2 service:

ros2 service call /ethercat_manager/set_sdo ethercat_msgs/srv/SetSdo "{master_id: 0, slave_position: 0, sdo_index: 0x60ff, sdo_subindex: 0, sdo_data_type: 'int32', sdo_value: '1000'}"

the output of uname -r: 6.5.0-21-generic

the output of modinfo ec_master: Screenshot from 2024-07-02 11-25-03 Does this really pose a threat? If so, can you provide some guidance about a possible fix?

mcbed commented 5 months ago

this is definitely a bug with the versioning between Etherlab and this stack. As a fix, you just need to recompile the ethercat_manager package with that line modified and it should work.