usb keyboard - odd behavior

mikem562@gmail.com's picture

Forums: 

Using:
Linux version 3.1.6 (patrick@debian) (gcc version 4.3.5 (Debian 4.3.5-4) ) #3 PREEMPT Fri Jan 6 13:05:50 MST 2012

I wrote a simple java app that waits for input from a user then finishes. I have a usb keypad plugged in. When I run the program in windows it works fine, When I run it in linux it finishes before I enter any input. When I check the output it seems the keyboard is inputting "PK" even before I press anything. How can I fix this? Here's the tail of the logfile re: the usb keypad:

Apr 19 20:32:36 protoscan01 kernel: usb 1-1: new full speed USB device number 2 using s3c2410-ohci
Apr 19 20:32:36 protoscan01 kernel: usb 1-1: New USB device found, idVendor=0451, idProduct=2077
Apr 19 20:32:36 protoscan01 kernel: usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Apr 19 20:32:36 protoscan01 kernel: usb 1-1: Product: General Purpose USB Hub
Apr 19 20:32:36 protoscan01 kernel: hub 1-1:1.0: USB hub found
Apr 19 20:32:36 protoscan01 kernel: hub 1-1:1.0: 7 ports detected
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.4: new low speed USB device number 3 using s3c2410-ohci
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.4: New USB device found, idVendor=05a4, idProduct=9840
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.4: Product: USB Compliant Keypad
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.7: new full speed USB device number 4 using s3c2410-ohci
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.7: New USB device found, idVendor=06c2, idProduct=0045
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.7: Product: PhidgetInterfaceKit
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.7: Manufacturer: Phidgets Inc.
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.7: SerialNumber: 250661
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.1: new full speed USB device number 5 using s3c2410-ohci
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.1: New USB device found, idVendor=0ace, idProduct=1215
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.1: New USB device strings: Mfr=16, Product=32, SerialNumber=0
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.1: Product: USB2.0 WLAN
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.1: Manufacturer: ZyDAS
Apr 19 20:32:36 protoscan01 kernel: usb 1-1.1: reset full speed USB device number 5 using s3c2410-ohci
Apr 19 20:32:36 protoscan01 kernel: zd1211rw 1-1.1:1.0: phy0
Apr 19 20:32:36 protoscan01 kernel: usbcore: registered new interface driver zd1211rw
Apr 19 20:32:36 protoscan01 kernel: input: USB Compliant Keypad as /devices/platform/s3c2410-ohci/usb1/1-1/1-1.4/1-1.4:1.0/input/input0
Apr 19 20:32:36 protoscan01 kernel: generic-usb 0003:05A4:9840.0001: input,hidraw0: USB HID v1.10 Keyboard [USB Compliant Keypad] on usb-s3c24xx-1.4/input0
Apr 19 20:32:36 protoscan01 kernel: usbcore: registered new interface driver usbhid
Apr 19 20:32:36 protoscan01 kernel: usbhid: USB HID core driver
Apr 19 20:32:36 protoscan01 kernel: zd1211rw 1-1.1:1.0: firmware version 4725
Apr 19 20:32:36 protoscan01 kernel: zd1211rw 1-1.1:1.0: zd1211b chip 0ace:1215 v4810 full 00-02-72 AL2230_RF pa0 g--NS
Apr 19 20:32:36 protoscan01 kernel: dm9000 dm9000.0: eth0: link down