Lawicel compatible CAN BUS monitoring interface - arduino nano sketch

Everything regarding communication-protocols like CAN, OBD, LIN, JTAG, BDM, I2C, SPI, ...
Post Reply
tasicky
Starter
Posts: 24
Joined: 16 Aug 2019, 09:30

Lawicel compatible CAN BUS monitoring interface - arduino nano sketch

Post 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.
You do not have the required permissions to view the files attached to this post.
leader
Active member
Posts: 50
Joined: 24 Jun 2019, 10:35
Contact:

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

Post 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
tasicky
Starter
Posts: 24
Joined: 16 Aug 2019, 09:30

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

Post by tasicky »

I don't know, but tomorrow I'll try to check.
Go4IT
Pro
Posts: 967
Joined: 08 Feb 2019, 12:25

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

Post by Go4IT »

Yes, any interface providing SLCAN can be used with Linux.
sanndo
Active member
Posts: 106
Joined: 09 Feb 2020, 14:21

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

Post 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?
User avatar
Stevebe
Pro
Posts: 258
Joined: 08 Feb 2019, 12:28

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

Post by Stevebe »

Sent you,a pm on messenger
Digimod
sanndo
Active member
Posts: 106
Joined: 09 Feb 2020, 14:21

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

Post by sanndo »

I can't run Car BUS Analyzer with this sketch.. All try get Invalid Device type message. CanHacker work fine....
Post Reply