USB Keyboard Barcode scanner drops chars

Bug #1577559 reported by Rory O'Siochain
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

I'm using a USB barcode reader that mimics a keyboard. Using Windows, the barcode reads correctly but in both Lubuntu 14.04 and Ubuntu 14.04, it drops some repeating chars. It consistently outputs the same value in both.

For example:
Barcode
5034660520825 becomes:
503466052825 (Drops third 0)

Barcode
8714789763620 becomes:
8714976320 (Drops 7,8,6)

Using usbmon, I captured the input and translated the codes in http://www.usb.org/developers/hidpage/Hut1_12v2.pdf . The values being received from the reader are correct. The repeating chars are being received by Ubuntu but are not output.

Looking at the output from lsusb, the device is recognised as a USB HID but uses ID 0416:c141 which is described as "Winbond Electronics Corp." which may not be the correct manufacturer.

This has been recreated on both a physical machine and VM.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: linux-image-4.2.0-35-generic 4.2.0-35.40~14.04.1
ProcVersionSignature: Ubuntu 4.2.0-35.40~14.04.1-generic 4.2.8-ckt5
Uname: Linux 4.2.0-35-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.19
Architecture: amd64
CurrentDesktop: LXDE
Date: Mon May 2 21:23:33 2016
InstallationDate: Installed on 2016-03-15 (48 days ago)
InstallationMedia: Lubuntu 14.04.4 LTS "Trusty Tahr" - Release amd64 (20160217.1)
SourcePackage: linux-lts-wily
UpgradeStatus: No upgrade log present (probably fresh install)
---
ApportVersion: 2.14.1-0ubuntu3.21
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: cd 1360 F.... lxpanel
CRDA: Error: [Errno 2] No such file or directory
CurrentDesktop: LXDE
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=79cc8d2a-550f-4b6f-a333-6f0efe371ed1
InstallationDate: Installed on 2016-03-15 (80 days ago)
InstallationMedia: Lubuntu 14.04.4 LTS "Trusty Tahr" - Release amd64 (20160217.1)
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: innotek GmbH VirtualBox
Package: linux (not installed)
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-36-generic root=UUID=6900779f-83fc-4881-8bb0-0a6096a1f702 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 4.2.0-36.42~14.04.1-generic 4.2.8-ckt8
RelatedPackageVersions:
 linux-restricted-modules-4.2.0-36-generic N/A
 linux-backports-modules-4.2.0-36-generic N/A
 linux-firmware 1.127.22
RfKill:

Tags: trusty
Uname: Linux 4.2.0-36-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin nopasswdlogin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:rvnOracleCorporation:rnVirtualBox:rvr1.2:cvnOracleCorporation:ct1:cvr:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH
---
ApportVersion: 2.14.1-0ubuntu3.21
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: cd 1360 F.... lxpanel
CRDA: Error: [Errno 2] No such file or directory
CurrentDesktop: LXDE
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=79cc8d2a-550f-4b6f-a333-6f0efe371ed1
InstallationDate: Installed on 2016-03-15 (80 days ago)
InstallationMedia: Lubuntu 14.04.4 LTS "Trusty Tahr" - Release amd64 (20160217.1)
IwConfig:
 eth0 no wireless extensions.

 lo no wireless extensions.
Lsusb:
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 002 Device 003: ID 0416:c141 Winbond Electronics Corp.
 Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: innotek GmbH VirtualBox
Package: linux (not installed)
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-36-generic root=UUID=6900779f-83fc-4881-8bb0-0a6096a1f702 ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 4.2.0-36.42~14.04.1-generic 4.2.8-ckt8
RelatedPackageVersions:
 linux-restricted-modules-4.2.0-36-generic N/A
 linux-backports-modules-4.2.0-36-generic N/A
 linux-firmware 1.127.22
RfKill:

Tags: trusty
Uname: Linux 4.2.0-36-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin nopasswdlogin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 12/01/2006
dmi.bios.vendor: innotek GmbH
dmi.bios.version: VirtualBox
dmi.board.name: VirtualBox
dmi.board.vendor: Oracle Corporation
dmi.board.version: 1.2
dmi.chassis.type: 1
dmi.chassis.vendor: Oracle Corporation
dmi.modalias: dmi:bvninnotekGmbH:bvrVirtualBox:bd12/01/2006:svninnotekGmbH:pnVirtualBox:pvr1.2:rvnOracleCorporation:rnVirtualBox:rvr1.2:cvnOracleCorporation:ct1:cvr:
dmi.product.name: VirtualBox
dmi.product.version: 1.2
dmi.sys.vendor: innotek GmbH

Revision history for this message
Rory O'Siochain (roryosiochain) wrote :
affects: linux-lts-wily (Ubuntu) → freebsd-libs (Ubuntu)
Revision history for this message
Rory O'Siochain (roryosiochain) wrote :

usbmon output:

ffff8800511afc00 1701973571 C Ii:2:003:1 0:8 8 = 00000000 00000000
ffff8800511afc00 1701973589 S Ii:2:003:1 -115:8 8 <
ffff8800511afc00 1701989838 C Ii:2:003:1 0:8 8 = 00002227 20212300
ffff8800511afc00 1701989865 S Ii:2:003:1 -115:8 8 <
ffff8800511afc00 1702005939 C Ii:2:003:1 0:8 8 = 00000000 00000000
ffff8800511afc00 1702005960 S Ii:2:003:1 -115:8 8 <
ffff8800511afc00 1702021908 C Ii:2:003:1 0:8 8 = 00002327 221f2725
ffff8800511afc00 1702021930 S Ii:2:003:1 -115:8 8 <
ffff8800511afc00 1702038782 C Ii:2:003:1 0:8 8 = 00000000 00000000
ffff8800511afc00 1702038816 S Ii:2:003:1 -115:8 8 <
ffff8800511afc00 1702046119 C Ii:2:003:1 0:8 8 = 00001f22 28000000
ffff8800511afc00 1702046172 S Ii:2:003:1 -115:8 8 <
ffff8800511afc00 1702061858 C Ii:2:003:1 0:8 8 = 00000000 00000000
ffff8800511afc00 1702061886 S Ii:2:003:1 -115:8 8 <

2227202123002327221f27251f222800
 5 0 3 4 6 6 0 5 2 0 8 2 5 Enter

Revision history for this message
Rory O'Siochain (roryosiochain) wrote :

dmesg output:

[39088.832866] usb 2-2: new full-speed USB device number 3 using ohci-pci
[39089.130813] usb 2-2: New USB device found, idVendor=0416, idProduct=c141
[39089.130819] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[39089.130822] usb 2-2: Product: WPM USB
[39089.130824] usb 2-2: Manufacturer: BarCode
[39089.150975] input: BarCode WPM USB as /devices/pci0000:00/0000:00:06.0/usb2/2-2/2-2:1.0/0003:0416:C141.0002/input/input8
[39089.204976] hid-generic 0003:0416:C141.0002: input,hidraw1: USB HID v1.10 Keyboard [BarCode WPM USB] on usb-0000:00:06.0-2/input0

Revision history for this message
Rory O'Siochain (roryosiochain) wrote :

These are the systems I've tested on and results.

Windows - Correct Output
FreeBSD - Correct Output

Ubuntu 10.04 - Issue occurs
Ubuntu 14.04 - Issue occurs
Lubuntu 14.04 - Issue occurs
Ubuntu 16.04 - Issue occurs
Fedora - Issue occurs
OSX - Different incorrect output

Logan Rosen (logan)
affects: freebsd-libs (Ubuntu) → linux (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1577559

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Rory O'Siochain (roryosiochain) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Rory O'Siochain (roryosiochain) wrote : BootDmesg.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : Lspci.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : ProcEnviron.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : ProcModules.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : UdevDb.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : UdevLog.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : WifiSyslog.txt

apport information

description: updated
Revision history for this message
Rory O'Siochain (roryosiochain) wrote : AlsaInfo.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : BootDmesg.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : Lspci.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : ProcEnviron.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : ProcModules.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : UdevDb.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : UdevLog.txt

apport information

Revision history for this message
Rory O'Siochain (roryosiochain) wrote : WifiSyslog.txt

apport information

Revision history for this message
penalvch (penalvch) wrote :

Rory O'Siochain, could you please plug this into a physical machine (not a VM) with Ubuntu on it and then run:
apport-collect 1577559

Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.