Ver código fonte

[Improve][DM30][DW30][Connector] Modify the connector type check for single connector EVSE.

2020.08.17 / TC Hsu

Actions: Since CHAdeMO/GBT EV board should always on CND2 for single connector, modify the CheckConnectorTypeStatus() function, remove id assignment when CHAdeMO/GBT EV board have been detected on CND1. Correct the comment of CND detection.

Image version    : N/A
Image checksum   : N/A

Hardware PWB P/N : N/A
Hardware Version : N/A

Files:

	modified:   EVSE/Projects/DM30/Apps/main.c
	modified:   EVSE/Projects/DW30/Apps/main.c
TC_Hsu 4 anos atrás
pai
commit
328138059d
2 arquivos alterados com 8 adições e 26 exclusões
  1. 4 13
      EVSE/Projects/DM30/Apps/main.c
  2. 4 13
      EVSE/Projects/DW30/Apps/main.c

+ 4 - 13
EVSE/Projects/DM30/Apps/main.c

@@ -3144,8 +3144,7 @@ bool CheckConnectorTypeStatus()
             }
             else if (bd0_1_status == 1 && bd0_2_status == 0)
             {
-                PRINTF_FUNC("For single connector EVSE, CCS board should not at slot 0\n");
-                result = false;
+                PRINTF_FUNC("For single connector EVSE, CCS board should not at CND2\n");
             }
             else if (bd0_1_status == 1 && bd0_2_status == 1)
             {
@@ -3172,11 +3171,7 @@ bool CheckConnectorTypeStatus()
             {
                 if (bd1_1_status == 0 && bd1_2_status == 1)
                 {
-                    // 與硬體相同 type : Chademo
-                    if (chargingInfo[0]->Type == _Type_Chademo)
-                    {
-                        chargingInfo[0]->Evboard_id = 0x01;
-                    }
+                    PRINTF_FUNC("For single connector EVSE, CHAdeMO board should not at CND1\n");
                 }
                 else if (bd1_1_status == 1 && bd1_2_status == 0)
                 {
@@ -3188,11 +3183,7 @@ bool CheckConnectorTypeStatus()
                 }
                 else if (bd1_1_status == 1 && bd1_2_status == 1)
                 {
-                    // 與硬體相同 type : GB
-                    if (chargingInfo[0]->Type == _Type_GB)
-                    {
-                        chargingInfo[0]->Evboard_id = 0x01;
-                    }
+                    PRINTF_FUNC("For single connector EVSE, GBT board should not at CND1\n");
                 }
             }
 
@@ -3204,7 +3195,7 @@ bool CheckConnectorTypeStatus()
         }
         else if(ShmSysConfigAndInfo->SysConfig.TotalConnectorCount == 2)
         {
-            // 偵測槍屬於哪個 slot : 可知道插在板上的Slot 0 或 1 是 Chademo 還是 CCS
+            // 偵測槍屬於哪個 CND : 可知道插在板上的CND1 或 CND2 是 Chademo 還是 CCS
             for (byte gunIndex = 0; gunIndex < ShmSysConfigAndInfo->SysConfig.TotalConnectorCount; gunIndex++)
             {
                 if (gunIndex == 0 && bd0_1_status == 0 && bd0_2_status == 1)

+ 4 - 13
EVSE/Projects/DW30/Apps/main.c

@@ -3144,8 +3144,7 @@ bool CheckConnectorTypeStatus()
             }
             else if (bd0_1_status == 1 && bd0_2_status == 0)
             {
-                PRINTF_FUNC("For single connector EVSE, CCS board should not at slot 0\n");
-                result = false;
+                PRINTF_FUNC("For single connector EVSE, CCS board should not at CND2\n");
             }
             else if (bd0_1_status == 1 && bd0_2_status == 1)
             {
@@ -3172,11 +3171,7 @@ bool CheckConnectorTypeStatus()
             {
                 if (bd1_1_status == 0 && bd1_2_status == 1)
                 {
-                    // 與硬體相同 type : Chademo
-                    if (chargingInfo[0]->Type == _Type_Chademo)
-                    {
-                        chargingInfo[0]->Evboard_id = 0x01;
-                    }
+                    PRINTF_FUNC("For single connector EVSE, CHAdeMO board should not at CND1\n");
                 }
                 else if (bd1_1_status == 1 && bd1_2_status == 0)
                 {
@@ -3188,11 +3183,7 @@ bool CheckConnectorTypeStatus()
                 }
                 else if (bd1_1_status == 1 && bd1_2_status == 1)
                 {
-                    // 與硬體相同 type : GB
-                    if (chargingInfo[0]->Type == _Type_GB)
-                    {
-                        chargingInfo[0]->Evboard_id = 0x01;
-                    }
+                    PRINTF_FUNC("For single connector EVSE, GBT board should not at CND1\n");
                 }
             }
 
@@ -3204,7 +3195,7 @@ bool CheckConnectorTypeStatus()
         }
         else if(ShmSysConfigAndInfo->SysConfig.TotalConnectorCount == 2)
         {
-            // 偵測槍屬於哪個 slot : 可知道插在板上的Slot 0 或 1 是 Chademo 還是 CCS
+            // 偵測槍屬於哪個 CND : 可知道插在板上的CND1 或 CND2 是 Chademo 還是 CCS
             for (byte gunIndex = 0; gunIndex < ShmSysConfigAndInfo->SysConfig.TotalConnectorCount; gunIndex++)
             {
                 if (gunIndex == 0 && bd0_1_status == 0 && bd0_2_status == 1)