| 
					
				 | 
			
			
				@@ -86,8 +86,7 @@ public class CctvControlService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return new CctvStatusDto.CctvStatusDtoRes(2, "CCTV 제어기와 통신연결이 되어 있지 않습니다.", null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        CctvStatusDto.CctvStatusDtoRes result = new CctvStatusDto.CctvStatusDtoRes(0, "success", cctv.getStts().toDto()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return new CctvStatusDto.CctvStatusDtoRes(0, "success", cctv.getStts().toDto()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -127,7 +126,7 @@ public class CctvControlService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             byte ptz = pkt.setPtzValue((byte) pan, (byte) tilt, (byte) zoom, (byte) focus, (byte) panSped, (byte) tiltSped, (byte) zoomSped, (byte) focusSped); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             log.info("PTZ Control: " + ByteUtils.byteToBitString(ptz)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ByteBuffer sendBuffer = pkt.getByteBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (cctv.sendData(sendBuffer, 0, "cctv_StateReq")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (cctv.sendData(sendBuffer, 0, "cctv_PtzStart")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 log.info("{} send success.", cmdDesc); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 result.setResult(4, "CCTV PTZ 시작 명령 전송이 실패하였습니다."); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -137,7 +136,7 @@ public class CctvControlService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // stop 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             CctvReqPtzCtrl pkt = new CctvReqPtzCtrl(cctv.getAddress()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ByteBuffer sendBuffer = pkt.getByteBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (cctv.sendData(sendBuffer, 0, "cctv_StateReq")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (cctv.sendData(sendBuffer, 0, "cctv_PtzStop")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 log.info("{} STOP send success.", cmdDesc); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 result.setResult(4, "CCTV PTZ 정지 명령 전송이 실패하였습니다."); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -272,7 +271,7 @@ public class CctvControlService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //                ByteBuffer sendBuffer = pkt.getByteBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //                if (cctv.sendData(sendBuffer, 0, "cctv_PresetQry")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 ByteBuffer sendBuffer = cctv.getReqState().getByteBuffer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                if (cctv.sendData(sendBuffer, 0, "cctv_StateReq")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (cctv.sendData(sendBuffer, 0, "cctv_PresetQry")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     log.info("PRESET QRY send success."); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     cctv.getPsetVal().wait(5000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (cctv.getPsetVal().isCompleted()) { 
			 |