0% found this document useful (0 votes)
100 views86 pages

Web Interface Documentation

The document provides comprehensive web interface documentation for the Active Security Cloud Platform, detailing various interfaces such as login/logout, vehicle queries, and device management. It includes input/output descriptions, error codes, and examples for each interface, emphasizing the use of UTF-8 encoding and JSON format for data exchange. Additionally, it outlines common parameters and specific request examples for successful API interactions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views86 pages

Web Interface Documentation

The document provides comprehensive web interface documentation for the Active Security Cloud Platform, detailing various interfaces such as login/logout, vehicle queries, and device management. It includes input/output descriptions, error codes, and examples for each interface, emphasizing the use of UTF-8 encoding and JSON format for data exchange. Additionally, it outlines common parameters and specific request examples for successful API interactions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 86

Active Security Cloud Platform (../login.

html)

Web Interface Documentation


Introduce each interface on Web platform, and Input Output Description

INTERFACE DESC AND ERROR CODE

LOGIN AND LOGOUT

QUERY VEHICLE

VIDEO BUSINESS

FILE RELATED BUSINESS

ACTIVE SAFETY BUSINESS

VIDEO 1078 BUSINESS

RULE RELATED BUSINESS

CONTROL BUSINESS

DEVICE MANAGEMENT

TRAFFIC CARD MANAGEMENT

AREA INFORMATION

ORGANIZATION MANAGEMENT

ROLE MANAGEMENT

USER MANAGEMENT

DRIVER MANAGEMENT

SIM MANAGEMENT

REPORTS

Interface Desc And Error Code


1.Param Encode
All requests and responses data are both of encoding utf-8 format, all parameter values in the url please do URLEncode coding;

parameter please do URL encoding(UTF-8), comply with RFC 1738 when coding.

Chinese Example

1.Url direct pass encodeURI(encodeURI(URIstring))


https://www.mobilecam2.net/StandardApiAction_marginGroup.action?value=encodeURI(encodeURI(URIstring))

2.Ajax data transfer(Recommend) encodeURI(URIstring)


var data = {}
data.value = encodeURI(URIstring)
$.ajax({
url: 'https://www.mobilecam2.net/StandardApiAction_marginGroup.action
data: data,
cache:false,
dataType:'json',
success: function (json) {
if(json.result == 0){
alert('Success');
} else {
alert('Failure');
}
},error:function(XMLHttpRequest, textStatus, errorThrown){
}
});

2.HTTP MIME TYPE


JSON
Content-type: application/json;charset=utf-8
JSONP
Content-type: text/javascript; charset=utf-8

3.Common Param
Whether
Param Name Param Type Desc
Must
jsession string Yes Return session after user logged
When a third-party call Open API by JS,
by specifying the callback parameter, the
platform will return JSONP code, used to
callback string No
solve cross-border problems.Callback
parameter values can only be
alphanumeric number and underscores.

Universal Return Param Desc(json):

Param Name Param Type Desc


0: Correctly returns
retult number Other: failure.Details See also:Error Code Desc
(webApi.html#error-code)
callback string Callback is carried when requesting

4.webError Code Desc


Error Code Caption
1 Username or password incorrect
2 Username or password incorrect
3 The user has disabled
4 The user has expired
5 Session does not exist
6 System exception
7 Request parameter is incorrect
8 No authority to operate the vehicle or device
9 Start time is not greater than the end time
10 The time Longer than the range
11 Video download tasks already exist
12 Account already exists
13 No operating authority
The amount of device was limited(The amount of device reaches
14
maximum).
15 The device is already exsist.
16 The vehicle is already exsist.
17 The device has been used.
18 Vehicle does not exist
19 Device does not exist
20 Equipment is not current company
The number of device registration does not match, please check the
21
number of equipment exceeds the number of registration!
24 Network connection exception
25 The name of the rule already exists
26 Rules do not exist
27 Information does not exist
28 userSession already exists
29 Company does not exist
32 Equipment is not online
34 Single sign-on user, already logged in

5.serverError Code Desc( Return parameter inclusion: "cmsserver":1 )


Error Code Caption
2 No user permissions
3 Request parameter is incorrect
4 Operating database error
5 Information does not exist
6 unknown error
7 The name has been used
21 Device does not exist
22 No feedback information received from the device
23 Equipment is not online
26 Device connection interruption
27 Undefined storage path

6.JSONP Use Example

$.ajax({
type:'POST',
url: 'https://www.mobilecam2.net/StandardApiAction_loginEx.action?callback=getData',
data: data,
cache:false,
dataType:'JSONP',
success: getData=function (data) {
if(data.result == 0){
alert('Success');
} else {
alert('Failure');
}
},
});

Login And Logout

Login

Interface Desc And Error Code


Login
URL
https://www.mobilecam2.net/StandardApiAction_login.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param
Param Whether
Param Type Defaults Desc
Name Must
account string Yes No Account
password string Yes No Password
Request Example
https://www.mobilecam2.net/StandardApiAction_login.action?account=admin&password=admin (https://www.mobilecam2.net/StandardApiAction_login.action?account=admin&password=admin)
Return Param Desc
Param Name Param Type Desc
jsession string Jsession
Correctly Returns Examples
{
"result": 0,
"jsession": "cf6b70a3-c82b-4392-8ab6-bbddce336222",
"account_name": "admin",
"JSESSIONID": "cf6b70a3-c82b-4392-8ab6-bbddce336222"
}

Way 1:

Login to the background interface Do not contain video interfaceSee Also:https://www.mobilecam2.net/808gps/index.html?userSession=cf6b70a3-c82b-4392-8ab6-bbddce336222&clientLogin=1


(https://www.mobilecam2.net/808gps/index.html?userSession=cf6b70a3-c82b-4392-8ab6-bbddce336222&clientLogin=1)

Login to the background interface Include video and other interfacesSee Also:https://www.mobilecam2.net/808gps/index.html?userSession=cf6b70a3-c82b-4392-8ab6-bbddce336222&clientLogin=2
(https://www.mobilecam2.net/808gps/index.html?userSession=cf6b70a3-c82b-4392-8ab6-bbddce336222&clientLogin=2)

Login to the background interface Specify PageSee Also:https://www.mobilecam2.net/808gps/index.html?userSession=cf6b70a3-c82b-4392-8ab6-bbddce336222&menuIds=25,26 (https://www.mobilecam2.net/808gps/index.html?


userSession=cf6b70a3-c82b-4392-8ab6-bbddce336222&menuIds=25,26)

Input Param Desc: userSession represents the session number returned by the user login; clientLogin means whether it contains location, video, track playback and other functions (2 means included),Higher priority than menuIds,menuIds
represents the menu ID (use, separate) 25 real-time video 26 historical playback

Method 2:

Login to the background interface Specify menu, pageSee Also:https://www.mobilecam2.net/808gps/index.html?userSession=cf6b70a3-c82b-4392-8ab6-bbddce336222&menuKey=key1 (https://www.mobilecam2.net/808gps/index.html?


userSession=cf6b70a3-c82b-4392-8ab6-bbddce336222&menuKey=key1)

Input Param Desc: userSession represents the session number returned by the user logging in; menuKey represents the group key of the custom group, with the highest priority.

MenuKey setting method: add in operation management-custom menu management, menuKey is the group key.

Logout

Interface Desc And Error Code


Logout
URL
https://www.mobilecam2.net/StandardApiAction_logout.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
Request Example
https://www.mobilecam2.net/StandardApiAction_logout.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222 (https://www.mobilecam2.net/StandardApiAction_logout.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222)
Return Param Desc
Param Name Param Type Desc

Correctly Returns Examples


{
"result": 0
}

Query Vehicle

Get User Vehicle

Interface Desc And Error Code


Get User Vehicle
URL
https://www.mobilecam2.net/StandardApiAction_queryUserVehicle.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
Request Example
https://www.mobilecam2.net/StandardApiAction_queryUserVehicle.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&language=zh (https://www.mobilecam2.net/StandardApiAction_queryUserVehicle.action?jsession=cf6b70a3-
c82b-4392-8ab6-bbddce336222&language=zh)
Return Param Desc
a.Vehicle Information

Param Name Param Type Desc


id number Vehicle ID
nm string Plate Number
ic number Vehicle Icon
pid number Vehicle Company Or Team
pnm string Company Name
pt string Plate Type
Device List
dl Array
The following are device info
id string Device No.
pid number Device Company
ic number Number of IO
IO Name
io string
Separated by ','
cc number Number of Channels
Channel Name
cn string
Separated by ','
tc number Number of Temperature Sensors
Temperature sensor Name
tn string
Separated by ','
Module Param
Bitwise representation, each shows a module,
The first is support for video, The second is
control oil, The third is control circuit, The fourth is
md number
tts voice, The fifth is digital intercom, The sixth is
capture support, The seventh is monitor support,
The eighth is fuel sensor, The ninth is support
intercom, The tenth is ODB peripherals.
Vehicle type: 1 Dangerous Goods Transporter, 2
Ordinary Passenger Transport Vehicle, 3 Rural
Passenger Transport Vehicle, 4 Taxi, 5 Freight
vehicleType number
Vehicle, 6 Waste Truck, 7 Sanitation Vehicle, 8
Concrete Vehicle, 9 Excavator, 10 Engineering
Vehicle
sim string SIM Card
Monthly flow exceeding limit: 0 overlooked after
nflt number exceeding the limit, 1 disable media service after
exceeding the limit
did number Device ID
isb number Device protocol
us number Device usage status
payEnd number Service expiration time (time stamp type)
b.Organization Information

Param Name Param Type Desc


id number Organization ID
nm string Organization Name
pid number Higher Party Organization ID
Correctly Returns Examples
{
"result": 0,
"vehicles":[
{
"id":34,
"nm":"50000000001",
"ic":11,
"pid":1,
"vehicleType":0,
"dl":[
{
"id":"500000",
"pid":2,
"ic":3,
"io":"IO_1,IO_2,IO_3",
"cc":4,
"cn":"CH1,CH2,CH3,CH4",
"tc":3,
"tn":"TEMP_1,TEMP_2,TEMP_3",
"md":1568,
"sim":null
}
]
}
],
"companys":[
{
"id":1
"nm":"test",
"pid":0
},
{
"id":2
"nm":"test subdepartment",
"pid":1
}
]
}

Get DevIdno

Interface Desc And Error Code


Get DevIdno
URL
https://www.mobilecam2.net/StandardApiAction_getDeviceByVehicle.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
Plate Number
It may be more than one, in order to ',' separation.
vehiIdno string No No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Request Example
https://www.mobilecam2.net/StandardApiAction_getDeviceByVehicle.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=50000000000 (https://www.mobilecam2.net/StandardApiAction_getDeviceByVehicle.action?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=50000000000)
Return Param Desc
Param Name Param Type Desc
did string Device No.
vid string Plate Number
Device type
type number 1 means video device, 0 means gps device, if
only one device, it is video device or gps device.
Correctly Returns Examples
{
"result": 0,
"devices":[
{
"vid":"50000000000",
"type":1,
"did":"1234"
},
{
"vid":"50000000000",
"type":0,
"did":"dsdasd21116"
}
]
}

Get Device Online

Interface Desc And Error Code


Get Device Online
URL
https://www.mobilecam2.net/StandardApiAction_getDeviceOlStatus.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
Device No.
devIdno string No No It may be more than one, in order to ',' separation.
If it is empty, it is determined that the vehiIdno.
Plate Number
It may be more than one, in order to ',' separation.
If the devIdno is empty, it is judged that the vehiIdno.
vehiIdno string No No
Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
status number No No Online status, 0 not online 1 online, empty query all
Request Example
https://www.mobilecam2.net/StandardApiAction_getDeviceOlStatus.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000 (https://www.mobilecam2.net/StandardApiAction_getDeviceOlStatus.action?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000)
Return Param Desc
Param Name Param Type Desc
did string Device No.
Plate Number
vid string
If you are using the devIdno query, it is null.
Online Status
online number
1 means online, or offline.
Correctly Returns Examples
{
"result": 0,
"onlines":[
{
"did":"500000",
"vid": null,
"online":1
}
]
}

Get Device Status(GPS)

Interface Desc And Error Code


Get Device Status(GPS)
URL
https://www.mobilecam2.net/StandardApiAction_getDeviceStatus.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
jsession string Yes No Jsession
Device No.
devIdno string No No It may be more than one, in order to ',' separation.
If it is empty, it is determined that the vehiIdno.
Plate Number
It may be more than one, in order to ',' separation.
If the devIdno is empty, it is judged that the vehiIdno.
vehiIdno string No No
Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Analysis of geographical position
geoaddress number No No 1 provides resolution geographic location services
If you don't pass it, don't analysis the location
Whether to query driver information (name + work number)
driver number No No
1: query; other or not: not querying
Map Coordinates Conversion
toMap number No No 1 shows Coordinates converted to Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu map Coordinates
Analysis of geographical position, Chinese environment pass on:
language string No No
zh
Request Example
https://www.mobilecam2.net/StandardApiAction_getDeviceStatus.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000&toMap=1&language=zh
(https://www.mobilecam2.net/StandardApiAction_getDeviceStatus.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000&toMap=1&language=zh)
Return Param Desc
Param Param
Desc
Name Type
id string Device No.
Plate Number
vid string
If you are using the devIdno query, it is null.
Lng
lng number If the device location is invalid, the value of 0.
For example: 113231258, the true value is 113.231258
Lat
lat number If the device location is invalid, the value of 0.
For example: 39231258, the true value is 39.231258
ft number Factory Type
Speed
sp number
Unit: km/h, you must first use divided by 10.
Online Status
ol number
1 means online, or offline.
gt string GPS Upload Time
pt number Protocol Type
Hard Type
dt number
1 means a SD card, 2 means a hard disk, and 3 means SSD card.
ac number Audio Type
fdt number Factory Subtype
Network Type
net number
0 means 3G, 1 means WIFI, 2 means wired, 3 means 4G, 4 means 5G.
gw string Gateway Server Number
Status 1
Details See also:Device Status Desc
s1 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Status 2
Details See also:Device Status Desc
s2 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Status 3
Details See also:Device Status Desc
s3 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Status 4
Details See also:Device Status Desc
s4 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
t1 number Temp Sensor 1
t2 number Temp Sensor 2
t3 number Temp Sensor 3
t4 number Temp Sensor 4
Direction
hx number North direction is 0 degrees, clockwise increases, the maximum value of 360
degrees.
Map Lng
mlng string
Get the lng through the conversion
Map Lat
mlat string
Get the lat through the conversion
Parking Time
pk number
Unit: sec.
mileage
lc number
Unit: m.
Fuel
yl number
Unit: L, you must first use divided by 100.
By fuel
viceYl number
Unit: L, you must first use divided by 100.
Geographical Position
ps string The geographical position after analysis (or converted longitude, converted
latitude)
Speed of traveling data recorder
tsp number Unit: km/h, you must first use divided by 10.
V9:Electric Quantity
dn string Driver Name
jn string Driver's Work Number
lt number Login type:0-linux, 1-windows, 2-web, 3-Android, 4-ios
ust number Use status:0-normal, 1-maintenance, 2-deactivated, 3-arrears
sn number Number of satellites
lg number 2 hours means long GPS(Refer to the 808-2019 agreement)
rt string Valid when lg=2,Receive GPS server time
Valid when lg=2

Bit0: compartment temperature, bit1: IO status bit, bit2: extended vehicle


ls number
signal status, bit3: analog quantity
bit4: tire pressure, bit5: active safety ADAS, bit6: active safety DSM, bit7:
active safety BSD
Valid when lg=2,Compartment temperature (0x06)(Refer to the 808-2019
ct number
agreement)
ios number Valid when lg=2,IO status bit (0x2A)(Refer to the 808-2019 agreement)
Valid when lg=2,Extended vehicle signal status bit (0x25)(Refer to the 808-
es number
2019 agreement)
aq number Valid when lg=2,Analog quantity (0x2B)(Refer to the 808-2019 agreement)
Valid when lg=2,Active safety adas alarm status bit Lv1

Bit0: forward collision alarm, bit1: lane departure alarm, bit2: vehicle distance
adas1 number
over alarm, bit3: pedestrian collision alarm
bit4: frequent lane change alarm, bit5: road sign over limit alarm, bit6: obstacle
alarm, Bit7: Curved speed warning
Valid when lg=2,Active safety adas alarm status bit Lv2

Bit0: forward collision alarm, bit1: lane departure alarm, bit2: vehicle distance
adas2 number
over alarm, bit3: pedestrian collision alarm
bit4: frequent lane change alarm, bit5: road sign over limit alarm, bit6: obstacle
alarm, Bit7: Curved speed warning
Valid when lg=2,Active safety dsm alarm status bit Lv1

Bit0: fatigue driving alarm, bit1: call alarm, bit2: smoking alarm 3: long time no
dsm1 number visual alarm, bit4: system can not work normally alarm
bit5: driver does not wear seat belt alarm, bit6: driving The member is not in
the driver's seat alarm, bit7: the driver's hands are off the steering wheel
alarm, bit8: distracted driving alarm (Su), bit9: driver abnormal alarm (Su)
Valid when lg=2,Active safety dsm alarm status bit Lv2

Bit0: fatigue driving alarm, bit1: call alarm, bit2: smoking alarm 3: long time no
dsm2 number visual alarm, bit4: system can not work normally alarm
bit5: driver does not wear seat belt alarm, bit6: driving The member is not in
the driver's seat alarm, bit7: the driver's hands are off the steering wheel
alarm, bit8: distracted driving alarm (Su), bit9: driver abnormal alarm (Su)
Valid when lg=2

bsd1 number
Active safety bsd alarm status bit bit0: left blind zone alarm, bit1: right blind
zone alarm, bit2: rear approaching alarm
Front vehicle speed (Km/h). The asas alarm status bit is valid when bit0 =1
fvs number
and bit1=1
Front vehicle/pedestrian distance (100ms). The asas alarm status bits are
dst number
valid for bit0 = 1, bit1=1 and bit3 = 1
rfd number Road sign identification data. asas alarm type
dvt number Deviation type (0: left 1: right).asas alarm status bit is valid for bit1=1
Road marker identification type (0: speed limit flag 1: limit height flag 2: weight
rft number
limit flag) is valid when the asas alarm type is bit5 = 1.
fl number Fatigue degree. dsm alarm type
yn number Number of yawns. The dsm alarm status bit is valid when bit0 = 1.
cet number Closed eye duration (100ms). The dsm alarm status bit is valid when bit0 = 1.
wc number Number of consecutive blinks. The dsm alarm status bit is valid when bit0 = 1.
tp number Tire pressure data, formatted as hex. dsm alarm type
ef number Additional information flag 0-Bus OBD 1-Video Department 2-UAE School Bus
ef=1: video loss flag, ef=2: hard disk 3 status 0 is invalid, 1 exists, 2 does not
p1 number
exist
p2 number ef=1:Video occlusion flag, ef=2: Hard disk 3 type 1sd, 2hd, 3ssd
ef=1:Disk error flag, ef=2: Hard disk 4 status 0 is invalid, 1 exists, 2 does not
p3 number
exist
p4 number ef=1:Abnormal driving flag, ef=2: Hard disk 4 type 1sd, 2hd, 3ssd
p5 number ef=1:Fatigue degree, ef=2: humidity 1 sensor
p6 number ef=2:Humidity 2 sensor
p7 number ef=2:Humidity 3 sensor
lid number Line id
drid number Driver id
dct number Line direction 0 Up 1 Down
sfg number Site identification 0 site 1 station
snm number Site index
sst number Site status 1 site 0 station
or number OBD collects engine speed
os number OBD capture engine speed
ov number OBD collecting battery voltage
ojt number OBD collecting battery voltage
ost number OBD acquisition status
ojm number OBD capture throttle position
driSw number Driver swipe card timestamp
driJn string Driver Qualification Certificate Number
driSwStr string Driver swiping time
dinfo string Driver Information
Correctly Returns Examples
{
"result": 0,
"status":[
{
"id":"500000",
"vid": null,
"lng":113921858,
"lat":22568745,
"ft":0,
"sp":520,
"ol":0,
"gt":"2015-12-14 18:54:58.0",
"pt":1,
"dt":1,
"ac":1,
"fdt":0,
"net":0,
"gw":"G1",
"s1":805310851,
"s2":1280,
"s3":0,
"s4":0,
"t1":-321,
"t2":350,
"t3":-200,
"t4":0,
"hx":137,
"mlng":"113.926720",
"mlat":"22.565703",
"pk":0,
"lc":161446267,
"yl":101,
"jn":null,
"dn":null,
"ps":"113.926720,22.565703",
"abbr":null,
"adas1":null,
"adas2":null,
"aq":null,
"bsd1":null,
"bsd2":null,
"cet":null,
"ct":null,
"dct":null,
"drid":null,
"dsm1":null,
"dsm2":null,
"dst":null,
"dvt":null,
"ef":null,
"es":null,
"fl":null,
"fvs":null,
"glat":null,
"glng":null,
"hv":null,
"imei":null,
"imsi":null,
"ios":null,
"lg":null,
"lid":null,
"ls":null,
"lt":null,
"ojm":null,
"ojt":0,
"or":0,
"os":0,
"ost":0,
"ov":0,
"p1":0,
"p2":0,
"p3":0,
"p4":0,
"p5":0,
"p6":0,
"p7":0,
"p8":0,
"p9":0,
"p10":0,
"po":null,
"pss":null,
"rfd":null,
"rft":null,
"rt":null,
"sfg":0,
"sn":null,
"snm":0,
"sst":0,
"sv":null,
"tp":null,
"tsp":0,
"ust":null,
"wc":null,
"yn":null
}
]
}

Map Example
(1)URL

https://www.mobilecam2.net/808gps/open/map/vehicleMap.html?account=admin&password=admin&devIdno=500000 (https://www.mobilecam2.net/808gps/open/map/vehicleMap.html?account=admin&password=admin&devIdno=500000)

(2)Param Desc

Param Whether
Param Type Defaults Desc
Name Must
After user login returning jsession
jsession string No No If it is empty, it is determined that the
account and password.
Account
If jsession is empty, it is determined
that the account and password.
account string No No
If user name and password is empty, it
is judged background configuration
username and password.
password string No No Password
Device No.
devIdno string No No If it is empty, it is determined that the
vehiIdno.
Plate Number
vehiIdno string No No If the devIdno is empty, it is judged that
the vehiIdno.
Language Settings
lang string No zh
en means English, otherwise Chinese.

Get Device Track

Interface Desc And Error Code


Get Device Track
URL
https://www.mobilecam2.net/StandardApiAction_queryTrackDetail.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
devIdno string Yes No Device No.
begintime string Yes No Start Time
End Time
endtime string Yes No Start time is not greater than the end
time
Distance
distance number No No
Unit: KM.
Parking Time
parkTime number No No
Unit: sec.
Analysis of geographical position
1 provides resolution geographic
geoaddress number No No location services
If you don't pass it, don't analysis the
location
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Map Coordinates Conversion
1 shows Coordinates converted to
toMap number No No Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu
map Coordinates
Request Example
https://www.mobilecam2.net/StandardApiAction_queryTrackDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000&begintime=2015-12-25 00:00:00&endtime=2015-12-30
23:59:59&distance=0&parkTime=0&currentPage=1&pageRecords=50&toMap=1 (https://www.mobilecam2.net/StandardApiAction_queryTrackDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-
bbddce336222&devIdno=500000&begintime=2015-12-25 00:00:00&endtime=2015-12-30 23:59:59&distance=0&parkTime=0&currentPage=1&pageRecords=50&toMap=1)
Return Param Desc
Param Name Param Type Desc
Track Detail
Details See also:Get Device Status(GPS)Return
tracks Array
Param Desc (webApi.html#sec-vehicle-device-
gps)
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"tracks":[
{
"id":"500000",
"lng":113921858,
"lat":22568745,
"ft":0,
"sp":520,
"ol":null,
"gt":"2015-12-14 18:54:58.0",
"pt":1,
"dt":1,
"ac":1,
"fdt":0,
"net":0,
"gw":"G1",
"s1":805310851,
"s2":1280,
"s3":0,
"s4":0,
"t1":-321,
"t2":350,
"t3":-200,
"t4":0,
"hx":137,
"mlng":"113.926720",
"mlat":"22.565703",
"pk":0,
"lc":161446267,
"yl":101
}
],
"pagination":
{
"totalPages": 42
"currentPage": 1
"pageRecords": 50
"totalRecords": 2078
"sortParams": null
"hasNextPage": true
"hasPreviousPage": false
"nextPage": 2
"previousPage": 1
"startRecord": 0
}
}

Map Example
(1)URL

https://www.mobilecam2.net/808gps/open/trackReplay/Track.html?vehiIdno=500000&jsession=1bd49f53-8e49-4cad-972c-bf48cc4b3c83&begintime=2018-08-23 00:00:00&endtime=2018-08-23 23:59:59


(https://www.mobilecam2.net/808gps/open/trackReplay/Track.html?vehiIdno=500000&jsession=1bd49f53-8e49-4cad-972c-bf48cc4b3c83&begintime=2018-08-23 00:00:00&endtime=2018-08-23 23:59:59)

(2)Param Desc

Param Whether
Param Type Defaults Desc
Name Must
After user login returning jsession
jsession string Yes No If it is empty, it is determined that the
account and password.
Plate Number
vehiIdno string Yes No If the devIdno is empty, it is judged that
the vehiIdno.
begintime string Yes No Start Time
endtime string Yes No End Time

Get Device Alarm(Page)

Interface Desc And Error Code


Get Device Alarm(Page)
URL
https://www.mobilecam2.net/StandardApiAction_queryAlarmDetail.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
Device No.
devIdno string No No It may be more than one, in order to ',' separation.
If it is empty, it is determined that the vehiIdno.
Plate Number
It may be more than one, in order to ',' separation.
If the devIdno is empty, it is judged that the vehiIdno.
vehiIdno string No No
Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
begintime string Yes No Start Time
End Time
endtime string Yes No Start time is not greater than the end time, and the number of query
days must not be greater than 90 days.
Alarm Type
armType string Yes No
In ',' split, Can't be empty.
Handle Status
handle number No No
1 shows Handled, 0 shows unhandled, other query all the status.
currentPage number No 1 Current Page
pageRecords number No 10 Page Record
Analysis of geographical position
geoaddress number No No 1 provides resolution geographic location services
If you don't pass it, don't analysis the location
Map Coordinates Conversion
toMap number No No 1 shows Coordinates converted to Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu map Coordinates
Request Example
https://www.mobilecam2.net/StandardApiAction_queryAlarmDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000&begintime=2015-12-25 00:00:00&endtime=2015-12-30
23:59:59&armType=2,9,11&handle=0&currentPage=1&pageRecords=50&toMap=2 (https://www.mobilecam2.net/StandardApiAction_queryAlarmDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-
bbddce336222&devIdno=500000&begintime=2015-12-25 00:00:00&endtime=2015-12-30 23:59:59&armType=2,9,11&handle=0&currentPage=1&pageRecords=50&toMap=2)
Return Param Desc
Param
Param Name Desc
Type
info number Alarm Info
desc string Alarm Desc
Alarm Type
atp number Details See also:Alarm Type Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
did string Device No.
Plate Number
vid string
If you are using the devIdno query, it is null.
etm number Alarm End Time (UTC) in seconds
stm number Alarm Start Time (UTC) in seconds
guid string Alarm Unique Number
Alarm Param 1
p1 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Alarm Param 2
p2 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Alarm Param 3
p3 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Alarm Param 4
p4 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Image Info
img string
split by ;, and http path, and can be multiple image info.
Handle Status
hd number
1 shows Handled, 0 shows unhandled.
hdu number Handle User Id
hdc string Handle Content
hdt string Handle Time
Alarm Start Status 1
Details See also:Alarm Status Desc
ss1 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Alarm Start Status 2
Details See also:Alarm Status Desc
ss2 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Alarm End Status 1
Details See also:Alarm Status Desc
es1 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Alarm End Status 2
Details See also:Alarm Status Desc
es2 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
slng number Alarm Start Lng
slat number Alarm Start Lat
elng number Alarm End Lng
elat number Alarm End Lat
Alarm Start Speed
ssp number
Unit: km/h, you must first use divided by 10.
Alarm End Speed
esp number
Unit: km/h, you must first use divided by 10.
Alarm Start Mileage
slc number
Unit: m.
Alarm End Mileage
elc number
Unit: m.
Alarm Start Map Lng
smlng string
Get the lng through the conversion
Alarm Start Map Lat
smlat string
Get the lat through the conversion
Alarm End Map Lng
emlng string
Get the lng through the conversion
Alarm End Map Lat
emlat string
Get the lat through the conversion
Alarm start location
sps string The geographic location after analysis or (alarm start map longitude, alarm
start map latitude)
Alarm end location
eps string The geographic location after the analysis (or the end of the map, the
longitude of the alarm, the latitude of the end of the map)
createtime string Update time
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"alarms":[
{
"info": 0,
"desc":"",
"atp":11,
"did":"500000",
"vid":null,
"etm":1451374197000,
"stm":1451374197000,
"guid":"500000EB9B109898F74ADCB1B4446B9FFD2",
"p1":12000,
"p2":6000,
"p3":10000,
"p4":0,
"img":"",
"hd":1,
"hdu":"admin",
"hdc":"vcxvcvcxv",
"hdt":"2015-12-29 16:50:50",
"ss1":805327235,
"ss2":0,
"es1":805327235,
"es2":0,
"slng":113850504,
"slat":22628389,
"elng":113850504,
"elat":22628389,
"ssp":990,
"esp":990,
"slc":164338463,
"elc":164338463,
"smlng":"113.861938",
"smlat":"22.631491",
"emlng":"113.861938",
"emlat":"22.631491",
"sps":"113.861938,22.631491",
"eps":"113.861938,22.631491",
"createtime":"2020-08-08 16:50:50"
}
],
"pagination":
{
"totalPages": 42
"currentPage": 1
"pageRecords": 50
"totalRecords": 2078
"sortParams": null
"hasNextPage": true
"hasPreviousPage": false
"nextPage": 2
"previousPage": 1
"startRecord": 0
}
}

Acquiring device real time alarm

Interface Desc And Error Code


Acquiring device real time alarm
The vehicle must be online to operate
URL
https://www.mobilecam2.net/StandardApiAction_vehicleAlarm.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
DevIDNO string No No Device No.
Map Coordinates Conversion
1 shows Coordinates converted to
toMap number No No Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu
map Coordinates
Request Example
https://www.mobilecam2.net/StandardApiAction_vehicleAlarm.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&DevIDNO=500000&toMap=2 (https://www.mobilecam2.net/StandardApiAction_vehicleAlarm.action?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&DevIDNO=500000&toMap=2)
Return Param Desc
Param Param
Desc
Name Type
info number Alarm Info
guid string Alarm Unique Number
desc string Alarm Desc
Alarm Type
type number Details See also:Alarm Type Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
DevIDNO string Device No.
Handle Status
hd number
1 shows Handled, 0 shows unhandled.
Image Info
img string
split by ;, and http path, and can be multiple image info.
Alarm Param 1
p1 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Alarm Param 2
p2 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Alarm Param 3
p3 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Alarm Param 4
p4 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Lng
lng number If the device location is invalid, the value of 0.
For example: 113231258, the true value is 113.231258
Lat
lat number If the device location is invalid, the value of 0.
For example: 39231258, the true value is 39.231258
Speed
sp number
Unit: km/h, you must first use divided by 10.
Parking Time
pk number
Unit: sec.
Network Type
net number
0 means 3G, 1 means WIFI, 2 means wired, 3 means 4G, 4 means 5G.
Map Lng
mlng string
Get the lng through the conversion
Map Lat
mlat string
Get the lat through the conversion
Status 1
Details See also:Device Status Desc
s1 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Status 2
Details See also:Device Status Desc
s2 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Status 3
Details See also:Device Status Desc
s3 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Status 4
Details See also:Device Status Desc
s4 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
t1 number Temp Sensor 1
t2 number Temp Sensor 2
t3 number Temp Sensor 3
t4 number Temp Sensor 4
mileage
lc number
Unit: m.
Direction
hx number North direction is 0 degrees, clockwise increases, the maximum value of 360
degrees.
gt string GPS Upload Time
Fuel
yl number
Unit: L, you must first use divided by 100.
srcAt number Type of source alarm
srcTm string Source alarm time
Type of source alarm started
stType number
The alarm is used when the start and end alarm types are used
time string Alarm time
dct number Bus use, 0 uplink, 1 down
lid number Bus use, Line number
sfg number Bus use, Site sign 0- site 1- station yard
snm number Bus use, Site index
tsp number Bus use, Site status 0- station 1- next stop
sst number Speed of traveling data recorder
Correctly Returns Examples
{
"result": 0,
"alarmlist":[
{
"DevIDNO":500000,
"desc":"",
"guid":"C0C580F6E5094FDF8710289627676075",
"hd":0,
"img":"",
"info":0,
"p1":0,
"p2":0,
"p3":0,
"p4":0,
"rve":0,
"srcAt":0,
"srcTm":"2000-00-00 00:00:00",
"stType":0,
"type":48,
"time":2017-10-24 18:20:48,
"Gps":{
"dct":0,
"gt":"2017-10-24 18:20:48",
"hx":71,
"lat":22649633,
"lc":7503761,
"lid":4,
"lng":113827278,
"mlat":"22.652409",
"mlng":"113.838835",
"net":0,
"pk":0,
"s1":805310851,
"s2":0,
"s3":0,
"s4":0,
"sfg":0,
"snm":0,
"sp":540,
"sst":0,
"t1":-321,
"t2":350,
"t3":-200,
"t4":0,
"tsp":0,
"yl":10644
}
}
]
}

Vehicle Mileage

Interface Desc And Error Code


Vehicle Mileage,Only on alternate days mileage can be queried
URL
https://www.mobilecam2.net/StandardApiAction_runMileage.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
Plate Number
It may be more than one, in order to ',' separation.
vehiIdno string No No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Start Time
begintime string Yes No
Start time is not greater than the end time
endtime string Yes No End Time
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_runMileage.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=500000&begintime=2018-3-25&endtime=2018-3-30&currentPage=1&pageRecords=50
(https://www.mobilecam2.net/StandardApiAction_runMileage.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=500000&begintime=2018-3-25&endtime=2018-3-30&currentPage=1&pageRecords=50)
Return Param Desc
Param Name Param Type Desc
mileage
mile number
Unit: m.
vehIdno string Plate Number
Correctly Returns Examples
{
"result": 0,
"infos":[
{,
"vehIdno":50000,
"mile":161446267
}
],
"pagination":
{
"totalPages": 1
"currentPage": 1
"pageRecords": 50
"totalRecords": 1
"sortParams": null
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"startRecord": 0
}
}

Vehicle Parked

Interface Desc And Error Code


Vehicle Parked
URL
https://www.mobilecam2.net/StandardApiAction_parkDetail.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
Plate Number
It may be more than one, in order to ',' separation.
vehiIdno string No No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Start Time
begintime string Yes No
Start time is not greater than the end time
endtime string Yes No End Time
Parking Time
parkTime string Yes No
Unit: sec.
Map Coordinates Conversion
toMap number Yes No 1 shows Coordinates converted to Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu map Coordinates
Analysis of geographical position
geoaddress number No No 1 provides resolution geographic location services
If you don't pass it, don't analysis the location
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_parkDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=500000&begintime=2018-3-25 00:00:00&endtime=2018-3-30
23:59:59&parkTime=0&toMap=2&currentPage=1&pageRecords=50 (https://www.mobilecam2.net/StandardApiAction_parkDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=500000&begintime=2018-3-25
00:00:00&endtime=2018-3-30 23:59:59&parkTime=0&toMap=2&currentPage=1&pageRecords=50)
Return Param Desc
Param Name Param Type Desc
vehiIdno string Plate Number
companyName string Company Name
Parking Time
alarmTotalTime number
Unit: sec.
startPosition string Geographical Position
armTimeStart number Start Time(millisecond)
armTimeEnd number End Time(millisecond)
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"guid":"E41DED6D027E47879AE11C8E0AD977B0",
"vehIdno":50000,
"companyName":"test",
"startPosition":"Sinopec Xinqiao Gas Station, No.184, Guangshen Road, Shajing Street, Baoan District, Shenzhen City, Guangdong Province",
"armTimeStart":1522393426000,
"armTimeEnd":1522393984000,
"alarmTotalTime":558
}
],
"pagination":
{
"totalPages": 1
"currentPage": 1
"pageRecords": 50
"totalRecords": 1
"sortParams": null
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"startRecord": 0
}
}
Vehicle Latest Location

Interface Desc And Error Code


Vehicle Latest Location
URL
https://www.mobilecam2.net/StandardApiAction_vehicleStatus.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
Plate Number
It may be more than one, in order to ',' separation.
vehiIdno string No No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Map Coordinates Conversion
toMap number No No 1 shows Coordinates converted to Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu map Coordinates
Analysis of geographical position
geoaddress number No No 1 provides resolution geographic location services
If you don't pass it, don't analysis the location
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_vehicleStatus.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=500000&toMap=2&currentPage=1&pageRecords=50&geoaddress=0
(https://www.mobilecam2.net/StandardApiAction_vehicleStatus.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=500000&toMap=2&currentPage=1&pageRecords=50&geoaddress=0)
Return Param Desc
Param Name Param Type Desc
vi string Plate Number
tm number Start Time(millisecond)
jd number Lng
wd number Lat
pos string Geographical Position
Correctly Returns Examples
{
"result": 0,
"infos":[
{,
"vi":50000,
"tm":1523609431000,
"jd":113873128,
"wd":22618579,
"pos":"Pingluanshan Park, Jinghong Kong-Macao Expressway, Xixiang Street, Baoan District, Shenzhen City, Guangdong Province"
}
],
"pagination":
{
"totalPages": 1
"currentPage": 1
"pageRecords": 50
"totalRecords": 1
"sortParams": null
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"startRecord": 0
}
}

Vehicle Location List


(1)URL

https://www.mobilecam2.net/808gps/open/vehicleStatus.html?userSession=1bd49f53-8e49-4cad-972c-bf48cc4b3c83&vehiIdno=50000 (https://www.mobilecam2.net/808gps/open/vehicleStatus.html?userSession=1bd49f53-8e49-4cad-972c-
bf48cc4b3c83&vehiIdno=50000)

(2)Param Desc

Param Whether
Param Type Defaults Desc
Name Must
After user login returning jsession
userSession string No No If it is empty, it is determined that the
account and password.
Plate Number
vehiIdno string No No It may be more than one, in order to ','
separation.

Mileage Details Report

Interface Desc And Error Code


Mileage Details Report
URL
https://www.mobilecam2.net/StandardApiAction_getOilTrackDetail.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param
Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
begintime string Yes No Start Time
End Time
endtime string Yes No Start time is not greater than the end
time
Plate Number
vehiIdno string No No It may be more than one, in order to ','
separation.
Map Coordinates Conversion
1 shows Coordinates converted to
toMap number No No Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu
map Coordinates
Query Type, 1-Fuel Volume Details
byOil number No No Report Others - Mileage Details
Report
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_getOilTrackDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=1111111&begintime=2020-05-18 00:00:00&endtime=2020-06-17
23:59:59&toMap=2&currentPage=1&pageRecords=10 (https://www.mobilecam2.net/StandardApiAction_getOilTrackDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=1111111&begintime=2020-05-18
00:00:00&endtime=2020-06-17 23:59:59&toMap=2&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
vehiIdno string Plate Number
companyName string Company Name
plateType number Plate Type
bTimeStr number Start Time
eTimeStr number End Time
liCheng number Total mileage, unit: m
youLiang number Total fuel consumption, 100=1 litre
startPosition string Start position
endPosition string End position
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"pagination": {
"endRecord": 0,
"pagin": null,
"totalPages": 1,
"hasPreviousPage": false,
"sortParams": null,
"currentPage": 1,
"pageRecords": 10,
"totalRecords": 1,
"startRecord": 0,
"page": false,
"previousPage": 1,
"nextPage": 1,
"directQuery": false,
"hasNextPage": false,
"primaryKey": "id"
},
"infos": [
{
"companyName":"xxx",
"vehiIdno":"A205050500001",
"liCheng":0,
"youLiang":0,
"startPosition":"489 meters south of Phoenix Police Station, G 107(Guangshen Highway), Baoan District, Shenzhen City, Guangdong Province",
"endPosition":"489 meters south of Phoenix Police Station, G 107(Guangshen Highway), Baoan District, Shenzhen City, Guangdong Province",
"eTimeStr":"2022-04-13 23:59:30",
"bTimeStr":"2022-04-12 00:00:02",
"vehiCount":null,
"clockCount":null,
"noGps":null,
"startGaoDu":null,
"liChengLong":0,
"driftRate":null,
"date":null,
"uploadWifiLiuLiang":null,
"downWifiLiuLiang":null,
"uploadSimLiuLiang":null,
"gpsDriftLicheng":null,
"runStopType":null,
"downSimLiuLiang":null,
"dateI":null,
"startTime":1649692802853,
"haulDistanceDistributed":null,
"noPhoto":null,
"runStop":null,
"endTime":1649865570253,
"companyId":null,
"workTime":null,
"vehiId":null,
"driver":null,
"industryType":null,
"plateType":1,
"speedLimit":null,
"endTimeStr":null,
"startTimeStr":null,
"driverId":null,
"startLiCheng":105600,
"endLiCheng":105600,
"areaSpeedLimit":null,
"drivingAlarmSum":null,
"gpsDateStr":null,
"trackDisconNum":null,
"posPassRate":null,
"onlineVehiCount":null,
"endYouLiang":0,
"startYouLiang":0,
"addYouLiang":0,
"hundredYouLiang":0.0,
"reduceYouLiang":0,
"endGaoDu":null,
"gpsDate":null,
"alarmSum":null,
"did":null,
"gpsLatLngErrNum":null,
"gpsTotal":null,
"trackGPSLiCheng":null,
"gpsSpeedErrNum":null,
"gpsUnlocatedNum":null,
"gpsDriftNum":null,
"startWeiDu":22692464,
"startJingDu":113828043,
"endJingDu":113828043,
"onlineStatus":null,
"endWeiDu":22692464,
"enterNetwork":null,
"integrityRate":null,
"vehiName":null,
"gpsAltitudeErrNum":null,
"gpsDirectionErrNum":null,
"trackDisconLiCheng":null,
"qualifiedGpsTotal":null
},
]

Detailed information of access area

Interface Desc And Error Code


Detailed information of access area
URL
https://www.mobilecam2.net/StandardApiAction_queryAccessAreaInfo.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
Plate Number
It may be more than one, in order to ',' separation.
vehiIdno string Yes No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Start Time
begintime string Yes No
Start time is not greater than the end time
endtime string Yes No End Time
Map Coordinates Conversion
toMap number Yes No 1 shows Coordinates converted to Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu map Coordinates
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_queryAccessAreaInfo.action?jsession=dd8575726c6244e28fe796924907080a&vehiIdno=10001&begintime=2023-2-14 00:00:00&endtime=2023-2-14
23:59:59&toMap=2&currentPage=1&pageRecords=5 (https://www.mobilecam2.net/StandardApiAction_queryAccessAreaInfo.action?jsession=dd8575726c6244e28fe796924907080a&vehiIdno=10001&begintime=2023-2-14
00:00:00&endtime=2023-2-14 23:59:59&toMap=2&currentPage=1&pageRecords=5)
Return Param Desc
Param Name Param Type Desc
vehicle string Plate Number
gpsTime number Positioning time
lat string Lat
lon string Lng
customArea string Area Name
passType number In and out status (in: 1, out: 2)
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"vehicle":"10001",
"gpsTime":1676346074000,
"lat":"22.638488",
"lon":"113.853973",
"customArea":"xi an distribution point",
"passType":2
}
],
"pagination":
{
"totalPages": 1
"currentPage": 1
"pageRecords": 50
"totalRecords": 1
"sortParams": null
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"startRecord": 0
"page": false
"endRecord": 5
"rp": null
"primaryKey": "id"
"directQuery": false
"pagin": null
"qtype": null
}
}

Video Business

Init Video Plug(H5, not IE)

Interface Desc And Error Code


Init Video Plug(H5, not IE)
(1)The video player plug-in currently supports H5 and Flash (only IE uses Flash)
(2)File path description, download all the reference files below, and place them in the same folder according to the example path
├── js
│ └── cmsv6player.min.js
(3)cmsv6player
<script src="https://www.mobilecam2.net/808gps/open/player/cmsv6player.min.js"></script>
(4)wasm file location
libcmsv6decode.wasm needs to be placed in the web root directory
(5)Prepare HTML code
<div id="cmsv6flash"></div>
(6)JavaScript Code
See Also:Reference JavaScript Code
Reference File
File Caption
Video plug-in calls
https://www.mobilecam2.net/808gps/open/player/js/cmsv6player.min.js
require JavaScript
(https://www.mobilecam2.net/808gps/open/player/js/cmsv6player.min.js)
file
Video plug-in calls
https://www.mobilecam2.net/libcmsv6decode.wasm
require JavaScript
(https://www.mobilecam2.net/libcmsv6decode.wasm)
file
Call Method
(1)Video widget init method var swfobject = new Cmsv6Player(option):

Param Whether
Param Type Defaults Desc
Name Must
Page HTML tag id
domId string Yes No
Usually cmsv6flash.
For h5 player, if isVodMode is
configured as true when initializing,
there can be a playback toolbar and
drag operation can be performed. The
h5 player can also support multi-
isVodMode number Yes No channel synchronous playback
startVodM(url, "0,1,2,3"), and the
device needs to support multi-channel
synchronous playback. The second
parameter "0,1,2,3" Indicates the
playback channel
width number Yes No Video plug-width
height number Yes No Video plug-height
lang string No en Language type

(3)Setting the language video widget(effective when 'playerType = flash') setLanguage(languagePath)

Whether
Param Name Param Type Defaults Desc
Must
Chinese
language language package path
languagePath string No
pack: Relative path or absolute path.
cn.xml

(4)Set the video plug-in the number of windows setWindowNum(windowNum)

Param Whether
Param Type Defaults Desc
Name Must
The number of windows (not more
windowNum number Yes No
than 36)

(5)Set the video plug-in server setServerInfo(ip, port)

Param Whether
Param Type Defaults Desc
Name Must
ip string Yes No Login server ip
port number Yes No Login server port
Operation Example
(1)Operation Example

See Also:https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en)

(2)Reference JavaScript Code


// Initialize video plugin
function initPlayerExample() {
for (var i = 0; i < 101; i++) {
playingStatusArray.push(false);
}
var _isVodMode = getValue('vodMode');
// Assignment is initialized as incomplete
isInitFinished = false;
// Video plugin width
var width = getValue('playerWidth');
if (width == '') {
setFocus('playerWidth');
return;
}
// Video plugin height
var hieght = getValue('playerHeight');
if (hieght == '') {
setFocus('playerHeight');
return;
}
var strLang = getUrlParameter('lang');
var options = {
domId: "cmsv6flash",
isVodMode: _isVodMode == "1" ? true : false,
width: width,
height: hieght,
lang: strLang == "" ? "en" : strLang
}
swfobject = new Cmsv6Player(options);
initFlash();
}

// Execute after plugin initialization is complete


function initFlash() {
if (typeof swfobject == "undefined" ||
typeof swfobject.setWindowNum == "undefined") {
setTimeout(initFlash, 50);
} else {
// Initialize plugin language
var language = getValue('languagePath');
if (!language) {
return;
}
swfobject.setLanguage(language);
// First create all windows
swfobject.setWindowNum(36);
// Reconfigure the current number of windows
var windowNum = getValue('windowNumber');
if (windowNum == '') {
setFocus('windowNumber');
return;
}
swfobject.setWindowNum(windowNum);
// Set server information
var serverIp = getValue('serverIp');
if (!serverIp) {
setFocus('serverIp');
return;
}
var serverPort = getValue('serverPort');
if (!serverPort) {
setFocus('serverPort');
return;
}
swfobject.setServerInfo(serverIp, serverPort);
isInitFinished = true;
}
}

Init Video Plug(H5 and Flash)

Interface Desc And Error Code


Init Video Plug(H5 and Flash)
(1)The video player plug-in currently supports H5 and Flash (only IE uses Flash)
(2)File path description, download all the reference files below, and place them in the same folder according to the example path
├── player
│ ├── swfobject-all.js
│ ├── player.swf
│ ├── swfobject.js
│ ├── cn.xml
│ ├── en.xml
│ ├── js
│ │ └── cmsv6player.min.js
(3)The introduction of jQuery and swfobject
<script src="https://www.mobilecam2.net/808gps/open/player/swfobject-all.js"></script>
(4)wasm file location
libcmsv6decode.wasm needs to be placed in the web root directory
(5)Prepare HTML code
<div id="cmsv6flash"></div>
(6)JavaScript Code
See Also:Reference JavaScript Code
(7)Default loading rules
IE browser currently only supports flash player, non-IE browser loads H5 player by default
Reference File
File Caption
Video plug-in calls
https://www.mobilecam2.net/808gps/open/player/swfobject-all.js
require JavaScript
(https://www.mobilecam2.net/808gps/open/player/swfobject-all.js)
file
https://www.mobilecam2.net/808gps/open/player/player.swf
Video plug-in files
(https://www.mobilecam2.net/808gps/open/player/player.swf)
Video plug-in calls
https://www.mobilecam2.net/808gps/open/player/swfobject.js
require JavaScript
(https://www.mobilecam2.net/808gps/open/player/swfobject.js)
file
https://www.mobilecam2.net/808gps/open/player/cn.xml Video plug Chinese
(https://www.mobilecam2.net/808gps/open/player/cn.xml) language pack
https://www.mobilecam2.net/808gps/open/player/en.xml Video plug English
(https://www.mobilecam2.net/808gps/open/player/en.xml) language pack
Video plug-in calls
https://www.mobilecam2.net/808gps/open/player/js/cmsv6player.min.js
require JavaScript
(https://www.mobilecam2.net/808gps/open/player/js/cmsv6player.min.js)
file
Video plug-in calls
https://www.mobilecam2.net/libcmsv6decode.wasm
require JavaScript
(https://www.mobilecam2.net/libcmsv6decode.wasm)
file
Call Method
(1)Video widget init method ttxVideoAll.init(cmsv6flash, width, height, params, playerType)

Param Whether
Param Type Defaults Desc
Name Must
Page HTML tag id
cmsv6flash string Yes No
Usually cmsv6flash.
width number Yes No Video plug-width
height number Yes No Video plug-height
Video plug-in init param
params object No No
lang, and so on.
Video plugin type
playerType string No auto
flash、h5、auto

(2)Change the video plugin type method, it only takes effect when the initialization method 'playerType = auto', it will refresh the page ttxVideoAll.switchType('flash')

Param Whether
Param Type Defaults Desc
Name Must
playerType string No auto flash、h5、auto

(3)Setting the language video widget(effective when 'playerType = flash') setLanguage(languagePath)

Whether
Param Name Param Type Defaults Desc
Must
Chinese
language language package path
languagePath string No
pack: Relative path or absolute path.
cn.xml

(4)Set the video plug-in the number of windows setWindowNum(windowNum)

Param Whether
Param Type Defaults Desc
Name Must
The number of windows (not more
windowNum number Yes No
than 36)

(5)Set the video plug-in server setServerInfo(ip, port)

Operation Example
(1)Operation Example

See Also:https://www.mobilecam2.net/808gps/open/player/video-demo.html (https://www.mobilecam2.net/808gps/open/player/video-demo.html)


https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?account=admin&password=admin&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?
account=admin&password=admin&PlateNum=11111&lang=en)
https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&PlateNum=11111&lang=en)

(2)Reference JavaScript Code

//Old versions need to pay attention to the red part


var isInitFinished = false;//Are video plug loading complete
//Init Video Plug(PC/mobile WEB)
function initPlayerExample() {
//Video plug-in init param
var params = {
lang: "zh-cn" //"en", "zh-cn", "zh-tw"
};
//Init flash
//swfobject.embedSWF("player.swf", "cmsv6flash", 400, 400, "11.0.0", null, null, params, null);
//undefined
ttxVideoAll.init("cmsv6flash", 400, 400, params, "auto");
initFlash();
}
//Are video plug loading complete
function initFlash() {
if (typeof swfobject == "undefined" || swfobject.getObjectById("cmsv6flash") == null ||
typeof swfobject.getObjectById("cmsv6flash").setWindowNum == "undefined" ) {
setTimeout(initFlash, 50);
} else {
//Setting the language video widget(effective when 'playerType = flash')
swfobject.getObjectById("cmsv6flash").setLanguage("cn.xml");
//First of all windows created
swfobject.getObjectById("cmsv6flash").setWindowNum(36);
//Re-configure the current number of windows
swfobject.getObjectById("cmsv6flash").setWindowNum(4);
//Set the video plug-in server
swfobject.getObjectById("cmsv6flash").setServerInfo("www.mobilecam2.net", "16605");
isInitFinished = true;
}
}

Live Video(PC/mobile URL)

Interface Desc And Error Code


Live Video(PC/mobile URL)
Can be called directly links to view live video.
Reference File
No
Call Method
Url Param Desc

Param Whether
Param Type Defaults Desc
Name Must
After user login returning jsession
jsession string No No If it is empty, it is determined that the
account and password.
Account
If jsession is empty, it is determined
that the account and password.
account string No No
If user name and password is empty, it
is judged background configuration
username and password.
password string No No Password
Device No.
devIdno string No No If it is empty, it is determined that the
vehiIdno.
Plate Number
vehiIdno string No No If the devIdno is empty, it is judged that
the vehiIdno.
The number of channels to preview the
channel number No No video.
Maximum support 9 window Play.
stream number No 1 0 main stream, 1 sub stream
close number No No Video preview time, Units sec.
Language Settings
lang string No zh
en means English, otherwise Chinese.
Operation Example
(1)Operation Example

a.Incoming jsession and devIdno


See Also:https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&devIdno=500000&
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222 (https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&devIdno=500000&jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222)

b.Incoming jsession and vehiIdno


See Also:https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&vehiIdno=50000000000&
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222 (https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&vehiIdno=50000000000&jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222)

c.Incoming account, password and devIdno


See Also:https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&devIdno=500000&
&account=admin&password=admin (https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&devIdno=500000&account=admin&password=admin)

d.Incoming account, password and vehiIdno


See Also:https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&vehiIdno=50000000000&
account=admin&password=admin (https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&vehiIdno=50000000000&account=admin&password=admin)

e.Incoming video auto-off time


See Also:https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&vehiIdno=50000000000&
account=admin&password=admin&close=10 (https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&vehiIdno=50000000000&account=admin&password=admin&close=10)

f.Incoming the number of preview window


See Also:https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&vehiIdno=50000000000&
account=admin&password=admin&channel=3&chns=0,1,2 (https://www.mobilecam2.net/808gps/open/player/video.html?lang=en&vehiIdno=50000000000&account=admin&password=admin&channel=3&chns=0,1,2)

Live Video(PC/mobile JS)

Interface Desc And Error Code


Live Video(PC/mobile JS)
video live explain
Reference File
See Also:Init Video Plug(PC/mobile WEB) (webApi.html#sec-video-init)

Call Method
(1)Set the video window title setVideoInfo(index, title)

Param Whether
Param Type Defaults Desc
Name Must
index number Yes No Window Index(starting from 0)
title string No No Window Title

(2)Play Video startVideo(index, jsession, devIdno, channel, stream, true)

Param Whether
Param Type Defaults Desc
Name Must
index number Yes No Window Index(starting from 0)
jsession string Yes No After user login returning jsession
devIdno string Yes No Device No.
channel number Yes No Device Channel(starting from 0)
Video Stream
stream number Yes No 1 represents sub-stream, 0 represents
main stream.

(3)Stop Video stopVideo(index)

Param Whether
Param Type Defaults Desc
Name Must
index number Yes No Window Index(starting from 0)

(4)Reset Video reSetVideo(index)

Param Whether
Param Type Defaults Desc
Name Must
index number Yes No Window Index(starting from 0)
(5)Set the minimum buffer time of video setBufferTime(index, time)

Param Whether
Param Type Defaults Desc
Name Must
index number Yes No Window Index(starting from 0)
It's mainly used for the adjustment of
2(Unit: video lazy load. When the video buffers
time number Yes
sec.) the minimum buffer time of video, then
it will play the video.

(6)Set the maximum buffer time of video setBufferTimeMax(index, time)

Param Whether
Param Type Defaults Desc
Name Must
index number Yes No Window Index(starting from 0)
It's mainly used for the adjustment of
6(Unit: video lazy load. When the video buffers
time number Yes
sec.) the maximum buffer time of video, then
it will play the video fast-forward.

(7)Video callback event onTtxVideoMsg(index, type)

Caption In the current video JS corresponding file, add new function: function onTtxVideoMsg(index, type){}

Param Param Whether


Defaults Desc
Name Type Must
index number Yes No Window Index(starting from 0)
Event type
1. window event: select: select window, full: full screen, norm: exit full screen
2. Video play event: start: start play, paus: pause, stop: stop, play: pause or stop
after the re-play, sound: open sound, silent: mute, PicSave: screenshots
3. Intercom event:startRecive,uploadRecive,loadRecive: Open
intercom,upload:Talk to talk,uploadfull:Talk to talk is over,stopTalk:Turn off
type string Yes No intercom,reciveStreamStop,reciveNetError,reciveStreamNotFound:Intercom
exception (network anomaly, etc.),uploadNetClosed,uploadNetError:Connection
exception
4. Listen to events:startListen:Start listening,stopListen:Stop
listening,listenNetError:network
anomaly,playListen:Listening,loadListen,listenStreamNotFound,listenStreamStop:Wait
for request to listen
Operation Example
(1)Operation Example

See Also:https://www.mobilecam2.net/808gps/open/player/video-demo.html (https://www.mobilecam2.net/808gps/open/player/video-demo.html)


https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?account=admin&password=admin&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?
account=admin&password=admin&PlateNum=11111&lang=en)
https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&PlateNum=11111&lang=en)

(2)Reference JavaScript Code

//After the video plug-in Init is complete Calls it


//Play Video
function playVideo() {
//Stop Video
swfobject.getObjectById("cmsv6flash").stopVideo(0);
//Set the video window title
swfobject.getObjectById("cmsv6flash").setVideoInfo(0, "vehicle1-CH1");
//Play Video
swfobject.getObjectById("cmsv6flash").startVideo(0, "sdsd-dsad-sd-sd-ad", "123124", 0, 1, true);
}
//Stop Video
function stopVideo() {
swfobject.getObjectById("cmsv6flash").stopVideo(0);
}
//Reset Video
function reSetVideo() {
swfobject.getObjectById("cmsv6flash").reSetVideo(0);
}
//Video callback event
function onTtxVideoMsg(index,type) {
if(type == "select"){ };
}

Real Time Video (Mobile WEB HLS live address)

Interface Desc And Error Code


Real Time Video (Mobile WEB HLS live address)
video live explain
Reference File
No
Call Method
(1)Send a request to the streaming server: //stream media Ip:streaming media client service port/hls/requestType_deviceNumber_channelNumber_bitstreamType.m3u8?JSESSIONID=cf6b70a3-c82b-4392-8ab6-bbddce336222

example:http://www.mobilecam2.net:6604/hls/1_10000_0_1.m3u8?JSESSIONID=cf6b70a3-c82b-4392-8ab6-bbddce336222

Param Whether
Param Name Defaults Desc
Type Must
stream media Ip string Yes No stream media Ip
streaming media client
streaming media client service port string Yes No
service port
request type(1
video)_equipment
number_channel
requestType_deviceNumber_channelNumber_bitstreamType string Yes No number_stream type
(0 primary bit stream 1
bitstream)
example:1_10000_0_1
JSESSIONID string Yes No Jsession

Operation Example
(1)Operation Example

<video controls preload="none" width="352" height="288" data-setup="{}"><source src="http://www.mobilecam2.net:6604/hls/1_10000_0_1.m3u8?JSESSIONID=cf6b70a3-c82b-4392-8ab6-bbddce336222" type="application/x-mpegURL">


</video>

Real Time Video (Mobile WEB HLS page)

Interface Desc And Error Code


Real Time Video (Mobile WEB HLS page)
Can be called directly links to view live video.
Reference File
No
Call Method
(1)Param Desc

Param Whether
Param Type Defaults Desc
Name Must
After user login returning jsession
jsession string No No If it is empty, it is determined that the
account and password.
Account
If jsession is empty, it is determined
that the account and password.
account string No No
If user name and password is empty, it
is judged background configuration
username and password.
password string No No Password
Device No.
devIdno string No No If it is empty, it is determined that the
vehiIdno.
Plate Number
vehiIdno string No No If the devIdno is empty, it is judged that
the vehiIdno.
channel number No No Device Channel(starting from 0)
close number No No Video preview time, Units sec.
Language Settings
lang string No zh
en means English, otherwise Chinese.
Operation Example
(1)Operation Example

a.Incoming jsession and devIdno


See Also:https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&devIdno=10000&
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222 (https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&devIdno=10000&jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222)

b.Incoming jsession and vehiIdno


See Also:https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&vehiIdno=10000&
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222 (https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&vehiIdno=10000&jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222)

c.Incoming account, password and devIdno


See Also:https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&devIdno=10000&
&account=admin&password=admin (https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&devIdno=10000&account=admin&password=admin)

d.Incoming account, password and vehiIdno


See Also:https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&vehiIdno=10000&
account=admin&password=admin (https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&vehiIdno=10000&account=admin&password=admin)

e.Incoming video auto-off time


See Also:https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&vehiIdno=10000&
account=admin&password=admin&close=10 (https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&vehiIdno=10000&account=admin&password=admin&close=10)

f.Incoming video device channel


See Also:https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&vehiIdno=10000&
account=admin&password=admin&channel=3 (https://www.mobilecam2.net/808gps/open/hls/index.html?lang=en&vehiIdno=10000&account=admin&password=admin&channel=3)

Monitor(PC/mobile JS)

Interface Desc And Error Code


Monitor(PC/mobile JS)

Reference File
See Also:Init Video Plug(PC/mobile WEB) (webApi.html#sec-video-init)

Call Method
(1)Start Listening startListen(jsession, devIdno, channel)

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No After user login returning jsession
devIdno string Yes No Device No.
channel number Yes No Device Channel(starting from 0)

(2)Stop Listening stopListen()

Operation Example
(1)Operation Example

See Also:https://www.mobilecam2.net/808gps/open/player/video-demo.html (https://www.mobilecam2.net/808gps/open/player/video-demo.html)


https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?account=admin&password=admin&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?
account=admin&password=admin&PlateNum=11111&lang=en)
https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&PlateNum=11111&lang=en)

(2)Reference JavaScript Code

//After the video plug-in Init is complete Calls it


//Start Listening
function startMonitor() {
//Start Listening
swfobject.getObjectById("cmsv6flash").startListen("2131-23-32", "23213", 0);
}
//Stop Listening
function stopMonitor() {
swfobject.getObjectById("cmsv6flash").stopListen();
}

Talkback(PC/mobile JS)

Interface Desc And Error Code


Talkback(PC/mobile JS)
h5 player, https can talk directly; for http talk, you need to download and install the PCM audio collection tool. The h5 player judges through the onTtxVideoMsg message callback. type=isTalking means the intercom is in progress,
type=showDownLoadDialog means the pcm collection tool needs to be downloaded
JavaScript Code
See Also:Reference JavaScript Code
Reference File
See Also:Init Video Plug(PC/mobile WEB) (webApi.html#sec-video-init)

Call Method
(1)Start Talkback startTalkback(jsession, devIdno, 0)

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No After user login returning jsession
devIdno string Yes No Device No.

(2)Stop Talkback stopTalkback()

Operation Example
(1)Operation Example

See Also:https://www.mobilecam2.net/808gps/open/player/video-demo.html (https://www.mobilecam2.net/808gps/open/player/video-demo.html)


https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?account=admin&password=admin&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?
account=admin&password=admin&PlateNum=11111&lang=en)
https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/RealPlayVideo.html?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&PlateNum=11111&lang=en)

(2)Reference JavaScript Code

var jsession = getValue('liveJsession');


if (jsession == '') {
setFocus('talkbackJsession');
return;
}
var devIdno = getValue('talkbackDevIdno');
if (devIdno == '') {
setFocus('talkbackDevIdno');
return;
}
swfobject.getObjectById("cmsv6flash").setTalkParam(1);
var ret = swfobject.getObjectById("cmsv6flash").startTalkback(jsession, devIdno, 0);

// The flash player is judged by the return value of startTalkback, Return 0 success, 1 means talking, 2 means no mic, 3 means mic is disabled
// The h5 player judges through the onTtxVideoMsg message callback. type=isTalking means the intercom is in progress, type=showDownLoadDialog means the pcm collection tool needs to be downloaded
if (ret == 0) {
} else if (ret == 1) {
} else if (ret == 2) {
alert(lang.nullMic);
} else if (ret == 3) {
//alert(lang.micStop);
alert(lang.talkback_openMic);
} else {}
}
function onTtxVideoMsg(index, type) {
// ......
if (type == "showDownLoadDialog") {
alert("down pcm tool");
downPcmTool();
} else if (type == ‘isTalking’) {
alert(“is talking”);
}
// ......
}

RealTime Video RTSP

Interface Desc And Error Code


RealTime Video RTSP

URL
rtsp://www.mobilecam2.net:6604/3/3?AVType=1&jsession=12345678&DevIDNO=60000004&Channel=0&Stream=1
Call Method
(1)URL Request Parameter Explain

Param Whether
Param Type Defaults Desc
Name Must
1 means real-time video, 2 means
AVType string Yes No
monitoring
jsession string Yes No jsession
DevIDNO string Yes No Indicates the device number
Indicates the channel number, starting
Channel string Yes No
from 0
Stream string Yes No 0 main stream, 1 sub stream

Operation Example
(1)Operation Example

rtsp://www.mobilecam2.net:6604/3/3?AVType=1&jsession=12345678&DevIDNO=60000004&Channel=0&Stream=1

RealTime Video RTMP(FLV)

Interface Desc And Error Code


RealTime Video RTMP(FLV)

URL
http://www.mobilecam2.net:6604/3/3?AVType=1&jsession=CDF32EFB37E799293C2657BD804B1327&DevIDNO=60000004&Channel=0&Stream=1
Call Method
(1)URL Request Parameter Explain

Param Whether
Param Type Defaults Desc
Name Must
1 means real-time video, 2 means
AVType string Yes No
monitoring
jsession string Yes No jsession
DevIDNO string Yes No Indicates the device number
Indicates the channel number, starting
Channel string Yes No
from 0
Stream string Yes No 0 main stream, 1 sub stream

Operation Example
(1)Operation Example

http://www.mobilecam2.net:6604/3/3?AVType=1&jsession=12345678&DevIDNO=60000004&Channel=0&Stream=1

RealTime Video RTMP

Interface Desc And Error Code


RealTime Video RTMP

URL
rtmp://www.mobilecam2.net:6604/3/3?AVType=1&jsession=CDF32EFB37E799293C2657BD804B1327&DevIDNO=60000004&Channel=0&Stream=1
Call Method
(1)URL Request Parameter Explain

Param Whether
Param Type Defaults Desc
Name Must
1 means real-time video, 2 means
AVType string Yes No
monitoring
jsession string Yes No jsession
DevIDNO string Yes No Indicates the device number
Indicates the channel number, starting
Channel string Yes No
from 0
Stream string Yes No 0 main stream, 1 sub stream

Operation Example
(1)Operation Example

rtmp://www.mobilecam2.net:6604/3/3?AVType=1&jsession=12345678&DevIDNO=60000004&Channel=0&Stream=1

File related business

RealTime Video

Interface Desc And Error Code


RealTime Video
The vehicle must be online to operate
URL
https://www.mobilecam2.net/StandardApiAction_realTimeVedio.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
DevIDNO string Yes No Device No.
Device ChannelThe channel begins
with the maximum support of 15. from
Chn string Yes No 0 (0 for channel 1 and 1 for channel 2).
It may be more than one, in order to ','
separation.
Video length (range from 0 to 1800, 0
Sec number Yes No
to stop)
Label string Yes No Label
Request Example
https://www.mobilecam2.net/StandardApiAction_realTimeVedio.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&DevIDNO=50000&Chn=1&Sec=300&Label=test
(https://www.mobilecam2.net/StandardApiAction_realTimeVedio.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&DevIDNO=50000&Chn=1&Sec=300&Label=test)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}

Query Video

Interface Desc And Error Code


Query Video
(1)File time across days
search for files on 20150913 such as videos that may arise in both cases
a.Return date 20150912 23:00:00 to 20150913 01:00:00 video, and day field returns value of 12;
b.Return date 20150913 23:00:00 to 20150914 01:00:00 video, and day field returns value of 13.
URL
https://www.mobilecam2.net/StandardApiAction_getVideoFileInfo.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

a.Query Video

Param Whether
Param Type Defaults Desc
Name Must
Device No.
DevIDNO string Yes No When the query a video on server, it
means the license plate number.
Search Location
1 indicates the device, 2 denotes a
LOC number Yes No
storage server, 4 indicates download
server.
Search Channel(starting from 0)
CHN number Yes No 0 means channel 1, 1 means channel
2, -1 means all channel.
YEAR string Yes No Search Year
MON string Yes No Search Month
DAY string Yes No Search Day
Record Type
RECTYPE number Yes No 0 means General, 1 means alarm, -1
means all.
File Type
FILEATTR number Yes No 1 indicates an image
2 means a video.
Start Seconds
BEG number Yes No
The unit is second (0-86399)
End Seconds
END number Yes No
The unit is second (0-86399)
Non 1078 equipment fill 0
Alarm identification 1, binary
corresponding decimal integer, binary
digit alarm
1 emergency alarm 2 overspeed alarm
3 fatigue driving 4 early warning
5GNSS module malfunction
The 6GNSS module is not connected
to or is cut off by the 7GNSS antenna
short circuit 8 terminal main power
supply under voltage
9 terminal main power supply power off
ARM1 number Yes No 10 terminal LCD or display failure
11TTS module fault
12 camera failure 19, driving overtime
on the same day, 20 overtime parking
21 in and out of the area
22 out of route 23 of route of import
and export line / over 24 route
deviation from alarm 25 vehicle VSS
fault
26 vehicles oil volume abnormal 27
vehicles stolen 28 vehicles illegal
ignition 29 vehicles illegal displacement
30 collision rollover alarm
Non 1078 equipment fill 0
Alarm identification 2, binary
corresponding decimal integer, binary
digit alarm,
1 video signal loss alarm, 2 video
ARM2 number Yes No signal occlusion alarm, 3 memory unit
failure alarm
.4 other video equipment fault alarm 5
bus overcrowding alarm 6 alarm
abnormal driving behavior7 special
alarm video to store threshold alarm
Non 1078 equipment fill 0
Media type 0: audio and video, 1:
RES number Yes No
audio, 2: video, 3: video or audio and
video
Non 1078 equipment fill 0
STREAM number Yes No Stream type -1: master or sub stream,
0: master stream, 1: sub stream
Non 1078 equipment fill 0
The main storage type 0: or 1: backup
STORE number Yes No
memory, main memory, 2: memory
backup
LABEL string No No Label
Request Example
https://www.mobilecam2.net/StandardApiAction_getVideoFileInfo.action?DevIDNO=500000&LOC=2&CHN=0&YEAR=2014&MON=12&DAY=10&
RECTYPE=-1&FILEATTR=2&BEG=0&END=86399&ARM1=0&ARM2=0&RES=0&STREAM=0&STORE=0&jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa (https://www.mobilecam2.net/StandardApiAction_getVideoFileInfo.action?
DevIDNO=500000&LOC=2&CHN=0&YEAR=2014&MON=12&DAY=10&RECTYPE=-1&FILEATTR=2&BEG=0&END=86399&ARM1=0&ARM2=0&RES=0&STREAM=0&STORE=0&jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa)
Return Param Desc
a.Query Video

Param Name Param Type Desc


Return Code
result string
0 means success, the other means failure.
Device No.
devIdno string When the query a video on server, it means the
license plate number.
Channel Mask
When a file is stored in the video contains more
than one channel is active, and bitwise
chnMask number representation, the first 0 indicates the video file
contains video channel 1, and so on.First
determine chnMask, if chnMask = 0, then resolve
chn.
Device Channel(starting from 0)
chn number
0 means channel 1, and 1 means channel 2.
File Start Time
beg number
Unit: sec., as 3600 = 1:00.
File End Time
Unit: sec., as 7200 = 2:00, end time may be
end number
greater than 86400, this represents a time span of
days.
Year
year number
We must first use add 2000.
mon number Month
day number Day
When mulPlay>0, multi-channel video playback
mulPlay number
can be performed
If mulChn is not 0, display the channel information
obtained by mulChn bitwise value, if mulChn is 0,
mulChn number
it is necessary to determine which channels have
recording information in the current time period.
file string File Name
len number File Size(Unit byte)
File Location
loc number 1 indicates the device, 2 denotes a storage
server, 4 indicates download server.
Record Type
type number
0 means General, 1 means alarm.
Are Recording
recing number
0 means no Recording, 1 means is recording.
Server ID
svr number Effective when recording on the storage server
and download server.
Alarm Info
Effective when the alarm recording.
loc == 1, bit0: emergency button alarm, bit1:
overspeed alarm, bit2: low speed alarm, bit3:
vibration alarm, bit4: temperature alarm, bit5:
motion detection alarm, bit6: UPS thread cutting
alarm , bit7: collision rollover alarm, bit8: fatigue
driving alarm, bit9: IO_1, bit10: IO_2, bit11: IO_3,
arm string
bit12: IO_4, bit13: IO_5, bit14: IO_6, bit15: IO_7,
bit16: IO_8;
loc != 1, the value of (arm & 0xFFFF). 2:
Emergency button alarm, 11: Overspeed alarm, 3:
Vibration alarm, 9: Temperature alarm, 15: Motion
detection alarm, 49: Fatigue driving alarm, 19:
IO_1, 20: IO_2, 21: IO_3, 22: IO_4,
23:IO_5,24:IO_6,25:IO_7,26:IO_8;
1078 device return
Alarm identification 1, binary corresponding
decimal integer, binary digit alarm
1 emergency alarm 2 overspeed alarm 3 fatigue
driving 4 early warning 5GNSS module
malfunction
The 6GNSS module is not connected to or is cut
off by the 7GNSS antenna short circuit 8 terminal
main power supply under voltage
9 terminal main power supply power off 10
arm1 number terminal LCD or display failure 11TTS module
fault
12 camera failure 19, driving overtime on the
same day, 20 overtime parking 21 in and out of
the area
22 out of route 23 of route of import and export
line / over 24 route deviation from alarm 25
vehicle VSS fault
26 vehicles oil volume abnormal 27 vehicles
stolen 28 vehicles illegal ignition 29 vehicles
illegal displacement 30 collision rollover alarm
1078 device return
Alarm identification 2, binary corresponding
decimal integer, binary digit alarm,
1 video signal loss alarm, 2 video signal occlusion
arm2 number alarm, 3 memory unit failure alarm
.4 other video equipment fault alarm 5 bus
overcrowding alarm 6 alarm
abnormal driving behavior7 special alarm video to
store threshold alarm
1078 device return
res number Media type 0: audio and video, 1: audio, 2: video,
3: video or audio and video
Stream type -1: master or sub stream, 0: master
streamtype number
stream, 1: sub stream
If it is 1, the file can not be downloaded, and can
stream number
only be downloaded in segments
1078 device return
store number The main storage type 0: or 1: backup memory,
main memory, 2: memory backup
Multimedia Type
mediaType number
0 Means Picture, 1 Means Video
When valid for download from the device, it
sourceId number
indicates the ID in the corresponding task table
label string Label
Segment DownloadURL,Server Video Returns
Empty,User Required Parameters:
DownTaskUrl string jsession(Required)sbtm(Default Start
Time)setm(Default End Time)lab(Default Is
Empty)
Direct downloadURL,1078 Device Returns
DownUrl string Empty,User Required Parameters:
jsession(Required)SAVENAME(Required)
Remote playbackURL,User Required
Parameters:
PlaybackUrl string
jsession(Required)PLAYBEG(Default Start
Time)PLAYEND(Default End Time)
Remote playbackWebsocket URLWith
PlaybackUrlWs, PlaybackUrlWs is preferred.
PlaybackUrlWs does not support flash,User
PlaybackUrlWs string
Required Parameters:
jsession(Required)PLAYBEG(Default Start
Time)PLAYEND(Default End Time)
Correctly Returns Examples
a.Query Video
{
"result": 0,
"cmsserver":1,
"files":[
{
"arm": 0
"beg": 31044
"chn": 1
"chnMask": 0
"day": 11
"devIdno": "500000"
"end": 32842
"file": "/MulMDVR/Record/H20100628-083724P2N2P0.264"
"len": 23211837
"loc": 1
"mon": 1
"mulChn": 0
"mulPlay": 0
"recing": 0
"svr": 0
"type": 0
"year": 10
"mediaType": 1
"sourceId": 1
"label": ""
"DownTaskUrl": "http://localhost:8080/StandardApiAction_addDownloadTask.action?jsession=&did=1235&fbtm=2010-09-04 08:37:24&fetm=2010-09-04 09:07:22&sbtm=2010-09-04 08:37:24&setm=2010-09-04 09:07:22&lab
=&fph=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20100628-083724P2N2P0.264&vtp=0&len=23211837&chn=1&dtp=1"
"DownUrl": "http://localhost:6604/3/5?DownType=3&jsession=&DevIDNO=1235&FLENGTH=23211837&FOFFSET=0&MTYPE=1&FPATH=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20100628-083724P2N2P0.264&SAVENAME="
"PlaybackUrl": "http://localhost:6604/3/5?DownType=5&&jsession=DevIDNO=1235&FILELOC=1&FILESVR=0&FILECHN=1&FILEBEG=31044&FILEEND=32842&PLAYIFRM=0&PLAYFILE=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20
100628-083724P2N2P0.264&PLAYBEG=31044&PLAYEND=32842&PLAYCHN=0"
"PlaybackUrlWs": "ws://localhost:6604/3/5?DownType=5&&jsession=DevIDNO=1235&FILELOC=1&FILESVR=0&FILECHN=1&FILEBEG=31044&FILEEND=32842&PLAYIFRM=0&PLAYFILE=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20
100628-083724P2N2P0.264&PLAYBEG=31044&PLAYEND=32842&PLAYCHN=0"
}
]
}
b. 1078Query Video
{
"result": 0,
"cmsserver":1,
"files":[
{
"arm": 0
"arm1": 0
"arm2": 0
"beg": 31044
"chn": 1
"chnMask": 0
"day": 11
"mulChn": 0
"mulPlay": 0
"devIdno": "500000"
"end": 32842
"file": "/MulMDVR/Record/H20100628-083724P2N2P0.264"
"len": 23211837
"loc": 1
"mon": 1
"recing": 0
"res": 0
"store": 0
"stream": -1
"svr": 0
"type": 0
"year": 10
"mediaType": 1
"sourceId": 1
"label": ""
"DownTaskUrl": "http://localhost:8080/StandardApiAction_addDownloadTask.action?jsession=&did=1235&fbtm=2010-09-04 08:37:24&fetm=2010-09-04 09:07:22&sbtm=2010-09-04 08:37:24&setm=2010-09-04 09:07:22&lab
=&fph=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20100628-083724P2N2P0.264&vtp=0&len=23211837&chn=1&dtp=1"
"DownUrl": ""
"PlaybackUrl": "http://localhost:6604/3/5?DownType=5&jsession=&DevIDNO=1235&FILELOC=1&FILESVR=0&FILECHN=1&FILEBEG=31044&FILEEND=32842&PLAYIFRM=0&PLAYFILE=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20
100628-083724P2N2P0.264&PLAYBEG=31044&PLAYEND=32842&PLAYCHN=0"
"PlaybackUrlWs": "ws://localhost:6604/3/5?DownType=5&&jsession=DevIDNO=1235&FILELOC=1&FILESVR=0&FILECHN=1&FILEBEG=31044&FILEEND=32842&PLAYIFRM=0&PLAYFILE=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20
100628-083724P2N2P0.264&PLAYBEG=31044&PLAYEND=32842&PLAYCHN=0"
}
]
}

See Also:https://www.mobilecam2.net/808gps/open/player/VideoSearchDemo.html?lang=en (https://www.mobilecam2.net/808gps/open/player/VideoSearchDemo.html?lang=en)


https://www.mobilecam2.net/808gps/open/player/PlayBackVideo.html?account=admin&password=admin&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/PlayBackVideo.html?
account=admin&password=admin&PlateNum=11111&lang=en)

Query Video(Cross Day)

Interface Desc And Error Code


Query Video(Cross Day)
Notice:
Only 1078 device support cross-day queries
URL
https://www.mobilecam2.net/StandardApiAction_getVideoHistoryFile.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

a.Query Video(Cross Day)

Param Whether
Param Type Defaults Desc
Name Must
Device No.
DevIDNO string Yes No When the query a video on server, it
means the license plate number.
Search Location
1 indicates the device, 2 denotes a
LOC number Yes No
storage server, 4 indicates download
server.
Search Channel(starting from 0)
CHN number Yes No 0 means channel 1, 1 means channel
2, -1 means all channel.
YEAR string Yes No Search Year
MON string Yes No Search Month
DAY string Yes No Search Day
Record Type
RECTYPE number Yes No 0 means General, 1 means alarm, -1
means all.
File Type
FILEATTR number Yes No 1 indicates an image
2 means a video.
Start Seconds
BEG number Yes No
The unit is second (0-86399)
End Seconds
END number Yes No
The unit is second (0-86399)
Non 1078 equipment fill 0
Alarm identification 1, binary
corresponding decimal integer, binary
digit alarm
1 emergency alarm 2 overspeed alarm
3 fatigue driving 4 early warning
5GNSS module malfunction
The 6GNSS module is not connected
to or is cut off by the 7GNSS antenna
short circuit 8 terminal main power
supply under voltage
9 terminal main power supply power off
ARM1 number Yes No 10 terminal LCD or display failure
11TTS module fault
12 camera failure 19, driving overtime
on the same day, 20 overtime parking
21 in and out of the area
22 out of route 23 of route of import
and export line / over 24 route
deviation from alarm 25 vehicle VSS
fault
26 vehicles oil volume abnormal 27
vehicles stolen 28 vehicles illegal
ignition 29 vehicles illegal displacement
30 collision rollover alarm
Non 1078 equipment fill 0
Alarm identification 2, binary
corresponding decimal integer, binary
digit alarm,
1 video signal loss alarm, 2 video
ARM2 number Yes No signal occlusion alarm, 3 memory unit
failure alarm
.4 other video equipment fault alarm 5
bus overcrowding alarm 6 alarm
abnormal driving behavior7 special
alarm video to store threshold alarm
Non 1078 equipment fill 0
Media type 0: audio and video, 1:
RES number Yes No
audio, 2: video, 3: video or audio and
video
Non 1078 equipment fill 0
STREAM number Yes No Stream type -1: master or sub stream,
0: master stream, 1: sub stream
Non 1078 equipment fill 0
The main storage type 0: or 1: backup
STORE number Yes No
memory, main memory, 2: memory
backup
LABEL string No No Label
Search End Year
YEARE string No No Yeare, mone, and daye are not empty,
and the query is made across the day
Search End Month
MONE string No No Yeare, mone, and daye are not empty,
and the query is made across the day
Search End Day
DAYE string No No Yeare, mone, and daye are not empty,
and the query is made across the day
Request Example
https://www.mobilecam2.net/StandardApiAction_getVideoHistoryFile.action?DevIDNO=500000&LOC=2&CHN=0&YEAR=2014&
MON=12&DAY=10&RECTYPE=-1&FILEATTR=2&BEG=0&END=86399&ARM1=0&ARM2=0&RES=0&STREAM=0
&STORE=0&YEARE=2014&MONE=12&DAYE=13&jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa (https://www.mobilecam2.net/StandardApiAction_getVideoHistoryFile.action?
DevIDNO=500000&LOC=2&CHN=0&YEAR=2014&MON=12&DAY=10&RECTYPE=-1&FILEATTR=2&BEG=0&END=86399&ARM1=0&ARM2=0&RES=0&STREAM=0&STORE=0&YEARE=2014&MONE=12&DAYE=13&jsession=649b7687-
6792-41a2-b9be-7806f2a0d3fa)
Return Param Desc
a.Query Video

Param Name Param Type Desc


Return Code
result string
0 means success, the other means failure.
Device No.
devIdno string When the query a video on server, it means the
license plate number.
Channel Mask
When a file is stored in the video contains more
than one channel is active, and bitwise
chnMask number representation, the first 0 indicates the video file
contains video channel 1, and so on.First
determine chnMask, if chnMask = 0, then resolve
chn.
Device Channel(starting from 0)
chn number
0 means channel 1, and 1 means channel 2.
File Start Time
beg number
Unit: sec., as 3600 = 1:00.
File End Time
Unit: sec., as 7200 = 2:00, end time may be
end number
greater than 86400, this represents a time span of
days.
Year
year number
We must first use add 2000.
mon number Month
day number Day
When mulPlay>0, multi-channel video playback
mulPlay number
can be performed
If mulChn is not 0, display the channel information
obtained by mulChn bitwise value, if mulChn is 0,
mulChn number
it is necessary to determine which channels have
recording information in the current time period.
file string File Name
len number File Size(Unit byte)
File Location
loc number 1 indicates the device, 2 denotes a storage
server, 4 indicates download server.
Record Type
type number
0 means General, 1 means alarm.
Are Recording
recing number
0 means no Recording, 1 means is recording.
Server ID
svr number Effective when recording on the storage server
and download server.
Alarm Info
Effective when the alarm recording.
loc == 1, bit0: emergency button alarm, bit1:
overspeed alarm, bit2: low speed alarm, bit3:
vibration alarm, bit4: temperature alarm, bit5:
motion detection alarm, bit6: UPS thread cutting
alarm , bit7: collision rollover alarm, bit8: fatigue
driving alarm, bit9: IO_1, bit10: IO_2, bit11: IO_3,
arm string
bit12: IO_4, bit13: IO_5, bit14: IO_6, bit15: IO_7,
bit16: IO_8;
loc != 1, the value of (arm & 0xFFFF). 2:
Emergency button alarm, 11: Overspeed alarm, 3:
Vibration alarm, 9: Temperature alarm, 15: Motion
detection alarm, 49: Fatigue driving alarm, 19:
IO_1, 20: IO_2, 21: IO_3, 22: IO_4,
23:IO_5,24:IO_6,25:IO_7,26:IO_8;
1078 device return
Alarm identification 1, binary corresponding
decimal integer, binary digit alarm
1 emergency alarm 2 overspeed alarm 3 fatigue
driving 4 early warning 5GNSS module
malfunction
The 6GNSS module is not connected to or is cut
off by the 7GNSS antenna short circuit 8 terminal
main power supply under voltage
9 terminal main power supply power off 10
arm1 number terminal LCD or display failure 11TTS module
fault
12 camera failure 19, driving overtime on the
same day, 20 overtime parking 21 in and out of
the area
22 out of route 23 of route of import and export
line / over 24 route deviation from alarm 25
vehicle VSS fault
26 vehicles oil volume abnormal 27 vehicles
stolen 28 vehicles illegal ignition 29 vehicles
illegal displacement 30 collision rollover alarm
1078 device return
Alarm identification 2, binary corresponding
decimal integer, binary digit alarm,
1 video signal loss alarm, 2 video signal occlusion
arm2 number alarm, 3 memory unit failure alarm
.4 other video equipment fault alarm 5 bus
overcrowding alarm 6 alarm
abnormal driving behavior7 special alarm video to
store threshold alarm
1078 device return
res number Media type 0: audio and video, 1: audio, 2: video,
3: video or audio and video
Stream type -1: master or sub stream, 0: master
streamtype number
stream, 1: sub stream
If it is 1, the file can not be downloaded, and can
stream number
only be downloaded in segments
1078 device return
store number The main storage type 0: or 1: backup memory,
main memory, 2: memory backup
Multimedia Type
mediaType number
0 Means Picture, 1 Means Video
When valid for download from the device, it
sourceId number
indicates the ID in the corresponding task table
label string Label
Segment DownloadURL,Server Video Returns
Empty,User Required Parameters:
DownTaskUrl string jsession(Required)sbtm(Default Start
Time)setm(Default End Time)lab(Default Is
Empty)
Direct downloadURL,1078 Device Returns
DownUrl string Empty,User Required Parameters:
jsession(Required)SAVENAME(Required)
Remote playbackURL,User Required
Parameters:
PlaybackUrl string
jsession(Required)PLAYBEG(Default Start
Time)PLAYEND(Default End Time)
Remote playbackWebsocket URLWith
PlaybackUrlWs, PlaybackUrlWs is preferred.
PlaybackUrlWs does not support flash,User
PlaybackUrlWs string
Required Parameters:
jsession(Required)PLAYBEG(Default Start
Time)PLAYEND(Default End Time)
Correctly Returns Examples
a.Query Video
{
"result": 0,
"cmsserver":1,
"files":[
{
"arm": 0
"beg": 31044
"chn": 1
"chnMask": 0
"day": 11
"devIdno": "500000"
"end": 32842
"file": "/MulMDVR/Record/H20100628-083724P2N2P0.264"
"len": 23211837
"loc": 1
"mon": 1
"mulChn": 0
"mulPlay": 0
"recing": 0
"svr": 0
"type": 0
"year": 10
"mediaType": 1
"sourceId": 1
"label": ""
"DownTaskUrl": "http://localhost:8080/StandardApiAction_addDownloadTask.action?jsession=&did=1235&fbtm=2010-09-04 08:37:24&fetm=2010-09-04 09:07:22&sbtm=2010-09-04 08:37:24&setm=2010-09-04 09:07:22&lab
=&fph=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20100628-083724P2N2P0.264&vtp=0&len=23211837&chn=1&dtp=1"
"DownUrl": "http://localhost:6604/3/5?DownType=3&jsession=&DevIDNO=1235&FLENGTH=23211837&FOFFSET=0&MTYPE=1&FPATH=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20100628-083724P2N2P0.264&SAVENAME="
"PlaybackUrl": "http://localhost:6604/3/5?DownType=5&&jsession=DevIDNO=1235&FILELOC=1&FILESVR=0&FILECHN=1&FILEBEG=31044&FILEEND=32842&PLAYIFRM=0&PLAYFILE=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20
100628-083724P2N2P0.264&PLAYBEG=31044&PLAYEND=32842&PLAYCHN=0"
"PlaybackUrlWs": "ws://localhost:6604/3/5?DownType=5&&jsession=DevIDNO=1235&FILELOC=1&FILESVR=0&FILECHN=1&FILEBEG=31044&FILEEND=32842&PLAYIFRM=0&PLAYFILE=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20
100628-083724P2N2P0.264&PLAYBEG=31044&PLAYEND=32842&PLAYCHN=0"
}
]
}
b. 1078Query Video
{
"result": 0,
"cmsserver":1,
"files":[
{
"arm": 0
"arm1": 0
"arm2": 0
"beg": 31044
"chn": 1
"chnMask": 0
"day": 11
"mulChn": 0
"mulPlay": 0
"devIdno": "500000"
"end": 32842
"file": "/MulMDVR/Record/H20100628-083724P2N2P0.264"
"len": 23211837
"loc": 1
"mon": 1
"recing": 0
"res": 0
"store": 0
"stream": -1
"svr": 0
"type": 0
"year": 10
"mediaType": 1
"sourceId": 1
"label": ""
"DownTaskUrl": "http://localhost:8080/StandardApiAction_addDownloadTask.action?jsession=&did=1235&fbtm=2010-09-04 08:37:24&fetm=2010-09-04 09:07:22&sbtm=2010-09-04 08:37:24&setm=2010-09-04 09:07:22&lab
=&fph=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20100628-083724P2N2P0.264&vtp=0&len=23211837&chn=1&dtp=1"
"DownUrl": ""
"PlaybackUrl": "http://localhost:6604/3/5?DownType=5&jsession=&DevIDNO=1235&FILELOC=1&FILESVR=0&FILECHN=1&FILEBEG=31044&FILEEND=32842&PLAYIFRM=0&PLAYFILE=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20
100628-083724P2N2P0.264&PLAYBEG=31044&PLAYEND=32842&PLAYCHN=0"
"PlaybackUrlWs": "ws://localhost:6604/3/5?DownType=5&&jsession=DevIDNO=1235&FILELOC=1&FILESVR=0&FILECHN=1&FILEBEG=31044&FILEEND=32842&PLAYIFRM=0&PLAYFILE=/project/mdvr/trunck/bin/MulMDVR_old/Record/H20
100628-083724P2N2P0.264&PLAYBEG=31044&PLAYEND=32842&PLAYCHN=0"
}
]
}

See Also:https://www.mobilecam2.net/808gps/open/player/VideoSearchDemo.html?lang=en (https://www.mobilecam2.net/808gps/open/player/VideoSearchDemo.html?lang=en&crossDay=1)


https://www.mobilecam2.net/808gps/open/player/PlayBackVideo.html?account=admin&password=admin&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/PlayBackVideo.html?
account=admin&password=admin&PlateNum=11111&lang=en&crossDay=1)

Download Video

Interface Desc And Error Code


Download Video
Notice:
(1)Download Type
a.Segment Download:Mainly on the device to download video files, saved on the server, and then download directly download to a local;
Segmented download contains the full file download and segmented downloads.
Full Download:The device manufacturers type of 16, 17, 20 and 22 support the direct download, if the video file contains multiple channels, you can only segment download.(When get GPS status get type of device manufacturers)
Segment Download:All devices support Segment downloading.
b.Direct download:Mainly download video on the server, downloaded to the local.
URL
Segment Download

https://www.mobilecam2.net/StandardApiAction_addDownloadTask.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Segment Download
Param Whether
Param Type Defaults Desc
Name Must
did string Yes No Device No.
File Start Time
Greater than or equal to the source file
fbtm string Yes No
start time, Less than or equal to the
source file end time.
File End Time
Greater than or equal to the source file
fetm string Yes No
start time, Less than or equal to the
source file end time.
sbtm string Yes No Source Files Start Time
setm string Yes No Source Files End Time
lab string No No File Tag
fph string Yes No File Path
Record Type
vtp number Yes No
0 means General, 1 means alarm.
len number Yes No File Size
chn number Yes No Channel
Download Type
dtp number Yes No 1 means the whole file to download, 2
means segment downloaded.
Request Example
Segment Download

https://www.mobilecam2.net/StandardApiAction_addDownloadTask.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&did=500000&fbtm=2015-12-25 00:00:00&fetm=2015-12-30 23:59:59&sbtm=2015-12-25 00:00:00&setm=2015-


12-30 23:59:59&lab=downloadExample&fph=/mnt/hgfs/record/H20121123-112931P3A1P0.avi&vtp=1&len=5000&chn=1&dtp=1 (https://www.mobilecam2.net/StandardApiAction_addDownloadTask.action?jsession=cf6b70a3-c82b-4392-8ab6-
bbddce336222&did=500000&fbtm=2015-12-25 00:00:00&fetm=2015-12-30 23:59:59&sbtm=2015-12-25 00:00:00&setm=2015-12-30 23:59:59&lab=downloadExample&fph=/mnt/hgfs/record/H20121123-
112931P3A1P0.avi&vtp=1&len=5000&chn=1&dtp=1)
Operation Example
See Also:https://www.mobilecam2.net/808gps/open/player/VideoSearchDemo.html?lang=en (https://www.mobilecam2.net/808gps/open/player/VideoSearchDemo.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/PlayBackVideo.html?account=admin&password=admin&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/PlayBackVideo.html?
account=admin&password=admin&PlateNum=11111&lang=en)

Remote Playback(PC/mobile)

Interface Desc And Error Code


Remote Playback(PC/mobile)
Notice:
(1)JavaScript Code
See Also:Reference JavaScript Code
Reference File
See Also:Init Video Plug(PC/mobile WEB) (webApi.html#sec-video-init)

Call Method
(1)Start Playback startVod(url, index)

Param Param Whether


Defaults Desc
Name Type Must
Query VideoWhen returning (PlaybackUrlWs
is preferred)
Remote playback url
According to the query Recording to get info
assembled url,
As http://127.0.0.1:6611/3/5?
DownType=5&DevIDNO=10009&FILELOC=1
& FILESVR = 0 & FILECHN = 0 & FILEBEG
=1
& FILEEND = 100 & PLAYIFRM = 0 &
PLAYFILE = / record /H20121123-
112931P3A1P0.avi
& PLAYBEG = 0 & PLAYEND = 0 &
PLAYCHN = 0.
Param Desc: FILELOC, FILESVR, FILECHN,
PLAYFILE, FILEBEG
and FILEEND respectively returns file search
parameters
url string Yes No loc, svr, chn, file, beg and end, direct access
to the corresponding parameters.
PLAYBEG means play start time offset, in
milliseconds, relative to the start time of the
file to calculate, 0 represents the start
position for playback from a file.
PLAYEND means play ending offset time, in
milliseconds, relative to the file start time
computation, may not be greater than the
total length of the file.
PLAYIFRM means play I-frame (please fill in
as 0).
PLAYCHN means indicates playback video
channel, when there are multiple channels of
Recording files using, if no more than one
channel, the direct use of 0.
DevIDNO means when playing files on the
device, it is the device number; when playing
files on the server, it is the vehicle number.
index number Yes No Window Index(starting from 0)

(2)Stop Playback stopVideo(index);

Operation Example
(1)Operation Example

https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExample.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/VideoSearchDemo.html?lang=en (https://www.mobilecam2.net/808gps/open/player/VideoSearchDemo.html?lang=en)
https://www.mobilecam2.net/808gps/open/player/PlayBackVideo.html?account=admin&password=admin&PlateNum=11111&lang=en (https://www.mobilecam2.net/808gps/open/player/PlayBackVideo.html?
account=admin&password=admin&PlateNum=11111&lang=en)

(2)Reference JavaScript Code


//After the video plug-in Init is complete Calls it
//Start Playback
function startPlayback() {
//Stop Playback
swfobject.getObjectById("cmsv6flash").stopVideo(0);
//Start Playback
var ret = swfobject.getObjectById("cmsv6flash").startVod(0, "http://www.mobilecam2.net:6604/3/5?DownType=5&DevIDNO=10009&FILELOC=1&FILESVR=0&FILECHN=0&FILEBEG=1&FILEEND=100&PLAYIFRM=0&PLAYFILE=/mnt/hgf
s/linux/libdvrnet/jni/demo/bin/record/H20121123-112931P3A1P0.avi&PLAYBEG=0&PLAYEND=0&PLAYCHN=0");
}
//Stop Playback
function stopPlayback() {
swfobject.getObjectById("cmsv6flash").stopVideo(0);
}

Remote Playback HTML5(PC/mobile)

Interface Desc And Error Code


Remote Playback HTML5(PC/mobile)
Notice:
(1)JavaScript Code
See Also:Reference JavaScript Code
Reference File
See Also:Init Video Plug(PC/mobile WEB) (webApi.html#sec-video-init)

Call Method
(1)Start Playback startVodM(url, channel)

Param Whether
Param Type Defaults Desc
Name Must
Query VideoWhen returning
(PlaybackUrlWs is preferred)
Single-channel playback: url is
PlaybackUrlWS
Multi-channel synchronous playback:
url string/array Yes No
url is PlaybackUrlWS
Multi-channel simultaneous playback:
url is an array
url.push(file1.PlaybackUrlWS);
url.push(file2.PlaybackUrlWS);
Single-channel playback: channel is ""
Multi-channel synchronous playback:
channel string Yes No channel, "0,1,2,3"
Multi-channel simultaneous playback:
channel is ""

(2)Stop Playback stopVideoM();

Operation Example
(1)Operation Example

See Also:https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en (https://www.mobilecam2.net/808gps/open/player/videoExampleH5.html?lang=en)

(2)Reference JavaScript Code

1. When returning to PlaybackUrlWs, the playback link will take priority to PlaybackUrlWs.

var playUrl = fileInfo.PlaybackUrlWs;

2. Single channel playback, playUrl is the playback link.

cmsv6Player.startVodM(playUrl, '');

3. Multi-channel simultaneous playback

a. The returned mulPlay> 0 means that multi-channel synchronous playback is supported.

b. mulChn represents the channel that can be played back in multiple channels, expressed in bits. mulChn has two situations:

-1 type is 0 (808 protocol) If mulChn is 0, it is necessary to determine which channels have recording information according to the time period (customization is required), and select these channels.

-1 type is not 0 (ttx protocol).

c. Play call:

cmsv6Player.startVodM(playUrl, '0,1,3');

4. Multi-channel non-synchronous playback, after getting the returned videoFileList, form an array and call the startVodM method to play

var url = [];


url.push(file1.PlaybackUrlWS);
url.push(file2.PlaybackUrlWS);
cmsv6Player.startVodM(url, "");

5. When a video file has multiple channels, replace the channel number of the playback link

// How to replace the playback channel number with the playback link
playUrl = playUrl.replace('PLAYCHN=0', 'PLAYCHN=' + chnIndex);

Img Capture

Interface Desc And Error Code


Img Capture
The vehicle must be online to operate
URL
https://www.mobilecam2.net/StandardApiAction_capturePicture.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&Type=1&Resolution=1
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
DevIDNO string Yes No Device No.
Device Channel(starting from 0)
Chn string Yes No 0 means channel 1, and 1 means
channel 2.
Type number Yes No Please fill in the 1
resolution
1 means 320*240, 2 means 640*480, 3
Resolution number No 1 means 800*600, 4 means 1024*768, 5
means 176*144, 6 means 352*288, 7
means 704*288, 8 means 704*576
Request Example
https://www.mobilecam2.net/StandardApiAction_capturePicture.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&Type=1&Resolution=1&DevIDNO=50000&Chn=1
(https://www.mobilecam2.net/StandardApiAction_capturePicture.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&Type=1&Resolution=1&DevIDNO=50000&Chn=1)
Return Param Desc
Param Name Param Type Desc
FPATH string picture path
FOFFSET string deviation
FLENGTH string File Size(Unit byte)
DownUrl string URL address for image download
Correctly Returns Examples
{
"result": 0,
"cmsserver": 1,
"FPATH": "\gStorage\STOMEDIA\2017-10-23\20171023-171103.picfile",
"FOFFSET": "4258170",
"FLENGTH": "608310",
"DownUrl": ""
}

Get snap photos

Interface Desc And Error Code


Get snap photos
URL
//www.mobilecam2.net:6611/3/5?Type=3
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
Type number Yes No Please fill in 3
File Size(Unit byte)
FLENGTH number Yes No
Snap back size
deviation
FOFFSET number No No
Snap back offset
MTYPE number Yes No Please fill in the 1
picture path
FPATH string Yes No
Snapshot return path
SAVENAME string No No After download the saved name
Request Example
//www.mobilecam2.net:6611/3/5?Type=3&FLENGTH=608310&FOFFSET=4258170&FPATH=\gStorage\STOMEDIA\2017-10-23\20171023-171103.picfile&MTYPE=1&SAVENAME=downImage (//www.mobilecam2.net:6611/3/5?
Type=3&FLENGTH=608310&FOFFSET=4258170&FPATH=\gStorage\STOMEDIA\2017-10-23\20171023-171103.picfile&MTYPE=1&SAVENAME=downImage)
Return Param Desc
Param Name Param Type Desc
Correctly Returns Examples

Subsection Download Task

Interface Desc And Error Code


Subsection Download Task
URL
https://www.mobilecam2.net/StandardApiAction_downloadTasklist.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
devIdno string Yes No Device No.
File Start Time
Greater than or equal to the source
begintime string Yes No
file start time, Less than or equal to
the source file end time.
File End Time
Greater than or equal to the source
endtime string Yes No
file start time, Less than or equal to
the source file end time.
taskTag string No No File Tag
Downloading Status
status number No No 1 undownloaded, 2 downloads, 3
downloads failed, 4 downloaded
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_downloadTasklist.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&status=1&taskTag=123&begintime=2017-11-10 12:00:00&endtime=2017-11-11
12:00:00&currentPage=1&pageRecords=10 (https://www.mobilecam2.net/StandardApiAction_downloadTasklist.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&status=1&taskTag=123&begintime=2017-11-10
12:00:00&endtime=2017-11-11 12:00:00&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
Device No.
did string When the query a video on server, it means the
license plate number.
err string The cause of failure when downloading fails
User ID, submitting and downloading the
uid number corresponding user ID, that is, the current
jsession login user ID
Device Channel(starting from 0)
chn number
0 means channel 1, and 1 means channel 2.
dbtm number Download Start TimeUnit: sec.
detm number Download End TimeUnit: sec.
dph string Downloading Path
svr number Storage Server Number
1 means the whole file to download, 2 means
dtp number
segment downloaded.
lab string File Tag
sbtm number Source Files Start TimeUnit: sec.
setm number Source Files End TimeUnit: sec.
nfbtm number File Start TimeUnit: sec.
nfetm number File End TimeUnit: sec.
stu number Downloading Status
Video type 0 represents a routine, and 1 is an
vtp number
alarm.
fph string File Path
len number File Size
ftp number File type 1 picture file, 2 for video
ctm number Task generation timeUnit: sec.
fbtm number File Start TimeUnit: sec.
fetm number File End TimeUnit: sec.
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"id":"18",
"len":9096588,
"err":0,
"did":50000,
"uid":1,
"chn":2,
"lab":"1234",
"stu":4,
"ftp":2,
"fph":"/Demo/demo/bin/record/upload/H20171109-103026P3A1P0.avi",
"ctm":1510194626000,
"fbtm":1510194656000,
"fetm":1510194716000,
"vtp":1,
"dbtm":1510194628000,
"detm":1510194630000,
"dph":"gStorage/RECORD_FILE/2233/2017-11-09/2233_2-171109-103056-103156-20020300.grec",
"svr":6,
"dtp":2,
"sbtm":1510194626000,
"setm":1510194868000,
"nfbtm":1510194656,
"nfetm":1510194716
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}

Delete Device Download the subsection task

Interface Desc And Error Code


Delete Device Download the subsection task
URL
https://www.mobilecam2.net/StandardApiAction_delDownloadTasklist.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
devIdno string Yes No Device No.
taskTag string No No File Tag
Request Example
https://www.mobilecam2.net/StandardApiAction_delDownloadTasklist.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&taskTag=123 (https://www.mobilecam2.net/StandardApiAction_delDownloadTasklist.action?
jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&taskTag=123)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}

Insert\Video\Audio\Picture Record

Interface Desc And Error Code


Insert\Video\Audio\Picture Record
URL
https://www.mobilecam2.net/StandardApiAction_addMediaInformation.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
devIdno string Yes No Device No.
channel number Yes No Channel
Media Types 0: Pictures, 1: Audio and
mediaType number Yes No Video, 2: Audio, 3: Video, 4: Text, 5:
Other
fileType number Yes No 0-Ordinary 1-Alarm Trigger
filePath string Yes No File Path
fileOffset number Yes No File offset position
fileSize number Yes No File Size
fileSTime string Yes No File Start Time
fileETime string Yes No File End Time
Label string Yes No Label
svrIDNO string Yes No Storage Server Number
Request Example
https://www.mobilecam2.net/StandardApiAction_addMediaInformation.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=60002&channel=2&mediaType=1&fileType=0&filePath=D:/gStorage/RECORD_FILE/60002/2019-
09-02/H20190902-165958P3A1P0_1.mp4&fileOffset=1&fileSize=447888&fileSTime=2019-09-02 12:00:00&fileETime=2019-09-02 12:30:00&Label=60002F13BAD42F4877D04&svrIDNO=U1
(https://www.mobilecam2.net/StandardApiAction_addMediaInformation.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=60002&channel=2&mediaType=1&fileType=0&filePath=D:/gStorage/RECORD_FILE/60002/2019-
09-02/H20190902-165958P3A1P0_1.mp4&fileOffset=1&fileSize=447888&fileSTime=2019-09-02 12:00:00&fileETime=2019-09-02 12:30:00&Label=60002F13BAD42F4877D04&svrIDNO=U1)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}

FTP File Upload

Interface Desc And Error Code


FTP File Upload
URL
https://www.mobilecam2.net/StandardApiAction_ftpUpload.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
Device No.
DevIDNO string Yes No When the query a video on server, it
means the license plate number.
Search Channel(starting from 0)
CHN number Yes No 0 means channel 1, 1 means channel
2, -1 means all channel.
BEGYEAR number Yes No Start Year
BEGMON number Yes No Start Month
BEGDAY number Yes No Start Date
BEGSEC number Yes No Start Seconds(0-86339)
ENDYEAR number Yes No End Year
ENDMON number Yes No End Month
ENDDAY number Yes No End Date
ENDSEC number Yes No End Seconds(0-86339)
Alarm identification 1, binary
corresponding decimal integer, binary
digit alarm
1: emergency alarm 2: overspeed
alarm 4: fatigue driving 8: early warning
16:GNSS module malfunction
32:The GNSS module is not connected
to or is cut off by the 64:GNSS antenna
short circuit 128: terminal main power
supply under voltage
256: terminal main power supply power
off 512: terminal LCD or display failure
1024:TTS module fault
ARM1 number Yes No 2048: camera failure 262144: driving
overtime on the same day, 524288:
overtime parking 1048576: in and out
of the area
2097152: out of route 4194304: of
route of import and export line / over
8388608: route deviation from alarm
16777216: vehicle VSS fault
33554432: vehicles oil volume
abnormal 67108864: vehicles stolen
134217728: vehicles illegal ignition
268435456: vehicles illegal
displacement 536870912: collision
rollover alarm
Alarm identification 2, binary
corresponding decimal integer, binary
digit alarm,
1: video signal loss alarm, 2: video
signal occlusion alarm, 4: memory unit
ARM2 number Yes No
failure alarm
.8: other video equipment fault alarm
16: bus overcrowding alarm 32: alarm
abnormal driving behavior64: special
alarm video to store threshold alarm
Media type 0: audio and video, 1:
RES number Yes No audio, 2: video, 3: video or audio and
video
Stream type -1: master or sub stream,
STREAM number Yes No
0: master stream, 1: sub stream
The main storage type 0: or 1: backup
STORE number Yes No memory, main memory, 2: memory
backup
1:WIFI,1 For WIFI Downloadable
2:LAN,2 For LAN Downloadable
NETMASK number Yes No
4:3G/4G,4 For 3G/4G Downloadable
Multiple Selection
jsession string Yes No Jsession
Request Example
https://www.mobilecam2.net/StandardApiAction_ftpUpload.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&DevIDNO=60002&CHN=1&BEGYEAR=2019&BEGMON=8&BEGDAY=12&BEGSEC=40407&ENDYEAR=2019&ENDMON=8&ENDDAY=12&ENDSEC=40423&ARM1=0&ARM2=0&RES=0&STREAM=0&STORE=0&NETMASK=7
(https://www.mobilecam2.net/StandardApiAction_ftpUpload.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&DevIDNO=60002&CHN=1&BEGYEAR=2019&BEGMON=8&BEGDAY=12&BEGSEC=40407&ENDYEAR=2019&ENDMON=8&ENDDAY=12&ENDSEC=40423&ARM1=0&ARM2=0&RES=0&STREAM=0&STORE=0&NETMASK=7)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
SEQUENCE number Task Flow Number
Correctly Returns Examples
{
"result": 0,"SEQUENCE":1,"cmsserver":1
}

FTP Task Status Query

Interface Desc And Error Code


FTP Task Status Query
URL
https://www.mobilecam2.net/StandardApiAction_queryFtpStatus.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
seq number Yes No Task Flow Number
devIdno string Yes No Device No.
jsession string Yes No Jsession
Request Example
https://www.mobilecam2.net/StandardApiAction_queryFtpStatus.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&seq=1&devIdno=11111 (https://www.mobilecam2.net/StandardApiAction_queryFtpStatus.action?
jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&seq=1&devIdno=11111)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Task Status
0:Pause State
1:Downloading
status number
2:Cancel
3:Fail
4:Success
downloadUrl string Download Link
playUrl string Play Link
Correctly Returns Examples
{
"result": 0,
"info":{
"status":4,
"downloadUrl":http://127.0.0.1:6611/3/5?DownType=3&DevIDNO=11111&FLENGTH=206580&FOFFSET=0&MTYPE=0&FPATH=C%3A%2FGPS_FTP%2FRECORD_FILE%2F013168710077%2F2020-06-17%2FFA7-200617-160534-160554-20000700%2FCH7_
0_0_0_0_200617-160534_200617-160554.avi&SAVENAME=CH7_0_0_0_0_200617-160534_200617-160554.avi&jsession=9325B71EFA12AF162B1232849F327391,
"playUrl":http://127.0.0.1:6611/3/5?DownType=5&DevIDNO=11111&FILELOC=2&FILESVR=1&FILECHN=0&FILEBEG=0&FILEEND=0&PLAYIFRM=0&PLAYFILE=C%3A%2FGPS_FTP%2FRECORD_FILE%2F013168710077%2F2020-06-17%2FFA7-200617-16
0534-160554-20000700%2FCH7_0_0_0_0_200617-160534_200617-160554.avi&PLAYBEG=0&PLAYEND=0&PLAYCHN=0&jsession=9325B71EFA12AF162B1232849F327391
}
}

FTP Task List Query

Interface Desc And Error Code


FTP Task List Query
URL
https://www.mobilecam2.net/StandardApiAction_queryDownLoadReplayEx.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
devIdno string Yes No Device No.
begintime string Yes No Start Time
endtime string Yes No End Time
Task Status
0:Pause State
1:Downloading
status string No No
2:Cancel
3:Fail
4:Success
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
jsession string Yes No Jsession
Request Example
https://www.mobilecam2.net/StandardApiAction_queryDownLoadReplayEx.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=60002&status=1&begintime=2017-11-10 12:00:00&endtime=2017-11-11
12:00:00&currentPage=1&pageRecords=10 (https://www.mobilecam2.net/StandardApiAction_queryDownLoadReplayEx.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=60002&status=1&begintime=2017-11-10
12:00:00&endtime=2017-11-11 12:00:00&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
vehiID number Vehicle ID
devIDNO string Device No.
sequence number Task Flow Number
chnMask number Channel
upLoadPath string Upload Ftp Path
filePath string File Path
fileBegTime number File Start Time
fileEndTime number File End Time
arm1 number Alarm Identification 1
arm2 number Alarm Identification 2
alarmParam number Alarm Param
Media type 0: audio and video, 1: audio, 2: video,
resourceType number
3: video or audio and video
Stream type -1: master or sub stream, 0: master
streamType number
stream, 1: sub stream
The main storage type 0: or 1: backup memory,
storeType number
main memory, 2: memory backup
1:WIFI,1 For WIFI Downloadable 2:LAN,2 For
networkMask number LAN Downloadable 4:3G/4G,4 For 3G/4G
Downloadable Multiple Selection
Task Status
0:Pause State
1:Downloading
taskStatus number
2:Cancel
3:Fail
4:Success
uploadSpeed number Upload Speed (BYTE/per second)
uploadProgress number Upload progress 0-100
estimateFileSize number Estimated File Size (BYTE)
userID number User Id
taskSTime number Task Generation Time
taskETime number Mission End Time
downloadUrl string Download Link
playUrl string Play Link
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"vehiID":1,
"devIDNO":018000032595,
"sequence":1,
"chnMask":3,
"upLoadPath":null,
"filePath":/GPS_FTP//RECORD_FILE/018000032595/2019-10-17/FA0-191017-000001-014220-20000400,
"upLoadPath":/RECORD_FILE/018000032595/2019-10-17/FA0-191017-000001-014220-20000400,
"fileBegTime":1571241601000,
"fileEndTime":1571247740000,
"arm1":0,
"arm2":0,
"alarmParam":0,
"resourceType":0,
"streamType":0,
"storeType":1,
"networkMask":7,
"taskStatus":1,
"userID":1,
"taskSTime":1571281317000,
"taskETime":null,
"downloadUrl":http://127.0.0.1:6611/3/5?DownType=3&DevIDNO=11111&FLENGTH=206580&FOFFSET=0&MTYPE=0&FPATH=C%3A%2FGPS_FTP%2FRECORD_FILE%2F013168710077%2F2020-06-17%2FFA7-200617-160534-160554-20000700%2FCH
7_0_0_0_0_200617-160534_200617-160554.avi&SAVENAME=CH7_0_0_0_0_200617-160534_200617-160554.avi&jsession=9325B71EFA12AF162B1232849F327391,
"playUrl":http://127.0.0.1:6611/3/5?DownType=5&DevIDNO=11111&FILELOC=2&FILESVR=1&FILECHN=0&FILEBEG=0&FILEEND=0&PLAYIFRM=0&PLAYFILE=C%3A%2FGPS_FTP%2FRECORD_FILE%2F013168710077%2F2020-06-17%2FFA7-200617-
160534-160554-20000700%2FCH7_0_0_0_0_200617-160534_200617-160554.avi&PLAYBEG=0&PLAYEND=0&PLAYCHN=0&jsession=9325B71EFA12AF162B1232849F327391
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}

FTP Upload Control

Interface Desc And Error Code


FTP Upload Control
URL
https://www.mobilecam2.net/StandardApiAction_controllDownLoad.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
seq number Yes No Task Flow Number
devIdno string Yes No Device No.
taskType number Yes No 0: Pause 1: Continue 2: Cancel
jsession string Yes No Jsession
Request Example
https://www.mobilecam2.net/StandardApiAction_controllDownLoad.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&seq=1&devIdno=10001&taskType=0 (https://www.mobilecam2.net/StandardApiAction_controllDownLoad.action?
jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&seq=1&devIdno=10001&taskType=0)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
SEQUENCE number Task Flow Number
Correctly Returns Examples
{
"result": 0,"SEQUENCE":1,"cmsserver":1
}

Active Safety Business

Security Alarm Inquiry

Interface Desc And Error Code


Security Alarm Inquiry
Notice:
(1)Interface ReferenceGet Device Alarm(Page) (webApi.html#sec-vehicle-device-alarm)
(2)Alarm Type Parameter Uses The Alarm Type Of The Alarm Accessory
URL
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param
Param Whether
Param Type Defaults Desc
Name Must
Request Example
Return Param Desc
Param Name Param Type Desc
Correctly Returns Examples
{
"result": 0
}

Security Evidence Inquiry

Interface Desc And Error Code


Security Evidence Inquiry
URL
https://www.mobilecam2.net/StandardApiAction_performanceReportPhotoListSafe.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
Plate Number
It may be more than one, in order to ',' separation.
vehiIdno string Yes No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
begintime string Yes No Start Time
End Time
endtime string Yes No
Start time is not greater than the end time
Alarm Type
alarmType string Yes No
In ',' split, Can't be empty.
Multimedia Type
mediaType number No No
0 Means Picture, 1 Means Video
Map Coordinates Conversion
toMap number No No 1 shows Coordinates converted to Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu map Coordinates
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_performanceReportPhotoListSafe.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&begintime=2018-11-29 00:00:00&endtime=2018-11-30
00:00:00&alarmType=605&mediaType=0&toMap=2&vehiIdno=30009&currentPage=1&pageRecords=10 (https://www.mobilecam2.net/StandardApiAction_performanceReportPhotoListSafe.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&begintime=2018-11-29 00:00:00&endtime=2018-11-30 00:00:00&alarmType=605&mediaType=0&toMap=2&vehiIdno=30009&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
Multimedia Type
mediaType number
0 Means Picture, 1 Means Video
Video status 0- is videotaping 1- video to
status number
complete the abnormal end of 2-
fileETime string Video File Start Time
fileSTime string Video File End Time
channel number Channel
position string Position
devIdno string Device No.
vehiIdno string Plate Number
jingDu number Lng
weiDu number Lat
fileSize number File Size
alarmType string Alarm Type
fileUrl string File Path
videoFile string Remote playback url
fileTime number File Start Time
fileOffset number File offset position
alarmParam number Alarm Param
label string guid
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"mediaType":0,
"status":null,
"fileETime":null,
"fileSTime":null,
"id":null,
"fileName":null,
"channel":3,
"updateTime":1543560950000,
"position":"",
"devIdno":"123456",
"vehiIdno":"testlinux",
"jingDu":0,
"weiDu":0,
"fileType":1,
"fileSize":35977,
"svrId":6,
"alarmType":605,
"fileTimeI":null,
"videoFile":null,
"encode":null,
"fileUrl":"http://127.0.0.1:6611/3/5?Type=3&FLENGTH=35977&FOFFSET=0&FPATH=/gStorage/JPEG_FILE/123456/2018-11-29/20181129-225450.jpg&MTYPE=1&SAVENAME=2018-11-29 22:54:50.JPEG",
"fileTime":1543503290000,
"gpsstatus":null,
"fileOffset":0,
"vehiId":null,
"filePath":"/gStorage/JPEG_FILE/123456/2018-11-29/20181129-225450.jpg",
"alarmParam":188,
"label":"123456636DEA544CB6D911"
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}

Evidence Query

Interface Desc And Error Code


Evidence Query
URL
https://www.mobilecam2.net/StandardApiAction_alarmEvidence.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
devIdno string Yes No Device No.
File Start Time
Greater than or equal to the source file
begintime string Yes No
start time, Less than or equal to the
source file end time.
alarmType string Yes No Alarm Type
guid string Yes No Alarm Unique Number
Map Coordinates Conversion
1 shows Coordinates converted to
toMap number No No Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu
map Coordinates
md5 number No 0 File md5, 0 does not return 1 returns
Request Example
https://www.mobilecam2.net/StandardApiAction_alarmEvidence.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&guid=EB9B109898F74ADCB1B4446B9FFD2&alarmType=633&begintime=2018-09-19
11:56:37&toMap=2 (https://www.mobilecam2.net/StandardApiAction_alarmEvidence.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&devIdno=50000&guid=EB9B109898F74ADCB1B4446B9FFD2&alarmType=633&begintime=2018-09-19 11:56:37&toMap=2)
Return Param Desc
a. Base Info infos

Param Name Param Type Desc


vn string Plate Number
pl number Vehicle_plate
cn string Company Name
Speed
sp number
Unit: km/h, you must first use divided by 10.
dt number Alarm Start Time (UTC) in seconds
lc string Geographical Position
tp string Alarm Type
Lng
If the device location is invalid, the value of 0.
jd number
For example: 113231258, the true value is
113.231258
Lat
If the device location is invalid, the value of 0.
wd number
For example: 39231258, the true value is
39.231258
dn string Driver Name
dc string Driver Lisence
dp string Driver Phone
ph string Driver Image
phmd5 string Driver Image Md5
dm string Driver's Work Number
b. Media Info images/vedios

Param Name Param Type Desc


Device No.
did string When the query a video on server, it means the
license plate number.
fl string File Path
flmd5 string File md5
fsl string File Stream Path
Downloading Path,User Required Parameters:
dsl string
jsession(Required)SAVENAME(Required)
st number Server Number
fo number File offset position
fs number File Size
File Type
ft number 0-image 1 Audio and video- 2-Audio 3-video 4-
Text 5-other
fb number File Start Time
fe number File End Time
Device Channel
chn number
0 means channel 1, and 1 means channel 2.
Correctly Returns Examples
{
"result": 0,
"infos":{
"vn":"S10001",
"cn":"0101",
"dn":"dn",
"sp":520,
"lc":"166 m west Foziao, G 107(Beijing-Shenzhen Line), Baoan District, Shenzhen City, Guangdong Province",
"dt":1537329397000,
"tp":"Rear approach alarm",
"dp":"A7",
"jd":113823714,
"wd":22652339,
"ph":"upload/whdriver/61611b06-1a74-4219-94b7-4106ac2417951536128556861.png",
"phmd5":"16C5C94F3A679F5466880415C346D142",
"dc":"A7",
"dm":"A7"
},
"images":[{
"st":6,
"did":"50000",
"fl":"/gStorage/STOMEDIA/2018-09-03/20180903-100019.picfile",
"flmd5":"4A85F5785AAC47B4B04ED56E71472355",
"fb":1535945845000,
"fe":1535945845000,
"fsl":"http://127.0.0.1:6611/3/5?Type=3&FLENGTH=608310&FOFFSET=3826405&FPATH=C%3A%2FgStorage%2FSTOMEDIA%2F2018-09-03%2F20180903-100019.picfile&MTYPE=1&SAVENAME=downImage",
"fo":3826405,
"fs":608310,
"ft":0
"chn":0
}],
"vedios":[{
"st":6,
"did":"50000",
"fl":"/gStorage/RECORD_FILE/865423659988883/2018-09-18/test10010_0-180918-083019-090019-20010100.grec",
"flmd5":"DF1CBAEA1EA59FDBA58C5178D4F6DE43",
"fb":1537230619000,
"fe":1537232419000,
"fsl":"http://127.0.0.1:6611/3/5?DownType=5&DevIDNO=%E6%B5%8B%E8%AF%9510010&FILELOC=2&FILESVR=6&FILECHN=0&FILEBEG=0&FILEEND=0&PLAYIFRM=0&PLAYFILE=C%3A%2FgStorage%2FRECORD_FILE%2F865423659988883%2F2018-09
-18%2F%E6%B5%8B%E8%AF%9510010_0-180918-083019-090019-20010100.grec&PLAYBEG=0&PLAYEND=0&PLAYCHN=0",
"dsl":"http://127.0.0.1:6611/3/5?DownType=3&DevIDNO=%E6%B5%8BBJ0001&FLENGTH=433977&FOFFSET=0&MTYPE=1&FPATH=D%3A%2FgStorage%2FRECORD_FILE%2F018000032594%2F2018-12-01%2F02_65_6504_3_48EF94C52FE144E89D3CEEB
9B60D8053.h264&SAVENAME=&jsession="
"fo":0,
"fs":127898900,
"ft":1
"chn":0
}],
"gpsValue":{
"weiDu":null,
"jingDu":"null",
"mapWeiDu":"22.655090",
"mapJingDu":"113.835287",
"geoWeiDu": null,
"geoJingDu": null
}
}

Evidence Download
(1)URL

https://www.mobilecam2.net/StandardApiAction_zipAlarmEvidence.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&guid=EB9B109898F74ADCB1B4446B9FFD2&alarmType=600&begintime=2017-11-10
12:00:00&toMap=2 (https://www.mobilecam2.net/StandardApiAction_zipAlarmEvidence.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&devIdno=50000&guid=EB9B109898F74ADCB1B4446B9FFD2&alarmType=600&begintime=2017-11-10 12:00:00&toMap=2)

(2)Param Desc

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
devIdno string Yes No Device No.
File Start Time
Greater than or equal to the source file
begintime string Yes No
start time, Less than or equal to the
source file end time.
alarmType string No No Alarm Type
guid string No No Alarm Unique Number
Map Coordinates Conversion
1 shows Coordinates converted to
toMap number Yes No Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu
map Coordinates
Video 1078 Business

User media traffic query

Interface Desc And Error Code


User media traffic query
URL
https://www.mobilecam2.net/StandardApiAction_userMediaRateOfFlow.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
File Start Time
Greater than or equal to the source
begintime string Yes No
file start time, Less than or equal to
the source file end time.
File End Time
Greater than or equal to the source
endtime string Yes No
file start time, Less than or equal to
the source file end time.
Query the user ID (multiple users ID
userIds string Yes No
use English, partition)
User operation types (1; video
preview (channel) 2; audio monitoring
type string No No (channel) 3; two-way dialogue 4;
picture capture 5; video search 6;
video download 12; remote playback)
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_userMediaRateOfFlow.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&userIds=1,2,3&type=1,3&begintime=2017-11-10 12:00:00&endtime=2017-11-11
12:00:00&currentPage=1&pageRecords=10 (https://www.mobilecam2.net/StandardApiAction_userMediaRateOfFlow.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&userIds=1,2,3&type=1,3&begintime=2017-11-10
12:00:00&endtime=2017-11-11 12:00:00&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
name string User name
devIdno string Equipment number
User operation types (1; video preview (channel)
2; audio monitoring (channel) 3; two-way dialogue
subType number
4; picture capture 5; video search 6; video
download 12; remote playback)
totalTime number Length of time (second)
startTime number Start Time(millisecond)
endTime number End Time(millisecond)
flowUsed string Traffic use information
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"name":"admin",
"id":null,
"type":null,
"count":null,
"startTime":1510285460000,
"endTime":1510285482000,
"vehiIdno":null,
"devIdno":"22222",
"companyName":"admin",
"plateType":null,
"vehiId":null,
"param1":1,
"param2":1,
"param3":"",
"param4":"",
"userId":null,
"ip":"127.0.0.1:61345",
"account":"admin",
"mainType":3,
"subType":1,
"totalTime":22,
"flowUsed":1.56253
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}
Resource Catalog Summary

Interface Desc And Error Code


Resource Catalog Summary
URL
https://www.mobilecam2.net/StandardApiAction_catalogSummaryApi.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
devIdno string Yes No Device No.
File Start Time
Greater than or equal to the
begintime string Yes No
source file start time, Less than or
equal to the source file end time.
File End Time
Greater than or equal to the
endtime string Yes No
source file start time, Less than or
equal to the source file end time.
Alarm source 0 equipment 1
alarmSourceType string No No
Platform
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_catalogSummaryApi.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&alarmSourceType=0,1&begintime=2017-11-10 12:00:00&endtime=2017-11-11
12:00:00&currentPage=1&pageRecords=10 (https://www.mobilecam2.net/StandardApiAction_catalogSummaryApi.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&alarmSourceType=0,1&begintime=2017-11-10
12:00:00&endtime=2017-11-11 12:00:00&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
vn string Equipment number
sr number Alarm source 0 equipment 1 Platform
fs number File Size(bytes)
ft number File Lengthsecond
sum number Number Of Documents
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0
}

Resource Catalog Detail

Interface Desc And Error Code


Resource Catalog Detail
URL
https://www.mobilecam2.net/StandardApiAction_catalogDetailApi.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
devIdno string Yes No Device No.
File Start Time
Greater than or equal to the source
begintime string Yes No
file start time, Less than or equal to
the source file end time.
File End Time
Greater than or equal to the source
endtime string Yes No
file start time, Less than or equal to
the source file end time.
Alarm source 0 equipment 1
alarmSourceType string No No
Platform
Media type 0: audio and video, 1:
mediatype string No No audio, 2: video, 3: video or audio
and video
The main storage type 0: or 1:
storetype string No No backup memory, main memory, 2:
memory backup
Stream type -1: master or sub
bittype string No No stream, 0: master stream, 1: sub
stream
Alarm identification 1, binary
corresponding decimal integer,
binary digit alarm
1 emergency alarm 2 overspeed
alarm 3 fatigue driving 4 early
warning 5GNSS module
malfunction
The 6GNSS module is not
connected to or is cut off by the
7GNSS antenna short circuit 8
terminal main power supply under
voltage
9 terminal main power supply
power off 10 terminal LCD or
arlamtype string No No
display failure 11TTS module fault
12 camera failure 19, driving
overtime on the same day, 20
overtime parking 21 in and out of
the area
22 out of route 23 of route of
import and export line / over 24
route deviation from alarm 25
vehicle VSS fault
26 vehicles oil volume abnormal 27
vehicles stolen 28 vehicles illegal
ignition 29 vehicles illegal
displacement 30 collision rollover
alarm
Alarm identification 2, binary
corresponding decimal integer,
binary digit alarm,
1 video signal loss alarm, 2 video
signal occlusion alarm, 3 memory
unit failure alarm
arlamtype2 string No No
.4 other video equipment fault
alarm 5 bus overcrowding alarm 6
alarm
abnormal driving behavior7 special
alarm video to store threshold
alarm
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_catalogDetailApi.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&devIdno=50000&bittype=&alarmSourceType=0,1&mediatype=&storetype=&arlamtype=&arlamtype2=&begintime=2017-11-10 12:00:00&endtime=2017-11-11 12:00:00&currentPage=1&pageRecords=10
(https://www.mobilecam2.net/StandardApiAction_catalogDetailApi.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&devIdno=50000&bittype=&alarmSourceType=0,1&mediatype=&storetype=&arlamtype=&arlamtype2=&begintime=2017-11-10 12:00:00&endtime=2017-11-11 12:00:00&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
vn string Equipment number
Device Channel
cn string
0 means channel 1, and 1 means channel 2.
sr number Alarm source 0 equipment 1 Platform
st number Start Time
et number End Time
pl number Storage location
Alarm identification 1, binary corresponding
decimal integer, binary digit alarm
1 emergency alarm 2 overspeed alarm 3 fatigue
driving 4 early warning 5GNSS module
malfunction
The 6GNSS module is not connected to or is cut
off by the 7GNSS antenna short circuit 8 terminal
main power supply under voltage
9 terminal main power supply power off 10
terminal LCD or display failure 11TTS module
a1 number
fault
12 camera failure 19, driving overtime on the
same day, 20 overtime parking 21 in and out of
the area
22 out of route 23 of route of import and export
line / over 24 route deviation from alarm 25
vehicle VSS fault
26 vehicles oil volume abnormal 27 vehicles
stolen 28 vehicles illegal ignition 29 vehicles
illegal displacement 30 collision rollover alarm
Alarm identification 2, binary corresponding
decimal integer, binary digit alarm,
1 video signal loss alarm, 2 video signal occlusion
alarm, 3 memory unit failure alarm
a2 number
.4 other video equipment fault alarm 5 bus
overcrowding alarm 6 alarm
abnormal driving behavior7 special alarm video to
store threshold alarm
Stream type -1: master or sub stream, 0: master
bt number
stream, 1: sub stream
Media type 0: audio and video, 1: audio, 2: video,
tp number
3: video or audio and video
ft number File Length
fs number File Size
sjd number Alarm Start Lng
swd number Alarm Start Lat
ejd number Alarm End Lng
ewd number Alarm End Lat
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"name":"admin",
"id":null,
"type":null,
"count":null,
"startTime":1510285460000,
"endTime":1510285482000,
"vehiIdno":null,
"devIdno":"22222",
"companyName":"admin",
"plateType":null,
"vehiId":null,
"param1":1,
"param2":1,
"param3":"",
"param4":"",
"userId":null,
"ip":"127.0.0.1:61345",
"account":"admin",
"mainType":3,
"subType":1,
"totalTime":22,
"flowUsed":1.56253
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}

Picture Query

Interface Desc And Error Code


Picture Query
URL
https://www.mobilecam2.net/StandardApiAction_queryPhoto.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
devIdno string No No Device No.,If blank, check all devices
File Start Time
begintime string Yes No Greater than or equal to the source file start time, Less than or
equal to the source file end time.
File End Time
endtime string Yes No Greater than or equal to the source file start time, Less than or
equal to the source file end time.
filetype number No No 0- common 1- alarm trigger
Alarm Type
Details See also:Alarm Type Desc
alarmType number No No
(https://www.mobilecam2.net/808gps/open/example/explain.html?
lang=en)
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_queryPhoto.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&filetype=2&alarmType=67&begintime=2017-11-10 12:00:00&endtime=2017-11-11
12:00:00&currentPage=1&pageRecords=10 (https://www.mobilecam2.net/StandardApiAction_queryPhoto.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&filetype=2&alarmType=67&begintime=2017-11-10
12:00:00&endtime=2017-11-11 12:00:00&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
devIdno string Equipment number
channel number 0 means channel 1, and 1 means channel 2.
fileType number 0- common 1- alarm trigger
filePath string File Path
fileSize number File Size(bytes)
svrId number Server Number
alarmType number Alarm Type
alarmParam number Alarm Param
updateTime string Update time
encode number Encoding format 0-JPEG 1-TIF
fileOffset number File offset position
fileTime number File Time(millisecond)
gpsstatus number GPS state information
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
reservChar1 string Remark
reservInt4 number User Id
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"devIdno":"50000",
"channel":1,
"fileType":0,
"filePath":"/gStorage/STOMEDIA/2017-11-02/20171102-105922.picfile",
"fileSize":608310,
"svrId":6,
"alarmType":67,
"alarmParam":0,
"updateTime":"2017-11-02",
"encode":0,
"fileOffset":0,
"fileTime":1509591562000,
"gpsstatus":null,
"reservChar1":"note content",
"reservInt4":1
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}

Audio And Aideo Auery

Interface Desc And Error Code


Audio And Aideo Auery
URL
https://www.mobilecam2.net/StandardApiAction_queryAudioOrVideo.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
devIdno string Yes No Device No.
File Start Time
begintime string Yes No Greater than or equal to the source file start time, Less than or
equal to the source file end time.
File End Time
endtime string Yes No Greater than or equal to the source file start time, Less than or
equal to the source file end time.
Alarm Type
Details See also:Alarm Type Desc
alarmType string No No
(https://www.mobilecam2.net/808gps/open/example/explain.html?
lang=en)
type number Yes No 1- audio and video 2- audio 3- video
filetype number No No File Type 0-ordinary 1-Alarm trigger
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_queryAudioOrVideo.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&type=1&filetype=2&alarmType=67&begintime=2017-11-10 12:00:00&endtime=2017-11-11
12:00:00&currentPage=1&pageRecords=10 (https://www.mobilecam2.net/StandardApiAction_queryAudioOrVideo.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&devIdno=50000&type=1&filetype=2&alarmType=67&begintime=2017-11-10 12:00:00&endtime=2017-11-11 12:00:00&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
devIdno string Equipment number
channel number 0 means channel 1, and 1 means channel 2.
fileType number 0- common 1- alarm trigger
filePath string File Path
fileSize number File Size(bytes)
svrId number Server Number
alarmType number Alarm Type
alarmParam number Alarm Param
updateTime string Update time
mediaType number Type 1- audio and video 2- audio 3- video
fileSTime number File Start Time(millisecond)
fileETime number File End Time(millisecond)
Video status 0- is videotaping 1- video to
status number
complete the abnormal end of 2-
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"devIdno":"50000",
"channel":3,
"fileType":1,
"filePath":"/gStorage/RECORD_FILE/2233/2017-11-09/2233_2-171109-103056-103156-20020300.grec",
"fileSize":9096588,
"svrId":6,
"alarmType":67,
"alarmParam":0,
"updateTime":"2017-11-09",
"mediaType":1,
"fileSTime":1510194656000,
"fileETime":1510194716000,
"status":1
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}

Rule related business

New Linkage Alarm

Interface Desc And Error Code


New Linkage Alarm
URL
https://www.mobilecam2.net/StandardApiAction_mergeRule.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
jsession string Yes No Jsession
Rule name
Chinese reference, format reference
name string Yes No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
begintime string Yes No File Start Time(12:30:30)
endtime string Yes No File End Time(14:30:30)
Alarm Type
Details See also:Alarm Type Desc
alarmType string Yes No
(https://www.mobilecam2.net/808gps/open/example/explain.html?
lang=en)
type number Yes No Fixed transmission 13
The parameter format is: "P1, P2, P3, P4, P5, p6"
P1 takes pictures 1, 0 is not; P2 allows photo taking to set up camera
channel (support 16 channels), for example: 1010000000000000
indicates opening channel 1, 3;
.P3 video is long (0-1800 seconds); P4 sets video channels
param string Yes No
(supporting 16 channels), for example, 1010000000000000 for
opening channel 1, 3;
P5 phone number, P6 mailbox;
example:
1,1010000000000000,10,1010000000000000,0000000000,xxx
Hint information
Chinese reference, format reference
text string No No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Request Example
https://www.mobilecam2.net/StandardApiAction_mergeRule.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&name=12345&type=13&text=text&param=1,11000000,0,00000000,111111000000,32132@@312&alarmType=67&begintime=12:00:00&endtime=14:00:00 (https://www.mobilecam2.net/StandardApiAction_mergeRule.action?
jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&name=12345&type=13&text=text&param=1,11000000,0,00000000,111111000000,32132@@312&alarmType=67&begintime=12:00:00&endtime=14:00:00)
Return Param Desc
Param Name Param Type Desc
rule_id number Rule ID
Correctly Returns Examples
{
"result": 0,
"rule_id":1
}

Inquiry Linkage Alarm

Interface Desc And Error Code


Inquiry Linkage Alarm
URL
https://www.mobilecam2.net/StandardApiAction_loadRules.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
Rule name
Chinese reference, format reference
name string No No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Alarm Type
Details See also:Alarm Type Desc
armType string No No
(https://www.mobilecam2.net/808gps/open/example/explain.html?
lang=en)
ruleType number Yes No Fixed transmission 13
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_loadRules.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&ruleType=13&name=12351&alarmType=67&currentPage=1&pageRecords=10
(https://www.mobilecam2.net/StandardApiAction_loadRules.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&ruleType=13&name=12351&alarmType=67&currentPage=1&pageRecords=10)
Return Param Desc
Param
Param Name Desc
Type
id number Rule ID
name string Rule name
type number Rule type 13- alarm linkage rules
beginTime number Start TimeUnit: sec.
endTime number End TimeUnit: sec.
armType number Alarm Type
text string Hint information
The parameter format is: "P1, P2, P3, P4, P5, p6"
P1 takes pictures 1, 0 is not; P2 allows photo taking to set up
camera channel (support 16 channels), for example:
1010000000000000 indicates opening channel 1, 3;
.P3 video is long (0-1800 seconds); P4 sets video channels
param string
(supporting 16 channels), for example, 1010000000000000 for
opening channel 1, 3;
P5 phone number, P6 mailbox;
example:
1,1010000000000000,10,1010000000000000,0000000000,xxx
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"id":"1",
"type":13,
"name":"12351",
"endTime":44430,
"text":"text",
"armType":67,
"param":"1,11000000,0,00000000,,",
"beginTime":37230
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}

Edit Linkage Alarm

Interface Desc And Error Code


Edit Linkage Alarm
URL
https://www.mobilecam2.net/StandardApiAction_editRule.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
jsession string Yes No Jsession
id number Yes No Rule ID
Rule name
Chinese reference, format reference
name string Yes No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
begintime string Yes No File Start Time(12:30:30)
endtime string Yes No File End Time(14:30:30)
The parameter format is: "P1, P2, P3, P4, P5, p6"
P1 takes pictures 1, 0 is not; P2 allows photo taking to set up camera
channel (support 16 channels), for example: 1010000000000000
indicates opening channel 1, 3;
.P3 video is long (0-1800 seconds); P4 sets video channels
param string Yes No
(supporting 16 channels), for example, 1010000000000000 for
opening channel 1, 3;
P5 phone number, P6 mailbox;
example:
1,1010000000000000,10,1010000000000000,0000000000,xxx
Hint information
Chinese reference, format reference
text string No No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Request Example
https://www.mobilecam2.net/StandardApiAction_editRule.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&id=1&name=12345&text=text&param=1,11000000,0,00000000,111111000000,32132@@312&begintime=12:00:00&endtime=14:00:00 (https://www.mobilecam2.net/StandardApiAction_editRule.action?jsession=649b7687-
6792-41a2-b9be-7806f2a0d3fa&id=1&name=12345&text=text&param=1,11000000,0,00000000,111111000000,32132@@312&begintime=12:00:00&endtime=14:00:00)
Return Param Desc
Param Name Param Type Desc
Correctly Returns Examples
{
"result": 0
}

Delete Linkage Alarm

Interface Desc And Error Code


Delete Linkage Alarm
URL
https://www.mobilecam2.net/StandardApiAction_delRule.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No Rule ID
Request Example
https://www.mobilecam2.net/StandardApiAction_delRule.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&id=1 (https://www.mobilecam2.net/StandardApiAction_delRule.action?jsession=649b7687-6792-41a2-b9be-
7806f2a0d3fa&id=1)
Return Param Desc
Param Name Param Type Desc
Correctly Returns Examples
{
"result": 0
}

Device Rule Equipment Association

Interface Desc And Error Code


Device Rule Equipment Association
URL
https://www.mobilecam2.net/StandardApiAction_devRulePermit.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
ruleId number Yes No Rule ID
The device number does not allocate
the rule (the Jian Yixian execution -
devIdno string Yes No query rule device Association - avoid
the abnormality of the repeating
distribution) multiple use, segmentation
Request Example
https://www.mobilecam2.net/StandardApiAction_devRulePermit.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&&ruleId=1 (https://www.mobilecam2.net/StandardApiAction_devRulePermit.action?
jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&devIdno=50000&&ruleId=1)
Return Param Desc
Param Name Param Type Desc
Correctly Returns Examples
{
"result": 0
}

Query Rule Device Association

Interface Desc And Error Code


Query Rule Device Association
URL
https://www.mobilecam2.net/StandardApiAction_loadDevRuleByRuleId.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
ruleId number Yes No Rule ID
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_loadDevRuleByRuleId.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&ruleId=1&currentPage=1&pageRecords=10
(https://www.mobilecam2.net/StandardApiAction_loadDevRuleByRuleId.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&ruleId=1&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
Regular device association ID (Jian Yixian
execution - query rule and device Association -
id number
get corresponding ID), multiple comma
segmentation
devIdno string Equipment number
ruleId number Rule ID
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"id":"1",
"devIdno":50000,
"ruleId":1
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}

Delete Regular Device Association

Interface Desc And Error Code


Delete Regular Device Association
URL
https://www.mobilecam2.net/StandardApiAction_delDevRule.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
Regular device association ID (Jian
Yixian execution - query rule and
id number No No
device Association - get corresponding
ID), multiple comma segmentation
devIdno string Yes No Device No.
ruleId number No No Rule ID
Request Example
https://www.mobilecam2.net/StandardApiAction_delDevRule.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&id=1&ruleId=1&devIdno=50000 (https://www.mobilecam2.net/StandardApiAction_delDevRule.action?
jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&id=1&ruleId=1&devIdno=50000)
Return Param Desc
Param Name Param Type Desc
Correctly Returns Examples
{
"result": 0
}

Query Rules Based On Rule Type

Interface Desc And Error Code


Query Rules Based On Rule Type
URL
https://www.mobilecam2.net/StandardApiAction_queryRuleList.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
ruleType number Yes No Rule Type
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_queryRuleList.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&ruleType=7&currentPage=1&pageRecords=10
(https://www.mobilecam2.net/StandardApiAction_queryRuleList.action?jsession=649b7687-6792-41a2-b9be-7806f2a0d3fa&ruleType=7&currentPage=1&pageRecords=10)
Return Param Desc
Param Name Param Type Desc
name string Rule name
id number Rule ID
type number Rule Type
utm number Update time
Extended parameter, when the rule type is 7, the
expand string
parameter is the offset width
cName string Company Name
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"id":1,
"name":"11",
"type":7,
"utm":1631524160000,
"expand":50,
"cName":"Company"
}
],
"pagination":
{
"totalPages": 1
"directQuery": false
"hasNextPage": false
"hasPreviousPage": false
"nextPage": 1
"previousPage": 1
"currentPage": 1
"pageRecords": 10
"totalRecords": 1
"startRecord": 0
"sortParams": null
"endRecord": 0
}
}

Control Business

Vehicle Control

Interface Desc And Error Code


Vehicle Control
Notice:
(1)The vehicle must be online to operate
URL
(1)GPS Reporting Interval

https://www.mobilecam2.net/StandardApiAction_vehicleControlGPSReport.action?
(2)Other Vehicle Control

https://www.mobilecam2.net/StandardApiAction_vehicleControlOthers.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

a.GPS Reporting Interval

Param Whether
Param Type Defaults Desc
Name Must
DevIDNO string Yes No Device No.
Interval Time
Time number Yes No Unit second, 0-3600, 0 means did not
upload the GPS.
b.Other Vehicle Control

Param Whether
Param Type Defaults Desc
Name Must
DevIDNO string Yes No Device No.
Control Type
1 means Disconnect oil;2 means oil
recovery;3 means turn off power;4
means turn on power;5 means restart
device;6 means restore factory
settings;7 means sleep;8 means
wake;9 means opening devices
recording(High two bytes are recording
channel, low two bytes are instruction,
such as channel 1 to send command
are Number(0<<16) + Number(9));10
means turn off the device video(High
two bytes are recording channel, low
two bytes are instruction);11 means
client started to channel polling (two
bytes to two bytes for the channel
number, low order) 12 means said the
client stops this channel polling (two
bytes to two bytes for the channel
number, low order). 13 indicates the
logging function of boot record (two
bytes higher than 0), and 0 means no
CtrlType number Yes No
log.14 means formatting the hard disk
(High means hard number, hard
number start with 0, low means
instruction, such as hard 1 to send
command are Number(0<<16) +
Number(14));15 means mileage
clear;16 indicates positive turn (high
two bytes as channel number, low two
byte as instruction). 17 represents
reversal flip (high two bytes for channel
number, low two bytes for
instruction).18 means clear alarm.19
stands for switching cameras. 20
indicates the beginning of recording
(high two bytes for the recording
channel number, low two bytes for
instructions).21 means stop recording
(two bytes high for recording channel
number, low two bytes for instruction).
22 indicates the end of WiFi download.
23 means equipment to take photos.
24 means device video
Usr string Yes No Account
Password
Pwd string Yes No
Md5 encrypted password is required.
Request Example
(1)GPS Reporting Interval

https://www.mobilecam2.net/StandardApiAction_vehicleControlGPSReport.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&DevIDNO=500000&Start=1&Type=1&Distance=0&Time=5
(https://www.mobilecam2.net/StandardApiAction_vehicleControlGPSReport.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&DevIDNO=500000&Start=1&Type=1&Distance=0&Time=5)
(2)Other Vehicle Control

https://www.mobilecam2.net/StandardApiAction_vehicleControlOthers.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&DevIDNO=500000&
CtrlType=1&Usr=admin&Pwd=21232f297a57a5a743894a0e4a801fc3 (https://www.mobilecam2.net/StandardApiAction_vehicleControlOthers.action?jsession=cf6b70a3-c82b-4392-8ab6-
bbddce336222&DevIDNO=500000&CtrlType=1&Usr=admin&Pwd=21232f297a57a5a743894a0e4a801fc3)
Return Param Desc
a.GPS Reporting Interval

Param Name Param Type Desc


Return Code
result number
0 means success, the other means failure.
b.Other Vehicle Control

Param Name Param Type Desc


Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}

TTS

Interface Desc And Error Code


TTS
Notice:
(1)The vehicle must be online to operate
URL
https://www.mobilecam2.net/StandardApiAction_vehicleTTS.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
DevIDNO string Yes No Device No.
TTS Text
Length can not exceed 240 characters.
Text string Yes No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
TTS Flag
If the parameter is null, the default value is 4.
Emergency: 1, terminal display: 4, terminal TTS broadcast read: 8,
advertising screen display: 16.
Flag number No 4
Case 1: Using "Emergency" and "Terminal Display", the value is:
1+4=5.
Case 2: Use "terminal TTS broadcast and read", "advertising screen
display", the value is: 4+8=12
Request Example
https://www.mobilecam2.net/StandardApiAction_vehicleTTS.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&DevIDNO=500000&Text=rrrrrvvv&Flag=4 (https://www.mobilecam2.net/StandardApiAction_vehicleTTS.action?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&DevIDNO=500000&Text=rrrrrvvv&Flag=4)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}

PTZ control

Interface Desc And Error Code


PTZ control
Notice:
(1)The vehicle must be online to operate
URL
https://www.mobilecam2.net/StandardApiAction_sendPTZControl.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
DevIDNO string Yes No Device No.
Device Channel(starting from 0)
Chn number Yes No 0 means channel 1, and 1 means
channel 2.
Control Type
0 left; 1 right; 2 upper; 3 lower; 4 left
upper; 5 right upper; 6 left lower; 7 right
lower; 8 focal length smaller; 9 focal
length larger;
Command number Yes No 10 aperture becomes smaller; 11
aperture becomes larger; 12 focus
after adjustment (multiples); 13 focus
forward tune; 14 lights; 16 wipers; 18
automatic cruise; 19 stop; 21 call; 22
settings; 23 delete
Speed, when moving in the direction,
Speed number Yes No
the speed is valid, range 0-255
When the preset bit is operated, the
Param is valid, indicating the ordinal
Param number Yes No
number of the preset bits (21 calls; 22
settings; and 23 deletion)
Request Example
https://www.mobilecam2.net/StandardApiAction_sendPTZControl.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&DevIDNO=500000&Chn=1&Command=1&Speed=1&Param=1
(https://www.mobilecam2.net/StandardApiAction_sendPTZControl.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&DevIDNO=500000&Chn=1&Command=1&Speed=1&Param=1)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}

Device Management

Get Device Info

Interface Desc And Error Code


Get Device Info
Only online devices can be checked
URL
https://www.mobilecam2.net/StandardApiAction_getLoadDeviceInfo.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
devIdno string Yes No Device No.
jsession string Yes No Jsession
Request Example
https://www.mobilecam2.net/StandardApiAction_getLoadDeviceInfo.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000 (https://www.mobilecam2.net/StandardApiAction_getLoadDeviceInfo.action?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=500000)
Return Param Desc
Param Name Param Type Desc
Version string Version Number
WLanActive number Wireless Module (1: active)
Wireless Module Type(0:2G, 1:3G-EVDO, 2:3G-
WLanType number WCDMA, 3:TD-WCDMA, 4:TD-WCDMA, 5:TD-
WCDMA )
WLanAddr string Wireless Network Address
WifiActive number wifi Module (1: active)
WifiAddr string Wifi Network Address
WifiAP string Wifi Name(cVersion > 0)
Number of channels (channel index 0,
ChanNum number
corresponding to CH1)
Recording status (bit corresponding to channel
Record number
index, 1 means valid)
Video loss status (bit corresponding to channel
VideoLost number
index, 1 means lost)
DiskNum number Number of hard drives
DiskInfo number Hard drive information
All capacity
AllVolume number
Unit: G, please divide by 100 before use.
Remaining capacity
LeftVolume number
Unit: G, divide by 100 before use.
Correctly Returns Examples
{
"result": 0,
"devstaus":
[{
"ChanNum":4,
"DevIDNO":"50000",
"DevType":1,
"DiskNum":1,
"IMEI":"123456",
"NetworkType":1,
"Record":15,
"Version":"V2.0.0.2 20110311",
"VideoLost":0,
"VideoTran":2,
"WLanActive":1,
"WLanAddr":"localhost",
"WLanType":2,
"WifiAP":"wkp-test-wifi",
"WifiActive":1,
"WifiAddr":"localhost",
"cVersion":1,
"gpsState":1,
"gpsTime":"2020-03-05 11:52:40",
"jingDu":113921451,
"weiDu":22570585,
"DiskInfo":{[
"AllVolume":16000,
"LeftVolume":"8800",
]}
}]
}

Add Device

Interface Desc And Error Code


Add Device
URL
https://www.mobilecam2.net/StandardApiAction_addDevice.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
devIdno string Yes No Device No.
The 1: standard (2011) standard 2: (Compass) 3: standard 1078
protocol string Yes No
(video)
Device type
devType string Yes No
7 for video device, 5 for GPS device
Company Name
If it doesn't exsist,it will be added.
companyName string Yes No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Master account: the existence of the company does not need an
account string No No
account, the company does not exist must account
Manufacturer type
0 unknown, 17 GM, 20 HD
factoryType number Yes No
21 FZE, 23 HB, 24 BSJ
26 HK ,28 YX,29 RM
channelNum number No No Number of Channels
Request Example
https://www.mobilecam2.net/StandardApiAction_addDevice.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&devIdno=9999&protocol=1&devType=1&factoryType=0&companyName=9999&account=9999&channelNum=2
(https://www.mobilecam2.net/StandardApiAction_addDevice.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&devIdno=9999&protocol=1&devType=1&factoryType=0&companyName=9999&account=9999&channelNum=2)
Return Param Desc
Param Name Param Type Desc

Correctly Returns Examples


{
"result": 0
}

Modification of Equipment

Interface Desc And Error Code


Modification of Equipment
URL
https://www.mobilecam2.net/StandardApiAction_editDevice.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
devIdno string Yes No Device No.
Device type
devType string Yes No
7 for video device, 5 for GPS device
The 1: standard (2011) standard 2:
protocol string No No
(Compass) 3: standard 1078 (video)
0:UNKOWN 1:G726_40KBPS
2:ADPCM 3:G726_MEDIA_40KBPS
4:G726_MEDIA_32KBPS
5:G726_MEDIA_24KBPS
6:G726_MEDIA_16KBPS
7:G726_32KBPS 8:G726_24KBPS
9:G726_16KBPS 10:G711A 11:G711U
audioCodec string No No
12:AAC_8KBPS 13:AAC_16KBPS
14:AMR 15:AAC_24KBPS
16:ADPCM_IMA 17:G711A_EX
18:G711U_EX 19:NELLY_8KBPS
20:PCM_8K 21:PCM_16K
22:AAC_32KBPS 23:AAC_40KBPS
24:AAC_44KBPS 25:AAC_48KBPS
Manufacturer type
0 unknown, 17 GM, 20 HD
factoryType number No No
21 FZE, 23 HB, 24 BSJ
26 HK ,28 YX,29 RM
channelNum number No No Number of Channels
Request Example
https://www.mobilecam2.net/StandardApiAction_editDevice.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&devIdno=9999&devType=1&factoryType=0&protocol=1&audioCodec=1&channelNum=2
(https://www.mobilecam2.net/StandardApiAction_editDevice.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&devIdno=9999&devType=1&factoryType=0&protocol=1&audioCodec=1&channelNum=2)
Return Param Desc
Param Name Param Type Desc

Correctly Returns Examples


{
"result": 0
}

Add Vehicle

Interface Desc And Error Code


Add Vehicle
URL
https://www.mobilecam2.net/StandardApiAction_addVehicle.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
Plate Number
Perform the modification operation if it exists
vehiIdno string Yes No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Device No.
devIdno string Yes No
If it doesn't exsist,it will be added.
Device type
devType string Yes No 7 indicates video equipment, 5 indicates GPS equipment, 11 PTT
terminals
Company Name
If it doesn't exsist,it will be added.
companyName string Yes No Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Master account: the existence of the company does not need an
account string No No
account, the company does not exist must account
License plate color: 1 blue, 2 yellow, 3 black, 4 white, 5 green, 93
plateType number No 2 yellow green, 224 yellow green FJ, 225 white green FJ, 91 yellow, 92
green, 94 gradient green, 0 for none, 9 for others
Manufacturer type
0 unknown, 17 GM, 20 HD
factoryType number Yes No
21 FZE, 23 HB, 24 BSJ
26 HK ,28 YX,29 RM
11 PTT terminal is valid, the default value is vehiIdno field.
Chinese reference, format reference
name string No No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
area string No No Area
Fleet
If it doesn't exsist,it will be added.
If it exists, the team is not supported to change its company!
fleetName string No No
Chinese reference, format reference
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
SIM Card
simCard string No No
If it doesn't exsist,it will be added.
Request Example
https://www.mobilecam2.net/StandardApiAction_addVehicle.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&vehiIdno=7777&devIdno=1111&devType=1&factoryType=0&companyName=9999&account=9999
(https://www.mobilecam2.net/StandardApiAction_addVehicle.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&vehiIdno=7777&devIdno=1111&devType=1&factoryType=0&companyName=9999&account=9999)
Return Param Desc
Param Name Param Type Desc

Correctly Returns Examples


{
"result": 0
}

Delete Device

Interface Desc And Error Code


Delete Device
URL
https://www.mobilecam2.net/StandardApiAction_deleteDevice.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
Device No. If the device has been used
devIdno string Yes No by vehicle,then it will fail to delete the
device.
Request Example
https://www.mobilecam2.net/StandardApiAction_deleteDevice.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&devIdno=7777 (https://www.mobilecam2.net/StandardApiAction_deleteDevice.action?jsession=d4683751-3b6b-49d8-
a779-9fa52ca70109&devIdno=7777)
Return Param Desc
Param Name Param Type Desc

Correctly Returns Examples


{
"result": 0
}

Delete Vehicle

Interface Desc And Error Code


Delete Vehicle
URL
https://www.mobilecam2.net/StandardApiAction_deleteVehicle.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
jsession string Yes No Jsession
Plate Number
Chinese reference, format reference
vehiIdno string Yes No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Delete the device of the vehicle or not. 1 means deleting the
delDevice string No No
device,otherwise don't delete.
Request Example
https://www.mobilecam2.net/StandardApiAction_deleteVehicle.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&vehiIdno=7777&delDevice=1 (https://www.mobilecam2.net/StandardApiAction_deleteVehicle.action?
jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&vehiIdno=7777&delDevice=1)
Return Param Desc
Param Name Param Type Desc

Correctly Returns Examples


{
"result": 0
}

Installation equipment

Interface Desc And Error Code


Installation equipment
URL
https://www.mobilecam2.net/StandardApiAction_installVehicle.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
jsession string Yes No Jsession
Plate Number
Chinese reference, format reference
vehiIdno string Yes No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
devIdno string Yes No Device No.
Device type(Change device type)
devType string No No 7 indicates video equipment, 5 indicates GPS equipment, 11 PTT
terminals
Request Example
https://www.mobilecam2.net/StandardApiAction_installVehicle.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&vehiIdno=7777&devIdno=1 (https://www.mobilecam2.net/StandardApiAction_installVehicle.action?
jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&vehiIdno=7777&devIdno=1)
Return Param Desc
Param Name Param Type Desc

Correctly Returns Examples


{
"result": 0
}

Uninstall device

Interface Desc And Error Code


Uninstall device
URL
https://www.mobilecam2.net/StandardApiAction_uninstallDevice.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
jsession string Yes No Jsession
Plate Number
Chinese reference, format reference
vehiIdno string Yes No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
devIdno string Yes No Device No.
Request Example
https://www.mobilecam2.net/StandardApiAction_uninstallDevice.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&vehiIdno=7777&devIdno=1 (https://www.mobilecam2.net/StandardApiAction_uninstallDevice.action?
jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&vehiIdno=7777&devIdno=1)
Return Param Desc
Param Name Param Type Desc

Correctly Returns Examples


{
"result": 0
}

Traffic Card Management

Get Flow Information

Interface Desc And Error Code


Get Flow Information
URL
https://www.mobilecam2.net/StandardApiAction_getFlowInfo.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
devIdno string Yes No Device No.
Request Example
https://www.mobilecam2.net/StandardApiAction_getFlowInfo.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&devIdno=50000 (https://www.mobilecam2.net/StandardApiAction_getFlowInfo.action?jsession=d4683751-3b6b-49d8-
a779-9fa52ca70109&devIdno=50000)
Return Param Desc
a. Traffic configuration information fconfig

Param Name Param Type Desc


id number id
Device No.
did string When the query a video on server, it means the
license plate number.
Monthly flow exceeding limit: 0 overlooked after
nflt number exceeding the limit, 1 disable media service after
exceeding the limit
nofc number Traffic statistics switch 0- closes and 1- opens
Daily traffic reminding 0- not to remind 1-
nodfr number
reminding
Monthly traffic reminder 0- does not remind 1-
nomfr number
reminding
fdl number Daily flow limit (MB)
fml number Monthly flow limit (MB)
ndr number A daily flow reminder (percentage), 20% or 20
nmr number Monthly flow reminder (percentage), 20% or 20
nmtd number Monthly knot day
b. Traffic use information fuse

Param Name Param Type Desc


id number id
Device No.
did string When the query a video on server, it means the
license plate number.
cdu number Day use flow
cdvu number Video usage traffic on the day
cdgu number GPS usage traffic on the day
cdou number Other business usage traffic on the day
cmu number Traffic flow in the month
cmvu number Video usage traffic in the month
cmgu number GPS traffic in the month
cmou number Other business use traffic in the month
uptm number Update time
Correctly Returns Examples
{
"result": 0,
"fconfig":
{
"id":"2",
"did":50000,
"nflt":1,
"nofc":1,
"nodfr":1,
"nomfr":1,
"fdl":500.0,
"fml":1200.0,
"ndr":50,
"nmr":30,
"nmtd":12
}
,
"fuse":
{
"id": 1
"did": 50000
"cdu": 0
"cdvu": 0
"cdgu": 0
"cdou": 0
"cmu": 0
"cmvu": 0
"cmgu": 0
"cmou": 0
}
}

Save Flow Configuration

Interface Desc And Error Code


Save Flow Configuration
URL
https://www.mobilecam2.net/StandardApiAction_saveFlowConfig.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
devIdno string Yes No Device No.
Traffic statistics switch 0- closes
monitorOpen number Yes No
and 1- opens
settlementDay number Yes No Monthly knot day
monthLimit number Yes No Monthly flow limit (MB)
Monthly traffic reminder 0- does
monthRemindOpen number Yes No
not remind 1- reminding
Monthly flow reminder
monthRemind number Yes No
(percentage), 20% or 20
dayLimit number Yes No Daily flow limit (MB)
Daily traffic reminding 0- not to
dayRemindOpen number Yes No
remind 1- reminding
A daily flow reminder
dayRemind number Yes No
(percentage), 20% or 20
Monthly flow exceeding limit: 0
overlooked after exceeding the
overLimitOpen number Yes No
limit, 1 disable media service
after exceeding the limit
Request Example
https://www.mobilecam2.net/StandardApiAction_saveFlowConfig.action?jsession=d4683751-3b6b-49d8-a779-
9fa52ca70109&devIdno=1&monitorOpen=1&settlementDay=20&monthLimit=1200&dayLimit=500&dayRemindOpen=1&dayRemind=50&monthRemindOpen=1&monthRemind=30&overLimitOpen=1
(https://www.mobilecam2.net/StandardApiAction_saveFlowConfig.action?jsession=d4683751-3b6b-49d8-a779-
9fa52ca70109&devIdno=1&monitorOpen=1&settlementDay=20&monthLimit=1200&dayLimit=500&dayRemindOpen=1&dayRemind=50&monthRemindOpen=1&monthRemind=30&overLimitOpen=1)
Return Param Desc
Param Name Param Type Desc
Correctly Returns Examples
{
"result": 0
}

Area Information

User Area Information

Interface Desc And Error Code


User Area Information
URL
https://www.mobilecam2.net/StandardApiAction_getUserMarkers.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)


(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
Request Example
https://www.mobilecam2.net/StandardApiAction_getUserMarkers.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109 (https://www.mobilecam2.net/StandardApiAction_getUserMarkers.action?jsession=d4683751-3b6b-49d8-a779-
9fa52ca70109)
Return Param Desc
Param Name Param Type Desc
i number Area ID
n string Area Name
cl string Color
Area Type 1:point 2:rectangle 3:polygon 4:Route
m number
10:circle
r number Radius
Area Sharing 0:Do not share 1:packet sharing
s number
2:all share
c number Create Area User ID
u number Company ID
mt number Map Type 0:Google 3:Baidu 4:Gaode
Geographic Type 2:Village 3:Factory
4:Construction Site 5:Warehouse 6:Pier
tp number
7:Logistics Park 8:Fee Station 9:Tracking Point
10:Work Area 11:Patrol Area 12:Other
j string Lng
w string Lat
Correctly Returns Examples
{
"result": 0,
"infos":[
{
"p": 0,
"t": 0,
"s": 0,
"c": 1,
"i": 110038,
"n": "test,"
"cl": "FF0000"
"a": ,
"m": 1,
"r": 111,
"j": 113.829487,
"w": 22.652397,
"mt": 4,
"tp": 7
}
]
}

Add Area

Interface Desc And Error Code


Add Area

Request Example:
var param = {}
param.name = xxx

$.ajax({
url: "/xxx/xxx.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222"
data: {json: JSON.stringify(param)},
cache:false,
dataType:'json',
success: function (json) {
if(json.result == 0){
alert('Success');
} else {
alert('Failure');
}
},error:function(XMLHttpRequest, textStatus, errorThrown){
}
});

URL
https://www.mobilecam2.net/MapMarkerAction_addMark.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
name string Yes No Marker Name
mapType number No No Map Type 0:Google 3:Baidu 4:Gaode
Area Type 1:point 2:rectangle
markerType number Yes No
3:polygon 4:Route 10:circle
Radius(m), Area Type( 10; circle), pass
radius number No No
parameter, other pass 0
Area Sharing 0:Do not share 1:packet
share number No No
sharing 2:all share
2:Village 3:Factory 4:Construction Site
5:Warehouse 6:Pier 7:Logistics Park
type number No No
8:Fee Station 9:Tracking Point
10:Work Area 11:Patrol Area 12:Other
Map Lng
jingDu string Yes No It may be more than one, in order to ','
separation.
Map Lat
weiDu string Yes No It may be more than one, in order to ','
separation.
Color
color string No No
FF0000
remark string No No Remark
Request Example
https://www.mobilecam2.net/MapMarkerAction_addMark.action?jsession=d4683751-3b6b-49d8-a779-
9fa52ca70109&name=mark1&mapType=3&markerType=1&radius=0&share=0&type=2&jingDu=117.145786&weiDu=39.017903&color=FF0000 (https://www.mobilecam2.net/MapMarkerAction_addMark.action?jsession=d4683751-3b6b-49d8-
a779-9fa52ca70109&name=mark1&mapType=3&markerType=1&radius=0&share=0&type=2&jingDu=117.145786&weiDu=39.017903&color=FF0000)
Return Param Desc
Param Name Param Type Desc
markId number Area ID
Correctly Returns Examples
{
"result": 0
"markId": 1000062
}

Modify Area

Interface Desc And Error Code


Modify Area

Request Example:
var param = {}
param.name = xxx

$.ajax({
url: "/xxx/xxx.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222"
data: {json: JSON.stringify(param)},
cache:false,
dataType:'json',
success: function (json) {
if(json.result == 0){
alert('Success');
} else {
alert('Failure');
}
},error:function(XMLHttpRequest, textStatus, errorThrown){
}
});

URL
https://www.mobilecam2.net/MapMarkerAction_editMark.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No Area ID
name string Yes No Marker Name
mapType number No No Map Type 0:Google 3:Baidu 4:Gaode
Area Type 1:point 2:rectangle
markerType number Yes No
3:polygon 4:Route 10:circle
Radius(m), Area Type( 10; circle), pass
radius number No No
parameter, other pass 0
Area Sharing 0:Do not share 1:packet
share number No No
sharing 2:all share
2:Village 3:Factory 4:Construction Site
5:Warehouse 6:Pier 7:Logistics Park
type number No No
8:Fee Station 9:Tracking Point
10:Work Area 11:Patrol Area 12:Other
Map Lng
jingDu string Yes No It may be more than one, in order to ','
separation.
Map Lat
weiDu string Yes No It may be more than one, in order to ','
separation.
Color
color string No No
FF0000
remark string No No Remark
Request Example
https://www.mobilecam2.net/MapMarkerAction_editMark.action?jsession=d4683751-3b6b-49d8-a779-
9fa52ca70109&id=1&name=mark1&mapType=3&markerType=1&radius=0&share=0&type=2&jingDu=117.145786&weiDu=39.017903&color=FF0000 (https://www.mobilecam2.net/MapMarkerAction_editMark.action?jsession=d4683751-3b6b-
49d8-a779-9fa52ca70109&id=1&name=mark1&mapType=3&markerType=1&radius=0&share=0&type=2&jingDu=117.145786&weiDu=39.017903&color=FF0000)
Return Param Desc
Param Name Param Type Desc
Correctly Returns Examples
{
"result": 0
}

View Area

Interface Desc And Error Code


View Area
URL
https://www.mobilecam2.net/MapMarkerAction_findMark.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param
See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No Area ID
Request Example
https://www.mobilecam2.net/MapMarkerAction_findMark.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&id=1 (https://www.mobilecam2.net/MapMarkerAction_findMark.action?jsession=d4683751-3b6b-49d8-a779-
9fa52ca70109&id=1)
Return Param Desc
Param Name Param Type Desc
i number Area ID
n string Area Name
cl string Color
Area Type 1:point 2:rectangle 3:polygon 4:Route
m number
10:circle
r number Radius
Area Sharing 0:Do not share 1:packet sharing
s number
2:all share
c number Create Area User ID
u number Company ID
mt number Map Type 0:Google 3:Baidu 4:Gaode
Geographic Type 2:Village 3:Factory
4:Construction Site 5:Warehouse 6:Pier
tp number
7:Logistics Park 8:Fee Station 9:Tracking Point
10:Work Area 11:Patrol Area 12:Other
j string Lng
w string Lat
Correctly Returns Examples
{
"result": 0,
"marker":
{
"p": 0,
"t": 0,
"s": 0,
"c": 1,
"i": 110038,
"n": "test,"
"cl": "FF0000"
"a": ,
"m": 1,
"r": 111,
"j": 113.829487,
"w": 22.652397,
"mt": 4,
"tp": 7
}
}

Delete Area

Interface Desc And Error Code


Delete Area
URL
https://www.mobilecam2.net/MapMarkerAction_deleteMark.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No Area ID
Request Example
https://www.mobilecam2.net/MapMarkerAction_deleteMark.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&id=1 (https://www.mobilecam2.net/MapMarkerAction_deleteMark.action?jsession=d4683751-3b6b-49d8-a779-
9fa52ca70109&id=1)
Return Param Desc
Param Name Param Type Desc
Correctly Returns Examples
{
"result": 0
}

Organization Management

New Organization

Interface Desc And Error Code


New Organization
URL
https://www.mobilecam2.net/StandardApiAction_mergeCompany.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
name string Yes No Organization Name
New
account string No Organization master account
Required
New
parentId number No Superior organization id (default 0)
Required
Account password (MD5
encryptPwd string No No
encryption)
Clear text password [Priority use
encryptPwd, if both encryptPwd
password string No No
and password are empty, default
000000]
Organization id (can only modify
the company name [recommended
parameter transfer method and
id number No No
new agreement, if you can not
query according to id, perform new
operations]
Whether to enable the validity
isEabnleValidity number No No
period 0 not enabled 1 enabled
Validity period yyyy-MM-dd
validity string No No
HH:mm:ss
organizationCode string No No Road transport permit
Request Example
https://www.mobilecam2.net/StandardApiAction_mergeCompany.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&name=test&parentId=0&account=test&password=000000
(https://www.mobilecam2.net/StandardApiAction_mergeCompany.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&name=test&parentId=0&account=test&password=000000)
Return Param Desc
Param Name Param Type Desc
result number 0
id number Organization id
Correctly Returns Examples
{
"result": 0
}

Find Organization

Interface Desc And Error Code


Find Organization
URL
https://www.mobilecam2.net/StandardApiAction_findCompany.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number No No Organization id
name string No No Organization Name
Request Example
https://www.mobilecam2.net/StandardApiAction_findCompany.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&id=1 (https://www.mobilecam2.net/StandardApiAction_findCompany.action?jsession=d4683751-3b6b-49d8-a779-
9fa52ca70109&id=1)
Return Param Desc
Param Name Param Type Desc
name string Organization Name
id number Organization id
Organization type: 1-Company, 12-Department,
level number
15-Administrative Region
accountID number Organization master account Id
parentId number Superior organization id (default 0)
Correctly Returns Examples
{
"result": 0,
"company":
{
"id":2,
"name":"test",
"level":1,
"parentId":0,
"companyId":0
}
}

Delete Organization

Interface Desc And Error Code


Delete Organization
URL
https://www.mobilecam2.net/StandardApiAction_deleteCompany.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No Organization id
name string No No Organization Name
Request Example
https://www.mobilecam2.net/StandardApiAction_deleteCompany.action?jsession=83751-3b6b-49d8-a779-9fa52ca70109&id=1 (https://www.mobilecam2.net/StandardApiAction_deleteCompany.action?jsession=83751-3b6b-49d8-a779-
9fa52ca70109&id=1)
Return Param Desc
Param Name Param Type Desc
result number 0
Correctly Returns Examples
{
"result": 0
}

Role Management

New Role

Interface Desc And Error Code


New Role
URL
https://www.mobilecam2.net/StandardApiAction_mergeUserRole.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Param Whether


Defaults Desc
Name Type Must
jsession string Yes No Jsession
name string Yes No Role Name
Role PermissionsPermission Type
(https://www.mobilecam2.net/808gps/open/example/permissionExplain.html?
privilege string Yes No
lang=en)
It may be more than one, in order to ',' separation.
cid number Yes No Organization Id
Role id (can only modify the role permissions, can not change the company,
id number No No if the id does not exist, then take the new operation. It is recommended to
read the corresponding parameters in the transmission]
Request Example
https://www.mobilecam2.net/StandardApiAction_mergeUserRole.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&name=role1&cid=1&privilege=611,613 (https://www.mobilecam2.net/StandardApiAction_mergeUserRole.action?
jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&name=role1&cid=1&privilege=611,613)
Return Param Desc
Param Name Param Type Desc
result number 0
id number Role Id
Correctly Returns Examples
{
"result": 0
}

Find Role

Interface Desc And Error Code


Find Role
URL
https://www.mobilecam2.net/StandardApiAction_findUserRole.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
name string No No Role Name
id number No No Role Id
Request Example
https://www.mobilecam2.net/StandardApiAction_findUserRole.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&id=1 (https://www.mobilecam2.net/StandardApiAction_findUserRole.action?jsession=d4683751-3b6b-49d8-a779-
9fa52ca70109&id=1)
Return Param Desc
Param Name Param Type Desc
name string Role Name
id number Role Id
privilege string Role Permissions
The organization to which the role belongs,
company object
parsing the reference company query
Correctly Returns Examples
{
"result": 0,
"role":
[{
"id":1,
"name":"role1",
"privilege":"613,24",
"company":{
"id":2,
"name":"test",
"level":1,
"parentId":0,
"companyId":0,
}
}]
}
Delete Role

Interface Desc And Error Code


Delete Role
URL
https://www.mobilecam2.net/StandardApiAction_deleteUserRole.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No Role Id
Request Example
https://www.mobilecam2.net/StandardApiAction_deleteUserRole.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&id=1 (https://www.mobilecam2.net/StandardApiAction_deleteUserRole.action?jsession=d4683751-3b6b-49d8-
a779-9fa52ca70109&id=1)
Return Param Desc
Param Name Param Type Desc
result number 0
Correctly Returns Examples
{
"result": 0
}

User Management

New User

Interface Desc And Error Code


New User
URL
https://www.mobilecam2.net/StandardApiAction_mergeUserAccount.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
account string Yes No User Account
Role permission Id (multiple use
roleId string Yes No
English, split)
cid number Yes No Organization Id
Account password (MD5
encryptPwd number No No
encryption)
Clear text password [Priority use
encryptPwd, if both encryptPwd and
password number No No
password are empty, default
000000]
name string No No User name (default account name)
status number No No undefined
Whether to prohibit the modification
modifyPassword number No No of the password 0-No 1-Yes;
Default 0
Single sign-on: 0-no 1-yes; default
singleLogin number No No
0
User level: 0-4 [corresponding to I-
level number No No
V]; default 0
Account validity period [Format:
validity string No No
2019-04-02]
Used when modifying user
information. If the id does not query
id string No No the user, add a new operation.
[Recommended to read first, then
modify]
Request Example
https://www.mobilecam2.net/StandardApiAction_mergeUserAccount.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&account=test1&cid=1&roleId=1&password=000000
(https://www.mobilecam2.net/StandardApiAction_mergeUserAccount.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&account=test1&cid=1&roleId=1&password=000000)
Return Param Desc
Param Name Param Type Desc
result number 0
id number User Id
Correctly Returns Examples
{
"result": 0
}

Find User

Interface Desc And Error Code


Find User
URL
https://www.mobilecam2.net/StandardApiAction_findUserAccount.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
name string No No User name (default account name)
id number No No User Id
Request Example
https://www.mobilecam2.net/StandardApiAction_findUserAccount.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&id=1 (https://www.mobilecam2.net/StandardApiAction_findUserAccount.action?jsession=d4683751-3b6b-49d8-
a779-9fa52ca70109&id=1)
Return Param Desc
Param Name Param Type Desc
user object User Info
user.id number User Id
user.act number User Account
user.nm number User name (default account name)
user.isSingleLogin number Single sign-on: 0-no 1-yes; default 0
user.stu number undefined
Account validity period [Format: 2019-04-02]
user.vld number
(millisecond)
user.at number Whether the main account is 0-no, 1- is
Whether to prohibit the modification of the
user.cps number
password 0-No 1-Yes; Default 0
user.lv number User level: 0-4 [corresponding to I-V]; default 0
User Type: 0-Normal User 1-Scheduled User;
user.dis number
Default 0
user.rid string Role Id
Role Name,Multiple corresponding to the role id
user.rnm number
order
user.pid number Organization Id
user.pnm number Organization Name
That is, the current jsession login user belongs to
company object the organization, parsing the reference company
query
Correctly Returns Examples
{
"result": 0,
"user":
{
"id":1,
"lv":0,
"dis":0
"vld":null,
"isSingleLogin":0,
"cps":0
"rid":1,
"rnm":"role",
"pid":1
"pnm":"company1",
"act":"diao4",
"nm":"diaodu4"
"at":0,
"stu":1,
"dis":0
}
}

Delete User

Interface Desc And Error Code


Delete User
URL
https://www.mobilecam2.net/StandardApiAction_deleteUserAccount.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No User Id
Request Example
https://www.mobilecam2.net/StandardApiAction_deleteUserAccount.action?jsession=d4683751-3b6b-49d8-a779-9fa52ca70109&id=1 (https://www.mobilecam2.net/StandardApiAction_deleteUserAccount.action?jsession=d4683751-3b6b-
49d8-a779-9fa52ca70109&id=1)
Return Param Desc
Param Name Param Type Desc
result number 0
Correctly Returns Examples
{
"result": 0
}

Driver Management

Inquire whether the driver of the vehicle has changed according to the equipment number

Interface Desc And Error Code


Inquire whether the driver of the vehicle has changed according to the equipment number
URL
https://www.mobilecam2.net/StandardApiAction_findDriverInfoByDeviceId.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
devIdno string Yes No Device No.
Date of most recent driver list
lastUpdateTime date Yes No
download
Request Example
https://www.mobilecam2.net/StandardApiAction_findDriverInfoByDeviceId.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=s1234b&lastUpdateTime=2018-11-29 00:00:00
(https://www.mobilecam2.net/StandardApiAction_findDriverInfoByDeviceId.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=s1234b&lastUpdateTime=2018-11-29 00:00:00)
Return Param Desc
Param Name Param Type Desc
0: indicates that update is required; 1: no update
needUpdate object
is required.
Correctly Returns Examples
{
"result":"0",
"needUpdate":"0"
}

(1)URL

https://www.mobilecam2.net/StandardApiAction_findDriverInfoByDeviceId.action?jsession=ecf4731bf46146d0ab5f8bb4e79c9eec&devIdno=s1234b&lastUpdateTime=2018-04-27 09:54:42
(https://www.mobilecam2.net/StandardApiAction_findDriverInfoByDeviceId.action?jsession=ecf4731bf46146d0ab5f8bb4e79c9eec&devIdno=s1234b&lastUpdateTime=2018-04-27 09:54:42)

(1)Param Desc

Whether
Param Name Param Type Defaults Desc
Must
After user login returning jsession
jsession string Yes No If it is empty, it is determined that the
account and password.
Device No.
devIdno string Yes No If the devIdno is empty, it is judged
that the vehiIdno.
Date of most recent driver list
lastUpdateTime string Yes No
download

Query the driver of the vehicle according to the equipment number

Interface Desc And Error Code


Query the driver of the vehicle according to the equipment number
URL
https://www.mobilecam2.net/StandardApiAction_findVehicleInfoByDeviceId.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
devIdno string Yes No Device No.
Request Example
https://www.mobilecam2.net/StandardApiAction_findVehicleInfoByDeviceId.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=s1234b (https://www.mobilecam2.net/StandardApiAction_findVehicleInfoByDeviceId.action?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&devIdno=s1234b)
Return Param Desc
Param Name Param Type Desc
id number Driver id
jn string Driver's Work Number
dn string person name
sx number Gender 1 male 2 female
dt string Contact
cn string ID number
bt date date of birth
ln string Driver's license number
pid number Company ID
rd date Driver's license date
vd date Driver's License Expiration Date
pst number Job ID 1 driver 2 flight attendant
crd number IC card ID
rmk string Remark
updateTime date Update time
licenseSrc string document photo
qltSrc string Qualification photo
transportStatus number Transport status 0 not transported 1 transported
qltNum string Driver's Work Number
startTime date Start Date
reminderDays number Days Ahead Of Schedule
licenseType string Type Of Driver's License
companyId number Company ID
companyStr string Company Name
birthplace string Birthplace
area string Area
nuclearAuthority string NuclearAuthority
address string address
drivingTime numer Total Driving Time(h)
drivingScore numer Grade
drivingLiCheng number Cumulative Driving Mileage(Km)
idNumberImgUrl string undefined
rdt string Transport certificate
rdtUrl string Transport certificate Photo
alipayUrl string Ali Pay QR Code
wechatpayUrl string Wechat Pay QR Code
vehiIDNO string Plate Number
licenseNumImgUrl string Driver license photo
facePhotoUrl string face library
Information complete status 0 not complete 1
perfectStatus string
complete
isMain boolean Is main driver?
Correctly Returns Examples
{
"result":0,
"drivers":[
{
"address":"",
"id":3,
"startTime":1262361600000,
"licenseType":"C1",
"companyId":4,
"area":"",
"updateTime":1596765277000,
"vehiIDNO":"S12345",
"nuclearAuthority":"",
"qltNum":null,
"rd":1357056000000,
"jn":"123123123",
"drivingTime":null,
"bt":1596384000000,
"facePhotoUrl":"/upload/whdriver/175252151680100_face.png",
"birthplace":"",
"vd":1546358400000,
"reminderDays":123,
"ln":"242019197702208205",
"etQltSrc":null,
"qltSrc":null,
"cn":"12312312312312",
"sx":1,
"drivingScore":null,
"licenseSrc":"/upload/whdriver/175254206338500_face.jpg",
"dn":"12312321",
"dt":"123123123",
"idNumberImgUrl":"/upload/cardNumberImgUrl/237987344706000_cardNumberImgUrl.jpg",
"drivingLiCheng":null,
"licenseNumImgUrl":"/upload/licenseNumUrl/175249118379800_licenseNumUrl.png",
"companyStr":"xxx",
"rdt":"",
"pst":1,
"pid":4,
"transportStatus":0,
"rmk":null,
"rdtUrl":"/upload/jobNumImgUrl/175245778401400_jobNumImgUrl.png",
"perfectStatus":0,
"etQltNum":null,
"alipayUrl":null,
"wechatpayUrl":null,
"crd":null,
"isMain":false
},
{
"address":"",
"id":4,
"startTime":1278864000000,
"licenseType":"C1",
"companyId":4,
"area":"",
"updateTime":1596421396000,
"vehiIDNO":"S12345",
"nuclearAuthority":"",
"qltNum":null,
"rd":1278864000000,
"jn":"driver C",
"drivingTime":null,
"bt":1596384000000,
"facePhotoUrl":"",
"birthplace":"",
"vd":1468252800000,
"reminderDays":1,
"ln":"258241197007142515",
"etQltSrc":null,
"qltSrc":null,
"cn":"C",
"sx":1,
"drivingScore":null,
"licenseSrc":null,
"dn":"driver C",
"dt":"C",
"idNumberImgUrl":null,
"drivingLiCheng":null,
"licenseNumImgUrl":"/upload/licenseNumUrl/238087260796700_licenseNumUrl.jpg",
"companyStr":"xxx",
"rdt":"",
"pst":1,
"pid":4,
"transportStatus":0,
"rmk":null,
"rdtUrl":null,
"perfectStatus":0,
"etQltNum":null,
"alipayUrl":"/upload/alipay/240350059311800_alipay.png",
"wechatpayUrl":"/upload/wechatpay/240352520592400_wechatpay.png",
"crd":null,
"isMain":false
}
]
}

(1)URL

https://www.mobilecam2.net/StandardApiAction_findVehicleInfoByDeviceId.action?jsession=ecf4731bf46146d0ab5f8bb4e79c9eec&devIdno=s1234b (https://www.mobilecam2.net/StandardApiAction_findVehicleInfoByDeviceId.action?
jsession=ecf4731bf46146d0ab5f8bb4e79c9eec&devIdno=s1234b)
(1)Param Desc

Param Whether
Param Type Defaults Desc
Name Must
After user login returning jsession
jsession string Yes No If it is empty, it is determined that the
account and password.
Device No.
devIdno string Yes No If the devIdno is empty, it is judged that
the vehiIdno.

Query driver information based on qualification certificate code/driver's license number

Interface Desc And Error Code


Query driver information based on qualification certificate code/driver's license number
URL
https://www.mobilecam2.net/StandardApiAction_findVehicleInfoByDeviceJn.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
1 Query according to the license code
type string Yes No 2 Query according to the driver's
license number
Driver's Work Number/Driver's license
content string Yes No
number
Request Example
https://www.mobilecam2.net/StandardApiAction_findVehicleInfoByDeviceJn.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&type=2&content=212121
(https://www.mobilecam2.net/StandardApiAction_findVehicleInfoByDeviceJn.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&type=2&content=212121)
Return Param Desc
Param Name Param Type Desc
id number Driver id
jn string Driver's Work Number
dn string person name
sx number Gender 1 male 2 female
dt string Contact
cn string ID number
bt date date of birth
ln string Driver's license number
pid number Company ID
rd date Driver's license date
vd date Driver's License Expiration Date
pst number Job ID 1 driver 2 flight attendant
crd number IC card ID
rmk string Remark
updateTime date Update time
licenseSrc string document photo
qltSrc string Qualification photo
transportStatus number Transport status 0 not transported 1 transported
qltNum string Driver's Work Number
startTime date Start Date
reminderDays number Days Ahead Of Schedule
licenseType string Type Of Driver's License
companyId number Company ID
companyStr string Company Name
birthplace string Birthplace
area string Area
nuclearAuthority string NuclearAuthority
address string address
drivingTime numer Total Driving Time(h)
drivingScore numer Grade
drivingLiCheng number Cumulative Driving Mileage(Km)
idNumberImgUrl string undefined
rdt string Transport certificate
rdtUrl string Transport certificate Photo
alipayUrl string Ali Pay QR Code
wechatpayUrl string Wechat Pay QR Code
vehiIDNO string Plate Number
licenseNumImgUrl string Driver license photo
facePhotoUrl string face library
Information complete status 0 not complete 1
perfectStatus string
complete
isMain boolean Is main driver?
Correctly Returns Examples
{
"result":0,
"drivers":[
{
"address":"",
"id":3,
"startTime":1262361600000,
"licenseType":"C1",
"companyId":4,
"area":"",
"updateTime":1596765277000,
"vehiIDNO":"S12345",
"nuclearAuthority":"",
"qltNum":null,
"rd":1357056000000,
"jn":"123123123",
"drivingTime":null,
"bt":1596384000000,
"facePhotoUrl":"/upload/whdriver/175252151680100_face.png",
"birthplace":"",
"vd":1546358400000,
"reminderDays":123,
"ln":"242019197702208205",
"etQltSrc":null,
"qltSrc":null,
"cn":"12312312312312",
"sx":1,
"drivingScore":null,
"licenseSrc":"/upload/whdriver/175254206338500_face.jpg",
"dn":"12312321",
"dt":"123123123",
"idNumberImgUrl":"/upload/cardNumberImgUrl/237987344706000_cardNumberImgUrl.jpg",
"drivingLiCheng":null,
"licenseNumImgUrl":"/upload/licenseNumUrl/175249118379800_licenseNumUrl.png",
"companyStr":"xxx",
"rdt":"",
"pst":1,
"pid":4,
"transportStatus":0,
"rmk":null,
"rdtUrl":"/upload/jobNumImgUrl/175245778401400_jobNumImgUrl.png",
"perfectStatus":0,
"etQltNum":null,
"alipayUrl":null,
"wechatpayUrl":null,
"crd":null,
"isMain":false
},
{
"address":"",
"id":4,
"startTime":1278864000000,
"licenseType":"C1",
"companyId":4,
"area":"",
"updateTime":1596421396000,
"vehiIDNO":"S12345",
"nuclearAuthority":"",
"qltNum":null,
"rd":1278864000000,
"jn":"driver C",
"drivingTime":null,
"bt":1596384000000,
"facePhotoUrl":"",
"birthplace":"",
"vd":1468252800000,
"reminderDays":1,
"ln":"258241197007142515",
"etQltSrc":null,
"qltSrc":null,
"cn":"C",
"sx":1,
"drivingScore":null,
"licenseSrc":null,
"dn":"driver C",
"dt":"C",
"idNumberImgUrl":null,
"drivingLiCheng":null,
"licenseNumImgUrl":"/upload/licenseNumUrl/238087260796700_licenseNumUrl.jpg",
"companyStr":"xxx",
"rdt":"",
"pst":1,
"pid":4,
"transportStatus":0,
"rmk":null,
"rdtUrl":null,
"perfectStatus":0,
"etQltNum":null,
"alipayUrl":"/upload/alipay/240350059311800_alipay.png",
"wechatpayUrl":"/upload/wechatpay/240352520592400_wechatpay.png",
"crd":null,
"isMain":false
}
]
}

Query Details Of Driver's Punch Card Record

Interface Desc And Error Code


Query Details Of Driver's Punch Card Record
URL
https://www.mobilecam2.net/StandardApiAction_queryPunchCardRecode.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param
See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
Plate Number
vehiIdno string No No It may be more than one, in order to ','
separation.
Driver id
dids string No No It may be more than one, in order to ','
separation.
begintime string Yes No Start Time
endtime string Yes No undefined
Map Coordinates Conversion
1 shows Coordinates converted to
toMap string No No Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu
map Coordinates
Analysis of geographical position
1 provides resolution geographic
geoaddress string No No location services
If you don't pass it, don't analysis the
location
Current Page
currentPage string No No
If empty, no paging.
Page Record
pageRecords string No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_queryPunchCardRecode.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=1111111&begintime=2020-05-18 00:00:00&endtime=2020-06-17
23:59:59&toMap=2&currentPage=1&pageRecords=10 (https://www.mobilecam2.net/StandardApiAction_queryPunchCardRecode.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=1111111&begintime=2020-05-18
00:00:00&endtime=2020-06-17 23:59:59&toMap=2&currentPage=1&pageRecords=10)
Return Param Desc
Param
Param Name Desc
Type
guid string Alarm Unique Number
vid number Vehicle ID
vehi string Plate Number
cnm string Company Name
dev string Device No.
stm number Alarm Start Time (UTC) in seconds
etm number Alarm End Time (UTC) in seconds
atp number Alarm Type
info number Alarm Info
Alarm Param 1
p1 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Alarm Param 2
p2 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Alarm Param 3
p3 string Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Alarm Param 4
p4 number Details See also:Alarm Param Desc
(https://www.mobilecam2.net/808gps/open/example/explain.html?lang=en)
Punch information, use';' to split. Driver name|Issuing authority|ID
desc string
number|Qualification code
ddinfo string Punch driver name
issu string Card issuing authority
idCard string Punch driver ID number
cert string Code for the driver's qualification card
Alarm Start Status 1
Details See also:Alarm Status Desc
ss1 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Alarm Start Status 2
Details See also:Alarm Status Desc
ss2 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Alarm End Status 1
Details See also:Alarm Status Desc
es1 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Alarm End Status 2
Details See also:Alarm Status Desc
es2 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
slng number Alarm Start Lng
slat number Alarm Start Lat
elng number Alarm End Lng
elat number Alarm End Lat
Alarm Start Map Lat
smlat string
Get the lat through the conversion
Alarm End Map Lat
emlat string
Get the lat through the conversion
Alarm start location
sps string The geographic location after analysis or (alarm start map longitude, alarm
start map latitude)
Alarm end location
eps string The geographic location after the analysis (or the end of the map, the
longitude of the alarm, the latitude of the end of the map)
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
vehicleList array Vehicle list
Correctly Returns Examples
{
"result": 0,
"pagination": {
"sortParams": null,
"primaryKey": "id",
"hasPreviousPage": false,
"previousPage": 1,
"startRecord": 0,
"currentPage": 1,
"totalPages": 7,
"endRecord": 2,
"hasNextPage": true,
"nextPage": 2,
"directQuery": false,
"pageRecords": 2,
"totalRecords": 14
},
"infos": [
{
"issu": "",
"ddinfo": "",
"cert": "111111111111111111",
"idCard": "",
"vehi": "test1111",
"dev": "11111111",
"desc": "",
"info": 0,
"p3": 0,
"p2": 2,
"p1": 6,
"p4": 51,
"vid": 12530,
"cnm": "test",
"elng": null,
"elat": null,
"slat": 30187469,
"slng": 120204966,
"ss1": -2147469949,
"ss2": 17305600,
"es1": null,
"es2": null,
"guid": "B0ADB4B9C1F94C4E84EF7AE9D9C7AB20",
"emlat": null,
"smlat": "30.187469,120.204966",
"stm": 1591790591000,
"etm": null,
"atp": 442,
"eps": "",
"sps": "30.187469,120.204966"
}]
}

Query Identify Alarm

Interface Desc And Error Code


Query Identify Alarm
URL
https://www.mobilecam2.net/StandardApiAction_queryIdentifyAlarm.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
Plate Number
vehiIdno string No No It may be more than one, in order to ','
separation.
Driver id
dids string No No It may be more than one, in order to ','
separation.
begintime string Yes No Start Time
endtime string Yes No undefined
Map Coordinates Conversion
1 shows Coordinates converted to
toMap string No No Google Maps Coordinates, 2 shows
the Coordinates converted to Baidu
map Coordinates
Analysis of geographical position
1 provides resolution geographic
geoaddress string No No location services
If you don't pass it, don't analysis the
location
Current Page
currentPage string No No
If empty, no paging.
Page Record
pageRecords string No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_queryIdentifyAlarm.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=11111111&begintime=2020-05-1 00:00:00&endtime=2020-06-19 23:59:59&toMap=2
(https://www.mobilecam2.net/StandardApiAction_queryIdentifyAlarm.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&vehiIdno=11111111&begintime=2020-05-1 00:00:00&endtime=2020-06-19 23:59:59&toMap=2)
Return Param Desc
Param
Param Name Desc
Type
guid string Alarm Unique Number
vid number Vehicle ID
vehi string Plate Number
cnm string Company Name
dev string Device No.
stm number Alarm Start Time (UTC) in seconds
etm number Alarm End Time (UTC) in seconds
atp number Alarm Type
Alarm Info
info number
Recognition result, 0: recognition failure 1: recognition success
Alarm Param 1
p1 number
Recognition success means contrast, zoom in 100
Alarm Param 2
p2 number The lower 16 bits indicate failure similarity, and the higher 16 bits indicate
passing similarity
Alarm Param 3
p3 string Recognition failure means failure type 0: invalid 1: recognition failure 2:
unrecognizable 3: comparison failure
Alarm Param 4
p4 number
Driver id
desc string Alarm Info
Alarm Start Status 1
Details See also:Alarm Status Desc
ss1 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Alarm Start Status 2
Details See also:Alarm Status Desc
ss2 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Alarm End Status 1
Details See also:Alarm Status Desc
es1 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
Alarm End Status 2
Details See also:Alarm Status Desc
es2 number
(https://www.mobilecam2.net/808gps/open/example/VehicleStateExplain.html?
lang=en)
slng number Alarm Start Lng
slat number Alarm Start Lat
elng number Alarm End Lng
elat number Alarm End Lat
Alarm Start Map Lat
smlat string
Get the lat through the conversion
Alarm End Map Lat
emlat string
Get the lat through the conversion
Alarm start location
sps string The geographic location after analysis or (alarm start map longitude, alarm
start map latitude)
Alarm end location
eps string The geographic location after the analysis (or the end of the map, the
longitude of the alarm, the latitude of the end of the map)
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"pagination": {
"sortParams": null,
"primaryKey": "id",
"hasPreviousPage": false,
"previousPage": 1,
"startRecord": 0,
"currentPage": 1,
"totalPages": 1,
"endRecord": 0,
"hasNextPage": false,
"nextPage": 1,
"directQuery": false,
"pageRecords": 10,
"totalRecords": 6
},
"infos": [
{
"vehi": "015800098111",
"dev": "015800098111",
"desc": "",
"info": 0,
"p3": 33,
"p2": 12189696,
"p1": 48550,
"p4": 0,
"vid": 14667,
"cnm": "test",
"elng": null,
"elat": null,
"slat": -859058943,
"slng": 1073739000,
"ss1": -2147447551,
"ss2": 33099776,
"es1": null,
"es2": null,
"guid": "C121EB7B3E8E4377849D6899ED1CD553",
"emlat": null,
"smlat": "-859.058943,1073.739000",
"stm": 1589961877000,
"etm": null,
"atp": 646,
"eps": "",
"sps": "-859.058943,1073.739000"
}]
}

Query Driver List

Interface Desc And Error Code


Query Driver List
URL
https://www.mobilecam2.net/StandardApiAction_queryDriverList.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
dName string No No Driver name, Fuzzy search
Request Example
https://www.mobilecam2.net/StandardApiAction_queryDriverList.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&dName=ABC (https://www.mobilecam2.net/StandardApiAction_queryDriverList.action?jsession=cf6b70a3-c82b-
4392-8ab6-bbddce336222&dName=ABC)
Return Param Desc
Param Name Param Type Desc
id number Driver id
jn number Driver's Work Number
dn string Driver Name
sx string Gender 1 male 2 female
dt string Contact
cn number ID number
bt number date of birth
ln number Driver's license number
pid number Company ID
rd number Driver's license date
vd number Driver's License Expiration Date
reminderDays string Days Ahead Of Schedule
licenseType number Type Of Driver's License
birthplace string Birthplace
area number Area
nuclearAuthority number NuclearAuthority
address number address
Correctly Returns Examples
{
"result": 0,
"infos": [
{
"address": null,
"id": 30,
"startTime": 1557128971000,
"reminderDays": 3,
"licenseType": "A1",
"rdt": "",
"rdtUrl": "",
"qltNum": null,
"etQltNum": null,
"sx": 1,
"cn": "ABCD1111111111",
"vd": 111111111111111,
"pst": 1,
"rmk": null,
"birthplace": null,
"bt": 1557128971000,
"rd": 1557128971000,
"companyId": null,
"area": null,
"updateTime": 1571980168000,
"qltSrc": "",
"perfectStatus": 0,
"etQltSrc": "",
"drivingScore": 0,
"facePhotoUrl": "",
"drivingTime": 0,
"pid": 4,
"nuclearAuthority": null,
"jn": "ABCD1111111111",
"dn": "ABCD1111",
"dt": "33333333",
"ln": "ABCD1111111111111",
"transportStatus": 0,
"idNumberImgUrl": "",
"drivingLiCheng": 0
}
]
}

Add / modify driver

Interface Desc And Error Code


Add / modify driver
URL
https://www.mobilecam2.net/DriverAction_mergeDriver.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
It is used when modifying
the driver information. If the
ID cannot find the driver,
id number No No
the driver will be added. [it
is recommended to read
before modifying]
jobNum string Yes No Driver's Work Number
name string Yes No Driver Name
contact string Yes No Contact
cardNumber string Yes No ID number
sex number Yes No Gender 1 male 2 female
licenseNum string Yes No Driver's license number
licenseType string Yes No Type Of Driver's License
birth string Yes No date of birth
rushDate string Yes No Driver's license date
Start time of the valid date
startTime string Yes No
of the certificate
Driver's License Expiration
validity string Yes No
Date
reminderDays number Yes No Days Ahead Of Schedule
companyName string Yes No Company Name
Job ID 1 driver 2 flight
postId number No No
attendant
remark string No No Remark
enable number No No Is it used
Driver's license photo
licenseSrc string No No
address
Photo address of
qltSrc string No No
qualification certificate
Transport status 0 not
transportStatus number No No
transported 1 transported
Information complete status
perfectStatus number No No
0 not complete 1 complete
Photo address of escort
etQltSrc string No No
qualification certificate
qltNum string No No Driver's license number
birthplace string No No Birthplace
area string No No Area
nuclearAuthority string No No NuclearAuthority
vehiIDNO string No No Plate Number
address string No No address
face library,Call the upload
facePhotoUrl string No No image interface to get the
return value
drivingTime number No No Cumulative driving time
drivingScore number No No Grade
Accumulated driving
drivingLiCheng number No No
mileage
ID photo address,Call the
idNumberImgUrl string No No upload image interface to
get the return value
Road transportation
roadTransport string No No
qualification certificate
Photo address of road
transportation qualification
roadTransportImgUrl string No No certificate,Call the upload
image interface to get the
return value
complaintsNumbers number No No Number of complaints
processedNumbers number No No Processed times
supervisionCardNum string No No Supervision Card Number
Supervision Card Validity
supervisionCardReviewTime date No No
Period
supervisionCardStatus number No No Supervision Card Status
Request Example
https://www.mobilecam2.net/DriverAction_mergeDriver.action?jsession=979e77bc272e45ed803fb990aea83dba&jobNum=lll456&name=name&contact=&cardNumber=8125456&sex=2&licenseNum=898989&licenseType=B&birth=1999-10-
21&rushDate=2019-12-12&startTime=2020-10-21&validity=2020-10-21&reminderDays=7&companyName=lwm (https://www.mobilecam2.net/DriverAction_mergeDriver.action?
jsession=979e77bc272e45ed803fb990aea83dba&jobNum=lll456&name=name&contact=&cardNumber=8125456&sex=2&licenseNum=898989&licenseType=B&birth=1999-10-21&rushDate=2019-12-12&startTime=2020-10-21&validity=2020-
10-21&reminderDays=7&companyName=lwm)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
id number Driver id
Correctly Returns Examples
{
"result": 0
}

find Driver

Interface Desc And Error Code


find Driver
URL
https://www.mobilecam2.net/DriverAction_loadDriver.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No Driver id
Request Example
https://www.mobilecam2.net/DriverAction_loadDriver.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&id=1 (https://www.mobilecam2.net/DriverAction_loadDriver.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&id=1)
Return Param Desc
Param Name Param Type Desc
id number Driver id
jobNum number Driver's Work Number
name string Driver Name
sex string Gender 1 male 2 female
contact string Contact
cardNumber number ID number
birth number date of birth
licenseNum number Driver's license number
companyId number Company ID
companyName string Company Name
rushDate number Driver's license date
validity number Driver's License Expiration Date
postId string Job ID 1 driver 2 flight attendant
cardId number IC card ID
remark string Remark
enable number Is it used
licenseSrc number Driver's license photo address
qltSrc number Photo address of qualification certificate
transportStatus string Transport status 0 not transported 1 transported
Information complete status 0 not complete 1
perfectStatus number
complete
etQltSrc string Photo address of escort qualification certificate
qltNum number Driver's license number
startTime number Start time of the valid date of the certificate
reminderDays number Days Ahead Of Schedule
licenseType string Type Of Driver's License
birthplace number Birthplace
area string Area
nuclearAuthority number NuclearAuthority
vehiId number Vehicle ID
vehiIDNO number Plate Number
address string address
facePhotoUrl number face library
drivingTime string Cumulative driving time
drivingScore number Grade
drivingLiCheng number Accumulated driving mileage
idNumberImgUrl number ID photo address
roadTransport number Road transportation qualification certificate
Photo address of road transportation qualification
roadTransportImgUrl number
certificate
complaintsNumbers number Number of complaints
processedNumbers number Processed times
clock number Whether to check in the driver
Correctly Returns Examples
{
"result": 0{
"result":0,
"driver":{
"address":"address",
"name":"name",
"id":2,
"startTime":1262361600000,
"licenseType":"driver s license type",
"nuclearAuthority":"issuing authority",
"vehiIDNO":null,
"companyId":5,
"area":"area",
"validity":1514822400000,
"updateTime":1603966552000,
"remark":null,
"contact":"",
"jobNum":"certificate code",
"sex":1,
"processedNumbers":null,
"complaintsNumbers":null,
"vehiId":null,
"company":null,
"companyName":"222",
"cardId":1,
"card":null,
"licenseSrc":"/upload/whdriver/291904389262300_face.png",
"alipayQrCodeUrl":"/upload/alipay/291907711081600_alipay.png",
"drivingLiCheng":null,
"wechatpayQrCodeUrl":"/upload/wechatpay/291910758997800_wechatpay.png",
"idNumberImgUrl":"",
"licenseNumImgUrl":"/upload/licenseNumUrl/291962842501900_licenseNumUrl.png",
"roadTransportImgUrl":"/upload/jobNumImgUrl/291938388698100_jobNumImgUrl.png",
"licenseNum":"242521197001102412",
"cardNumber":"233512",
"enable":null,
"birth":1598889600000,
"qltNum":null,
"qltSrc":null,
"delPhotoUrl":null,
"facePhotoUrl":"/upload/whdriver/291898523468800_face.png;/upload/whdriver/291898583437800_face.png",
"etQltSrc":null,
"postId":1,
"drivingTime":null,
"birthplace":"nativePlace",
"reminderDays":21,
"roadTransport":"road transport qualification certificate",
"drivingScore":null,
"transportStatus":0,
"etQltNum":null,
"clock":false,
"rushDate":1325433600000,
"perfectStatus":0
}
}
}

Delete driver

Interface Desc And Error Code


Delete driver
URL
https://www.mobilecam2.net/DriverAction_deleteDriver.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param
Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
Driver id
id number Yes No It may be more than one, in order to ','
separation.
Request Example
https://www.mobilecam2.net/DriverAction_deleteDriver.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&id=1 (https://www.mobilecam2.net/DriverAction_deleteDriver.action?jsession=cf6b70a3-c82b-4392-8ab6-
bbddce336222&id=1)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}

upload image

Interface Desc And Error Code


upload image
(1)File path description, download all the reference files below, and place them in the same folder according to the example path
├── jquery.min.js
├── WebUploaderUtil.js
├── webUploader
│ ├── Uploader.swf
│ ├── webuploader.css
│ └── webuploader2.js
(2)The introduction of jquery.min.js and webuploader2.js and webuploader.css
(3)JavaScript Code
See Also:Reference JavaScript Code
Reference File
File Caption
File
required
https://www.mobilecam2.net/808gps/OperationManagement/js/WebUploaderUtil.js for
(https://www.mobilecam2.net/808gps/OperationManagement/js/WebUploaderUtil.js) uploading
picture
method
File
required
https://www.mobilecam2.net/808gps/open/player/js/jquery.min.js for
(https://www.mobilecam2.net/808gps/open/player/js/jquery.min.js) uploading
picture
method
File
required
https://www.mobilecam2.net/js/webUploader/Uploader.swf for
(https://www.mobilecam2.net/js/webUploader/Uploader.swf) uploading
picture
method
File
required
https://www.mobilecam2.net/js/webUploader/webuploader.css for
(https://www.mobilecam2.net/js/webUploader/webuploader.css) uploading
picture
method
File
required
https://www.mobilecam2.net/js/webUploader/webuploader2.js for
(https://www.mobilecam2.net/js/webUploader/webuploader2.js) uploading
picture
method
Call Method
http://localhost:88/WebuploaderApiAction_ajaxAttachUploadDriverRg.action?jsession=D60E0E9E23B754BBC8EAA01741F04DB1
Operation Example
(1)Operation Example

No

(2)Reference JavaScript Code


html code:
<div class="td-licenseSrc">
<div id="uploader-demo">
<div id="filePicker">upload pictures</div>
<div id="fileList" class="uploader-list"></div>
</div>
</div>

JavaScript code:
function loadPage() {
//Upload pictures to the server
loadUploader();
}

function loadUploader() {
var $ = jQuery,
$list = $('#fileList'),
//Optimize retina, under retina this value is 2
ratio = window.devicePixelRatio || 1,
allMaxSize = 10,
//Thumbnail size
thumbnailWidth = 80 * ratio,
thumbnailHeight = 80 * ratio,

//Web Uploader instance


uploader;

//Initialize Web Uploader


uploader = WebUploader.create({
//Automatically upload.
auto: true,
//swf file path
swf: 'webUploader/Uploader.swf',
//File receiving server.
server: 'http://localhost:88/WebuploaderApiAction_ajaxAttachUploadDriverRg.action?jsession=D60E0E9E23B754BBC8EAA01741F04DB1',
//[Default: 'file'] Set the name of the file upload domain.
fileVal: 'upload',
//Button to select file. Optional.
//It is created internally according to the current operation. It may be an input element or flash.
pick: '#filePicker',
//Repeatable
//duplicate:true,
//Only allows file selection, optional.
accept: {
title: 'Images',
extensions: 'gif,jpg,jpeg,bmp,png',
mimeTypes: 'image/*'
},
fileSingleSizeLimit: allMaxSize * 1024 * 1024,//The size limit is 1M, single file, no selection will be made if it exceeds the limit
});

//When a file is added


uploader.on('fileQueued', function (file) {
var imgSize = $('#fileList img').length;
if (imgSize > 5) {
alert("Cannot be larger than 5 pictures");
return;
}
var $li = $(
'<div id="' + file.id + '" class="file-item thumbnail" style="float: left;margin-left: 5px;">' +
'<img>' +
'<div class="info">' + file.name + '</div>' +
'</div>'
),
$img = $li.find('img');

var $btns = $('<div class="file-panel">' +


'').appendTo($li);

$list.append($li);

$btns.on('click', 'span', function () {


removeFile(file);
});

//Create thumbnail
uploader.makeThumb(file, function (error, src) {
if (error) {
$img.replaceWith('' + "Cannot preview" + '');
return;
}

$img.attr('src', src);
}, thumbnailWidth, thumbnailHeight);
});

//Responsible for the destruction of view


function removeFile(file) {
var $li = $('#' + file.id);
$li.off().find('.file-panel').off().end().remove();
for (var i = 0; i < facePhotoUrl.length; i++) {
if (facePhotoUrl[i].id == file.id) {
delPhotoUrl.push(facePhotoUrl[i].name);
facePhotoUrl.splice(i, 1);
}
}
uploader.removeFile(file, true);
}

//A progress bar is created and displayed in real time during the file upload process.
uploader.on('uploadProgress', function (file, percentage) {
var $li = $('#' + file.id),
$percent = $li.find('.progress span');

//Avoid duplicate creation


if (!$percent.length) {
$percent = $('<p class="progress"><span></span></p>')
.appendTo($li)
.find('span');
}
$percent.css('width', percentage * 100 + '%');
});
var frequently = false;
//The file is uploaded successfully, adding a successful class to the item, and using the style to mark the upload as successful.
uploader.on('uploadSuccess', function (file, data) {
if (data.result == 0) {
if (facePhotoUrl.length < 6) {
facePhotoUrl.push({id: file.id, name: data.name});
}
$('#' + file.id).addClass('upload-state-done');
} else if (data.result == 104) {
removeFile(file);
if (!frequently) {
alert("Uploading is too frequent, please continue later...");
}
frequently = true;
}

});

//File upload failed, actual upload error.


uploader.on('uploadError', function (file) {
var $li = $('#' + file.id),
$error = $li.find('div.error');
//Avoid duplicate creation
if (!$error.length) {
$error = $('<div class="error"></div>').appendTo($li);
}

$error.text("Upload failed");
});

uploader.on('error', function (type) {


if (type == "F_DUPLICATE") {
alert('Please do not select files repeatedly');
} else if (type == "F_EXCEED_SIZE") {
alert('File size cannot exceed 1M');
}
});

//When the upload is complete, whether successful or failed, delete the progress bar first.
uploader.on('uploadComplete', function (file) {
$('#' + file.id).find('.progress').remove();
});

$('.submit', '#toolbar-btn').on('click', function () {


uploader.upload();
});
}

SIM Management

Add SIM

Interface Desc And Error Code


Add SIM
URL
https://www.mobilecam2.net/StandardApiAction_mergeSIMInfo.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Name Defaults Desc
Type Must
jsession string Yes No Jsession
SIM ID
id number No No
When modifying the SIM, the parameters must be passed!
cardNum string Yes No SIM Card
Company Name
Chinese reference, format reference
companyName string Yes No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Registration time (default current time, old time will not be transmitted
registrationTime string No No when modified)
2020-03-03 10:10:10
status number No No Use status 0 is not enabled, 1 is enabled, default 1
Remark
Chinese reference, format reference
remark string No No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Issuing City
Chinese reference, format reference
city string No No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Operator
Chinese reference, format reference
operator string No No
(https://www.mobilecam2.net/808gps/open/example/codeExplain.html?
lang=en)
Bind the device number (the company of the device and the company
devIdno string No No
of the sim are the same to bind successfully)
Request Example
https://www.mobilecam2.net/StandardApiAction_mergeSIMInfo.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&cardNum=1000000&companyName=9889 (https://www.mobilecam2.net/StandardApiAction_mergeSIMInfo.action?
jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&cardNum=1000000&companyName=9889)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}

Find SIM

Interface Desc And Error Code


Find SIM
URL
https://www.mobilecam2.net/StandardApiAction_findSIMInfo.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No SIM ID
Request Example
https://www.mobilecam2.net/StandardApiAction_findSIMInfo.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&id=1 (https://www.mobilecam2.net/StandardApiAction_findSIMInfo.action?jsession=cf6b70a3-c82b-4392-8ab6-
bbddce336222&id=1)
Return Param Desc
Param Name Param Type Desc
id string SIM ID
vehiIDNO string Plate Number
remark string Remark
Use status 0 is not enabled, 1 is enabled, default
status number
1
registrationTime number Registration (milliseconds)
companyName string Company Name
install number Bound device 0 means unbound, 1 means bound
devId number Device ID
companyID number Company ID
cardNum string SIM Card
devIDNO string Equipment number
operator string Operator
city string Issuing City
Correctly Returns Examples
{
"result": 0,
"sim": {
"id": 25,
"remark": null,
"updateTime": null,
"status": 1,
"vehiIDNO": "1002",
"company": null,
"registrationTime": 1617868459000,
"companyName": "9889",
"simCard": null,
"install": 1,
"devId": 1,
"companyID": 38,
"cardNum": "222"
"devIDNO": "1002"
"operator": null,
"city": null,
"oldDevId": null
}

Delete SIM

Interface Desc And Error Code


Delete SIM
URL
https://www.mobilecam2.net/StandardApiAction_deleteSIMInfo.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
id number Yes No SIM ID
Request Example
https://www.mobilecam2.net/StandardApiAction_deleteSIMInfo.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&id=1 (https://www.mobilecam2.net/StandardApiAction_deleteSIMInfo.action?jsession=cf6b70a3-c82b-4392-8ab6-
bbddce336222&id=1)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}
Query SIM (paged)

Interface Desc And Error Code


Query SIM (paged)
URL
https://www.mobilecam2.net/StandardApiAction_loadSIMInfos.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/StandardApiAction_loadSIMInfos.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222 (https://www.mobilecam2.net/StandardApiAction_loadSIMInfos.action?jsession=cf6b70a3-c82b-4392-8ab6-
bbddce336222)
Return Param Desc
Param Name Param Type Desc
id string SIM ID
vehiIDNO string Plate Number
remark string Remark
Use status 0 is not enabled, 1 is enabled, default
status number
1
registrationTime number Registration (milliseconds)
companyName string Company Name
install number Bound device 0 means unbound, 1 means bound
devId number Device ID
companyID number Company ID
cardNum string SIM Card
devIDNO string Equipment number
operator string Operator
city string Issuing City
totalPages number Total Page
currentPage number Current Page
pageRecords number Page Record
totalRecords number Total Records
Correctly Returns Examples
{
"result": 0,
"pagination": {
"sortParams": null,
"primaryKey": "id",
"hasPreviousPage": false,
"previousPage": 1,
"startRecord": 0,
"currentPage": 1,
"totalPages": 1,
"endRecord": 0,
"hasNextPage": false,
"nextPage": 1,
"directQuery": false,
"pageRecords": 10,
"totalRecords": 6
},
"infos": [
{
"id": 25,
"remark": null,
"updateTime": null,
"status": 1,
"vehiIDNO": "1002",
"company": null,
"registrationTime": 1617868459000,
"companyName": "9889",
"simCard": null,
"install": 1,
"devId": 1,
"companyID": 38,
"cardNum": "222"
"devIDNO": "1002"
"operator": null,
"city": null,
"oldDevId": null
}]
}

Unbind sim

Interface Desc And Error Code


Unbind sim
URL
https://www.mobilecam2.net/StandardApiAction_unbindingSIM.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param
Param Whether
Param Type Defaults Desc
Name Must
jsession string Yes No Jsession
Flag, if the parameter is empty, the
default value is 0.
flag number No 0
0: Unbind through SIM ID, 1: Unbind
through device number
id string Yes No SIM ID/Device No.
Request Example
https://www.mobilecam2.net/StandardApiAction_unbindingSIM.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&id=1 (https://www.mobilecam2.net/StandardApiAction_unbindingSIM.action?jsession=cf6b70a3-c82b-4392-8ab6-
bbddce336222&id=1)
Return Param Desc
Param Name Param Type Desc
Return Code
result number
0 means success, the other means failure.
Correctly Returns Examples
{
"result": 0
}

Reports

Passenger Summary

Interface Desc And Error Code


Passenger Summary
URL
https://www.mobilecam2.net/PeopleAction_peopleSummary.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
begintime string Yes No Start Time
End Time
Start time is not greater than the end
endtime string Yes No
time, and the number of query days
must not be greater than 7 days.
Plate Number
vehiIdnos string No No It may be more than one, in order to ','
separation.
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/PeopleAction_peopleSummary.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&begintime=2022-09-09 00:00:00&endtime=2022-09-09 23:59:59&vehiIdnos=50000000000,50000000001
(https://www.mobilecam2.net/PeopleAction_peopleSummary.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&begintime=2022-09-09 00:00:00&endtime=2022-09-09 23:59:59&vehiIdnos=50000000000,50000000001)
Return Param Desc
Param Name Param Type Desc
vehiIdno string Plate Number
plateType number Plate Color
companyName string Company Name
startTimeStr string Start Time
endTimeStr string End Time
downPeople number Total Getting Off
incrPeople number Incremental Staff
upPeople number Total Boarding
Correctly Returns Examples
{
"result": 0,
"pagination": {
"query": null,
"previousPage": 1,
"hasPreviousPage": false,
"nextPage": 1,
"currentPage": 1,
"pageRecords": 10,
"qtype": null,
"sortParams": null,
"totalRecords": 1,
"directQuery": false,
"hasNextPage": false,
"totalPages": 1,
"pagin": null,
"endRecord": 0,
"startRecord": 0,
"page": false,
"primaryKey": "id",
"rp": null
},
"infos": [
{
"vehiIdno": "10001",
"devIdno": null,
"plateType": 2,//License plate color
"companyName": "test company",
"endTimeStr": "2022-09-09 16:59:04",
"startTimeStr": "2022-09-09 01:28:00",
"downPeople": 4,
"incrPeople": 0,
"upPeople": 4
}
]

}
Passenger Detail

Interface Desc And Error Code


Passenger Detail
URL
https://www.mobilecam2.net/PeopleAction_peopleDetail.action?
HTTP Request Method
GET/POST
Input Param Desc
(1)Common Param

See Also:Common Param (webApi.html#param-common)

(2)Private Param

Whether
Param Name Param Type Defaults Desc
Must
jsession string Yes No Jsession
begintime string Yes No Start Time
End Time
Start time is not greater than the end
endtime string Yes No
time, and the number of query days
must not be greater than 7 days.
Plate Number
vehiIdnos string No No It may be more than one, in order to ','
separation.
Current Page
currentPage number No No
If empty, no paging.
Page Record
pageRecords number No No
If empty, no paging.
Request Example
https://www.mobilecam2.net/PeopleAction_peopleDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&begintime=2022-09-09 00:00:00&endtime=2022-09-09 23:59:59&vehiIdnos=50000000000,50000000001
(https://www.mobilecam2.net/PeopleAction_peopleDetail.action?jsession=cf6b70a3-c82b-4392-8ab6-bbddce336222&begintime=2022-09-09 00:00:00&endtime=2022-09-09 23:59:59&vehiIdnos=50000000000,50000000001)
Return Param Desc
Param Name Param Type Desc
vehiIdno string Plate Number
devIdno string Device No.
bTimeStr number Start Time
companyName string Company Name
plateType number Plate Type
weidu number Lat
jindu number Lng
curPeople string Number Of Passengers
downPeople1 string Front Getting Off
downPeople2 string Back Getting Off
downPeople3 string Middle Getting Off
upPeople1 string Front Boarding
upPeople2 string Back Boarding
upPeople3 string Middle Boarding
Correctly Returns Examples
{
"result": 0,
"pagination": {
"currentPage": 1,
"pageRecords": 10,
"qtype": null,
"totalRecords": 2,
"sortParams": null,
"hasPreviousPage": false,
"previousPage": 1,
"nextPage": 1,
"startRecord": 0,
"page": false,
"endRecord": 0,
"rp": null,
"directQuery": false,
"hasNextPage": false,
"totalPages": 1,
"pagin": null,
"primaryKey": "id",
"query": null
},
"infos": [
{
"vehiIdno": "10001",
"devIdno": "10001",
"bTimeStr": "2022-09-09 01:28:00",
"startPosition": "22.515410,113.916914",
"companyName": "test company",
"plateType": 2,
"weidu": 22515410,
"statisticsTime": 1662658080000,
"curPeople": 1,
"downPeople1": 1,
"upPeople4": 1,
"downPeople2": 1,
"jindu": 113916914,
"upPeople2": 1,
"downPeople3": 1,
"upPeople3": 1,
"incrPeople": 1,
"upPeople1": 1,
"downPeople4": 1,
"id": 20
},
{
"vehiIdno": "10001",
"devIdno": "10001",
"bTimeStr": "2022-09-09 17:22:08",
"startPosition": "22.515410,113.916914",
"companyName": "test company",
"plateType": 2,
"weidu": 22515410,
"statisticsTime": 1662715328000,
"curPeople": 1,
"downPeople1": 1,
"upPeople4": 1,
"downPeople2": 1,
"jindu": 113916914,
"upPeople2": 1,
"downPeople3": 1,
"upPeople3": 1,
"incrPeople": 1,
"upPeople1": 1,
"downPeople4": 1,
"id": 10
}
]

Copyright (c) 2019. All right reserved.

You might also like