-
Notifications
You must be signed in to change notification settings - Fork 14
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
Hotfix/padding #4
base: master
Are you sure you want to change the base?
Hotfix/padding #4
Conversation
Hello, Ok this allow to enable padding but can you explain why you use 0x55 ? https://github.com/pylessard/python-can-isotp/blob/master/doc/source/isotp/implementation.rst |
Because, I have to choose some padding. 0x00 and 0xff would also do the same? Should I switch to 0xff or 0x00? Actually, every value would do it. |
It seems 0xCC is used by default, providing a value to tx_padding allow to set "must_pad = True". |
Hello. I changed the padding to 0xCC as you suggested. We tried several values and there was really no effect, so that 0xCC should also work. I'll try tomorrow with real hardware. |
Thanks for testing, I'll wait for your feedback after your test with real hardware. |
My colleague tried 0xCC option with real hardware and there was difference in the reply. IMHO the feature can be merged back to master. Many thanks for fast replies, we will see how far we can get with your library. :-) |
Hello @remdzi, |
Hi @RomainNaour , In automotive industry the usage of padding is variable for various car manufacturers.
Then it is necessary that the library becomes configurable to:
@Frankyboy100880 can you rework your pull request in order to implement these parameters? @RomainNaour this will "break" the api of the library so this should be merged in a major release. Regards |
Automatic padding with 0x55 for CAN Frames, so that UDS commands must not be filled with paddings to be eight bytes aligned.