A method for communication between devices in proximity, comprising: determining, by a network side device, whether User Equipments, UEs, meet a direct Device to Device, D2D, communication condition, wherein the D2D communication condition comprises: the UEs are in the coverage of a proximity area where the direct D2D communication is available, and each of the UEs has a D2D communication capability; wherein the coverage of the proximity area where the direct D2D communication is preset; when the network side device determines that the UEs meet the direct D2D communication condition, sending, by the network side device, to the UEs a proximity area notification message, and configuring, by the network side device, resources for direct D2D communication for the UEs after receiving a D2D confirmation indication message from the UEs; when the network side device determines that the UEs do not meet the direct D2D communication condition, determining, by the network side device, whether the UEs meet a condition for D2D communication through a relay; when the UEs meet the condition for D2D communication through a relay, configuring, by the network side device, for the UEs a D2D communication path including a relay; and when the UEs do not meet the condition for D2D communication through a relay, configuring, by the network side device, resources for architecture communication for the UEs; wherein the method further comprises: during a process of the communication between the UEs, performing, by the network side device, switching among a direct D2D communication mode, a mode where D2D communication is implemented through a relay and an architecture communication mode according to spacing distance between the UEs. determining, by a network side device, whether User Equipments, UEs, meet a direct Device to Device, D2D, communication condition, wherein the D2D communication condition comprises: the UEs are in the coverage of a proximity area where the direct D2D communication is available, and each of the UEs has a D2D communication capability; wherein the coverage of the proximity area where the direct D2D communication is preset; when the network side device determines that the UEs meet the direct D2D communication condition, sending, by the network side device, to the UEs a proximity area notification message, and configuring, by the network side device, resources for direct D2D communication for the UEs after receiving a D2D confirmation indication message from the UEs; when the network side device determines that the UEs do not meet the direct D2D communication condition, determining, by the network side device, whether the UEs meet a condition for D2D communication through a relay; when the UEs meet the condition for D2D communication through a relay, configuring, by the network side device, for the UEs a D2D communication path including a relay; and when the UEs do not meet the condition for D2D communication through a relay, configuring, by the network side device, resources for architecture communication for the UEs; wherein the method further comprises: during a process of the communication between the UEs, performing, by the network side device, switching among a direct D2D communication mode, a mode where D2D communication is implemented through a relay and an architecture communication mode according to spacing distance between the UEs.