Pārlūkot izejas kodu

[CONFIG][DM30][DW30][OCPP]: Change the factory config for OCPP test

2020.06.08 / TC Hsu

Actions: Modify OCPP related configs, setup default Wi-Fi AP SSID/Password, setup default OCPP server URL and Charge Box ID. Change the off line policy to local list, since the free charging will not get the authorize from OCPP server.

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 gadi atpakaļ
vecāks
revīzija
aaaff145b8

+ 7 - 7
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, "DMYE301E00W2PH");
+    strcpy((char *)SysConfig.ModelName, "DWWU301U00W1PH");
     strcpy((char *)SysConfig.SerialNumber, "");
 
     memset(SysConfig.SystemId, 0x00, sizeof(SysConfig.SystemId));
@@ -148,9 +148,9 @@ int main(int argc,char *argv[])
     strcpy((char *) SysConfig.Eth1Interface.EthIpAddress, "192.168.0.10");
     strcpy((char *) SysConfig.Eth1Interface.EthSubmaskAddress, "255.255.255.0");
     strcpy((char *) SysConfig.Eth1Interface.EthGatewayAddress, "192.168.0.254");
-    SysConfig.AthInterface.WifiMode = 0;
-    strcpy((char *) SysConfig.AthInterface.WifiSsid, "");
-    strcpy((char *) SysConfig.AthInterface.WifiPassword, "");
+    SysConfig.AthInterface.WifiMode = 1;
+    strcpy((char *) SysConfig.AthInterface.WifiSsid, "B1_I3");
+    strcpy((char *) SysConfig.AthInterface.WifiPassword, "062547588");
     SysConfig.AthInterface.WifiRssi = 0;
     SysConfig.AthInterface.WifiDhcpServer = 0;
     SysConfig.AthInterface.WifiDhcpClient = 0;
@@ -176,11 +176,11 @@ int main(int argc,char *argv[])
     strcpy((char *)SysConfig.chargePointVendor, "Phihong Technology");
     //********** Backend **********//
     SysConfig.BackendConnTimeout = 300; //300 seconds
-    SysConfig.OfflinePolicy = OFF_POLICY_FREE;
+    SysConfig.OfflinePolicy = OFF_POLICY_LOCALLIST;
     SysConfig.OfflineMaxChargeEnergy = 0;
     SysConfig.OfflineMaxChargeDuration = 0;
-    strcpy((char *) SysConfig.OcppServerURL, "");
-    strcpy((char *) SysConfig.ChargeBoxId, "");
+    strcpy((char *) SysConfig.OcppServerURL, "ws://test.evsocket.phihong.com.cn:2012/");
+    strcpy((char *) SysConfig.ChargeBoxId, "DemoDC");
 
     //copy default configuration to pointer
     memcpy(ptr,&SysConfig,sizeof(struct SysConfigData));

+ 6 - 6
EVSE/Projects/DW30/Apps/FactoryConfig.c

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