EmbeddedBlue 500
23
Copyright ©2003 A7 Engineering, Inc.
Figure 8: eb500 Bluetooth Address Output
Step 4: Connect the eb500 on the SumoBoard to the eb500 on the BOE
In this step we will develop and run a BASIC Stamp application on the SumoBoard to
establish a connection with the Board of Education.
1.
Using the BASIC Stamp Editor; on the
File
menu, click
New
.
This will create a new project window within the BASIC Stamp Editor.
2.
Enter the following
program code
into the editor, replacing the Bluetooth device
address with the device address of the eb500 on the Board of Education board,
which we obtained in the previous step.
‘{$STAMP BS2}
‘I/O Line 5 provides the connection status
INPUT 5
‘Wait for the eb500 radio to be ready
PAUSE 1000
‘Connect to the remote device
SEROUT 1,84,[“con 00:0C:84:00:07:D7”,CR]
SERIN 0,84,[WAIT(“ACK”,CR)]
WaitForConnection: