Segment Swap utility

They go by many names, P01, P59, VPW, '0411 etc . Circa 1999 to 2006. All VPW OBD2 PCMs.
Posts: 183
Joined: Sun Apr 10, 2016 9:20 pm

Re: Segment Swap utility

Postby kur4o » Sat Apr 04, 2020 1:24 am

I guess the problem is that crc32 is 4 bytes by default, but somehow displayed only 2 bytes. I am sure it worked in the older versions but have to go back where it got broke.

User avatar
Posts: 180
Joined: Tue Dec 17, 2019 3:27 am

Re: Segment Swap utility

Postby joukoy » Sat Apr 04, 2020 1:36 am

kur4o wrote:I noticed that 4 bytes long checksums are displaying only the last 2 bytes in 0.9.16.

I suggest that the checksum count should be taken from the chechksum address field,
On display only checksum we can add some exception character like $:4:hex


0.9.16 removed, has bugs.

Can you send example XML & bin for testing, where cvn32 displayed wrong ?

Posts: 183
Joined: Sun Apr 10, 2016 9:20 pm

Re: Segment Swap utility

Postby kur4o » Sat Apr 04, 2020 1:51 am

In the 0.9.15 the bug was something like this

Code: Select all
Autodetect: v6-98-05.xml

09352801.bin (v6-98-05.xml (v 1))

Segments:
OS          PN: 9352801  [0000 - 7FFFD], Size: 7FFFE
EEPROM_data[], Size: 0
Checksums:
 Checksum 1: 8C80674A [OK] Checksum1: 00005B73



The display only checksum is set to be crc32 and it displays some zeros in front.
On the v6-98-05.xml mark checksum2 as crc32 and select checksum2 as cvn. That is all I have done.


I believe 9.16 introduced some other problems so I will not comment on it.

Lets start with 9.15 bug.

edit:
checksum2 define address for the v6 xml
0-3FFF,8000-0@

User avatar
Posts: 180
Joined: Tue Dec 17, 2019 3:27 am

Re: Segment Swap utility

Postby joukoy » Sat Apr 04, 2020 3:09 am

kur4o wrote:In the 0.9.15 the bug was something like this

Code: Select all
Autodetect: v6-98-05.xml

09352801.bin (v6-98-05.xml (v 1))

Segments:
OS          PN: 9352801  [0000 - 7FFFD], Size: 7FFFE
EEPROM_data[], Size: 0
Checksums:
 Checksum 1: 8C80674A [OK] Checksum1: 00005B73



The display only checksum is set to be crc32 and it displays some zeros in front.
On the v6-98-05.xml mark checksum2 as crc32 and select checksum2 as cvn. That is all I have done.


I believe 9.16 introduced some other problems so I will not comment on it.

Lets start with 9.15 bug.

edit:
checksum2 define address for the v6 xml
0-3FFF,8000-0@


Let's try with this:
0.9.17 defaults to 4 bytes for display-only checksum

Posts: 183
Joined: Sun Apr 10, 2016 9:20 pm

Re: Segment Swap utility

Postby kur4o » Sat Apr 04, 2020 4:44 am

Code: Select all
12201792.bin (v6-98-05.xml (v 1))

Segments:
OS          PN: 12201792 [0000 - 7FFFD], Size: 7FFFE
EEPROM_data[], Size: 0
Checksums:
 Checksum 1: 270F982B [OK] Checksum2: 61157F24



It seems fixed now. Great work.

Posts: 187
Joined: Mon Mar 09, 2020 4:35 pm
Location: California

Re: Segment Swap utility

Postby In-Tech » Sat Apr 04, 2020 5:53 am

Really nice work. I haven't tried a file on a PCM yet but everything seems to work great here in XP.

Posts: 183
Joined: Sun Apr 10, 2016 9:20 pm

Re: Segment Swap utility

Postby kur4o » Sat Apr 04, 2020 6:28 am

You will really like it. These are the most recent versions of the xml files. Place the content in the xml folder.

Than click on the file info tab select folder with your stock binaries and open the first file. Populate the cvn list and than you can tell if a file is stock simply by opening it.
Attachments
XML.rar
(12.4 KiB) Downloaded 35 times

Posts: 187
Joined: Mon Mar 09, 2020 4:35 pm
Location: California

Re: Segment Swap utility

Postby In-Tech » Sat Apr 04, 2020 11:44 am

Very very cool.

This makes me bring up a tuning question. His original file was modified so I downloaded a stock file to start with and now it looks to be an older OS than his original, maybe I should swappy? :mrgreen:

Autodetect: p01-p59.xml

Dave_Vette.bin (p01-p59.xml (v 1))

Segments:
OS PN: 12592425 , Ver: DD, Nr: 1 [20000 - FFFFD], Size: E3FFE
EngineCal PN: 12587919 , Ver: AD, Nr: 2 [8000 - 162CF], Size: E2D0
EngineDiag PN: 12586878 , Ver: AB, Nr: 3 [162D0 - 195FF], Size: 3330
TransCal PN: 12579113 , Ver: AF, Nr: 4 [19600 - 1D8AF], Size: 42B0
TransDiag PN: 12579117 , Ver: AJ, Nr: 5 [1D8B0 - 1E1AF], Size: 900
Fuel PN: 12584410 , Ver: AB, Nr: 6 [1E1B0 - 1F6BF], Size: 1510
System PN: 12585028 , Ver: AC, Nr: 7 [1F6C0 - 1FEAF], Size: 7F0
Speedometer PN: 12579125 , Ver: AE, Nr: 8 [1FEB0 - 1FFDF], Size: 130
Eeprom_data PN: 12583659 , Ver: YFZF[4000-8000], Size: 4000
Hardware 12583659
Serial 1KA04MCC3301
Id 3154131286
Id2 12587914
Broadcast YFZF
VIN 1G1YY12S145113232

Checksums:
Checksum 1: 4550 [OK]
Checksum 1: A95A [OK]
Checksum 1: B5AD [OK]
Checksum 1: B8A3 [OK]
Checksum 1: 1658 [OK]
Checksum 1: 1A47 [OK]
Checksum 1: 5D32 [OK]
Checksum 1: ACDF [OK]

Autodetect: p01-p59.xml

DaveT_New_Read.bin (p01-p59.xml (v 1))

Segments:
OS PN: 12587603 , Ver: DC, Nr: 1 [20000 - FFFFD], Size: E3FFE
EngineCal PN: 12587919 , Ver: AD, Nr: 2 [8000 - 162CF], Size: E2D0
EngineDiag PN: 12586878 , Ver: AB, Nr: 3 [162D0 - 195FF], Size: 3330
TransCal PN: 12579113 , Ver: AF, Nr: 4 [19600 - 1D8AF], Size: 42B0
TransDiag PN: 12579117 , Ver: AJ, Nr: 5 [1D8B0 - 1E1AF], Size: 900
Fuel PN: 12584410 , Ver: AB, Nr: 6 [1E1B0 - 1F6BF], Size: 1510
System PN: 12585028 , Ver: AC, Nr: 7 [1F6C0 - 1FEAF], Size: 7F0
Speedometer PN: 12579125 , Ver: AE, Nr: 8 [1FEB0 - 1FFDF], Size: 130
Eeprom_data PN: 12583659 , Ver: YFZF[4000-8000], Size: 4000
Hardware 12583659
Serial 1KA04MCC3301
Id 3154131286
Id2 12587914
Broadcast YFZF
VIN 1G1YY12S145113232

Checksums:
Checksum 1: D2E8 [OK]
Checksum 1: 6A90 [OK]
Checksum 1: 7587 [OK]
Checksum 1: 3662 [OK]
Checksum 1: 1658 [OK]
Checksum 1: 1A47 [OK]
Checksum 1: B14F [OK]
Checksum 1: ACDE [OK]

OS differ: 12592425 DD <> 12587603 DC

Posts: 187
Joined: Mon Mar 09, 2020 4:35 pm
Location: California

Re: Segment Swap utility

Postby In-Tech » Sat Apr 04, 2020 11:54 am

One thing I noticed, when you highlight the "log" page it won't let me right click to choose copy. I was able to do ctl c and ctl v though. May be a winXP thing.


edit
The "Save As" button makes a .txt file. Works great :thumbup:

User avatar
Posts: 180
Joined: Tue Dec 17, 2019 3:27 am

Re: Segment Swap utility

Postby joukoy » Sat Apr 04, 2020 2:43 pm

In-Tech wrote:One thing I noticed, when you highlight the "log" page it won't let me right click to choose copy. I was able to do ctl c and ctl v though. May be a winXP thing.


edit
The "Save As" button makes a .txt file. Works great :thumbup:


0.9.18
Added "right-click" menu to log and debug
Renamed "Save as..." => "Save log..."

Now adding "unsupported" v6 OS to file automatically (without address, of course)

Edit: 0.9.19
Log & debug using same control

PreviousNext

Return to GM LS1 512Kbyte and 1Mbyte

Who is online

Users browsing this forum: No registered users and 3 guests