Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string needs to be unpacked #3

Open
ronaldomercado opened this issue Mar 7, 2016 · 0 comments
Open

string needs to be unpacked #3

ronaldomercado opened this issue Mar 7, 2016 · 0 comments

Comments

@ronaldomercado
Copy link
Contributor

https://github.com/dls-controls/ethercat/blob/master/ethercatApp/src/ecAsyn.cpp

The method receive_config_on_connect has debugging messages that attempt to print the configuration received from the scanner.
printf is called on the config_buffer "raw". However the scanner sends the configuration packed and the message includes the length of the following string.
So the output is garbled. Example output from ioc running version 4-3

[Fri Nov 13 18:47:58 2015]getting config
[Fri Nov 13 18:47:58 2015]config-file size:111970
[Fri Nov 13 18:47:58 2015]^D
[Fri Nov 13 18:47:58 2015]************************

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant