Issue in interfacing Barcode scanner using LPC4337 controller with LPCUSBLIB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue in interfacing Barcode scanner using LPC4337 controller with LPCUSBLIB

69 Views
RDGC_member
Contributor I

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.

Thank you in advance!

#EmbeddedSystems #LPC4337 #USBHost #HID #Firmware 

Regards,

Labels (3)
0 Kudos
Reply
2 Replies

18 Views
Alice_Yang
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

42 Views
RDGC_member
Contributor I

I am using LPCUSBLIB library for interfacing USB barcode scanner with LPC4337 controller. 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. 

0 Kudos
Reply