MS2E 2.0, cannot update various bins or generate curves.....

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

Post Reply
jeffsnyder
Helpful MS/Extra'er
Posts: 38
Joined: Sun Jan 20, 2008 9:27 pm

MS2E 2.0, cannot update various bins or generate curves.....

Post by jeffsnyder »

When I have my MS2 hooked up (running off a stim) I cannot update/burn new values for things such as Cranking Pulse width/ Priming pulse width.

If I try to generate a curve/input numbers with my MS2 plug in and running on the stim, nothing will burn to the MS2, infact it wont even generate any new numbers when I try to use curve generator

if I put Megatune into Offline mode, I still am unable to use the curve generator.

only way im able to actually use the curve generator is to unplug the MS from my computer and then save my MSQ....plug my MS back to my PC....then open the MSQ and let it burn the values to the MS.

I havent spent any time messing with it really, but I was hoping someone knows whats going on so I dont have to waste too much time
hassmaschine
Super MS/Extra'er
Posts: 1331
Joined: Mon May 21, 2007 8:36 am

Post by hassmaschine »

you have to turn megasquirt off, generate the curves, and then turn megasquirt on and burn them (you shouldn't have to disconnect it from your computer). I don't know if this is a bug or not, but it's always been that way and is simple to work around. it may have something to do with the calculations done when megasquirt is started up.
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

hassmaschine wrote:you have to turn megasquirt off, generate the curves, and then turn megasquirt on and burn them (you shouldn't have to disconnect it from your computer). I don't know if this is a bug or not, but it's always been that way and is simple to work around. it may have something to do with the calculations done when megasquirt is started up.
Since when? This is not how it is supposed to work.

As I test I tried the generate VE on fuel VE table 1 and it worked ok.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
jeffsnyder
Helpful MS/Extra'er
Posts: 38
Joined: Sun Jan 20, 2008 9:27 pm

Post by jeffsnyder »

There were a couple things I could generate curves for (cant remeber what it was at the moment) while my MS2 was running, but the rest were as I described

so is this something thats wrong with my setup or is this how it supposed to be
hassmaschine
Super MS/Extra'er
Posts: 1331
Joined: Mon May 21, 2007 8:36 am

Post by hassmaschine »

jsmcortina wrote:
hassmaschine wrote:you have to turn megasquirt off, generate the curves, and then turn megasquirt on and burn them (you shouldn't have to disconnect it from your computer). I don't know if this is a bug or not, but it's always been that way and is simple to work around. it may have something to do with the calculations done when megasquirt is started up.
Since when? This is not how it is supposed to work.

As I test I tried the generate VE on fuel VE table 1 and it worked ok.

James
try generating an EAE enrichment curve with megasquirt turned on - it won't work.
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

Uh huh, I think I reported this in the miata thread as well. They don't stick unless the program doesn't see the MS (I unpower it)
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

hassmaschine wrote:try generating an EAE enrichment curve with megasquirt turned on - it won't work.
How do you go about doing that? There isn't a EAE table generate function in Megatune. The "VE specific" table generate is called that because it MUST ONLY be used to generate VE tables.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

So try it for ANY of the idle tables. Idle PWM duty cycle, temperature enrichment, etc. None of them work (for me) when connected to the MS.
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

You are talking about writing data though - not "generate table" ?

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

Well, no, generating the curves. I type in all the values I want, it thinks a bit, and drops back to the same 2-d graph as before. Then, it doens't do any good to burn it.

It seems like when it leaves the curve generate screen, it gets overwritten with the computer's data (maybe it does a read really quick?). Either that, or it's just not putting it in the right spot when the computer is connected, though that seems less likely.
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

Please explain how you are using "generate curve" on a PWM idle table.

EDIT: Ah, I see - I forgot about that in the curve generator. I was thinking of the VE specific stuff in the tables.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
jeffsnyder
Helpful MS/Extra'er
Posts: 38
Joined: Sun Jan 20, 2008 9:27 pm

Post by jeffsnyder »

So is this how it is...or a bug.... cause I cant seem to update bins on various things unless I do it with the MS unplug then when I plug it in....reopening the MSQ and clicking yes to "Reburn all values to controller" then things finally stick
hassmaschine
Super MS/Extra'er
Posts: 1331
Joined: Mon May 21, 2007 8:36 am

Post by hassmaschine »

you should be able to change cells manually and burn them - keep in mind you have to tab out of any cells you've edited or it won't save the changes. I always make a habit of hitting tab after changing a setting, and then burning it.
jeffsnyder
Helpful MS/Extra'er
Posts: 38
Joined: Sun Jan 20, 2008 9:27 pm

Post by jeffsnyder »

Hmmm maybe thats been my problem, ill have to try that later, thanks
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

jeffsnyder wrote:So is this how it is...or a bug.... cause I cant seem to update bins on various things unless I do it with the MS unplug then when I plug it in....reopening the MSQ and clicking yes to "Reburn all values to controller" then things finally stick
Do you have to reopen the msq? I would think you save it, unplug, change the table, replug and burn. Serial isn't as pick as most about unplugging while hot? I dunno. Not sure I would, but it should work.
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
hassmaschine
Super MS/Extra'er
Posts: 1331
Joined: Mon May 21, 2007 8:36 am

Post by hassmaschine »

you don't have to unplug anything - you just have to turn off power to megasquirt before using the curve generators. everything else should work with megasquirt turned on and connected.
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

I have noticed, and in mentioning it to other MS-II x-b users, that the VE tables don't always import right. You'll make a change to the table in megalogviewer, and load in the msq, and find there's no change.

I noticed a similar thing when I hand edited a table.

Now I'm in the habit of setting the max/max cell to a unique number so I can tell if the flash took. When my tables has a "254" or "255" in the top right, I know it "stuck".

But in general, shutting off the MS, bringing it back up and looking at the VE table (16x16, ve table 1) will show the old values.
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

I tried to replicate the reported "curve generate" problem and it works fine for me.

Turn on MS2, open Megatune, go to Idle PWM duty table (I'd previously set PWM warmup only), generate a curve with some slightly different values. When I click OK, there is a short pause and then the new values are shown. File->Burn. Close the window, open up various other tables e.g. fuel VE1, ignition 1 etc. Then go back to the PWM idle one - new data still there. File->Fetch. New data still there.
I did a comms log and everything looks in order.

Either there is just one table that you guys are having problems with or the issues are a symptom of broken serial comms.

Please start a comms log (Communications->Diagnostic Log) perform a failed curve generate then exit Megatune.
You'll find "comm.log" in your project directory
e.g. C:\Program Files\Megasquirt\car1.....

email it to me
jsm@jsm-net.demon.co.uk

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
the poi
Helpful MS/Extra'er
Posts: 75
Joined: Sat Jun 05, 2004 12:27 am

Post by the poi »

I have this same problem, and attribute it to a sketchy serial port (the built-in one n my Dell C600 laptop). I've never been able to get a Prolific based adapter to work really at all (tremendous amounts of lost data) so I have nothing to compare it to. I'll be testing with a sparkfun usb-serial breakout board in the next few days. In any event, I'll email and attach my comm.log here.

This was made by loading up a working MSQ, MS on, in the car, not running. I turn on the comm logging, open the priming pulse table, select curve generate, select a beginning and end point, and click OK. No values change (but nothing gets corrupted either, simply nothing happens) and the "Need Burn" and "Lost Data" info boxes in the MT main window go red. Then I burned the table. Then I shut off the log.

MSQ in question also attached
AbeFM
Super MS/Extra'er
Posts: 875
Joined: Wed Dec 05, 2007 1:40 pm
Location: San Diego, CA
Contact:

Post by AbeFM »

I had a USB/serial that called itself a prolific, and yeah, it didn't work at all. My new one is awesome, no issues, I can make it suck or make it work by tweaking the latency. Check the serial converter thread for details. But I was able to generate curves with it.
2000 VVT Miata turbo, MS3Pro

Contact me if interested in a MS-II 2nd gen NB Miata PnP board.
Post Reply