POST api/Obd/GetObdStatus

Acquiring [car OBD state machine]

Request Information

Body Parameters

ObdStatusModel
NameDescriptionTypeAdditional information
DeviceId

device id

integer

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "Token": "sample string 2",
  "Language": "sample string 3",
  "AppId": "sample string 4"
}

application/xml, text/xml

Sample:
<ObdStatusModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 4</AppId>
  <Language>sample string 3</Language>
  <Token>sample string 2</Token>
  <DeviceId>1</DeviceId>
</ObdStatusModel>

Response Information

Resource Description

Statestatus code
0. Indicates success
1100. device does not exist
3000. no obd data

ObdStatusResult
NameDescriptionTypeAdditional information
Logo

Set logo icon

string

None.

Item

OBD state term

ObdStatusInfo

None.

Network

Network

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Logo": "sample string 1",
  "Item": {
    "Acc": true,
    "AvgFuel": 2.0,
    "AvgSpeed": 3,
    "Brakes": 4,
    "Distance": 5.0,
    "Door": 6,
    "Ext1": 7,
    "Ext2": "sample string 8",
    "Ext3": 9.0,
    "Ext4": 10,
    "Ext5": 11,
    "Fault": true,
    "Fuel": 13.0,
    "Functions": "sample string 14",
    "IMEI": "sample string 15",
    "LastCommunication": "2018-12-19T05:09:52.9514453+08:00",
    "LifeDistance": 17.0,
    "Light": 18,
    "Locked": 19,
    "OverOil": 20.0,
    "Pm25": 21,
    "Rpm": 22,
    "ServerUtcTime": "2018-12-19T05:09:52.9514453+08:00",
    "Speed": 24,
    "Status": 25,
    "SteeringAngle": "sample string 26",
    "Temperature": 27,
    "Tire": 28,
    "Trunk": 29,
    "VersionNo": "sample string 30",
    "Voltage": 31.0,
    "Window": 32,
    "WaterTemp": 33,
    "Load": 34.0,
    "RunTime": 35,
    "CoolantTemp": 36,
    "IntakeTemp": 37,
    "IntakePressue": 38,
    "FuelTrim": 39.0,
    "IgnitionAngle": 40.0,
    "AirFlow": 41.0,
    "FaultDistance": 42.0,
    "FaultTime": 43,
    "Throttle": 44,
    "HundredFuel": 45.0,
    "FuelPressure": 46.0,
    "Air_Fuel": 47.0,
    "RelativeThrottle": 48.0
  },
  "Network": {
    "Singal": 1,
    "Satellite": 2
  },
  "State": 2
}

application/xml, text/xml

Sample:
<ObdStatusResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>2</State>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NetApi.Helper.Models.ViewModel">
    <d2p1:Acc>true</d2p1:Acc>
    <d2p1:AirFlow>41</d2p1:AirFlow>
    <d2p1:Air_Fuel>47</d2p1:Air_Fuel>
    <d2p1:AvgFuel>2</d2p1:AvgFuel>
    <d2p1:AvgSpeed>3</d2p1:AvgSpeed>
    <d2p1:Brakes>4</d2p1:Brakes>
    <d2p1:CoolantTemp>36</d2p1:CoolantTemp>
    <d2p1:Distance>5</d2p1:Distance>
    <d2p1:Door>6</d2p1:Door>
    <d2p1:Ext1>7</d2p1:Ext1>
    <d2p1:Ext2>sample string 8</d2p1:Ext2>
    <d2p1:Ext3>9</d2p1:Ext3>
    <d2p1:Ext4>10</d2p1:Ext4>
    <d2p1:Ext5>11</d2p1:Ext5>
    <d2p1:Fault>true</d2p1:Fault>
    <d2p1:FaultDistance>42</d2p1:FaultDistance>
    <d2p1:FaultTime>43</d2p1:FaultTime>
    <d2p1:Fuel>13</d2p1:Fuel>
    <d2p1:FuelPressure>46</d2p1:FuelPressure>
    <d2p1:FuelTrim>39</d2p1:FuelTrim>
    <d2p1:Functions>sample string 14</d2p1:Functions>
    <d2p1:HundredFuel>45</d2p1:HundredFuel>
    <d2p1:IMEI>sample string 15</d2p1:IMEI>
    <d2p1:IgnitionAngle>40</d2p1:IgnitionAngle>
    <d2p1:IntakePressue>38</d2p1:IntakePressue>
    <d2p1:IntakeTemp>37</d2p1:IntakeTemp>
    <d2p1:LastCommunication>2018-12-19T05:09:52.9514453+08:00</d2p1:LastCommunication>
    <d2p1:LifeDistance>17</d2p1:LifeDistance>
    <d2p1:Light>18</d2p1:Light>
    <d2p1:Load>34</d2p1:Load>
    <d2p1:Locked>19</d2p1:Locked>
    <d2p1:OverOil>20</d2p1:OverOil>
    <d2p1:Pm25>21</d2p1:Pm25>
    <d2p1:RelativeThrottle>48</d2p1:RelativeThrottle>
    <d2p1:Rpm>22</d2p1:Rpm>
    <d2p1:RunTime>35</d2p1:RunTime>
    <d2p1:ServerUtcTime>2018-12-19T05:09:52.9514453+08:00</d2p1:ServerUtcTime>
    <d2p1:Speed>24</d2p1:Speed>
    <d2p1:Status>25</d2p1:Status>
    <d2p1:SteeringAngle>sample string 26</d2p1:SteeringAngle>
    <d2p1:Temperature>27</d2p1:Temperature>
    <d2p1:Throttle>44</d2p1:Throttle>
    <d2p1:Tire>28</d2p1:Tire>
    <d2p1:Trunk>29</d2p1:Trunk>
    <d2p1:VersionNo>sample string 30</d2p1:VersionNo>
    <d2p1:Voltage>31</d2p1:Voltage>
    <d2p1:WaterTemp>33</d2p1:WaterTemp>
    <d2p1:Window>32</d2p1:Window>
  </Item>
  <Logo>sample string 1</Logo>
  <Network>
    <Satellite>2</Satellite>
    <Singal>1</Singal>
  </Network>
</ObdStatusResult>