2009年6月25日 星期四

[RFID Project] ASP.NET Form usage via C#

Keyword: asp.net, C#, form, 表單, get, post methon

介紹一下如何用asp.net傳遞表單(form),下面是一個小例子。有附加程式碼(WebSite2.rar)在後面。


  • Default.aspx : form
    form預設就是用post去傳送變數,所以這例子中使用post去傳送變數。
    *如果想改用get去傳的話,將form加上method="get"


    • result.aspx:呈現結果
    重點在Request.Form["tag"]
    *如果想接受get的傳遞變數將Response.Write(Request.Form["tag"]);改成Response.Write(Request.QueryString["tag"]);

    結果就會如同下面這樣子


    送交後結果如下



    Reference: [1]http://blog.csdn.net/octverve/archive/2007/08/17/1749152.aspx

2009年6月24日 星期三

Ekiga via Gnu radio with USRP

前幾天已經有介紹過如何安裝Ekiga 2.0.12
現在就來介紹使用方式
首先啟動我們的[Gnu Radio] + USRP
利用gnuradio-example中的tunnel.py就可以透過802.11b來連線
所以首先先啟動
# tunnel.py -f 2.4G --bitrate=1M



啟動連線後,開始ekiga

由於我們要透過IP來當連線依據,所以請先選[編輯->偏好設定]
選網路設定後,將網路介面監聽改成我們的virtual device, gr0
選擇我們的視訊設備,如果沒看到的話,請點選偵測裝置
啟動我們的視訊裝置
接下來就開心使用摟~~

當然 要設定兩台摟!呵呵呵


注意:
防火牆記得關阿!

[RFID project] Passive reader SDK使用方式

使用流程如下:
1. 將RfidSdk下的WebDirectSrv複製到IIS server的網站資料夾下,一般預設是C:\Inetpub\wwwroot

2.進入到RfidSdk底下的WinDirect,修改1)WinDirect /WinDirect.exe.config, 2)WinDirect\bin/Debug/WinDirect.exe.config
修改成如下:藍色粗體字的部份請對應1)Web server 2)連到電腦的comport

3. 執行WinDirect\bin/Debug/WinDirect.exe
之後將tag去給reader 感應,就會看到tag號碼顯示在網頁上面了。

Install ekiga-2.0.12

由於3.0版的ekiga沒有我們要得功能,所以只好裝2.0的版本,好對應海洋大學的lab。

version dependence
ekiga-2.0.12 http://www.icewalkers.com/download/Ekiga/2683-306/old/
opal-2.2.11 http://ftp.acc.umu.se/pub/gnome/sources/opal/2.2/
pwlib-1.10.10 http://ftp.acc.umu.se/pub/gnome/sources/pwlib/1.10/

avahi請安裝如下
  • yum -y install avahi-glib-devel
安裝到最後ekiga出現的訊息
================ Final configuration ===================
Installing into prefix : /usr/local

OPAL Version is : 2.2.11
OPAL Directory is : /usr
PWLIB Version is : 1.10.10
PWLIB Directory is : /usr
ptlib-config is : /usr/bin/ptlib-config

SDL Fullscreen support : enabled
DBUS support : disabled
mDNS/DNS-SD support : enabled

OS Type : linux-gnu
Machine Type : i686

If all settings are OK, type make and make install
==================================================

注意:
如果透過IP不能動的話,請檢查防火牆是否有打開。

安裝Ekiga 紀錄

Ekiga http://ekiga.org/index.php?rub=1

Download source code from http://ekiga.org/index.php?rub=5&path=sources/ekiga_3.2.4
過程如下

# tar jxvf opal-3.6.2.tar.bz2
# tar jxvf ptlib-2.6.2.tar.bz2
# tar zxvf ekiga-3.2.4.tar.gz

  1. 先安裝 ekiga-3.2.4
  2. ./configure 遇到
    問題集
  3. checking for SIGC... configure: error: Package requirements (sigc++-2.0) were not met:

    No package 'sigc++-2.0' found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables SIGC_CFLAGS
    and SIGC_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details
  4. 安裝libsigc++ http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/
    libsigc++-2.2.3.tar.gz

    ./configure --prefix=/usr
  5. 問題集
    checking for AVAHI... configure: error: Package requirements (avahi-client >= 0.6 avahi-glib >= 0.6) were not met:

    No package 'avahi-client' found
    No package 'avahi-glib' found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables AVAHI_CFLAGS
    and AVAHI_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    下載安裝 avahi_0.6.23.orig.tar.gz

  6. 安裝AVAHI的問題集
    找不到qt-mt
    安裝qt-devel
    # yum -y install qt3-*

  7. 安裝AVAHI的問題集
    checking for LIBDAEMON... configure: error: Package requirements ( libdaemon >= 0.11 ) were not met:

    No package 'libdaemon' found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables LIBDAEMON_CFLAGS
    and LIBDAEMON_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.


    安裝libdaemon-devel
    # yum -y install libdaemon-devel

  8. 安裝AVAHI的問題集
    checking for MONODOC... configure: error: Package requirements (monodoc >= 1.1.8) were not met:

    No package 'monodoc' found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables MONODOC_CFLAGS
    and MONODOC_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.





囧 最後我發現 我只要下

# yum install ekiga*