astuff / kvaser_interface

A Kvaser CAN interface ROS abstraction layer.
MIT License
83 stars 51 forks source link

CAN I transmit CANFD messages using kvaser_interface? #84

Closed kimth1757 closed 2 years ago

kimth1757 commented 2 years ago

Hi, I'm Taehan. I'm working at autonomous driving field and developing L4 Autonomous Shuttles. So far, I have been using kvaser interface with 4.0.3 version, but there is an issue that CANFD RX/TX does not work with one kvaser channel, so I am testing with kvaser interface 4.1.1 (recent version). In detail, kvaser channel 1 is used as RX and kvaser channel 2 as TX, and ch1 and ch2 are the same bus. I want to operate RX/TX with channel 1, but TX is not working. CAN you suggest the solution? Best regards, Taehan.

icolwell-as commented 2 years ago

Hi Taehan, I haven't used CANFD with this driver, so I don't have any experience to offer unfortunately.

That being said, what version of ROS are you running, and what CAN hardware are you using? (model number, etc.)

kimth1757 commented 2 years ago

@icolwell-as Thanks for your reply.

I'm using ROS kinetic and Kvaser USBcan Pro 5xHS(CAN FD). I also tested in ROS noetic.

kimth1757 commented 2 years ago

@icolwell-as I resolved the issues. I added some code in Kavaser interface for CANFD communication. Many thanks. Taehan.

icolwell-as commented 2 years ago

Thanks @kimth1757 for the update. You are welcome to open a PR or share a link to your fork if you think your changes are useful to other people. Totally optional of course, glad to hear you have it working!

kimth1757 commented 2 years ago

@icolwell-as Please find the link below. https://github.com/kimth1757/kvaser_interface_CANFD Many thanks, Taehan.

icolwell-as commented 2 years ago

Thanks @kimth1757 for sharing!