CaringCaribou / caringcaribou

A friendly car security exploration tool for the CAN bus
GNU General Public License v3.0
751 stars 197 forks source link

CANFD support #129

Open UnaDirezione opened 1 month ago

UnaDirezione commented 1 month ago

How can I configure the code so that I can use cc. py on a bus that only supports CANFD/CANFD acceleration

kasperkarlsson commented 1 month ago

Please refer to the configuration instructions for python-can: https://python-can.readthedocs.io/en/stable/configuration.html

I suspect it might be as easy as adding an fd = true entry to your ~/.canrc file. If this is not enough you might want to look into setting the is_fd parameter to true in calls to underlying python-can functions (such as the wrapper in CanActions.send, see https://github.com/CaringCaribou/caringcaribou/blob/master/caringcaribou/utils/can_actions.py#L107)

If you get this working, please share your method here to help others who are in a similar situation 🙂

sut4nd0 commented 4 weeks ago

when configuring "can.Bus()", add "fd=True". And, When constructing "can.Message", set "is_fd" to "True".