robincornelius / libedssharp

A CanOpen EDS editor and library in C# with CanOpenNode export for Object Dictionary
GNU General Public License v3.0
227 stars 134 forks source link

Object Dictionary editor seems not to save properly #249

Closed CDIdneo closed 3 years ago

CDIdneo commented 3 years ago

Hi everyone,

I'm having some problems which are kind of driving me crazy, and I am starting to think it may be a problem with the editor (I could be completely wrong though)

I'm editing a CANopenNode OD, opening the _project.xml file provided with the example, in my windows computer. Everything seems to work correctly, I can save the xdd, export it as a xml again and generate the CO_OD.c/.h files. The problem comes when I pass these files to my Linux VM to simulate a CANopenNode device with terminal with the given OD.

It feels like some entries don't save, or the data on them gets corrupted or simply gets different values. Some things work properly, for example the HB producer parameter, if I set it to 5000 ms with the editor, once I execute the node it produces heartbeats every 5 s.

But things that does not seem to work:

If the problem is not the editor, but my methodology or approach, I apologize in advcance, and would really appreciate If someone can please shed a light on my project.

Thanks in advance, Carlos

CDIdneo commented 3 years ago

I found out the problem:

It is not enough to just update the CO_OD.c/.h files for the CANopenNode SocketLinux example, it is also needed to recompile. By executing "make" in terminal right after copying the updated OD, all of the problems described above seem to dissapear.

Sorry for the inconveniences, I close this issue and I hope this helps others in the future, Carlos