WARNING!!
This is a very OBSOLETE piece of code, from the previous millennium!!
I'm not even sure if it works with the new Linux kernels.
It is here for emotional reasons, to remind me the old days, when I had time to write code and enjoy it.
Description
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 !!!!. That was 1997, 1998 and we used to make our own mini-linux bootable floppies :) )
You can use any serial port , and you can also have multiply readers the same time.
Linbar is (C) 1998-2003 Ioannis
Ioannou , and it is released under the conditions
of GPL version
2 or later.
-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
linbar &
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)
linbar -D
NOTES