By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 1,969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

Help with Barcode

Elias Alhanatis
P: 56
Hello everybody!!!

I have a python application which i want to associate with a barcode reader.
Can somebody give me a hint on how to do that (how can the application "catch" a message from the reader)? Which python libraries are used?
Any help is welcomed , i will then start my research in the right direction.

Thank you all in advance ,

Elias
( Vista , Python 2.5 , wxPython 2.6 )
May 25 '09 #1
Share this Question
Share on Google+
4 Replies


dshimer
Expert 100+
P: 136
What is the interface between the reader and the computer? Serial, USB?
May 26 '09 #2

Elias Alhanatis
P: 56
Hi!

It has a USB connection!!!
May 26 '09 #3

dshimer
Expert 100+
P: 136
I don't have any experience with anything I am about to say so take it for what it is worth, but if you want to interact directly with the usb interface you may start by searching for python+usb in google, there are so many references that you would need to dig a little.

Sometimes however it seems like barcode scanners just send the text just like it was being typed from a keyboard. If this is the case the very first thing I would try is a simple
Expand|Select|Wrap|Line Numbers
  1. print raw_input('type a number')
then scan the barcode and see what if it catches anything. If so then anything that interacts with the keyboard should work fine whether it is command line or gui.
May 26 '09 #4

Elias Alhanatis
P: 56
You are right!!!
It is was as simple as that!!! The scanner behaves like a keyboard typing numbers to the active procedure.
I tried it in the interactive prompt and i got the number i scanned.
I guess it will work the same way with a GUI component ( like a text box etc ).
As soon as i will confirm this , i will inform you!!

Thank you so much for your help.

Elias
May 28 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.