OpenEtherCATsociety / SOES

Simple Open Source EtherCAT Slave
Other
587 stars 251 forks source link

Incorrect State Initialization in FOE for Large File Transfers #172

Closed DingdangDa closed 6 months ago

DingdangDa commented 6 months ago

I'm using SOEM's firm_update and SOES for FOE implementation. For larger file transfers requiring multiple FOE_Data.req, after executing the FOE_data() function, FOE_init() incorrectly sets the state machine back to FOE_READY and resets foepacket to 0. This unexpected initialization disrupts the process. Here's the problematic code segment:

DingdangDa commented 6 months ago

Sorry, the issue was caused by something else.