I cant read USB Barcode Scanner On LPC1768 USB Host

Hi All,

I try to develop a Embedded USB Host stack for LPC1768.

At the moment, Mouse and Keyboard works fine in my driver.

But when I try a USB barcode scanner, barcode scanner frozen.

My driver sense barcode scanner as a keyboard and initialize it.

İn first reading, barcode scanner leds is working but after read, leds never work again and dont send any data to host.

My keyboard buffer 8 bytes.

When I increment this buffer, some meaningless data come but, leds still doesnt work.

Where is the problem.

I cant find it.

Please help me…