none
VB.net+System.IO.Ports.SerialPort+Third part class RS232.vb RRS feed

  • 问题

  • 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:

    2011年7月14日 8:50

全部回复

  • Hi Midywei,

    Welcome to the MSDN Forum.

    It seems that you have miss the code.

    But I suggest you check the third part class first, to find out how it handle the input and the output data. The number 63 looks like a sign.

    Best regards,


    Mike Feng [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2011年7月18日 2:57
    版主