|
@@ -400,6 +400,7 @@ int main(int argc, char *argv[]) {
|
|
|
char QRCodeMadeMode = 0;
|
|
|
char *QRCodeContent = NULL;
|
|
|
char Intensity = 0;
|
|
|
+ char isAuthrizeByEVCCID = 0;
|
|
|
char *DDSystemId1=NULL;
|
|
|
int DDFactoryConfiguration1 = 0;
|
|
|
int DDAuthorisationMode1 = 0;
|
|
@@ -499,6 +500,10 @@ int main(int argc, char *argv[]) {
|
|
|
Intensity = json_object_get_int(val_obj);
|
|
|
ShmSysConfigAndInfo->SysConfig.LedInfo.Intensity = Intensity;
|
|
|
}
|
|
|
+ if( json_object_object_get_ex(jobj, "isAuthrizeByEVCCID", &val_obj) ) {
|
|
|
+ isAuthrizeByEVCCID = json_object_get_int(val_obj);
|
|
|
+ ShmSysConfigAndInfo->SysConfig.isAuthrizeByEVCCID = isAuthrizeByEVCCID;
|
|
|
+ }
|
|
|
if( json_object_object_get_ex(jobj, "DDSystemId1", &val_obj) ) {
|
|
|
DDSystemId1 = (char*)json_object_get_string(val_obj);
|
|
|
strcpy((char *)&ShmSysConfigAndInfo->SysInfo.DispenserInfo.Dispenser[0].SystemId,DDSystemId1);
|
|
@@ -998,6 +1003,7 @@ int main(int argc, char *argv[]) {
|
|
|
int OcppSecurityProfile=0;
|
|
|
char *OcppSecurityPassword=NULL;
|
|
|
int isEnableLocalPowerSharging=0;
|
|
|
+ char *OcppReceiptrURL=NULL;
|
|
|
/*for TTIA*/
|
|
|
char isEnableTTIA=0;
|
|
|
char *server_addr=NULL;
|
|
@@ -1048,6 +1054,10 @@ int main(int argc, char *argv[]) {
|
|
|
isEnableLocalPowerSharging = json_object_get_int(val_obj);
|
|
|
ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharging = isEnableLocalPowerSharging;
|
|
|
}
|
|
|
+ if( json_object_object_get_ex(jobj, "OcppReceiptrURL", &val_obj) ) {
|
|
|
+ OcppReceiptrURL = (char*)json_object_get_string(val_obj);
|
|
|
+ strcpy((char *)&ShmSysConfigAndInfo->SysConfig.OcppReceiptrURL,OcppReceiptrURL);
|
|
|
+ }
|
|
|
/*for TTIA*/
|
|
|
if( json_object_object_get_ex(jobj, "isEnableTTIA", &val_obj) ) {
|
|
|
isEnableTTIA = json_object_get_int(val_obj);
|
|
@@ -1431,6 +1441,7 @@ int main(int argc, char *argv[]) {
|
|
|
struct json_object *QRCodeMadeMode;
|
|
|
struct json_object *QRCodeContent;
|
|
|
struct json_object *Intensity;
|
|
|
+ struct json_object *isAuthrizeByEVCCID;
|
|
|
struct json_object *AuxPower5V;
|
|
|
struct json_object *AuxPower12V;
|
|
|
struct json_object *AuxPower24V;
|
|
@@ -1645,6 +1656,7 @@ int main(int argc, char *argv[]) {
|
|
|
struct json_object *OcppSecurityProfile;
|
|
|
struct json_object *OcppSecurityPassword;
|
|
|
struct json_object *isEnableLocalPowerSharging;
|
|
|
+ struct json_object *OcppReceiptrURL;
|
|
|
/*for TTIA*/
|
|
|
struct json_object *isEnableTTIA;
|
|
|
struct json_object *server_addr;
|
|
@@ -1684,6 +1696,7 @@ int main(int argc, char *argv[]) {
|
|
|
QRCodeMadeMode = json_object_new_int(ShmSysConfigAndInfo->SysConfig.QRCodeMadeMode);
|
|
|
QRCodeContent = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.QRCodeContent);
|
|
|
Intensity = json_object_new_int(ShmSysConfigAndInfo->SysConfig.LedInfo.Intensity);
|
|
|
+ isAuthrizeByEVCCID = json_object_new_int(ShmSysConfigAndInfo->SysConfig.isAuthrizeByEVCCID);
|
|
|
AuxPower5V = json_object_new_int(ShmSysConfigAndInfo->SysInfo.AuxPower5V);
|
|
|
AuxPower12V = json_object_new_int(ShmSysConfigAndInfo->SysInfo.AuxPower12V);
|
|
|
AuxPower24V = json_object_new_int(ShmSysConfigAndInfo->SysInfo.AuxPower24V);
|
|
@@ -2318,6 +2331,7 @@ int main(int argc, char *argv[]) {
|
|
|
chargePointVendor = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.chargePointVendor);
|
|
|
if(strcmp(IsDO, "AX") == 0){
|
|
|
isEnableLocalPowerSharging = json_object_new_int(ShmSysConfigAndInfo->SysConfig.isEnableLocalPowerSharging);
|
|
|
+ OcppReceiptrURL = json_object_new_string((char *)&ShmSysConfigAndInfo->SysConfig.OcppReceiptrURL);
|
|
|
}
|
|
|
/*for TTIA*/
|
|
|
if(strcmp(IsAcDc, "D") == 0 && strcmp(SafetyRegulation, "C") == 0){
|
|
@@ -2356,6 +2370,7 @@ int main(int argc, char *argv[]) {
|
|
|
json_object_object_add(jobj1,"QRCodeMadeMode",QRCodeMadeMode);
|
|
|
json_object_object_add(jobj1,"QRCodeContent",QRCodeContent);
|
|
|
json_object_object_add(jobj1,"Intensity",Intensity);
|
|
|
+ json_object_object_add(jobj1,"isAuthrizeByEVCCID",isAuthrizeByEVCCID);
|
|
|
json_object_object_add(jobj1,"AuxPower5V",AuxPower5V);
|
|
|
json_object_object_add(jobj1,"AuxPower12V",AuxPower12V);
|
|
|
json_object_object_add(jobj1,"AuxPower24V",AuxPower24V);
|
|
@@ -2734,6 +2749,7 @@ int main(int argc, char *argv[]) {
|
|
|
json_object_object_add(jobj4,"OcppSecurityPassword",OcppSecurityPassword);
|
|
|
if(strcmp(IsDO, "AX") == 0){
|
|
|
json_object_object_add(jobj4,"isEnableLocalPowerSharging",isEnableLocalPowerSharging);
|
|
|
+ json_object_object_add(jobj4,"OcppReceiptrURL",OcppReceiptrURL);
|
|
|
}
|
|
|
/*for TTIA*/
|
|
|
if(strcmp(IsAcDc, "D") == 0 && strcmp(SafetyRegulation, "C") == 0){
|