Procedure for Pairing Two Wireless Serial Adapters

adapted from http://wcscnet.com/Products/HdwBTRS232/HdwBTRS232SupportManualSetup.htm

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.

  1. 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.
  2. 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).
  3. 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.
  4. Type ATL3<ENTER> and you should see OK. This command resets device #1 Baud Rate to 38400, which is required for the servo board.
  5. Hang up communication (using icons or menus) and reset the baud rate on the terminal emulation program to 38400.
  6. 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.
  7. 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.
  8. Type ATR0<ENTER> and you should see OK. This command sets device #1 to assume the role of "master."
  9. 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).
  10. 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.
  11. 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.
  12. 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).
  13. 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.
  14. Type ATL3<ENTER> and you should see OK. This command resets device #2 Baud Rate to 38400, which is required for the servo board.
  15. Hang up communication (using icons or menus) and reset the baud rate on the terminal emulation program to 38400.
  16. 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.
  17. 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.
  18. Type ATR1<ENTER> and you should see OK. This command sets device #2 to assume the role of "slave."
  19. Type ATP=1234<ENTER> and you should see OK. This is the authentication PIN for device #2.
  20. 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.
  21. Remove power from device #2 and unplug it from COM1. Connect device #1 to COM1 and the USB power cable.
  22. 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.
  23. 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.
  24. 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