Bluetooth use
Before using the wedge with Bluetooth you must do some additional configuration.
- Open a terminal.
- Click the scan button on the barcode reader to make sure it's in discoverable mode.
- Enter the command hcitool scan
- The result should be a list somewhat like this:
Scanning ...
00:A0:96:0B:21:78 Cordless
00:01:E3:72:FE:5C Homephone
- Now copy the MAC address (list of numbers with colons) next to the name of you barcode scanner.
- Enter the command hcitool cc 00:A0:96:0B:21:78
- The bluetooth icon on your menubar should start blinking and a popup should show asking you to enter a pincode. (My computer sometimes doesn't show the popup. If this happens to you just doubleclick on the blinking bluetooth icon and you will be requested the pin code).
- Enter the pincode 0000 (The standard pincode for Microvision barcode readers).
- Go into bluetooth preferences (right click on the bluetooth icon) and tag the barcode reader as Trusted.
- Open /etc/bluetooth/rfcomm.conf as root in your editor of choice
sudo gedit /etc/bluetooth/rfcomm.conf
- Add the following entry to the file (using the MAC address you previously copied):
rfcomm0 {
bind no;
device 00:A0:96:0B:21:78;
channel 1;
comment "Flic barcode reader serial port";
}
- If you already have an entry for rfcomm0 just replace 0 with a higher number.
- Run the command sudo /etc/init.d/bluetooth restart
You can now use the software in exactly the same manner as described under tethered use. Just replace /dev/ttyUSB0 with /dev/rfcomm0. Make sure always to put the scanner in discoverable mode (by clicking the scan button) before starting the software.
Enjoy!
I'm happy to receive feedback, tips or questions.
Send me feedback on this article