Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

more documentation please? #1

Open
rusefi opened this issue Feb 14, 2017 · 8 comments
Open

more documentation please? #1

rusefi opened this issue Feb 14, 2017 · 8 comments
Assignees
Labels

Comments

@rusefi
Copy link

rusefi commented Feb 14, 2017

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?

@fpoussin
Copy link
Owner

fpoussin commented Feb 14, 2017

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 fpoussin self-assigned this Feb 15, 2017
@rusefi
Copy link
Author

rusefi commented Feb 15, 2017

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.

@fpoussin
Copy link
Owner

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)

@rusefi
Copy link
Author

rusefi commented Feb 15, 2017

Can you point me at your OBD code?

@fpoussin
Copy link
Owner

fpoussin commented Feb 15, 2017

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

@rusefi
Copy link
Author

rusefi commented Feb 15, 2017

Thank you! Will check these links.

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

@fpoussin
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant