In the following, device #1 will ultimately be connected to the COM1 serial port of a computer, while device #2 will be connected to the servo board on the robot.
- On the computer, open a terminal emulating program (such as Windows->Start->All Programs->Accessories->Communication->HyperTerm) and set it up to use COM1, Baud Rate 19200, Parity None, Length 8 bits, Stopbits 1, Flow Control None.
- Connect device #1 to the COM1 port, make sure sliding switch is closest to computer; connect device #1 power cable from USB port near COM1 port ; with straightened paper clip, push in and hold reset button on device #1 until red LED extinguishes, then blinks (this resets device #1 to the above communication parameters).
- Type ATC0<ENTER> and you should see OK. If not, try it again. This command turns flow control to "none" and is a good test.
- Type ATL3<ENTER> and you should see OK. This command resets device #1 Baud Rate to 38400, which is required for the servo board.
- Hang up communication (using icons or menus) and reset the baud rate on the terminal emulation program to 38400.
- Type ATC0<ENTER> and you should see OK. If you see gibberish, the baud rates are not the same; try step 5 again or start over.
- In terminal emulation program, type ATB?<ENTER> and you should see and record a 12-digit number, call it X1. This is the unique Bluetooth identifier for device #1.
- Type ATR0<ENTER> and you should see OK. This command sets device #1 to assume the role of "master."
- Type ATO0<ENTER> and you should see OK. This command forces device #1 to try to autoconnect to the device (eventually) specified by the ATD command (see step X).
- Type ATP=1234<ENTER> and you should see OK. This is the authentication PIN for device #1. We are now going to do something similar for device #2.
- Remove power from device #1 and unplug it from COM1. Set terminal emulator program to Baud Rate 19200, Parity None, Length 8 bits, Stopbits 1, Flow Control None.
- Connect device #2 to the COM1 port, make sure sliding switch is closest to computer; connect device #2 power cable from USB port near COM1 port ; with straightened paper clip, push in and hold reset button on device #2 until red LED extinguishes, then blinks (this resets device #2 to the above communication parameters).
- Type ATC0<ENTER> and you should see OK. If not, try it again. This command turns flow control to "none" and is a good test.
- Type ATL3<ENTER> and you should see OK. This command resets device #2 Baud Rate to 38400, which is required for the servo board.
- Hang up communication (using icons or menus) and reset the baud rate on the terminal emulation program to 38400.
- Type ATC0<ENTER> and you should see OK. If you see gibberish, the baud rates are not the same; try step 15 again or go back to step 12.
- In terminal emulation program, type ATB?<ENTER> and you should see and record a 12-digit number, call it X2. This is the unique Bluetooth identifier for device #2.
- Type ATR1<ENTER> and you should see OK. This command sets device #2 to assume the role of "slave."
- Type ATP=1234<ENTER> and you should see OK. This is the authentication PIN for device #2.
- Type ATD=X1<ENTER> where address X1 was the unique Bluetooth identifer of device #1 from step 7, without any dashes (upper or lowercase doesn't matter). This command tells device #2 to look around for device #1 and connect at powerup.
- Remove power from device #2 and unplug it from COM1. Connect device #1 to COM1 and the USB power cable.
- Type ATC0<ENTER> and you should see OK. If not, try it again. This command turns flow control to "none" and is a good test to make sure the baud rates are still set to 38400.
- Type ATD=X2<ENTER> where X2 is the unique Bluetooth identifier for device #2 from step 17, without dashes. This forces device #1 to try to connect to device #2 on power-up.
- Slide switch on device #2 toward its antenna. Connect device #2 to the servo board or power it up separately. Both devices should blink as they connect wirelessly; if the Blue LED stays on solid, then pairing was successful.
Return to E5 homepage
Send message to
Swarthmore College Engineering Department
last updated 8/19/10
webmaster