Home > Software engineering >  Judgment about VB serial interface communication operators and end the problem
Judgment about VB serial interface communication operators and end the problem

Time:09-20

I need to write a serial communication program, begin with the string a/n at the end with a newline I am using mscomm control excuse me how can I determine whether the operator and the terminator, without hex string only way can receive?????? Online etc.

CodePudding user response:

Can, but you are using a beginning, might be confused and content, unless you're content does not contain a

CodePudding user response:

As long as you don't and want to transfer the contents of the contradiction, a data frame using the receive or binary characters are feasible, VB so-called hexadecimal serial communication, receiving, not this say, can only be in binary receive, for the convenience of viewing when receiving and falls and the ASCII value is greater than 128 data and use the ASCII value of the converted to hexadecimal string show to see,

CodePudding user response:

1, as long as it's not a continuous data stream can be used in the form of overtime to process the data, which at the beginning or ending just what are you doing in the received data processing analysis,
2, receive you need to make sure you send and receive data string way of ASCII is larger than 127 (characters, but also it is best not to do so), or you can't use string communication,

CodePudding user response:

Using an array of bytes

CodePudding user response:

http://download.csdn.net/detail/bakw/9857323
Do a small chestnut, no test, may be some small errors, their debugged,
  • Related