Jessica Tseng 1 жил өмнө
parent
commit
44477f97e3

+ 5 - 5
EVCB_OCPP.WSServer/App.config

@@ -7,10 +7,10 @@
     <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
   </configSections>
    <connectionStrings>
-     <add name="ConnectionLogDBContext" connectionString="data source=.\SQLEXPRESS;initial catalog=StandardOCPP_ConnectionLog;;persist security info=True;user id=Phihong;password=GOGOGO;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
-     <add name="MainDBContext" connectionString="data source=.\SQLEXPRESS;initial catalog=StandardOCPP_Main;;persist security info=True;user id=Phihong;password=GOGOGO;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
-     <add name="MeterValueDBContext" connectionString="data source=.\SQLEXPRESS;initial catalog=StandardOCPP_MeterValue;;persist security info=True;user id=Phihong;password=GOGOGO;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
-     <add name="WebDBContext" connectionString="data source=.\SQLEXPRESS;initial catalog=StandardOCPP_Web;;persist security info=True;user id=Phihong;password=GOGOGO;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
+     <add name="ConnectionLogDBContext" connectionString="Server=tcp:zerova-ev-dev.database.windows.net,1433;initial catalog=StandardOCPP_ConnectionLog;persist security info=True;user id=azdevsoftware;password=1h52dev#az;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
+     <add name="MainDBContext" connectionString="Server=tcp:zerova-ev-dev.database.windows.net,1433;initial catalog=StandardOCPP_Main;;persist security info=True;user id=azdevsoftware;password=1h52dev#az;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=1000" providerName="System.Data.SqlClient" />
+     <add name="MeterValueDBContext" connectionString="Server=tcp:zerova-ev-dev.database.windows.net,1433;initial catalog=StandardOCPP_MeterValue;;persist security info=True;user id=azdevsoftware;password=1h52dev#az;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
+     <add name="WebDBContext" connectionString="Server=tcp:zerova-ev-dev.database.windows.net,1433;initial catalog=StandardOCPP_Web;;persist security info=True;user id=azdevsoftware;password=1h52dev#az;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
    </connectionStrings>
   <appSettings>   
     <add key="LocalAuthAPI" value="https://evcb.zerovatech.com/PortalApi/1" />    
@@ -27,7 +27,7 @@
   <superSocket>
     <servers>
       <server name="SuperWebSocket" serverTypeName="SuperWebSocket">
-        <certificate filePath="certificate.pfx" password="0falntka" storeName="My" thumbprint="B45F47E47C4F4B7AC6F3389EA3170ECC9192C585" storeLocation="LocalMachine" clientCertificateRequired="false" keyStorageFlags="Exportable"></certificate>
+        <certificate filePath="certificate.pfx" password="Ph13572468" storeName="My" thumbprint="3D7BA6A3C191C1D907AA4953568BCF5419AE433E" storeLocation="LocalMachine" clientCertificateRequired="false" keyStorageFlags="Exportable"></certificate>
         <listeners></listeners>
       </server>
     </servers>

+ 70 - 53
EVCB_OCPP.WSServer/Message/CoreProfileHandler.cs

@@ -422,33 +422,33 @@ namespace EVCB_OCPP.WSServer.Message
                             {
                                 try
                                 {
+
                                     if (session.IsBilling)
-                                        if (session.IsBilling)
+                                    {
+                                        using (var db = new MainDBContext())
                                         {
-                                            using (var db = new MainDBContext())
+                                            db.ServerMessage.Add(new ServerMessage()
                                             {
-                                                db.ServerMessage.Add(new ServerMessage()
-                                                {
-                                                    ChargeBoxId = session.ChargeBoxId,
-                                                    CreatedBy = "Server",
-                                                    CreatedOn = DateTime.UtcNow,
-                                                    OutAction = Actions.DataTransfer.ToString(),
-                                                    OutRequest = JsonConvert.SerializeObject(
-                                                            new DataTransferRequest()
-                                                            {
-                                                                messageId = "ID_TxEnergy",
-                                                                vendorId = "Phihong Technology",
-                                                                data = JsonConvert.SerializeObject(new { txId = _request.transactionId, ConnectorId = _request.connectorId })
-                                                            },
-                                                            new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore, Formatting = Formatting.None }),
-                                                    SerialNo = Guid.NewGuid().ToString(),
-                                                    InMessage = string.Empty
+                                                ChargeBoxId = session.ChargeBoxId,
+                                                CreatedBy = "Server",
+                                                CreatedOn = DateTime.UtcNow,
+                                                OutAction = Actions.DataTransfer.ToString(),
+                                                OutRequest = JsonConvert.SerializeObject(
+                                                        new DataTransferRequest()
+                                                        {
+                                                            messageId = "ID_TxEnergy",
+                                                            vendorId = "Phihong Technology",
+                                                            data = JsonConvert.SerializeObject(new { txId = _request.transactionId, ConnectorId = _request.connectorId })
+                                                        },
+                                                        new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore, Formatting = Formatting.None }),
+                                                SerialNo = Guid.NewGuid().ToString(),
+                                                InMessage = string.Empty
 
-                                                });
+                                            });
 
-                                                db.SaveChanges();
-                                            }
+                                            db.SaveChanges();
                                         }
+                                    }
 
 
                                 }
@@ -476,6 +476,14 @@ namespace EVCB_OCPP.WSServer.Message
                             var businessService = BusinessServiceFactory.CreateBusinessService(session.CustomerId.ToString());
 
                             var _idTagInfo = new IdTagInfo() { expiryDate = DateTime.UtcNow.AddDays(1), status = AuthorizationStatus.Accepted };
+                            #region PnC 邏輯
+
+                            if (!string.IsNullOrEmpty(_request.idTag))
+                            {
+                                _request.idTag = _request.idTag.StartsWith("vid:") ? _request.idTag.Replace("vid:", "") : _request.idTag;
+                            }
+
+                            #endregion
                             if (_request.idTag != "Backend")
                             {
                                 var authorization_result = await businessService.Authorize(session.ChargeBoxId, _request.idTag);
@@ -588,33 +596,41 @@ namespace EVCB_OCPP.WSServer.Message
                         break;
                     case Actions.StopTransaction:
                         {
-                            StopTransactionRequest _request = request as StopTransactionRequest;
-
-                            int _ConnectorId = 0;
-
-                            var businessService = BusinessServiceFactory.CreateBusinessService(session.CustomerId.ToString());
-                            var _idTagInfo = string.IsNullOrEmpty(_request.idTag) ? null : (_request.idTag == "Backend" ?
-                                new IdTagInfo() { expiryDate = DateTime.UtcNow.AddDays(1), status = AuthorizationStatus.Accepted } : (await businessService.Authorize(session.ChargeBoxId, _request.idTag)).IdTagInfo);
-
+                            StopTransactionRequest stopRequest = request as StopTransactionRequest;
+                            IdTagInfo idTagInfo = null;
+                            int connectorId = 0;
 
 
                             //特例****飛宏客戶旗下的電樁,若遇到Portal沒回應的狀況 ~允許充電
-                            if (session.CustomerId.ToString().ToUpper() == "8456AED9-6DD9-4BF3-A94C-9F5DCB9506F7" && _idTagInfo != null && _idTagInfo.status == AuthorizationStatus.ConcurrentTx)
+                            if (session.CustomerId.ToString().ToUpper() == "8456AED9-6DD9-4BF3-A94C-9F5DCB9506F7" && idTagInfo != null && idTagInfo.status == AuthorizationStatus.ConcurrentTx)
                             {
-                                _idTagInfo = new IdTagInfo() { expiryDate = DateTime.UtcNow.AddDays(1), status = AuthorizationStatus.Accepted };
+                                idTagInfo = new IdTagInfo() { expiryDate = DateTime.UtcNow.AddDays(1), status = AuthorizationStatus.Accepted };
                             }
                             try
                             {
                                 using (var db = new MainDBContext())
                                 {
-                                    var transaction = db.TransactionRecord.Where(x => x.Id == _request.transactionId
+                                    var transaction = db.TransactionRecord.Where(x => x.Id == stopRequest.transactionId
                                      && x.ChargeBoxId == session.ChargeBoxId).FirstOrDefault();
+                                  
+                                    var businessService = BusinessServiceFactory.CreateBusinessService(session.CustomerId.ToString());
+                                    idTagInfo = string.IsNullOrEmpty(stopRequest.idTag) ? null : (stopRequest.idTag == "Backend" ?
+                                       new IdTagInfo() { expiryDate = DateTime.UtcNow.AddDays(1), status = AuthorizationStatus.Accepted } : (await businessService.Authorize(session.ChargeBoxId, stopRequest.idTag, transaction.ConnectorId)).IdTagInfo);
+                                                               
+
+                                    #region PnC 邏輯
+                                    if (!string.IsNullOrEmpty(stopRequest.idTag))
+                                    {
+                                        stopRequest.idTag = stopRequest.idTag.StartsWith("vid:") ? stopRequest.idTag.Replace("vid:", "") : stopRequest.idTag;
+                                    }
+
+                                    #endregion
 
                                     #region 加入Transaction Start/StopSOC
-                                    if (!session.IsAC && _request.transactionId > 0)
+                                    if (!session.IsAC && stopRequest.transactionId > 0)
                                     {
                                         var SearchTime = transaction.StartTime;
-                                        var txStopTime = _request.timestamp;
+                                        var txStopTime = stopRequest.timestamp;
                                         List<int> SOCCollection = new List<int>();
 
                                         while (SearchTime.Date <= txStopTime.Date)
@@ -631,8 +647,9 @@ namespace EVCB_OCPP.WSServer.Message
                                         transaction.StopSOC = SOCCollection.Count() == 0 ? "" : SOCCollection.Last().ToString("0");
                                     }
                                     #endregion
+
                                     //遠傳太久以前的停止充電 直接拒絕 避免電樁持續重送~~~~~~~
-                                    if (_request.timestamp < new DateTime(2021, 11, 1))
+                                    if (stopRequest.timestamp < new DateTime(2021, 11, 1))
                                     {
                                         var confirm = new StopTransactionConfirmation()
                                         {
@@ -653,7 +670,7 @@ namespace EVCB_OCPP.WSServer.Message
                                     {
                                         var confirm = new StopTransactionConfirmation()
                                         {
-                                            idTagInfo = _idTagInfo
+                                            idTagInfo = idTagInfo
 
                                         };
 
@@ -665,23 +682,23 @@ namespace EVCB_OCPP.WSServer.Message
                                             return result;
                                         }
 
-                                        _ConnectorId = transaction.ConnectorId;
-                                        transaction.MeterStop = _request.meterStop;
-                                        transaction.StopTime = _request.timestamp.ToUniversalTime();
-                                        transaction.StopReasonId = _request.reason.HasValue ? (int)_request.reason.Value : 0;
-                                        transaction.StopReason = _request.reason.HasValue ? _request.reason.Value.ToString() : Reason.Local.ToString();
-                                        transaction.StopIdTag = _request.idTag;
+                                        connectorId = transaction.ConnectorId;
+                                        transaction.MeterStop = stopRequest.meterStop;
+                                        transaction.StopTime = stopRequest.timestamp.ToUniversalTime();
+                                        transaction.StopReasonId = stopRequest.reason.HasValue ? (int)stopRequest.reason.Value : 0;
+                                        transaction.StopReason = stopRequest.reason.HasValue ? stopRequest.reason.Value.ToString() : Reason.Local.ToString();
+                                        transaction.StopIdTag = stopRequest.idTag;
                                         transaction.Receipt = string.Empty;
                                         transaction.Cost = session.IsBilling ? -1 : 0;
 
-                                        if (_request.transactionData != null && _request.transactionData.Count > 0)
+                                        if (stopRequest.transactionData != null && stopRequest.transactionData.Count > 0)
                                         {
-                                            _request.transactionData[0].sampledValue.Add(new SampledValue()
+                                            stopRequest.transactionData[0].sampledValue.Add(new SampledValue()
                                             {
                                                 context = ReadingContext.Transaction_End,
                                                 format = ValueFormat.Raw,
                                                 location = Location.Outlet,
-                                                phase = _request.transactionData[0].sampledValue.Where(x => x.context.HasValue).Select(x => x.phase).FirstOrDefault(),
+                                                phase = stopRequest.transactionData[0].sampledValue.Where(x => x.context.HasValue).Select(x => x.phase).FirstOrDefault(),
                                                 unit = UnitOfMeasure.Wh,
                                                 measurand = Measurand.TotalEnergy,
                                                 value = decimal.Subtract(transaction.MeterStop, transaction.MeterStart).ToString()
@@ -703,7 +720,7 @@ namespace EVCB_OCPP.WSServer.Message
                                                            {
                                                                messageId = "ID_TxEnergy",
                                                                vendorId = "Phihong Technology",
-                                                               data = JsonConvert.SerializeObject(new { txId = _request.transactionId, ConnectorId = transaction.ConnectorId })
+                                                               data = JsonConvert.SerializeObject(new { txId = stopRequest.transactionId, ConnectorId = transaction.ConnectorId })
                                                            },
                                                            new JsonSerializerSettings() { NullValueHandling = NullValueHandling.Ignore, Formatting = Formatting.None }),
                                                 SerialNo = Guid.NewGuid().ToString(),
@@ -720,20 +737,20 @@ namespace EVCB_OCPP.WSServer.Message
                                     else
                                     {
 
-                                        result.Exception = new Exception("Can't find transactionId " + _request.transactionId);
+                                        result.Exception = new Exception("Can't find transactionId " + stopRequest.transactionId);
 
                                     }
                                 }
 
                                 #region Save MeterValue
 
-                                if (_request.transactionData != null)
+                                if (stopRequest.transactionData != null)
                                 {
-                                    if (_request.transactionData.Count > 0)
+                                    if (stopRequest.transactionData.Count > 0)
                                     {
                                         using (var _meterDb = new MeterValueDBContext())
                                         {
-                                            foreach (var item in _request.transactionData)
+                                            foreach (var item in stopRequest.transactionData)
                                             {
                                                 foreach (var sampleVaule in item.sampledValue)
                                                 {
@@ -746,7 +763,7 @@ namespace EVCB_OCPP.WSServer.Message
                                                     List<SqlParameter> parameter = new List<SqlParameter>
                                         {
                                               new SqlParameter("ChargeBoxId",session.ChargeBoxId),
-                                              new SqlParameter("ConnectorId",  (byte)_ConnectorId),
+                                              new SqlParameter("ConnectorId",  (byte)connectorId),
                                               new SqlParameter("Value",value),
                                               new SqlParameter("CreatedOn",item.timestamp),
                                               new SqlParameter("ContextId",sampleVaule.context.HasValue ? (int)sampleVaule.context : 0),
@@ -755,7 +772,7 @@ namespace EVCB_OCPP.WSServer.Message
                                               new SqlParameter("PhaseId",sampleVaule.phase.HasValue ? (int)sampleVaule.phase : 0),
                                               new SqlParameter("LocationId",sampleVaule.location.HasValue ? (int)sampleVaule.location : 0),
                                               new SqlParameter("UnitId",sampleVaule.unit.HasValue ? (int)sampleVaule.unit : 0),
-                                              new SqlParameter("TransactionId",_request.transactionId),
+                                              new SqlParameter("TransactionId",stopRequest.transactionId),
                                           };
 
 
@@ -772,7 +789,7 @@ namespace EVCB_OCPP.WSServer.Message
                             }
                             catch (Exception ex)
                             {
-                                result.Exception = new Exception("TransactionId " + _request.transactionId + " " + ex.Message);
+                                result.Exception = new Exception("TransactionId " + stopRequest.transactionId + " " + ex.Message);
                                 result.CallErrorMsg = "Reject Response Message";
                                 result.Success = false;
                                 // return result;

+ 1 - 1
EVCB_OCPP.WSServer/Properties/AssemblyInfo.cs

@@ -35,4 +35,4 @@ using System.Runtime.InteropServices;
 [assembly: AssemblyVersion("1.2.0.0")]
 [assembly: AssemblyFileVersion("1.2.0.0")]
 
-[assembly: AssemblyInformationalVersion("e90ad84")]
+[assembly: AssemblyInformationalVersion("ccf2678")]

+ 6 - 4
EVCB_OCPP.WSServer/ProtalServer.cs

@@ -109,7 +109,7 @@ namespace EVCB_OCPP.WSServer
         {
             _ct = _cts.Token;
             WarmUpLog();
-            DenyModelCheckTrigger(true);
+            //  DenyModelCheckTrigger(true);
         }
 
         internal void Start()
@@ -300,6 +300,8 @@ namespace EVCB_OCPP.WSServer
 
             var config = ConfigurationManager.GetSection("superSocket") as IConfigurationSource;
             ICertificateConfig Certificate = config.Servers.ElementAt(0).Certificate;
+
+           
             IEnumerable<IListenerConfig> listeners = llistener;
 
             //設定server config
@@ -1006,7 +1008,7 @@ namespace EVCB_OCPP.WSServer
         }
 
         async private void DenyModelCheckTrigger(bool warmup)
-        {           
+        {
             for (; ; )
             {
                 if (_ct.IsCancellationRequested)
@@ -1030,7 +1032,7 @@ namespace EVCB_OCPP.WSServer
                             GlobalConfig.DenyModelNames = result.FirstOrDefault().Split(',').ToList();
                             logger.Debug(string.Format("Current DenyList:[{0}]", string.Join(",", GlobalConfig.DenyModelNames)));
                         }
-                     
+
 
                         if (!string.IsNullOrEmpty(GlobalConfig.DenyModelNames[0]))
                         {
@@ -1063,7 +1065,7 @@ namespace EVCB_OCPP.WSServer
                 catch (Exception ex)
                 {
 
-                   // logger.Error(string.Format("DenyModelCheckTrigger  Ex:{0}", ex.ToString()));
+                    // logger.Error(string.Format("DenyModelCheckTrigger  Ex:{0}", ex.ToString()));
                 }
 
                 if (warmup) break;

+ 1 - 1
EVCB_OCPP.WSServer/Service/BusinessServiceFactory.cs

@@ -10,7 +10,7 @@ namespace EVCB_OCPP.WSServer.Service
 
     public interface IBusinessService
     {
-        Task<IdTokenInfo> Authorize(string chargeBoxId, string idTag);
+        Task<IdTokenInfo> Authorize(string chargeBoxId, string idTag,int? connectorId=-1);
 
         Task NotifyFaultStatus(ErrorDetails details);
 

+ 1 - 1
EVCB_OCPP.WSServer/Service/LocalBusinessService.cs

@@ -19,7 +19,7 @@ namespace EVCB_OCPP.WSServer.Service
             this.customerId = customerId;
         }
 
-        async public Task<IdTokenInfo> Authorize(string chargeBoxId, string idTag)
+        async public Task<IdTokenInfo> Authorize(string chargeBoxId, string idTag, int? connectorId=-1)
         {
             await Task.Delay(10);
             IdTokenInfo info = new IdTokenInfo() { IdTagInfo = new IdTagInfo() { status = AuthorizationStatus.Invalid } };

+ 40 - 19
EVCB_OCPP.WSServer/Service/OuterBusinessService.cs

@@ -1,4 +1,5 @@
 using EVCB_OCPP.Domain;
+using EVCB_OCPP.Domain.Models.Database;
 using EVCB_OCPP.Packet.Messages.SubTypes;
 using EVCB_OCPP.WSServer.Dto;
 using Newtonsoft.Json;
@@ -7,6 +8,7 @@ using NLog;
 using System;
 using System.Collections.Generic;
 using System.Linq;
+using System.Security.Cryptography.X509Certificates;
 using System.Threading.Tasks;
 
 namespace EVCB_OCPP.WSServer.Service
@@ -57,29 +59,48 @@ namespace EVCB_OCPP.WSServer.Service
         }
 
 
-        async public Task<IdTokenInfo> Authorize(string chargeBoxId, string idTag)
+        async public Task<IdTokenInfo> Authorize(string chargeBoxId, string idTag,int? connectorId =-1)
         {
             await Task.Delay(10);
             IdTokenInfo result = new IdTokenInfo() { IdTagInfo = new IdTagInfo() { status = AuthorizationStatus.Invalid } };
-
+            bool normaalAuth = true;
+        
             try
             {
-                string requestParams = string.Format("charging_auth?ChargeBoxId={0}&IdTag={1}", chargeBoxId, idTag);
-
-               // if (CustomerId.ToLower() == "9e6bfdcc-09fb-4dab-a428-43fe507600a3")
+                #region PnC
+                if (idTag.StartsWith("vid:"))
                 {
-                    logger.Info(chargeBoxId + " Charging Monitor======================================>");
-                    logger.Info(signMaterial.APIUrl + requestParams);
+
+                    idTag = idTag.Replace("vid:","");
+                    normaalAuth = false;
+                    if(connectorId==-1)
+                    {
+                        using (var db = new MainDBContext())
+                        {
+                            var connectorStatuses = db.ConnectorStatus.Where(x => x.ChargeBoxId == chargeBoxId).
+                                 Select(x => new { x.ConnectorId, x.Status, x.CreatedOn }).ToList();
+
+                            var connectorStatus = connectorStatuses.Where(x => x.Status == 2).OrderByDescending(x => x.CreatedOn).FirstOrDefault();
+                            if (connectorStatus != null) { connectorId = connectorStatus.ConnectorId; }
+
+                        }
+                    }
+                   
                 }
+                #endregion
+
+                string requestParams = normaalAuth ? string.Format("charging_auth?ChargeBoxId={0}&IdTag={1}", chargeBoxId, idTag) :
+                    string.Format("charging_auth?ChargeBoxId={0}&ConnectorId={1}&IdTag={2}", chargeBoxId, connectorId, idTag);
+
                 var response = await httpClient.Post(signMaterial.APIUrl + requestParams, new Dictionary<string, string>()
                             {
                                 { "PartnerId",signMaterial.Id}
 
                             }, null, signMaterial.SaltKey).ConfigureAwait(false);
-               // if (CustomerId.ToLower() == "9e6bfdcc-09fb-4dab-a428-43fe507600a3")
-                {
-                    logger.Info(JsonConvert.SerializeObject(response));
-                }
+
+                logger.Info(chargeBoxId + " Charging Monitor======================================>");
+                logger.Info(signMaterial.APIUrl + requestParams);
+                logger.Info(JsonConvert.SerializeObject(response));
                 if (response.Success)
                 {
                     Console.WriteLine(response.Response);
@@ -101,21 +122,21 @@ namespace EVCB_OCPP.WSServer.Service
 
                     if (jo.ContainsKey("ChargePointFee"))
                     {
-                       
 
-                        for(int i=0;i< jo["ChargePointFee"].Count();i++)
+
+                        for (int i = 0; i < jo["ChargePointFee"].Count(); i++)
                         {
-                            if(i==0)
+                            if (i == 0)
                             {
                                 result.ChargePointFee = new List<ChargePointFee>();
                             }
                             result.ChargePointFee.Add(jo["ChargePointFee"][i].ToObject<ChargePointFee>());
                         }
-                     
+
                     }
 
                     if (jo.ContainsKey("ChargepointFee"))
-                    {                       
+                    {
 
                         for (int i = 0; i < jo["ChargepointFee"].Count(); i++)
                         {
@@ -167,7 +188,7 @@ namespace EVCB_OCPP.WSServer.Service
                 if (signMaterial.CallsThirdParty)
                 {
 
-              
+
 
 
                     var response = await httpClient.Post(signMaterial.APIUrl + "connectorfault", new Dictionary<string, string>()
@@ -176,8 +197,8 @@ namespace EVCB_OCPP.WSServer.Service
 
                             }, details, signMaterial.SaltKey).ConfigureAwait(false);
 
-                  
-                   
+
+
                 }
 
 

BIN
SuperWebSocket/bin/Debug/SuperWebSocket.dll


BIN
SuperWebSocket/bin/Debug/SuperWebSocket.pdb


+ 3 - 3
TestTool.RemoteTriggerAPP/App.config

@@ -12,7 +12,7 @@
   </configSections>
   <connectionStrings>
     <add name="ConnectionLogDBContext" connectionString="Server=tcp:zerova-evbackend.database.windows.net,1433;initial catalog=StandardOCPP_ConnectionLog;persist security info=True;user id=ev_user;password=Thw2DEa2hZPdg;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
-    <add name="MainDBContext" connectionString="Server=tcp:zerova-evbackend.database.windows.net,1433;initial catalog=StandardOCPP_Main;;persist security info=True;user id=ev_user;password=Thw2DEa2hZPdg;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
+    <add name="MainDBContext" connectionString="Server=tcp:zerova-ev-dev.database.windows.net,1433;initial catalog=StandardOCPP_Main;;persist security info=True;user id=azdevsoftware;password=1h52dev#az;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=1000" providerName="System.Data.SqlClient" />
   </connectionStrings>
   <startup>
     <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
@@ -30,13 +30,13 @@
   <applicationSettings>
     <TestTool.RemoteTriggerAPP.Properties.Settings>
       <setting name="UpdateFWPreUrl" serializeAs="String">
-        <value>https://evcb.zerovatech.com:5021/</value>
+        <value>http://20.78.235.164:5000/</value>
       </setting>
       <setting name="FTPUpdateFWPreUrl" serializeAs="String">
         <value>ftps://testocpp:testocpp@ocpp.phihong.com.tw:5002/</value>
       </setting>
       <setting name="GetDiagnosticsPreUrl" serializeAs="String">
-        <value>https://evcb.zerovatech.com:5021/api/v1/file/</value>
+        <value>http://20.78.235.164:5000/api/v1/file/</value>
       </setting>
       <setting name="FTPGetDiagnosticsPreUrl" serializeAs="String">
         <value>ftps://evseocpp:evseocpp@ocpp.phihong.com.tw:5002/</value>