Albasca MK-1000 (USB, Bardcode Scanner, Hand Scanner)

I/O Albasca, Barcode Scanner, USB

Albasca MK-1000 (USB, Bardcode Scanner, Hand Scanner)
Linux compatibility:
3 votes, average: 5.0 out of 53 votes, average: 5.0 out of 53 votes, average: 5.0 out of 53 votes, average: 5.0 out of 53 votes, average: 5.0 out of 5
  ( 5 with 3 ratings)

Category:


Review of Linux Compatibility

The Albasca MK-1000 is a barcode scanner, which is fully supported under Linux. The scanner is recognized automatically (since Ubuntu 11.10) and is included by the kernel into the system as USB Human Interface Device.

The barcode scanner has the USB ID 0483:5800

Bus 009 Device 006: ID 0483:5800 STMicroelectronics

The signals provided by the Albasca MK-1000 can be interpreted the following way:

    hid = { 4: 'a', 5: 'b', 6: 'c', 7: 'd', 8: 'e', 9: 'f', 10: 'g', 11: 'h',
            12: 'i', 13: 'j', 14: 'k', 15: 'l', 16: 'm', 17: 'n', 18: 'o',
            19: 'p', 20: 'q', 21: 'r', 22: 's', 23: 't', 24: 'u', 25: 'v',
            26: 'w', 27: 'x', 28: 'y', 29: 'z', 30: '1', 31: '2', 32: '3',
            33: '4', 34: '5', 35: '6', 36: '7', 37: '8', 38: '9', 39: '0',
            44: ' ', 45: '-', 46: '=', 47: '[', 48: ']', 49: '\\', 51: ';' ,
            52: '\'', 53: '~', 54: ',', 55: '.', 56: '/'  }

   fp = open('/dev/hidraw1', 'rb')

    # code=real code is shifted!
    code=""

    global BarCode, BarCodeBuilding, Run
    Run=True
    while Run:
            buffer = fp.read(8)
            for c in buffer:
                if ord(c) > 0:
                    #print ord(c)

             #code=code+str(ord(c))

                    if ord(c)!=40:
                        BarCode+= hid[ int(ord(c)) ]

        ##  40 is carriage return which signifies
         ##  we are done looking for characters
                if int(ord(c)) == 40:
                    #done = True
                    #print "BARCODE:"
                    #print code
                    #print BarCode
                    #print ""
                    #code=""
                    #BarCode=""

Similar Linux Hardware

scroll left scroll right

Comments

Please use the comment section to submit corrections to the article as well as relevant excerpts of lspci, lsusb, lshw, dmesg e.t.c. Furthermore, use the section for the exchange of experiences with this hardware component or search for configuration help from other owners of this hardware.
 
Email address will not be published.
Submitting comment...