Page 38 of 68
Re: Segment Swap utility
Posted: Sun Nov 01, 2020 8:15 pm
by joukoy
First version of DTC table search added to UniversalPatcher version 0.12.43
PLEASE test and report any bugs.
Re: Segment Swap utility
Posted: Sun Nov 01, 2020 10:14 pm
by ironduke
I tried this bin that Tre-cool had posted in a different post, think it made your code glitch.
The first search 01 01 01 ff 00 fails to find the table but 01 01 00 ff 00 finds it first try, but I think your skipping first zero in the table and that starts the table and the dtcs are off by 1..
Otherwise Excellent!!!
Looks like you can save it as a csv file, looks pretty good.. Do you think we'll be able to export into a tuner pro xdf friendly format directly in the future??
Sorry, I am still half awake.. tried another
This one 01 01 01 ff 00 finds the table but still makes the same mistake.
Seems like this one misses the first 06?? makes all of them off by 1..
edited again, lol.. Noticed the not all the U codes were converted correctly, if it starts with a D it should be changed to a U code and a 1 added.. D301 turns into U1301.. I knew that but didn't include that in my instructions, sorry..
Re: Segment Swap utility
Posted: Tue Nov 03, 2020 12:39 am
by joukoy
Version 0.12.45
Older binaries have extra data after D -codes in OS -segment, filtered them out.
Current method for searching status code table:
Find FF, 00, as many 0-7 values as OS table have DTC codes, FF
If not found (-07 escalade for example), search again but ignore FF at end.
Looks like correct table, but not sure.
Re: Segment Swap utility
Posted: Tue Nov 03, 2020 1:34 am
by ironduke
So far so good, can you post up one that has extra data after the D codes?
Also that escalade one that doesn't have the ff at the end?
Re: Segment Swap utility
Posted: Tue Nov 03, 2020 8:59 pm
by kur4o
Joukoy,
I tried the new dtc search and looks promising. It will be good to figure better ways for discovery, but this one seems to work with the bins I have. Not sure how accurate is the link between dtc list and dtc config list.
Now we will need some good csv DTC list with numbers and description, and possibly adding some edit, save function[If you are willing to experiment]. It will work on most binaries and there is no need to create xdf for each OS.
I also almost figure the dtc list for ls1 bins and I guess v6 and diesel stuff, thanks to roughneck427 post here
viewtopic.php?f=42&t=6734&start=20#p102721
I got some logic for dtc table discovery but it works only for 1mb for now. I will try to make it more univesal for all ls1 bins.
There is 2 DTC set tables, first list is DTC type list, it takes values from 0-3, and second list is MIL on list, takes value from 0-1.
I found some issue with cvn list again.
Maybe we need to add some new rule since now if the cvn is not in the stockcvn list, but it is in the reference list, it is displayed as n/a.
check stockcvn if not there => check reference list=> if there mark as stock.
Re: Segment Swap utility
Posted: Wed Nov 04, 2020 1:00 am
by joukoy
Version 0.12.46
Modified "stockcvn" detection.
Added OBD2/DTC code descriptions, requires file XML\OBD2Codes.xml
OBD2 Codes copied somewhere from internet and converted to XML.
Some codes seems to be missing...
Re: Segment Swap utility
Posted: Wed Nov 04, 2020 1:34 am
by ironduke
Looking Excellent!!! Do you think you'll be able to make it easy to create/add this information to an XDF file for tuner pro? I'm worried once we get more info and get the bins broken down your going to have to pretty much recreate what tuner pro already does, lol..
I have the high and low octane tables figured out too I think, along I found the dod high and low octane as well although I have no use for those..
Re: Segment Swap utility
Posted: Wed Nov 04, 2020 1:47 am
by joukoy
ironduke wrote:Looking Excellent!!! Do you think you'll be able to make it easy to create/add this information to an XDF file for tuner pro?
I dont think so.
MAYBE if I get some good example C# codes AND have lot of time...?
Re: Segment Swap utility
Posted: Wed Nov 04, 2020 2:00 am
by ironduke
joukoy wrote:ironduke wrote:Looking Excellent!!! Do you think you'll be able to make it easy to create/add this information to an XDF file for tuner pro?
I dont think so.
MAYBE if I get some good example C# codes AND have lot of time...?
ok, no worries.. I don't know how hard it is to create a xdf file, I thought you could have a template ready and just paste in the data that you stripped from the bin with your code in the right places..
might be something for me to work with since you can save it as a csv file.
Re: Segment Swap utility
Posted: Wed Nov 04, 2020 3:11 am
by joukoy
Found this:
https://github.com/dzidaV8/XdfMover
And it looks like xdf editing is quite simple task (?)
Can you send an example xdf file, I can use as template for DTC codes? Other tables are not important now.