Closed CDIdneo closed 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
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:
Entry 0x1005 (COB-ID SYNC): I edit this entry to set the bit 30 in order to make the node produce SYNC messages, but when executed this bit is 0 (like I never set it).
Entry 0x1006 (Communication cycle period): I try to set this parameter to 1000000 us, to send the SYNC mentioned above every second. But, similiar as before, once executed it seems like this parameter resets to 0 (thus not sending any SYNC)
TPDO mapping and comm. parameters: Seems like whatever setting I create here, it just does not apply. It does not work when I set it to be triggered every SYNC; same luck with the time-triggered method.
Creation of Manufacturer specific parameters: For example, I tried to create a variable unsigned 8 in the addres 0x2500, accesible by SDO. When I try to read this variable with a SDO, it reports the error: "[0] ERROR:0x06020000 #Object does not exist."
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