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.
Lawicel compatible CAN BUS monitoring interface - arduino nano sketch
Lawicel compatible CAN BUS monitoring interface - arduino nano sketch
You do not have the required permissions to view the files attached to this post.
Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch
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
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
I don't know, but tomorrow I'll try to check.
Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch
Yes, any interface providing SLCAN can be used with Linux.
Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch
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?
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
Sent you,a pm on messenger
Digimod
Re: Lawicel compatible CAN BUS monitoring interface - arduino nano sketch
I can't run Car BUS Analyzer with this sketch.. All try get Invalid Device type message. CanHacker work fine....