Research and development takes time and money. Since it is my goal to keep this project opensource, if you find this project useful, please consider donating.
HondaECU for Windows requires the libusbK driver. Download Zadig and use it to install the libusbK driver. There is a usage guide on the Zadig website if you need help using it. Once libusbK is installed for your FTDI device, download the latest release of HondaECU.exe.
pip install pylibftdi wxPython pydispatcher
|Model||Year||ROM Size||Keihin Code||Checksum Address|
|CBR250R HRC||2014||256 kb||38770-K33-R51||18FFE|
|CBR250RR HRC||2017||1024 kb||38770-K64-R02||7FFF8|
|CBR300R HRC||2014||256 kb||38770-K33-R01||18FFE|
|XRE 300||2009-2012||56 kb||38770-KWT-xxx||DFEF|
|Shadow 750||2009||256 kb||38770-MGE-B21||3FFF8|
The easiest way to talk to the ECU via the k-line is a USB to serial (TTL) converter, and a serial to k-line converter. This code assumes you are using a FTDI based USB to serial converter though others may work. I used a FTDI Friend from Adafruit!. For the serial to k-line converter I used the schematic below since it contained no special ICs, just common transistors and R/C components that I had laying around the house.
A note about the circuit below, while the PL2303 is a perfectly good USB to serial converter, it does not support bit banging and is not recommended. If you do have one of these converters you will need to use one of the control lines for the init sequence and that complicates things. Just get yourself a FTDI chip, they are cheap.
A much nicer looking k-line to serial converter that I plan on implementing next is this one that uses one that uses optocouplers to keep the bike power isolated from your electronics.
If you make a bench harness to work with your ECU you will need a 2.5 amp power supply. The ECU will power-up with a 2.0 amp power supply but transfer rates will be slow and you will get CRC errors.