Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Messages reading SDO Etherlab-EthercatMaster1.6 #136

Open
NilsLo opened this issue Jul 12, 2024 · 4 comments
Open

Error Messages reading SDO Etherlab-EthercatMaster1.6 #136

NilsLo opened this issue Jul 12, 2024 · 4 comments

Comments

@NilsLo
Copy link

NilsLo commented Jul 12, 2024

By Reading SDOs 3 Errors occure:

  1. Wrong IOCTL-VERSION_MAGIC
    It is required to Set IOCTL_VERSION_MAGIC to 37 insted 31 in ec_master_async_io.hpp
  2. SDO-Read: Operation not Permitted
    In examples of IGH
    master.open(EcMasterAsync::ReadWrite); is used in upload function.
  3. Reading data as string: Failed to upload SDO: No buffer space available
    IGH uses
  if (data_type->byteSize){
    data.target_size = data_type->byteSize;
  } else{
    data.target_size = DefaultBufferSize;
  }
  data.target = new uint8_t[data.target_size + 1];

in upload function file ethercat_sdo_srv_server.cpp

with default buffer size:

const int  DefaultBufferSize= 64 * 1024;

defined in data_convertion_tools.hpp

@ibrahimsel
Copy link

For 1. you could refer to #134

@szliucm
Copy link

szliucm commented Nov 8, 2024

I've faced the same problem: SDO-Read: Operation not Permitted. Have you solved it?

@NilsLo
Copy link
Author

NilsLo commented Nov 13, 2024

I've faced the same problem: SDO-Read: Operation not Permitted. Have you solved it?

Yes, I could solve it.
I changed in:
ethercat_sdo_srv_server.cpp

void upload(
...
-master.open(EcMasterAsync::Read);
+master.open(EcMasterAsync::ReadWrite);
...

@szliucm
Copy link

szliucm commented Nov 15, 2024

Thanks a lot for your solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants