473,385 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help with Barcode

Elias Alhanatis
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
4 2731
dshimer
136 Expert 100+
What is the interface between the reader and the computer? Serial, USB?
May 26 '09 #2
Hi!

It has a USB connection!!!
May 26 '09 #3
dshimer
136 Expert 100+
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
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

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

Similar topics

4
by: Chris | last post by:
Hi, I found this code that can solve a problem I have. It sends print direct to printer. Imports System Imports System.Text Imports System.Runtime.InteropServices ...
3
by: Tom Turner | last post by:
Here's the background on my situation. The question follows --- We have 600 units of mail going from our business to various Post Offices every morning. Every unit is accompanied by a paper...
2
by: James | last post by:
Hello all, In my music library database I have my stock categorised by media type; the types of media are: audio, book and score. My score type is the one I'm having difficulty with. Each...
4
by: Clark Stevens | last post by:
I have a program that I'm converting from VB6 to VB.NET. It reads in a text file containing barcode numbers and their corresponding descriptions. Then the user enters the barcode number and the...
5
by: neilphan | last post by:
Hi all, I have an application that uses input from a barcode reader via a USB port. My application works fine only if the application HAS FOCUS. If the user opens up another application (not...
1
by: Unebrion | last post by:
Alright im working on a program that prints out user imput in a frame, along with a barcode.. it is like the front of an envelope. Here is the description for the program. This...
7
by: jim | last post by:
I need to have 2 simple barcode reader applications finished by midnight tonight. I have never written any barcode reader software and need any help that you may be able to offer. I do not know...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.