MotoLink icon indicating copy to clipboard operation
MotoLink copied to clipboard

more documentation please?

Open rusefi opened this issue 7 years ago • 8 comments

I've read the title page https://github.com/fpoussin/MotoLink but I am still not sure what this is and what is the status of this project.

Is this an auto-tuning software with an stm32 device as a CAN bridge? What CAN protocols do you currently support?

rusefi avatar Feb 14 '17 19:02 rusefi

It's an interface for aftermarket motorcycle (but works for cars too) ECU. It allows for auto mapping while looking for TPS, RPM, AFR and knock. There's a LIN interface for Hondas, a TTL for Yamaha/Kawasaki, RS232 for the innovate wideband, a CAN interface for some other brands but I haven't tested it (except hardware) so it's unused. It does not modify the ECU directly as I have no mean to do it.

Keep in mind this is still in early stages.

fpoussin avatar Feb 14 '17 22:02 fpoussin

Can you please elaborate on CAN firmware capabilities? I am interested to learn more about specific protocols.

Is it untested because you do not have a CAN vehicle to test with? My truck has CAN OBD.

rusefi avatar Feb 15 '17 17:02 rusefi

Right now there is none as my race bike ECU (Honda) does not communicate at all during run, I use signals from the sensors directly. It have plans to test it on a modern Yamaha (MT-10) which uses a specific protocol. I also need to test on OBD CAN. (maybe on a simulator)

fpoussin avatar Feb 15 '17 17:02 fpoussin

Can you point me at your OBD code?

rusefi avatar Feb 15 '17 18:02 rusefi

As I said it's not there yet (except basic init of the peripheral) Sadly I don't have CAN on my car...

You can have a look at some other code here: https://github.com/ObdDiag-Net/allpro/blob/master/src/adapter/obd/isocan.cpp https://github.com/brendan-w/python-OBD/blob/master/obd/protocols/protocol_can.py https://en.wikipedia.org/wiki/OBD-II_PIDs#CAN_.2811-bit.29_bus_format

It's mostly a matter of setting the CAN filters, sending PIDs an reading the answer, it should be easy.

This might help: http://www.chibios.com/forum/viewtopic.php?t=1695

fpoussin avatar Feb 15 '17 19:02 fpoussin

Thank you! Will check these links.

PS: just to be pedantic - the way I read it sounded as "not tested".

rusefi avatar Feb 15 '17 19:02 rusefi

You're welcome!

I'll add some code for the CAN protocols soon but I have no way to test it on a car, I also need to get an adapter to reverse engineer Yamaha's protocol.

fpoussin avatar Feb 16 '17 10:02 fpoussin

I added some basic canbus code here if you want to check. https://github.com/fpoussin/MotoLink/blob/master/code/app/canbus.c

fpoussin avatar Feb 16 '17 19:02 fpoussin