20160826_jeffrey - silenceuncrio/diary GitHub Wiki

Index

  • 0805 - 恢復到正常開工的狀態
  • 0950 - 開響 第一砲 - Revision: 425 - Add "CGI Class 101"
  • 1000 - m300 meeting
  • 1115 - 配合 john 包裝 wanstcfg.c 的 CGI
  • 1725 - iweb - 相當滿意的作品

0805

終於又可以恢復到正常開工的狀態了

今天要補一下之前 web 的進度

記得要 commit 到 SVN 去

0950

終於開響了我的第一砲

Revision: 425
Author: jeffrey
Date: 2016年8月26日 上午 09:46:34
Message:
Add "CGI Class 101"

How to join the class_101
1. login to the M300 web, ex: http://192.168.1.1
2. use the following path to see the result of each class
  - http://192.168.1.1/cgi-bin/class_101.cgi_1
  - http://192.168.1.1/cgi-bin/class_102.cgi_1
  - http://192.168.1.1/cgi-bin/class_103.cgi_1
  - http://192.168.1.1/cgi-bin/class_104.cgi_1

----
Modified : /fsl-release-bsp/proscend/prosrc/webcgi/Makefile
Added : /fsl-release-bsp/proscend/prosrc/webcgi/class_101.c
Added : /fsl-release-bsp/proscend/prosrc/webcgi/class_102.c
Added : /fsl-release-bsp/proscend/prosrc/webcgi/class_103.c
Added : /fsl-release-bsp/proscend/prosrc/webcgi/class_104.c

ubuntu_15 搭配 samba 的設定 - /etc/samba/smb.conf

...
[Project]
path = /home/jeffrey/Project
writable = yes
guest account = jeffrey
force user = jeffrey
public = yes
force group = jeffrey
browseable = yes

create mask = 0664
directory mask = 0775

我直接可以在 window 下操作 source insight 和 svn

一切又回到自己非常習慣的節奏上了

1000

m300 meeting

1115

先配合 john 來包裝 wanstcfg.c 的 CGI

sIcosModule wanStModule=
{
    "wanst",
    init_wanst,
    exit_wanst,

    apply_wanst_setting,
    get_wanst_setting,
    set_wanst_setting,
    verify_wanst_setting,
    0,   // GetStatus
    0,   // String to value conversion
    facotry_default_wanst_setting,
    period_wanst,
    notify_wanst,
    0,
    0,
};

CGI 的 source code 目前是放在 Z:\M300\fsl-release-bsp\proscend\prosrc\webcgi

以 john 的 wanstcfg.cwanStModule 這個 sIcosModule 為例

相對應的 CGI source code 就叫做 Z:\M300\fsl-release-bsp\proscend\prosrc\webcgi\wanstcfg.c

簡單易懂

如果是參考 Z:\M300\fsl-release-bsp\proscend\prosrc\icos\include\icos_module.h 的 module id 就更棒了

因為 icos 的 module id 本來就不會重複了

省了我取名子的功夫

1725

下午作了兩次 commit

Revision: 430
Author: jeffrey
Date: 2016年8月26日 下午 01:28:12
Message:
weblib_cgi.c is deprecated
Remove related CGI depended on weblib_cgi.c

----
Modified : /fsl-release-bsp/proscend/prosrc/webcgi/Makefile

先把跟 weblib_cgi.c 相依的 CGI 先移除

反正之後都是要整個再 review 一次

Revision: 436
Author: jeffrey
Date: 2016年8月26日 下午 05:23:16
Message:
Add iweb API for implementing CGI more easily

Add wanst.cgi
- CGI for MODULE_WANST
- act=get done
- act=apply wait for implementing

----
Modified : /fsl-release-bsp/proscend/prosrc/webcgi/Makefile
Added : /fsl-release-bsp/proscend/prosrc/webcgi/iweb.c
Added : /fsl-release-bsp/proscend/prosrc/webcgi/iweb.h
Added : /fsl-release-bsp/proscend/prosrc/webcgi/wanst.c

iweb 是我相當滿意的作品

期待它在 M300 發光發熱