I am using barcode scanner ds6878 for my application. It gets connected once or twice but most of the time it gets disconnected automatically. Scanner sounds a beep for disconnection immediately after when it is connected. The device can only be used for connection once or twice. Is there any code for checking the working of this scanner?