Method for communication among equipment, base station, and user equipment

The invention provides a resource allocation method for user D2D scheduling configuration and D2D data transmission by a base station, and corresponding user equipment. The base station sends a resource allocation mode of D2D scheduling configuration and/or D2D data transmission to the user equipment. A network side predefines the frequency hopping mode of D2D scheduling configuration and/or D2D data transmission within one subframe and among subframes. The user equipment obtains the sending mode of D2D scheduling configuration and/or D2D data time domains according to the resource allocation mode, of D2D scheduling configuration and/or D2D data transmission, sent by the base station. The user equipment obtains the sending mode of D2D scheduling configuration and/or D2D data time domains according to the frequency hopping mode, predefined by the network side, of D2D scheduling configuration and/or D2D data transmission within one subframe and among subframes.