canopen icon indicating copy to clipboard operation
canopen copied to clipboard

Send full 8 byte of SDO message or full 4 byte of data

Open pat-rohn opened this issue 4 years ago • 3 comments

In comparison to PDO's CiA301 standard expects 8 byte of the SDO message. Some devices would abort communication, if not full length of message was sent.

Thanks again for doing this repo

pat-rohn avatar Mar 25 '21 07:03 pat-rohn

Could you please refer to any documentation which states that this behaviour is required? Thanks.

(I couldn't find any related documentation after a quick Internet search.)

brutella avatar Mar 30 '21 07:03 brutella

https://www.canopensolutions.com/english/about_canopen/SDO-services.shtml

All SDO services are mapped to CAN data frames with an 8-byte length.

Official CiA301 standards are not free to download, but I'd have a snipped I could PM you. I guess mostly it works fine without the full 8 bytes, but in some cases libraries check for it.

pat-rohn avatar Apr 01 '21 18:04 pat-rohn

Please check out the changes I've made in the new branch refactoring. Since I don't have any CANopen devices at hand, I'm unable to fully test it – but the changes should actually fix your issue.

brutella avatar Oct 08 '21 08:10 brutella