analogdevicesinc / tmcl_ros

adi_tmcl (previously tmcl_ros) is the official ROS Driver for ADI Trinamic Motor Controllers (TMC) that uses Trinamic Motion Control Language (TMCL) protocol.
MIT License
8 stars 1 forks source link

Initializing index failed #4

Open GeorgeBethel opened 7 months ago

GeorgeBethel commented 7 months ago

When I run the tnc node with comm_interface set to 0, I get the error initializing interface index failed. I am using a USB to CAN converter https://www.waveshare.com/usb-can-b.htm. what other comm interface numbers are available to use

jmacagba commented 6 months ago

Hi @GeorgeBethel ,

  1. Can you share some logs? You can also try to build it to enable debug logs via: $ catkin_make -DTMCL_ROS_DEBUG=ON

  2. Is your USB to CAN device being detected/listed properly? I tried to replicate the "Getting the interface index failed" and it can occur when the USB to CAN is not connected or when its drivers were not properly installed. You can check it via $ ip link ls and can0 should be listed there.

GeorgeBethel commented 6 months ago

Thanks a lot for your response. We want to believe the the USB to CAN has made the CAN available on the network because when I do ifconfig -a, it shows can0 and can1 but the module does not have can0. It only has can1 and can2.

Just to know. Those TMCL-IDE or TMCL motors support the below CAN to USB type

https://www.waveshare.com/product/usb-can-b.htm

What kind of USB to CAN will you recommend if this one doesn't work.

I'm using tmcl-1636 CANopen motor

Looking forward to hearing from you.

On Mon, May 6, 2024, 9:42 AM Jamila Macagba @.***> wrote:

Hi @GeorgeBethel https://github.com/GeorgeBethel ,

1.

Can you share some logs? You can also try to build it to enable debug logs via: $ catkin_make -DTMCL_ROS_DEBUG=ON 2.

Is your USB to CAN device being detected/listed properly? I tried to replicate the "Getting the interface index failed" and it can occur when the USB to CAN is not connected or when its drivers were not properly installed. You can check it via $ ip link ls

— Reply to this email directly, view it on GitHub https://github.com/analogdevicesinc/tmcl_ros/issues/4#issuecomment-2095469318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQ2A7UKZ7C6GC27T4BCAMDZA47ABAVCNFSM6AAAAABHDSYYXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJVGQ3DSMZRHA . You are receiving this because you were mentioned.Message ID: @.***>

jmacagba commented 6 months ago

Hi @GeorgeBethel ,

  1. Have you tested your setup (using https://www.waveshare.com/product/usb-can-b.htm) with the TMCL-IDE?
  2. This package is expected to work with modules with "-TMCL" protocol. Since you have a TMCM-1636-24V-CANopen, you can change the firmware of your module to "-TMCL" using the TMCL-IDE GUI. After changing the firmware, the module should work with adi_tmcl.