collin80 / SavvyCAN

QT based cross platform canbus tool
MIT License
1.04k stars 288 forks source link

Receiving packets does not work when using Lawicel/SLCAN protocol #713

Open rnadyrshin opened 11 months ago

rnadyrshin commented 11 months ago

Hello I am testing SavvyCAN V208 with a Flipper Zero and MCP2518 based CAN/LIN-module. The Flipper application implements the Lawicel protocol, which works perfectly with CanHacker 2.0 and SocketCAN (SLCAN). In SavvyCAN opening CAN-interface and sending packets works fine, but receiving packets from the CAN does not work. Moreover, in the connection window in the console, incoming packets are visible, but they are not displayed in the main program window.

Connection window

Do you have any ideas what the problem might be? Implementation of Lawicel in the Flipper Zero application: https://github.com/flipperdevices/flipperzero-firmware/tree/d48b107065c087357473a2e4c6cba2bc2bfc18fb/applications/external/can_lin_tools/lib/driver/can_hacker2

esaulenka commented 10 months ago

Hmm. These messages looks correct. If you able to build SavvyCAN locally (it should be easy enough), try to insert sendDebug(bla-bla) somewhere in these lines: https://github.com/collin80/SavvyCAN/blob/da5e5027e3aa14edc52c3fbc5342382856b06b8f/connections/lawicel_serial.cpp#L524-L551

jaytronic211 commented 9 months ago

This was happening when i was using the v213 release. But the latest build seems fine.