Help me with data padding
Dear Develop team,
I am a newbie in C++ and I want to send data to can. I use iostpsend and see data is padding like I posted here https://stackoverflow.com/questions/77635005/padding-stdvectoruint8-t-in-embedded-c
I see this code over a week and I still can not understand where you do this future. Can you help me with that question? Thank you so much.
The ISO-TP is implemented in the Linux Kernel, the padding is added there.
What is your actual task?
Dear @marckleinebudde , Thank for your reply, I do not understand how this data is padded, I see option -p but I can not know what is follow code(how to it run). In https://stackoverflow.com/questions/77635005/padding-stdvectoruint8-t-in-embedded-c is my task. Sorry for my english. Thank you!
So you want an example to configure the Linux isotp socket (in your C code) to provide a padding with 0x00 as shown on stackoverflow?
Dear @marckleinebudde @hartkopp ,
I can not send data have length 8192 bytes. It is error
Why? I think it is not a vector large
Dear @marckleinebudde , @hartkopp
I send 4096 bytes and I see result:
only have a line can0 seen, about 2048 bytes it is OK.
Please help me explain them. Thank you!
Please send the output of uname -a and cat /sys/module/can_isotp/parameters/max_pdu_size
Dear @hartkopp ,
I can not find /sys/module/can_isotp/parameters/max_pdu_size on ubuntu 20.04, please help me.
Please send the output of uname -a
Feel free to reopen, if you still have an issue.