Method and apparatus for using serial port in time division multiplexing manner
First Claim
1. An apparatus for using a serial port device by time division multiplexing, wherein the apparatus comprises:
- a first serial port,a second serial port,a switching circuit, anda signal interface, wherein;
the switching circuit is configured to select one serial port from the first serial port and the second serial port to receive data sent by the one serial port, and output the data to the signal interface;
the signal interface is coupled to a first serial port device and a second serial port device outside the apparatus;
the first serial port is coupled to the signal interface by using the switching circuit and configured to, when the switching circuit selects to receive first data sent by the first serial port, send the first data to the first serial port device corresponding to the first serial port by using the switching circuit and the signal interface;
the first serial port is further configured to receive fourth data sent by the first serial port device by using the signal interface;
the second serial port is configured to receive, by using the signal interface, second data sent by the second serial port device corresponding to the second serial port, and determine whether the second data indicates that the second serial port device needs to receive third data sent by the second serial port; and
if the second data received by the second serial port indicates that the second serial port device needs to receive the third data sent by the second serial port, instruct the switching circuit to select to receive the third data sent by the second serial port; and
the second serial port is coupled to the signal interface by using the switching circuit and further configured to, when the switching circuit selects to receive the third data sent by the second serial port, send the third data to the second serial port device by using the switching circuit and the signal interface.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and an apparatus for using a serial port device in a time division multiplexing manner are provided. The apparatus includes a first serial port, a second serial port, a switching circuit, and a signal interface, where the switching circuit selects to receive data sent; the first serial port sends first data to a first serial port device; the second serial port receives second data sent by a second serial port device, and when it is determined that the second data indicates that the second serial port device needs to receive third data sent by the second serial port, instructs the switching circuit to select to receive the third data sent; and the second serial port sends the third data to the second serial port device. Therefore, the first serial port and the second serial port can use corresponding serial port devices in a time division multiplexing manner.
-
Citations
11 Claims
-
1. An apparatus for using a serial port device by time division multiplexing, wherein the apparatus comprises:
-
a first serial port, a second serial port, a switching circuit, and a signal interface, wherein; the switching circuit is configured to select one serial port from the first serial port and the second serial port to receive data sent by the one serial port, and output the data to the signal interface; the signal interface is coupled to a first serial port device and a second serial port device outside the apparatus; the first serial port is coupled to the signal interface by using the switching circuit and configured to, when the switching circuit selects to receive first data sent by the first serial port, send the first data to the first serial port device corresponding to the first serial port by using the switching circuit and the signal interface; the first serial port is further configured to receive fourth data sent by the first serial port device by using the signal interface; the second serial port is configured to receive, by using the signal interface, second data sent by the second serial port device corresponding to the second serial port, and determine whether the second data indicates that the second serial port device needs to receive third data sent by the second serial port; and
if the second data received by the second serial port indicates that the second serial port device needs to receive the third data sent by the second serial port, instruct the switching circuit to select to receive the third data sent by the second serial port; andthe second serial port is coupled to the signal interface by using the switching circuit and further configured to, when the switching circuit selects to receive the third data sent by the second serial port, send the third data to the second serial port device by using the switching circuit and the signal interface. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method for using a serial port device with an apparatus by time division multiplexing, the apparatus comprises a first serial port, a second serial port, a switching circuit, and a signal interface, the switching circuit is configured to select one serial port from the first serial port and the second serial port to receive data sent by the one serial port and output the data to the signal interface, and the method comprises:
-
sending, by the first serial port by using the switching circuit and the signal interface, first data to a first serial port device that is outside the apparatus and corresponding to the first serial port; receiving, by the second serial port by using the signal interface, second data sent by a second serial port device that is outside the apparatus and corresponding to the second serial port, and determining whether the second data indicates that the second serial port device needs to receive third data sent by the second serial port; if the second data received by the second serial port indicates that the second serial port device needs to receive the third data sent by the second serial port, instructing, by the second serial port, the switching circuit to select to receive the third data sent by the second serial port; and sending, by the second serial port by using the switching circuit and the signal interface, the third data to the second serial port device. - View Dependent Claims (9, 10, 11)
-
Specification