1078-图像分析报警参数设置

This commit is contained in:
648540858
2024-05-24 00:15:52 +08:00
parent 1e9cdfe87f
commit 8be6979911
5 changed files with 93 additions and 1 deletions

View File

@@ -150,6 +150,11 @@ public class J0104 extends Re {
Method methodForVideoAlarmBit = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), VideoAlarmBit.class);
methodForVideoAlarmBit.invoke(deviceConfig, videoAlarmBit);
continue;
case "AnalyzeAlarmParam":
AnalyzeAlarmParam analyzeAlarmParam = AnalyzeAlarmParam.decode(buf);
Method methodForAnalyzeAlarmParam = deviceConfig.getClass().getDeclaredMethod("set" + StringUtils.capitalize(field.getName()), AnalyzeAlarmParam.class);
methodForAnalyzeAlarmParam.invoke(deviceConfig, analyzeAlarmParam);
continue;
default:
System.err.println(field.getGenericType().getTypeName());
continue;

View File

@@ -94,6 +94,7 @@ public class J8103 extends Rs {
case "AlarmRecordingParam":
case "AlarmShielding":
case "VideoAlarmBit":
case "AnalyzeAlarmParam":
field.setAccessible(true);
JTDeviceSubConfig subConfig = (JTDeviceSubConfig)field.get(config);
ByteBuf bytesForIllegalDrivingPeriods = subConfig.encode();