Send error message to bar code scanner
I have got a bar code scanner and am using it as a virtual serial port. I can read from it fine in my program but I want to be able to trigger the error light to go off from my program. I am using the serial port tool and the write event for it. Is it possible to send an error through the serial to the bar code scanner or will I have to contact the manufacturer. Do I need to write an ASICC character to it.
Private Sub BarCodeScanner_DataReceived(sender As Object, e As Ports.SerialDataReceivedEventArgs) Handles BarCodeScanner.DataReceived
Dim Data As String = BarCodeScanner.ReadExisting
'Write error (will be in if statement)
End sub
Re: Send error message to bar code scanner
The SerialPort class has methods for writing data so that's no problem, but you'll have to consult the documentation for the hardware to find out what command you have to write.
Re: Send error message to bar code scanner
There's no real standard for accessing all bar code scanners. You'll have to consult the scanner's manual to know what you do to light that light.