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

Use SDO to achieve Req and answer method #164

Open
Lambo0604 opened this issue Nov 22, 2023 · 1 comment
Open

Use SDO to achieve Req and answer method #164

Lambo0604 opened this issue Nov 22, 2023 · 1 comment

Comments

@Lambo0604
Copy link

In the early, I used CAN messages to download the bin file of the master-slave node, such as a question and answer method. Now I want to use EtherCAT as a pipeline to download the bin file (non-FOE method), such as applying for SDO_Req and SDO_Resp, the master writes SDO_Req, and the slave reads the Req and puts the response in SDO_Resp, which is read by the master. In this way, one question and one answer is achieved. EtherCAT is only used as a transmission medium. I tested and found 100 Byte's question and answer takes 9ms. Is this method feasible? If it is feasible, is there any way to optimize the time consumption, because the mailbox size 0x80 seems to be unable to be expanded, and the time consumption is too large, which will lead to a relatively small bandwidth;
Thanks a lot!
Attached are packet captures downloaded and uploaded by SDO for time-consuming analysis~
SDO_100Byte_Write_Read.zip

@nakarlsson
Copy link
Contributor

@Lambo0604 , sorry for late response, you can increase the bandwidth using bigger Mailboxes. 128 is quite common but 256,512, 1024 should work equally good.
You need to adjust the ESI,SII and SOES source accordingly.

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

2 participants