Sfoglia il codice sorgente

2022-02-09 / Eason Yang
Action
1. Added: TOG customized factory settings.

File
1. Module_FactoryConfig.c
Action 1

FIRMWARE VERSION: B0.61.XX.XXXX.PX

8009 3 anni fa
parent
commit
a571e5af6d
1 ha cambiato i file con 19 aggiunte e 0 eliminazioni
  1. 19 0
      EVSE/Projects/AW-CCS/Apps/Module_FactoryConfig.c

+ 19 - 0
EVSE/Projects/AW-CCS/Apps/Module_FactoryConfig.c

@@ -339,6 +339,25 @@ int main(int argc, char *argv[])
 		strcpy((char *)SysConfig.chargePointVendor, "");
 		strcpy((char*)SysConfig.MaintainServerURL, "wss://ocpp.phihong.com.tw:2013/");
 	}
+	else if(SysConfig.ModelName[12] == 'T')
+	{
+		// TOG customization configuration
+		SysConfig.AuthorisationMode = 0;				// 0: enable, 1: disable
+		SysConfig.RfidCardNumEndian = 1;				// 0: Little endian	1: Big endian
+		SysConfig.QRCodeMadeMode = 1;					// for isQRCode=1 ; 0: default	1:customized
+		strcpy((char*)SysConfig.QRCodeContent, "NA");	// for QRCodeMadeMode=1
+
+		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
 	{