Excuse me, how to change in the upper machine, automatic and manual data to send the past can be complete
CodePudding user response:
Data validation, write their own one of the most simple CRC16 algorithm, odd parity, parity checking, such as resend check wrong,CodePudding user response:
This thing will check the same and network communication, PC put commands in the queue, connection, execution, disconnect and another under each message need machine calibration, calibration is successful, the execution result to PC a reply; Similarly, upper machine also need to check the news of the lower machine, not successful message to resend,In addition there is a need to pay special attention to, the connection of the port baud rate not too high, enough, high baud rate leads to high error rate,
CodePudding user response:
Sent out the check, please? Or what? The key is, send data, it is not return success or what,CodePudding user response:
Lock to ensure that every time can only send a bunch of dataCodePudding user response:
A queue is a correct solution,CodePudding user response: