Skip to content

Instantly share code, notes, and snippets.

@dead23angel

dead23angel/sdk Secret

Last active June 26, 2016 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dead23angel/28c12d4614cb6afb0a05fb4cd6a25b3b to your computer and use it in GitHub Desktop.
Save dead23angel/28c12d4614cb6afb0a05fb4cd6a25b3b to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<devices>
<device name="Имя объекта" password="0000" phone="+71111111111" type="ADM600" unique_id="1234567890">
<counters>
<engine_hours auto="false" type="0x10" value="0.0"/>
<mileage auto="false" type="0x0" value="0.0"/>
<bytes auto="false" value="0"/>
</counters>
<custom>
<field name="Внутреннее обозначение" value="4413"/>
</custom>
<fuelc>
<absolute active="false"/>
<impulse active="false" impulses="0" skip_first_zero="false"/>
<instant active="false"/>
<level active="true" correct_invalid_values="true"/>
<math active="false" coefficient_when_loaded="1.3" idle="50.0" suburban="7000.0" urban="1000.0"/>
<rates active="false" summer_consumption="10.0" summer_idle="0.0" winter_begin_day="1" winter_begin_month="11" winter_consumption="12.0" winter_end_day="30" winter_end_month="1" winter_idle="0.0"/>
<general filter_level_values="true" filter_quality="1" ignore_filtration_when_calc_filling_volume="true" ignore_filtration_when_calc_theft_volume="true" merge_consumption_sensors="true" merge_level_sensors="true" time_based_calculation_of_consumption="true" time_based_calculation_of_fillings="true" time_based_calculation_of_thefts="true"/>
<theft detect_fill_when_stopped_only="false" detect_theft_in_motion="false" fill_volume="20.0" ignore_filtration="false" ignore_stay_timeout="120.0" theft_timeout="120.0" theft_volume="10.0"/>
</fuelc>
<sensors>
<sensor flags="0x0" id="1" name="Напряжение" parameter="pwr_ext" type="voltage" unit="V" validation_sensor_id="0" validation_type="0"/>
<sensor description="Датчик соединения с ДУТ1" flags="0x0" id="2" name="Датчик соединения с ДУТ1" parameter="count2" type="digital" unit="On/Off" validation_sensor_id="0" validation_type="1">
<ctable>
<row a="0.0" b="1.0" x="0.0"/>
<row a="0.0" b="0.0" x="1.0"/>
</ctable>
</sensor>
<sensor flags="0x0" id="3" name="Зажигание" parameter="pwr_ext" type="engine operation" unit="On/Off" validation_sensor_id="0" validation_type="1">
<ctable>
<row a="0.0" b="0.0" x="12.0"/>
<row a="0.0" b="1.0" x="13.6"/>
</ctable>
</sensor>
<sensor flags="0x0" id="4" name="Топливо" parameter="([DUT1]+[DUT2])/const2" type="fuel level" unit="litres" validation_sensor_id="0" validation_type="1"/>
<sensor description="|1:10:22:20:121:40:251:60:381:80:511:100:641:120:768:140:885:160:1000:180" flags="0x0" id="5" name="DUT1" parameter="fuel2" type="digital" validation_sensor_id="0" validation_type="1">
<ctable>
<row a="0.0" b="-348201.3876" x="-1e-08"/>
<row a="0.47619047619" b="9.52380952381" x="1.0"/>
<row a="0.20202020202" b="15.5555555556" x="22.0"/>
<row a="0.153846153846" b="21.3846153846" x="121.0"/>
<row a="0.153846153846" b="21.3846153846" x="251.0"/>
<row a="0.153846153846" b="21.3846153846" x="381.0"/>
<row a="0.153846153846" b="21.3846153846" x="511.0"/>
<row a="0.157480314961" b="19.0551181102" x="641.0"/>
<row a="0.17094017094" b="8.71794871795" x="768.0"/>
<row a="0.173913043478" b="6.08695652174" x="885.0"/>
<row a="0.0" b="-348201.3876" x="1024.00000001"/>
</ctable>
</sensor>
<sensor description="|1:40:63:60:194:80:324:100:454:120:584:140:712:160:824:180" flags="0x0" id="6" name="DUT2" parameter="fuel3" type="digital" validation_sensor_id="0" validation_type="1">
<ctable>
<row a="0.0" b="-348201.3876" x="-1e-08"/>
<row a="0.322580645161" b="39.6774193548" x="1.0"/>
<row a="0.152671755725" b="50.3816793893" x="63.0"/>
<row a="0.153846153846" b="50.1538461538" x="194.0"/>
<row a="0.153846153846" b="50.1538461538" x="324.0"/>
<row a="0.153846153846" b="50.1538461538" x="454.0"/>
<row a="0.15625" b="48.75" x="584.0"/>
<row a="0.178571428571" b="32.8571428571" x="712.0"/>
<row a="0.0" b="-348201.3876" x="1024.00000001"/>
</ctable>
</sensor>
<sensor description="Датчик соединения с ДУТ2" flags="0x0" id="7" name="Датчик соединения с ДУТ2" parameter="count1" type="digital" unit="On/Off" validation_sensor_id="0" validation_type="1">
<ctable>
<row a="0.0" b="1.0" x="0.0"/>
<row a="0.0" b="0.0" x="1.0"/>
</ctable>
</sensor>
</sensors>
<tripd gps_correction="true" lock_to_roads="false" message_distance="10000" moving_speed="1" satellites="2" stay_time="300" trip_distance="100" trip_time="60" type="1"/>
</device>
</devices>
array(17) {
["nm"]=> string(24) "Имя объекта"
["cls"]=> int(3)
["id"]=> int(91769)
["uid"]=> string(15) "1234567890"
["hw"]=> int(10213)
["ph"]=> string(12) "+71111111111"
["psw"]=> string(4) "0000"
["drv"]=> string(0) ""
["sens"]=> array(7) {
[1]=> array(10) {
["nm"]=> string(20) "Напряжение"
["tp"]=> string(7) "voltage"
["de"]=> string(0) ""
["me"]=> string(1) "V"
["pn"]=> string(7) "pwr_ext"
["fl"]=> int(0)
["tbl"]=> array(0) { }
["vt"]=> int(0)
["vs"]=> int(0)
["cfg"]=> string(32) "{"appear_in_popup":true,"pos":2}"
}
[2]=> array(10) {
["nm"]=> string(44) "Датчик соединения с ДУТ1"
["tp"]=> string(7) "digital"
["de"]=> string(44) "Датчик соединения с ДУТ1"
["me"]=> string(6) "On/Off"
["pn"]=> string(6) "count2"
["fl"]=> int(0)
["tbl"]=> array(2) {
[0]=> array(3) {
[0]=> int(0)
[1]=> int(0)
[2]=> int(1)
}
[1]=> array(3) {
[0]=> int(1)
[1]=> int(0)
[2]=> int(0)
}
}
["vt"]=> int(1)
["vs"]=> int(0)
["cfg"]=> string(32) "{"appear_in_popup":true,"pos":1}"
}
[3]=> array(10) {
["nm"]=> string(18) "Зажигание"
["tp"]=> string(16) "engine operation"
["de"]=> string(0) ""
["me"]=> string(6) "On/Off"
["pn"]=> string(7) "pwr_ext"
["fl"]=> int(0)
["tbl"]=> array(2) {
[0]=> array(3) {
[0]=> int(12)
[1]=> int(0)
[2]=> int(0)
}
[1]=> array(3) {
[0]=> float(13.6)
[1]=> int(0)
[2]=> int(1)
}
}
["vt"]=> int(1)
["vs"]=> int(0)
["cfg"]=> string(32) "{"appear_in_popup":true,"pos":3}"
}
[4]=> array(10) {
["nm"]=> string(14) "Топливо"
["tp"]=> string(10) "fuel level"
["de"]=> string(0) ""
["me"]=> string(6) "litres"
["pn"]=> string(22) "([DUT1]+[DUT2])/const2"
["fl"]=> int(0)
["tbl"]=> array(0) { }
["vt"]=> int(1)
["vs"]=> int(0)
["cfg"]=> string(32) "{"appear_in_popup":true,"pos":4}"
}
[5]=> array(10) {
["nm"]=> string(4) "DUT1"
["tp"]=> string(7) "digital"
["de"]=> string(73) "|1:10:22:20:121:40:251:60:381:80:511:100:641:120:768:140:885:160:1000:180"
["me"]=> string(0) ""
["pn"]=> string(5) "fuel2"
["fl"]=> int(0)
["tbl"]=> array(11) {
[0]=> array(3) {
[0]=> float(-1.0E-8)
[1]=> int(0)
[2]=> float(-348201.3876)
}
[1]=> array(3) {
[0]=> int(1)
[1]=> float(0.47619047619)
[2]=> float(9.52380952381)
}
[2]=> array(3) {
[0]=> int(22)
[1]=> float(0.20202020202)
[2]=> float(15.5555555556)
}
[3]=> array(3) {
[0]=> int(121)
[1]=> float(0.153846153846)
[2]=> float(21.3846153846)
}
[4]=> array(3) {
[0]=> int(251)
[1]=> float(0.153846153846)
[2]=> float(21.3846153846)
}
[5]=> array(3) {
[0]=> int(381)
[1]=> float(0.153846153846)
[2]=> float(21.3846153846)
}
[6]=> array(3) {
[0]=> int(511)
[1]=> float(0.153846153846)
[2]=> float(21.3846153846)
}
[7]=> array(3) {
[0]=> int(641)
[1]=> float(0.157480314961)
[2]=> float(19.0551181102)
}
[8]=> array(3) {
[0]=> int(768)
[1]=> float(0.17094017094)
[2]=> float(8.71794871795)
}
[9]=> array(3) {
[0]=> int(885)
[1]=> float(0.173913043478)
[2]=> float(6.08695652174)
}
[10]=> array(3) {
[0]=> float(1024.00000001)
[1]=> int(0)
[2]=> float(-348201.3876)
}
}
["vt"]=> int(1)
["vs"]=> int(0)
["cfg"]=> string(33) "{"appear_in_popup":false,"pos":5}"
}
[6]=> array(10) {
["nm"]=> string(4) "DUT2"
["tp"]=> string(7) "digital"
["de"]=> string(58) "|1:40:63:60:194:80:324:100:454:120:584:140:712:160:824:180"
["me"]=> string(0) ""
["pn"]=> string(5) "fuel3"
["fl"]=> int(0)
["tbl"]=> array(9) {
[0]=> array(3) {
[0]=> float(-1.0E-8)
[1]=> int(0)
[2]=> float(-348201.3876)
}
[1]=> array(3) {
[0]=> int(1)
[1]=> float(0.322580645161)
[2]=> float(39.6774193548)
}
[2]=> array(3) {
[0]=> int(63)
[1]=> float(0.152671755725)
[2]=> float(50.3816793893)
}
[3]=> array(3) {
[0]=> int(194)
[1]=> float(0.153846153846)
[2]=> float(50.1538461538)
}
[4]=> array(3) {
[0]=> int(324)
[1]=> float(0.153846153846)
[2]=> float(50.1538461538)
}
[5]=> array(3) {
[0]=> int(454)
[1]=> float(0.153846153846)
[2]=> float(50.1538461538)
}
[6]=> array(3) {
[0]=> int(584)
[1]=> float(0.15625)
[2]=> float(48.75)
}
[7]=> array(3) {
[0]=> int(712)
[1]=> float(0.178571428571)
[2]=> float(32.8571428571)
}
[8]=> array(3) {
[0]=> float(1024.00000001)
[1]=> int(0)
[2]=> float(-348201.3876)
}
}
["vt"]=> int(1)
["vs"]=> int(0)
["cfg"]=> string(33) "{"appear_in_popup":false,"pos":6}"
}
[7]=> array(10) {
["nm"]=> string(44) "Датчик соединения с ДУТ2"
["tp"]=> string(7) "digital"
["de"]=> string(44) "Датчик соединения с ДУТ2"
["me"]=> string(6) "On/Off"
["pn"]=> string(6) "count1"
["fl"]=> int(0)
["tbl"]=> array(2) {
[0]=> array(3) {
[0]=> int(0)
[1]=> int(0)
[2]=> int(1)
}
[1]=> array(3) {
[0]=> int(1)
[1]=> int(0)
[2]=> int(0)
}
}
["vt"]=> int(1)
["vs"]=> int(0)
["cfg"]=> string(32) "{"appear_in_popup":true,"pos":7}"
}
}
["sens_max"]=> int(-1)
["cfl"]=> int(16)
["cnm"]=> int(0)
["cneh"]=> int(0)
["si"]=> array(0) { }
["simax"]=> int(-1)
["flds"]=> array(1) {
[1]=> array(3) {
["id"]=> int(1)
["nm"]=> string(43) "Внутреннее обозначение"
["vl"]=> string(4) "4413"
}
}
["flds_max"]=> int(-1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment