getting wrong data from USB Communication in C# -


i using microcontroller send data computer. code using data:

    serialport1.portname = "com13";     serialport1.baudrate = 57600;     serialport1.databits = 8;     serialport1.parity = parity.odd;     serialport1.stopbits = stopbits.one;      serialport1.open();      private void serialport1_datareceived(object sender, serialdatareceivedeventargs e)     {          serialport sp = (serialport)sender;         output += sp.readbyte() + " ";   } 

but problem getting wrong data, missing 1 bytes. using "terminal" , seems sending data correctly microcontroller c# getting wrong data. there way parameter of serial port automatically dont need set parameters self.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -