瀏覽代碼

[Add][AX-80][main]

2021.11.29 / Folus Wen

Actions:
1. Check task function add OcppBackendPH monitor for maintain server.

Files:
1. As follow commit history

Image version: D0.00.XX.XXXX.XX
Image checksum: XXXXXXXX

Hardware PWB P/N : XXXXXXX
Hardware Version : XXXXXXX
FolusWen 3 年之前
父節點
當前提交
b43e49ffd7
共有 3 個文件被更改,包括 9 次插入15 次删除
  1. 9 0
      EVSE/Projects/AX80/Apps/main.c
  2. 0 13
      build_rootfs_copy.sh
  3. 0 2
      copy_project_from_D.sh

+ 9 - 0
EVSE/Projects/AX80/Apps/main.c

@@ -4019,6 +4019,15 @@ void checkTask()
 			}
 		}
 
+		if(strcmp((char *)&ShmSysConfigAndInfo->SysConfig.MaintainServerURL,"") != 0)
+		{
+			if(system("pidof -s OcppBackendPH > /dev/null") != 0)
+			{
+				DEBUG_INFO("OcppBackendPH not running, restart it.\n");
+				system("/root/OcppBackendPH &");
+			}
+		}
+
 		if(system("pidof -s Module_Speaker > /dev/null") != 0)
 		{
 			DEBUG_INFO("Module_Speaker not running, restart it.\n");

+ 0 - 13
build_rootfs_copy.sh

@@ -1,13 +0,0 @@
-#!/bin/bash
-sudo rm /dev/ram*
-sleep 3
-rm /mnt/e/Temp/IMAGE/*
-#sudo make DD360Audi-rootfs
-#cp /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Projects/DD360Audi/Images/* /mnt/e/Image/DD360Audi/
-#sudo make DD360-rootfs
-#cp /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Projects/DD360/Images/* /mnt/e/Image/DD360/
-#sudo make DD360ComBox-rootfs
-#cp /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Projects/DD360ComBox/Images/* /mnt/e/Image/DD360ComBox/
-sudo make DD360UCar-rootfs
-cp /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Projects/DD360UCar/Images/* /mnt/e/Image/DD360UCar/
-

+ 0 - 2
copy_project_from_D.sh

@@ -1,2 +0,0 @@
-#!/bin/bash
-sudo cp -r /mnt/d/Phihong/Project/DD360UCar/Apps/* /opt/ti-processor-sdk-linux-am335x-evm-04.02.00.09/EVSE/Projects/DD360UCar/Apps