PDA

Bekijk de volledige versie : HowTo: Use Palm as 500gP LCD



Tamadite
07-02-2009, 08:41
SOURCE/MERITS
AVEN: (http://aven138.blogspot.com/2008/11/wl-500gp-lcd-lcd4linux-palmorb.html)

ASUMPTIONS
.- Oleg firmware 1.9.2.7-10
.- Serial to USB adapter with chipset Prolific 2303
.- Palm Pilot IIIxe
.- usbutils ipkg package installed

HOW-TO

(1) Install PalmOrb (http://palmorb.sourceforge.net/) on your Palm Pilot

(2) Plug the serial-to-usb adapter directly to a USB port on the router. (NOT to an external USB Hub connected to the router!)

(3) Run the following command to confirm the router detects the usb-serial adapter


$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 003: ID 1970:0000
Bus 001 Device 004: ID 04b4:6830 Cypress Semiconductor Corp. USB-2.0 IDE Adapter

Line showing "Prolific Technology, Inc. PL2303 Serial Port" confirm everything is Ok to proceed with next steps.

(3) Install LCD manager package:

ipkg install lcd4linux

(4) Install serial managers:

insmod usbserial
insmod pl2303

(5) Create configuration file for LCD manager:

nano /opt/etc/lcd4linux.conf

(6) Paste the following text:

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'Widget Eth0 {
class 'Text'
expression (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
}

update tick
}

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

(7) Change access rights to the configuration file:

chmod 600 /opt/etc/lcd4linux.conf

(8) Start deamon:

lcd4linux -f /opt/etc/lcd4linux.conf