|
@@ -335,7 +335,7 @@ int main(int argc, char *argv[]) {
|
|
|
json_object *val_obj = NULL;
|
|
|
char *SystemId=NULL;
|
|
|
char *SystemDateTime = NULL;
|
|
|
- int AcPhaseCount = 0;
|
|
|
+// int AcPhaseCount = 0;
|
|
|
int FactoryConfiguration = 0;
|
|
|
int AuthorisationMode = 0;
|
|
|
int DefaultLanguage = 0;
|
|
@@ -348,9 +348,9 @@ int main(int argc, char *argv[]) {
|
|
|
if( json_object_object_get_ex(jobj, "SystemDateTime", &val_obj) ) {
|
|
|
SystemDateTime = (char*)json_object_get_string(val_obj);
|
|
|
}
|
|
|
- if( json_object_object_get_ex(jobj, "AcPhaseCount", &val_obj) ) {
|
|
|
- AcPhaseCount = json_object_get_int(val_obj);
|
|
|
- }
|
|
|
+// if( json_object_object_get_ex(jobj, "AcPhaseCount", &val_obj) ) {
|
|
|
+// AcPhaseCount = json_object_get_int(val_obj);
|
|
|
+// }
|
|
|
if( json_object_object_get_ex(jobj, "FactoryConfiguration", &val_obj) ) {
|
|
|
FactoryConfiguration = json_object_get_int(val_obj);
|
|
|
}
|
|
@@ -367,7 +367,7 @@ int main(int argc, char *argv[]) {
|
|
|
PsuAcInputType = json_object_get_int(val_obj);
|
|
|
}
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.SystemId,SystemId);
|
|
|
- ShmSysConfigAndInfo->SysConfig.AcPhaseCount = AcPhaseCount;
|
|
|
+// ShmSysConfigAndInfo->SysConfig.AcPhaseCount = AcPhaseCount;
|
|
|
ShmSysConfigAndInfo->SysInfo.FactoryConfiguration = FactoryConfiguration;
|
|
|
ShmSysConfigAndInfo->SysConfig.AuthorisationMode = AuthorisationMode;
|
|
|
ShmSysConfigAndInfo->SysConfig.DefaultLanguage = DefaultLanguage;
|
|
@@ -637,7 +637,7 @@ int main(int argc, char *argv[]) {
|
|
|
if (strcmp(argv[1], "aaa") == 0) {
|
|
|
//struct SysConfigData SysConfig;
|
|
|
//system
|
|
|
- strcpy((char *)&ShmSysConfigAndInfo->SysConfig.ModelName, "DWLU770100T1P0D");
|
|
|
+ strcpy((char *)&ShmSysConfigAndInfo->SysConfig.ModelName, "DWLU770111T1P0D");
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.SerialNumber, "SerialNumber");
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.SystemId, "1234567890");
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysConfig.SystemDateTime, "2019-12-31 23:59:59");
|