130 likes | 294 Views
CSE 497B : Hands-on Handhelds. Instructors: Dr. Anand Sivasubramaniam (anand@cse.psu.edu) Dr. Mahmut Kandemir (kandemir@cse.psu.edu) Teaching Assistant: Partho Nath (nath@cse.psu.edu). Course Information. Access online at http://www.cse.psu.edu/~anand/497b/index.html
E N D
CSE 497B : Hands-on Handhelds Instructors: Dr. Anand Sivasubramaniam (anand@cse.psu.edu) Dr. Mahmut Kandemir(kandemir@cse.psu.edu) Teaching Assistant: Partho Nath(nath@cse.psu.edu)
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
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
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
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.
PART-2 (Linux/Windows-based desktops) • Setting up Linux. • Configuring gcc (cross-compiler), program development. • Familiarizing with Java, development tools. • Wireless networking with Linux.
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.
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.
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 check http://www.microsoft.com/mobile/developer.
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.aspfor more details. • Facilitates debugging.
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.
“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.
Helpful/Useful links • C:\Windows CE Tools\htmlhelp\pocketpc • PPC2.chm — Platform SDK for PocketPC — some developer help • PPC2ADOC.chm — ADOCE help file • PPC2OD.chm — OLE DB SDK for Windows CE • PPC2SDKR.chm — Pocket PC API Reference