You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A uniform way do interact with importer/exporter #122
Yes, It sounds good to me.
For CANopenNode exporters I suggest to add exporters for v1.3(legacy) and v4.0 separately. And remove "ExporterFactory" (and remove exporter selection in preferences.)
exporter selection in preferences is used also in "DeviceODView.cs", which was introduced by me with version v4. But I don't like it - it slightly changes user interface according to canopennode version selection. For example, if v4 exporter is selected, exotic datatypes like UNSIGNED24 are not used, pdo and sdo access are handled differently.
Or maybe we can keep selection in preferences, bit rename it from "Selected exporter" to something else and use that preference only in "DeviceODView.cs"
It looks like its only affecting the pdo communication index(s) and removing/adding subindexes based on what is supported by different CanOpenNode versions...does that make sense?
So i suggest to change/fix it in the different canopennode exporters and generate a warning if something is changed.
Sounds good or?
Not sure if when the changes are done, should it be fixed in the "EDS" structure (permanent changes is done to the "eds" file) or just fix in on export?
I think it would be nice to fix in permanently as long as it is warned about
Correct, in buildmappingsfromliststhe all the RX /TX communication objects and the mapping are created from scratch in the OD (based on the PDO list)
The differences between the CANopeNode V1.3/V4 versions are taken into account.
I agree with you that it should be a matter for the exporter to take the differences into account.
I can't think of any reason why this shouldn't work.
CANopenNode v1.3 (legacy) requires exact structure shape for PDO communication parameter, both RPDO and TPDO (and also for PDO mapping parameters). So that exporter should be fixed. It should add "compatibility entry" automatically, adapt "Highest sub-index supported" for RPDO, exclude "Event timer" for RPDO.
CANopenNode V4 don't have such requirements, it is not strict about PDO structure shape, it should already add warnings when necessary.
I suggest removing "isCANopenNode_V4" condition and make PDOhelper work as for CANopenNode V4 and add adaptions into legacy exporter.
Here are OD requirements for V1.3: CO_OD.h and CO_PDO.h. Structures must match.
Merged PR #237 introduces XddLoader.Load and LoadNetwork, selecting XDD schema 1.0/1.1 from XML namespaces and updating CLI, both editor UIs and network imports. It removes speculative dual-parser loading, but does not provide the entire importer registry/EDS/protobuf abstraction requested here. Keeping this broader API design task open.
Activity
trojanobelix commentedon Jul 17, 2024
For the strings, it sounds good to me.
CANopenNode commentedon Jul 19, 2024
Yes, It sounds good to me.
For CANopenNode exporters I suggest to add exporters for v1.3(legacy) and v4.0 separately. And remove "ExporterFactory" (and remove exporter selection in preferences.)
exporter selection in preferences is used also in "DeviceODView.cs", which was introduced by me with version v4. But I don't like it - it slightly changes user interface according to canopennode version selection. For example, if v4 exporter is selected, exotic datatypes like UNSIGNED24 are not used, pdo and sdo access are handled differently.
Or maybe we can keep selection in preferences, bit rename it from "Selected exporter" to something else and use that preference only in "DeviceODView.cs"
trojanobelix commentedon Jul 22, 2024
I don't like the exporter selection in preferences either. It would be nice if there was a more elegant solution.
nimrof commentedon Jul 22, 2024
something like this?

or is it possible/better to make a universal c/h file?
CANopenNode commentedon Jul 22, 2024
Yes, this is OK. But you can also move CANopenNode exporter near other exporters into "Export..." Whatever you prefer.
I don't like that, files are too different.
nimrof commentedon Jul 22, 2024
Okay, then it will be something like the image AND into export
That would not alienate users (we can remove the CanOpenNode export) later
ok, I understand
nimrof commentedon Jul 24, 2024
Hi @CANopenNode & @trojanobelix
Starting to figure out why CanOpenNode version is a config thing
This function is called almost every time something in the OD changes.
CANopenEditor/libEDSsharp/PDOHelper.cs
Line 375 in 40c02b3
It looks like its only affecting the pdo communication index(s) and removing/adding subindexes based on what is supported by different CanOpenNode versions...does that make sense?
CANopenEditor/libEDSsharp/PDOHelper.cs
Lines 427 to 434 in 40c02b3
CANopenEditor/libEDSsharp/PDOHelper.cs
Lines 451 to 455 in 40c02b3
CANopenEditor/libEDSsharp/PDOHelper.cs
Lines 474 to 481 in 40c02b3
So i suggest to change/fix it in the different canopennode exporters and generate a warning if something is changed.
Sounds good or?
Not sure if when the changes are done, should it be fixed in the "EDS" structure (permanent changes is done to the "eds" file) or just fix in on export?
I think it would be nice to fix in permanently as long as it is warned about
trojanobelix commentedon Jul 25, 2024
Correct, in buildmappingsfromliststhe all the RX /TX communication objects and the mapping are created from scratch in the OD (based on the PDO list)
The differences between the CANopeNode V1.3/V4 versions are taken into account.
I agree with you that it should be a matter for the exporter to take the differences into account.
I can't think of any reason why this shouldn't work.
CANopenNode commentedon Jul 26, 2024
I think I made that in 32ef9eb
CANopenNode v1.3 (legacy) requires exact structure shape for PDO communication parameter, both RPDO and TPDO (and also for PDO mapping parameters). So that exporter should be fixed. It should add "compatibility entry" automatically, adapt "Highest sub-index supported" for RPDO, exclude "Event timer" for RPDO.
CANopenNode V4 don't have such requirements, it is not strict about PDO structure shape, it should already add warnings when necessary.
I suggest removing "isCANopenNode_V4" condition and make PDOhelper work as for CANopenNode V4 and add adaptions into legacy exporter.
Here are OD requirements for V1.3: CO_OD.h and CO_PDO.h. Structures must match.
robincornelius commentedon Oct 20, 2026
Merged PR #237 introduces XddLoader.Load and LoadNetwork, selecting XDD schema 1.0/1.1 from XML namespaces and updating CLI, both editor UIs and network imports. It removes speculative dual-parser loading, but does not provide the entire importer registry/EDS/protobuf abstraction requested here. Keeping this broader API design task open.