latonita / arduino-canbus-monitor

Can bus monitoring tool based on arduino and can bus shield. Implements CAN ASCII/SLCAN protocol compatible with Lawicel CAN232/CANUSB. Can be used for monitoring low speed CAN (interior can bus of most cars, less than 500kbps). For higher speeds serial port can become a bottleneck in case data density is high.
MIT License
305 stars 90 forks source link

Problem with SavvyCAN #16

Open Metaln00b opened 7 months ago

Metaln00b commented 7 months ago

When using SavvyCAN, Arduino Nano with MCP2515 8MHz I keep getting HEX 07 back when sending dumps.


Write to serial -> 74 33 38 32 31 30 30 d (t328100)
Got data from serial. Len = 1
07 <<< Error

Savvy CAN v208

Can anyone help me?

By using CANable there is no problem

latonita commented 7 months ago

Hi I don't think SavvyCAN supports SLCAN/LAWICEL protocol implemented by this library. At least under Windows. Which OS do you use? Please check SavvyCAN forum. https://savvycan.com/index.php/forum/welcome-mat/233-savvycan-with-canable-hardware-slcan-on-windows https://savvycan.com/index.php/forum/welcome-mat/208-new-can-usb-device-support-which-way-do-you-recommend

Metaln00b commented 7 months ago

I assumed that Lawicel/SLCAN are one and the same protocol. I use SavvyCAN under Linux and Windows.

latonita commented 7 months ago

@Metaln00b hold on, i'm uploading new version with SavvyCAN GVRET protocol....

latonita commented 7 months ago

@Metaln00b okay, i tried to implement output in gvret serial protocol. one way only - from CAN bus to serial. try this branch https://github.com/latonita/arduino-canbus-monitor/tree/GVRET you shall uncomment this line in setup() in .ino

//    Can232::setOutputProtocol(OutputProtocol::PROTO_GVRET); // PROTO_LAWICEL (default) or PROTO_GVRET for SavvyCAN
latonita commented 7 months ago

not sure how savvycan works, but it doesnt for me... however I see there is socketcan setting in the app - if you use linux, i believe you can set up socketcan.

also... it seems like savvycan shall support lawicel... but I can't check since I dont have any CAN hardware available to test

Metaln00b commented 7 months ago

Okay receiving over can is not the problem but sending data to will cause my problem. Socketcan also did not work in both directions. But thank you very much for your solution♥️