|
@@ -333,44 +333,79 @@ int main(int argc, char *argv[])
|
|
SysConfig.isReqFirstUpgrade = 1;
|
|
SysConfig.isReqFirstUpgrade = 1;
|
|
|
|
|
|
|
|
|
|
- if(SysConfig.ModelName[12] == 'P')
|
|
+ if(SysConfig.ModelName[11] == 'S')
|
|
{
|
|
{
|
|
-
|
|
+ if(SysConfig.ModelName[12] == 'P')
|
|
- strcpy((char*)SysConfig.OcppServerURL, "");
|
|
+ {
|
|
- sprintf((char*)SysConfig.ChargeBoxId, "%s%s", SysConfig.ModelName, SysConfig.SerialNumber);
|
|
+
|
|
- strcpy((char *)SysConfig.chargePointVendor, "");
|
|
+ SysConfig.AuthorisationMode = 0;
|
|
- strcpy((char*)SysConfig.MaintainServerURL, "wss://ocpp.phihong.com.tw:2013/");
|
|
+ SysConfig.AthInterface.WifiMode = 0;
|
|
- }
|
|
+ SysConfig.TelecomInterface.TelcomEnabled = 1;
|
|
- else if(SysConfig.ModelName[12] == 'T')
|
|
+ strcpy((char*)SysConfig.TelecomInterface.TelcomApn, "ESEYE1");
|
|
- {
|
|
+ strcpy((char*)SysConfig.OcppServerURL, "wss://charge.greenlots.com:9092/greenlots/ocpp");
|
|
-
|
|
+ strcpy((char*)SysConfig.ChargeBoxId, "");
|
|
- SysConfig.AuthorisationMode = 0;
|
|
+ strcpy((char *)SysConfig.chargePointVendor, "SRS-Zerova");
|
|
- SysConfig.RfidCardNumEndian = 1;
|
|
+ strcpy((char*)SysConfig.MaintainServerURL, "");
|
|
- SysConfig.QRCodeMadeMode = 1;
|
|
+ }
|
|
- strcpy((char*)SysConfig.QRCodeContent, "NA");
|
|
+ else if(SysConfig.ModelName[12] == 'Z')
|
|
-
|
|
+ {
|
|
- SysConfig.AthInterface.WifiMode = 1;
|
|
+
|
|
- strcpy((char*)SysConfig.AthInterface.WifiSsid, "ChargeLab-EVC");
|
|
+ SysConfig.AuthorisationMode = 1;
|
|
- strcpy((char*)SysConfig.AthInterface.WifiPassword, "evc-pwd-default-21");
|
|
+ SysConfig.AthInterface.WifiMode = 0;
|
|
-
|
|
+ SysConfig.TelecomInterface.TelcomEnabled = 1;
|
|
- strcpy((char*)SysConfig.TelecomInterface.TelcomApn, "m2minternet.apn");
|
|
+ strcpy((char*)SysConfig.TelecomInterface.TelcomApn, "ESEYE1");
|
|
-
|
|
+ strcpy((char*)SysConfig.OcppServerURL, "wss://charge.greenlots.com:9092/greenlots/ocpp");
|
|
- strcpy((char*)SysConfig.OcppServerURL, "wss://ocpp.io");
|
|
+ strcpy((char*)SysConfig.ChargeBoxId, "");
|
|
- sprintf((char*)SysConfig.ChargeBoxId, "%s%s", SysConfig.ModelName, SysConfig.SerialNumber);
|
|
+ strcpy((char *)SysConfig.chargePointVendor, "Amazon");
|
|
- strcpy((char*)SysConfig.chargePointVendor, "ChargeLab");
|
|
+ strcpy((char*)SysConfig.MaintainServerURL, "");
|
|
- SysConfig.OfflinePolicy = 0;
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {}
|
|
}
|
|
}
|
|
- else if(SysConfig.ModelName[12] == 'Z')
|
|
+ else
|
|
{
|
|
{
|
|
-
|
|
+ if(SysConfig.ModelName[12] == 'P')
|
|
- SysConfig.AuthorisationMode = 1;
|
|
+ {
|
|
- SysConfig.AthInterface.WifiMode = 0;
|
|
+
|
|
- strcpy((char*)SysConfig.OcppServerURL, "");
|
|
+ strcpy((char*)SysConfig.OcppServerURL, "");
|
|
- strcpy((char*)SysConfig.ChargeBoxId, "");
|
|
+ sprintf((char*)SysConfig.ChargeBoxId, "%s%s", SysConfig.ModelName, SysConfig.SerialNumber);
|
|
- strcpy((char *)SysConfig.chargePointVendor, "Amazon");
|
|
+ strcpy((char *)SysConfig.chargePointVendor, "");
|
|
|
|
+ strcpy((char*)SysConfig.MaintainServerURL, "wss://ocpp.phihong.com.tw:2013/");
|
|
|
|
+ }
|
|
|
|
+ else if(SysConfig.ModelName[12] == 'T')
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ SysConfig.AuthorisationMode = 0;
|
|
|
|
+ SysConfig.RfidCardNumEndian = 1;
|
|
|
|
+ SysConfig.QRCodeMadeMode = 1;
|
|
|
|
+ strcpy((char*)SysConfig.QRCodeContent, "NA");
|
|
|
|
+
|
|
|
|
+ SysConfig.AthInterface.WifiMode = 1;
|
|
|
|
+ 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;
|
|
|
|
+ }
|
|
|
|
+ else if(SysConfig.ModelName[12] == 'Z')
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ SysConfig.AuthorisationMode = 1;
|
|
|
|
+ SysConfig.AthInterface.WifiMode = 0;
|
|
|
|
+ SysConfig.TelecomInterface.TelcomEnabled = 1;
|
|
|
|
+ strcpy((char*)SysConfig.TelecomInterface.TelcomApn, "ESEYE1");
|
|
|
|
+ strcpy((char*)SysConfig.OcppServerURL, "wss://charge.greenlots.com:9092/greenlots/ocpp");
|
|
|
|
+ strcpy((char*)SysConfig.ChargeBoxId, "");
|
|
|
|
+ strcpy((char *)SysConfig.chargePointVendor, "Amazon");
|
|
|
|
+ strcpy((char*)SysConfig.MaintainServerURL, "");
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {}
|
|
}
|
|
}
|
|
- else
|
|
|
|
- {}
|
|
|
|
|
|
|
|
|
|
|
|
memcpy(ptr,&SysConfig,sizeof(struct SysConfigData));
|
|
memcpy(ptr,&SysConfig,sizeof(struct SysConfigData));
|