[改機]為你的 Router 加上 LCD 顯示幕 - WL-500GP + Palm IIIc

當你的 Router 改完機之後裝了一大票軟體,想必你已心滿意足沈溺在BT下載的樂趣之中。

突然間你發現網路燈號已經平息,可是你卻不知道目前系統狀況如何? 到底是已全數下載完畢還是網路早已斷線而你卻還不自知。

趕快拿出家裡塵封已久的 Palm,參考一下簡單的步驟,你也可以 DIY 搞個 LCD 顯示幕喔。

準備物件:
1.ASUS WL-500 系列無線 Router,有 USB 界面的皆可(本機已改機採用 Oleg's firmware)
2.Palm 一台,本篇採用的是 Palm IIIc
3.Palm USB-to-Serial 傳輸線

接下來就是安裝軟體的部份
$ ipkg update
$ ipkg upgrade
$ ipkg install lcd4linux


再來是安裝 Palm 上的顯示界面PalmOrb
到 http://sourceforge.net/project/showfiles.php?group_id=2987&package_id=2968 下載
這裡實驗的 PalmOrb 是採用 V1.1a4 版本
下載回來請透過 HotSync 安裝進你的 Palm 上

底下是啟動 PalmOrb 的參考畫面


接下來連接 WL-500GP & Palm
檢查一下 USB 裝置
$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 0420:1307 Chips and Technologies
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port <= 就是這個光..


手動載入 usbserial,pl2303 驅動模組
$ insmod usbserial
$ insmod pl2303


編寫 display script
$ nano /opt/etc/lcd4linux.conf

內容是:

Display PalmOrb {
Driver 'MatrixOrbital'
Model 'LK204-25'
Port '/dev/usb/tts/0'
Speed 19200
Icons 1
}

Widget OS {
class 'Text'
expression '*** '.uname('sysname').' '.uname('release').' ***'
width 20
align 'M'
speed 100
update tick
}

Widget CPU {
class 'Text'
expression uname('machine')
prefix 'CPU '
width 9
align 'L'
update tick
}


Widget RAM {
class 'Text'
expression meminfo('MemTotal')/1024
postfix ' MB RAM'
width 11
precision 0
align 'R'
update tick
}

Widget Busy {
class 'Text'
expression proc_stat::cpu('busy', 500)
prefix 'Busy'
postfix '%'
width 10
precision 1
align 'R'
update tick
}

Widget BusyBar {
class 'Bar'
expression proc_stat::cpu('busy', 500)
expression2 proc_stat::cpu('system', 500)
length 10
direction 'E'
update tack
}

Widget Eth0 {
class 'Text'
netdev('eth0', 'Rx_bytes', 500)+netdev('eth0', 'Tx_bytes', 500))/1024
prefix 'eth0'
postfix ' '
width 10
precision 0
align 'R'
update tick
}

Widget Eth0Bar {
class 'Bar'
expression netdev('eth0', 'Rx_bytes', 500)
expression2 netdev('eth0', 'Tx_bytes', 500)
length 14
direction 'E'
update tack
}

Layout Default {
Row1 {
Col1 'OS'
}
Row2 {
Col1 'CPU'
Col10 'RAM'
}
Row3 {
Col1 'Busy'
Col11 'BusyBar'
}
Row4 {
Col1 'Eth0'
Col11 'Eth0Bar'
}
}


Display 'PalmOrb'

Layout 'Default'

Variables {
tick 500
tack 100
}


改變檔案屬性
$ chmod 600 /opt/etc/lcd4linux.conf

執行,Go!
$ lcd4linux -f /opt/etc/lcd4linux.conf

如果一切順利的話,可以看到如下的實際運作影片


參考資料:
http://ssl.bulix.org/projects/lcd4linux/
http://palmorb.sourceforge.net/
http://tw.youtube.com/watch?v=_8Baye3JfZM
http://digiland.tw/viewtopic.php?id=466
請問windows mobile 可以做到嗎>?!
Aven138 wrote:
當你的 Router...(恕刪)
icewalker wrote:
請問windows ...(恕刪)


對於Windows Mobile 系列 (含PPC系列)

台灣大部分擁有PDA的OS Base 還是比較偏向微軟方面的...

不過... 這樣證明輸出已經沒有問題...

我 lsusb 的時候,在RHEL5上面有抓到我的PDA...

剩下的就要找類似 PlamOrb...

類似在於 Windows Mobile or PPC 的Base上面來當作Display的接收端...

我現在也在search這方面的solution....

icewalker wrote:
請問windows ...(恕刪)

您的問題我也曾思考過,目前在 Windows Mobile 上還沒找到類似PalmOrb相對應的軟體,比較可行的做法是:
1.在 Windows Mobile 上安裝 Palm 模擬器跑 PalmOrb。
2.使用 Windows Mobile 上的網路功能,直接監看 Router 資訊(用PockIE or PuTTY)。

不過用 Windows Mobile 成本比老 Palm 還高且比較耗電啦
數位天堂 http://digiland.tw/
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!