Bläddra i källkod

[WallPadDevService]
1. 쿡탑 파인더 주석처리(현재는 가스만 사용함)
2. 하이브리드 쿡탑 로드 주석처리(현재는 가스만 사용함)
3. 전동커튼 설정에 따로 로그 처리 추가
4. 버전업
- 2022.10.19.01 -> 2023.03.14.01

jglee 2 år sedan
förälder
incheckning
0e5d1b2ccf

+ 1 - 1
WallPadDevService/src/main/AndroidManifest.xml

@@ -1,7 +1,7 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="com.artncore.deviceservice"
     android:versionCode="1"
-    android:versionName="2022.10.19.01">
+    android:versionName="2023.03.14.01">
 
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

+ 49 - 33
WallPadDevService/src/main/java/com/artncore/wallpaddevservice/ServiceMain.java

@@ -703,18 +703,19 @@ public class ServiceMain extends Service {
 
 				else if(attsName.equals("CookTopFinder_Driver"))
 				{
-					///////////////////////////////////////////
-					// CookTopFinder_Driver
-					///////////////////////////////////////////
-
-					// 1. Class 생성
-					cooktopfinder_Controller = new CookTopFinder_Controller();
-
-					// 2. 등록
-					RegistrationDeviceManager = cooktopfinder_Controller;
-
-					// 3. 초기화체크 드라이버 등록
-					ServiceMain.deviceInitChecker.Add(attsName);
+					//2023.03.13 jglee - 하이브리드 쿡탑 과 가스 분별하는 드라이버 사용 안함 주석 처리
+//					///////////////////////////////////////////
+//					// CookTopFinder_Driver
+//					///////////////////////////////////////////
+//
+//					// 1. Class 생성
+//					cooktopfinder_Controller = new CookTopFinder_Controller();
+//
+//					// 2. 등록
+//					RegistrationDeviceManager = cooktopfinder_Controller;
+//
+//					// 3. 초기화체크 드라이버 등록
+//					ServiceMain.deviceInitChecker.Add(attsName);
 
 				}
 				else if (attsName.equals("GasValve_Driver")) {
@@ -735,7 +736,8 @@ public class ServiceMain extends Service {
 					// 2. 등록
 					RegistrationDeviceManager = gasValve_Controller;
 
-					bSetDeviceHandler = false;
+					//2023.03.13 jglee - 하이브리드 쿡탑 과 가스 분별하는 드라이버 사용 안함 주석 처리
+					//bSetDeviceHandler = false;
 
 					// 3. 초기화체크 드라이버 등록
 					ServiceMain.deviceInitChecker.Add(attsName);
@@ -746,17 +748,18 @@ public class ServiceMain extends Service {
 					// CookTop_Driver
 					///////////////////////////////////////////
 
+					//2023.03.13 jglee - 하이브리드 쿡탑 과 가스 분별하는 드라이버 사용 안함 주석 처리
 					// 0. 로딩여부 판단
 					// 1. Class 생성
-					cooktop_Controller = new Cooktop_Controller();
-
-					// 2. 등록
-					RegistrationDeviceManager = cooktop_Controller;
-
-					bSetDeviceHandler = false;
-
-					// 3. 초기화체크 드라이버 등록
-					ServiceMain.deviceInitChecker.Add(attsName);
+//					cooktop_Controller = new Cooktop_Controller();
+//
+//					// 2. 등록
+//					RegistrationDeviceManager = cooktop_Controller;
+//
+//					bSetDeviceHandler = false;
+//
+//					// 3. 초기화체크 드라이버 등록
+//					ServiceMain.deviceInitChecker.Add(attsName);
 				}
 				else if (attsName.equals("MultiSwitch_Driver")) {
 					///////////////////////////////////////////
@@ -1458,15 +1461,21 @@ public class ServiceMain extends Service {
 					///////////////////////////////////////////
 					// Curtain_LivingRoom_Driver
 					///////////////////////////////////////////
+					WallpadDeviceSet mWallpadDeviceSet = new WallpadDeviceSet(svcContext);
+					boolean isUseShading = mWallpadDeviceSet.Get_Shading_Use();
+					mWallpadDeviceSet.closeDB();
+					if(isUseShading)
+					{
+						// 1. Class 생성 (거실)
+						CurtainV1_LivingRoom_controller = new CurtainV1_Controller(false);
 
-					// 1. Class 생성 (거실)
-					CurtainV1_LivingRoom_controller = new CurtainV1_Controller(false);
+						// 2. 등록
+						RegistrationDeviceManager = CurtainV1_LivingRoom_controller;
 
-					// 2. 등록
-					RegistrationDeviceManager = CurtainV1_LivingRoom_controller;
+						// 3. 초기화체크 드라이버 등록
+						ServiceMain.deviceInitChecker.Add(attsName);
+					}
 
-					// 3. 초기화체크 드라이버 등록
-					ServiceMain.deviceInitChecker.Add(attsName);
 				}
 				else if (attsName.equals("Curtain_Room_Driver")) {
 					///////////////////////////////////////////
@@ -1474,13 +1483,20 @@ public class ServiceMain extends Service {
 					///////////////////////////////////////////
 
 					// 1. Class 생성 (거실)
-					CurtainV1_Room_controller = new CurtainV1_Controller(true);
+					WallpadDeviceSet mWallpadDeviceSet = new WallpadDeviceSet(svcContext);
+					boolean isUseShading = mWallpadDeviceSet.Get_Shading_Use();
+					mWallpadDeviceSet.closeDB();
+					if(isUseShading)
+					{
+						CurtainV1_Room_controller = new CurtainV1_Controller(true);
 
-					// 2. 등록
-					RegistrationDeviceManager = CurtainV1_Room_controller;
+						// 2. 등록
+						RegistrationDeviceManager = CurtainV1_Room_controller;
+
+						// 3. 초기화체크 드라이버 등록
+						ServiceMain.deviceInitChecker.Add(attsName);
+					}
 
-					// 3. 초기화체크 드라이버 등록
-					ServiceMain.deviceInitChecker.Add(attsName);
 				}
 
                 if (RegistrationDeviceManager != null) {