20200214_jeffrey - silenceuncrio/diary GitHub Wiki

0910

review 一下這個禮拜的進度

1125

RD 週會 摘要

  • M350 - Wiki - Design - Carrier Aggregation
    • web ui
    • 若 CA_TBL.num = 0 - CA 的 tab 要消失
    • 若 CA_TBL.num = 1 - 多 1 個 CA 的 tab
    • 若 CA_TBL.num = 2 - 多 2 個 CA 的 tab
    • 若 CA_TBL.num = 3 - 多 3 個 CA 的 tab
  • m330 - Wiki - Design Document - Airtel PLMN check
    • web ui - status
    • SIM Status 若為 Illegal 時 - 希望字體顏色是 紅色
  • M360P - BGP MD5 Authentication
    • char key[17] in bgp_neighbor_t
      • winston 希望我把 17 改成 20
      • compile 最佳化後會變成 4 的倍數
    • key 的 web ui 輸入希望可以 容許空白
  • [情報] - allnet 這家公司
    • 類似國內的 順發 燦坤
    • 功能應該限縮在比較精簡 避免後續的客訴問題
  • bug review
    • M300
      • 0000902: VRRP doesn't follow standard
        • 我在會議表示: 後續會排時間優先在新 project m350 上解決
      • 0000914: online manual opened via ie without the ability to adjust window screen size
        • 昨天 ariel 發現 然後我自己發的
        • 全機種的問題 只發在 M300
      • 0000915: Refresh on "Usage display" web page, data sometimes repeat
        • 跟 M330 一樣 - 0000737: [APN1 Usage] refresh on Daily web page, data sometimes repeat
        • DQA 表示後來怎麼測都測不出來
        • 這次是一發現趕快抓圖 然後就測不出來了
    • M330
      • 0000911: change dhcp to pppoe, M330 ETH can get ip from ISP, but pc can not access internet
        • 希望我透過 web ui 提醒使用者要重開機
    • M360P
      • 0000908: sometimes first time modify LTE NET mode or APN on dual APN will apply fail
        • ariel 和 john 都有發現
        • 希望我花時間查一下

1300

繼續 review 這個禮拜的進度

M300 - new issue

  • 0000914: online manual opened via ie without the ability to adjust window screen size

M300[develop]

  • change wording from "Modem Status" to "SIM Status" to avoid customer confusion

M300[release/v2.03]

  • add 'Diagnosis > TTY2TCP'
  • base on compile flag PROSRC_GNSS to show 'LTE > GPS' function

m330 - CTCU 客訴 CTCU 開啟 m330 的 web ui 時
browser 先前已經 cache 住同檔名的 m300 的網頁
但同檔名的 m300 的網頁 - 例如 wan_health_check.html
WAN_HEALTH_CHECK_LEGEND_LTE 這個多國語言 key
m300 有但 m330 沒有
所以在 browser 上就會直接把該 key 顯示出來
這是 cache 產生的問題
尤其在相同 ip
m300 和 m330 混著操作的時候更容易發生

m330[develop]

  • change wording from "Modem Status" to "SIM Status" to avoid customer confusion

m330[release/v0.09]

  • base on compile flag PROSRC_GNSS to show 'LTE > GPS' function

m350[develop]

  • correct the icon name since we update Font Awesome from version 4.6.3 to 5.1
    • fa-compress to fa-compress-alt
    • fa-expand to fa-expand-alt
  • add 'Diagnosis > TTY2TCP'
    • also the factory default
  • base on compile flag PROSRC_GNSS to show 'LTE > GPS' function
  • more user friendly the online manual for 'LTE > Serving Cell'
  • change wording from "Modem Status" to "SIM Status" to avoid customer confusion

m350-c[develop]

  • change wording from "Modem Status" to "SIM Status" to avoid customer confusion

M360P - PI Amit skype 求助 Amit: is there any option to check the status of BGP in M360-P
Jeffrey: telnet localhost 2605 - quagga cli
show bgp neighbors
BGP state = Established - working fine
Amit: state is 'Active'
Jeffrey: If the router was unable to establish a successful TCP session, then it ends up in the Active state.
...
<後來 Amit 沒說怎麼解決的>
<teamviewer 剛開起來他就說 - ok now connection established>

M360P - BGP MD5 Authentication

  • [Quagga CLI] Router(config-router)# neighbor 192.168.1.13 password mypassword
  • [BGP log] BGP: can't set TCP_MD5SIG option on socket
  • make kener_menuconfig - TCP: MD5 Signature Option support (RFC2385)
  • neighbor 192.168.1.13 password mypassword
    • TCP packets 多出一個 option - TCP MD5 signature

M360P - wiki - BGP MD5 Authentication

M360P[develop]

  • change wording from "Modem Status" to "SIM Status" to avoid customer confusion

M360P[release/v1.06]

  • add 'Diagnosis > TTY2TCP'
    • also add MODULE_TTY2TCP into moduleInitAry[]
  • add 'MD5 Authentication' for BGP
  • update the release:
    • [New] add 'MD5 Authentication' for BGP
  • change wording from "Modem Status" to "SIM Status" to avoid customer confusion

task list

M300

  • none

m330

  • P4 - Web UI; GPS Track drawing(Server)

m350

  • P1 - Web UI: CA info

m350-c

  • P1 - GRE
  • P1 - Firmware Upgrade
  • P1 - GRE keep alive

M360P

  • P1 - BGP with MD5
  • P2 - BGP status for every neighbors

1315

m330 - 客戶 東訊 問到 GPS 相關功能

東訊 目前是使用 generic 版本

說照著 user manual 設定但不 work

GPS 從 RS232 傳出去的功能


先用手上的 m330 for CTCT 的版本確認

ariel 表示我們已經把 GPS 訊號 over RS232 傳出去的功能拿掉了

要一年前的 M300 才有

m330 從頭到尾都沒有

不過 東訊 從 user manual 上看到該功能也是事實

spring 繼續 follow 後續的回復

1445

follow 週會 摘要

  • M360P - BGP MD5 Authentication
    • char key[17] in bgp_neighbor_t
      • winston 希望我把 17 改成 20
      • compile 最佳化後會變成 4 的倍數

M360[release/v1.06] - adjust the size of key[] from 17 to 20

commit 44b700fc5c1242ca38a45ac8e577154151af8e53
Refs: [release/v1.06], {origin/release/v1.06}
Author: jeffrey <[email protected]>
Date:   Fri Feb 14 15:20:41 2020 +0800

    adjust the size of key[] from 17 to 20

    The functions snprintf() and vsnprintf() write at most size bytes (including the terminating null byte ('\0')) to str.
    so if we want to offer a key with maxlength 16
    the length of c structure should be 16+1 (including the terminating null byte)

    but from c compiler point of view
    a number which is a multiple of 4 is good for compiler optimization
    so we choose 20 not 17

 proscend/prosrc/icos/icoslib/bgp/bgp.c    |  2 +-
 proscend/prosrc/icos/include/module_bgp.h | 10 +++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

1535

  • M360P - BGP MD5 Authentication
    • key 的 web ui 輸入希望可以 容許空白

一起參考 0000831: WiFi STA passphrase doesn't follow standard

所謂的 容許空白 可以參考 設定高強度密碼並強化帳戶安全性

您不能使用以下這幾種密碼:

  • 強度極低的密碼,例如:「password123」
  • 先前曾在帳戶中使用過的密碼
  • 開頭或結尾是空格的密碼

開頭或結尾是空格的密碼

目前使用下面的code 做實驗時發現

  <pre>key length: {{vm.tmp.neighbors.target.key.length}}</pre>

  <div class="form-group"
    ng-show="vm.tmp.neighbors.target.authentication=='on'"
    ng-class="{ 'has-error': form.neighbors_key.$invalid }">
    <label class="col-sm-3 control-label">{{ 'BGP_NEIGHBORS_KEY' | translate }}</label>
    <div class="col-sm-3">
      <input type="password" class="form-control" 
        required
        ng-maxlength="16"
        name="neighbors_key"
        ng-model="vm.tmp.neighbors.target.key">
    </div>
    <div class="col-sm-6">
      <p class="form-control-static">The key used for authentication (maxlength=16)</p>
    </div>
  </div>

  <div class="form-group"
    ng-show="vm.tmp.neighbors.target.authentication=='on'"
    ng-class="{ 'has-error': form.neighbors_key.$invalid }">
    <label class="col-sm-3 control-label">{{ 'BGP_NEIGHBORS_KEY' | translate }}</label>
    <div class="col-sm-3">
      <input type="text" class="form-control" 
        required
        ng-maxlength="16"
        name="neighbors_key"
        ng-model="vm.tmp.neighbors.target.key">
    </div>
    <div class="col-sm-6">
      <p class="form-control-static">The key used for authentication (maxlength=16)</p>
    </div>
  </div>

透過

key length: {{vm.tmp.neighbors.target.key.length}}
的觀察

會發現 <input type="text" ...><input type="password" ...> 對使用者的輸入會有不同的行為

借用 HTML 的 &nbsp; 來表示 1 個 空白字元

看一下 &nbsp; x &nbsp; &nbsp; x &nbsp; 這六個字元

分別在 <input type="text" ...><input type="password" ...> 輸入的差別


<input type="text" ...>

image

  • 忽略掉你開頭跟結尾的空白字元
  • 計算出的長度只有 4
  • 有效輸入的字元如下
    • x &nbsp; &nbsp; x

<input type="password" ...>

image

  • 不會忽略掉你開頭跟結尾的空白字元
  • 計算出的長度為 6
  • 有效輸入的字元如下
    • &nbsp; x &nbsp; &nbsp; x &nbsp;

參考 w3schools.com 的作法 How TO - Toggle Password Visibility

AngularJS 的做法可以參考 AngularJS Toggle Password Visibility

  • 已經結合了 Font Awesome

1700

密碼能容許空白是一回事

quagga cli 是否容許輸入空白又是一回事

M360P[release/v1.06] 下禮拜一就要 release 了

不要再動了

拿 m350 來做實驗吧

1705

張羅一下 jubuntu 上的 m350

新的 m350.vmdk

再 重新 compile proscend 外層

1725

PM ariel 表示

印度 PI 要求 M360P 和 m330

都要 BGP status for every neighbors

下禮拜 m350 得空就來做


剛發現到我以為進到 build-m350

結果我下的是

docker exec -it -u user build-m360 bash

還很開心下了 build.sh

Control + C 退出 - 下禮拜再補救了

今天下班前的任務還是 jubuntu 上的 m350

不使用 build.sh - 裏頭的 make -j2 聽同仁說有風險

自己來吧

source proenv.sh
make
⚠️ **GitHub.com Fallback** ⚠️