It should be noted that the preceding discovery resource period refers to a discovery resource period adjacent in time to the current discovery resource period or a discovery resource period during which the user equipment sends the device discovery signals last time, which is described similarly in the following.
The first UE 4 is further arranged to establish mapping relationships k2=mod(floor((n1*K+k1+A)/N),K) and n2=mod(n1*K+k1+A,N); or
establish mapping relationships n2=mod(floor((k1*N+n1+B)/K),N) and k2=mod(k1*N+n1+B,K); or
establish mapping relationships k2=mod(k1+M,K) and n2=mod(n1+k1+L,N); and
interleave frequency positions of the discovery resource elements in the preceding discovery resource period of the current discovery resource period using an interleaver, establish a mapping relationship between frequency positions of the discovery resource elements in the preceding discovery resource period of the current discovery resource period and frequency positions of the discovery resource elements in the current discovery resource period according to the result of the interleaving, and establish a mapping relationship of n2=mod(n1+k1+L,N);