Browse Source

德标100A项目

liyi 1 year ago
parent
commit
78ac02917a
2 changed files with 20 additions and 3 deletions
  1. 14 1
      pro/config/cfg.h
  2. 6 2
      pub

+ 14 - 1
pro/config/cfg.h

@@ -24,7 +24,7 @@
 //#define PRJ_TEST
 //#define PRJ_TEST_AC_I1_O1
 //#define PRJ_TEST_AC_I3_O1
-#define PRJ_GOWONE_125A_AC_I3_O1
+//#define PRJ_GOWONE_125A_AC_I3_O1
 //#define PRJ_Malaysia_AC_I3_O1
 //#define PRJ_TEST_AC_I3_O3
 //#define PRJ_ESOUTH_DC_I1_O4_RGB5
@@ -46,6 +46,7 @@
 //#define PRJ_IP_CHONGQING_AC_I1_O1
 //#define PRJ_IP_AOSENS_AC_I1_O1
 //#define PRJ_IP_AOSENS_DC_I_O
+#define PRJ_IP_DEBIAO_AC_I3_O1
 #define USE_MAIL
 #define MAIL_SEND_BUILTIN
 
@@ -566,7 +567,19 @@
     #define USE_BEEP                            1
     #define USE_LED                             1    
     #define BRD_MAX                             1
+#elif (defined PRJ_IP_DEBIAO_AC_I3_O1)
+    #define LANGUAGE                            1
+    #define SMPLE_TIME                          30          //ms
+    #define SAVE_TIME                           60000       //ms
+    #define CASCADE_CNT                         0
 
+    #define PHASE_GROUP                         4
+    #define CHANNEL_DELAY                       8
+    #define PROD_POWER_TYPE                     5
+    #define USE_BEEP                            1 
+    #define BRD_MAX                             3   
+    #define USE_LED                             1 
+ 
 #else
     #error define a PRJ_XXXX please!
 #endif

+ 6 - 2
pub

@@ -32,7 +32,7 @@
 #PRJS="PRJ_2405_AC_I1_O1_OLED"
 #PRJS="PRJ_CHANGCHUN_AC_I1_O1_OLED"
 #PRJS="PRJ_TIDA_AC_I3_O1"
-PRJS="PRJ_BYD_UPS_AC_I1_O1"
+#PRJS="PRJ_BYD_UPS_AC_I1_O1"
 
 #PRJS="PRJ_USASL_AC_I3_O1 PRJ_USASL_AC_I3_O3"
 #PRJS="PRJ_XIAN_AC_I1_O1_P4 PRJ_XIAN_AC_I1_O1_P8"
@@ -48,6 +48,7 @@ PRJS="PRJ_BYD_UPS_AC_I1_O1"
 #PRJS="PRJ_IP_CHONGQING_AC_I1_O1"
 #PRJS="PRJ_IP_AOSENS_AC_I1_O1"
 #PRJS="PRJ_IP_AOSENS_DC_I_O"
+PRJS="PRJ_IP_DEBIAO_AC_I3_O1"
 
 fulldir=$(realpath $0)
 curdir=$(dirname $fulldir)
@@ -183,8 +184,11 @@ function do_copy()
         cp -f $custdir/qt/rgb/Qt_Test        $appdir/
         cp -rf $custdir/qt/rgb/image_qt      $appdir/
         cp -f $custdir/qt/rgb/S90PDUApp      $rootdir/etc/init.d/
-    elif [ "$1" = "PRJ_IP_AC_I3_O1" ];then  
+    elif [ "$1" = "PRJ_IP_AC_I3_O1" ];then
         name=ip_ac_in3_out1_release
+    elif [ "$1" = "PRJ_IP_DEBIAO_AC_I3_O1" ];then
+        name=ip_ac_debiao_in3_out1_release
+        cp -f $custdir/db/pdu_dat_no_sensor.db  $appdir/pdu_dat.db
     elif [ "$1" = "PRJ_IP_AC_I1_O1" ];then  
         name=ip_ac_in1_out1_release
     elif [ "$1" = "PRJ_IP_YUNNAN_AC_I1_O1" ];then