diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTDeviceConfig.java b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTDeviceConfig.java index 1c5f65d3f..a8a37edb1 100644 --- a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTDeviceConfig.java +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTDeviceConfig.java @@ -930,6 +930,22 @@ public class JTDeviceConfig { this.canUploadIntervalForChannel2 = canUploadIntervalForChannel2; } + public VideoParam getVideoParam() { + return videoParam; + } + + public void setVideoParam(VideoParam videoParam) { + this.videoParam = videoParam; + } + + public ChannelListParam getChannelListParam() { + return channelListParam; + } + + public void setChannelListParam(ChannelListParam channelListParam) { + this.channelListParam = channelListParam; + } + @Override public String toString() { return "JTDeviceConfig{" + diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/proc/request/J0104.java b/src/main/java/com/genersoft/iot/vmp/jt1078/proc/request/J0104.java index ed5e2bec6..1c316df1c 100644 --- a/src/main/java/com/genersoft/iot/vmp/jt1078/proc/request/J0104.java +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/proc/request/J0104.java @@ -131,6 +131,11 @@ public class J0104 extends Re { Method methodForVideoParam = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), VideoParam.class); methodForVideoParam.invoke(deviceConfig, videoParam); continue; + case "ChannelListParam": + ChannelListParam channelListParam = ChannelListParam.decode(buf); + Method methodForChannelListParam = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), ChannelListParam.class); + methodForChannelListParam.invoke(deviceConfig, channelListParam); + continue; default: System.err.println(field.getGenericType().getTypeName()); continue; diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J8103.java b/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J8103.java index 6741da118..adb56f154 100644 --- a/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J8103.java +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/proc/response/J8103.java @@ -89,6 +89,7 @@ public class J8103 extends Rs { case "CameraTimer": case "GnssPositioningMode": case "VideoParam": + case "ChannelListParam": field.setAccessible(true); JTDeviceSubConfig subConfig = (JTDeviceSubConfig)field.get(config); ByteBuf bytesForIllegalDrivingPeriods = subConfig.encode();