|
@@ -339,10 +339,81 @@ int main(int argc, char *argv[])
|
|
|
strcpy((char *)SysConfig.chargePointVendor, "");
|
|
|
strcpy((char*)SysConfig.MaintainServerURL, "wss://ocpp.phihong.com.tw:2013/");
|
|
|
}
|
|
|
- else
|
|
|
+ else if(SysConfig.ModelName[12] == 'N')
|
|
|
{
|
|
|
-
|
|
|
+ if(SysConfig.ModelName[13] == '1')
|
|
|
+ {
|
|
|
+ SysConfig.AuthorisationMode = 1; // 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, "NoodoeEV-LTE"); // default: Null
|
|
|
+ strcpy((char *) SysConfig.AthInterface.WifiPassword, "LTE4NoodoeEV"); // default: Null
|
|
|
+
|
|
|
+ SysConfig.OfflinePolicy = 0; // 0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
|
|
|
+ strcpy((char*)SysConfig.OcppServerURL, "wss://ocpp.noodoe.com:443/");
|
|
|
+ sprintf((char*)SysConfig.ChargeBoxId, "%s%s", SysConfig.ModelName, SysConfig.SerialNumber);
|
|
|
+ strcpy((char *)SysConfig.chargePointVendor, "Noodoe"); // default: Null
|
|
|
+ }
|
|
|
+ else if(SysConfig.ModelName[13] == '2')
|
|
|
+ {
|
|
|
+ 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, "NoodoeEV-LTE"); // default: Null
|
|
|
+ strcpy((char *) SysConfig.AthInterface.WifiPassword, "LTE4NoodoeEV"); // default: Null
|
|
|
+
|
|
|
+ SysConfig.OfflinePolicy = 0; // 0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
|
|
|
+ strcpy((char*)SysConfig.OcppServerURL, "wss://ocpp.noodoe.com:443/");
|
|
|
+ sprintf((char*)SysConfig.ChargeBoxId, "%s%s", SysConfig.ModelName, SysConfig.SerialNumber);
|
|
|
+ strcpy((char *)SysConfig.chargePointVendor, "Noodoe"); // default: Null
|
|
|
+ }
|
|
|
+ else if(SysConfig.ModelName[13] == '3')
|
|
|
+ {
|
|
|
+ SysConfig.AuthorisationMode = 1; // 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, "NoodoeEV-LTE"); // default: Null
|
|
|
+ strcpy((char *) SysConfig.AthInterface.WifiPassword, "LTE4NoodoeEV"); // default: Null
|
|
|
+
|
|
|
+ SysConfig.OfflinePolicy = 0; // 0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
|
|
|
+ strcpy((char*)SysConfig.OcppServerURL, "wss://ocpp.noodoe.com:443/");
|
|
|
+ sprintf((char*)SysConfig.ChargeBoxId, "%s%s", SysConfig.ModelName, SysConfig.SerialNumber);
|
|
|
+ strcpy((char *)SysConfig.chargePointVendor, "Noodoe"); // default: Null
|
|
|
+ }
|
|
|
+ else if(SysConfig.ModelName[13] == '4')
|
|
|
+ {
|
|
|
+ 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, "NoodoeEV-LTE"); // default: Null
|
|
|
+ strcpy((char *) SysConfig.AthInterface.WifiPassword, "LTE4NoodoeEV"); // default: Null
|
|
|
+
|
|
|
+ SysConfig.OfflinePolicy = 0; // 0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
|
|
|
+ strcpy((char*)SysConfig.OcppServerURL, "wss://ocpp.noodoe.com:443/");
|
|
|
+ sprintf((char*)SysConfig.ChargeBoxId, "%s%s", SysConfig.ModelName, SysConfig.SerialNumber);
|
|
|
+ strcpy((char *)SysConfig.chargePointVendor, "Noodoe"); // default: Null
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ 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, "NoodoeEV-LTE"); // default: Null
|
|
|
+ strcpy((char *) SysConfig.AthInterface.WifiPassword, "LTE4NoodoeEV"); // default: Null
|
|
|
+
|
|
|
+ SysConfig.OfflinePolicy = 0; // 0: local list, 1: Phihong RFID tag, 2: free charging, 3: no charging
|
|
|
+ strcpy((char*)SysConfig.OcppServerURL, "wss://ocpp.noodoe.com:443/");
|
|
|
+ sprintf((char*)SysConfig.ChargeBoxId, "%s%s", SysConfig.ModelName, SysConfig.SerialNumber);
|
|
|
+ strcpy((char *)SysConfig.chargePointVendor, "Noodoe"); // default: Null
|
|
|
+ }
|
|
|
}
|
|
|
+ else
|
|
|
+ {}
|
|
|
|
|
|
// Copy default configuration to pointer
|
|
|
memcpy(ptr,&SysConfig,sizeof(struct SysConfigData));
|