2007/09/01

研究觀念

在實驗室最重要的事情是你自己要分配自己的時間,什麼時候念
paper什麼時候寫程式時麼時候打球運動,每天早上起床其實早點起來可以做很多事情
早上就可以先想一下今天要做哪些事情,做完了就可以去爽了

沒事多待在實驗室大家的感情其實也會比較好,不然就是多多聚餐

重點就是paper一開始一定要看的多,或是直接看老板上課有一本wireless sensor的書,
他有很多層的介紹與paper的整理,你看看你對哪的方面有興趣的就可以翻後面的目錄自己
去看看,然後有興趣了以後大概就專心的抓差不多20篇左右的paper但是這中間大概會有
垃圾或是奇怪的paper重點就是你看完了以後想一個方法很爛沒有關係但是你要讓老闆知
道你有看了很多這類的paper,可能一開使老闆會一直打你槍,但是一定要堅持到最後如
果那個是你的興趣的話,老闆就會妥協了

每次跟老闆的 meeting很重要,千萬不要有那種得過且過的想法
因為老闆已經去清大了,所以以後你們能跟他meeting的時間要是錯過了可能就要自己去
清大找老師,因為每次的討論時間就是一個對你的方法再更近一步的探討

寫模擬的大概要再12月以前搞懂NS2再衝三小,然後自己可以先針對自己的想法先偷寫,然
後多看google,而且你們除了要寫自己的方法,也要
寫人家的方法要跟人家比較,所以NS2工具的使用特別的重要,另外如果你到超熟的話可以
去PTT去接寫NS2模擬的case很賺,另外NS2可以問問看張育嘉學長,不知是誰嗎? 就是天
天在後面張嘴打電動的那個,他NS2 星海 還有魔獸都蠻厲害的

如果你是實作的請多多加強自己的心臟能力還有程式解bug的能力,我是實作
的常常實驗的結果會不是你想像的,因為變數太多了,所以有的時候方法想完實做了還要常
常修正你的方法,記得要多多跟同學討論,才會有多一些想法,常常我有很多不是我預期
的實驗錯誤或是不明的原因我都會找伯權或是rocky討論,這個很重要它可以幫助你有更
多的想法,在這個過程中你也會發現很多問題以及對應的解決方法,這次的口試教授問的
問題其實再我平常實作的時候就有發生過,還回答的蠻順利的,所以記得在口試前要對自
己的論文極度清楚,還有衍生的問題這些都是可以先在跟老師 meeting 與 實作中發現,如果
到了口試的時候才被委員問出來,那個場面會很難看而且老闆能幫你檔一時,沒有辦法檔全
部,當然如果你們還有其他作研究的問題可以多問問看博班或是我們學長,我們會很樂意
跟你們說的

另外老師的話不用聽的太認真,有的時候它只是講爽的而已,只要對得起
自己問心無愧就可以了

2007/08/29

Change radio transmit power and frequency on Tmote

http://www.moteiv.com/community/Change_radio_transmit_power_and_frequency

---Backup the article

Change frequency at compile time

One way to set the CC2420 radio channel is to do it at compile time by assigning the environment variable CC2420_CHANNEL perhaps like this

export CC2420_CHANNEL=12

The valid channels for the CC2420 are 11 to 26, and the default is channel 11. You can put that export command in your login script such as ~/.bashrc to make it persistent across login sessions. If you want a radio channel specific to an application, you can put a similar command in that application's Makefile, like this

CC2420_CHANNEL=12

The next time you build your application, the changes will take effect. Do not forget to also recompile and reinstall TOSBase with the new channel, as well, if applicable.

Change transmit power at compile time

To change the transmit power at compile time, you will need to predefine a preprocessor directive called CC2420_DEF_RFPOWER. To do this, define your compile flags "CFLAGS" before compiling your application. You must specify a power index from 1 to 31. The valid values are 1 through 31 with power of 1 equal to -25dBm and 31 equal to max power (0dBm)

CFLAGS=-DCC2420_DEF_RFPOWER=x make tmote

Change transmit power or frequency at run time

Another way to set the CC2420 radio channel or transmit power is to use the CC2420Control interface provided by the CC2420RadioC component. The two applicable commands are

command result_t TunePreset( uint8_t rh, uint8_t channel );
command result_t SetRFPower( uint8_t rh, uint8_t power );

rh
Either RESOURCE_NONE for automatic resource scheduling or a resource handle acquired by the CC2420ResourceC component. Note, this parameter is not present in any of the commands in the TinyOS 1.x CC2420Control interface

channel
One of the valid 802.15.4 present channels. Valid channel values are 11 through 26. The channel frequencies are calculated by

Freq = 2405 + 5(k-11) MHz for k = 11,12,...,26

power
A power index from 1 to 31. The input value is simply an arbitrary index that is programmed into the CC2420 registers. The output power is set by programming the power amplifier. The valid values are 1 through 31 with power of 1 equal to -25dBm and 31 equal to max power (0dBm)

2007/08/28

The Big Ol' Ubuntu Security Resource

http://www.itsecurity.com/features/ubuntu-secure-install-resource


Watch video in Ubuntu

1. Add new repository following http://medibuntu.sos-sts.com/repository.php

2. Install codecs


sudo apt-get update
sudo apt-get install gstreamer0.10-alsa \
gstreamer0.10-esd \
gstreamer0.10-ffmpeg \
gstreamer0.10-fluendo-mpegdemux \
gstreamer0.10-gnomevfs \
gstreamer0.10-plugins-base \
gstreamer0.10-plugins-base-apps \
gstreamer0.10-plugins-good \
gstreamer0.10-plugins-ugly gstreamer0.10-x
sudo apt-get install w32codecs \
libdvdcss2 \
libxine-extracodecs \
totem-xine \
ffmpeg \
lame \
faad \
sox \
mjpegtools \
libxine-main1



3. Upgrade



sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade



2. Set preferences
Select video driver to xv (X11/Xv)

Reference:
http://tw.myblog.yahoo.com/jw!Z3YOJZSGER5taqtYmemK3uSU/article?mid=368&prev=-1&next=366
http://54061.blogspot.com/2007/03/ubuntu-704-codec-rmvb.html
http://www.ubuntu.org.tw/modules/newbb/viewtopic.php?topic_id=4041&viewmode=flat&order=ASC&type=&mode=0&start=30
http://www.ubuntu.org.tw/modules/newbb/viewtopic.php?topic_id=42&viewmode=flat&order=ASC&type=&mode=0&start=0

2007/08/27

Server list

YZU

bbs.cse.yzu.edu.tw 2200 FreeBSD 4.11-STABLE *
freebsd.netlab.cse.yzu.edu.tw 22 Ubuntu
OSs.CNA.CCu.Edu.Tw 23
bbs.yzu.edu.tw 22 FreeBSD 4.11-STABLE *
linux.netlab.cse.yzu.edu.tw 22 Linux version 2.6.10-1.771_FC2
moon.cse.yzu.edu.tw 9999 FreeBSD 6.2-STABLE
webbbs.yzu.edu.tw 22 FreeBSD 6.2-STABLE *

NCU

sokoyo.csit.tw 2222 Ubuntu 7.10 *
axp1.csie.ncu.edu.tw 5330 Linux version 2.6.19-1.2911.fc6PAE
sparc12.cc.ncu.edu.tw 22 Solaris
sparc13.cc.ncu.edu.tw 22 Solaris
sparc14.cc.ncu.edu.tw 22 Solaris
sparc15.cc.ncu.edu.tw 22 Solaris
sparc19.cc.ncu.edu.tw 22 Linux version 2.6.17-1.2142_FC4
sparc20.cc.ncu.edu.tw 22 Linux version 2.6.17-1.2142_FC4