The invention provides a data communication method and device, electronic equipment, an upper computer and a storage medium. The method comprises the steps of responding to a received operation command sent by an object, determining at least one input entity corresponding to the operation command, sending the at least one input entity to a lower computer, receiving feedback information sent by thelower computer for the at least one input entity, analyzing feedback information, and determining a target receiver adopting the same communication protocol as the lower computer; setting the targetreceiver as a default receiver; and achieving data communication between the upper computer and the lower computer by using the default receiver. The feedback information is analyzed; a target receiver with the same communication protocol is determined as the lower computer according to the feedback information, the target receiver is determined as the default receiver, so that data communicationbetween the upper computer and the lower computer is realized, a serial port communication system does not need to be reset, the cost is saved, and the technical effect of safe and reliable data communication between the upper computer and the lower computer is ensured.