The application discloses a device communication method and device based on UART communication protocol and
electronic equipment, which is applied to communication between
electronic equipment and
peripheral equipment, the
electronic equipment comprises a
central processing unit and a UART interface, the
peripheral equipment comprises a UART connector, the UART connector and the UART interface both have data receiving pins and data sending pins, a communication connection is established between the
data transmission channel and the data receiving pins and the data sending pins of the UART connector, and the method comprises the following steps: configuring a data time-sharing round-robin transmission strategy, so that the
peripheral equipment and the electronic equipment both alternately send data according to a preset time length; when the peripheral equipment sends data, the data is transmitted to the data receiving pins of the electronic equipment through the
data transmission channel; when the electronic equipment sends data, the data is transmitted to the data receiving pins of the peripheral equipment through the
data transmission channel; and based on the time-sharing round-robin transmission strategy, the peripheral equipment and the electronic equipment time-sharing alternately transmit data.