altelch / iso-tp

ISO 15765-2 TP implementation for Arduino
GNU General Public License v3.0
82 stars 42 forks source link

FC Frame not send tx_id #18

Open cagsurgunu opened 2 years ago

cagsurgunu commented 2 years ago

when i receive canbus messages, i can receive single frame mesages. But i want to receive cf messages, i couldn't get any message after fc. on debug mode, i saw library not send tx_id on fc , i addedd tx_id manually to IsoTp::send_fc in iso-tp.cpp of library. After that, i can receive cf messages.

altelch commented 3 months ago

Hi,

the tx_id is set during setup in your code and the part of the message struct. send_fc uses msg->tx_id. If you set it in send_fc you can't change it dynamically in your code if you need to change the address but maybe I got you wrong. Could you send an example of what you did or maybe do a PR so I can see what you changed?