Page 1 of 1

Lawicel compatible CAN BUS monitoring interface - arduino nano sketch

Posted: 08 Mar 2020, 08:37
by tasicky
I put a working sketch to build a CAN BUS monitoring interface. It supports the Lawicel protocol and works with the programs "Car Bus Analyzer" and "Can Hacker".

Sometimes there are connection problems, but the retry succeeds.

Original example sketch from canhacker library not working, loging some frames and stoping.

usb_cdc.zip contains working sketch for Arduino Nano + MCP2515 8Mhz

You need to add a canhacker library to Arduino. Arduino IDE: Sketch -> Include Library... -> Add .ZIP Library
https://github.com/autowp/arduino-canhacker

Load a sketch compile and upload it to arduino nano.

Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch

Posted: 08 Mar 2020, 19:36
by leader
Hi,

Nice work.

Can you confirm if this arduino based lawicel interface can be used as SLCAN (Serial Line CAN) also on linux?
I have a german and a russian variant CanHacker interface also.
The german version can be used easly on linux as SLCAN device, but the russion not... The russian device is detected as SLCAN but I can not communicate with it (I think because of the dual channel mode, with SLCAN I can not select the channel).

Regards,
leader

Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch

Posted: 08 Mar 2020, 20:00
by tasicky
I don't know, but tomorrow I'll try to check.

Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch

Posted: 10 Mar 2020, 21:47
by Go4IT
Yes, any interface providing SLCAN can be used with Linux.

Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch

Posted: 22 Dec 2020, 18:03
by sanndo
Hey!
OK, i was success upload usb_cdc.zip to my arduino nano, all is connected with mcp2515. But Canhacker never connect to board, error message: CAN interface not responding!
Did you know how to deal whit this error?
Maybe different port settings or?

Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch

Posted: 23 Dec 2020, 01:28
by Stevebe
Sent you,a pm on messenger

Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch

Posted: 23 Apr 2021, 19:03
by sanndo
I can't run Car BUS Analyzer with this sketch.. All try get Invalid Device type message. CanHacker work fine....