Use this call to return detailed information about an inspection. Use this call instead of the deprecated extgetinspinfo action.
Request Data
Required Information | |
---|---|
Name | Description |
action | showopen |
operation | showinsp |
target | The report id to fetch. Numeric. |
format | xml |
Example Request
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=showopen&operation=showinsp&target=2051&format=xml
Example Request (version 2)
https://omi.zonarsystems.net/interface.php?customer=zzo2544&username=zonar&password=secret.pw.2019&action=showopen&operation=showinsp&target=4939&format=xml&version=2
Data Returned
The ffd
element is fitness for duty, it will be either true or false. This indicates whether the defect prevents safe operation of the asset. If true the asset may be used safely without repairing the defect.
The zone status attribute describes the inspection status of the zone it is attached to. Possible values are:
UN
Unknown, the zone has not been inspected.ZOV
Zone Ok Verified, the zone has been inspected, found to be ok and verified with the 2010 hand held device.ZBV
Zone Bad Verified, the zone has been inspected, found to have defects and verified with the 2010 hand held device.ZONV
Zone Ok Not Verified,the zone has been manually inspected and found free of defects. The inspection has not been verified by reading a tag.ZBNV
Zone Bad Not Verified,the zone has been manually inspected and found to have defects. The inspection has not been verified by reading a tag.
Note: The storetime and loadlocation elements may be empty. If so they will be presented in the standard format for an empty XML element like this: <storetime/> <loadlocation/>
Note: The source
element describes the device used to extract the inspection from the Zonar 2010 hand held device. Possible values are:
NA
Extractor device information not available.RDS
Inspection was extracted by a Zonar RDS.RAD
Inspection was extracted by a Zonar Evirnet radio device.MOD
Inspection was extracted by a Zonar Evircom modem.ED
Inspection was created by a manual editing system. It did not originate from a 2010 device.TST
Inspection was created by a testing program. It did not originate from a 2010 device.
Note: The data elements have been added in version 2.07 / 1.12. This is how any arbitrary data included in the inspection will be presented. The data may be associated with an asset, zone or aux item. The data consist of three elements, a name essentially a label identifying the piece of data, a type indicating what kind of data it is see below for details and the data value itself. Data types described below:
INT
The data is an integer (whole number) value.FLOAT
The data is a floating point (fractional number) value.STRING
The data is a string of characters, maximum length 255.UNKNOWN
The data type is unknown. This should never be seen.
The signature status element has been added in version 2.07 / 1.12. This indicates the status of the return SSL certificate signature. Possible values are:
VAL
Valid signature.NOS
No signature.INV
Invalid signature.EDF
Signature decode failed.NOT
Signature not checked.EOK
Failed to open public key (internal error, should not be seen).ERK
Failed to read public key (internal error, should not be seen).EEK
Failed to extractpublic key (internal error, should not be seen).EVF
Verify failed (internal error, should not be seen).
The structure of this reply has changed in protocol version 2. Version 2 responses must allow for the possibility of multiple assets per inspection and are incompatible with version 1.X responses. See Appendix d for more detailed information about API versioning.
DTD (Version 1.X)
<!ELEMENT inspinfo (inspid, date, storetime, fleet, stat, mileage, operator, loadlocation, zone*, aux*, data*)> <!ATTLIST inspinfo ver CDATA #REQUIRED> <!ELEMENT inspid (#PCDATA)> <!ELEMENT date (#PCDATA)> <!ELEMENT storetime (#PCDATA)> <!ELEMENT fleet (#PCDATA)> <!ELEMENT stat (#PCDATA)> <!ELEMENT mileage (#PCDATA)> <!ELEMENT operator (#PCDATA)> <!ELEMENT loadlocation (#PCDATA)> <!ELEMENT source (#PCDATA)> <!ELEMENT sn (#PCDATA)> <!ELEMENT firmware (#PCDATA)> <!ATTLIST config ver CDATA #REQUIRED> <!ELEMENT config (#PCDATA)> <!ELEMENT sigstate (#PCDATA)>
<!ELEMENT zone (defect*, data*)> <!ATTLIST zone name CDATA #REQUIRED> <!ATTLIST zone timestamp CDATA #REQUIRED> <!ATTLIST zone status (UN | ZOV | ZBV | ZONV | ZBNV) "UN"> <!ELEMENT defect (component, condition, ffd, defectid, repair*, pending*)> <!ELEMENT component (#PCDATA)> <!ELEMENT condition (#PCDATA)> <!ELEMENT ffd (#PCDATA)> <!ELEMENT defectid (#PCDATA)> <!ELEMENT repair (agent, date, repid, orderno, note)> <!ELEMENT agent (#PCDATA)> <!ELEMENT date (#PCDATA)> <!ELEMENT repid (#PCDATA)> <!ELEMENT orderno (#PCDATA)> <!ELEMENT note (#PCDATA)> <!ELEMENT pending (date)> <!ELEMENT date (#PCDATA)>
<!ELEMENT data EMPTY> <!ATTLIST data name CDATA #REQUIRED> <!ATTLIST data val CDATA #REQUIRED> <!ATTLIST data type (INT | FLOAT | STRING | UNKNOWN) #REQUIRED> <!ELEMENT aux (tag, unit, timestamp, auxtype, valuelabel, value, data*)> <!ELEMENT tag (#PCDATA)> <!ELEMENT unit (#PCDATA)> <!ELEMENT timestamp (#PCDATA)> <!ELEMENT auxtype (#PCDATA)> <!ELEMENT value (#PCDATA)> <!ELEMENT valuelabel (#PCDATA)> <!ELEMENT data EMPTY> <!ATTLIST data name CDATA #REQUIRED> <!ATTLIST data val CDATA #REQUIRED> <!ATTLIST data type (INT | FLOAT | STRING | UNKNOWN) #REQUIRED> <!ELEMENT data EMPTY> <!ATTLIST data name CDATA #REQUIRED> <!ATTLIST data val CDATA #REQUIRED> <!ATTLIST data type (INT | FLOAT | STRING | UNKNOWN) #REQUIRED>
Important: As of Protocol version 1.06 the repair element has been moved from the top level of the inspinfo response to the defect element.
DTD (Version 2.X)
<!ELEMENT inspinfo (inspid, date, storetime, fleet, stat, mileage, operator, loadlocation, asset+)> <!ATTLIST inspinfo ver CDATA #REQUIRED> <!ELEMENT inspid (#PCDATA)> <!ELEMENT date (#PCDATA)> <!ELEMENT storetime (#PCDATA)> <!ELEMENT fleet (#PCDATA)> <!ELEMENT stat (#PCDATA)> <!ELEMENT mileage (#PCDATA)> <!ELEMENT operator (#PCDATA)> <!ELEMENT loadlocation (#PCDATA)> <!ELEMENT source (#PCDATA)> <!ELEMENT sn (#PCDATA)> <!ELEMENT firmware (#PCDATA)> <!ATTLIST config ver CDATA #REQUIRED> <!ELEMENT config (#PCDATA)> <!ELEMENT sigstate (#PCDATA)>
<!ELEMENT asset (zone*, data*)> <!ATTLIST asset id CDATA #REQUIRED> <!ATTLIST asset fleet CDATA #REQUIRED> <!ATTLIST asset primary CDATA #REQUIRED> <!ATTLIST asset timestamp CDATA #REQUIRED> <!ELEMENT data EMPTY> <!ATTLIST data name CDATA #REQUIRED> <!ATTLIST data val CDATA #REQUIRED> <!ATTLIST data type (INT | FLOAT | STRING | UNKNOWN) #REQUIRED> <!ELEMENT zone (defect*, data*)> <!ATTLIST zone name CDATA #REQUIRED> <!ATTLIST zone timestamp CDATA #REQUIRED> <!ATTLIST zone status (UN | ZOV | ZBV | ZONV | ZBNV) "UN"> <!ELEMENT defect (component, condition, ffd, defectid, repair*, pending*)> <!ELEMENT component (#PCDATA)> <!ELEMENT condition (#PCDATA)> <!ELEMENT ffd (#PCDATA)> <!ELEMENT defectid (#PCDATA)> <!ELEMENT repair (agent, date, repid, orderno, note)> <!ELEMENT agent (#PCDATA)> <!ELEMENT date (#PCDATA)> <!ELEMENT repid (#PCDATA)> <!ELEMENT orderno (#PCDATA)> <!ELEMENT note (#PCDATA)> <!ELEMENT pending (date)> <!ELEMENT date (#PCDATA)>
<!ELEMENT data EMPTY> <!ATTLIST data name CDATA #REQUIRED> <!ATTLIST data val CDATA #REQUIRED> <!ATTLIST data type (INT | FLOAT | STRING | UNKNOWN) #REQUIRED> <!ELEMENT aux (tag, unit, timestamp, auxtype, valuelabel, value, data*)> <!ELEMENT tag (#PCDATA)> <!ELEMENT unit (#PCDATA)> <!ELEMENT timestamp (#PCDATA)> <!ELEMENT auxtype (#PCDATA)> <!ELEMENT value (#PCDATA)> <!ELEMENT valuelabel (#PCDATA)> <!ELEMENT data EMPTY> <!ATTLIST data name CDATA #REQUIRED> <!ATTLIST data val CDATA #REQUIRED> <!ATTLIST data type (INT | FLOAT | STRING | UNKNOWN) #REQUIRED>
Reply Data | |
---|---|
Name | Description |
inspid | The internal id number of the inspection the asset was reported in. |
date | Unix epoch timestamp |
storetime | May be empty. Unix epoch timestamp. |
fleet | The primary asset fleet number. Usually displayed in the web interface as Asset No. Alphanumeric, 20 characters maximum. |
stat | Inspection status. Single ASCII character.
|
mileage | The numeric value reported for the primary asset. Usually, but not always the odometer reading at the time of the inspection. The specific inspection procedures will determine what this value means. |
operator | Name of the operator (driver) that performed the inspection. Last name, first name, 32 characters maximum. |
loadlocation | The upload location the inspection was sent from. Alphanumeric, 32 characters maximum, may be empty. |
source | The device that extracted the inspection from the Zonar 2010 hand held device.
|
sn | The serial number of the 2010 device used to perform the inspection. |
firmware | Name of the firmware used. Example: ZNR-4.1.0 |
config | Inspection configuration name and version string. This is the actual name used internally in the system. For the label displayed in the web application see the cfglabel element. Example: TRUCK-2.0.1 |
sigstate | Indicates the status of the return SSL certificate signature.
|
zone | The name of the inspection zone the defect was reported in. Text, 20 characters maximum length. |
component (defect) | The defective component name. Text, 64 character maximum length. |
condition (defect) | The state of the defect. Text, 32 character maximum length. |
ffd (defect) | Fitness For Duty. If false , the defect prevents safe use of the asset. If true the asset may be safely used without repairing the defect. |
defectid (defect) | The defect internal id number. |
agent (repair) | The last and first name of the agent (mechanic) who performed the repair. Text, 66 characters maximum length (32 first name, 32 last name, 2 for comma and space). |
date (repair) | Timestamp the repair was performed. Unix epoch timestamp (UTC). |
repid | The internal id number for the repair (if any) performed on the defect. |
orderno (repair) | A user supplied string identifying the repair. May be a work order number or similar. The user's specific operating practices will determine exactly what this means. Text, 20 characters maximum length, may be empty. |
note (repair) | A user supplied note describing the repair, or providing additional information. Text, unlimited length, will always have some content. |
date (pending) | Timestamp that this pending repair is to be repaired by. Unix epoch timestamp (UTC). |
aux | The auxiliary equipment that was inspected. |
tag (aux) | Zonar RFID tag number of the aux item. This combined with the auxtype uniquely identifies the item. |
unit (aux) | The unit number or name assigned to the object. Text, not longer than 32 characters. This value will be unique to the aux item. |
timestamp (aux) | Time the item was inspected. Unix epoch timestamp. |
auxtype (aux) | The type of object this item is. Text, not longer than 32 characters. This combined with the tag number uniquely identifies identifies the item. |
valuelabel (aux) | A label identifying the units the value refers to. Text, not longer than 32 characters. |
value (aux) | Numeric, may be zero. |
Example Success Reply (Version 1.07)
<?xml version="1.0"?>
<inspinfo ver="1.07">
<inspid>2051</inspid>
<date>1115222206</date>
<storetime>1115222853</storetime>
<fleet>3406</fleet>
<stat>Y</stat>
<mileage>863</mileage>
<operator>Young,Jesse</operator>
<loadlocation>Portland</loadlocation>
<source>RDS</source>
<sn>1581487</sn>
<firmware>ZNR-4.1.0</firmware>
<config version="3.2.2">TRACTOR / TRAILER</config>
<sigstate>VAL</sigstate>
<zone name="RIGHT SIDE/ENGINE" timestamp="1115222215" status="ZOV"/>
<zone name="LEFT SIDE/ ENGINE" timestamp="1115222283" status="ZBV">
<defect>
<component>BATTERIES/SWITCH</component>
<condition>LOOSE</condition>
<ffd>true</ffd>
<defectid>846</defectid>
</defect>
</zone>
<zone name="CAB INTERIOR" timestamp="1115222308" status="ZOV"/>
<zone name="BRAKES (AIR)" timestamp="1115222394" status="ZOV"/>
<zone name="LEFT REAR" timestamp="1115222474" status="ZOV"/>
<zone name="REAR" timestamp="1115222539" status="ZOV"/>
<zone name="RIGHT REAR" timestamp="1115222637" status="ZOV"/>
<zone name="PACKER/BLADE" timestamp="1115222676" status="ZOV"/>
<zone name="SAFETY EQUIPMENT" timestamp="1115222770" status="ZOV"/>
<zone name="FRONT" timestamp="1115222815" status="ZOV"/>
<aux>
<tag>1400</tag>
<unit>1400</unit>
<timestamp>1115222915</timestamp>
<auxtype>TRAILER</auxtype>
<valuelabel>Mileage</valuelabel>
<value>25</value>
</aux>
</inspinfo>
Example Success Reply (Version 2.x)
<?xml version="1.0"?>
<inspinfo ver="2">
<inspid>4943</inspid>
<date>1148422311</date>
<storetime>1148422379</storetime>
<fleet>1112</fleet>
<stat>R</stat>
<mileage>-1</mileage>
<operator>Young,Jesse</operator>
<loadlocation/>
<source>RDS</source>
<sn>1581487</sn>
<firmware>ZNR-4.1.0</firmware>
<config version="3.2.2">TRACTOR / TRAILER</config>
<sigstate>VAL</sigstate>
<asset id="75" fleet="1112" primary="1" timestamp="1148422311">
<zone name="DRIVERS SEAT AREA" timestamp="1148422322" status="ZOV"/>
<zone name="LEFT FRONT" timestamp="1148422324" status="ZBV">
<defect>
<component>LIGHTS</component>
<condition>DAMAGED</condition>
<ffd>true</ffd>
<defectid>1305</defectid>
</defect>
</zone>
<zone name="LEFT REAR" timestamp="1148422329" status="ZOV"/>
<zone name="RIGHT REAR" timestamp="1148422333" status="ZBV">
<defect>
<component>TIRES/WHEELS/LUGS</component>
<condition>INOPERATIVE</condition>
<ffd>false</ffd>
<defectid>1306</defectid>
<repair>
<agent>Schaible, Dave</agent>
<date>1148422422</date>
<repid>165</repid>
<orderno>1156</orderno>
<note>Above defects corrected</note>
</repair>
</defect>
</zone>
<zone name="RIGHT FRONT" timestamp="1148422375" status="ZOV"/>
<data name="BRAKES - TYPE" val="AIR" type="STRING"/>
<data name="BRAKES - LISTITEM" val="AIR" type="STRING"/>
<data name="BRAKES - THICKNESS" val="0.450000" type="FLOAT"/>
</asset>
<aux>
<tag>3</tag>
<unit>3</unit>
<timestamp>1148422342</timestamp>
<auxtype>AUXILIARY 3</auxtype>
<valuelabel>HOURS</valuelabel>
<value>140</value>
</aux>
</inspinfo>