Method for inter-device communications, base station, and user equipment

Provided are a method for a base station for allocating resources for user D2D scheduling and allocation and D2D data transmission, and a corresponding user equipment. The base station transmits to the user equipment the resource allocation mode for D2D scheduling and allocation and/or D2D data transmission. The network pre-defines the mode of frequency hopping within a subframe and between subframes for D2D scheduling and allocation and/or D2D data transmission. The user equipment obtains the time domain transmission mode for D2D scheduling and allocation and/or D2D data according to the resource allocation mode for D2D scheduling and allocation and/or D2D data transmission transmitted by the base station. The user equipment obtains the time domain transmission mode for D2D scheduling and allocation and/or D2D data according to the mode of frequency hopping within a subframe and between subframes for D2D scheduling and allocation and/or D2D data transmission pre-defined by the network.