Bit of a bigger update:
I'm on the third major rewrite of my editor. The problem:
I have one bin that actually works with the ez lynk autoagent 2.0 and the truck runs on it. This bin also was made from an original calibration as it has no vehicle details, recorded kilometers or whatever.
The WinOLS mappack I bought for the ISV comes with a bin, but it's a slightly different arrangement that produces a long list of errors. It's also interesting to note, that the bin that comes with the WinOLS map pack has mileage on it, which means it was taken from an ecu in a truck. 97,000km(mi?)
Initially I applied the map to the bin that works, but I believe I've mentioned it before, the maps do not perfectly line up. A number of parameters could be found manually, looking for a number of similar bytes in a line. That was not the case for all of them, especially the fault blocking table.
Now I am working off a new Nissan/Cummins .XCAL for my ecu part number. Ideally it will be possible to modify and support every ecu part number with a modifed xcal. I will need to do some more testing but it might also be possible to install the modified file with Nissan Consult.
I exported the WinOLS map pack to json because it has all the correct itn numbers for each parameter. My application can now read the table of contents and the address of every one of those itn's. The next big part will be assigning each map to each itn from the table of contents. Then extracting the data for each itn. That's where it starts getting murcky, as the conversions are not perfectly clear to me for the different data types that are stored in the ecm.
Once I can get the data out, I can document the engine and then learn the best way to modify the program. Another road block is that the winols map pack is aligned to one bin, with everything mapped to the locations in that bin and doesn't use the table of contents. As a result I don't have all of the itns for the axis data because the axis data is hard coded into the winols map pack.
This is both a ton of fun and absolutely frustrating, but I'm getting there.
I talked with ez lynk support and once I have some xcals I'm ready to try, they'll help me make sure they're setup right.