A data transmission method, comprising: acquiring, by user equipment, a first preamble and a second preamble, wherein the first preamble corresponds to a cell set of a primary timing advance group PTAG of a first base station, and the second preamble corresponds to a cell set of a secondary timing advance group STAG of a second base station; sending, by the user equipment, the first preamble to the first base station, to initiate random access to the first base station according to the first preamble; and sending, by the user equipment, the second preamble to the second base station, to initiate random access to the second base station according to the second preamble; the method further comprising: acquiring, by the user equipment, a first channel resource, wherein the first channel resource is a physical random access channel, PRACH, resource of the first base station, and the first channel resource comprises a subframe set that is to be used to carry the first preamble; and acquiring, by the user equipment, a second channel resource, wherein the second channel resource is a PRACH resource of the second base station, and the second channel resource comprises a subframe set that is to be used to carry the second preamble; wherein when a sending time of the first preamble overlaps with a sending time of the second preamble, the method further comprises: postponing, by the user equipment, to another subframe, the time for sending the second preamble to the second base station wherein the sending time of the first preamble does not overlap with a sending time of the second preamble. acquiring, by user equipment, a first preamble and a second preamble, wherein the first preamble corresponds to a cell set of a primary timing advance group PTAG of a first base station, and the second preamble corresponds to a cell set of a secondary timing advance group STAG of a second base station; sending, by the user equipment, the first preamble to the first base station, to initiate random access to the first base station according to the first preamble; and sending, by the user equipment, the second preamble to the second base station, to initiate random access to the second base station according to the second preamble; the method further comprising: acquiring, by the user equipment, a first channel resource, wherein the first channel resource is a physical random access channel, PRACH, resource of the first base station, and the first channel resource comprises a subframe set that is to be used to carry the first preamble; and acquiring, by the user equipment, a second channel resource, wherein the second channel resource is a PRACH resource of the second base station, and the second channel resource comprises a subframe set that is to be used to carry the second preamble; wherein when a sending time of the first preamble overlaps with a sending time of the second preamble, the method further comprises: postponing, by the user equipment, to another subframe, the time for sending the second preamble to the second base station wherein the sending time of the first preamble does not overlap with a sending time of the second preamble. acquiring, by the user equipment, a first channel resource, wherein the first channel resource is a physical random access channel, PRACH, resource of the first base station, and the first channel resource comprises a subframe set that is to be used to carry the first preamble; and acquiring, by the user equipment, a second channel resource, wherein the second channel resource is a PRACH resource of the second base station, and the second channel resource comprises a subframe set that is to be used to carry the second preamble; wherein when a sending time of the first preamble overlaps with a sending time of the second preamble, the method further comprises: postponing, by the user equipment, to another subframe, the time for sending the second preamble to the second base station wherein the sending time of the first preamble does not overlap with a sending time of the second preamble.