I am playing with the serial port example for bar code readers and have come across an odd behavior that I’m not sure how to debug further.
When I run the program on my Mac it runs as expected, but when I run it on a windows 10 machine with the same model of scanner the DataAvailable Event does not always get raised. It seems that it’s almost always when scanning the first barcode after connecting, although this behavior persists for 2 or 3 scans sometimes. Then, it seems to be one read behind. Meaning if I scan a barcode ending in 852, then a barcode ending in 569 it will print the barcode ending in 852 to the text area (assuming the event gets raised on 569). This behavior is not found on my Mac. I’ve tried setting the baud to the rated speed on the fly as well as exchanging lookahead for readall in the DataAvailable event to no avail.
I'm using two Datalogic QD2340 scanners.
Any ideas would be much appreciated.