ethercat icon indicating copy to clipboard operation
ethercat copied to clipboard

string needs to be unpacked

Open ronaldomercado opened this issue 9 years ago • 0 comments

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]************************

ronaldomercado avatar Mar 07 '16 11:03 ronaldomercado