[etherlab-users] ecrt_slave_config_reg_pdo_entry() returns "No such file or directory"
Gary Grobe
ggrobe at houstonmechatronics.com
Tue Sep 10 01:24:28 CEST 2019
I'm working a new userspace app with etherlab and have managed to
discover slaves and configure PDO's and am now at the point of doing
mass registrations of PDO's.
In domain.c is the ecrt_domain_reg_pdo_entry_list() function which
iterates through an array of ec_pdo_entry_reg_t's. As it iterates
through the array, the call stack is roughly ...
ecrt_domain_reg_pdo_entry_list()
ecrt_master_slave_config()
ec_master_add_slave_config()
ecrt_slave_config_reg_pdo_entry()
ioctl()
The first of seven ec_pdo_entry_reg_t objects in the array was
successful. However, on the second iteration of the input array, the
result (errno) from the call to ioctl() in
ecrt_slave_config_reg_pdo_entry() of slave_config.c is failing with "No
such file or directory".
I've triple checked the inputs which appear to be correct, but recall
reading somewhere's that there may be checks to the capabilities of
ioctl() calls handling a device which I'm not clear on. I was hoping
someone might be able to comment or explain if this is the case or have
other ideas as to what might be going on?
The exact message is:
"Failed to register PDO entry: No such file or directory"
--
_The contents of this email message and any attachments are intended solely
for the addressee(s). This message (including any attachments) may contain
confidential, proprietary, privileged and/or private information. The
information is intended to be for the use of the individual or entity
designated above. If you are not the intended recipient of this message,
please notify the sender immediately, and delete the message and any
attachments. _Any disclosure, reproduction, distribution or other use of
this message or any attachments by an individual or entity other than the
intended recipient is prohibited. __
More information about the Etherlab-users
mailing list