If your barcode scanner is not properly functioning, the best solution is to restore the default settings located in the manual associated with the scanner.
An example would be to refer to the “DS4308 Quick Start Guide“(scan page 8 return to factory defaults and Enter Key) and follow the instructions shown within it, different models of scanners will likely be associated with a similar reformat process.