Power FC Forum Apex Power FC Support and Questions.

Power FC Hacking the PowerFC/DataLogIt

Thread Tools
 
Search this Thread
 
Old Mar 1, 2005 | 02:19 PM
  #51  
vinayp's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2002
Posts: 251
Likes: 0
From: Boston, MA
There were several people working on auto-tuning with the PFC last year. Tuning the fuel map is pretty stratightforward, but the ignition was the tricky part. Do you guys have any ideas on how to auto-tune the ignition at all? It seems pretty difficult to me to be able to safely modify the ignition map automatically, even based on having real-time EGT data.
Reply
Old Mar 1, 2005 | 02:32 PM
  #52  
Rudy 34's Avatar
Junior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 25
Likes: 0
From: France
Thanks for your code
FastHatch, can you share your powerfc emulator application (not the source code) ?
Reply
Old Mar 1, 2005 | 04:56 PM
  #53  
FastHatch's Avatar
Senior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 427
Likes: 0
From: Germany
Originally Posted by Rudy 34
FastHatch, can you share your powerfc emulator application (not the source code) ?
The app will be available for download by end of march here: FC Tune

It is not an PFC emulator, it is a free replacement for FC Edit. But it can be used as an emulator. Maybe i disable that in the release, i am just using it for testing.

Monitoring/Datalogging is not implemented yet, also it is currently only for Hondas.


Originally Posted by vinayp
Do you guys have any ideas on how to auto-tune the ignition at all? It seems pretty difficult to me to be able to safely modify the ignition map automatically, even based on having real-time EGT data.
You would need EGT and knock to see if timing is safe, but without dyno readings tuning timing is useless. Isn't it? Advancing the timing till you have knock isn't the point where you make the most power!?!?
Reply
Old Mar 1, 2005 | 05:09 PM
  #54  
FastHatch's Avatar
Senior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 427
Likes: 0
From: Germany
Originally Posted by Goblin
The second time the command is sent, an eight character non NULL terminated string describing what platform this PowerFC is for is returned. For RX-7's, it's "13B-REW ".
"13B-REW " = RX7
"B16A1 " = Honda
"B16B " = Honda
"B18C " = Honda

I guess the strings can be found here: http://www.fc-datalogit.co.nz/model-status.html
Reply
Old Mar 1, 2005 | 06:59 PM
  #55  
NewbernD's Avatar
Tequila? ..it's like beer
Tenured Member 20 Years
iTrader: (1)
 
Joined: Mar 2001
Posts: 1,124
Likes: 0
From: Woodbine, MD
Originally Posted by FastHatch
The app will be available for download by end of march here: FC Tune

It is not an PFC emulator, it is a free replacement for FC Edit. But it can be used as an emulator. Maybe i disable that in the release, i am just using it for testing.

Monitoring/Datalogging is not implemented yet, also it is currently only for Hondas.




You would need EGT and knock to see if timing is safe, but without dyno readings tuning timing is useless. Isn't it? Advancing the timing till you have knock isn't the point where you make the most power!?!?
Not that I think auto-tuning timing is a terribly good idea, but..

Since you'll have access to elapsed time & distance (calculated from speed I suppose) you'd be able to generate a torque & HP curve right? While it wouldn't necessarilly be as accurate as a dyno the results would at least be consistent with the car. You might not be able to brag about your FCTune HP sheet but you could compare changes in 2 different runs and use it as a tuning aid.
Reply
Old Mar 2, 2005 | 03:29 PM
  #56  
Rudy 34's Avatar
Junior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 25
Likes: 0
From: France
Originally Posted by NeoTuri
Not sure yet. The plan right now is to basically handle the task of the Datalogit directly with a PC interface (LPT1, RS-232, or USB).

Last night I was inspecting signals going between the ECU and PF Commander. I ran into a few issues:

Apparently, my laptop's parallel port I/O operates at ~3.0v, but the PFC is 5.0v. I imagine it's different among various hardware manufacturers. That's not really a problem at this juncture, because there's still a big enough difference to tell if the data/clock lines have been pulled to ground or not.

There's also an issue with the speed of directly communicating with a PC. The parallel port has an optional line that triggers an IRQ event. I wrote some code last night to test the responsiveness of the channel. It works sometimes, but it means I will need to use some latches to hold the data while I pull it down from the circuit.
Some news ?
Reply
Old Mar 2, 2005 | 10:29 PM
  #57  
NeoTuri's Avatar
The shy megalomaniac
Tenured Member: 20 Years
Liked
iTrader: (2)
 
Joined: May 2003
Posts: 881
Likes: 79
From: Atlanta, GA
Originally Posted by Rudy 34
Some news ?
Yes, actually.

I wired some TTLs and discovered the following:

The PFC communicates using something very close if not exactly the I2C protocol (by Philips). There's a data line and a clock line. I've measured the clock line operating at ~200 Hz, but from some other documents I've encountered, I'm under the impression that it's supposed to be able go as high as 19.2kbaud.

The clock line seems to function normally between ground and 5V. However, I haven't noticed the data line drip any lower than 4.95V. Eventhough the TTLs only see that as a logical ON state, putting the data line on the clock I/O does trigger them. Strange. Might be a loose wire or something.

I'm testing some other circuits to try to get an accurate grip on what is really going on the logical level. I know I will eventually have to invest in some PIC programmers, as the chips are quite useless without code.
Reply
Old Mar 3, 2005 | 02:21 AM
  #58  
Rudy 34's Avatar
Junior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 25
Likes: 0
From: France
Sure it will be useless without programmer :p So you already have the code for some pics or you get some code for standard I2C interface based on a PIC ?
Reply
Old Mar 3, 2005 | 06:50 AM
  #59  
NeoTuri's Avatar
The shy megalomaniac
Tenured Member: 20 Years
Liked
iTrader: (2)
 
Joined: May 2003
Posts: 881
Likes: 79
From: Atlanta, GA
Originally Posted by Rudy 34
Sure it will be useless without programmer :p So you already have the code for some pics or you get some code for standard I2C interface based on a PIC ?
Since I learned how the protocol works, I'm going to be writing that when I get the programmer. I'm ordering one as we speak. I've been putting this purchase off for far too long.

I'm pretty sure there are code samples of this out on the net. I haven't searched much for them, but I'm pretty sure they exist.

Until I get the programmer, I'm effectively limited to using just my oscilloscope.
Reply
Old Mar 3, 2005 | 02:15 PM
  #60  
Rudy 34's Avatar
Junior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 25
Likes: 0
From: France
I've got the programmer but no more the oscilloscope.... not so easy to work I will look for some sample code if any.
Reply
Old Mar 4, 2005 | 03:06 AM
  #61  
disa_g's Avatar
Newbie
 
Joined: Mar 2005
Posts: 3
Likes: 0
From: Russia
Can somebody make a photo of the DATALOGIT BOX internals ?
We now making the interface to connect power FC .
Reply
Old Mar 4, 2005 | 07:38 AM
  #62  
Jay7 Nyc's Avatar
Rotary Freak
Tenured Member 10 Years
iTrader: (3)
 
Joined: Feb 2004
Posts: 1,696
Likes: 0
From: NYC - SFL
Thumbs up

wow very interesting thread I just came across this thread this morning. Goblin any updates on your project?

aim: noc jayy
Reply
Old Mar 12, 2005 | 04:34 PM
  #63  
Rudy 34's Avatar
Junior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 25
Likes: 0
From: France
I should receive in a short time enough to do my own I2C interface Hope to communicate soon !!
Reply
Old Mar 15, 2005 | 12:41 AM
  #64  
disa_g's Avatar
Newbie
 
Joined: Mar 2005
Posts: 3
Likes: 0
From: Russia
http://www.emicros.com/i2c232.htm
May be this help U /
Reply
Old Mar 15, 2005 | 06:12 AM
  #65  
vinayp's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2002
Posts: 251
Likes: 0
From: Boston, MA
I found this interesting site that looks like it is focused on building a datalogit type interface to the PowerFC: http://kaele.com/~kashima/car/pfcadp/

They even have a complete circuit diagram for building your own datalogit-type box (including 4 A/D connections):

PFCAdapter10.pdf

The only problem is that the entire site is in japanese (can anyone translate?). But there are plenty of pictures and timing diagrams. Let me know if anyone ends up building a working box based on these schematics.

Last edited by vinayp; Mar 15, 2005 at 06:37 AM.
Reply
Old Mar 15, 2005 | 06:51 AM
  #66  
vinayp's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2002
Posts: 251
Likes: 0
From: Boston, MA
It looks like the actual PIC code is not posted anywhere on the website, so I guess this isn't as useful as I first thought...
Reply
Old Mar 15, 2005 | 09:37 PM
  #67  
disa_g's Avatar
Newbie
 
Joined: Mar 2005
Posts: 3
Likes: 0
From: Russia
I think that the pic program only transparent translation betwen rs232 and i2c protocol.
it`s not too hard to write it by self.

something like this
http://derrickshouse.com/KITTI/code/?PicI2C.c
Reply
Old Mar 16, 2005 | 09:46 AM
  #68  
vinayp's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2002
Posts: 251
Likes: 0
From: Boston, MA
if that's the case, it should be very simple to build a working replacement for the datalogit using the circuit provided in that PDF file. i wish i had a PIC programmer to test this out with. Rudy, can you test this circuit out since you have a programmer coming in?
Reply
Old Mar 17, 2005 | 07:37 AM
  #69  
vinayp's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2002
Posts: 251
Likes: 0
From: Boston, MA
FYI, I emailed the designer (Kashima) about getting the PIC code, but he said that he wasn't distributing the source.
Reply
Old Mar 18, 2005 | 02:04 PM
  #70  
Rudy 34's Avatar
Junior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 25
Likes: 0
From: France
I have contacted him also and no source code. He does not want also to sell some pics already programmed
Concerning the available schema, it's not so simple. Kashi is also treating the A/D converters inside the PIC and this part has to be totally written.
Only the communication (translating I2C to serial) can be generic.
Reply
Old Mar 18, 2005 | 06:12 PM
  #71  
vinayp's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Apr 2002
Posts: 251
Likes: 0
From: Boston, MA
That's true, but the A/D conversion is an extra feature of the datalogit that is independent of the PowerFC. For me, the ability to communicate with the PowerFC (i.e. the I2C to serial conversion) is the most important part.
Reply
Old Mar 19, 2005 | 02:08 PM
  #72  
Rudy 34's Avatar
Junior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 25
Likes: 0
From: France
Sure ! and so schema available on Kashi site can be used for basic communication layer
Reply
Old Mar 23, 2005 | 12:21 PM
  #73  
FastHatch's Avatar
Senior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 427
Likes: 0
From: Germany
Here is a screenshot of the current version of FC Tune:



The communication and calibration for Hondas and the RX7 are completly implemented, now i'm working on the views.

That means FC Edit files can be opened and written, the calibration can be send to and read from the Power FC, but not all settings can be viewed and edited yet.

I also need to implement 2D and 3D graphs of the maps.

Later Andre
Reply
Old Mar 25, 2005 | 02:59 PM
  #74  
subyfiles's Avatar
Junior Member
Tenured Member 05 Years
 
Joined: Nov 2004
Posts: 36
Likes: 0
From: Istanbul
Good work.

Hope someone would make something for subarus
Reply
Old Mar 25, 2005 | 03:11 PM
  #75  
FastHatch's Avatar
Senior Member
Tenured Member 05 Years
 
Joined: Feb 2005
Posts: 427
Likes: 0
From: Germany
Originally Posted by subyfiles
Good work.

Hope someone would make something for subarus
I will make FC Tune for all models, i think in the following order: Honda, Mazda, Nissan, Toyota, Subaru and then Nissan.



FC Tune now keeps track of all changes and has a undo function.
All changes can than be uploaded to the PFC.

Edit: Also unlike to FC Edit it will be one program for all models/applications.

Last edited by FastHatch; Mar 25, 2005 at 03:27 PM.
Reply



All times are GMT -5. The time now is 09:21 PM.