Skip to main content

交通部JT-808

打开端口

ports:
    - 58081:58081

调试日志

environment:
    - LOG.LEVEL=DEBUG

image.png

创建并启动服务:docker-compose up -d 查看mqtt服务是否启动:docker ps | grep jt808

上数日志 image.png

以下是设备表和设备详细配置:

属性配置可配置终端ID和SIM卡号。 数据点配置决定设备传上来的哪些数据可以存储展示。 驱动配置可配置采集周期和通讯超时时间

属性配置

在创建一个设备表,名称叫车辆,点击属性配置增加如下属性字段 微信截图_20211102104743.png 终端ID terminalid SIM卡号 mobileNumber 车牌颜色 plateColor 车辆是否注册 registeredVehicle 鉴权码 authCode

资产中配置终端ID和SIM卡号。 资产编号填写车牌号。

驱动配置

微信截图_20211102100547.png 填写通讯超时时间

配置数据点 微信截图_20211119163300.png 添加名称和标识即可 名称标识组合如下,需要哪些数据点就添加哪些数据点,类型全是数字

名称标识
报警标志warningMark
状态status
纬度latitude
经度longitude
高程altitude
速度speed
方向direction
里程mileage
油量oilCapacity
时间dateTime
线路编号lineCode
业务类型serviceType
紧急报警emergency
超速报警overSpeed
疲劳驾驶fatigueDriving
预警preWarning
GNSS模块发生故障GNSSFault
GNSS天线未接或被剪断GNSSAntennaConn
GNSS天线短路GNSSAntennaShortCircuit
终端主电源欠压terminalLowPower
终端主电源掉电terminalOffPower
终端LCD或显示器故障terminalLCDFault
TTS模块故障TTSFault
摄像头故障cameraFault
当天累计驾驶超时dailyOverDriveTime
超时停车overTimeParking
进出区域inOutArea
进出路线inOutLine
路段行驶时间不足/过长lineDriveTime
路线偏离报警lineOffsetPreWarning
车辆VSS故障VSSFault
车辆油量异常fuelGaugeFault
车辆被盗(通过车辆防盗器)stolen
车辆非法点火illegalIgnition
车辆非法位移illegalDisplacement

指令

平台会自带配置好指令,下面格式中name是指令名称,params是指令参数 微信截图_20211125182615.png

1.实时位置

{
"name": "位置信息查询"
}

2.拍照上传

{
"name": "摄像头立即拍摄命令",
"params": {
"channelid": 7,
"shotCommand": 2,
"shotInterval": 2,
"keepFlag": 0,
"resolution": 2,
"shotQuality": 5,
"brightness": 120,
"contrast": 60,
"saturation": 60,
"hue": 120
}
}

3.文本信息下发

{
"name": "文本信息下发",
"params": {
"flag": 4,
"message": "测试文本20200303"
}
}

4.运营登记

{
"name": "运营登记",
"params": {
"lineCode": 1,
"workerCode": "测试员工编号1"
}
}

5.行车计划下发

{
"name": "行车计划下发",
"params": {
"operationTime": "2020-03-10 12:00:00",
"startTime": "2020-03-10 11:41:00",
"endTime": "2020-03-10 13:00:00",
"dispatchBusQueueCount": 1,
"dispatchBusQueue": [
{
"lineCode": 202003,
"busSign": "龙泉苑街(东)",
"busTripNo": "1",
"busCode": "1100",
"serviceType": 1,
"dispatchType": 1,
"driverCode": "1588775454",
"driverName": "王老五",
"conductorCode1": "1001",
"conductorCode2": "1002",
"startTime": "2020-03-10 11:41:00",
"endTime": "2020-03-10 13:00:00",
"initialStationCode": 1,
"initialStationName": "龙泉苑街(东)",
"destinationCode": 8,
"destinationName": "龙泉苑街(东)"
}
],
"additionalContent": "附加内容"
}
}

6.业务变更指令

{
"name": "业务变更指令",
"params": {
"lineCode": 202003,
"serviceType": 1,
"additionalContent": "附加内容"
}
}

7.多媒体数据上传

{
"name": "存储多媒体数据上传命令",
"params": {
"mediaType": 0,
"channelid": 1,
"eventCode": 0,
"startTime": "2020-03-05 09:00:00",
"endTime": "2020-03-05 10:00:00",
"deleteFlag": 0
}
}

8.发车通知

{
"name": "发车通知",
"params": {
"dispatchBusQueue": {
"lineCode": 202004,
"busSign": "龙泉苑街(东)",
"busTripNo": "1",
"busCode": "1100",
"serviceType": 1,
"dispatchType": 1,
"driverCode": "1588775454",
"driverName": "王老五",
"conductorCode1": "1001",
"conductorCode2": "1002",
"startTime": "2020-03-09 17:27:00",
"endTime": "2020-03-09 17:48:00",
"initialStationCode": 101,
"initialStationName": "老阳关",
"destinationCode": 107,
"destinationName": "贵阳高新管委"
},
"additionalContent": "测试发车通知",
"serviceTime": "2020-03-05 12:10:00"
}
}

9.乘客信息发布

{
"name": "乘客信息发布",
"params": {
"messageType": 2,
"messageCount": 1,
"messageItems": [
{
"messageNo": 1,
"messageContent": "信息内容",
"messageExpiration": "2020-03-06 12:00:00",
"messagePriority": 1,
"messageShowMethod": 1,
"messageShowPos": 1
}
]
}
}

10.单条存储多媒体数据检索上传命令

{
"name": "单条存储多媒体数据检索上传命令",
"params": {
"mediaid": 1,
"deleteFlag": 0
}
}

11.行车计划变更

{
"name": "行车计划变更",
"params": {
"changeType": 2,
"dispatchBusQueueCount": 1,
"dispatchBusQueue": [
{
"lineCode": 202003,
"busSign": "龙泉苑街(东)",
"busTripNo": "1",
"busCode": "1100",
"serviceType": 1,
"dispatchType": 1,
"driverCode": "1588775454",
"driverName": "王老五",
"conductorCode1": "1001",
"conductorCode2": "1002",
"startTime": "2020-03-10 11:51:00",
"endTime": "2020-03-10 13:00:00",
"initialStationCode": 1,
"initialStationName": "龙泉苑街(东)",
"destinationCode": 8,
"destinationName": "龙泉苑街(东)"
}
]
}
}

12.远程录像回放请求

{
"name": "远程录像回放请求",
"params": {
"ipLength": 14,
"ipAddress": "39.100.146.181",
"tcpPort": 1078,
"udpPort": 11,
"logicChannelNo": 1,
"dataType": 0,
"flowType": 0,
"storageType": 0,
"replayPattern": 0,
"playTimes": 0,
"startTime": "2020-03-10 11:51:00",
"endTime": "2020-03-10 13:00:00"
}
}

13.文件上传指令

{
"name": "文件上传指令",
"params": {
"ipLen": 14,
"ip": "39.100.146.181",
"port": 10021,
"usernameLen": 6,
"username": "clwftp",
"passwordLen": 8,
"password": "dell@123",
"uploadPathLen": 17,
"uploadPath": "/fileServer/video",
"logicChannelNo": 7,
"startTime": "2020-05-13 12:50:00",
"endTime": "2020-05-13 12:53:00",
"warnFlag": 0,
"dataType": 0,
"flowType": 1,
"storageType": 1,
"executeCondition": 7
}
}

14.音视频实时传输控制

{
"name": "音视频实时传输控制",
"params": {
"logicChannelNo": 1,
"controlCommand": 0,
"dataType": 0,
"flowType": 0
}
}

15.查询资源列表

{
"name": "查询资源列表",
"params": {
"logicChannelNo": 7,
"startTime": "2020-05-13 12:50:00",
"endTime": "2020-05-13 12:53:00",
"warnFlag": 0,
"dataType": 0,
"flowType": 0,
"storageType": 0
}
}

16.终端上传音视频资源列表

{
"name": "终端上传音视频资源列表",
"params": {
"respSerialNumber": 1,
"videoSum": 1,
"videoList": [
{
"logicChannelNo": 7,
"startTime": "2020-03-10 11:51:00",
"endTime": "2020-03-10 13:00:00",
"warnFlag": 0,
"dataType": 0,
"flowType": 1,
"storageType": 1,
"size": 7346868
}
]
}
}

17.报警附件上传

{
"name": "报警附件上传",
"params": {
"ipLength": 14,
"ipAddress": "39.100.146.181",
"tcpPort": 7611,
"udpPort": 11,
"terminalid": "3122636",
"dateTime": "2020-05-26 10:12:14",
"sequenceNumber": 0,
"attachmentNum": 5,
"warnUid": "98fb02e944b8bd9faf4ee051e9e92077"
}
}

18.录音开始命令

{
"name": "录音开始命令",
"params": {
"recordCommand": 1,
"recordTime": 2,
"storeFlag": 0,
"audioSampleRate": 0
}
}