collin80 / SavvyCAN

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

CAN LIN Flipper Zero module support #659

Open Skorpionm opened 1 year ago

Skorpionm commented 1 year ago

Good afternoon. Would you like to add Flipper Zero CAN LIN module support to your program. But there is 1 moment in the model the CAN transceiver MCP2518FD is used. that is, it has support for CAN-FD in addition to the classic CAN, also has LIN Bus support

https://github.com/flipperdevices/flipperzero-firmware/pull/2951

According to the communication protocol, you can contact me directly, we implement any protocol.

collin80 commented 1 year ago

I'm interested. I have ordered a Flipper Zero and should have it at the end of this week. I really want to see CAN added to Flipper. And, being able to then interface that to SavvyCAN would be nice. I'll keep an eye on the pull request over at the link you posted.

Skorpionm commented 1 year ago

if you are ready to add support to the program, I am ready to do whatever is needed from the flipper side

Skorpionm commented 1 year ago

but for CAN FD/Lin to work on the flipper, an additional module is required, which is not yet available.

Skorpionm commented 1 year ago

I can implement any work protocol. all you need is a description of it. the can chacker 2 (lawicel) protocol is now implemented, but it does not support Lin and CAN FD

collin80 commented 1 year ago

This document describes the GVRET protocol I use to communicate with my SavvyCAN program: https://github.com/collin80/M2RET/blob/master/CommProtocol.txt

I'm thinking to build a CAN board, at least temporarily for my own use. I have the protoboards for flipper coming with it so I should be able to rig something up to test CAN at least.

Skorpionm commented 1 year ago

Sorry, this is not a complete protocol at all, there are no Lin frames, no examples of packets and responses to them, no algorithm for calculating checksums. and other things. It would be nice to have at least a trace of communication between the device and your program, ideally with comments about what you are sending and signatures of packet types https://github.com/collin80/M2RET/blob/master/M2RET.ino https://github.com/collin80/SavvyCAN/blob/master/connections/gvretserial.cpp

it's more clear. yes I can implement such a protocol. but the question is, is this a protocol invented by you or from some standard piece of hardware? As I understand it, it lacks support for CAN FD packets, installation of a master mode for lin, it is not clear with time stamps of packets, and some other subtleties. And is this protocol more fully supported in your program?

rnadyrshin commented 7 months ago

@collin80 Hello, Collin. This is Ruslan from Flipper Devices. How can I contact you by email?

collin80 commented 7 months ago

kidderc at (the email provider of a large numbered place famous for their search engine).com

Hows that for trying to confuse bots?

rnadyrshin commented 7 months ago

@collin80 I think this is a great protection against bots, Collin! Please check your inbox