Fiat Coupe Forum
- Founded by Kayjey & James Northam
- Funded by the Club for the benefit of all owners
Fiat Coupe Club UK
join the club
Fiat Coupe Forum
 
» Announced
    Posting images


» Related sites
    Main club site
    fiatcoupe.net


» External data
    owners listed
 
Who's Online Now
2 registered members (Henklia, 1 invisible), 212 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Forum Statistics
Forums69
Topics113,627
Posts1,341,370
Members1,807
Most Online731
Jan 14th, 2020
Top Posters(All Time)
barnacle 33,568
stan 32,122
Theresa 23,303
PeteP 21,522
bockers 21,071
JimO 17,917
Nigel 17,367
Edinburgh 16,835
RSS Feeds
Club Events
Club Information
Track Events
Rolling Road/RWYB
Social Events
Non-UK Events
Coupé Related Chat
Coupé Spotting
Coupé News/Press
Buying/Selling Advice
Insuring a Coupé
Basic FAQ's
How to Guides
Forum Issues
Technical Problems
General Maintenance
Styling
Tuning
Handling
ICE and Alarm
Coupés for Sale
Coupés Wanted
Parts for Sale
Parts Wanted
Group Buys
Business Forum
Other Vehicles for Sale/Wanted
Other Items for Sale/Wanted
Haggling/Offers
Ebay links
Other Cars
Other Websites
General Chat
Previous Thread
Next Thread
Print Thread
20vt cam sensor hack #1553743
27/10/2015 23:30
27/10/2015 23:30

G
GrahamL
Unregistered
GrahamL
Unregistered
G



Thought this would be useful as with values the way they are I can imagine a 20vt being scrapped for a failed cam sensor + it would obviously be useful to be able to drive the car after the cam sensor has failed, even if just to get it to a specialist for a sensor/belt change.

So I've been looking at the firmware code for a while now, working out if it's possible to force the engine to start without a valid cam sensor reading.

Obviously there's no way to tell whether the engine is in a compression or exhaust stroke based on the crank sensor reading alone, so there can only be a 50% chance that it'll start each time without the cam sensor. But I reckon a 50% chance is an acceptable alternative to a 0% chance. smile

So after wasting a week searching intently for code that didn't exist, I finally got it working and have been testing this week, so now with just a chip change you can have a 50% chance of starting the engine even with the cam sensor unplugged. The cam sensor error is disabled and either the engine starts as normal or just turns over without starting, so after a few seconds of extra cranking you just switch off and try again until it starts.

Of course when it doesn't start it's injecting fuel on the exhaust rather than compression stroke, so I wouldn't advise using this as a long term solution, but to get the car moving again I think it'll be quite useful.

For anyone else who's ever examining the Bosch Motronic code, I'll explain what had me hunting for non-existent code for a week, it may help...

Turns out they access the same external RAM address through 2 different types of address setup instruction. The normal 16 bit address DPTR register instruction but also with the high address byte in hardware port 2 coupled with the low address byte from the top half of page 0 RAM.

The DPTR register method is accessing either the firmware ROM or external RAM, depending on the address, as they eventually map in external RAM into the unused space near the top of the ROM address space.

Quite obvious when you know how it all works, but until then you just assume the 2 different methods are addressing different external devices mapped separately by the memory controller, rather than exactly the same byte in the same device.

So if you find code accessing an interesting external RAM address using one of those methods, you also need to search for access to the same address using the other method, or you could miss something important.

Having never hacked 8051 code before I found this guide to the 8051 microcontroller hardware architecture very useful:

http://www.mikroe.com/chapters/view/65/chapter-2-8051-microcontroller-architecture/

Anyways, if anyone ever has a 20vt immobilised by a failed cam sensor, just drop me a PM. smile

Re: 20vt cam sensor hack [Re: ] #1553747
27/10/2015 23:53
27/10/2015 23:53

D
dlongstaff
Unregistered
dlongstaff
Unregistered
D



Excellent work Graham!
Would this be in the form of a replacement/backup chip?

Having suffered a fail two hundred and fifty miles from home I would of been grateful to of had one, and not to of endured the three relay lifts it took to get home.

Re: 20vt cam sensor hack [Re: ] #1553748
28/10/2015 00:00
28/10/2015 00:00
Joined: Dec 2005
Posts: 21,522
Aldershot
PeteP Offline
Hon Club Member 005, Membership Secretary
PeteP  Offline
Hon Club Member 005, Membership Secretary
Forum Fossil

Joined: Dec 2005
Posts: 21,522
Aldershot
Interesting Graham.

Back in 1980 the printer manufacturer I then worked for first used an Intel 8051 chip as the processor for a whole new family of dot matrix printers whose derivatives were still going strong in 1995 when I left the company.

Odd to think that a chip I first came across putting dot on paper at up to 2000 characters a second should be driving the engine of my 20 year old sports/GT car.


16VT and X1/9 1500

We must all do our part for the planet.
I unplugged a row of electric cars that nobody was using.
Re: 20vt cam sensor hack [Re: ] #1553750
28/10/2015 00:31
28/10/2015 00:31
Joined: Mar 2007
Posts: 16,835
Auld Reekie
Edinburgh Offline
Club President, member225
Edinburgh  Offline
Club President, member225
Forum veteran

Joined: Mar 2007
Posts: 16,835
Auld Reekie
Awesome work Mr L bow


BumbleBee carer smile
Re: 20vt cam sensor hack [Re: ] #1553753
28/10/2015 00:43
28/10/2015 00:43

G
GrahamL
Unregistered
GrahamL
Unregistered
G



Originally Posted By: dlongstaff
Would this be in the form of a replacement/backup chip?


Yes, a replacement chip, the hack can be added to a standard chip or a Gtec1 or whatever. It's not suitable to use all the time as even with a working cam sensor it still only has a 50% chance of starting each time.

Quote:
Back in 1980 the printer manufacturer I then worked for first used an Intel 8051 chip as the processor for a whole new family of dot matrix printers whose derivatives were still going strong in 1995 when I left the company.


Yes, the 8051 was first released in 1980 (the microcontroller in the coupe ECU even says "(c) Intel 1980" on it) and although more advanced versions are made today they still have the same basic core and instruction set.

You can tell that it's pushed to the limit in the coupe as the main engine control code is running on timer and hardware interrupts while the rest of the "housekeeping" stuff is done in whatever little processor time is left after that, so as engine rpm increases free processor time decreases and the "foreground" code slows down accordingly. So eg. you can't connect to diagnostics when the engine is running at over 2000 rpm.

Re: 20vt cam sensor hack [Re: ] #1553755
28/10/2015 01:22
28/10/2015 01:22
Joined: May 2012
Posts: 1,924
Going North on the A9
dante giacosa Offline
My life on the forum
dante giacosa  Offline
My life on the forum

Joined: May 2012
Posts: 1,924
Going North on the A9
You are 'not mucking about' Graham, are you!

As they say...

Respect...

Re: 20vt cam sensor hack [Re: ] #1553759
28/10/2015 07:30
28/10/2015 07:30
Joined: Dec 2005
Posts: 33,568
Berlin
barnacle Offline
Club Member 18 - ex-Minister without Portfolio
barnacle  Offline
Club Member 18 - ex-Minister without Portfolio
Forum Demigod

Joined: Dec 2005
Posts: 33,568
Berlin
Yeah Graham, I discovered that processor was thick as a brick; it's barely able to negotiate the connection half the time anyway, and it's *really* fussy about the timings for the connections. I don't know why they didn't use the 6805 chipset that Weber/Marelli use on the 16 - it's much more capable.

An alternative to your prom which I have read about but not seen tried is to replace the sensor with a flashing LED, so the ECU sees the voltage drop and thinks there's a working cam signal. Same issue as yours though - only a 50% chance of being on the right phase, so strictly a temporary 'fix'.


[Linked Image]
Don't get no respect! Coupe Fiat 1994-2000 - an owner's guide <-- clicky!
Re: 20vt cam sensor hack [Re: barnacle] #1553764
28/10/2015 09:16
28/10/2015 09:16
Joined: Dec 2005
Posts: 3,694
Midlands
MCMike Offline
Club member 2095
MCMike  Offline
Club member 2095
Forum is my job

Joined: Dec 2005
Posts: 3,694
Midlands
Great work Graham smile


1972 Triumph Stag
1984 Alfasud TI
1999 Fiat Coupe Turbo LE
2005 350Z




Re: 20vt cam sensor hack [Re: ] #1553768
28/10/2015 10:21
28/10/2015 10:21
Joined: Dec 2005
Posts: 12,295
Sandhurst
Begbie Offline
Ex El Presidente
Begbie  Offline
Ex El Presidente
I AM a Coop

Joined: Dec 2005
Posts: 12,295
Sandhurst
Amazing! Always good to read about people pushing the boundaries and getting an understanding on the electronic / hardware side


Originally Posted by Jonny - After being taken out at Spa
Your car is Usain Bolt with wellies
Re: 20vt cam sensor hack [Re: Begbie] #1553782
28/10/2015 14:20
28/10/2015 14:20
Joined: Jun 2006
Posts: 1,786
Peterborough, UK
jas_racing Offline
My life on the forum
jas_racing  Offline
My life on the forum

Joined: Jun 2006
Posts: 1,786
Peterborough, UK
bow


[Linked Image]
She's GONE!
Re: 20vt cam sensor hack [Re: ] #1553792
28/10/2015 17:44
28/10/2015 17:44
Joined: Jul 2012
Posts: 1,650
Dark side of the Moon
H_R Offline
My life on the forum
H_R  Offline
My life on the forum

Joined: Jul 2012
Posts: 1,650
Dark side of the Moon
Brilliant work Graham!
Would it be possible to have this programmed onto a chip but with some sort of switch or .... Panic button so you can switch it on if needed?

Was this cam sensors specific to the 20 valve engine?

Again brilliant work!

Re: 20vt cam sensor hack [Re: ] #1553900
30/10/2015 00:47
30/10/2015 00:47

G
GrahamL
Unregistered
GrahamL
Unregistered
G



In theory it would be possible to switch between 2 firmware chips while the engine is off (actually I remember someone on the forum producing a board to do that about 10-12 years ago), but it would be a lot easier just to carry the few tools needed to switch the chip over in case the sensor ever fails and leaves you stranded.

Not sure which other engines used the same sensor, not even sure if the 20vt uses the same sensor as the 20v NA.

Re: 20vt cam sensor hack [Re: ] #1554182
02/11/2015 23:38
02/11/2015 23:38

G
GrahamL
Unregistered
GrahamL
Unregistered
G



And to complete my exploration of the firmware code I can now disable the immobiliser with just a firmware hack, no need to modify the ECU hardware anymore. smile

Re: 20vt cam sensor hack [Re: ] #1555037
13/11/2015 14:48
13/11/2015 14:48

G
GrahamL
Unregistered
GrahamL
Unregistered
G



I found the same cam sensor code in the 20v NA (non VIS) firmware so if anyone would like to test it by disconnecting the cam sensor, or has a 20v NA with a failed cam sensor then just send me a PM.


Powered by UBB.threads™ PHP Forum Software 7.7.1
(Release build 20190129)
PHP: 7.3.33 Page Time: 0.012s Queries: 15 (0.006s) Memory: 0.8026 MB (Peak: 0.9254 MB) Data Comp: Off Server Time: 2024-05-12 17:19:37 UTC