1078-查询终端属性...
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
package com.genersoft.iot.vmp.jt1078.bean;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
/**
|
||||
* JT 通信模块属性
|
||||
*/
|
||||
@Schema(description = "JT通信模块属性")
|
||||
public class JCommunicationModuleAttribute {
|
||||
|
||||
private boolean gprs ;
|
||||
private boolean cdma ;
|
||||
private boolean tdScdma ;
|
||||
private boolean wcdma ;
|
||||
private boolean cdma2000 ;
|
||||
private boolean tdLte ;
|
||||
private boolean other ;
|
||||
|
||||
|
||||
public static JCommunicationModuleAttribute getInstance(short content) {
|
||||
boolean gprs = (content & 1) == 1;
|
||||
boolean cdma = (content >>> 1 & 1) == 1;
|
||||
boolean tdScdma = (content >>> 2 & 1) == 1;
|
||||
boolean wcdma = (content >>> 3 & 1) == 1;
|
||||
boolean cdma2000 = (content >>> 4 & 1) == 1;
|
||||
boolean tdLte = (content >>> 5 & 1) == 1;
|
||||
boolean other = (content >>> 7 & 1) == 1;
|
||||
return new JCommunicationModuleAttribute(gprs, cdma, tdScdma, wcdma, cdma2000, tdLte, other);
|
||||
}
|
||||
|
||||
public JCommunicationModuleAttribute(boolean gprs, boolean cdma, boolean tdScdma, boolean wcdma, boolean cdma2000, boolean tdLte, boolean other) {
|
||||
this.gprs = gprs;
|
||||
this.cdma = cdma;
|
||||
this.tdScdma = tdScdma;
|
||||
this.wcdma = wcdma;
|
||||
this.cdma2000 = cdma2000;
|
||||
this.tdLte = tdLte;
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
public boolean isGprs() {
|
||||
return gprs;
|
||||
}
|
||||
|
||||
public void setGprs(boolean gprs) {
|
||||
this.gprs = gprs;
|
||||
}
|
||||
|
||||
public boolean isCdma() {
|
||||
return cdma;
|
||||
}
|
||||
|
||||
public void setCdma(boolean cdma) {
|
||||
this.cdma = cdma;
|
||||
}
|
||||
|
||||
public boolean isTdScdma() {
|
||||
return tdScdma;
|
||||
}
|
||||
|
||||
public void setTdScdma(boolean tdScdma) {
|
||||
this.tdScdma = tdScdma;
|
||||
}
|
||||
|
||||
public boolean isWcdma() {
|
||||
return wcdma;
|
||||
}
|
||||
|
||||
public void setWcdma(boolean wcdma) {
|
||||
this.wcdma = wcdma;
|
||||
}
|
||||
|
||||
public boolean isCdma2000() {
|
||||
return cdma2000;
|
||||
}
|
||||
|
||||
public void setCdma2000(boolean cdma2000) {
|
||||
this.cdma2000 = cdma2000;
|
||||
}
|
||||
|
||||
public boolean isTdLte() {
|
||||
return tdLte;
|
||||
}
|
||||
|
||||
public void setTdLte(boolean tdLte) {
|
||||
this.tdLte = tdLte;
|
||||
}
|
||||
|
||||
public boolean isOther() {
|
||||
return other;
|
||||
}
|
||||
|
||||
public void setOther(boolean other) {
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "JCommunicationModuleAttribute{" +
|
||||
"gprs=" + gprs +
|
||||
", cdma=" + cdma +
|
||||
", tdScdma=" + tdScdma +
|
||||
", wcdma=" + wcdma +
|
||||
", cdma2000=" + cdma2000 +
|
||||
", tdLte=" + tdLte +
|
||||
", other=" + other +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.genersoft.iot.vmp.jt1078.bean;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
/**
|
||||
* JT GNSS 模块属性
|
||||
*/
|
||||
@Schema(description = "JTGNSS 模块属性")
|
||||
public class JGnssAttribute {
|
||||
|
||||
private boolean gps;
|
||||
|
||||
private boolean beidou;
|
||||
|
||||
private boolean glonass ;
|
||||
|
||||
private boolean gaLiLeo;
|
||||
|
||||
public static JGnssAttribute getInstance(short content) {
|
||||
boolean gps = (content & 1) == 1;
|
||||
boolean beidou = (content >>> 1 & 1) == 1;
|
||||
boolean glonass = (content >>> 2 & 1) == 1;
|
||||
boolean gaLiLeo = (content >>> 3 & 1) == 1;
|
||||
return new JGnssAttribute(gps, beidou, glonass, gaLiLeo);
|
||||
}
|
||||
|
||||
public JGnssAttribute(boolean gps, boolean beidou, boolean glonass, boolean gaLiLeo) {
|
||||
this.gps = gps;
|
||||
this.beidou = beidou;
|
||||
this.glonass = glonass;
|
||||
this.gaLiLeo = gaLiLeo;
|
||||
}
|
||||
|
||||
public boolean isGps() {
|
||||
return gps;
|
||||
}
|
||||
|
||||
public void setGps(boolean gps) {
|
||||
this.gps = gps;
|
||||
}
|
||||
|
||||
public boolean isBeidou() {
|
||||
return beidou;
|
||||
}
|
||||
|
||||
public void setBeidou(boolean beidou) {
|
||||
this.beidou = beidou;
|
||||
}
|
||||
|
||||
public boolean isGlonass() {
|
||||
return glonass;
|
||||
}
|
||||
|
||||
public void setGlonass(boolean glonass) {
|
||||
this.glonass = glonass;
|
||||
}
|
||||
|
||||
public boolean isGaLiLeo() {
|
||||
return gaLiLeo;
|
||||
}
|
||||
|
||||
public void setGaLiLeo(boolean gaLiLeo) {
|
||||
this.gaLiLeo = gaLiLeo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "JGnssAttribute{" +
|
||||
"gps=" + gps +
|
||||
", beidou=" + beidou +
|
||||
", glonass=" + glonass +
|
||||
", gaLiLeo=" + gaLiLeo +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,129 @@
|
||||
package com.genersoft.iot.vmp.jt1078.bean;
|
||||
|
||||
import com.genersoft.iot.vmp.jt1078.bean.common.ConfigAttribute;
|
||||
import com.genersoft.iot.vmp.jt1078.bean.config.CameraTimer;
|
||||
import com.genersoft.iot.vmp.jt1078.bean.config.CollisionAlarmParams;
|
||||
import com.genersoft.iot.vmp.jt1078.bean.config.GnssPositioningMode;
|
||||
import com.genersoft.iot.vmp.jt1078.bean.config.IllegalDrivingPeriods;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
/**
|
||||
* JT 终端属性
|
||||
*/
|
||||
@Schema(description = "JT终端属性")
|
||||
public class JTDeviceAttribute {
|
||||
|
||||
@Schema(description = "终端类型")
|
||||
private JTDeviceType type;
|
||||
|
||||
@Schema(description = "制造商 ID")
|
||||
private String makerId;
|
||||
|
||||
@Schema(description = "终端型号")
|
||||
private String deviceModel;
|
||||
|
||||
@Schema(description = "终端 ID")
|
||||
private String terminalId;
|
||||
|
||||
@Schema(description = "终端 SIM卡 ICCID")
|
||||
private String iccId;
|
||||
|
||||
@Schema(description = "终端硬件版本号")
|
||||
private String hardwareVersion;
|
||||
|
||||
@Schema(description = "固件版本号")
|
||||
private String firmwareVersion ;
|
||||
|
||||
@Schema(description = "GNSS 模块属性")
|
||||
private JGnssAttribute gnssAttribute ;
|
||||
|
||||
@Schema(description = "通信模块属性")
|
||||
private JCommunicationModuleAttribute communicationModuleAttribute ;
|
||||
|
||||
public JTDeviceType getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(JTDeviceType type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getMakerId() {
|
||||
return makerId;
|
||||
}
|
||||
|
||||
public void setMakerId(String makerId) {
|
||||
this.makerId = makerId;
|
||||
}
|
||||
|
||||
public String getDeviceModel() {
|
||||
return deviceModel;
|
||||
}
|
||||
|
||||
public void setDeviceModel(String deviceModel) {
|
||||
this.deviceModel = deviceModel;
|
||||
}
|
||||
|
||||
public String getTerminalId() {
|
||||
return terminalId;
|
||||
}
|
||||
|
||||
public void setTerminalId(String terminalId) {
|
||||
this.terminalId = terminalId;
|
||||
}
|
||||
|
||||
public String getIccId() {
|
||||
return iccId;
|
||||
}
|
||||
|
||||
public void setIccId(String iccId) {
|
||||
this.iccId = iccId;
|
||||
}
|
||||
|
||||
public String getHardwareVersion() {
|
||||
return hardwareVersion;
|
||||
}
|
||||
|
||||
public void setHardwareVersion(String hardwareVersion) {
|
||||
this.hardwareVersion = hardwareVersion;
|
||||
}
|
||||
|
||||
public String getFirmwareVersion() {
|
||||
return firmwareVersion;
|
||||
}
|
||||
|
||||
public void setFirmwareVersion(String firmwareVersion) {
|
||||
this.firmwareVersion = firmwareVersion;
|
||||
}
|
||||
|
||||
public JGnssAttribute getGnssAttribute() {
|
||||
return gnssAttribute;
|
||||
}
|
||||
|
||||
public void setGnssAttribute(JGnssAttribute gnssAttribute) {
|
||||
this.gnssAttribute = gnssAttribute;
|
||||
}
|
||||
|
||||
public JCommunicationModuleAttribute getCommunicationModuleAttribute() {
|
||||
return communicationModuleAttribute;
|
||||
}
|
||||
|
||||
public void setCommunicationModuleAttribute(JCommunicationModuleAttribute communicationModuleAttribute) {
|
||||
this.communicationModuleAttribute = communicationModuleAttribute;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "JTDeviceAttribute{" +
|
||||
"type=" + type +
|
||||
", makerId='" + makerId + '\'' +
|
||||
", deviceModel='" + deviceModel + '\'' +
|
||||
", terminalId='" + terminalId + '\'' +
|
||||
", iccId='" + iccId + '\'' +
|
||||
", hardwareVersion='" + hardwareVersion + '\'' +
|
||||
", firmwareVersion='" + firmwareVersion + '\'' +
|
||||
", gnssAttribute=" + gnssAttribute +
|
||||
", communicationModuleAttribute=" + communicationModuleAttribute +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
package com.genersoft.iot.vmp.jt1078.bean;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
/**
|
||||
* JT 终端类型
|
||||
*/
|
||||
@Schema(description = "JT终端参数设置")
|
||||
public class JTDeviceType {
|
||||
|
||||
/**
|
||||
* 适用客运车辆
|
||||
*/
|
||||
private boolean passengerVehicles;
|
||||
|
||||
/**
|
||||
* 适用危险品车辆
|
||||
*/
|
||||
private boolean dangerousGoodsVehicles;
|
||||
|
||||
/**
|
||||
* 普通货运车辆
|
||||
*/
|
||||
private boolean freightVehicles;
|
||||
|
||||
/**
|
||||
* 出租车辆
|
||||
*/
|
||||
private boolean rentalVehicles;
|
||||
|
||||
/**
|
||||
* 支持硬盘录像
|
||||
*/
|
||||
private boolean hardDiskRecording;
|
||||
|
||||
/**
|
||||
* false:一体机 ,true:分体机
|
||||
*/
|
||||
private boolean splittingMachine;
|
||||
|
||||
/**
|
||||
* 适用挂车
|
||||
*/
|
||||
private boolean trailer;
|
||||
|
||||
public static JTDeviceType getInstance(int content) {
|
||||
boolean passengerVehicles = (content & 1) == 1;
|
||||
boolean dangerousGoodsVehicles = (content >>> 1 & 1) == 1;
|
||||
boolean freightVehicles = (content >>> 2 & 1) == 1;
|
||||
boolean rentalVehicles = (content >>> 3 & 1) == 1;
|
||||
boolean hardDiskRecording = (content >>> 6 & 1) == 1;
|
||||
boolean splittingMachine = (content >>> 7 & 1) == 1;
|
||||
boolean trailer = (content >>> 8 & 1) == 1;
|
||||
return new JTDeviceType(passengerVehicles, dangerousGoodsVehicles, freightVehicles, rentalVehicles, hardDiskRecording, splittingMachine, trailer);
|
||||
}
|
||||
|
||||
public JTDeviceType(boolean passengerVehicles, boolean dangerousGoodsVehicles, boolean freightVehicles, boolean rentalVehicles, boolean hardDiskRecording, boolean splittingMachine, boolean trailer) {
|
||||
this.passengerVehicles = passengerVehicles;
|
||||
this.dangerousGoodsVehicles = dangerousGoodsVehicles;
|
||||
this.freightVehicles = freightVehicles;
|
||||
this.rentalVehicles = rentalVehicles;
|
||||
this.hardDiskRecording = hardDiskRecording;
|
||||
this.splittingMachine = splittingMachine;
|
||||
this.trailer = trailer;
|
||||
}
|
||||
|
||||
public boolean isPassengerVehicles() {
|
||||
return passengerVehicles;
|
||||
}
|
||||
|
||||
public void setPassengerVehicles(boolean passengerVehicles) {
|
||||
this.passengerVehicles = passengerVehicles;
|
||||
}
|
||||
|
||||
public boolean isDangerousGoodsVehicles() {
|
||||
return dangerousGoodsVehicles;
|
||||
}
|
||||
|
||||
public void setDangerousGoodsVehicles(boolean dangerousGoodsVehicles) {
|
||||
this.dangerousGoodsVehicles = dangerousGoodsVehicles;
|
||||
}
|
||||
|
||||
public boolean isFreightVehicles() {
|
||||
return freightVehicles;
|
||||
}
|
||||
|
||||
public void setFreightVehicles(boolean freightVehicles) {
|
||||
this.freightVehicles = freightVehicles;
|
||||
}
|
||||
|
||||
public boolean isRentalVehicles() {
|
||||
return rentalVehicles;
|
||||
}
|
||||
|
||||
public void setRentalVehicles(boolean rentalVehicles) {
|
||||
this.rentalVehicles = rentalVehicles;
|
||||
}
|
||||
|
||||
public boolean isHardDiskRecording() {
|
||||
return hardDiskRecording;
|
||||
}
|
||||
|
||||
public void setHardDiskRecording(boolean hardDiskRecording) {
|
||||
this.hardDiskRecording = hardDiskRecording;
|
||||
}
|
||||
|
||||
public boolean isSplittingMachine() {
|
||||
return splittingMachine;
|
||||
}
|
||||
|
||||
public void setSplittingMachine(boolean splittingMachine) {
|
||||
this.splittingMachine = splittingMachine;
|
||||
}
|
||||
|
||||
public boolean isTrailer() {
|
||||
return trailer;
|
||||
}
|
||||
|
||||
public void setTrailer(boolean trailer) {
|
||||
this.trailer = trailer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "JTDeviceType{" +
|
||||
"passengerVehicles=" + passengerVehicles +
|
||||
", dangerousGoodsVehicles=" + dangerousGoodsVehicles +
|
||||
", freightVehicles=" + freightVehicles +
|
||||
", rentalVehicles=" + rentalVehicles +
|
||||
", hardDiskRecording=" + hardDiskRecording +
|
||||
", splittingMachine=" + splittingMachine +
|
||||
", trailer=" + trailer +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user