20190214_jeffrey - silenceuncrio/diary GitHub Wiki

0925

M300 客戶 HYTEC 近期所反應的問題 0000416: (Hytec) SessionTTL 希望能在 2/22 release 給 DQA

目標版本是 1.77 - branch hotfix/v1.77

這已經知道怎麼解了

先 build 一版最新的 M300 hotfix/v1.77

作以下修正

diff --git a/proscend/prosrc/icos/icoslib/web/webcfg.c b/proscend/prosrc/icos/icoslib/web/webcfg.c
index ae221e7..441f5b2 100644
--- a/proscend/prosrc/icos/icoslib/web/webcfg.c
+++ b/proscend/prosrc/icos/icoslib/web/webcfg.c
@@ -1008,6 +1008,13 @@ static int _notify(PRO_EVENT *pevent)
             WEB_INFO("ICOS_SYSTEM_UPDATE\n");
         case ICOS_UCAST_DMN_RESTART:
             WEB_INFO("ICOS_UCAST_DMN_RESTART\n");
+
+            /*
+            ** sleep 1 second before restart web daemon
+            ** - so the web daemon restart after the cgi response
+            */
+            sleep(1);
+
             WEB_INFO("daemon restart\n");
             web_dump(DUMP_ALL,"init config");
             for(i=0; MAX_DAEMON_NUM>i; i++)

測試 PASS

上 code

commit 718da8b28d3c77e82032baf1b80e4e4e387cb85c
Refs: [hotfix/v1.77], {origin/hotfix/v1.77}
Author: jeffrey <[email protected]>
Date:   Thu Feb 14 10:33:21 2019 +0800

    sleep 1 second before restart web daemon
    - so the web daemon restart after the cgi response

 proscend/prosrc/icos/icoslib/web/webcfg.c | 7 +++++++
 1 file changed, 7 insertions(+)

1035

回到 M330

M330 因為是從 M360 做 porting

所以並沒有 wan ethernet 的部分

參考一下 M300 把 wan ethernet 缺少的部分加上去

1310

目前看來 M330 web ui 的 status 部分需要補上 WAN EthernetWAN DNS

寫個 wiki 方便其他同仁補上 UI 需要的部分方便我撰寫 CGI

1810

今天為了網頁套用 react 做了一個起始點

commit 6dacee9ee73b140aaa8875e3a04be80a2201e568
Refs: [feature/proscend-porting], {origin/feature/proscend-porting}
Author: jeffrey <[email protected]>
Date:   Thu Feb 14 18:10:21 2019 +0800

    add a starting point for react

 proscend/prosrc/www/Makefile                    |    10 +-
 proscend/prosrc/www/my-app/.gitignore           |    23 +
 proscend/prosrc/www/my-app/README.md            |    68 +
 proscend/prosrc/www/my-app/package-lock.json    | 16387 ++++++++++++++++++++++
 proscend/prosrc/www/my-app/package.json         |    26 +
 proscend/prosrc/www/my-app/public/favicon.ico   |   Bin 0 -> 3870 bytes
 proscend/prosrc/www/my-app/public/index.html    |    41 +
 proscend/prosrc/www/my-app/public/manifest.json |    15 +
 proscend/prosrc/www/my-app/src/App.css          |    33 +
 proscend/prosrc/www/my-app/src/App.js           |    28 +
 proscend/prosrc/www/my-app/src/App.test.js      |     9 +
 proscend/prosrc/www/my-app/src/index.css        |    14 +
 proscend/prosrc/www/my-app/src/index.js         |    12 +
 proscend/prosrc/www/my-app/src/logo.svg         |     7 +
 proscend/prosrc/www/my-app/src/serviceWorker.js |   135 +
 15 files changed, 16807 insertions(+), 1 deletion(-)

實驗的進行可以先進 proscend/prosrc/www

執行 make react

再回到 proscend 目錄 make 即可

網頁的觀察可以用 URL - http://192.168.1.1/my-app