Data transmission method and electronic device
First Claim
1. A data transmission method, used in a universal serial bus (USB) host having a plurality of local endpoints, the data transmission method comprising:
- establishing transmission channels between the local endpoints and a plurality of remote endpoints, wherein a number of the local endpoints is less than a number of the remote endpoints, at least one of the local endpoints corresponds to at least two of the remote endpoints and at least two transmission channels are established;
storing data of the remote endpoints that correspond to a same one of the local endpoints into a data queue;
obtaining a plurality of first USB request blocks from the data queue on the principle of first-in-first-out (FIFO);
loading a plurality of first physical parameters according to a description of the first USB request blocks, wherein the first physical parameters correspond to the same one of the local endpoints and a first one of the remote endpoints, and the first physical parameters comprise a serial number of the first one of the remote endpoints;
transmitting transactions included in the first USB request blocks from the same one of the local endpoints to the first one of the remote endpoints;
when it is determined that transmission of the transactions included in the first USB request blocks is complete;
unloading the plurality of first physical parameters;
obtaining a plurality of second USB request blocks from the data queue on the principle of FIFO;
loading a plurality of second physical parameters according to a description of the second USB request blocks, wherein the second physical parameters correspond to the same one of the local endpoints and a second one of the remote endpoints, and the second physical parameters comprise a serial number of the second one of the remote endpoints; and
transmitting transactions of the second USB request blocks from the same one of the local endpoints to the second one of the remote endpoints.
1 Assignment
0 Petitions
Accused Products
Abstract
A data transmission method and an electronic apparatus are disclosed. The data transmission method comprises: establishing transmission channels between the local endpoints and a plurality of remote endpoints, wherein at least one of the local endpoints corresponds to at least two of the remote endpoints and at least two transmission channels are established; and transmitting data by using the transmission channels in a time-slice manner between the local endpoints and the corresponding remote endpoints. The data transmission method and the electronic apparatus of the present disclosure can achieve data transmission between a USB host and a plurality of USB devices even when the number of remote endpoints included in the USB devices is greater than the number of local endpoints included in the USB host.
-
Citations
20 Claims
-
1. A data transmission method, used in a universal serial bus (USB) host having a plurality of local endpoints, the data transmission method comprising:
-
establishing transmission channels between the local endpoints and a plurality of remote endpoints, wherein a number of the local endpoints is less than a number of the remote endpoints, at least one of the local endpoints corresponds to at least two of the remote endpoints and at least two transmission channels are established; storing data of the remote endpoints that correspond to a same one of the local endpoints into a data queue; obtaining a plurality of first USB request blocks from the data queue on the principle of first-in-first-out (FIFO); loading a plurality of first physical parameters according to a description of the first USB request blocks, wherein the first physical parameters correspond to the same one of the local endpoints and a first one of the remote endpoints, and the first physical parameters comprise a serial number of the first one of the remote endpoints; transmitting transactions included in the first USB request blocks from the same one of the local endpoints to the first one of the remote endpoints; when it is determined that transmission of the transactions included in the first USB request blocks is complete; unloading the plurality of first physical parameters; obtaining a plurality of second USB request blocks from the data queue on the principle of FIFO; loading a plurality of second physical parameters according to a description of the second USB request blocks, wherein the second physical parameters correspond to the same one of the local endpoints and a second one of the remote endpoints, and the second physical parameters comprise a serial number of the second one of the remote endpoints; and transmitting transactions of the second USB request blocks from the same one of the local endpoints to the second one of the remote endpoints. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A data transmission method used in a universal serial bus (USB) host having at least one local endpoint, the data transmission method comprising:
-
establishing transmission channels between the local endpoint and a plurality of remote endpoints, wherein the plurality of remote endpoints are included in at least one USB device; storing data of the plurality of remote endpoints that correspond to the local endpoint into a data queue; obtaining a subsequent portion of USB request blocks from the data queue on the principle of first-in-first-out (FIFO); loading a plurality of physical parameters corresponding to the local endpoint, wherein the physical parameters comprise information of a respective one of the remote endpoints corresponding to the obtained portion of USB request blocks and control information of the at least one USB device; transmitting transactions included in the obtained portion of USB request blocks from the local endpoint to the respective one of the remote endpoints; determining whether transmission of the transactions included in the obtained portion of USB request blocks is complete; when the transmission of the transactions included in the obtained portion of USB request blocks is complete, unloading the plurality of physical parameters and returning to the step of obtaining a subsequent portion of USB request blocks from the data queue on the principle of FIFO until transmission of all USB request blocks in the data queue is complete. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. An electronic device, comprising a universal serial bus (USB) host having at least one local endpoint, the electronic device comprising:
-
a channel establishing module, configured to establish transmission channels between the local endpoint and a plurality of remote endpoints, wherein the plurality of remote endpoints are included in at least one USB device; a storage module, configured to store data of the plurality of remote endpoints that correspond to the local endpoint into a data queue; a data obtaining unit, configured to obtain a subsequent portion of USB request blocks from the data queue on the principle of first-in-first-out (FIFO); a parameter loading unit, configured to load a plurality of physical parameters corresponding to the local endpoint, wherein the physical parameters comprise information of a respective one of the remote endpoints corresponding to the obtained portion of USB request blocks and control information of the at least one USB device; a data transmission unit, configured to transmit transactions included in the obtained portion of USB request blocks from the local endpoint to the respective one of the remote endpoints; a determining unit, configured to determine whether transmission of the transactions included in the obtained portion of USB request blocks is complete; wherein when the transmission of the transactions included in the obtained portion of USB request blocks is complete, the parameter loading unit unloads the plurality of physical parameters and the data obtaining unit obtains a subsequent portion of USB request blocks from the data queue on the principle of FIFO until transmission of all USB request blocks in the data queue is complete. - View Dependent Claims (20)
-
Specification