20191021_jeffrey - silenceuncrio/diary GitHub Wiki

0910

調查一下 bruce 在 M330 生產地(深圳) 所反應的現象

Alarm 的DO behavior 要設成pulse(我測過,在always沒問題), 然後DI 的開關(接console的DI開關)要切換大約3次, 然後等個30秒後load factory, IE沒動作。


測了五次都複製不出來

1010

準備買一台電視把台中家裡的換掉

目前鎖定 全國電子 - 太平(三)門市

  • 台中市太平區中山路四段163,165號
  • 04-23982758

先 survey 一下

1030

review 一下 issue

以 M330 為優先

  • 0000737 - [APN1 Usage] refresh on Daily web page, data sometimes repeat
  • 0000733 - when link down reboot is checked, upgrade firmware should be avoid reboot

先解 0000737 - [APN1 Usage] refresh on Daily web page, data sometimes repeat

無法複製 - 切成 resolve 等 DQA 回應


再解 0000733 - when link down reboot is checked, upgrade firmware should be avoid reboot

這個 issue 是需要我確保再整個 firmware upgrade 的過程

不會被其它的 icos module 再該過程把 device 重啟了

  • LTE link down counter 所觸發的 reboot
  • schedule reboot

讓其它模組知道目前 device 正在 upgrade 我可以在 share memory 定義一個 int 0 表示目前沒有在 upgrade 1 表示目前正在 upgrade

1130

bruce 已回台灣

到現場一看才發現是 IE 的 快取所造成

image

關鍵的 icos_config.cgi?act=load_factory_and_reboot 因為 (來自快取) 的原因並沒有送出

清除快取 之後便正常了

1325

icos_config.cgi?act=load_factory_and_reboot 因為 (來自快取) 的原因並沒有送出 可以用以下的方式解決

diff --git a/proscend/prosrc/www/app/services/icos.service.js b/proscend/prosrc/www/app/services/icos.service.js
index 20d0e4a..686168c 100644
--- a/proscend/prosrc/www/app/services/icos.service.js
+++ b/proscend/prosrc/www/app/services/icos.service.js
@@ -564,10 +564,10 @@ function icos($http, $q) {

     var config = {}
     config.coldreboot = function() {
-        return $http.get('cgi-bin/icos_config.cgi?act=coldreboot');
+        return $http.get('cgi-bin/icos_config.cgi?act=coldreboot&uuid=' + Math.random());
     }
     config.load_factory_and_reboot = function() {
-        return $http.get('cgi-bin/icos_config.cgi?act=load_factory_and_reboot');
+        return $http.get('cgi-bin/icos_config.cgi?act=load_factory_and_reboot&uuid=' + Math.random());
     }
     config.help = function() {
         return $http.get('cgi-bin/icos_config.cgi?act=help');

M330[release/v0.08] - append a random value to the request to prevent the cache problem at IE browser

commit 0e6c074fee25b79dfef014aef994acd5b62e416c
Refs: [release/v0.08], {origin/release/v0.08}
Author: jeffrey <[email protected]>
Date:   Mon Oct 21 13:28:52 2019 +0800

    append a random value to the request to prevent the cache problem at IE browser

 proscend/prosrc/www/app/services/icos.service.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

1400

M330[release/v0.08] - force the mtu of gre tunnel interface to 1400 (default is 1500 - 24 = 1476)

commit 5f67801f8e46a7ddce4a877be5962d0b0b3134a5
Refs: [release/v0.08], {origin/release/v0.08}
Author: jeffrey <[email protected]>
Date:   Mon Oct 21 13:57:58 2019 +0800

    force the mtu of gre tunnel interface to 1400 (default is 1500 - 24 = 1476)

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

1645

M330[release/v0.08] - use SHM_ID - SHM_FIRMWARE_UPGRADING to indicate the status of the firmware upgrade

commit 0fe9c2f9b3ce64a9a962adc0093c96bccc174737
Refs: [release/v0.08], {origin/release/v0.08}
Author: jeffrey <[email protected]>
Date:   Mon Oct 21 16:01:17 2019 +0800

    use SHM_ID - SHM_FIRMWARE_UPGRADING to indicate the status of the firmware upgrade
    ```
    int _shm_firmware_upgrading = ICOS_shm_status_getInt(SHM_FIRMWARE_UPGRADING);
    ```

    0 - firmware is not upgrading currently
    1 - firmware is upgrading currently

 .../prosrc/icos/icoslib/ipc_utility/icos_ipc.c     |  7 ++++-
 proscend/prosrc/icos/icoslib/web/webcfg.c          | 36 ++++++++++++++++++++++
 proscend/prosrc/icos/include/icos_shm.h            |  2 ++
 proscend/prosrc/icos/script/FirmwareUpgrade.sh     |  7 +++++
 4 files changed, 51 insertions(+), 1 deletion(-)

M330[release/v0.08] - at schedule-reboot module, each type:

commit e61ffe262532e90aaaeecdeb5512a954838a356d
Refs: [release/v0.08], {origin/release/v0.08}
Author: jeffrey <[email protected]>
Date:   Mon Oct 21 16:44:43 2019 +0800

    at schedule-reboot module, each type:
    - interval
      - use ICOS_shm_status_getInt(SHM_FIRMWARE_UPGRADING) to decide whether reboot or not
    - 'Per Day', 'Per Week' and 'Per Month'
      - modify 'schedule_reboot.sh'
        - refer to existence of '/tmp/fwupgrading'to decide whether reboot or not

    at FirmwareUpgrade.sh
    - use a file to indicate that firmware is upgrading currently

 .../icos/icoslib/schedule_reboot/schedule_reboot.c   | 20 ++++++++++++++------
 proscend/prosrc/icos/icoslib/web/webcfg.c            |  2 +-
 proscend/prosrc/icos/script/FirmwareUpgrade.sh       | 12 ++++++++++--
 proscend/prosrc/icos/script/schedule_reboot.sh       | 14 ++++++++++++--
 4 files changed, 37 insertions(+), 11 deletions(-)