Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

EPOS4 linux library can-bus issue

Hello all,

I have tried to run epos4 linux library on a VARISCITE NXP i.MX6 to control a maxon EC motor via CAN-BUS.

I have followed all steps indicated in epos command library manual, but I don't know which is the right value of interface name option.


root@var-som-mx6:~/EPOS_Linux_Library/EPOS_Linux_Library/examples/HelloEposCmd# ./HelloEposCmd -n 3 -s CANopen -l
-----------------------------------------------------------------
Epos Command Library Example Program, (c) maxonmotor ag 2014-2018
-----------------------------------------------------------------
default settings:
node id = 3
device name = 'EPOS4'
protocal stack name = 'CANopen'
interface name = 'USB'
port name = 'USB0'
baudrate = 1000000
-----------------------------------------------------------------
HelloEposCmd: GetInterfaceNameSelection failed (result=1, errorCode=0x1000000c)
-----------------------------------------------------------------

The command "./HelloEposCmd -s CANopen -l" returns "HelloEposCmd: GetInterfaceNameSelection failed (result=1, errorCode=0x1000000c)".

 

I have already tested can0 port with can-utils and  it works properly.

root@var-som-mx6:~# candump can0 &
[1] 1295
root@var-som-mx6:~# cansend can0 000#8103
root@var-som-mx6:~#   can0  000   [2]  81 03
  can0  703   [1]  00

Otherwise is there way to communicate via can-utils without EPOS4 linux library? For example which is the correct frame to start or stop motor?

 

0 Kudos
Message 1 of 1
(2,938 Views)