20190315_jeffrey - silenceuncrio/diary GitHub Wiki
0910
review
盤一下這禮拜做了什麼
- M330
- [Angular]remove the duplicate dependency injection
- correct the 'LAN > VLAN' page
- add 'GPS' related information into 'Status' page
- add 'RSSI' field at 'LTE > Serving Cell' web page
- complete the missing action lables at 'LTE > SMS' web page
- the value of 'LTE Net Mode' comes from 'ICOS_shm_status_getInt(SHM_LTE_NET_MODE)' at 'LTE > APN1 Usage' and 'LTE > APN2 Usage' web page
- correct the 'LTE Net Mode' at 'LTE > APN1 Usage' and 'LTE > APN2 Usage' web page
- react practice:
- redirect to /signin route when the response.status of fetch is 401
- after signin ok, use history.goBack() to redirect to the previous route
- add SignOut component
- add 'Sign Out' button at Navigation component
- M300
- add the following 2 fields to 'wifi_ate' page:
- Set adaptive
- Set Sensitivity
- add 'RSSI' field at 'LTE > Serving Cell' web page
- add the following 2 fields to 'wifi_ate' page:
1150
areil 表示 WAN > Ethernet
設定 PPPoE Client
apply 下去
MODULE_CONNMGR
收到一堆 0
root@M330:~# cat /home/log/connmgr.log
...
56857[19700101 15:47:37] [dump_wan_protocol:385]====> Dump Wan Protol <=========
56857[19700101 15:47:37] [dump_wan_protocol:386] weth_static_v4=0
56857[19700101 15:47:37] [dump_wan_protocol:387] weth_dhcp_v4=0
56857[19700101 15:47:37] [dump_wan_protocol:388] dhcp_v6=0
56857[19700101 15:47:37] [dump_wan_protocol:389] weth_pppoe_v4v6=0
56857[19700101 15:47:37] [dump_wan_protocol:390] wlte_ppp_v4v6=0
56857[19700101 15:47:37] [dump_wan_protocol:391]<===============================>
...
1315
應該是 M330 是 Big-Endian 所導致的問題
M300 是 Little-Endian 所以沒事
john 那邊有 compile flag 可以隔開
diff --git a/proscend/prosrc/webcgi/connmgr.c b/proscend/prosrc/webcgi/connmgr.c
index 70a1f92..91c2af5 100644
--- a/proscend/prosrc/webcgi/connmgr.c
+++ b/proscend/prosrc/webcgi/connmgr.c
@@ -139,11 +139,23 @@ static void _chg_wproto_apply()
jweb.out.json.fail("ICOS_GetSetting fail");
}
- jweb.in.to_int("weth_static_v4", &WanProtocol.weth_static_v4);
- jweb.in.to_int("weth_dhcp_v4", &WanProtocol.weth_dhcp_v4);
- jweb.in.to_int("dhcp_v6", &WanProtocol.dhcp_v6);
- jweb.in.to_int("weth_pppoe_v4v6", &WanProtocol.weth_pppoe_v4v6);
- jweb.in.to_int("wlte_ppp_v4v6", &WanProtocol.wlte_ppp_v4v6);
+ int weth_static_v4 = 0;
+ int weth_dhcp_v4 = 0;
+ int dhcp_v6 = 0;
+ int weth_pppoe_v4v6 = 0;
+ int wlte_ppp_v4v6 = 0;
+
+ jweb.in.to_int("weth_static_v4", &weth_static_v4);
+ jweb.in.to_int("weth_dhcp_v4", &weth_dhcp_v4);
+ jweb.in.to_int("dhcp_v6", &dhcp_v6);
+ jweb.in.to_int("weth_pppoe_v4v6", &weth_pppoe_v4v6);
+ jweb.in.to_int("wlte_ppp_v4v6", &wlte_ppp_v4v6);
+
+ WanProtocol.weth_static_v4 = weth_static_v4;
+ WanProtocol.weth_dhcp_v4 = weth_dhcp_v4;
+ WanProtocol.dhcp_v6 = dhcp_v6;
+ WanProtocol.weth_pppoe_v4v6 = weth_pppoe_v4v6;
+ WanProtocol.wlte_ppp_v4v6 = wlte_ppp_v4v6;
res = ICOS_Apply(MODULE_CONNMGR, CHG_WPROTO, 0, &WanProtocol, sizeof(WanProtocol));
if (res != ICOS_SUCCESS)
M300 剛好閃掉這問題罷了
上 code
commit 503eb8604529c9d6ee173a16355319aaa69ea6ef
Author: jeffrey <[email protected]>
Date: Fri Mar 15 13:22:52 2019 +0800
[CGI]fix problem caused by Big-Endian
proscend/prosrc/webcgi/connmgr.c | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
1400
稍微盤一下 CGI
並沒有發現其他類似的狀況