From the Connect To dialog, select the COM port configured in step 16 and press OK.
From the COM# Properties dialog select the following options and press OK.
HyperTerminal may show as connected even when the adapter connection has not been established. If the adapter's green light is flashing slowly, disconnect and reconnect the battery. Reestablish the Bluetooth connection by double clicking the BlueSnap icon in My Bluetooth Places (step 6). Once the connection has been established, disconnect and reconnect using the phone icons in the HyperTerminal tool bar. From the HyperTerminal File menu, select BlueSnap Properties. From the properties dialog, click the ASCII Setup...button.
Make the following ASCII setup selections.
Close all dialog boxes by clicking OK. In the HyperTerminal window type $$$; the device will respond with CMD. The CMD confirms that you are now in command mode. The BlueSnap LED changes from a solid green to flashing quickly. In the terminal type ST,255. This changes the timeout for discovery from 60 seconds to infinity. The adapter responds with <AOK>. To launch, the newly created HyperTerminal connection can be found at: Start Programs Accessories Communications HyperTerminal BlueSnap.ht. The device is now configured to stay in discovery mode once power is applied without any timeout. Windows Mobile pairing procedure
- Use the Connection Wizard to search for the BlueSnap Bluetooth adapter.
- Select the BlueSnap device.
- Select the SPP service.
- Enter the device pin number (0000 or 1234) and press the green checkmark.
- When prompted to register a Bluetooth serial port, select Yes.
- Select Bluetooth serial-port name BTS from the Name dropdown box. Input an index number of zero. The index is similar to a COM port. Press the green check to accept changes. If an index number other than zero is used, the example code will need this portion of code modified in order to open the appropriate port.
- The Bluetooth Manager confirms that the port successfully registered.
- The available COM ports are listed in the manager.
- The BlueSnap adapter has successfully paired. Upon opening the BTS0 port, a connection between the mobile device and the BlueSnap device is established.
Windows application
Because the BlueSnap adapter cannot toggle the RTS and DTR lines, the OneWireLinkLayer.dll is not used in this example. Instead, the DS9097U 1-Wire COM Port Adapter (see Figure 1) is accessed directly with serial commands.
Download (ZIP) the sample project. Figure 2 shows the application running on a Windows Mobile device. The project contains a simple class with calls to commonly-used functions (including Search ROM).
Figure 2. Application running on Windows Mobile.