A signal transmission method, comprising: detecting, by user equipment, UE, in a first resource group, a first signal sent by a second network device, wherein the first resource group is used for sending the first signal by the second network device; the first resource group comprising N resources, N being a positive integer greater than 1, and each resource of the first resource group corresponding to one first signal; and the method further comprising: determining, by the UE, an nth resource in the first resource group according to a first rule, wherein the determining, by the UE, the nth resource in the first resource group according to a first rule comprises: using, by the UE, a resource on which energy of the first signal is greater than a first preset threshold in the first resource group, as the nth resource in the first resource group; determining, by the UE, an mth resource in a second resource group according to the nth resource in the first resource group and a first correspondence, wherein the nth resource in the first resource group has the first correspondence with the mth resource in the second resource group, the second resource group is used for sending a second signal by the second network device, the second resource group comprises M resources, M is a positive integer greater than 1, a value range of m is 0 < m ≤ M, and a value range of n is 0 < n ≤ N; wherein the first signal is a synchronization channel, the second signal is a random access response channel for responding a random access channel sent by the UE; and detecting, by the UE on the mth resource in the second resource group, the second signal sent by the second network device, wherein each resource of the second resource group is corresponding to one second signal. detecting, by user equipment, UE, in a first resource group, a first signal sent by a second network device, wherein the first resource group is used for sending the first signal by the second network device; the first resource group comprising N resources, N being a positive integer greater than 1, and each resource of the first resource group corresponding to one first signal; and the method further comprising: determining, by the UE, an nth resource in the first resource group according to a first rule, wherein the determining, by the UE, the nth resource in the first resource group according to a first rule comprises: using, by the UE, a resource on which energy of the first signal is greater than a first preset threshold in the first resource group, as the nth resource in the first resource group; determining, by the UE, an mth resource in a second resource group according to the nth resource in the first resource group and a first correspondence, wherein the nth resource in the first resource group has the first correspondence with the mth resource in the second resource group, the second resource group is used for sending a second signal by the second network device, the second resource group comprises M resources, M is a positive integer greater than 1, a value range of m is 0 < m ≤ M, and a value range of n is 0 < n ≤ N; wherein the first signal is a synchronization channel, the second signal is a random access response channel for responding a random access channel sent by the UE; and detecting, by the UE on the mth resource in the second resource group, the second signal sent by the second network device, wherein each resource of the second resource group is corresponding to one second signal. using, by the UE, a resource on which energy of the first signal is greater than a first preset threshold in the first resource group, as the nth resource in the first resource group; determining, by the UE, an mth resource in a second resource group according to the nth resource in the first resource group and a first correspondence, wherein the nth resource in the first resource group has the first correspondence with the mth resource in the second resource group, the second resource group is used for sending a second signal by the second network device, the second resource group comprises M resources, M is a positive integer greater than 1, a value range of m is 0 < m ≤ M, and a value range of n is 0 < n ≤ N; wherein the first signal is a synchronization channel, the second signal is a random access response channel for responding a random access channel sent by the UE; and detecting, by the UE on the mth resource in the second resource group, the second signal sent by the second network device, wherein each resource of the second resource group is corresponding to one second signal.