hoping someone can help me with a serial port communications snag i have run into. i am trying to interface a piece of hardware to a pc via the com port. the problem i am having is that the piece of hardware in question uses a very goofy serial standard.
some of the data coming in on the serial connection from the device is set to 1 start bit, 8 data bits, MARK parity, and 1 stop bit. (all fine and good here). HOWEVER, some of the data coming in from the same serial connection is set to 1 start bit, 8 data bits, SPACE parity, and 1 stop bit.
my off the cuff solution to handle this goofy serial connection was the following.
[code]Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
SerialPort1.Parity = IO.Ports.Parity.Mark