gpio connection error

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: gpio connection error

Post by jsmcortina »

I'm afraid I don't have any suggestions on how to fix this at present. The only workaround I can think of is create two new projects and tune independently. i.e.
a. MS2. Connect your serial cable to the MS2 and tune the MS2 only.
b. GPIO. Connect your serial cable to the GPIO and tune the GPIO only.

I have escalated this issue to the relevant developers.

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".
rukavina
Helpful MS/Extra'er
Posts: 58
Joined: Wed Aug 20, 2014 9:42 pm

Re: gpio connection error

Post by rukavina »

OK.. that's where I was at. I need to street test but if I have no other issues I will wait and see.. thank you
4wheel drive 454 vortec on ms2 w/gpio for 4l80e Trans control
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: gpio connection error

Post by LT401Vette »

I have found an fixed a bug in TS on readChunk with small blockingFactor. That was triggering the issue.
This will be in the next release.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: gpio connection error

Post by jsmcortina »

Phil,
I know I mentioned the blocking factor earlier, but as this is CAN passthrough, shouldn't that actually be irrelevant? So long as the blocking factor used in TunerSutdio matches the CAN "master", there are only 8 bytes sent over CAN at a time anyway?

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".
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: gpio connection error

Post by LT401Vette »

jsmcortina wrote:Phil,
I know I mentioned the blocking factor earlier, but as this is CAN passthrough, shouldn't that actually be irrelevant? So long as the blocking factor used in TunerSutdio matches the CAN "master", there are only 8 bytes sent over CAN at a time anyway?

James
Prior to TS 3.0, TS didn't use the readChunk command, it always read the full page. As you know if you open a dialog, TS refreshes the data from the controller to make sure you are always looking at what is actually on the controller. So prior to TS 3.0, this meant TS would look at all the settings in a the opening dialog and issue reads on any pages contained in that dialog.

With MS2 Extra or MS3, generally this was still very fast as they all support the crc 'k' command, so it will pass the CRC for the page and skip the full read, worse case it was a 1024 byte read and still didn't take a great deal of time. Thus there was little motivation to implement readChunk and read subsets of the page.

However, there have been some firmwares that do not use the k (crc) command such as MShift and others with much larger pages. in a case where TS has to read a large page, this interfered with runtime data while it was retrieving the page refresh.

Thus the implementation of the readChunk command. In TS 3.0+, TS follows similar logic where it refreshes the data from the controller, but now only the ranges of the page that are included on dialog.

Now to finally answer your question.....
When using the readChunk command to read a block larger than the blockingFactor, starting at an offset > 0 , on a firmware not supporting the k command, TS was mis-aligning up the indexing of the data read. The data was shifted.

In my own car I regularly use a project with an MS3-Pro as the primary controller and your Trans code as a CAN controller. Never had an issue, but I see that is because your Trans code supports the k (crc) command, so it would skip the chunk read as it should always pass the crc when opening a dialog.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
rukavina
Helpful MS/Extra'er
Posts: 58
Joined: Wed Aug 20, 2014 9:42 pm

Re: gpio connection error

Post by rukavina »

Well I thank you...... !
4wheel drive 454 vortec on ms2 w/gpio for 4l80e Trans control
Post Reply