Friday, 5 June 2015

RhoCar Scotland 2015

Finally got around to finishing the video footage from the trip

Day One

Day Two


Day Three



Day Four



Sunday, 3 May 2015

Torque App interface to Emerald - Part 2

Finally got around to finishing off this project after the ECU firmware upgrade when I visited Emerald a while ago.
I have hidden the small loom and bluetooth ODBII interface under the dash and simply mounted the Kindle on the dash with a couple of small peices of velco so it can be easily removed and replaced.
I now have an in-car entertainment system, navigation and engine management system on the dash.

Friday, 13 March 2015

New Emerald ECU mapping

In my previous post I wrote about my recent project to build a bluetooth interface between the Torque app and the Emerald ECU. I almost succeeded but needed the firmware on the Emerald ECU upgrading. This requires the ECU to be physically at the Emerald premises in Watton just outside Norwich. As I didn't want to trust my ECU to the postman I decided to drive across and whilst there to utilise their rolling road service to properly may the engine.

Here's a short clip of the process:

Each load cell on the map is visited and the optimum parameters are selected depending on the map you want. With a catalyst and a plenum fitted I didn't have as many options as a non catalyst engine with throttle bodies, but I decided on:

  • Map 1 - Road and track
  • Map 2 - MOT - low emissions (not for driving on)
  • Map 3 - Immobiliser

Fairly self explanatory apart from Map 3. When set to Map 3 the car will just about start but will stall the moment you touch the pedal. A simple but effective way of immobilising the car in addition to the standard Ford key. There were other appealing/novelty options like "pop & bang" but this was my selection.

The trip was c165 miles each way so I had chance to test the car on the way home - what a difference!! Far more responsive. Much much smoother to drive. Motorway cruising at anywhere between 45 and 85 can now be done in 5th. It drinks much less fuel by at least 20%.

By the way the power run gave a reading of exactly 160 BHP at the flywheel. Not bad for a standard Ford engine with a simple plenum.

I must admit to having my fingers firmly crossed during the session. The car gets quite a hammering especially at high revs under full load. Cooling system and oil pressure both fine afterwards, but there was a trace of a slightly slippy clutch when everything got really hot. Nothing noticed on the way home though.

Sunday, 15 February 2015

Torque App Interface to Emerald ECU

The idea here is to use a Kindle Fire HDX as a central hub for car information and mount it on the dashboard. Google maps for sat-nav, music via headphones, GoPro app for the camera and engine/vehicle information via the Torque Pro app. All of these apps are available now on the Kindle Fire, loaded and ready to go. Only the real-time engine data required for the Torque Pro app is missing.


According to the information on the Emerald web site the K6 ECU uses the following version of the CAN bus protocol: CAN v2.0b – 29-bit ID , Extended frame, 20Hz (up to 1 Mbit/sec). 21 elements of vehicle data are broadcast each second in the format defined by this protocol via the serial comms port on the K6. For the avoidance of doubt this is the same comms port that is normally used to upload the vehicle maps.

According to the various web sites for ELM 327 (and its clones) this ODB II interface should
also supports this protocol, and should interface with the Torque Pro app via Bluetooth, on my phone and android tablet. Sounds simple and also inexpensive as none of the elements required are more than a tenner.

Firstly the ELM 327 – Bluetooth version off E-bay for £5. Plugged it into my Audi and it connected straight away and pumped out vehicle data in the Torque Pro app for display. Simple 10 minute job. The Torque Pro Apps automatically tries all of the protocols it understands one after another until it gets a sensible response. It didn’t take more than a few seconds to latch on the one Audi is using. 

So how to get the data from the K6 into the Torque Pro App? RS232 would have been my first choice but Emeralds comms port is not a standard RS232 implementation so there no easy solution there that doesn’t involve wires and a soldering iron. As I now know the ELK 327 works from my Audi test my idea is to build a bespoke cable that plugs into the 9 pin Dsub of the K6 ECU comms port and the other end allows the ELM 327 to be plugged in.

I came up with the following:

ECU Dsub 9 pin number

ECU Desc
Wire Colour
ODB Desc

ODB II 16 pin number
1
CAN_H **
CAN bus interface1
Purple
CAN H
6
2
CAN_L **
CAN bus interface1
White
CAN L
14
3
-
Not used



4
-
Not used



5
earth
Signal earth
Light blue & yellow
Ground
4 & 5
6
-
Not used



7
Rx
RS232 serial interface, data receive
Black white
TxRx
7
8
Tx
RS232 serial interface, data transmit
Black
TxRx
15
9
CTS
RS232 serial interface, clear to send
Red white

8




** 120 ohm resistor between these pins. The CAN bus must be terminated with 120 Ohm resistors. The ECU’s CAN interface includes a 120 Ohm internal termination resistor.

Once the circuit was drawn up, putting the cable together didn’t take too long. I also added a power and ground connector to connect to the car as the K6 doesn’t supply these on it’s comms port.

Here’s the whole thing ready to go. Notice the deliberate mistake? I purchased a female 9 pin Dsub instead of a male. Rather than unsoldering and replacing I chose to spend £1.99 of a female to male converter which you can see sticking on the end.

Here it is in situ under the dash.


So I turned it on. 

The ELM 327 powered up and connected via Bluetooth to the Torque App as it did with the Audi. The Torque App then tried scanning the protocols it understood one at a time. Each time it tried another protocol I watched the status LEDs on the ELM 327 flash as it broadcast data to the ECU and received stuff back. But that’s as far as I could get. The Torque App obviously didn’t understand the information it was being sent if indeed it was being sent anything at all, because it continued to cycle through the protocols and not lock onto one.

Here’s a short video showing what happened.




I went back to the ECU manual and decided to change the CAN protocol to “AIM Dashboard” by updating the “ECU Configuration”. Big mistake. The engine would idle but wouldn’t rev – at all – without stalling. Panic. I had read the ECU maps first of all before uploading the “ECU Configuration” and this was the only parameter I changed. So, reverse the change and upload another “ECU Configuration”. Exactly the same. What the hell is going on. What did we do before Google. Found a manual on the Emerald web site dedicated to “ECU Configuration”. I hadn’t looked at it previously. I hadn’t needed to. But I learned that there 2 configuration files that define the set up of the K6. A *.map file that I recognise as the file that stores the 3 maps. Then there is also a *.k03 file that has the “ECU Configuration” settings. Found my old .k03 file and uploaded it. Fingers crossed. Yes that was the problem. Somehow I had lost the EC Configuration setting on the laptop and uploaded some generic parameters when I first pressed “ECU Configuration” upload. That was lucky. Could have done some very serious engine damage doing that.


That’s where I finished for the day – car back working again but the Torque App still not doing what it should. I will talk to Emerald.

21st Feb Update
Spoke to Emerald - the firmware in my ECU needs updating in order to start seeing CAN bus messages. It's a free upgrade but at the factory. Will try to find a suitable day to go across to Norwich for the upgrade and a rolling road session.