RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX


Infrared Programming Using the .NET Compact Framework : Page 4

If you've ever used a TV remote control, you've experienced the convenience of using infrared communications. See how to use infrared to communicate between a Windows Mobile device and a PC.

Testing the Application
Now, you can test the two applications. First, you need to ensure that your PC has an infrared port. If not, you can use an infrared USB adapter, which can be purchased for less than $10.00.

Figure 3. Action! Testing the two applications.

Run the Infrared_Desktop application first and then deploy the IrDA application to your Windows Mobile 5.0 Pocket PC. Align the infrared port on the Pocket PC with the port on your PC. On the Pocket PC, click the "Select image to send" button to select an image. Then, click the Send button to send the image over to the PC. Figure 3 shows the Pocket PC and PC applications in action.

Quick and Easy
See how easy it is to exchange data between a Pocket PC and a PC using infrared? Infrared is well suited for applications that require a quick and easy way to exchange data, all without the burden of asking the user to perform a series of complicated steps.

Wei-Meng Lee is a Microsoft MVP and founder of Developer Learning Solutions, a technology company specializing in hands-on training on the latest Microsoft technologies. He is an established developer and trainer specializing in .NET and wireless technologies. Wei-Meng speaks regularly at international conferences and has authored and coauthored numerous books on .NET, XML, and wireless technologies. He writes extensively on topics ranging from .NET to Mac OS X. He is also the author of the .NET Compact Framework Pocket Guide, ASP.NET 2.0: A Developer's Notebook (both from O'Reilly Media, Inc.), and Programming Sudoku (Apress). Here is Wei-Meng's blog.
Email AuthorEmail Author
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date