Hello this is the code in php(not finished yet)
<?php
function data($file)
{
$rs = fopen($file,"rb");
if(fread($rs, 6) == "SRSETT")
$traction = array("0" => "TC Off / Sym", "1" => "TC Off / Asym", "2" => "Tc On / Sym", "3" => "Tc On / Asym");
$tyrebrand = array("0" => "Cromo Plain", "1" => "Cromo", "2" => "Torro", "3" => "Michelin", "4" => "Evostar");
$cendifftype = array("0" => "Open", "1" => "Viscous");
$difftype = array("0" => "Open", "1" => "Locked", "2" =>"Viscous", "3" => "Clutch Park");
$camb = array("45" => "0.0", "0" => "-4.5", "90" => "4.5");
{
$rs = fopen($file,"rb");
//General
$a["type"] = fread($rs,6);//SRSETT
fread($rs,1);//0
$a["version"] = hexdec(bin2hex(fread($rs,1)));//250
$a["revision"] = hexdec(bin2hex(fread($rs,1)));//2
fread($rs,3);//0
$tc = hexdec(bin2hex(fread($rs,1)));
$a["tc"] = $traction[$tc];//traction control
fread($rs,2);//0
//Misc1
$tb = hexdec(bin2hex(fread($rs,1)));
$a["tb"] = $tyrebrand[$tb];//tire brand
$a["bst"] = (hexdec(bin2hex(fread($rs,4))))/32.0425;//brake strength (Nm)
$a["rwa"] = hexdec(bin2hex(fread($rs,1)));//rear wing angle
$a["fwa"] = hexdec(bin2hex(fread($rs,1)));//front wing angle
fread($rs,2);//0
$a["msl"] = hexdec(bin2hex(fread($rs,1)));//max steering lock
$a["ps"] = hexdec(bin2hex(fread($rs,1)));//parallel steering
$a["bb"] = hexdec(bin2hex(fread($rs,1)));//brake balance
$a["ebr"] = hexdec(bin2hex(fread($rs,1)));//engine brake reduction
//Centre Diff
$cdt = hexdec(bin2hex(fread($rs,1)));
$a["cdt"] = $cendifftype[$cdt];//centre diff type
$a["cdvt"] = hexdec(bin2hex(fread($rs,1)));//centre diff viscous torque
fread($rs,1);//0
$a["cdts"] = hexdec(bin2hex(fread($rs,1)));//centre diff torque split
//Drivetrain
$a["gr7"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 7
$a["grf"] = hexdec(bin2hex(fread($rs,2)));//gear ratio final
$a["gr1"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 1
$a["gr2"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 2
$a["gr3"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 3
$a["gr4"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 4
$a["gr5"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 5
$a["gr6"] = hexdec(bin2hex(fread($rs,2)));//gear ratio 6
//Misc 2
$a["pass"] = hexdec(bin2hex(fread($rs,1)));//passengers
$a["carconfig"] = hexdec(bin2hex(fread($rs,1)));//car config (roof on LX4/6 qnd UF1)
$a["tcs"] = (hexdec(bin2hex(fread($rs,1))))/10;//traction control slip
$a["tces"] = hexdec(bin2hex(fread($rs,1)));//traction control engage speed
//Steering rear
$a["rst"] = hexdec(bin2hex(fread($rs,4)));//rear spring travel (NOT motion range)
$a["rss"] = hexdec(bin2hex(fread($rs,4)));//rear spring stiffness (N/mm)
$a["rcbd"] = hexdec(bin2hex(fread($rs,4)));//rear compression/bump damping (N/mm)
$a["rrd"] = hexdec(bin2hex(fread($rs,4)));//rear rebound damping( N/mm)
$a["rarbs"] = hexdec(bin2hex(fread($rs,4)));//rear anti-roll bar stiffness(N/mm)
fread($rs,4);//0
$a["rtoe"] = hexdec(bin2hex(fread($rs,1)));//rear toe
$a["rcaster"] = hexdec(bin2hex(fread($rs,1)));//rear caster
$a["rtyretype"] = hexdec(bin2hex(fread($rs,1)));//rear tyre type
fread($rs,1);//0
$a["lrca"] = hexdec(bin2hex(fread($rs,1)));//lr camber adjust
$a["rrca"] = hexdec(bin2hex(fread($rs,1)));//rr camber adjust
fread($rs,2);//0
$rdt= hexdec(bin2hex(fread($rs,1)));
$a["rdt"] = $difftype[$rdt];//rear diff type
$a["rvt"] = hexdec(bin2hex(fread($rs,1)));//rear viscous torque
$a["rpl"] = hexdec(bin2hex(fread($rs,1)));//rear power locking
$a["rcl"] = hexdec(bin2hex(fread($rs,1)));//rear coast locking
$a["lrtp"] = hexdec(bin2hex(fread($rs,2)));//lr tyre pressure
$a["rrtp"] = hexdec(bin2hex(fread($rs,2)));//rr tyre pressure
//Steering Front
$a["fst"] = hexdec(bin2hex(fread($rs,4)));//front spring travel(NOT motion range)
$a["fss"] = hexdec(bin2hex(fread($rs,4)));//front spring stiffness(N/mm)
$a["fbc"] = hexdec(bin2hex(fread($rs,4)));//front bump/compression dampin (N/mm)
$a["frd"] = hexdec(bin2hex(fread($rs,4)));//front resbound damping
$a["farbs"] = hexdec(bin2hex(fread($rs,4)));//front anti-roll bar stiffness
fread($rs,4);//0
$a["fti"] = hexdec(bin2hex(fread($rs,1)));//front toe in
$a["fc"] = (hexdec(bin2hex(fread($rs,1))))/10;//front caster
$a["ftt"] = hexdec(bin2hex(fread($rs,1)));//front tyre type
fread($rs,1);//0
$a["lfca"] = hexdec(bin2hex(fread($rs,1)));//lf camber adjust
$a["rfca"] = hexdec(bin2hex(fread($rs,1)));//rf camber adjust
fread($rs,2);//0
$fdt = hexdec(bin2hex(fread($rs,1)));
$a["fdt"] = $difftype[$fdt];//front diff type
$a["fvt"] = hexdec(bin2hex(fread($rs,1)));//front viscous torque
$a["fpl"] = hexdec(bin2hex(fread($rs,1)));//front power locking
$a["fcl"] = hexdec(bin2hex(fread($rs,1)));//front coast locking
$a["lftp"] = hexdec(bin2hex(fread($rs,2)));//lr tyre pressure
$a["rftp"] = hexdec(bin2hex(fread($rs,2)));//rf tyre pressure
}
return $a;
}
?>
JS