Currently, we are using the third part class RS232.vb and test program running well, but when we changed the communication to System.IO.Ports.SerialPort, the problem happens. For example, we write the same command with RS232.vb and System.IO.Ports.SerialPort
respectively, but the received data is different:
RS232: 1,3,8,13,132,12,131,12,112,12,134,63,82,82,192,13,10
System.IO: 63,63,1,3,8,13,132,12,131,12,112,12,134,63,82,82,192,13,10
There are always some "63" received at the begin of the data, sometimes 1 "63", sometimes 2 "63" and sometimes 3 "63".
Can someone tell me why there is "63" happens at the begin of the received data? Thanks.
The RS232.vb code is attached as below: