Sponsored Content
Top Forums UNIX for Advanced & Expert Users read from a USB Barcode-Reader Post 55917 by beilstwh on Wednesday 22nd of September 2004 09:44:58 AM
Old 09-22-2004
Quote:
Originally posted by Perderabo
I sorta doubt that a keyboard module will handle a bar code reader anyway. But I've never worked with this stuff, so who knows...
Typically the bar code reader will do all the interperation of the barcode and will return the value string. To a keyboard module it would look like someone typed "1234567890"
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Barcode Printing

How can you pull up a list of print drivers loaded at the Unix level? I am trying to get an HP LaserJet 2300 using the PCL5e driver to print barcode labels. I believe the PCL5e driver needs to be loaded somewhere at the Unix level but am at a loss as to where. Thanks (2 Replies)
Discussion started by: llepley
2 Replies

2. Linux

How to read keys from USB keyboard on AT91SAM9260

Hi Everyone, I am using 2.6.26.3-olimex kernel(Embedded system) running on AT91SAM9260. I am using a Logitech USB keyboard. It is detected as "/dev/input/event0". I don't know how to detect key press events and read the keys? Why can't I read the keys using scanf() like funtions? ... (7 Replies)
Discussion started by: siva4ever
7 Replies

3. Solaris

Serial Barcode Reader

I have a serial barcode reader which I attached to my Solaris 10 workstation. I can see the barcode scanned data appearing when I do a tip hardwire. Question is how can I enable the data to appear in command prompt or any text editor programs? Thanks for the help (3 Replies)
Discussion started by: timtan169
3 Replies

4. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

5. What is on Your Mind?

Barcode Generator

QR Code Generator (0 Replies)
Discussion started by: Neo
0 Replies

6. What is on Your Mind?

Do you read books with an ebook reader?

I bought a Sony PRS-650 Reader to read books and I'm loving it. For one thing, there are zillions of free books in epub format available for download for free. Many of them are out of print, so you would have to pay a high price to get a printed copy. Most current releases have to be paid for,... (15 Replies)
Discussion started by: KenJackson
15 Replies

7. Ubuntu

how to make others have read/write permission when the aotu mounted usb flash disk pluge in ?

hi all: as we know , when usb flash disk plug in and aotu mounted , the default permission of the usb flash disk is 700. that means others have no permission . the question: how to make others have read/write permission when the aotu mounted usb flash disk pluge in ? thanks !! (0 Replies)
Discussion started by: arnold.king
0 Replies

8. Ubuntu

Barcode scanner buffer read manipulation

Hello, I'm facing some problems with a barcode scanner from Cygnal Inc, model Sweda SL-20. Info from lsusb -v: Bus 003 Device 003: ID 10c4:ff11 Cygnal Integrated Products, Inc. Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 ... (4 Replies)
Discussion started by: minharojr
4 Replies

9. HP-UX

Configure X windows with both keyboard and USB barcode reader

Greetings. Seeking guidance on adding a USB barcode reader (BCR) to an HP c3750 workstation with HP-UX 11.11 which is essentially configuring X windows to accept input from both a primary keyboard and a secondary keyboard that happens to be the BCR. Historically, I have successfully added a BCR... (2 Replies)
Discussion started by: mnkaltenbach
2 Replies
BARCODE(3)							    GNU barcode 							BARCODE(3)

NAME
barcode - a library to create and print bar codes SYNOPSIS
#include <barcode.h> struct Barcode_Item *Barcode_Create(char *text); int Barcode_Delete(struct Barcode_Item *bc); int Barcode_Encode(struct Barcode_Item *bc, int flags); int Barcode_Print(struct Barcode_Item *bc, FILE *f, int flags); int Barcode_Position(struct Barcode_Item *bc, int wid, int hei, int xoff, int yoff , double scalef); int Barcode_Encode_and_Print(char *text, FILE *f, int wid, int hei, int xoff, int yoff, int flags); int Barcode_Version(char *versionname); DESCRIPTION
The barcode family of library functions is meant to ease creation of bar-code printouts. The information below is extracted from the tex- info file, which is the preferred source of information. The functions included in the barcode library are declared in the header file barcode.h. They perform the following tasks: struct Barcode_Item *Barcode_Create(char *text); The function creates a new barcode object to deal with a specified text string. It returns NULL in case of failure and a pointer to a barcode data structure in case of success. int Barcode_Delete(struct Barcode_Item *bc); Destroy a barcode object. Always returns 0 (success) int Barcode_Encode(struct Barcode_Item *bc, int flags); Encode the text included in the bc object. Valid flags are the encoding type (other flags are ignored) and BARCODE_NO_CHECKSUM (other flags are silently ignored); if the flag argument is zero, bc->flags will apply. The function returns 0 on success and -1 in case of error. After successful termination the data structure will host the description of the bar code and its textual representa- tion, after a failure the error field will include the reason of the failure. int Barcode_Print(struct Barcode_Item *bc, FILE *f, int flags); Print the bar code described by bc to the specified file. Valid flags are the output type, BARCODE_NO_ASCII and BARCODE_OUT_NOHEAD- ERS, other flags are ignored. If any of these flags is zero, it will be inherited from bc->flags which therefore takes precedence. The function returns 0 on success and -1 in case of error (with bc->error set accordingly). In case of success, the bar code is printed to the specified file, which won't be closed after use. int Barcode_Position(struct Barcode_Item *bc, int wid, int hei, int xoff, int yoff, double scalef); The function is a shortcut to assign values to the data structure. int Barcode_Encode_and_Print(char *text, FILE *f, int wid, int hei, int xoff, int yoff, int flags); The function deals with the whole life of the barcode object by calling the other functions; it uses all the specified flags. int Barcode_Version(char *versionname); Returns the current version as an integer number of the form major * 10000 + minor * 100 + release. Therefore, version 1.03.5 will be returned as 10305 and version 0.53 as 5300. If the argument is non-null, it will be used to return the version number as a string. Note that the same information is available from two preprocessor macros: BARCODE_VERSION (the string) and BARCODE_VER- SION_INT (the integer number). 4th Berkeley Distribution October 1999 BARCODE(3)
All times are GMT -4. The time now is 01:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy