CodePudding user response:
Consult everybody warrior!!!CodePudding user response:
This problem description,,, what is not normal? There are abnormal exception informationCodePudding user response:
1. Post your agreement.2. Where is not normal?
CodePudding user response:
Does not normally command is sent out, baud rate, or the setting is wrong, or the lower machine have no reaction?CodePudding user response:
The doctor practicing medicine, suit the remedy to the case! Under the clear point: PC problem, or a machine equipment program problem?CodePudding user response:
I did a machine down mscm1. Output:=CRH ($7 b) + CRH ($6) + CRH ($00) + CRH ($01) + CRH ($01) + CRH ($F4) + CRH ($D3) + CRH ($87); Register address bits, command, and 2, 2 data bits and two check digit, 5,50,500, data are not normal"Address bits, command, two registers, two data bits and two check digit" described here has a problem, is 8 bits in a byte? Or continuous 8 bytes?
The original poster is best can stick the whole communication protocol, this helps to analysis, usually self synchronous message or adopt the RTS/CTS flow control protocol can support the PC serial port communication mode, but the MCS - 51 commonly used "multimachine communication mode" is not directly support, but in the case of rate lower can use the BREAK signal or indirect support frame error trapping way,
CodePudding user response:
A protocol error information, so we are under a machine problem analysis, baud rate, or parameter setting problemCodePudding user response:
You use a serial port assistant check data you send is what format?