cse 497b : hands-on handhelds

13
CSE 497B : Hands-on Handhelds Instructors: Dr. Anand Sivasubramaniam ([email protected]) Dr. Mahmut Kandemir ([email protected]) Teaching Assistant: Partho Nath ([email protected])

Upload: ginny

Post on 05-Jan-2016

25 views

Category:

Documents


0 download

DESCRIPTION

CSE 497B : Hands-on Handhelds. Instructors: Dr. Anand Sivasubramaniam ([email protected]) Dr. Mahmut Kandemir ([email protected]) Teaching Assistant: Partho Nath ([email protected]). Course Information. Access online at http://www.cse.psu.edu/~anand/497b/index.html - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CSE 497B : Hands-on Handhelds

CSE 497B : Hands-on Handhelds

Instructors: Dr. Anand Sivasubramaniam

([email protected])

Dr. Mahmut Kandemir ([email protected])

Teaching Assistant: Partho Nath ([email protected])

Page 2: CSE 497B : Hands-on Handhelds

Course Information

Access online at http://www.cse.psu.edu/~anand/497b/index.html

Lectures: 11:00-12:15 M in 302 Pond

Lab Sessions: 11:00-12:15 W in 127 Hammond

Page 3: CSE 497B : Hands-on Handhelds

Course requirement outline

Hardware requirements Compaq (HP?) iPAQ 3975 Pocket PC.

(Other vendors like Casio, Symbol permitted)

Serial/USB docking cradles + AC power + rechargeable battery pack

PC Card Expansion jackets (must be able to accommodate PCMCIA wireless cards)

PCMCIA Wireless Ethernet cards

Page 4: CSE 497B : Hands-on Handhelds

Software requirements Desktop PC running Windows 98, 2000,

XP, Linux. Microsoft Embedded Visual Tools

(Embedded Visual C++, Embedded Visual Basic).

Pocket PC 2002 SDK Includes Pocket PC 2002 device emulator

Page 5: CSE 497B : Hands-on Handhelds

Lab outline

PART-1 (Windows-based desktops) Familiarizing with the iPAQ Pocket PC device. Setting up Windows CE. Embedded Visual Tools (eVC++/eVB). Pocket PC 2002 SDK/device emulator. Microsoft Foundation Classes and Visual C++. Windows CE GUI. .NET framework for deploying applications. Wireless networking with Windows CE.

Page 6: CSE 497B : Hands-on Handhelds

PART-2 (Linux/Windows-based desktops) Setting up Linux. Configuring gcc (cross-compiler),

program development. Familiarizing with Java, development

tools. Wireless networking with Linux.

Page 7: CSE 497B : Hands-on Handhelds

Course Projects

Project-1: Due Feb 17. Address book Application.

Project-2: Due Mar 3. Tetris Application.

Project-3: Due Mar 24. Pager/Chat Application.

Project-4: Due Apr 28. Final project is left for your group to decide.

Page 8: CSE 497B : Hands-on Handhelds

Lab Policies

Office hours and grading policies will be announced by the TA shortly.

Please keep checking the website for further announcements.

Additional lab sessions can be scheduled with the TA.

Page 9: CSE 497B : Hands-on Handhelds

Pocket PC

Windows powered mobile devices Pocket PC, Pocket PC Phone Edition,

Smartphone, and Handheld PC. For more information check

http://www.microsoft.com/mobile/pocketpc/default.asp.

Pocket PC developer information checkhttp://www.microsoft.com/mobile/developer.

Page 10: CSE 497B : Hands-on Handhelds

Pocket PC Device Emulation

Behaves like a physical device. Complete hardware virtual machine. Uses TCP/IP (default) as the

transport protocol to communicate with the host.

Visit http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppc2k2/html/ppc_gapps.asp

for more details. Facilitates debugging.

Page 11: CSE 497B : Hands-on Handhelds

Creating a simple application in eVC++with Microsoft Foundation Classes

Start EVC++ by clicking the Start button on your desktop. Then select Programs.

Select Microsoft eMbedded Visual Tools and then select eMbedded Visual C++ 3.0.

From the menu bar, select File, and then select New. From the Projects tab, select WCE Pocket PC MFC

AppWizard (.EXE). Type “DebugSample” (or any name you choose) in the

Project Name edit box. Make sure that all target CPUs you want to support are

checked in the CPUs list, especially the Win32 (WCE x86em) item, as shown in Figure 1.

Click OK. For the sake of this example, leave everything at the default

settings. Click FINISH, and then click OK to create the project.

Page 12: CSE 497B : Hands-on Handhelds

“Hello World” in eVC++.

Start eMbedded Visual C++. Select New under File. In the dialog box select WCE Pocket PC Application and enter

the project name: Helloworld. As soon as you click OK, the WCE Pocket PC Application wizard will start.

When the wizard asks you what kind of application you would like to create, select a typical Hello world application.

Tap Finish. The wizard will summarize what it's going to do. As soon as you acknowledge the summary by tapping OK, the wizard generates the sources for your first Hello World application.

Make sure that Win32 (WCE x86em) Debug and Pocket PC Emulation are selected in the Windows CE Configuration toolbar.

Now tap the Rebuild All button to create your new application. The eMbedded Visual C++ software will now compile your application and download it to the Pocket PC desktop emulator.

Finally, tap the Debug button, and you should see your first Hello World application in the Emulator window.

Page 13: CSE 497B : Hands-on Handhelds

Helpful/Useful links

C:\Windows CE Tools\htmlhelp\pocketpc

1. PPC2.chm — Platform SDK for PocketPC — some developer help

2. PPC2ADOC.chm — ADOCE help file 3. PPC2OD.chm — OLE DB SDK for

Windows CE 4. PPC2SDKR.chm — Pocket PC API

Reference