| | |
| | | package com.flightfeather.obd.socket.eunm |
| | | |
| | | import com.flightfeather.obd.socket.bean.* |
| | | |
| | | /** |
| | | * obd 命令单元 |
| | | * @author riku |
| | | * Date: 2019/9/12 |
| | | * |
| | | * obd 命令单元 |
| | | * |
| | | * 编码 定义 方向 |
| | | * 0x01 车辆登入 上行 @see [CarRegisterData] |
| | | * 0x02 实时信息上报 上行 @see [com.flightfeather.obd.socket.bean.RealTimeData] |
| | | * 0x03 补发信息上报 上行 @see [com.flightfeather.obd.socket.bean.ReplacementData] |
| | | * 0x04 车辆登出 上行 @see [CarLogOutData] |
| | | * 0x05 终端校时 上行 @see [TimeCalibrationData] |
| | | * 0x06~0x7F 上行数据系统预留 上行 |
| | | * 0x7F 固件远程更新 |
| | | */ |
| | | enum class ObdCommandUnit constructor(val value: Int) { |
| | | CarRegister(1), |
| | | RealTimeData(2), |
| | | ReplacementData(3), |
| | | CarLogOut(4), |
| | | TimeCalibration(5) |
| | | TimeCalibration(5), |
| | | Update(127) |
| | | } |