瀏覽代碼

[Config][DM30][DW30][General]: Modfiy the default configurations for DM30/DW30, remove the OCPP test setup.

2020.06.30 / TC Hsu

Actions: Remove the OCPP server URL, Wi-Fi SSID and password, it is temporary setup for OCPP test use. Change the default setup of offline policy to free charging for engineering stage(EVT and DVT), it should be modify to local white card list when the DVT stage is pass.

Image version    : N/A
Image checksum   : N/A

Hardware PWB P/N : N/A
Hardware Version : N/A

Files:

	modified:   EVSE/Projects/DM30/Apps/FactoryConfig.c
	modified:   EVSE/Projects/DW30/Apps/FactoryConfig.c
TC_Hsu 4 年之前
父節點
當前提交
e9be2d4e62
共有 2 個文件被更改,包括 15 次插入11 次删除
  1. 8 6
      EVSE/Projects/DM30/Apps/FactoryConfig.c
  2. 7 5
      EVSE/Projects/DW30/Apps/FactoryConfig.c

+ 8 - 6
EVSE/Projects/DM30/Apps/FactoryConfig.c

@@ -105,7 +105,7 @@ int main(int argc,char *argv[])
      */
     //********** System **********// udhcpc -i eth1 -s ./dhcp_script/eth1.script
     //
-    strcpy((char *)SysConfig.ModelName, "DWWU301U00W1PH");
+    strcpy((char *)SysConfig.ModelName, "DMYE301E00W2PH");
     strcpy((char *)SysConfig.SerialNumber, "");
 
     memset(SysConfig.SystemId, 0x00, sizeof(SysConfig.SystemId));
@@ -149,8 +149,8 @@ int main(int argc,char *argv[])
     strcpy((char *) SysConfig.Eth1Interface.EthSubmaskAddress, "255.255.255.0");
     strcpy((char *) SysConfig.Eth1Interface.EthGatewayAddress, "192.168.0.254");
     SysConfig.AthInterface.WifiMode = _SYS_WIFI_MODE_AP;
-    strcpy((char *) SysConfig.AthInterface.WifiSsid, "B1_I3");
-    strcpy((char *) SysConfig.AthInterface.WifiPassword, "062547588");
+    strcpy((char *) SysConfig.AthInterface.WifiSsid, "");
+    strcpy((char *) SysConfig.AthInterface.WifiPassword, "");
     SysConfig.AthInterface.WifiRssi = 0;
     SysConfig.AthInterface.WifiDhcpServer = 0;
     SysConfig.AthInterface.WifiDhcpClient = 0;
@@ -176,11 +176,13 @@ int main(int argc,char *argv[])
     strcpy((char *)SysConfig.chargePointVendor, "Phihong Technology");
     //********** Backend **********//
     SysConfig.BackendConnTimeout = 300; //300 seconds
-    SysConfig.OfflinePolicy = OFF_POLICY_LOCALLIST;
+    SysConfig.OfflinePolicy = OFF_POLICY_FREE;
     SysConfig.OfflineMaxChargeEnergy = 0;
     SysConfig.OfflineMaxChargeDuration = 0;
-    strcpy((char *) SysConfig.OcppServerURL, "ws://test.evsocket.phihong.com.cn:2012/");
-    strcpy((char *) SysConfig.ChargeBoxId, "DemoDC");
+    //strcpy((char *) SysConfig.OcppServerURL, "ws://test.evsocket.phihong.com.cn:2012/");
+    //strcpy((char *) SysConfig.ChargeBoxId, "DemoDC");
+    strcpy((char *) SysConfig.OcppServerURL, "");
+    strcpy((char *) SysConfig.ChargeBoxId, "");
 
     //copy default configuration to pointer
     memcpy(ptr,&SysConfig,sizeof(struct SysConfigData));

+ 7 - 5
EVSE/Projects/DW30/Apps/FactoryConfig.c

@@ -149,8 +149,8 @@ int main(int argc,char *argv[])
     strcpy((char *) SysConfig.Eth1Interface.EthSubmaskAddress, "255.255.255.0");
     strcpy((char *) SysConfig.Eth1Interface.EthGatewayAddress, "192.168.0.254");
     SysConfig.AthInterface.WifiMode = _SYS_WIFI_MODE_AP;
-    strcpy((char *) SysConfig.AthInterface.WifiSsid, "B1_I3");
-    strcpy((char *) SysConfig.AthInterface.WifiPassword, "062547588");
+    strcpy((char *) SysConfig.AthInterface.WifiSsid, "");
+    strcpy((char *) SysConfig.AthInterface.WifiPassword, "");
     SysConfig.AthInterface.WifiRssi = 0;
     SysConfig.AthInterface.WifiDhcpServer = 0;
     SysConfig.AthInterface.WifiDhcpClient = 0;
@@ -176,11 +176,13 @@ int main(int argc,char *argv[])
     strcpy((char *)SysConfig.chargePointVendor, "Phihong Technology");
     //********** Backend **********//
     SysConfig.BackendConnTimeout = 300; //300 seconds
-    SysConfig.OfflinePolicy = OFF_POLICY_LOCALLIST;
+    SysConfig.OfflinePolicy = OFF_POLICY_FREE;
     SysConfig.OfflineMaxChargeEnergy = 0;
     SysConfig.OfflineMaxChargeDuration = 0;
-    strcpy((char *) SysConfig.OcppServerURL, "ws://test.evsocket.phihong.com.cn:2012/");
-    strcpy((char *) SysConfig.ChargeBoxId, "DemoDC");
+    //strcpy((char *) SysConfig.OcppServerURL, "ws://test.evsocket.phihong.com.cn:2012/");
+    //strcpy((char *) SysConfig.ChargeBoxId, "DemoDC");
+    strcpy((char *) SysConfig.OcppServerURL, "");
+    strcpy((char *) SysConfig.ChargeBoxId, "");
 
     //copy default configuration to pointer
     memcpy(ptr,&SysConfig,sizeof(struct SysConfigData));