Connecting a Bluetooth Barcode Scanner to WinXP with SP2

Print This Post Print This Post

How to connect a Bluetooth Barcode Scanner without additional software in Windows XP

  • Incoming or outgoing connection
  • Pairing from SF51 as client with SPP
  • Using accessibility options to simulate keystrokes
  • Cleanup COM port usage
  • Installation of SF51 as HID device

There are several ways to connect your sf51 and your PC. If you have your own application, you should use a serial connection. If you paired the SF51 with an incoming connection on the PC, the scanner will be online, when you open the COM port.

If you don’t own the source of the target application(s), you have to use a solution, that translates the barcodes scanned into keystrokes.

Incoming or outgoing connection

In the following I am talking always about a SF51. Replace this with your Bluetooth Barcode Scanner.

As soon as a connection is created from the host (your PC), the host is responsible for reconnecting the device, if it has gone offline or leaved the range of the BT waves. This is true for MS HID and outgoing serial connections. If the client (the SF51) initiates the connection, it will automatically reconnect.

If you use third party tools, like Keyport Lite or Keyport BT, these are responsible for reconnecting the SF51. These tools offer some options for auto reconnect. See there documentation for details.

Pairing from SF51 as client with SPP

To pair a SF51 with your PC, you should follow these steps:

  1. Start EasySet
  2. Create an “administration reset factory defaults” barcode
  3. Create “┬┤Bluetooth parameters – connect/disconnect – compose BT address” and enter the BT address of your PCs BT adapter

Your PC will now notify about the new connection ask for confirmation and the default PIN (0000)

Using accessibility options to simulate keystrokes

If you connected your SF51 as described in “Pairing from SF51 as client with SPP”, you can use the WinXP Accessibility options to connect the incoming COM port opened by the SF51 as keyboard wedge.

Click Start-Settings-Control Panel and select the Accessibility applet accessibilty1

In the Input Help dialog on the General tab activate the option for external input help and click [Settings]

acccessibilityoptions

In the dialog “Settings for SerialKeys …” select the com port, that is connected to your SF51.

acccessibilityoptions2

The com port can be seen in BT devices dialog.

btdevicescomports

If the SF51 is not connected to one of the ports COM1 to COM4, you have to cleanup the COM port usage.

Click [OK] to close and confirm all dialogs. If you now scan, the barcode’s text is sent as keystrokes to the active window. This also works with DOS windows.

Cleanup COM port usage

Windows will not free unsused COM ports if they have been used in the past with BT devices. The accessibility external input options only allow com1 to com4. To cleanup com ports not in used, open the device manager and then expand the serial and parallel connectors tree.

Select the serial BT port(s) not in use and delete them except for the last!

devicemngrcomports

Right click this last BT serial entry and select properties

In the properties window select the connections setting dialog

devicemngrcomports2

Now click [Advanced…]

cleanup4

Now select one after one with ‘(in use)’ except for the ones built in your computer (if any, maybe COM1 and/or COM2) and click OK and confirm the warning dialogs.

devicemngrcomports3

After all, only the hardware com ports should be listed as (in use).

Installation of SF51 as HID device

First scan “adminstrator reset factory default” and “Bluetooth parameters – profile for communication – HID keyboard” barcodes created with EasySet either on screnn (LCD or TFT) or from a printed config sheet.

Then right click on MS BT symbol in lower right corner of your WinXP taskbar. Then Select “Add Bluetooth device”. Or open the dialog BT devices and click [Add…].

btdevices1

Your SF51 should not be listed there as here, where it is already installed.

Confirm the check box saying “the device is configured and ready to be recognized” and click [Next].

In the next window the devices near your PC are searched and will be listed.

Your SF51 should be recognized and listed as here. Select it and then click [next].

btwizard3

With the admin reset, the sf51 uses security and a PIN of ‘0000’. Please check option “Let me choose my own passkey” and enter the PIN ‘0000’. Click [Next] to advance. The wizard will perform the installation and device manager installs the new device.

btwizard4

btwizard5

Now click [Finish] and you are done.

Every barcode you scan with your sf51 from now on will be send as keystrokes followed by a return to the active WinXP window. This also works with DOS windows:

hid6

A Disadvantage of the HID profile is, that it does not support automatic reconnect, due to security concerns of MS.

6 Comments

  1. Cool articles – Love reading your blog, it always makes me happy :).

  2. Tom says:

    Could you connect an IP30 to XP in this same fashion? I’m going to be doing dev work for CN3/IP30 and would play around with the IP30 in xp too if this was possible.

    Thanks,
    Tom

  3. admin says:

    Yes, you can, BUT it is better to use an IP connection to the CN3 and port 2189 (telnet raw).

    If the IP30 is connected to the CN3 and the CN3 has a valid IP in your network, you can connect to this IP and then play from XP PC with the reader. The Datacollection Engine on the CN3 will bridge the connection between BT and TCP/IP.

    If you would like to use the IP30 directly, you can also connect with SPP from XP to IP30 directly. But as the IP30 will not just transmit only read RFID tags, you have to send it a READ command and will then get back a response about TAGs.

    This is different from a barcode reader, which sends over the barcode data directly after scan.

    Search also community.intermec.com for IP4 IP30.

    Josef

  4. martin says:

    using bluetooth scanner in serial keys mode, how can i get it to “enter’ automatically ? ? ?

  5. admin says:

    If you need an auto-enter, you have setup the scanner to add a CR after every barcode. If your scanner is not configurable to so do, you have to use a commercial Keyboard Wedge Software for your PC and the scanner.

  6. martin says:

    Schweeet Thanx ! ! :> . . . . but how do i do this using easyset 5.6.5 ? ? ?

Leave a Reply