OpenEtherCATsociety / SOES

Simple Open Source EtherCAT Slave
Other
559 stars 244 forks source link

Use SDO to achieve Req and answer method #164

Open Lambo0604 opened 7 months ago

Lambo0604 commented 7 months ago

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