|
|
@@ -108,6 +108,9 @@ public class CheckSensorFragment extends Fragment {
|
|
|
SmartDcamDetectReceiver smartDcamDetectReceiver;
|
|
|
private SmartKeyRfDoorAPI smartKeyRfDoorAPI = null;
|
|
|
|
|
|
+ public static final String BR_STRANGEDETECT_TESTMODE = "Strange_TestMode"; // jglee 20230322 거동 수상자 테스트 모드 때문에 추가(관리자 설정 센서에서는 1회 감지만으로도 알람이 울려야 하기 추가)
|
|
|
+
|
|
|
+
|
|
|
// constructor
|
|
|
public CheckSensorFragment() {
|
|
|
}
|
|
|
@@ -471,6 +474,24 @@ public class CheckSensorFragment extends Fragment {
|
|
|
LogUtil.errorLogInfo("", TAG, e);
|
|
|
}
|
|
|
bRuuning = true;
|
|
|
+
|
|
|
+ byte LED_AUTO_ON = (byte) 0x05;
|
|
|
+ byte LED_AUTO_OFF = (byte) 0x06;
|
|
|
+ byte STATUS_AUTO_ON = (byte) 0x02;
|
|
|
+ byte STATUS_AUTO_OFF = (byte) 0x03;
|
|
|
+ // jglee 20230322 거동 수상자 테스트 모드 때문에 추가(관리자 설정 센서에서는 1회 감지만으로도 알람이 울려야 하기 추가)
|
|
|
+ if(smartKeyRfDoorAPI != null)
|
|
|
+ {
|
|
|
+ //여기서 Test모드 설정
|
|
|
+ Log.d(TAG, "jglee - 테스트 모드 시작");
|
|
|
+ Intent StrangeDetecTestMode_Intent = new Intent();
|
|
|
+ StrangeDetecTestMode_Intent.setAction(BR_STRANGEDETECT_TESTMODE);
|
|
|
+ StrangeDetecTestMode_Intent.putExtra("Value", true);
|
|
|
+ getContext().sendBroadcast(StrangeDetecTestMode_Intent);
|
|
|
+ smartKeyRfDoorAPI.SetCAMERAmode((byte) STATUS_AUTO_OFF);
|
|
|
+ smartKeyRfDoorAPI.SetLEDmode((byte) LED_AUTO_ON);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -789,7 +810,7 @@ public class CheckSensorFragment extends Fragment {
|
|
|
Log.i(TAG, "Receive Notify BR "+ define.NOTIFY_ACNAME + " : " + kind);
|
|
|
switch (kind)
|
|
|
{
|
|
|
- case define.NOTIFY_SMART_DCAM_DETECT:
|
|
|
+ case define.NOTIFY_SMART_DCAM_DETECT_MODE:
|
|
|
Log.i(TAG, "[onReceive] - SMART DCAM DETECT !!!!!!!!!!!");
|
|
|
mButtonList.get(SmartDcamIndex).setEnabled(true);
|
|
|
mWpadSound.Play(SND.effect.TOUCH_LATCHED);
|