Help with Barcode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Elias Alhanatis
    New Member
    • Aug 2007
    • 56

    Help with Barcode

    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 )
  • dshimer
    Recognized Expert New Member
    • Dec 2006
    • 136

    #2
    What is the interface between the reader and the computer? Serial, USB?

    Comment

    • Elias Alhanatis
      New Member
      • Aug 2007
      • 56

      #3
      Connection Type

      Hi!

      It has a USB connection!!!

      Comment

      • dshimer
        Recognized Expert New Member
        • Dec 2006
        • 136

        #4
        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
        Code:
        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.

        Comment

        • Elias Alhanatis
          New Member
          • Aug 2007
          • 56

          #5
          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

          Comment

          Working...