Bluetooth and GPS: Part 1 - Reading Wireless Serial Port Data

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.

Read the full article and download the source code.

Also, see the Follow Up to this series, where Bruce Hopkins answers questions from readers of this series.

Comments:

Thanks very much!

Posted by 黃郁波 on July 17, 2008 at 05:50 PM PDT #

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.

Posted by 黃郁波 on July 17, 2008 at 05:58 PM PDT #

Did you have a comment or question for us?
Thanks,
Christine

Posted by Christine Dorffi on July 18, 2008 at 03:37 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Tips for developers who use Java technologies (Java SE, Java ME, JavaFX) for mobile and embedded devices.

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today