A device to device, D2D, communication method, comprising: obtaining , by a first user equipment supporting a D2D function, a resource for broadcasting information of the first user equipment, wherein the resource is allocated by a serving base station of a cell where the first user equipment is located, wherein the obtaining the resource for broadcasting information of the first user equipment, comprises: obtaining , by the first user equipment, resources that are allocated in advance by the serving base station to user equipments supporting the D2D function in the cell and are used for broadcasting information of the user equipments; wherein the resource for broadcasting information of the first user equipment is selected by using automatic search or measurement and the resource for broadcasting information of the first user equipment is a resource whose interference level is lower than a predetermined threshold, and selecting , by the first user equipment, the resource for broadcasting information of the first user equipment from the resources allocated in advance by the serving base station; and broadcasting , by the first user equipment on the selected resource, the information of the first user equipment to a second user equipment supporting the D2D function, wherein the information of the first user equipment comprises an identifier of the first user equipment; and wherein between the obtaining and broadcasting steps the method further comprises a step of maintaining a radio resource control, RRC, idle state between the first user equipment and the base station. obtaining , by a first user equipment supporting a D2D function, a resource for broadcasting information of the first user equipment, wherein the resource is allocated by a serving base station of a cell where the first user equipment is located, wherein the obtaining the resource for broadcasting information of the first user equipment, comprises: obtaining , by the first user equipment, resources that are allocated in advance by the serving base station to user equipments supporting the D2D function in the cell and are used for broadcasting information of the user equipments; wherein the resource for broadcasting information of the first user equipment is selected by using automatic search or measurement and the resource for broadcasting information of the first user equipment is a resource whose interference level is lower than a predetermined threshold, and selecting , by the first user equipment, the resource for broadcasting information of the first user equipment from the resources allocated in advance by the serving base station; and obtaining , by the first user equipment, resources that are allocated in advance by the serving base station to user equipments supporting the D2D function in the cell and are used for broadcasting information of the user equipments; wherein the resource for broadcasting information of the first user equipment is selected by using automatic search or measurement and the resource for broadcasting information of the first user equipment is a resource whose interference level is lower than a predetermined threshold, and selecting , by the first user equipment, the resource for broadcasting information of the first user equipment from the resources allocated in advance by the serving base station; and broadcasting , by the first user equipment on the selected resource, the information of the first user equipment to a second user equipment supporting the D2D function, wherein the information of the first user equipment comprises an identifier of the first user equipment; and wherein between the obtaining and broadcasting steps the method further comprises a step of maintaining a radio resource control, RRC, idle state between the first user equipment and the base station. <EOS>