Open jimy-byerley opened 1 year ago
Name
s.Multiple Names are now also handled.
Hey, unfortunately i'm still unable to load esi-files from Nanotec, i get errors like those:
called Result::unwrap()
on an Err
value: Custom { kind: Other, error: "custom: unknown variant Su
, expected one of Type
, Name
, RxPdo
, TxPdo
, Sm
, Info
, HideType
, GroupType
, URL
, Profile
, Eeprom
, Fmmu
, Image16x14
, ImageFile16x14
, ImageData16x14
, Mailbox
, Dc
, Slots
" }
If i remove the "Su" entries, i'm getting this errors:
called Result::unwrap()
on an Err
value: Custom { kind: Other, error: "custom: missing field Sm
" }
Edit: the files can be found in this package: https://de.nanotec.com/produkte/2533-plug-drive-studio-2 Take e.g. the C5-E-2-21.xml
@v-morlock I can confirm the file can't be read. Here is the corresponding test but I haven't fixed it yet: #3
The xml parser is also a bit out of date. Using the new one causes some other tests to fail. So here is an other PR that needs to be fixed: #4
I have no idea if i will get around to it soon, so if you feel like it, feel free to work on it already :wink:
Hello dear maintainers
I'm trying to learn to use crate
ethercat
, but having an issue with the ESI XML files I'm trying to runethercat/examples/cyclic-data.rs
but the XML parsing fails with my ESI files I tried the following files: xml.zipboth work well on the sysmac-studio software, so I doubt there is something wrong about the files themselves. They both give the same parser errors when loaded by
ethercat-esi
\u{feff}
is a character that marks the file as utf-8, so it should be considered as whitespace. I added it tois_whitespace_char()
inxml-rs
Then I fall into a new error
It seems that
ethercat-esi
doesn't handle locale variants in xml files, so I removed the duplicates and run again to get the following errorThe fields mentionned are not missing in the xml files, so I don't know what is wrong. I tried to fix
ethercat-esi
by switching it fromserde-xml-rs
toquick-xml
, but it gave me the same kind of error as the latest ones, as we can see on this issueIs there a way to fix all these issues from
ethercat-esi
(especially the missing fields) ?