Browse Source

2022-02-15 / Eason Yang
Action
1. Added : TOG factory default setting.

File
1. Module_FactoryConfig.c
Action 1

FIRMWARE VERSION: V0.70.XX.XXXX.PX

8009 3 years ago
parent
commit
5654122a40
1 changed files with 17 additions and 0 deletions
  1. 17 0
      EVSE/Projects/AW-Regular/Apps/Module_FactoryConfig.c

+ 17 - 0
EVSE/Projects/AW-Regular/Apps/Module_FactoryConfig.c

@@ -337,6 +337,23 @@ int main(int argc, char *argv[])
 		strcpy((char*)SysConfig.chargePointVendor, "ChargeLab");
 		SysConfig.OfflinePolicy = 0;			// 0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
 	}
+	else if(SysConfig.ModelName[12] == 'T')
+	{
+		// ChargeLab customization configuration
+		SysConfig.AuthorisationMode = 0;	// 0: enable, 1: disable
+		SysConfig.RfidCardNumEndian = 1;	// 0: Little endian	1: Big endian
+		
+		SysConfig.AthInterface.WifiMode = 1;		// 0: Disable 1: Infrastructure client 2: Infrastructure server	3: Ad-Hoc
+		strcpy((char*)SysConfig.AthInterface.WifiSsid, "ChargeLab-EVC");
+		strcpy((char*)SysConfig.AthInterface.WifiPassword, "evc-pwd-default-21");
+		
+		strcpy((char*)SysConfig.TelecomInterface.TelcomApn, "m2minternet.apn");
+		
+		strcpy((char*)SysConfig.OcppServerURL, "wss://ocpp.io");
+		sprintf((char*)SysConfig.ChargeBoxId, "%s%s", SysConfig.ModelName, SysConfig.SerialNumber);
+		strcpy((char*)SysConfig.chargePointVendor, "ChargeLab");
+		SysConfig.OfflinePolicy = 0;			// 0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
+	}
 	else
 	{