Ask Your Question
0

Is it possible to use kvaser (can to USB) to read canopen device?

asked 2018-11-15 07:49:42 -0500

r.ghahremani gravatar image

I have a SICK encoder which works with CANOPEN protocol and also I have a KVASER leaf light v2 CAN to USB interface. So my question is if there is a way to use KVASER to read CANOPEN device? Maybe with ROS_CANOPEN package?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-11-28 07:23:00 -0500

speloot gravatar image

updated 2019-04-26 01:47:38 -0500

Yes, ros_canopen utilizes SocketCAN package and many Kvaser CAN interfaces, such as Leaf Light v2, are supported by SocketCAN. To install SocketCAN drivers for Kvaser hardware:

  • Make sure you uninstalled linuxcan (CANlib), since Kvaser drivers blacklist SocketCAN modules:

    • $ cd linuxcan
    • $ sudo make uninstall
  • Find your interface

    • ip a

Now you should see your Kvaser device listed, e.g.
- 3: can0: <noarp,echo> mtu 16 qdisc noop state DOWN group default qlen 10 link/can

For the rest, I suggest you to consult https://answers.ros.org/question/2501...

edit flag offensive delete link more

Comments

Can you be specific? How should I do this?

r.ghahremani gravatar imager.ghahremani ( 2018-11-29 02:58:21 -0500 )edit

Just updated my previous response..

speloot gravatar imagespeloot ( 2018-12-10 09:09:34 -0500 )edit

@speloot, yup I found the answer pretty look like yours few days ago, was too busy to update here. After what you said, there is a configuration progress for ros canopen_chain_node after catching CAN data by ros socketcan_bridge.

r.ghahremani gravatar imager.ghahremani ( 2018-12-10 10:33:37 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2018-11-15 07:49:42 -0500

Seen: 665 times

Last updated: Apr 26