Of course you can use it for many proposes (let say to
control the console with a serial port), but the primary thought was for
reading barcode labels.
(For the history : my plane was to have about 10 POS diskless Linux terminals -boot to Linux with a bootdisk, rlogin to server- with barcode readers on them. What a speed !!!!)
You can use any serial port , and you can also have multiply readers the same time.
-T output tty default /dev/tty0
-t input tty default /dev/ttyS0
-s speed default 9600
-d data bits default 8
-p parity default N(one)
-b stop bits default 1
-c cut off cr default no
-n cut off nl default no
-l log messages default no
-D enable debug messages
-h this help screen
for example :
barcode reader at ttyS0, 9600 8N1
barcode reader (?) at ttyS1 38400 7E2
linbar -t /dev/ttyS1 -s 38400 -d 7 -p E -b 2 &
debug the driver (note that it runs in the foreground)
Check also the Contrib directory - there is a X linbar there contributed by Simon Falvey
0.5 NOTES :
Mainly a bug fix release, no consept changes from 0.4.
Sorry but I don't have time for linbar, and since 1999 I have stoped working with projects that use bar-code readers. As the matter of fact these days (in the case I had time) I would re-wrote the hole thing in perl without linserial and g++ - anyway....