Introduction to the Resources of Pocket PC Bo-Yuan Peng bypeng@cobra.ee.ntu.edu.tw National Taiwan...

Post on 24-Dec-2015

217 views 0 download

Transcript of Introduction to the Resources of Pocket PC Bo-Yuan Peng bypeng@cobra.ee.ntu.edu.tw National Taiwan...

Introduction to the Resources of Pocket PC

Bo-Yuan Pengbypeng@cobra.ee.ntu.edu.tw

National Taiwan University

Outline

• Introduction to PDAs

• Palm vs. Pocket PC

• Introduction to Windows CE

• Pocket PC Emulators

• Windows CE Programming

Introduction to PDAs

• What is a PDA?– PDA: Personal Digital Assistant– Mobile computing tool– Real “notebook”– Replacement of laptop PC?– Replacement of cellular phone?

Introduction to PDAs (cont’d)

• How powerful is it?– Notebook– Calculator– Tape(??) recorder– eBook– Mobile Internet (!!)– Game– MATLAB?? (Oh, my god?)

Palm vs. Pocket PC• Palm • Pocket PC

Palm vs. Pocket PC (cont’d)• Palm

– CPU: Motorola DragonBall chip MC68k series

– Display : TFT; LCD( gray or color ) 160 x 160 pixels

– ROM/FROM : 2 ~ 4 MB

– RAM : 2 ~ 8 MB

– Expansion Card Slot

– Serial port; USB connector; Infrared

– Wireless

• Pocket PC– CPU: Intel Strong ARM;

MIPS; SH3

– Display: 240x320x12; TFT Touch Screen

– ROM: 16~32 MB Flash

– RAM: 16~32 MB SDRAM

– Audio: Record/Play (MP3!!)

– Expansion Pack

– USB; Infrared; serial port; Wireless

• Palm- CodeWarriorhttp://www.metrowerks.com/products/palm/

- Appforgehttp://www.appforge.com/

- GCChttp://sourceforge.net/projects/prc-tools/

- etc…

Palm vs. Pocket PC (cont’d)• Pocket PC- Appforgehttp://www.appforge.com/

- eMbedded Visual Toolshttp://www.microsoft.com/mobile/develope

r/downloads/

$399 !!$899 !!

$0 of course

$899 !!

$0 ! Miracle!

Palm vs. Pocket PC (cont’d)

• So why do we choose Pocket PC?– Easier Development Tools– Familiar Environment– Color– Well… Politics Factor :P

Introduction to Windows CE

• Open and MS Standard System

• 32-bit Operating System

• Multi-task and Multi-thread

• Support Unicode (2 bytes)

• Database

• Wireless

• Current Version: Pocket PC 2002

Introduction to WinCE (cont’d)

• Applications– Pocket Office

• Pocket Word

• Pocket Excel

– Pocket Outlook– Pocket Internet Explorer– Windows Multimedia Player

Introduction to WinCE (cont’d)

• Where can other applications be found?– www.google.com

• “PDA”

• “Pocket PC”

• “Windows CE” “WinCE”

– www.hp.com• Compaq iPAQ’s homepage

• 802.11 driver (Where is it?)

Pocket PC Emulators

• Emulators provided by eMbedded Visual Tools– Pocket PC SDK

– Handheld PC SDK

– Palm-Size PC SDK

• But none of them work on iPAQ! So…– Pocket PC 2002 SDK

http://www.microsoft.com/mobile/developer/downloads/ppcsdk2002.asp

– Traditional Chinese Localehttp://www.microsoft.com/mobile/developer/downloads/ppc2002emulator/default.asp

Windows CE Programming

• eMbedded Visual Tools– eMbedded Visual Basic– eMbedded Visual C++

• SDKs for all platforms

• What language fits your need?• Microsoft ActiveSync 3.5

http://www.microsoft.com/mobile/pocketpc/downloads/

Feature Visual C++ Visual Basic

Result is processor independent No (except using Common Executable Format)

Yes

Development of COM components

Yes No

Development of drivers Yes No

Development of ActiveSync filter Yes No

Rapid development, testing, deployment

No Yes

Degree of freedom High Low

Access to the Full Pocket PC API Yes No

Easy data access using ADOCE No Yes

WinCE Programming (cont’d)

WinCE Programming (cont’d)

• Tricks– Chinese Locale: Modify the registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows CE Tools\Platform Manager\{F384D888-F9AA-11D1-BB9E-00A0C9C9CCEE}\{DE9660AC-85D3-4C63-A6AF-46A3B3B83737}\{F384D894-F9AA-11D1-BB9E-00A0C9C9CCEE}\{67C8D913-F0CF-486A-8CF0-CE7D116225E8}

Path

WinCE Programming (cont’d)

• Tricks (cont’d)– Memory Size Setup: Modify the registry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Tools\Platform Manager\{F384D888-F9AA-11D1-BB9E-00A0C9C9CCEE}\{DE9660AC-85D3-4C63-A6AF-46A3B3B83737}\{F384D894-F9AA-11D1-BB9E-00A0C9C9CCEE}\{67C8D913-F0CF-486A-8CF0-CE7D116225E8}

Memory

– Download Path\Windows\ 「開始」功能表 \

• Demo: “Hello, Pocket PC!”

Frequently Asked Questions

• I got an error message including “Start Menu” during “playing” or compiling.– Did you forget the “ 「開始」功能表” story? :P

• I cannot read Chinese in my emulator.– Install the traditional Chinese locale.

– Modify the registry.

• I have a program with eVB grid control, but there is error messages telling me I cannot show the control.– Compile it twice. Windows XP is tricky. :P

FAQ (cont’d)

• Where is the AOE game demo?– Well, can you pay more attention to programming rather than gami

ng?

• I am crazy that there are so much software to download to develop my own program. Can you give a summery?– eMbedded Visual Tools– Pocket PC 2002 SDK– Traditional Chinese Locale(Skin, Image, whatever) for Pocket PC

2002 Emulator– ActiveSync 3.5– iPAQ wireless PC card driver for Pocket PC (if you want to design

PDA internet software)

FAQ (cont’d)

• Can you tell me the story about Bluetooth on iPAQ?– Looking books up is not my job…

• What’s your email address? Would you give me a favor in the future?– bypeng@cobra.ee.ntu.edu.tw

– Of course, if you do not ask me where AOE game is.I will try my best.