Hello ,
I’m currently working on barcode scanner interfacing with LPC4337 using lpcusblib (HID keyboard host example).
Issue: The USB1 host receives only the first character from the scanner after receiving few successful barcode readings, and then stalls. After rescanning, no further data transfers occur.
I’ve enabled USB1 interrupts and used HID_Host_ReceiveReport(), but suspect I’m missing proper IN packet handling or report clearing.
Has anyone implemented HID barcode scanning with lpcusblib on LPC microcontrollers? Any guidance or code snippets on handling continuous data transfer would be greatly helpful for me and appreciated.
i wanted to know that which are the conditions cause to clear the pipe buffer. some times i receive full barcode properly. some times after first character nothing is received also the usb line gets stuck so that after that nothing is received for several times barcode scanning.
Thank you in advance!
#EmbeddedSystems #LPC4337 #USBHost #HID #Firmware
Regards,