Skip to content

device parameter config

Device parameter setting and query, contain media parameters

Get terminal parameters

API info

Url: /web_api/v1/dev_manage/get_dev_param

Method: GET

Content-Type:x-www-form-urlencoded

Request parameter

fieldtyperequireddesc
vehicleNostringYesPlate No.
paramIDsstringNoParameter ID list,Empty indicates that all queries are queried. Multiple queries are separated by commas (,)

Response Data (type:array(object))

Definition viewTable 1: Parameter info

Example

Request example

url
http://localhost:8080/web_api/v1/dev_manage/get_dev_param?vehicleNo=130000000001&paramIDs=1,16
http://localhost:8080/web_api/v1/dev_manage/get_dev_param?vehicleNo=130000000001&paramIDs=1,16

Response sample

json
{
    "code": 200,
    "msg": "Success",
    "data": [{
        "paramID": 1,   //device heartbeat sending interval
        "paramType": 2 , //It is a 4-byte integer
        "paramContent": "60" //All param Content is an integer
    },{
        "paramID": 16, //Primary server APN
        "paramType": 3 , //string
        "paramContent": "127.0.0.1"
    }]
}
{
    "code": 200,
    "msg": "Success",
    "data": [{
        "paramID": 1,   //device heartbeat sending interval
        "paramType": 2 , //It is a 4-byte integer
        "paramContent": "60" //All param Content is an integer
    },{
        "paramID": 16, //Primary server APN
        "paramType": 3 , //string
        "paramContent": "127.0.0.1"
    }]
}

Set device configuration

API info

Url: /web_api/v1/dev_manage/set_dev_param

Method: POST

Content-Type:application/json

Request parameter

fieldtyperequireddesc
vehicleNosarray(string)YesPlate No. list
itemsarray(object)YesParameter list,table1

Response Data

None

Example

Request example

json
http://localhost:8080/web_api/v1/dev_manage/set_dev_param
{
    "vehicleNos": ["130000001"],
    "items": [{
        "paramID": 1,
        "paramType": 2,
        "paramContent":"70"
    },{
        "paramID": 117, // audio video param
        "paramType": 4 , //json object string
        "paramContent": "{\"enableAudio\":1,\"rtCodecMode\":0,\"rtResolution\":1,\"rtKeyFrameInteval\":12,\"rtTargetFrameRate\":6,\"rtTargetBitRate\":200,\"stCodecMode\":0,\"stResolution\":5,\"stKeyFrameInteval\":30,\"stTargetFrameRate\":15,\"stTargetBitRate\":1200,\"osd\":11}"
    }]
}
http://localhost:8080/web_api/v1/dev_manage/set_dev_param
{
    "vehicleNos": ["130000001"],
    "items": [{
        "paramID": 1,
        "paramType": 2,
        "paramContent":"70"
    },{
        "paramID": 117, // audio video param
        "paramType": 4 , //json object string
        "paramContent": "{\"enableAudio\":1,\"rtCodecMode\":0,\"rtResolution\":1,\"rtKeyFrameInteval\":12,\"rtTargetFrameRate\":6,\"rtTargetBitRate\":200,\"stCodecMode\":0,\"stResolution\":5,\"stKeyFrameInteval\":30,\"stTargetFrameRate\":15,\"stTargetBitRate\":1200,\"osd\":11}"
    }]
}

Response example

json
{
    "hdr":{
        "code":200,
        "message":"success"
    },"data":["130000001"]
}
{
    "hdr":{
        "code":200,
        "message":"success"
    },"data":["130000001"]
}

Table 1: Parameter info

fieldtypedesc
paramIDintegerParameter ID, refer current page (table 2)
paramTypeintegerThe parameter type is 0:byte. 1:integer2(a 2-byte integer). 2:integer4(a four-byte integer). 3:string(string); 4:stringObject(String object)
paramContentstringParameter content

Table 2: JT808 Param ID define

IDtypedesc
1integer4Interval for sending heartbeat packets, in seconds
2integer4Timeout duration of TCP message response, in seconds
3integer4Number of TCP message retransmission times
4integer4UDP message response timeout interval, in seconds
5integer4UDP message retransmission times
6integer4Timeout duration of SMS message response, in seconds
7integer4Number of SMS message retransmission times
16stringPrimary server APN
17stringPrimary server user
18stringPrimary server dial-up password for wireless communication
19stringPrimary server address
20stringBackup server APN
21stringSecondary server user
22stringWireless dial-up password of the standby server
23stringSecondary server address
24integer4Server TCP port
25integer4Server UDP port
26stringIC card authentication master server address
27integer4Road transport certificate IC card authentication master server TCP port
28integer4Road transport card IC card authentication master server UDP port
29stringRoad transport card IC card authentication backup server IP address or domain name port is the same as the primary server
32integer4Position reporting strategy
33integer4Position reporting scheme
34integer4The driver does not log in to report the interval, the unit is seconds (s),>0
39integer4Interval for reporting sleep, expressed in seconds (s), >0
40integer4Emergency alarm reporting time interval, the unit is second (s), >0
41integer4The default time reporting interval, in seconds (s), is >0
44integer4The default reporting interval, in meters (m), is >0
45integer4The driver did not log in to report the distance interval, in meters (m), >0
46integer4The distance reported at sleep, in meters (m), is >0
47integer4Emergency alarm reporting distance interval, the unit is m (m), >0
48integer4Inflexion Angle, <180
49integer2The electronic fence radius is measured in meters
64stringMonitoring platform phone numbers
65stringReset the phone number, you can use this phone number to dial the terminal phone to reset the terminal
66stringRestore phone numbers to factory Settings
67stringMonitor platform SMS phone numbers
68stringReceiving terminal SMS text alarm number
69integer4Terminal answering policy: 0: automatically answers the phone. 1: Automatic answer when ACC is ON, manual answer when OFF
70integer4The maximum duration of a call is expressed in seconds (s), where 0 indicates no call and 0xFFFFFFFF indicates no limit
71integer4The minimum duration of a call is expressed in seconds (s), where 0 indicates no call and 0xFFFFFFFF indicates no limit
72stringMonitor telephone numbers
73stringMonitor platform privilege SMS numbers
80integer4The alarm shielding word corresponds to the alarm mark in the location information reporting message. If the corresponding bit is 1, the corresponding alarm is shielded
81integer4Alarm sending text SMS switch, corresponding to the alarm sign in the location information reporting message, the corresponding bit is 1, the corresponding alarm text SMS is sent
82integer4The alarm shooting switch corresponds to the alarm mark in the position information reporting message, and the corresponding bit is 1 when the corresponding alarm is shot by the camera
83integer4The alarm shooting storage mark corresponds to the alarm mark in the location information reporting message. If the corresponding bit is 1, the photo taken during the corresponding alarm will be stored, otherwise it will be uploaded in real time
84integer4The key mark corresponds to the alarm mark in the location information reporting message. If the corresponding bit is 1, the corresponding alarm is the key alarm
85integer4Maximum speed in kilometers per hour (km/h)
86integer4Overspeed duration, in seconds (s)
87integer4Continuous driving time threshold, in seconds (s)
88integer4The cumulative driving time threshold for the day, in seconds (s)
89integer4Minimum rest time, in seconds (s)
90integer4Maximum stopping time, in seconds (s)
91integer2Overspeed alarm warning difference, the unit is 1/10Km/h
92integer2Fatigue driving warning difference, in seconds (s), >0
93integer2Collision alarm parameter setting: b7-b0: collision time, unit 4ms; b15-b8: Collision acceleration, unit 0.1g. The value ranges from 0 to 79. The default value is 10.
94integer2Rollover alarm parameter setting: rollover Angle, unit 1 degree, default is 30 degrees.
100integer4Timing camera control
101integer4Range camera control
112integer4Image/video quality, 1-10, 1 is best
113integer4Brightness, 0-255
114integer4Contrast ratio, 0-127
115integer4Saturation,0-127
116integer4chroma,0-255
128integer4Vehicle odometer reading,1/10km
129integer2The province where the vehicle is located ID
130integer2The city where the vehicle is located ID
131stringA motor vehicle license plate issued by the traffic administration department of public security
132byteLicense plate color, according to JT/T415-2006 5.4.12
144byteGNSS positioning mode
145byteGNSS Baud rate
146byteThe GNSS module locates the data output frequency in detail
147integer4GNSS module detailed positioning data acquisition frequency, in seconds, the default is 1.
148byteGNSS module detailed positioning data upload mode
149integer4GNSS module detailed positioning data upload Settings
256integer4CAN bus channel 1 Collection interval (ms), 0 indicates no collection
257integer2CAN bus channel 1 Upload interval (s). 0 indicates that no upload is performed
258integer4CAN bus channel 2 Collection interval (ms). 0 indicates no collection
259integer2CAN bus channel 2 Upload interval (s). 0 indicates that no upload is performed

Table 3: JT1078 video param ID define

IDtypedesc
117stringObjectAudio video param setting,paramContent is a json string,refer current page table 4
118stringObjectAudio video channel setting,paramContent is a json string,refer current page table 5
119stringObjectSingle audio video,paramContent is a json string,refer current page table 6

table 4: Audio video param setting(object)

fieldtypedesc
enableAudiointegerEnable audio,0:no,1:yes
rtCodecModeintegerRealtime mode 0:CBR(Fixed);1:VBR(Variable);2:ABR(Average)
rtResolutionintegerRealtime resolution 0:QCIF;1:CIF;2:WCIF:3:D1;4:WD1;5:720P;6:1080P
rtKeyFrameIntevalintegerRealtime key frame inteval ,range(1000) frames
rtTargetFrameRateintegerRealtime frame rate ,range(1-120)fps
rtTargetBitRateintegerRealtime bit rate ,(kbps)
stCodecModeintegerStorage mode 0:CBR(Fixed); 1:VBR(Variable); 2:ABR(Average)
stResolutionintegerStorage resolution 0:QCIF;1:CIF;2:WCIF:3:D1;4:WD1;5:720P;6:1080P
stKeyFrameIntevalintegerStorage key frame inteval range(1000) frames
stTargetFrameRateintegerStorage frame rate ,range(1-120)fps
stTargetBitRateintegerStorage bit rate ,(kbps)
osdintegerOSD,by bit:bit0:datetime,1:plate no.;2:channel;3.longlat;4:drive speed;5:location speed;6:drive time

table 5: Audio video channel setting

fieldtypedesc
audioVideoCntintegerAudio video num
audioCntintegerAudio num
videoCntintegerVideo num
listarray(object)Channel info,refer table (channel info)

Channel info

fieldtypedesc
physicsChannelNointegerphysics channel, start 0
logicChannelNointegerLogic channel,refer public define table 2
chTypeintegerChannel type,0:audio video;1:audio;2:video
isConnectPTZintegerConnect PTZ,channel type is 0 ,2 valid

table 6: Single audio video setting

fieldtypedesc
itemarray(object)Single audio video setting list,refer table (single channel info)

Single channel info

fieldtypedesc
channelNointegerchannel no
rtCodecModeintegerRealtime mode 0:CBR(Fixed);1:VBR(Variable);2:ABR(Average)
rtResolutionintegerRealtime resolution 0:QCIF;1:CIF;2:WCIF:3:D1;4:WD1;5:720P;6:1080P
rtKeyFrameIntevalintegerRealtime key frame inteval ,range(1000) frames
rtTargetFrameRateintegerRealtime frame rate ,range(1-120)fps
rtTargetBitRateintegerRealtime bit rate ,(kbps)
stCodecModeintegerStorage mode 0:CBR(Fixed); 1:VBR(Variable); 2:ABR(Average)
stResolutionintegerStorage resolution 0:QCIF;1:CIF;2:WCIF:3:D1;4:WD1;5:720P;6:1080P
stKeyFrameIntevalintegerStorage key frame inteval range(1000) frames
stTargetFrameRateintegerStorage frame rate ,range(1-120)fps
stTargetBitRateintegerStorage bit rate ,(kbps)
osdintegerOSD,by bit:bit0:datetime,1:plate no.;2:channel;3.longlat;4:drive speed;5:location speed;6:drive time