hartkopp / can-isotp

Linux Kernel Module for ISO 15765-2:2016 CAN transport protocol PLEASE NOTE: This module is part of the mainline Linux kernel since version 5.10
Other
239 stars 69 forks source link

how to send > 4095 isotp message #50

Closed jinbaotang closed 2 years ago

jinbaotang commented 2 years ago

image I want to use cantp data length > 4095, but I read the isotp.h, cannot find the optional to set?is isotp support it?

hartkopp commented 2 years ago

Hi, to be able to test this feature I set the max. PDU length to 8200, see here: https://github.com/hartkopp/can-isotp/blob/master/net/can/isotp.c#L110 https://github.com/torvalds/linux/blob/master/net/can/isotp.c#L86

I have no final idea what needs to be done, when users really want to transfer 4Gbyte PDUs - but even with the current implementation you can transfer e.g. 8000 byte PDUs which should automatically switch to the FF_DL representation depicted in your request.

Please let me know when you run into problems with it. Thanks!

jinbaotang commented 2 years ago

Hi, to be able to test this feature I set the max. PDU length to 8200, see here: https://github.com/hartkopp/can-isotp/blob/master/net/can/isotp.c#L110 https://github.com/torvalds/linux/blob/master/net/can/isotp.c#L86

I have no final idea what needs to be done, when users really want to transfer 4Gbyte PDUs - but even with the current implementation you can transfer e.g. 8000 byte PDUs which should automatically switch to the FF_DL representation depicted in your request.

Please let me know when you run into problems with it. Thanks!

thank harkopp, I got it