USB-to-CAN V2 LIN interface programming in Linux

Is the LIN interface on the USB-to-CAN V2 Automotive programmable in Linux. (Are there drivers and APIs for Linux?)

Hello,

Yes the USB to CAN has Linux support with our API and drivers.

You should be able to find more info on the following site.
https://www.ixxat.com/products/products-industrial/pc-interfaces/pc-can-interfaces/software-support

Deryck

The site mentions APIs and drivers for the CAN interface, but does not mention anything about the LIN interface for Linux.

Hello,

So we support LIN with the USB to CAN. https://www.ixxat.com/products/products-industrial/pc-interfaces/pc-can-interfaces/details-pc-can-interfaces/usb-to-can-v2

We also support Linux with the ECI drivers. https://www.ixxat.com/support/file-and-documents-download/drivers/eci-driver#jump1

Best regards,
Deryck

Hi Deryck, Altran,
I continue the thread as I dont see in the linux code the part for LIN support yet.
We have purchased a “USB-to-CAN v2 automative” and I see the can0/can1 interface after loading the module from https://www.ixxat.com/support/file-and-documents-download/drivers/socketcan-driver
I may miss something on the way to get LIN interface suppport for Linux.
Much regards,
Xavier.

Hello Deryck,
I have been building “Linux ECI drivers” where I see code to support LIN controller for “USB-to-CAN v2” and enabled the LIN demo but when running the “ECI Demo” I get the following error :
"

ECI Demo for USB-to-CAN V2 <<
ECI113_Initialize…succeeded.
ECI113_GetInfo…succeeded.
HwInfoVer: “0”
BoardType : “USB-to-CAN_V2”
HwSerial : “HW515944”
HwVersion : “0.1.5.0”
BmVersion : “0.0.0.0”
FwIdentif : “BAL V3”
FwVersion : “0.1.6.3”
EciApiVer : “0.1.11.3162”
DevId : “0x0”
CtrlCount : “3”
CtrlIndex : “0”
CtrlClass : “0x0001”
CtrlState : “0x0000”
CtrlIndex : “1”
CtrlClass : “0x0001”
CtrlState : “0x0000”
CtrlIndex : “2”
CtrlClass : “0x0002”
CtrlState : “0x0000”

ECI LIN Demo <<
ECI113_CtrlOpen…failed with errorcode: 0xE0FE0001. One or more arguments are invalid.
EciCanDemo113…failed with errorcode: 0xE0FE0001. One or more arguments are invalid.
-> Returning from ECI Demo for USB-to-CAN V2 <-

ECI Demo for USB-to-CAN FD <<
ECI116_Initialize…succeeded.
ECI116_GetInfo…failed with error code: 0xE0FE000E. The device or resource could not be found.
-> Returning from ECI Demo for USB-to-CAN FD <-
-> Closing Linux ECI API Demo program <-"
It looks like it cannot detect correctly the LIN interfaces of the device ?
Much regards,
Xavier.

Hello @xcarcelle,

Discussing this with my colleague in Germany we are not sure what would be causing this issue. We will need to see if we can recreate the error with the ECI Demo.

Deryck

Unfortunately I could not reproduce the problem on Ubuntu 19.04
with the ECI_Driver_1.12.3366.0_20190415_Linux_amd64:

Linux ECI API Demo program <<

ECI Demo for PC-I 04 / PCI <<
ECI002_Initialize…succeeded.
ECI002_GetInfo…failed with error code: 0xE0FE000E. The device or resource could not be found.
-> Returning from ECI Demo for PC-I 04 / PCI <-

ECI Demo for USB-to-CAN compact <<
ECI109_Initialize…succeeded.
ECI109_GetInfo…failed with errorcode: 0xE0FE000E. The device or resource could not be found.
-> Returning from ECI Demo for USB-to-CAN compact <-

ECI Demo for CAN-IB2x0 / PCIe (104) <<
ECI111_Initialize…succeeded.
ECI111_GetInfo…failed with error code: 0xE0FE000E. The device or resource could not be found.
-> Returning from ECI Demo for CAN-IB2x0 / PCIe (104) <-

ECI Demo for USB-to-CAN V2 <<
ECI113_Initialize…succeeded.
ECI113_GetInfo…succeeded.
HwInfoVer: “1”
BoardType : “USB-to-CAN_V2”
HwSerial : “HW391944”
HwVersion : “0.1.5.0”
BmVersion : “0.0.0.0”
FwIdentif : “BAL V3”
FwVersion : “0.1.6.4”
EciApiVer : “0.1.12.3366”
DevId : “0x0”
CtrlCount : “3”
CtrlIndex : “0”
CtrlClass : “0x0001”
CtrlState : “0x0000”
CtrlIndex : “1”
CtrlClass : “0x0001”
CtrlState : “0x0000”
CtrlIndex : “2”
CtrlClass : “0x0002”
CtrlState : “0x0000”

ECI CAN Demo <<
ECI113_CtrlOpen…succeeded.
ECI113_CtrlGetCapabilities…succeeded.
CapsVer : “0”
CanType : “0x000b”
BusCoupl : “0x0003”
Feature : “0x405f”
PriClkFreq : “1000000”
TscDiv : “1”
DtxDiv : “1”
DtxMaxTic : “0”
PrioQueue : “1”
ECI113_CtrlStart…succeeded.
Now, sending 20480 CAN Messages
Time: 11163, Type: 2, ID: 00000000, Flags: Data: 04 00 00 00 00
Time: 11173, Type: 2, ID: 00000000, Flags: Data: 04 00 00 00 00
Time: 11196, Type: 2, ID: 00000000, Flags: Data: 04 00 00 00 00
Time: 11225, Type: 2, ID: 00000000, Flags: Data: 04 00 00 00 00
Time: 11255, Type: 2, ID: 00000000, Flags: Data: 04 00 00 00 00
Time: 11292, Type: 2, ID: 00000000, Flags: Data: 04 00 00 00 00
Time: 11313, Type: 2, ID: 00000000, Flags: Data: 04 00 00 00 00

Time: 30503006, Type: 2, ID: 00000000, Flags: Data: 04 01 00 00 00
Time: 30505906, Type: 2, ID: 00000000, Flags: Data: 04 01 00 00 00
Time: 30508806, Type: 2, ID: 00000000, Flags: Data: 04 01 00 00 00
Time: 30511706, Type: 2, ID: 00000000, Flags: Data: 04 01 00 00 00
Time: 30514606, Type: 2, ID: 00000000, Flags: Data: 04 01 00 00 00
Time: 30517506, Type: 2, ID: 00000000, Flags: Data: 04 01 00 00 00
Time: 30520406, Type: 2, ID: 00000000, Flags: Data: 04 01 00 00 00
ECI113_CtrlStop…succeeded.
ECI113_CtrlStop…succeeded.
EciCanDemo113…succeeded.

ECI LIN Demo <<
ECI113_CtrlOpen…succeeded.
ECI113_CtrlGetCapabilities…succeeded.
CapsVer : “0”
LinType : “0x0001”
BusCoupl : “0x0001”
Feature : “0x000d”
ClockFreq : “1000000”
TscDiv : “1”
DtxDiv : “1”
DtxMaxTic : “0”
PrioQueue : “1”
ECI113_CtrlStart…succeeded.
Now, sending 2048 LIN Messages

ECI113_CtrlStart…succeeded.
ECI113_CtrlOpen…succeeded.
ECI113_CtrlStart…succeeded.
Now, preparing LIN Messages for reception in slave mode
Now, receiving LIN Messages for 30 seconds

ECI113_CtrlStop…succeeded.
ECI113_CtrlStop…succeeded.
EciLinDemo113…succeeded.
-> Returning from ECI Demo for USB-to-CAN V2 <-
[7:52 AM] Andreas Stobe

  1. Can you test with this driver: ECI_Driver_1.12.3366.0_20190415_Linux_amd64 ?
    It is being hosted on a file share that will expire on the 13th.

You can download the files by visiting the following link:
https://fileshare.hms.se?container=649D8PN9Kq6dB3gq4AF4bX9Ch36T2748nM4sk7XV67M2a
The file share will expire on 2019-08-13 13:55

  1. Could the customer please test if the LIN successfully run with USB-to-CAN V2 under Windows using canAnalyser V3 mini?
    (please note, the LIN transceiver needs an external power)

  2. Were you able to use the Lin controller before? Is this a new device?
    Maybe the LIN controller got broken?

Deryck

Hello @xcarcelle,

Were you able to test with the driver provided above?

Deryck