HI,
I HAVE INTERFACED HID KEYBOARD USING LPC43XX USB0 HOST, WHEN USING ACTUAL KEYBOARD HARDWARE IT IS WORKING FINE..
BUT WHEN I CONNECT A BARCODE READER HARDWARE - WHICH CAN BE USED AS HID KEYBAORD (CONFIRMED SAME BY CONNECTING TO A PC) DEVICE GETS SUCCESSFULLY ENUMERATED BUT HARDFAULT OCCURS WHEN I READ A BARCODE.!!!
FOLLOWING IS LIST OF DIFFRENCES I HAVE OBSERVED WHILE DEBUGGING -
PARAMETRS | HID KEYBOARD | BARCODE READER (AS HID KEYBOARD) |
SUPPORTS BOOT PROTOCOL | YES | NO |
SPEED | LOW SPEED | HIGH SPEED |
EXPECTED INTERRUPT EVENT BYTES AT HOST | 1 BYTE ON KEYPRESS | MORE THAN 1 BYTE ON SCAN EVERNT (DEPENDING ON BARCODE) |
INPUT ENDPOINT POLLING INTERVAL | 10 milliSeconds | 1 milliSecond |
REPORT LENGTH | 65 | 63 |
ALSO IT HAS BEEN OBSERVED THAT WHILE USING A BARCODE SCANNER AND AFTER READING A BARCODE - IN PIPE CONFIGURATIONS IT IS TAKING MORE TIME , MAY BE IT READS A BYTE TOO BUT THEN HARDFAULT OCCURS !!
CAN I GET SOME INPUTS ?? WHAT PARAMETERS I NEED TO CONSIDER & CHANGE FOR THIS BARCODE DEVICE CONFIGURATION??
I guess this is the same question as
https://community.nxp.com/t5/LPC-Microcontrollers/lpx43xx-usb0-host-HID-keyboard/m-p/1333195#M46364
If yes, welcome sharing solution here.
Have a nice day,
Jun Zhang