CPC G06F 13/362 (2013.01) [H04B 3/04 (2013.01); H04B 3/52 (2013.01)] | 8 Claims |
1. A control method for bidirectional communication, applied to a single-channel data link, the single-channel data link comprising a master communication unit and a slave communication unit connected to the master communication unit through a twisted pair cable or a coaxial cable, wherein the control method for bidirectional communication comprises:
performing a handshake between the master communication unit and the slave communication unit by sending a training sequence, determining data stability and a data transmission rate by the handshake, to make the master communication unit and the slave communication unit in a control signal transmission state;
controlling the master communication unit to obtain control information from an electronic control unit (ECU), and to package the control information into a custom package;
controlling the master communication unit to send the custom package to the slave communication unit, wherein the slave communication unit verifies the custom package received from the master communication unit, feeds back a correct message to the master communication unit in a case that the custom package is verified to be correct, and feeds back an error message to the master communication unit in a case that the custom package is verified to be incorrect; and
resending the custom package to the slave communication unit, in a case that the error message is received by the master communication unit or no feedback message is received by the master communication unit within a preset time period.
|