Bluetooth and GPS: Part 1 - Reading Wireless Serial Port Data
By Christine Dorffi on Jul 16, 2008
For some developers, working with wireless technologies can be daunting -- and sometimes downright intimidating. When communication is wireless, you can't just "look up" and see, for instance, 1 MB of data going by. In addition, it is really difficult to debug wireless applications once they are deployed to a mobile device, since you don't have access to system traces or log files to pinpoint the errors while the application is running.
This technical article addresses the following tasks:
\* Helps demystify some wireless concepts using Bluetooth and the JSR-82 API
\* Shows how to run and debug Java ME Bluetooth applications on your desktop computer
\* Explains how to read data from a Bluetooth-enabled GPS device
The good news is that you're going to learn how to construct a low-cost solution that allows you to install, debug, and test your JSR-82 applications on your computer. I'm going to introduce to you the Mpowerplayer, a CLDC emulator for the computer that can be configured to behave like a JSR-82 Bluetooth-enabled phone. With this configuration, the Mpowerplayer will behave just like a JSR-82 Bluetooth-enabled mobile phone, but you'll have access to the System.out and have the ability to view stacktraces, both of which are essential in debugging your wireless application.
Also, see the Follow Up to this series, where Bruce Hopkins answers questions from readers of this series.