Tethered use
This has been tested with the serial cable that comes with the Flic and also the serial cable connected via a R232-USB adapter, but any cable from Microvision should work.
- First find out which port the scanner is connected to for example /dev/ttyUSB0. I will use /dev/ttyUSB0 in all of the examples from now on. Just switch out /dev/ttyUSB0 with whatever port your scanner is connected to.
- Open a terminal
- Start the application
./FlicServ /dev/ttyUSB0
- Start scanning barcodes. Every time you scan a code you should see the text
pushed xxxxxxxxx
- in the terminal where xxxxxxxxx is the barcode you scanned.
- You can also disconnect the barcode scanner from the cable, go away and scan a whole bunch of barcodes, come back and reconnect the scanner. All of the scanned codes should be pushed automatically and the scanner gives you a little blipblipblip to let you know that it's memory is empty.
- Now open a text document in your editor of choice and hit the global shortcut key you previously added. The first barcode you scanned should now be inserted.
- The terminal should now show the text
poped xxxxxxxxx
- This can be repeated as many times as you needed.
- Pushing and poping can be done in any order, at any time.
--noserver
If you add the --noserver switch when starting the application
./FlicServ /dev/ttyUSB0 --noserver
the application will automatically pop barcodes as soon as you scan them.
--linefeed
If you add the --linefeed switch when starting the application
./FlicServ /dev/ttyUSB0 --linefeed
the software will simulate pressing enter after a barcode is poped. --linefeed works both in --noserver and regular mode.
Send me feedback on this article