Author Topic: Quick & Easy in-depth electronic diagnosis for CHEAP  (Read 2163 times)

0 Members and 1 Guest are viewing this topic.

Offline richtea

  • Administrator
  • Hero Member
  • *****
  • Posts: 1219
  • Karma: +15/-1
    • View Profile
  • My K bike model:: Multi-coloured wonder
  • Location:: Banburyshire
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #15 on: November 18, 2017, 01:00:35 pm »
I've now got one connected to my 3d printer...

You have a 3D printer?

How long to print out a dozen or so longer front mudguards for the K12/13S?

Totally off-topic, but...
The extender part is a possiblity, I think (but I don't have a 3D printer myself).
A full mudguard is too big. But you could do various extender shapes to trial & get the optimal one.

Now, if only we could find someone stupid enough to run through mud to test several extender shapes...
http://eurokclub.bike/index.php?topic=2228.msg29482#msg29482

Offline carl0s

  • Newbie
  • *
  • Posts: 46
  • Karma: +2/-0
    • View Profile
  • My K bike model:: K1300S
  • Modifications and add-ons:: Boosterplug, custom paint job, helibars, clutch modifications & rebuild, some cosmetics.
  • Location:: Manchester, England, UK
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #16 on: December 08, 2017, 01:05:34 pm »
So, let's see if I've got this right  :o

Hardware
1. Buy one of these: https://www.ebay.co.uk/itm/FOR-BMW-USB-OBD-Diagnostic-Programing-cable-INPA-KDCAN-ISTA-ISID-SSS-NcsExpert/232526670266?hash=item3623ab69ba:g:qtkAAOSwOA1Z5cpt
2. And one of these: http://www.ebay.co.uk/itm/BMW-ICOM-D-Cable-ICOM-D-Motorcycles-Motobikes-Diagnostic-Cable-OBD2-Diagnose/322445739622?hash=item4b13438666:g:JgwAAOSwV0RXtMAB

Now I've got physical connectivity, i.e. Windows PC  USB -> KCCAN -> ODBD2 -> bike diagnostic socket.

Software
3. Download the Motorrad ECU diagnostic job files: http://www.internetsomething.com/bmskp/MRK24ECU.zip

Then...

EITHER
4. Get the Testo standalone (=all-in-one) version: http://phenoboy.kapsi.fi/testo/testo-2016-09-21-standalone.zip (is there a newer version, Carl0s?)

OR
5. Get the basic Testo: http://phenoboy.kapsi.fi/testo
6. And download BMW Standard Tools: (but from where?)
7. And update the EDIABAS to version 7.3.0

Finally:
8. Sprinkle fairy dust and you have a GS911 for £40?

I'm a little sketchy on the last part, as you can tell.  ;D

If I go and buy the cables, what's the missing fairy dust bit, Carl0s?
Any installation/config problems likely? Is there an idiots guide?

Yep that's it, and no it's really as easy as that!

My Arduino based logger is nearly done now. I've got the frequency up pretty high now. I can get a Digital Values request/response every 40ms, and a large 64 byte 'Analog Values' request/response every 90ms.

I can get the former down to 30ms, which is 33Hz refresh rate, but the connection goes bad after a handful of packets and has to re-establish the link. However I am using a ~7 meter flat OBD cable through the window into the conservatory, so when the weather picks up it might become a possibility. i.e. I can test the higher speed with a more normal length diagnostics cable.

I'm hoping to put the Arduino code to github soon and a youtube video with it. It's pretty sketchy code as this is my first time with C/C++ and I'm not a programmer at all really. It's taken me quite a while just to understand the KWP2000 specs, and they're not exactly complicated in the grand scheme of things.

I'm using an Adafruit Feather M0. I just need to integrate the other project that I did with it, which is a Zeitronix AFR logger, and then add in the Log_to_SD business. Once that's done I'm hoping to try the same again but with a new little Arduino-compatible thing I want to play with: Teensy 3.6. I want to see if the bike will talk KWP2000 over CAN Bus for nice high frequency.

Matt,
In answer to your question I'm hoping to graph/chart my datalogger with Megalogviewer HD.
« Last Edit: December 08, 2017, 01:12:00 pm by carl0s »
--
Carl

Offline carl0s

  • Newbie
  • *
  • Posts: 46
  • Karma: +2/-0
    • View Profile
  • My K bike model:: K1300S
  • Modifications and add-ons:: Boosterplug, custom paint job, helibars, clutch modifications & rebuild, some cosmetics.
  • Location:: Manchester, England, UK
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #17 on: December 08, 2017, 01:15:17 pm »
This sounds awesome!

What will you use to visualise what you log with the Arduino, Carl0s?

I'm one of the 62 million British people who bought an Arduino and then had a nice sit down and a cup of tea after realising I'm a lazy git. This would be a great excuse to feel more like a useless git as I fail to even find the Arduino and decide to have a nice sit down and a regretful espresso! :D

I did the same with a Pi, bought and then let it get dusty. However (TANGENT TIME) I've now got one connected to my 3d printer and another running pi-hole on my home network (pi-hole is a nice little ad blocker thingy).

Ok have a nice Saturday everyone.

haha yes I have a first-version Pi and apart from briefly using it as a WiFi <-> Ethernet bridge for my burglar alarm, it basically hasn't had any use. These microcontroller things are so cool in that they just execute your code loop as soon as power is applied.. and all the i/o stuff is crazy. It's still fairly new to me but I'm really pleased to have a practical application that is actually making progress. I already completed the Zeitronix datalogger, and now the BMW ECU datalogger bit is pretty much complete too, then i'll merge the pair and put the log_to_sd stuff in place.

only thing is they don't multi-task per-se unless you look at FreeRTOS. But it's part of the fun of optimising. Get rid of all delay() code and use timers / states instead so that your loops loop around and do other stuff in spare time until the timer or some other event occurs.
--
Carl

Offline richtea

  • Administrator
  • Hero Member
  • *****
  • Posts: 1219
  • Karma: +15/-1
    • View Profile
  • My K bike model:: Multi-coloured wonder
  • Location:: Banburyshire
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #18 on: December 08, 2017, 06:03:57 pm »

However I am using a ~7 meter flat OBD cable through the window into the conservatory


The bike is 7m away in the conservatory?
That's proper use of a conservatory.
I like.  8) 8) 8)

Offline richtea

  • Administrator
  • Hero Member
  • *****
  • Posts: 1219
  • Karma: +15/-1
    • View Profile
  • My K bike model:: Multi-coloured wonder
  • Location:: Banburyshire
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #19 on: December 08, 2017, 06:18:39 pm »
Thanks for confirming, Carl0s.

I've just ordered the two cables.
A couple of weeks for delivery.

I'll try the standalone Testo first, and let you know how I get on.

Offline raesewell

  • Administrator
  • Hero Member
  • *****
  • Posts: 3327
  • Karma: +30/-3
    • View Profile
  • My K bike model:: Yamaha FJR (2013)
  • Location:: Normanton West Yorkshire
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #20 on: December 08, 2017, 06:20:05 pm »
If you get it all working Rich maybe you could translate this thread into a language we can all understand  ;D ;D

Offline carl0s

  • Newbie
  • *
  • Posts: 46
  • Karma: +2/-0
    • View Profile
  • My K bike model:: K1300S
  • Modifications and add-ons:: Boosterplug, custom paint job, helibars, clutch modifications & rebuild, some cosmetics.
  • Location:: Manchester, England, UK
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #21 on: December 08, 2017, 06:42:04 pm »
Thanks for confirming, Carl0s.

I've just ordered the two cables.
A couple of weeks for delivery.

I'll try the standalone Testo first, and let you know how I get on.

Excellent 😃
--
Carl

Offline mab1067

  • Sr. Member
  • ****
  • Posts: 363
  • Karma: +1/-1
    • View Profile
  • My K bike model:: K1300S Motorsport
  • Modifications and add-ons:: Titanium / red short levers, Invisible patterns, Modified rack to fit Givi topbox. Large BMW Soft bag.
  • Location:: Peterhead, North East Scotland.
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #22 on: December 09, 2017, 02:37:47 pm »
put me down for one of the 3d mud guards??
Mark Barbour

Offline sudolea

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +3/-0
    • View Profile
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #23 on: January 01, 2018, 05:26:10 pm »
The more I read this thread, the more excited I become. I think I'll try to follow this myself too. Maybe way too early, but if I can help with some C/C++ code, I'll be glad to help, although I think I'll have to make some progress with the first (connection) steps, first...
There are I0 kinds of people : those who can count in binary, and those who can't...

Offline richtea

  • Administrator
  • Hero Member
  • *****
  • Posts: 1219
  • Karma: +15/-1
    • View Profile
  • My K bike model:: Multi-coloured wonder
  • Location:: Banburyshire
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #24 on: January 01, 2018, 08:20:30 pm »
I now have both cables - they arrived just before Christmas.

I just need to actually find where the ODBD2 socket is on the bike.  ;D
Is it under the seat - or maybe under a side panel?

(I know - I should know after 4 years, but hey, I've never had a good reason to remove many panels!)

Offline carl0s

  • Newbie
  • *
  • Posts: 46
  • Karma: +2/-0
    • View Profile
  • My K bike model:: K1300S
  • Modifications and add-ons:: Boosterplug, custom paint job, helibars, clutch modifications & rebuild, some cosmetics.
  • Location:: Manchester, England, UK
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #25 on: January 01, 2018, 09:18:05 pm »
I now have both cables - they arrived just before Christmas.

I just need to actually find where the ODBD2 socket is on the bike.  ;D
Is it under the seat - or maybe under a side panel?

(I know - I should know after 4 years, but hey, I've never had a good reason to remove many panels!)

Under the seat right at the back! there's a cover that has to be removed from the socket if I recall correctly :)
--
Carl

Offline TomL

  • Hero Member
  • *****
  • Posts: 2329
  • Karma: +32/-4
    • View Profile
  • My K bike model:: K1300S
  • Location:: Hertfordshire
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #26 on: January 01, 2018, 10:18:16 pm »
There is not an OBD2 connector on the K1300S. The K1300S has a round ten pin connector.

This is an OBD2 connector
As I have grown older, I've learned that pleasing everybody is impossible, but pissing everyone off is a piece of cake.

Offline richtea

  • Administrator
  • Hero Member
  • *****
  • Posts: 1219
  • Karma: +15/-1
    • View Profile
  • My K bike model:: Multi-coloured wonder
  • Location:: Banburyshire
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #27 on: January 01, 2018, 11:41:55 pm »
Ah, yup. You're right. My mistake.

I have the round 10 pin beastie on the end (it's OBD2 in the middle):
 USB <--------------->  OBD2 male <--> ODB2 female <--------------> 10 pin female (aka ICOM-D?)

Roughly where is the 10-pin on the bike, Tom?

Cheers...

Offline raesewell

  • Administrator
  • Hero Member
  • *****
  • Posts: 3327
  • Karma: +30/-3
    • View Profile
  • My K bike model:: Yamaha FJR (2013)
  • Location:: Normanton West Yorkshire
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #28 on: January 02, 2018, 11:15:12 am »
On the GT Rich it was under the seat towards the back.

Offline Phmode

  • Administrator
  • Hero Member
  • *****
  • Posts: 7605
  • Karma: +64/-15
  • I am the evil webmaster, do not cross me!
    • View Profile
  • My K bike model:: BMW K1300S 2012
  • Modifications and add-ons:: Sargent Seat, Powerbronze Screen, Akrapovic Silencer, Ilmberger Hugger, K12S Black Top Yoke, Helibars, Cruise, Centre Stand, Sidestand Extender, Full 3M Film, Barkbusters Hand Guards in winter.
  • Location:: Ledbury, Herefordshire
Re: Quick & Easy in-depth electronic diagnosis for CHEAP
« Reply #29 on: January 02, 2018, 11:22:37 am »
Clipped (awkwardly) in the pointy bit under the seat and behind the lock. The cap is a simple 1/4 turn twist off type. Best to unclip the cable from the plastic rear tray housing too to give more play.

PS If you need instructions on how to remove your seat, just yell  8)