TrackSolid Api v2.7 (1)
TrackSolid Api v2.7 (1)
TrackSolid Api v2.7 (1)
1 Contents
JIMI OPEN API SPECIFICATION ............................................................................................................ 1
1 CONTENTS ....................................................................................................................................... 2
2 OVERVIEW ...................................................................................................................................... 7
3 USAGE ............................................................................................................................................. 7
4 CONVENTIONS ................................................................................................................................ 8
8 APPENDIX...................................................................................................................................... 83
2 Overview
Benefit of JIMI Open API, distributor or application vendor could provide tracking service to
customers by calling the API and use your own GUI client, App or Website, this might improve
the localization or user experience.
Your App or web client should connect to your application server, rather than connect to JIMI
API Server directly , use your application server connect to JIMI Server instead.
3 Usage
1. Contact us to apply your appKey and appSecrect, you need to provide your account.
2. According to this document to implement your application server to obtain access_token.
3. Calling other interfaces with access_token to fulfil your business logic.
Shenzhen Jimi Software Co., Ltd.
4 Conventions
0 0 success
Parameter error (lack of required parameters or format
1XXX 1001
error). See interface description for details
Illegal user/illegal device (not their own or subordinate
1002
account or device)
1003 Repeat operation
Illegal access, token exception! (Token failure or
1004
nonexistent)
1005 Illegal access, IP access exceeds limit!
Error code:
Code Value Description
213 Account already exist
5 Work Flow
1. Get access_token
2. Return access_token
Authentication
/limit
Return data
6 API Features
Interface
Method Description
type
Access token jimi.oauth.token.get Get access_token.
jimi.oauth.token.refresh Refresh access_token.
jimi.user.child.list List all sub-account.
User API
jimi.user.device.list List all devices of current
Shenzhen Jimi Software Co., Ltd.
account.
jimi.user.child.create Create sub-account
jimi.user.child.del Remove sub-account
jimi.user.child.move Move sub-account to another
account.
jimi.track.device.detail Get device detail information
for specific IMEI
jimi.user.device.location.list Get the latest location for all
devices.
jimi.device.location.get Get the latest location data for
specific IMEI.
jimi.device.location.URL.share Get URL for showing location on
the Map.
jimi.user.device.expiration.upda Change user expiration date for
te devices
jimi.device.track.list Obtain track data according to
Device API IMEI.
jimi.device.track.mileage Get mileage report for devices.
jimi.open.device.update Modify the vehicle information
for device.
Jimi.device.media.URL Get URL of photo or video
capture by camera.
jimi.device.live.page.url Get device live streaming page
URL
Command jimi.open.instruction.list Gets commands supported by
API the device.
jimi.open.instruction.send Send command to device.
jimi.open.instruction.result Get the command result.
jimi.open.instruction.raw.send Send raw command data to
device
jimi.open.instruction.raw.receive Jimi push raw data to specified
client’s server URL.
jimi.device.meida.cmd.send Send media instruction
Geo-fence jimi.open.device.fence.delete Remove the Geo fence for the
API device.
jimi.open.device.fence.create Create an Geo fence for the
device.
LBS-API jimi.lbs.address.get Wi-Fi base station location
analysis.
Message jimi.push.device.alarm Push alarm notification.
jimi.device.alarm.list Get alarm list for device
Scooter API jimi.scooter.instruction.send Send command to scooter
device.
Shenzhen Jimi Software Co., Ltd.
7 API Description
7.2 Security
Client should get access_token first before calling the interface, which is generated by JIMI
Server by calling jimi.oauth.token.get interface(method=jimi.oauth.token.get) with provided
appKey and appSecrect.
appKey and access_token are required to sign request parameters when calling API. JIMI
server will validate the the request parameters by checking the sign value.
The parameters of each request should include common parameters and interface private
parameters. For example, if you call the “jimi.oauth.token.get” interface, you need to provide :
7(common parameters) + 3(private parameters) = 10 (parameters, key/value)
7.4 Signature
To protect API calling from hacked, any API calling needs to be with a signature. JIMI server will
check signature based on request parameters. Illegal signature request will be rejected. Signature
algorithms supported is: md5 (sign_method is a common parameter mentioned above). Following
is the algorithm of signature:
1. Sort all request parameters with parameter key in alphabetical order (including common parameters and
method specific parameters, but NOT include sign and byte type parameter.
For example:
foo=1, bar=2, foo_bar=3, foobar=4
Result: bar=2, foo=1, foo_bar=3, foobar=4
JAVA example:
algorithm
public static String signTopRequest(Map<String, String> params, String seccode, String signMethod) throws IOExc
eption {
// 1:sort parameter key
String[] keys = params.keySet().toArray(new String[0]);
Arrays.sort(keys);
7.5.1 Description
Client(distributor’s server) should stored the access_token locally, do NOT get access_token per
request, instead, use the local access_token before it become invalid. JIMI server will not allow to
access if the request frequency is too high from client.
The access token can be used for about 2 hours(depend on the value for expires_in parameter),
do NOT try to get token for every request.
POST
Shenzhen Jimi Software Co., Ltd.
(1)Common parameters
(2)Private parameters as follow:
7.5.5 Response
{
"code": 0,
"message": "success",
"result": {
"appKey": "8FB345B8693CCD003CC2DAB61EC8791D",
Shenzhen Jimi Software Co., Ltd.
"account": "jimitest",
"accessToken": "7da3330ec28e3996b6ef4a7e3390ba71",
"expiresIn": 60
"refreshToken": "7da3330ec28e3996b6ef4a7e3390ba71",
"time": "2017-06-15 10:00:00"
}
}
Postman demo:
For example:
<app_secrect>app_key9FB345B8693CCD0054E44ADF99139409expires_in7200formatjsonmetho
djimi.oauth.token.getsign_methodmd5timestamp2017-09-28
01:55:00user_id<account>user_pwd_md5<password_md5>v1.0<app_secrect>
Shenzhen Jimi Software Co., Ltd.
7.6.1 Description
This interface is used to update token manually when access token is about to be invalid.
POST
(1)Common parameters
(2)Private parameters
7.6.5 Response
{
"code": 0,
"message": "success",
"result": {
"appKey": "8FB345B8693CCD003CC2DAB61EC8791D",
"account": "jimitest",
"accessToken": "7da3330ec28e3996b6ef4a7e3390ba71",
"expiresIn": 60,
"refreshToken": "7da3330ec28e3996b6ef4a7e3390ba71",
"time": "2017-06-15 10:00:00"
}
}
Return error example:
{"code":xxx,"message":"Illegal request,token is invalid"}
7.7.1 Description
POST
(1)Common parameters
(2)private parameters
7.7.5 Response
Result:
Key Type Description
account string log in account
name string name
Int Account Type
3:App user
8:Distributor
type
9:ordinary users
10:ordinary distributor
11:sales
displayFlag Int Available or not (1:Available,0:not available)
address string location
{
"code": 0,
"message": "success",
"result": [
{
"account": "123123",
"name": "test",
"type": 8,
"displayFlag": 1,
"address": null,
"birth": "2017-04-22 00:00:00",
"companyName": "",
"email": "",
"phone": "",
"language": "zh",
"sex": 0,
"enabledFlag": 1,
"remark": null
}
]
}
7.8.1 Description
POST
(1)Common parameters
(2)private parameters
7.8.5 Response
{
"code": 0,
"message": "Vehicle information modification successful",
"result": null
}
7.9.1 Description
POST
Shenzhen Jimi Software Co., Ltd.
(1)Common parameters
(2)private parameters
7.9.5 Response
{
"code": 0,
"message": "Vehicle information modification successful",
"result": null
}
{"code":xxx,"message":"no permissions"}
Shenzhen Jimi Software Co., Ltd.
7.10.1 Description
POST
(1)Common parameters
(2)private parameters
7.10.5 Response
{
Shenzhen Jimi Software Co., Ltd.
"code": 0,
"message": "Vehicle information modification successful",
"result": null
}
{"code":xxx,"message":"no permissions"}
7.11.1 Description
POST
(1)Common parameters
(2)Private parameters
7.11.5 Response
Result:
Key Type Description
imei string Device IMEI
deviceName string Device name
{
"code": 0,
"message": "success",
"result": [
{
"imei": "868120145233604",
"deviceName": "868120145233604",
"mcType": "GT300L",
Shenzhen Jimi Software Co., Ltd.
"mcTypeUseScope": "personal",
"sim": "415451",
"expiration": "2037-04-01 23:59:59",
"activationTime": "2017-04-01 11:02:20",
"reMark": "test",
"vehicleName": null,
"vehicleIcon": "bus",
"vehicleNumber": "粤 B3604",
"vehicleModels": null,
"carFrame": "2235",
"driverName": "driver",
"driverPhone": "13825036579",
"enabledFlag": 1,
"engineNumber": "8565674"
}
]
}
7.12.1 Description
POST
(1)Common parameters
Shenzhen Jimi Software Co., Ltd.
(2)Private parameters
7.12.5 Response
Result:
Key Type Description
imei string Device IMEI
deviceName string Device name
iccid String
importTime String
imsi String
licensePlatNo String
VIN String
vehicleBrand String
{
"code": 0,
"message": "success",
"result":
{
"imei": "868120145233604",
"deviceName": "868120145233604",
"mcType": "GT300L",
"mcTypeUseScope": "personal",
"sim": "415451",
"expiration": "2037-04-01 23:59:59",
"activationTime": "2017-04-01 11:02:20",
"reMark": "test",
"vehicleName": null,
"vehicleIcon": "bus",
"vehicleNumber": "粤 B3604",
"vehicleModels": null,
"carFrame": "2235",
"driverName": "driver",
"driverPhone": "13825036579",
"enabledFlag": 1,
"engineNumber": "8565674",
"iccid": "xxxxxxx",
"imsi": "xxxx",
"importTime": "2017-04-01 11:02:20",
Shenzhen Jimi Software Co., Ltd.
"licensePlatNo": "8565674",
"VIN": "xxxxxxx",
"vehicleBrand": "xxxx",
"fuel_100km": "9",
"status": "8565674"
}
}
7.13.1 Description
POST
(1)Common parameters
(2)private parameters
7.13.5 Response
Result data:
Key Type Description
imei string Device IMEI
electQuantity String Device battery (0-100), some models are not supported
powerValue String External voltage(0-100), some models are not supported
trackerOil String
Oil quantity of the car(Original voltage value)
Shenzhen Jimi Software Co., Ltd.
{
"code": 0,
"message": "success",
"result": [
{
"imei": "868120145233604",
"deviceName": "868120145233604",
"icon": "bus",
"status": "0",
"posType": "GPS",
"lat": 22.577282,
"lng": 113.916604,
"hbTime": "2017-04-26 09:14:50",
"accStatus": "0",
"speed": "0",
"gpsTime": "2017-04-26 09:17:46",
"activationFlag": "1",
"expireFlag": "1",
"electQuantity": "60",
"locDesc": null
"powerValue": null,
"temperature": "86.5",
"trackerOil": null
}
]
}
7.14.1 Description
POST
(1)Common parameters
(2)private parameters
7.14.5 Response
Result list:
Key Type Description
IMEI string Device IMEI
deviceName string Device name
{
"code": 0,
"message": "success",
"result": [
{
"imei": "868120145233604",
"deviceName": "868120145233604",
"icon": "bus",
"status": "0",
"posType": "GPS",
"lat": 22.577282,
"lng": 113.916604,
"hbTime": "2017-04-26 09:14:50",
"accStatus": "0",
"speed": "0",
"gpsTime": "2017-04-26 09:17:46",
"activationFlag": "1",
"expireFlag": "1",
"electQuantity": "60",
"locDesc": null
"powerValue": null,
"temperature": "86.5",
"trackerOil": null
Shenzhen Jimi Software Co., Ltd.
}
]
{"code":xxx,"message":"Illegal device"}
7.15.1 Description
POST
(1)Common parameters
(2)private parameters
7.15.5 Response
Return code:
code int 0: return correctly
Other: failure. Refer to the error code description
message string If code is not 0, there will be a corresponding error message
{
"code": 0,
"message": "success",
"result":
{
"URL":
"data.16180track.com/api/share?ver=2&method=trackDevice_abr&deviceinfo=7ae7c62385f2067f16400
2db315854a969a40e3888021cb01dc8f2183ca08dbbd8581f6bb86df4c2e3e1b887cb67c21039b4c0ced18fdf8dd
08e0460c5edd13ad87e16dca9702ce6",
}
{"code":xxx,"message":"Illegal device"}
7.16.1 Description
POST
Shenzhen Jimi Software Co., Ltd.
(1)Common parameters
(2)private parameters
7.16.5 Response
{
"code": 0,
"message": "success",
"result": [
{
"imei": "868120145233604",
"update_result": "0",
"update_msg": "update success"
},
{
"imei": "868120145233605",
"update_result": "1",
"update_msg": "update failed, reason:xxxxxx"
}
}
Shenzhen Jimi Software Co., Ltd.
{"code":xxx,"message":"Illegal device"}
7.17.1 Description
POST
(1)Common parameters
(2)Private parameters
Start time
begin_time number Yes -
Format: yyyy-MM-dd HH:mm:ss
End time
7.17.5 Response
result list:
Key Type Description
imei String IMEI of device
startTime String Start time
{
"code": 0,
"message": "success",
"result": [
{
"imei": “3505831983422342”,
"startTime": "2017-04-26 00:00:58",
"endTime": "2017-04-26 00:03:58",
"startLat": 22.577144898887813,
"startLng": 113.91674845964586,
"endLat": 22.677144898887813,
"endLng": 113.92674845964586,
Shenzhen Jimi Software Co., Ltd.
"elapsed": 2130,
"distance": 25000,
"avgSpeed": 90
}
]
7.18.1 Description
Get device track data of not more than 2 days, within 3 months.
POST
(1)Common parameters
(2)Private parameters
Start time
begin_time number Yes -
Format: yyyy-MM-dd HH:mm:ss
End time
calibration.
map_type=null, return origin latitude and longitude
7.18.5 Response
result list:
Key Type Description
lng double longitude
lat double latitude
gpsTime string GPS positioning time. Format yyyy-MM-dd HH: mm: ss
direction string Direction, polar coordinates started from due north
gpsSpeed string GPS speed
{
"code": 0,
"message": "success",
"result": [
{
"lat": 22.577144898887813,
"lng": 113.91674845964586,
"gpsTime": "2017-04-26 00:00:58",
"direction": 0,
"gpsSpeed": -1,
"posType": 3
},
{
"lat": 22.57708,
"lng": 113.916631,
"gpsTime": "2017-04-26 00:01:30",
Shenzhen Jimi Software Co., Ltd.
"direction": 184,
"gpsSpeed": 0,
"posType": 1
}
]
7.19.1 Description
POST
(1)Common parameters
(2)Private parameters
No 0 - disable/1-enable.
device_status String
Enable/Disable devices.
7.19.5 Response
{
"code": 0,
"message": "Vehicle information modification successful",
"result": null
}
Vehicle Icon
Icon key Description
automobile Car
bus Bus
per People
mtc Motorcycle
truck
taxi
plane
schoolBus
excavator
ship
Shenzhen Jimi Software Co., Ltd.
tricycle
policeMtc Police Motorcycle
tractor
policeCar
cow
other
7.20.1 Description
POST
Shenzhen Jimi Software Co., Ltd.
(1)Common parameters
(2)Private parameters
7.20.5 Response
result list:
Key Type Description
thumb_URL String URL of video or photo thumbnail.
{
"code": 0,
"message": "Operation successful",
"result":
[
{
"thumb_URL": “Q9GLAFFqfCrYF6YfQAcON4w4Ezs=/lhWse7ie3wtFrjuQZ22dLAk5CSaR”,
"file_URL": “357730090345670_3949477_2019_04_29_12_32_38_01”,
"mime_type": "video/mp4",
"create_time": 2019-04-29 10:32:43,
"media_type": 2,
"camera": 1,
"file_size": 9949087
},
{
"thumb_URL": “Q9GLAFFqfCrYF6YfQAcON4w4Ezs=/FhCrZEIy3518sR_ylOlqDg7w3Ju-”,
"file_URL": “351609080120911_3949476_2019_04_29_18_32_12”,
"mime_type": "video/3gpp",
"create_time": 2019-04-29 10:32:42,
"media_type": 2,
"camera": 1,
"file_size": 2411318
}
7.21.1 Description
POST
(1)Common parameters
(2)Private parameters
7.21.5 Response
result list:
Key Type Description
lng double longitude
Shenzhen Jimi Software Co., Ltd.
{
"code": 0,
"message": "Vehicle information modification successful",
"result":
{
"lat": 22.577144898887813,
"lng": 113.91674845964586,
"gpsTime": "2017-04-26 00:00:58",
"direction": 0,
"gpsSpeed": -1,
"posType": 3,
"satellite": 11,
"VIN": "V12345",
"plateNo":"ABC-12345",
"UrlCamera": "https://www.domain.com/device/video/35408343202342345",
}
7.22.1 Description
Allocate by total devices under the account (10 times/day/device. All sub-accounts included)
POST
(1)Common parameters
(2)Private parameters
7.22.5 Response
Result list:
Key Type Description
lng string longitude
lat string latitude
accuracy string Accuracy, the greater the value the better
{
"code": 0,
"message": "success",
"result": {
"lat": 40.65615416521587,
"lng": 109.89894039833524,
"accuracy": 0
}
}
{"code":xxx,"message":"illegal device"}
7.23.1 Description
POST
(1)Common parameters
(2)Private parameters
7.23.5 Response
{
"code": 0,
"message": "Successfully create geo-fence.",
"result": "5"
}
{
"code": 41003,
"message": "Device is not online, geo-fence creation failed ",
"result": null
}
7.24.1 Description
POST
(1)Common parameters
(2)Private parameters
7.24.5 Response
{
"code": 0,
"message": "delete the geo-fence successfully",
"result": null
{
"code": 41003,
"message": "The device is not online and geo-fence can’t be deleted",
"result": null
}
7.25.1 Description
POST
(1)Common parameters
(2)Private parameters
7.25.5 Response
Result list:
Key Type Description
id string Command code
orderName string Command name
orderContent string Command template
orderExplain string Command explanation
orderMsg string prompt
isOffLine string if support offline command 0-no; 1-yes
{
"code": 0,
"message": "success",
"result": [
{
"id": 81,
"orderName": "SOS setting",
"orderContent": "SOS,A,{0},{1},{2}#",
"orderExplain": "SOS is used for receive alerts and SOS alerts. SOS number
should have 3-20 numbers.",
"orderMsg": "",
"isOffLine": "1"
}
...
]
{"code":xxx,"message":"Illegal device"}
7.26.1 Description
POST
(1)Common parameters
Shenzhen Jimi Software Co., Ltd.
(2)private parameters
inst_param_json description
Parameter Type Required Remark Description
inst_id string Yes Command code
Example:
{"inst_id": "113","inst_template":"RELAY,1#","params":[],"is_cover":"true"}
{"inst_id": "114","inst_template":"RELAY,0#","params":[],"is_cover":"true"}
User-defined command:
{"inst_id": "96","inst_template":"{0}","params":["STATUS#"],"is_cover":"true"}
7.26.5 Response
{
"code": 0,
"message": "command is successfully sent.",
"result": null
}
Shenzhen Jimi Software Co., Ltd.
{
"code": 12005,
"message": "Fail to send command. Result code:226",
"result": null
}
7.27.1 Description
POST
(1)Common parameters
(2)Private parameters
7.27.5 Response
Result list:
Key Type Description
codeId string Command code
code string Command sent
content string Content replied by device
isExecute string command status 0: execution failed, 1: successful execution, 3:
to be sent, 4: canceled
sendTime string Time, format:yyyy-MM-dd HH:mm:ss
sender string sender
receiveDevice string Received imei
isOffLine string 0: online 1: offline
idsource string Command description
{
"code": 0,
"message": "success",
"result": [
{
"codeId": "99",
"code": "status#",
"content": "Parameter error",
"isExecute": "4",
"sendTime": "2017-06-19 11:46:00",
"sender": "jimitest",
"receiveDevice": "868120111111117",
"isOffLine": "1",
"idsource": "User-defined command"
}
Shenzhen Jimi Software Co., Ltd.
{"code":xxx,"message":"Illegal device"}
7.28.1 Description
POST
(1)Common parameters
(2)private parameters
0B02C3A405060708
Shenzhen Jimi Software Co., Ltd.
7.28.5 Response
{
"code": 0,
"message": "command is successfully sent.",
"result": null
{
"code": 12005,
"message": "Fail to send command. Result code:226",
"result": null
}
7.29.1 Description
Third-party platform should provide an URL(same as messages push URL) to receive the raw
data(please contact us and provide the URL manually), JIMI server will push the raw data by
sending a HTTP request using this URL.
Shenzhen Jimi Software Co., Ltd.
Request content:
Key Type Description
msgType String Message type, corresponding to the message service list
E.g:
Parameter1:
Key = msgType
Value = jimi.open.instruction.raw.receive
Parameter2:
Key = data
Value = {
"imei": "868120145233604",
"deviceName": "868120145233604",
"raw_data": "0A0C0F01182E0101"
}
Shenzhen Jimi Software Co., Ltd.
7.30.1 Description
POST
(1)Common parameters
(2)private parameters
7.30.5 Response
{"code":"100","data":"1.3.3","msg":"通信成功响应","cmdSeqNo":"1"}
Result JSON
Return code:
Shenzhen Jimi Software Co., Ltd.
Success example:
{
"code": 0,
"message": "Operation successful",
"result": {"code":"255","data":"1.3.3","msg":"通信成功响应","cmdSeqNo":"1"}
}
Exception example:
{
"code": -1,
"message": "Operation successful",
"result": {"code":"228","data":"1.3.3","msg":"设备不在线","cmdSeqNo":"1"}
}
7.31.1 Description
Third-party platform should provide an URL address to receive the notification(please contact us
and provide the URL manually), JIMI server will push the notification by sending a HTTP request
using this URL.
Request content:
Key Type Description
msgType String Message type, corresponding to the message service list
E.g:
Parameter1:
Key = msgType
Value = jimi.push.device.alarm
Parameter2:
Key = data
Value = {
"imei": "868120145233604",
"deviceName": "868120145233604",
"alarmType": "2",
"alarmName": "Power off alarm",
"lat": 40.65615416521587,
"lng": 109.89894039833524,
"alarmTime": "2017-05-08 12:00:00"
}
Shenzhen Jimi Software Co., Ltd.
7.32.1 Description
POST
(1)Common parameters
(2)Private parameters
7.32.5 Response
Return code:
code int 0: return correctly
Other: failure. Refer to the error code description
message string If code is not 0, there will be a corresponding error message
Result list:
Key Type Description
DeviceName string Device Name
IMEI string IMEI
model string Device Model
account string Account
alertTypeId String Alert type ID
alertType string Alert type
alertTime string Alert time
positioningTi string
Time of alert positioning
me
lng double longitude
lat double latitude
{
"code": 0,
"message": "success",
"result": [
{
"deviceName": "ABC-34352",
"IMEI": "343503422910345",
"model": "GT06N",
"account": "test1234",
"alertTypeId": "1002",
"alertType": "ACC On",
"alertTime": "2019-03-14 14:02:03",
"positioningTime": "2019-03-14 14:02:03",
"lat": 22.577144898887813,
"lng": 113.91674845964586
}
]
Shenzhen Jimi Software Co., Ltd.
{"code":xxx,"message":"Illegal device"}
7.33.1 Description
POST
(1)Common parameters
(2)private parameters
7.33.5 Response
Success example:
{
"code": 100,
"message": "Success"
Exception example:
{
"code": 200,
"message": "Invalid parameter"
}
7.34.1 Description
POST
(1)Common parameters
(2)Private parameters
7.34.5 Response
Result list:
Key Type Description
deviceImei string IMEI of IoT module
realtimeStatus json DLCC status
DLCC 0 - OFF
1 - ON
Brake status
brake 0 - OFF
1 - ON
Shenzhen Jimi Software Co., Ltd.
"code": 0,
"result":
"deviceImei": "860425040472944",
"scooterError": {
"IoT": 0,
"accelerator": 0,
"battery": 0,
"brakeHandlebar": 0,
"controller": 0,
"dashboard": 0,
"motor": 0,
"voltage": 0
},
Shenzhen Jimi Software Co., Ltd.
"scooterProperties": {
"ECUVersion": "0.1",
"batteryCapacity": 22834,
"batteryVoltage": 36,
"bluetoothVersion": "2.1",
"firmwareVersion": "c.0",
"scooterVersion": "3.0",
"speedLimit": 50
},
"realtimeData": {
"totalOdometer": 14592,
"batteryCycle": 512,
"batteryLevel": 56,
"batteryTemperature": 23,
"current": 614.39,
"currentOdometer": 217.6,
"remainingMileage": 69.2,
"speed": 99.86,
"voltage": 460.94
},
"realtimeStatus": {
"DLCC": 0,
"DLCCStatus": 0,
"acceleratorStatus": 0,
"brake": 0,
"settingBrakeLight": 1,
"charge": 0,
"settingFrontLight": 0,
"realFrontLight": 0,
"motoStatus": 0,
"realBrakeLight": 0,
Shenzhen Jimi Software Co., Ltd.
"workingMode": 0
},
"drivingSetting": {
"DLCC": 0,
"drivingMode": 2,
"lightMode": 0,
"quickStart": 1,
"speedLimit": 30,
"speedUnit": 0
},
"IoTModule": {
"imsi": "0460045394000271",
"iccid": "89860433231880390271",
"BluetoothMac": "000000000000",
"satellite": 11,
"course": 0,
"gpsMode": 0,
"gpsSpeed": 0,
"lAC": 0,
"latitude": 22.577137,
"longitude": 113.916756,
"mCC": 0,
"mNC": 0,
"positioningType": "GPS",
"gsmSignal": 4,
"gpsStatus": 0,
"batteryVoltage": 4.15
}
Shenzhen Jimi Software Co., Ltd.
{"code":xxx,"message":"Illegal device"}
7.35.1 Description
Send Historical video file list upload command to device or query file list.
POST
(1)Common parameters
(2)private parameters
7.35.5 Response
type=1
{"code":"100","data":"1.3.3","msg":"Successful
response","cmdSeqNo":"1"}
Return code:
225: time out
226: Parameter error
Result JSON 227: The command is not executed correctly
228: The device is not online
229: Network error, connection error, etc.
238: Device interrupted
240: Data format error
type=2
{" 2018_03_29_16_51_45.mp4,2018_03_29_16_52_46.mp4,"}
type=1
Success example:
{
"code": 0,
"message": "Operation successful",
"result": {"code":"255","data":"1.3.3","msg":"Successful response","cmdSeqNo":"1"}
}
Exception example:
{
"code": -1,
"message": "Operation successful",
"result": {"code":"228","data":"1.3.3","msg":"Device is offline","cmdSeqNo":"1"}
}
type=2
{
"code": 0,
"message": "Operation successful",
"result": "2018_03_29_16_51_45.mp4,2018_03_29_16_52_46.mp4,"}
}
Shenzhen Jimi Software Co., Ltd.
7.36.1 Description
POST
(1)Common parameters
(2)private parameters
7.36.5 Response
{"code":"100","data":"1.3.3","msg":"Successful
response","cmdSeqNo":"1"}
Return code:
225: time out
226: Parameter error
Result JSON 227: The command is not executed correctly
228: The device is not online
229: Network error, connection error, etc.
238: Device interrupted
240: Data format error
Success example:
{
"code": 0,
"message": "Operation successful",
"result": {"code":"255","data":"1.3.3","msg":"Successful response","cmdSeqNo":"1"}
}
Exception example:
{
"code": -1,
"message": "Operation successful",
"result": {"code":"228","data":"1.3.3","msg":"Device is offline","cmdSeqNo":"1"}
}
7.37.1 Description
POST
(1)Common parameters
(2)private parameters
7.37.5 Response
Success example:
{
Shenzhen Jimi Software Co., Ltd.
"code": 0,
"message": "success",
"result":
“rtmp://36.133.0.208:1935/0/353376110035950?uId=openapi8b7914c3e4c188def67edd6b4a743146&vhost=8&
user=172&expire_stamp=1595923486798&ext=&channel=0&token=25b422283ff824461b33d8c5059d”
}
Exception example:
{
"code": 228,
"message": "The device is not online",
"result": “null”
}
7.38.1 Description
POST
(1)Common parameters
(2)Private parameters
7.38.5 Response
result list:
Key Type Description
thumb_URL String URL of video or photo thumbnail.
file_URL String URL of video or photo.
mime_type String Mime type of video or photo
create_time long Create time of video or photo.Unix timestamp format
long The time at which the alarm was triggered, Unix timestamp
alarm_time
format
media_type string 1-photo 2-video
camera String 0-front camera 1-inward camera
file_size int File size of photo or video.
Remark: Unix timestamp; Example: 1611105520 = 2021-01-20 09:18:40
{
"code": 0,
"message": "Operation successful",
"result":
[
Shenzhen Jimi Software Co., Ltd.
{
"thumb_URL": "http://8.210.205.58:8081/normal/get?fileKey=2021_01_20_09_17_49_I_28.jpg",
"file_URL": "http://8.210.205.58:8081/normal/get?fileKey=357730090564767_29057540_2021_01_
20_09_17_49_I_28_128.mp4",
"create_time": 1611105520,
"mime_type": "video/mp4",
"media_type": 2,
"alarm_time": 1611105469,
"camera": 0,
"file_size": "12108649"
},
{
"thumb_URL": "http://8.210.205.58:8081/normal/get?fileKey=2021_01_20_08_06_13_I_56.jpg",
"file_URL": "http://8.210.205.58:8081/normal/get?fileKey=357730090564767_00000000_2021_01_
20_08_06_13_I_56_146.mp4",
"create_time": 1611101264,
"mime_type": "video/mp4",
"media_type": 2,
"alarm_time": 1611101173,
"camera": 0,
"file_size": "48452069"
}
8 Appendix
NCT_SS40_API
command list-1.docx