The D2D discovery described in the embodiments of the present disclosure is implemented based on the discovery signals transmitted directly between the UEs, herein the discovery signals are also called as beacons, and the transmission of the discovery signals needs to use the allocated radio resources. In the embodiment of the present disclosure, radio resources for device discovery are referred to as discovery resources, the discovery resources are periodic, and the device discovery radio resources in each discovery resource period are divided into discovery resource elements in a manner of time division multiplexing and/or frequency division multiplexing. In a discovery resource period, the allocated discovery radio resources are divided into the discovery resource elements, including N*K discovery resource elements, herein N and K are both positive integers, N is the number of the discovery resource elements in the time direction, K is the number of the discovery resource elements in the frequency direction, the position of each of the discovery resource elements corresponds to a coordinate (n, k), n is an integer not less than 0 and less than N, and k is an integer not less than 0 and less than K. The time length of the discovery resource element may be one subframe, two subframes, etc; the frequency bandwidth of the discovery resource element may be one, two or more than two resource blocks.