Problem using USB host shield and USB barcode scanner

Hi All,

I am working on a project wherein I have to read some parameters from a barcode using a barcode scanner.

Hardware & software I am using:

  1. Arduino UNO R3,
  2. USB host shield by sparkfun (https://www.sparkfun.com/products/9947)
  3. iball's USB barcode scanner
  4. Arduino IDE 1.5.6r2
  5. USB host library (https://github.com/felis/USB_Host_Shield_2.0/archive/master.zip)
  6. Code from http://www.circuitsathome.com/mcu/connecting-barcode-scanner-arduino-usb-host-shield with all LCD related syntax removed; I am printing to Serial.

Problem:
I was able to compile and upload the code successfully. While running sometimes I got a message on Serial which said "OSC did not start" while other times the "OSC did not start message did not appear but the scanned text was not displayed on the Serial.

After a while I was able to run it fine and could see the scanned text on the Serial window.

My problem is that I am again getting "OSC did not start" error and honestly everything (connections, code) is same as before. Could anyone here comment on what could be causing this problem?

Thanks and regards,
-amit