Browse Source

[WallPadMain]
1. App Ver. 갱신
- 2022.05.12.01
2. 최신 WallPadAPI 적용
- API Ver.: 2022.05.12.01
- 무인경비 단자대 연동 드라이버 API 기능 개선
3. device_bootup.request 메시지를 전송하지 안도록 수정
- 해당 제품은 네트워크 제품이 아니므로 기능을 비활성화 한다.

[WallPadAPI]
1. API Ver. 갱신
- 2022.05.12.01
2. 무인경비 단자대 연동 드라이버 기능 개선
- BR 명칭 직관적으로 통일
> 기존
. public static final String BR_ACTION_NAME = "HOME_AUTOMATION_CALL";
. public static final String BR_ACTION_NAME_OPTION = "HOME_AUTOMATION_CALL_OPTION";
. public static final String BR_ACTION_NAME = "HOME_AUTOMATION_CALL_STATUS";
. public static final String BR_ACTION_NAME = "HOME_AUTOMATION_EMERGENCY";
. public static final String BR_ACTION_NAME = "HOME_AUTOMATION_ETC";
> 변경
. public static final String BR_HOME_AUTOMATION_CALL = "BR_HOME_AUTOMATION_CALL";
. public static final String BR_HOME_AUTOMATION_CALL_OPTION = "BR_HOME_AUTOMATION_CALL_OPTION";
. public static final String BR_HOME_AUTOMATION_CALL_STATUS = "BR_HOME_AUTOMATION_CALL_STATUS";
. public static final String BR_HOME_AUTOMATION_EMERGENCY = "BR_HOME_AUTOMATION_EMERGENCY";
. public static final String BR_HOME_AUTOMATION_ETC = "BR_HOME_AUTOMATION_ETC";
- 로그 출력 메시지 정리
- WallPadCallLive 플래그 추가
> 월패드 통화앱 실행여부 플래그 설정기능 추가
. public void setWallPadCallLive(boolean bCallWAppLive)
> 해당 플래그를 참조하여 신규콜이 수신된 경우 통화앱 실행 여부를 결정한다.

Jeffrey Nam 3 years ago
parent
commit
0e2308ca79

BIN
WallPadMain/libs/WallPadAPI.jar


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

@@ -1,7 +1,7 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="kr.co.icontrols.wallpadmain"
     android:versionCode="17"
-    android:versionName="2022.01.06.01">
+    android:versionName="2022.05.12.01">
 
     <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
 	<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

+ 10 - 7
WallPadMain/src/main/java/kr/co/icontrols/wallpadmain/MainActivity.java

@@ -1491,12 +1491,15 @@ public class MainActivity extends WpadActivity {
             	}
             }
             else if (msg.what == 10) {
-            	// 부트업 실패시 5초 간격으로 보내도록 수정
-            	Log.d(TAG , "NOTIFY_SENDBOOTUP_FAIL Retry!!!!");
-            	Intent Newintent = new Intent();
-				Newintent.setAction(define.NOTIFY_ACNAME);
-				Newintent.putExtra(define.NOTIBR_KIND,Common.DEVICE_BOOTUP_RETRY);
-				sendBroadcast(Newintent);	
+                if (Version.getModelType() != MODEL_TYPE.IHN_1010_I_ALT) {
+                    // IHN-1010-I-ALT는 단지망 연동 버전이 아니므로 device_bootup.request를 전송하지 않는다.
+                    // 부트업 실패시 5초 간격으로 보내도록 수정
+                    Log.d(TAG , "NOTIFY_SENDBOOTUP_FAIL Retry!!!!");
+                    Intent Newintent = new Intent();
+                    Newintent.setAction(define.NOTIFY_ACNAME);
+                    Newintent.putExtra(define.NOTIBR_KIND,Common.DEVICE_BOOTUP_RETRY);
+                    sendBroadcast(Newintent);
+                }
             }
         }
     };
@@ -2537,7 +2540,7 @@ public class MainActivity extends WpadActivity {
                             WallPadiMAPNotifyAPI notify = new WallPadiMAPNotifyAPI(getApplicationContext());
                             notify.SetSocketWaitCount(3000);
                             notify.SetServerIPcfg(strServerIP, nServerPort);
-                            notify.Send_Device_BootUP(getMainVersion(), Setting_Version , svrVersion );
+                            notify.Send_Device_BootUP(getMainVersion(), Setting_Version , svrVersion);
 						}
 					} catch (Exception e) {
 						e.printStackTrace();

+ 8 - 4
WallPadMain/src/main/java/kr/co/icontrols/wallpadmain/util/iMapServer.java

@@ -2573,10 +2573,14 @@ public class iMapServer extends Service {
 
         mIOInterface = new IOInterface(getApplicationContext(), mWallPadAPI);
 
-		Intent notiIntent = new Intent();
-		notiIntent.setAction(define.NOTIFY_ACNAME);
-		notiIntent.putExtra(define.NOTIBR_KIND, define.NOTIFY_IMAPSERVER_START);
-		getApplicationContext().sendBroadcast(notiIntent);
+        if (Version.getModelType() != MODEL_TYPE.IHN_1010_I_ALT) {
+            // IHN-1010-I-ALT는 네트워크 버전이 아니므로 device_bootup을 전송하지 않는다. (iMapServer service는 부팅과 동시에 자동으로 실행되므로 메인앱에서 실행할 필요가 없음)
+            // 아래 BR은 device_bootup을 전송하기위한 BR임
+            Intent notiIntent = new Intent();
+            notiIntent.setAction(define.NOTIFY_ACNAME);
+            notiIntent.putExtra(define.NOTIBR_KIND, define.NOTIFY_IMAPSERVER_START);
+            getApplicationContext().sendBroadcast(notiIntent);
+        }
 
 		CheckMainStatus();