EmbeddedBlue 500
37
Copyright ©2003 A7 Engineering, Inc.
Connecting a Board of Education to an iPAQ h1940
In this exercise we will step through the process of establishing a connection from an eb500
module inserted into a Board of Education board to an iPAQ h1940, which has integrated
Bluetooth.
To perform this exercise, as documented, you will need an iPAQ h1940, a Board of
Education board, and an eb500 module. If you are using a different model of Pocket PC,
with integrated Bluetooth, or any of the other supported Parallax boards, you may need to
make adjustments to this exercise.
Step 1: Obtain the Bluetooth Address of the iPAQ
In this step we will obtain the Bluetooth address of the iPAQ.
1.
Tap the
Bluetooth icon
in the system tray on the Today screen and select
Bluetooth Settings
.
This will display the Settings dialog.
2.
Tap the
Accessibility
tab and note the
Address
shown in the Device Identification
section of the dialog.
The device address will be used in the BASIC Stamp application developed in the
next step.
3.
Tap
OK
to close the dialog.
Step 2: Write a BASIC Stamp Application to Connect to the iPAQ
In this step we will attach an eb500 module to the Board of Education board and
develop a BASIC Stamp application to establish a connection with the iPAQ.
1.
Insert an
eb500
module into the
AppMod connector
of the Board of Education
board; assuring that Pin 1 of the eb500 module is inserted into the VSS pin of the
AppMod header.
2.
Connect the
Board of Education board serial port
to the
PC
.
3.
Open the
BASIC Stamp Editor
.
4.
Enter the following
program code
into the editor, replacing the Bluetooth device
address with the device address of the iPAQ, which we obtained from the iPAQ in
the previous step.
‘{$STAMP BS2}
‘I/O Line 5 provides the connection status
INPUT 5
‘Wait for the eb500 radio to be ready