摘要 |
A method in a master device for sending beacon signals is provided. The beacon signals are to be received by a slave device to discover the master device for Device to Device, D2D, communication. The master device is comprised in a wireless network. The master device receives (202) information from a network node. The information informs about a set of available peer discovery resources to be used in a peer discovery frame by the master device for sending beacon signals. The beacon signals are to be detected by the slave device. The master device obtains (204) a beacon transmission probability. The beacon transmission probability is the probability that the master device transmits a beacon signal in a specific peer discovery frame. At each specific peer discovery frame, the master device determines (205) according to the beacon transmission probability, whether or not a beacon signal shall be transmitted during that specific peer discovery frame. When determining to transmit a beacon signal during that specific peer discovery frame, master device sends (206) the beacon signal by choosing one of the peer discovery resources out of the received set of available peer discovery resources. |