Тема: Unit staus
Добрый день,
Я использую следующий запрос для получения информации о доступных машин:
//hst-api.wialon.com/wialon/ajax.html?svc=core/search_items¶ms={'spec':{'itemsType':'avl_unit','propName':'sys_unique_id','propValueMask':'*','sortType':'sys_unique_id','propType':'propitemname'},'force':1,'flags':0x3FFFFFFFFFFFFFFF,'from':0,'to':0}&sid=" + sid;
пожалуйста подскажите какое значение показывает статус машины (занять, свободен, и тд.)
Заранее благодарю.
P.S. вот отрывок из результата о машине
{
"nm": "3 .",
"cls": 2,
"id": 56415,
"prp": {
"monitoring_sensor": "0 ee00ff06 OK;1 eeff1c00 SOS;2 ee0000ff",
"monitoring_sensor_id": "1",
"sensors_colors_id": "1",
"speed_colors": "0 ee92fa69;20 ee21a40b;50 CCf55058;100 eec4090f"
},
"crt": 55806,
"bact": 55807,
"gd": "ef0b1557111b9aac8beb6f4c01fb9746",
"uid": "352848023114123",
"hw": 28252,
"ph": "+37499108304",
"ph2": "",
"psw": "opa",
"cmds": [],
"pos": {
"t": 1374134784,
"y": 40.1834656,
"x": 44.4595296,
"z": 996,
"s": 0,
"c": 118,
"sc": 10
},
"lmsg": {
"t": 1374134784,
"f": 3,
"tp": "ud",
"pos": {
"y": 40.1834656,
"x": 44.4595296,
"z": 996,
"s": 0,
"c": 118,
"sc": 10
},
"i": 1,
"p": {
"battery_charge": 1,
"param179": 0,
"param199": 0
}
},
"sens": {
"1": {
"id": 1,
"n": "Ð¢Ñ€ÐµÐ²Ð¾Ð¶Ð½Ð°Ñ ÐºÐ½Ð¾Ð¿ÐºÐ°",
"t": "digital",
"d": "SOS",
"m": "On/Off",
"p": "in1",
"f": 0,
"c": "{\"appear_in_popup\":true,\"pos\":3}",
"vt": 0,
"vs": 0,
"tbl": []
},
"2": {
"id": 2,
"n": "РаÑÑтаÑние",
"t": "odometer",
"d": "км",
"m": "кm",
"p": "param199",
"f": 0,
"c": "{\"appear_in_popup\":true,\"pos\":2}",
"vt": 0,
"vs": 0,
"tbl": [
{
"x": 1,
"a": 0.001,
"b": 0
}
]
},
"3": {
"id": 3,
"n": "driver",
"t": "driver",
"d": "",
"m": "",
"p": "avl_driver",
"f": 0,
"c": "{\"appear_in_popup\":false,\"pos\":1}",
"vt": 1,
"vs": 0,
"tbl": []
}
},
"sens_max": -1,
"cfl": 1808,
"cnm": 445557,
"cneh": 0,
"cnkb": 3579,
"cml": {},
"cml_max": -1,
"prms": {
"battery_charge": {
"v": 16777216,
"ct": 1374109543,
"at": 1374134784
},
"in": {
"v": 1,
"ct": 1374109543,
"at": 1374134784
},
"out": {
"v": 0,
"ct": 1366626357,
"at": 1368173207
},
"param179": {
"v": 0,
"ct": 1366626357,
"at": 1374134784
},
"param199": {
"v": 0,
"ct": 1371091230,
"at": 1374134784
},
"posinfo": {
"v": {
"y": 40.1834656,
"x": 44.4595296,
"z": 996,
"c": 118,
"sc": 10
},
"ct": 1374134784,
"at": 1374134784
},
"speed": {
"v": 0,
"ct": 1374134784,
"at": 1374134784
}
},
"si": {},
"simax": 0,
"rtd": {
"type": 1,
"gpsCorrection": 1,
"minSat": 2,
"minMovingSpeed": 1,
"minStayTime": 300,
"maxMessagesDistance": 10000,
"minTripTime": 60,
"minTripDistance": 100
},
"rfc": {
"calcTypes": 193,
"fuelLevelParams": {
"flags": 1,
"ignoreStayTimeout": 20,
"minFillingVolume": 20,
"minTheftTimeout": 0,
"minTheftVolume": 10,
"filterQuality": 0
},
"fuelConsMath": {
"idling": 2,
"urban": 10,
"suburban": 7,
"loadCoef": 1.3
},
"fuelConsRates": {
"consSummer": 10,
"consWinter": 12,
"winterMonthFrom": 11,
"winterDayFrom": 1,
"winterMonthTo": 1,
"winterDayTo": 30
},
"fuelConsImpulse": {
"maxImpulses": 0,
"skipZero": 0
}
},
"ugi": 1,
"uacl": 880265921027
}
GS monitoring Yerevan, Armenia