| 
					
				 | 
			
			
				@@ -224,6 +224,7 @@ public class CctvControlService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         synchronized (cctv.getParamVal()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                cctv.getParamVal().setRequest(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 cctv.getParamVal().setCompleted(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ByteBuffer sendBuffer = cctv.getReqParam().getByteBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (cctv.sendData(sendBuffer, 0, "cctv_ParamReq")) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -241,6 +242,7 @@ public class CctvControlService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } catch (InterruptedException e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 result.setResult(9, "CCTV PARAMETER 값조회 명령 전송 중 오류가 발생하였습니다."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            cctv.getParamVal().setRequest(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -261,14 +263,16 @@ public class CctvControlService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         CctvPresetControlDto.CctvPresetValueRes result = new CctvPresetControlDto.CctvPresetValueRes(0, "success"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         synchronized (cctv.getPsetVal()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 cctv.getPsetVal().setCompleted(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                CctvReqPresetQry pkt = new CctvReqPresetQry(cctv.getAddress()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                pkt.setValue((byte)0x00); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ByteBuffer sendBuffer = pkt.getByteBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (cctv.sendData(sendBuffer, 0, "cctv_PresetQry")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                cctv.getPsetVal().setRequest(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                CctvReqPresetQry pkt = new CctvReqPresetQry(cctv.getAddress()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                pkt.setValue((byte)0x00); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                ByteBuffer sendBuffer = pkt.getByteBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//                if (cctv.sendData(sendBuffer, 0, "cctv_PresetQry")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ByteBuffer sendBuffer = cctv.getReqState().getByteBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (cctv.sendData(sendBuffer, 0, "cctv_StateReq")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     log.info("PRESET QRY send success."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     cctv.getPsetVal().wait(5000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (cctv.getPsetVal().isCompleted()) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -283,6 +287,7 @@ public class CctvControlService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } catch (InterruptedException e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 result.setResult(6, "CCTV PRESET 값조회 명령 전송 중 오류가 발생하였습니다."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            cctv.getPsetVal().setRequest(false); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -382,6 +387,12 @@ public class CctvControlService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * CCTV 제어기 리셋 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param req 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public CctvControlDto.CctvControlResetRes controlReset(Long id, CctvControlDto.CctvControlResetReq req) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         log.info("controlReset: {}, {}", id, req); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         TbCctvCtlr cctv = this.requireOne(id); 
			 |