FlexAPI_TCP_for_3rd_party_platform¶
FlexAPI TCP Integration Guide for Third-Party Platforms for VT
For VT series¶
Revision History¶
| Revision | Date | Author | Item(s) changed | Note |
|---|---|---|---|---|
| 1.0.1 | 2021-07-21 | liyb | Created this document based on . | |
| 1.0.1 | 2024-08-16 | Tianmh | Update. |
1. Introduction¶
We introduced FlexAPI for the fast evolving IoT applications, which highly value easy integration, openness, flexibility, extensibility and programmability.
FlexAPI is designed to be efficient, clean and ready to use. It's network oriented and programming language independent, and is ideal for cloud platform integration.
FlexAPI provides unified data and control services via TCP messages for 3rd party platforms.
For data service, each topic corresponds to a group of data, and we have ready to use reserved groups such as: GNSS, Motion, IO, OBD, Cellular, Sensor, W2R(Modbus).
Besides, user can use sysinfo group to obtain device basic information.
In general, reserved groups are enough for user's need.
For advanced users, they can even define their interested groups and set their uploading intervals.
We employ a request & response scheme for user initiated service requests.
1.1 Architecture¶


2. FlexAPI Overview¶
FlexAPI organizes data as groups and provides ready to use reserved groups for users to develop their applications.
FlexAPI allow users to change reserved and custom group settings.
Users can get timer triggered group data periodically and event triggered data. Besides, FlexAPI also allow users to actively get group data on demand.
For user initiated service requests we employ a request & response scheme.
Request & response scheme means users need to subscribe to the response topics, and they request service by publishing a message to the request topics.
This overview part gives summary on: FlexAPI general information, error codes and supported topics.
For Basic Usage, see 3. Basic usage.
For Advanced Usage, see 4. Advanced usage.
For FlexAPI supported Parameters, see Appendix A. FlexAPI supported Parameters.
2.1 FlexAPI Return Information and Errors¶
2.1.0 FlexAPI Message Format¶


Head: The start character of packet.\ JSON Data: The message in JSON format in packet.\ CRC16: Checksum, Only the JSON data part is calculated. CRC parameter: POLY: 0x8005\ (x16 + x15 + x^2 + 1), INIT: 0x0000, XOROUT: 0x0000.\ End: The end sequence of packet.
2.1.1 General Information¶
| Parameter Name | Description | Type | Note |
|---|---|---|---|
| client_token | client token | string | A unique string for users to match responses with the corresponding requests. |
| result | result | object | When the request succeeds, there will be result field in response message body. API callers should check the content of the result field to determine whether the request has been successfully processed. |
| error | error code | string | When the request fails, it is added to the response message body. For more information, see General Error Codes |
| error_desc | error description | string | When the request fails, it is added to the response message body. For more information, see General Error Codes |
| ts | time stamp | number | UNIX timestamp since Epoch. Indicates when the message was transmitted by device. |
2.1.2 General Error Codes¶
| Error Code | Description | Error Handling |
|---|---|---|
| auth_failed | authentication failed | check username and password |
| invalid_parameter | invalid parameter | check request parameter |
| not_found | resource not exist | make sure related service is enabled and running |
| device_busy | device busy | retry request |
| device_error | device internal error | retry request |
| data_invalid | resource invalid | retry request |
2.3 FlexAPI Limits¶
| Resource | Limit |
|---|---|
Minimum retry interval of settings, refresh, get requests |
3 s |
Minimum retry interval of io control request |
5 s |
client_id size |
SN of VT series |
client_token size |
up to 32 bytes of arbitrary string |
| Available custom groups | up to 8 |
| Maximum data items per group | 32 |
3. Basic Usage¶
3.1 Timer Triggered Reserved Group Data Get¶
3.1.1 OBD Data¶
JSON data:
Parameter description, See General Information & OBD Parameters.
Use OBD settings to modify group setting(interval & interest).
3.1.2 GNSS Data¶
You will periodically receive the related data by default.
**JSON data **
Parameter description, See General Information & GNSS Parameters.
Use GNSS settings to modify group setting(interval & interest).
3.1.3 Motion Data¶
You will periodically receive the related data by default.
JSON data:
Parameter description, See General Information & Motion Parameters.
Use Motion settings to modify group setting(interval & interest).
3.1.4 IO Data¶
You will periodically receive the related data by default.
JSON data:
Parameter description, See General Information & IO Parameters.
Use IO settings to modify group setting(interval & interest).
3.1.5 Cellular1 Data¶
You will periodically receive the related data by default.
**JSON data **:
Parameter description, See General Information & Cellular Parameters.
Use Cellular settings to modify group setting(interval & interest).
3.1.6 Sysinfo Data¶
**JSON data **:
Parameter description, See General Information & System Parameters.
Use Sysinfo Settings to modify group setting(interval & interest).
3.1.7 Sensor info¶
The VT series uses group sensor to upload the data from sensors to MQTT broker.At present, only iButton/temperature sensor connected with 1-wire bus are supported.
**JSON data **:
Parameter description, See General Information & Sensor Parameters.
3.1.8 W2R info¶
The VT series use this topic to upload the data from wired or wireless interface to MQTT broker. At present, only modbus(interface: serial4) is supported.
**JSON data **:
The format of the w2r.rmt value is as follows,
:::tips [[slave address,function code,register address,data], [slave address,function code,register address,data], [slave address,function code,register address,data], ...,[slave address,function code,register address,data]]
:::
Parameter description, See General Information & W2R Parameters.
3.2 Reserved Group Settings¶
3.2.1 General Settings¶
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| client_token | A unique string for users to match responses with the corresponding requests. | string | mandatory | |||
| interval | uploading interval | int | [0,3600] | s | optional | 0: disable timer upload |
| interest | interest parameter List of interested item, each item is represented as key: alias. alias is used in reported messages to rewrite key, a value of "" means no alias. For example, set interest with alias: {"obd.mil": "MIL", "obd.dtcs": "dtcNum"} reported data: {"MIL": "1", "dtcNum": "3"} set interest without alias: {"obd.mil": "", "obd.dtcs": ""} reported data: {"obd.mil": "1", "obd.dtcs": "3"} | object | optional | 'key': FlexAPI Supported parameters 'alias': parameter alias OBD group, see OBD Parameters GNSS group, see GNSS Parameters Motion group, see Motion Parameters IO group, see IO Parameters |
For interval and interest parameters, there are four use cases which apply to both reserved and custom groups.
Case 1. Disable Group Data Uploading
Specify only interval field and set its value to 0 in message body.
Note: group_name is obd, gnss, motion, io, summary, or custom group name.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
Case 2. Change Only Group Data Uploading Interval
Specify only interval field in message body.
Request JSON data:
Response Topic: v1/{client_id}/{group_name}/set/resp
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
Case 3. Change only group data interest
Specify only interest field in message body.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
Case 4. Change Both Interest and Uploading Interval
Specify both interest and interval fields in message body.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
3.2.2 OBD Settings¶
Publish a message to this topic to set your interested data and uploading interval.
Default interval is 60s. Default interest is available parameters from the OBD Parameters.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
3.2.3 GNSS Settings¶
Publish a message to this topic to set your interested data and uploading interval.
Default interval is Auto. Default interest is available parameters from the GNSS Parameters.
Request Topic:v1/{client_id}/gnss/set
Request JSON data:
Response Topic: v1/{client_id}/gnss/set/resp
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
3.2.4 Motion Settings¶
Publish a message to this topic to set your interested data and uploading interval.
Default interval is 60s. Default interest is available parameters from the Motion Parameters.
Request Topic:v1/{client_id}/motion/set
Request JSON data:
Response Topic: v1/{client_id}/motion/set/resp
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
3.2.5 IO Settings¶
Publish a message to this topic to set your interested data and uploading interval.
Default interval is 60s. Default interest is available parameters from the IO Parameters.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
3.2.6 Cellular1 Settings¶
Publish a message to this topic to set your interested data and uploading interval.
Default interval is 60s. Default interest is available parameters from the Cellular Parameters.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
3.2.7 Sysinfo Settings¶
Publish a message to this topic to set your interested data and uploading interval.
Default interval is 600s. Default interest is available parameters from the System Parameters.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information.
3.3 On Demand Reserved Group Information Get¶
3.3.1 OBD Data¶
Request JSON data:
**Response JSON data:
Success:
Failure:
Parameter description, reference General Information & OBD Parameters.
3.3.2 GNSS Data¶
Publish a message to get GNSS data on demand.
Request JSON data:
Response Topic: v1/{client_id}/gnss/refresh/resp
Response JSON data:
Success:
Failure:
Parameter description, reference General Information & GNSS Parameters.
3.3.3 Motion Data¶
Publish a message to get motion data on demand.
**Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, reference General Information & Motion Parameters.
3.3.4 IO Data¶
Publish a message to get IO data on demand.
Request JSON data:
Response Topic: v1/{client_id}/io/refresh/resp
Response JSON data:
Success:
Failure:
Parameter description, reference General Information & IO Parameters.
3.3.5 Cellular1 Data¶
Publish a message to get cellular data on demand.
Request JSON data:
Response Topic: v1/{client_id}/cellular1/refresh/resp
Response JSON data:
Success:
Failure:
Parameter description, reference General Information & Cellular Parameters.
3.3.6 System Info¶
Publish a message to get system info on demand.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, reference General Information & System Parameters.
3.4 Control Service¶
3.4.1 IO Control¶
Publish a message to this topic to turn on/off the digital output.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information & IO Parameters digital output part.
3.4.2 Management control¶
3.4.2.1 General Parameters Description¶
| Parameter Name | Description | Type | Optional | Note |
|---|---|---|---|---|
| client_token | A unique string for users to match responses with the corresponding requests | string | ||
| operation | Task type | string | ||
| target | Operation object | string | ||
| params | Information needed by the task | object | Optional | |
| status | Task execution status | string | ||
| desc | Task failure reason | string | Optional |
Currently Supported Tasks are As Follows:
| Task | Operation | Target | Response | Reference | Note |
|---|---|---|---|---|---|
| Upgrade device firmware | upgrade | dev-fw | process | see Upgrade device firmware | |
| Device configuration get | cfg-get | dev-cfg | see Device configuration get | ||
| Device configuration set | cfg-set | dev-cfg | see Device configuration set |
3.4.2.2 Upgrade Device Firmware¶
Publish a message to this topic to execute a firmware upgrade.
Request JSON data:
Parameters description in params are described as follows:
| Parameter Name | Description | Type | Value | Units | Optional |
|---|---|---|---|---|---|
| len | Device firmware length | int | byte | ||
| url | Device firmware location to download | string | |||
| md5 | Device firmware md5 checksum | string |
Response JSON data:
If the task is accepted, the stage status information will be reported about every 3 seconds in response topic.
Downloading:
Upgrading:
Rebooting:
If any errors occur during the upgrade process, the following message will be reported.
Failure:
For detailed parameter description, see General parameters description.
3.4.2.3 Device configuration get¶
Publish a message to this topic to Obtain the current device configuration.
Request JSON data:
Response JSON data:
3.4.2.4 Device configuration set¶
Publish a message to this topic to set device configuration.
Request JSON data:
Response JSON data:
Success:
The device will restart in 10 seconds.
Failure:
4. Advanced Usage¶
4.1 Custom Group Settings¶
4.1.1 Create/Update Custom Group¶
Use the following topics to define your interested groups and set their uploading intervals.
For interval and interest parameters, there are four use cases. See General settings.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information & General settings.
4.1.2 Get Custom Group Settings¶
Use the following topics to get custom group settings.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information & General settings.
4.2 Timer Triggered Custom Group Data Get¶
Once you have subscribed to this topic, you will periodically receive the related data.
JSON data:
Parameter description, see General Information & FlexAPI supported Parameters.
4.3 On Demand Custom Group Data Get¶
Publish a message to get group_name data on demand.
Request JSON data:
Response JSON data:
Success:
Failure:
Parameter description, see General Information & FlexAPI supported Parameters.
5. Event Service¶
5.1 Event Level¶
| Level Name | Value | Description |
|---|---|---|
| Emergency | 5 | System is unusable. |
| Alert | 4 | Action must be taken immediately. |
| Error | 3 | Error conditions. |
| Warning | 2 | Warning conditions. |
| Notice | 1 | Normal but significant condition. |
5.2 Event Types¶
5.2.1 General event Types¶
| Event Type | Description | Level | Note |
|---|---|---|---|
| IGON | The ignition input has transitioned from low to high. | 1 | |
| IGOFF | The ignition input has transitioned from high to low. | 1 | |
| SYS_SLEEP | The device entered deep sleep mode. | 1 | |
| DI_CHG | The value of Digital Input pin is changed. | 1 | |
| OVERSPEED | The device detects the occurrence of a overspeed event. | 1 |
5.2.2 DTC event Types¶
| Event Name | Event Type | Description | Level | Note |
|---|---|---|---|---|
| OBDII DTC | OBDII_DTC_{dtc} | OBDII diagnostic trouble code event. | 2 | dtc: diagnostic trouble code string. see OBD-II DTC |
| J1939 DTC | J1939_DTC_{spn} | J1939 diagnostic trouble code event. | 2 | spn: see J1939 DTC |
5.2.3 HARSH event Types¶
| Event Type | Description | Level | Note |
|---|---|---|---|
| COLLISION | The device detects the occurrence of a collision event. | 2 | see COLLISION event. |
| HARSH_ACCELERATION | The device detects the occurrence of a acceleration event | 2 | see HARSH ACCELERATION event. |
| HARSH_BRAKING | The device detects the occurrence of a braking event | 2 | see HARSH BRAKING event. |
5.2.4 TURN event Types¶
| Event type | Description | Level | Note |
|---|---|---|---|
| TURN_LEFT | The device detects the occurrence of a turn left event. | 2 | see TURN_LEFT. |
| TURN_RIGHT | The device detects the occurrence of a turn right event. | 2 | see TURN_RIGHT. |
5.2.5 IDLE event Types¶
| Event type | Description | Level | Note |
|---|---|---|---|
| IDLE | The device detects that the vehicle changes from moving to stationary state. | 2 | see IDLE. |
| IDLE_END | The device detects that the vehicle changes from stationary to moving state. | 2 | see IDLE_END. |
5.3 Event parameters¶
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| starts_at | Event start time | number | s | UNIX timestamp, in seconds since the epoch | ||
| ends_at | Event end time | number | s | Optional | UNIX timestamp, in seconds since the epoch. When the event is cleared, it is added to the event message body | |
| status | Event status | string | raise/clear |
raise:event occur clear:event recovery | ||
| type | Event type | string | see Event Types | |||
| level | Event level | number | see Event Level | |||
| gnss.xxx | Additional location information(if any) | Optional | Location information associated with the event. see GNSS Parameters | |||
| motion.xxx | Additional motion information(if any) | Optional | Motion information associated with the event. see Motion Parameters | |||
| obd.xxx | Additional obd information(if any) | Optional | OBD information associated with the event. see OBD Parameters | |||
| io.xxx | Additional io information(if any) | Optional | IO information associated with the event. see IO Parameters |
5.4 Event examples¶
5.4.1 General event¶
Once you have subscribed to this topic, you will receive the related event information.
JSON data:
Parameter description, See Event parameters & FlexAPI supported Parameters.
5.4.2 DTC event¶
Once you have subscribed to this topic, you will receive the related event information.
5.4.2.1 OBD-II DTC¶
Event occur:
JSON data:
Event clear:
JSON data:
Parameter description:
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| dtc | Diagnostic trouble code | string | ||||
| desc | Diagnostic trouble code description | string | optional |
More parameter description, See Event parameters & FlexAPI supported Parameters.
5.4.2.2 J1939 DTC¶
Event occur:
JSON data:
Event clear:
JSON data:
Parameter description:
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| src_addr | Source Address | int | ||||
| fmi | Failure Mode Indicator | int | ||||
| oc | Occurrence Count | int | ||||
| spn | Suspect Parameter Number | int |
More parameter description, See Event parameters & FlexAPI supported Parameters.
5.4.3 HARSH event¶
5.4.3.1 COLLISION event¶
Event occur:
JSON data:
5.4.3.2 HARSH_ACCELERATION event¶
Event occur:
JSON data:
5.4.3.3 HARSH_BRAKING event¶
Event occur:
JSON data:
Parameter description:
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| CUR_ACC | The Acceleration when event occur. | double | ||||
| CUR_TM | Time of event occurrence | string | GMT+0 |
More parameter description, See Event parameters & FlexAPI supported Parameters.
5.4.4 TURN event¶
5.4.4.1 TURN LEFT event¶
Event occur:
JSON data:
5.4.4.2 TURN RIGHT event¶
Event occur:
JSON data:
Parameter description:
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| cur_mdps | Angular velocity when cornering occurs. | float | ||||
| last_heading | GPS heading before turning. | float | ||||
| CUR_TM | Time of event occurrence | string | GMT+0 |
5.4.5 IDLE and IDLE_END event¶
5.4.5.1 IDLE event¶
Event occur:
JSON data:
5.4.5.2 IDLE_END event¶
Event occur:
JSON data:
Parameter description:
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| duration | If this param in IDLE event, it indicates that the device varied from motion status to rest status, it's the motion status's duration. So, in IDLE_END event, it indicates that the device varied from rest status to motion status, it's the reset status's duration. | DWORD | 0~4294967295 | second | ||
| CUR_TM | Time of event occurrence | string |
Appendix A. FlexAPI Supported Parameters¶
A.1 GNSS Parameters¶
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| gnss.ts | The last time the GNSS info was updated | int | s | UNIX timestamp, in seconds since the epoch | ||
| gnss.latitude | latitude | float | deg | mandatory | ||
| gnss.longitude | longitude | float | deg | mandatory | ||
| gnss.altitude | altitude | float | m | mandatory | ||
| gnss.speed | speed | float | knots | mandatory | ||
| gnss.heading | heading | float | [0.0,360.0] | ° | ||
| gnss.hdop | Horizontal DOP | float | ||||
| gnss.fix | GNSS fix status | int | 0: NoFix; 1: DR Only 2: 2D; 3: 3D 4: GNSS+DR; 5: Time Only | |||
| gnss.num_sv | number of satellites used | int | [0,12] |
A.2 Motion Parameters¶
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| motion.ts | The last time the Motion info was updated | int | s | UNIX timestamp, in seconds since the epoch | ||
| motion.ax | x-axis accelerometer | float | g | mandatory | accelerometer | |
| motion.ay | y-axis accelerometer | float | g | mandatory | accelerometer | |
| motion.az | z-axis accelerometer | float | g | mandatory | accelerometer | |
| motion.gx | x-axis gyroscope | float | deg/s | mandatory | gyroscope | |
| motion.gy | y-axis gyroscope | float | deg/s | mandatory | gyroscope | |
| motion.gz | z-axis gyroscope | float | deg/s | mandatory | gyroscope |
A.3 IO Parameters¶
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| io.ts | The last time the IO info was updated | int | s | UNIX timestamp, in seconds since the epoch | ||
| io.AI{n} | Analog Input n | float | [0,36.0] null:invalid | V | mandatory | n: [1,1] |
| io.DI{n} | Digital Input n | int | 0: low 1: high null:invalid | mandatory | n: [1,4] | |
| io.DI{n}_pullup | Digital Input pullup n | int | 0: down 1: up null:invalid | mandatory | n: [1,4] | |
| io.DO{n} | Digital Output n | int | 0: low 1: high null:invalid | mandatory | n: [1,3] | |
| io.igt_status | Ignition signal | int | 0:off1:on | Ignition signal | ||
| io.power_input | Supply voltage | float | [0,36.0] | V | ||
| io.battery_lvl | Battery capacity percentage | int | [0,100] |
A.4 OBD Parameters¶
| Parameter Name | Description | Type | J1939 PGN:SPN | J1979 SID: PID | J1708 MID:PID | Range | Units | Note |
|---|---|---|---|---|---|---|---|---|
| obd.ts | The last time the OBD info was updated | int | N/A | N/A | N/A | N/A | s | UNIX timestamp, in seconds since the epoch |
| obd.bitrate | OBD Interface bitrate | int | N/A | N/A | N/A | 250000/500000 | bps | |
| obd.iftype | OBD Interface type | string | N/A | N/A | N/A | CAN | ||
| obd.status | OBD connection status | string | N/A | N/A | N/A | Disconnected/Connecting/Connected | ||
| obd.protocol | OBD protocol type | string | N/A | N/A | J1939/OBD-II | |||
| obd.vin | Vehicle Identification Number | string | 65260:237 | 09h:02h | 128:237 | |||
| obd.e_load | Engine Load | double | 61443:92 | 01h:04h | 128:92 | [0,250.00] 0: stopped >0: started | % | |
| obd.c_temp | Engine Coolant Temp | int | 65262:110 | 01h:05h | 128:110 | [-40,215] | ℃ | |
| obd.rpm | Engine Speed | double | 61444:190 | 01h:0Ch | 128:190 | [0,16383.75] | RPM | |
| obd.speed | Vehicle Speed | int | 65265:84 | 01h:0Dh | 128:84 | [0,255] | km/h | |
| obd.f_lvl | Fuel Level | double | 65276:96 | 01h:2Fh | 140:96 | [0,100.00] | % | |
| obd.f_rate | Fuel Rate | double | 65266:183 | 01h:5Eh | 128:183 | [0,3276.75] | l/h | |
| obd.dtcs | DTC Count | int | 65230:1218 | 01h:01h | Not Supported | [0,250] | ||
| obd.mil | MIL Status | boolean | 65226:1213 | 01h:01h | Not Supported | 0:off 1:on | ||
| obd.b_volt | Battery Voltage | double | 65271:168 | 0x01:0x42 | 128:168 | [0,3212.75] | V | |
| obd.a_temp | Ambient Air Temp | int | 65269:171 | 01h:46h | 140:171 | [-273,1734] | ℃ | |
| obd.o_temp | Engine Oil Temp | int | 65262:175 | 01h:5Ch | 128:175 | [-273,1734] | ℃ | |
| obd.up_time | Engine Start Time | int | 64952:3301 | 01h:1Fh | Not Supported | [0,65535] | sec | |
| obd.m_dist | Distance traveled while MIL is Activated | int | 49408:3069 | 01h:21h | Not Supported | [0,65535] | km | |
| obd.d_dist | Distance traveled since DTCs cleared | int | 49408:3294 | 01h:31h | Not Supported | [0,65535] | km | |
| obd.m_time | Engine run time while MIL activated | int | 49408:3295 | Not Supported | Not Supported | [0,65535] | min | |
| obd.d_time | Engine run time since DTCs cleared | int | 49408:3296 | Not Supported | Not Supported | [0,65535] | min | |
| obd.f_press | Fuel Pressure | int | 64929:3480 | 01h:0Ah | 128:94 | [0,6425] | kPa | |
| obd.t_pos | Throttle Position | double | 65266:51 | 01h:11h | 128:51 | [0,100.00] | % | |
| obd.brake | Brake Switch Status | boolean | 65265:597 | Not Supported | 128:65 | 0:brake pedal released 1:brake pedal depressed | ||
| obd.parking | Parking Brake Switch Status | boolean | 65265:70 | Not Supported | 128:70 | 0:parking brake not set 1:parking brake set | ||
| obd.s_w_angle | Steering Wheel Angle | double | 61449:1807 | Not Supported | Not Supported | [-31.374,31.374] | rad | |
| obd.f_econ | Fuel Economy | double | 65266:185 | Not Supported | 128:185 | [0,125.50] | km/L | |
| obd.odo | Odometer | double | 65248:245 | 01h:a6h | 128:245 | [0,526385151.875] | km | |
| obd.a_pos | Accelerator Pedal Position | double | 61443:91 | Not Supported | 128:91 | [0,100.00] | % | |
| obd.t_dist | trip distance | double | 65248:244 | 01h:21h | 128:244 | [0,526385151.875] | km | |
| obd.i_temp | Intake Manifold Temp | int | 65270:105 | 01h:0Fh | 128:105 | [-40,215] | ℃ | |
| obd.i_press | Intake Manifold Pressure | int | 65270:102 | 01h:0Bh | Not Supported | [0,255] | kPa | |
| obd.b_press | Barometirc Pressure | int | 65269:108 | 01h:33h | 128:108 | [0,255] | kPa | |
| obd.f_r_press | Fuel Rail Pressure | int | 64765:5313 | 01h:23h | Not Supported | [0,65530] | kPa | |
| obd.r_torque | Engine reference Torque | int | 65251:544 | 01h:63h | Not Supported | [0,64255] | Nm | |
| obd.f_torque | Engine friction Torque | float | 65247:514 | 01h:8Eh | Not Supported | [-125.00,125.00] | % | |
| obd.max_avl_torque | Engine Maximum Available Torque | float | 61443:3357 | Not Supported | Not Supported | [0,100.00] | % | |
| obd.a_torque | Engine actual Torque | float | 61444:513 | 01h:62h | 128:93 | [-125.00,125.00] | % | |
| obd.e_p_d_torque | Engine Demand-Percent Torque | float | 61444:2432 | Not Supported | Not Supported | [-125.00,125.00] | % | |
| obd.f_t_used_h_res | Engine Total Fuel Used (High Resolution) | float | 64777:2432 | Not Supported | Not Supported | [0,4,211,081.215] | l | |
| obd.d_e_f_vol | Diesel Exhaust Fluid Volume | float | 65110:1761 | Not Supported | Not Supported | [0,100.00] | % | |
| obd.d1_id | Driver 1 identification | int | 65131:1625 | Not Supported | Not Supported | [0,255] | per byte | |
| obd.d2_id | Driver 2 identification | int | 65131:1626 | Not Supported | Not Supported | [0,255] | per byte | |
| obd.drv_state1 | Driver 1 working state | int | 65132:1612 | Not Supported | Not Supported | [0,7] | ||
| obd.drv_state2 | Driver 2 working state | int | 65132:1613 | Not Supported | Not Supported | [0,7] | ||
| obd.v_motion | Vehicle motion | int | 65132:1611 | Not Supported | Not Supported | [0,3] | ||
| obd.t_r_state1 | Driver 1 Time Related States | int | 65132:1617 | Not Supported | Not Supported | [0,15] | ||
| obd.d_card1 | Driver Card , Driver 1 | int | 65132:1615 | Not Supported | Not Supported | [0,3] | ||
| obd.v_overspeed | Vehicle Oversspeed | int | 65132:1614 | Not Supported | Not Supported | [0,3] | ||
| obd.t_r_state2 | Driver 2 Time Related States | int | 65132:1618 | Not Supported | Not Supported | [0,15] | ||
| obd.d_card2 | Driver Card , Driver 2 | int | 65132:1616 | Not Supported | Not Supported | [0,3] | ||
| obd.sys_evt | System event | int | 65132:1622 | Not Supported | Not Supported | [0,3] | ||
| obd.h_info | Handing information | int | 65132:1621 | Not Supported | Not Supported | [0,3] | ||
| obd.tco_perf | Tachograph performance | int | 65132:1620 | Not Supported | Not Supported | [0,3] | ||
| obd.v_direction | Direction Indicator | int | 65132:1619 | Not Supported | Not Supported | [0,3] | ||
| obd.tco_o_speed | Tachograph output shaft speed | float | 65132:1623 | Not Supported | Not Supported | [0,8,031.875] | ||
| obd.tco_v_speed | Tachograph vehicle speed | float | 65132:1624 | Not Supported | Not Supported | [0,250.996] | ||
| obd.h_t_dist | Trip Distance(High Resolution) | int | 65217:918 | Not Supported | Not Supported | [0,21,055,406,075] | m | |
| obd.mf_mon | Misfire Monitor Status | int | 65230:1221 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.f_s_mon | Fuel System Monitor Status | int | 65230:1221 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.c_c_mon | Comprehensive Component Monitor Status | int | 65230:1221 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.c_mon | Catalyst Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.h_c_mon | Heated Catalyst Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.e_s_mon | Evaporative System Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.s_a_s_mon | Secondary Air System Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.a_s_r_mon | A/C System Refrigerant Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.e_g_s_mon | Exhaust Gas Sensor Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.e_g_s_h_mon | Exhaust Gas Sensor heater Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.e_v_s_mon | EGR/VVT System Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.c_s_a_s_mon | Cold Start Aid System Monitor Status | int | 65230:1222 | Not Supported | Not Supported | 0:not completed 1:completed | ||
| obd.b_p_c_s_mon | Boost Pressure Control System Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.dpf_mon | DPF Monitor Status | int | 65230:1222 | Not Supported | Not Supported | 0:not completed 1:completed | ||
| obd.n_c_mon | NOx Catalyst Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.nmhc_mon | NMHC Catalyst Monitor Status | int | 65230:1222 | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.t_v_hours | Total Vehicle Hours | float | 65255:246 | Not Supported | Not Supported | [0,210,554,060.75] | h | |
| obd.t_o_hours | Total Power Takeoff Hours | float | 65255:248 | Not Supported | Not Supported | [0,210,554,060.75] | h | |
| obd.f_t_used | Engine Total Fuel Used | float | 65257:250 | Not Supported | Not Supported | [0,2,105,540,607.5] | I | |
| obd.axle_loc | Axle location | int | 65258:928 | Not Supported | Not Supported | [0,255] | ||
| obd.axle_weight | Axle Weight | float | 65258:582 | Not Supported | Not Supported | [0,32,127.5] | kg | |
| obd.t_weight | Trailer Weight | int | 65258:180 | Not Supported | Not Supported | [0,128,510] | kg | |
| obd.c_weight | Cargo Weight | int | 65258:181 | Not Supported | Not Supported | [0,128,510] | kg | |
| obd.cruise_c_on | Cruise Control Active | int | 65265:595 | Not Supported | Not Supported | [0,3] | ||
| obd.cruise_p_switch | Cruise Control Pause Switch | int | 65265:1633 | Not Supported | Not Supported | [0,3] | ||
| obd.o_s_mon | Oxygen Sensor Monitor Status | int | Not Supported | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.o_s_h_mon | Oxygen Sensor heater Monitor Status | int | Not Supported | 01h:01h | Not Supported | 0:not completed 1:completed | ||
| obd.brake_prim_press | Brake Primary Pressure | float | Not Supported | Not Supported | 140:117 | kPa | ||
| obd.brake_sec_press | Brake Secondary Pressure | float | Not Supported | Not Supported | 140:118 | kPa | ||
| obd.e_hours | "Engine Total Hours of Operation | int | 65253:247 | Not Supported | Not Supported | h | ||
| obd.ab_level | Aftertreatment 1 Diesel Exhaust Fluid Tank Volume | float | 65110:1761 | Not Supported | Not Supported | % |
A.5 Cellular Parameters¶
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| modem1.ts | The last time the modem1 info was updated | int | s | UNIX timestamp, in seconds since the epoch | ||
| modem1.imei | IMEI code | string | ||||
| modem1.imsi | IMSI code | string | ||||
| modem1.iccid | ICCID code | string | ||||
| modem1.phone_num | phone number | string | ||||
| modem1.signal_lvl | signal level | number | asu | |||
| modem1.reg_status | register status | number | [0,6] | 0: Not registered, ME is not currently searching an operator to register to 1: Registered, home network 2: Not registered, but ME is currently trying to attach or searching an operator to register to 3: Registration denied 4: Unknown, e.g. out of LTE coverage 5: Registered, roaming | ||
| modem1.operator | operator | string | ||||
| modem1.network | network type | number | [0,3] | 0: NA, 1: 2G, 2: 3G, 3: 4G | ||
| modem1.lac | LAC | string | hexadecimal | |||
| modem1.cell_id | Cell ID | string | hexadecimal | |||
| modem1.rssi | RSSI(Received Signal Strength Indication) | number | dBm | |||
| modem1.rsrp | RSRP(Reference Signal Receiving Power) | number | dBm | |||
| modem1.rsrq | RSRQ(Reference Signal Receiving Quality) | number | dB | |||
| modem1.sinr | SINR(Signal to Interference plus Noise Ratio) | number | dB | |||
| cellular1.status | cellular1 network status | number | [0,3] | 0: destroy 1: create 2: down 3: up | ||
| cellular1.ip | cellular1 ip address | string | ||||
| cellular1.netmask | cellular1 netmask | string | ||||
| cellular1.gateway | cellular1 gateway | string | ||||
| cellular1.dns1 | cellular1 dns1 | string | ||||
| cellular1.up_at | cellular1 APN1 connected timestamp | number | s | Deprecated and will be replaced by cellular1.apn1_up_at | UNIX timestamp, in seconds since the epoch | |
| cellular1.down_at | cellular1 APN1 disconnected timestamp | number | s | Deprecated and will be replaced by cellular1.apn1_down_at | UNIX timestamp, in seconds since the epoch | |
| cellular1.traffic_ts | The last time the info was updated | int | s |
A.6 System Parameters¶
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| sysinfo.ts | The last time the modem1 info was updated | int | s | UNIX timestamp, in seconds since the epoch | ||
| sysinfo.hostname | hostname | string | ||||
| sysinfo.model_name | model name | string | ||||
| sysinfo.oem_name | OEM name | string | ||||
| sysinfo.serial_number | serial number | string | ||||
| sysinfo.firmware_version | firmware version | string | ||||
| sysinfo.product_number | product number | string | ||||
| sysinfo.description | description | string |
A.7 Sensor Parameters¶
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| sensor.ts | The last time the sensor info was updated | int | s | UNIX timestamp, in seconds since the epoch | ||
| sensor.data | sensor data | string | ||||
| type | sensor type | string | 1W_TP:temperature sensor | |||
| id | sensor id | string | ||||
| value | sensor value | string | ℃ | This parameter is sent only when the sensor type is temperature sensor |
A.8 W2R Parameters¶
| Parameter Name | Description | Type | Range | Units | Optional | Note |
|---|---|---|---|---|---|---|
| w2r.ts | The last time the w2r info was updated | int | s | UNIX timestamp, in seconds since the epoch | ||
| w2r.if | interface name | string | ||||
| w2r.proto | protocol type | string | Only modbus-rtu(RS485) is supported. | |||
| w2r.rmt | data from interface. | Only modbus-rtu(RS485) is supported. |