Page 3 of 13

Re: Microsquirt/MS2 based trans controller+ CAN

Posted: Sun Mar 08, 2009 8:27 am
by jsmcortina
I only made a couple of small changes.
1. inputs now use the input pins as digital inputs instead of ADC but I'd posted a release where that wasn't quite implemented
2. epc is set to 100% when the engine is off
3. increased epc frequency as it sounds horrible with the frequency stated in the service manual

James

Re: Microsquirt/MS2 based trans controller+ CAN

Posted: Mon Mar 09, 2009 4:04 am
by FSG_PB_Patrick
Nice, I've got a Nissan/Jatco RE4F03A Gearbox with about 5 solenoids to control brake band, clutches and torque converter. I'm sure I had a rebuilders guide with the state diagramm somewhere. Will report back once I found it.

MS2/Microsquirt based trans controller

Posted: Mon Mar 09, 2009 5:23 pm
by jsmcortina
This is software that runs on Megasquirt hardware to control an automatic transmission.

Existing development is for GM 4L60E and GM4L80E in particular. Other transmissions will hopefully be added.

Find out more here: http://www.jsm-net.demon.co.uk/trans

James

Re: Microsquirt/MS2 based transmission controller

Posted: Fri Mar 27, 2009 9:56 am
by jsmcortina
I posted a new code release. Hopefully I finally resolved the issue with passthrough CAN writes/burns not working correctly.
You will need the as-yet-unreleased next MS2/Extra pre2.1.0 code as I found some CAN bugs in there too.

I have been testing:
PC->MS2/Extra tuning MS2/Extra
PC->MS2/Extra->trans tuning trans
PC->trans->MS2/Extra tuning MS2/Extra
PC->trans tuning trans

and I _believe_ it is now working correctly. I have tested with TunerStudio, Megatune and my own raw test application.

Code is at: http://www.jsm-net.demon.co.uk/trans/files/alpha/
Code is at: http://www.jsm-net.demon.co.uk/trans/fi ... 90327a.zip

I should have this out on the car again this weekend.

James

Re: Microsquirt/MS2 based transmission controller

Posted: Wed May 27, 2009 6:46 pm
by Joe
James,

Help-

Running MSII v3 Latest Alpha 3.something (Working great, Love the closed loop Idle)

Microsquirt v2 running .009 trans code.

Setup CAN to fetch RPM, TPS and engine temp. Working good.


In trans range 4, 65 mph 10% tps I do not have TCC apply.
Gauge shows TCC ramping up nicely to 70% but no ground on INJ1.

I loaded MSextra on my microsquirt. Entered output mode. Was able to turn on INJ1 and INJ2.
Convinced(at least right now) my hardware is working.

I am bench testing at the moment, I just picked up my 4l80E today.


Notes on my bench setup-

I am using am old stim board. VSS is fed to the optical circuit. MPH reading ok.

I don't have a range switch at the moment. I tested channel ABC of TPT. Working good.
Edit:Don't recall 3

It's wired so on power up I am in TPT4 65mph. After the delay megatune shows TCC ramp up but my INJ1 does not supply ground. I am hoping to install the 4L80E(Also selected in my INI) sometime in the next week.

Any advice you are willing to give would be much appreciated.

Thanks,

Joe

Re: Microsquirt/MS2 based transmission controller

Posted: Wed May 27, 2009 7:50 pm
by racingmini_mtl
Joe,

If you're not using the additional injector drivers available on the alpha 3.0 code, try loading the RC 2.1.0 and redo your tests. There shouldn't be any difference but there might have been some unintended impact on the CAN code with the alpha code modifications.

If you do the test please report what you see if there is a change or not. If you see a change then something may need to be done in the alpha code.

Jean

Re: Microsquirt/MS2 based transmission controller

Posted: Wed May 27, 2009 9:25 pm
by Joe
Jean,

Thanks for the reply. I will give that a shot after work on thursday.

Just to be clear, the INJ1 I am refering to is Microsquirt v2/ trans code .009 INJ1(TCC)

CAN Seems to work fine as far as the MSII output to microsquirt/trans.

I will downgrade my MSII and see if any difference in the Microsquirt/trans code responce.

Joe

Re: Microsquirt/MS2 based transmission controller

Posted: Thu May 28, 2009 2:17 am
by jsmcortina
Give the test mode in the trans code a try too. If I get chance I'll go and check my install too.

James

Re: Microsquirt/MS2 based transmission controller

Posted: Thu May 28, 2009 6:16 am
by Joe
I tried test mode with .009 on TCC and EPC. Seems I have no responce on INJ1 and INJ2. INJ1 does not light with 100%,
INJ2 does not release ground or change intensity for 0%. Didn't put a scope on either, using eye ball meter.


Joe

Re: Microsquirt/MS2 based transmission controller

Posted: Thu May 28, 2009 6:11 pm
by Joe
regression testing-

MSII v3 Alpha 3.03

Microsquirt v2 trans code.

First release trans code-

Can issues- Fetched data does not display correctly

Second release .008 Can fetch stable

TCC stuck grounded. Tried test mode on EPC and TCC.

EPC blinks for a second when commanded 0% then remains lit.

TCC Stays lit with 0% or 100%



Trans code .009

Can data- rock solid. Data reads the same as MSII alpha code.

Test mode-

TCC - Off. No difference with 0% or 100% . No ground.
Note: toggling TCC will blink EPC

EPC - Commanding 0% or 100% toggles EPC lamp. Was unable to turn off.

Data looks great in megatune. Tcc applies when it should. Off with brake ETC.
Unable to get operation with Stim

On to try different code in MSII. Can looks stable but I will try.

Joe

Re: Microsquirt/MS2 based transmission controller

Posted: Thu May 28, 2009 6:33 pm
by Joe
OK,

Tried release code 2.01 on the MSII-
Trans code .009

Same issue- Switched back to Alpha 3.03


Forgot to add on MT startup I receive two warnings-

Trans-ini:0006 Unrecognized directive "define", Ignored
Trans-ini:0008 Conditional check references undefined value "CAN_COMMANDS"

Joe

Re: Microsquirt/MS2 based transmission controller

Posted: Fri May 29, 2009 2:13 am
by jsmcortina
For reference 2.0.1 does not correctly support CAN-passthrough. 2.1.0 does.

However, I confirmed that the lockup solenoid does not make any noise by using the test mode on my install. I'll get to it later. The EPC solenoid is still really loud at the stated frequency. I'll get it back onto the bench and confirm.

James

Re: Microsquirt/MS2 based transmission controller

Posted: Tue Jun 02, 2009 4:03 pm
by jsmcortina
It appears I had (for some reason) commented out the code to setup the lockup solenoid ?! I want to do some more testing on this before I post an updated version, so hopefully this weekend there will be another version available.

James

Re: Microsquirt/MS2 based transmission controller

Posted: Tue Jun 02, 2009 9:25 pm
by Joe
Good news. Thanks for pursuing this. I just finished mounting my 4l80E. I need to make some trans lines, order some drive lines and install my harness. I hope to be road testing in less than 2 weeks. I've never used the GCC HC12, I've been looking into porting to CodeWarrior. I have a version from school.


James,

Personal thanks for your efforts. Hopefully I can contribute.

Joe

Re: Microsquirt/MS2 based transmission controller

Posted: Wed Jun 03, 2009 1:05 am
by jsmcortina
Kind of funny, the code is evolved from code that was built on Codewarrior. We forked from that a good three years back, so there may be many non-portable items in there.

I find gcc easy. Just type make. No graphical front end to get in the way.
There's a "condensed gcc/cygwin" package for download here: http://prdownloads.sourceforge.net/mega ... p?download

James

Re: Microsquirt/MS2 based transmission controller

Posted: Fri Jun 12, 2009 10:45 pm
by Joe
any updaes?? I hope to be driving tomorrow.
Thanks,

Joe

Re: Microsquirt/MS2 based transmission controller

Posted: Sat Jun 13, 2009 7:37 am
by jsmcortina
I've been busy with work and MS3 this week so have not had chance to test this code out, but here it is:

http://www.jsm-net.demon.co.uk/trans/fi ... 090602.zip

James

Re: Microsquirt/MS2 based transmission controller

Posted: Sat Jun 13, 2009 12:56 pm
by Joe
Thanks,

Finishing install today. Hopefully I will road test tomorrow.

I found a pointer in trans_init.c for TCC that was commented out.(Don't know if this is what you are refering to??) I have been trying to read the code but have had some difficulty following things. Also, I deleated all the object files and ran a full make but I receive an error 127 at the end for the trans.s19 file. (Need to figure out what it means)

I'll let you know how bench testing and in car go sunday evening.

Thanks again,
Joe

Re: Microsquirt/MS2 based transmission controller

Posted: Sat Jun 13, 2009 1:45 pm
by jsmcortina
I take it you are trying in Codewarrior because:

make clean
make

ran just fine and is how I made the zip I uploaded.

James

Re: Microsquirt/MS2 based transmission controller

Posted: Sat Jun 13, 2009 3:51 pm
by Joe
I was using GCC when i received the error but I will play with that later.


Bench testing trans code .010


Scratching my head a little on this. Put a scope on TCC and EPC .

Code seems to work but signal is inverted??

Example- As I understand things(Could be the problem) to increase Line pressure a reduction in ground is needed.
No ground- full line pressure.
With a TPS increase line pressure increases but on the scope I see an increase in ground(Reduction in line pressure) TCC seems to operate the same way. Looks like to me both INJ1 and INJ2 outputs are inverted.


Make sense or am I confused??

Joe