A User Equipment, UE, comprising: a processor, a memory storing instructions, wherein the memory stores instructions that cause the processor to: receive resource configuration information from a base station, wherein the resource configuration information comprises: a Scheduling Assignment, SA, indication indicating resources to be used by the UE for transmission of D2D SA; and a data resource indication indicating resources to be used by the UE for transmission of D2D data associated with the D2D SA, wherein the data resource indication includes transmission pattern information which indicates a plurality of transmission pattern candidates within all transmission pattern candidates; and another information which indicates, as a time period for D2D transmission, a number of subframes, the transmission pattern information is indicated by a bitmap in an RRC signal, the another information is received in an RRC signal, the number of subframes is selected from a plurality of numbers which are different from each other and constituted by 40 and one or more numbers each of which is a multiple of 40 and being maximum 320, and each of the plurality of transmission pattern candidates indicates one or more subframes used for data transmission in the time period for the D2D transmission. a processor, a memory storing instructions, wherein the memory stores instructions that cause the processor to: receive resource configuration information from a base station, wherein the resource configuration information comprises: a Scheduling Assignment, SA, indication indicating resources to be used by the UE for transmission of D2D SA; and a data resource indication indicating resources to be used by the UE for transmission of D2D data associated with the D2D SA, wherein the data resource indication includes transmission pattern information which indicates a plurality of transmission pattern candidates within all transmission pattern candidates; and another information which indicates, as a time period for D2D transmission, a number of subframes, the transmission pattern information is indicated by a bitmap in an RRC signal, the another information is received in an RRC signal, the number of subframes is selected from a plurality of numbers which are different from each other and constituted by 40 and one or more numbers each of which is a multiple of 40 and being maximum 320, and each of the plurality of transmission pattern candidates indicates one or more subframes used for data transmission in the time period for the D2D transmission. receive resource configuration information from a base station, wherein the resource configuration information comprises: a Scheduling Assignment, SA, indication indicating resources to be used by the UE for transmission of D2D SA; and a data resource indication indicating resources to be used by the UE for transmission of D2D data associated with the D2D SA, a Scheduling Assignment, SA, indication indicating resources to be used by the UE for transmission of D2D SA; and a data resource indication indicating resources to be used by the UE for transmission of D2D data associated with the D2D SA, wherein the data resource indication includes transmission pattern information which indicates a plurality of transmission pattern candidates within all transmission pattern candidates; and another information which indicates, as a time period for D2D transmission, a number of subframes, transmission pattern information which indicates a plurality of transmission pattern candidates within all transmission pattern candidates; and another information which indicates, as a time period for D2D transmission, a number of subframes, the transmission pattern information is indicated by a bitmap in an RRC signal, the another information is received in an RRC signal, the number of subframes is selected from a plurality of numbers which are different from each other and constituted by 40 and one or more numbers each of which is a multiple of 40 and being maximum 320, and each of the plurality of transmission pattern candidates indicates one or more subframes used for data transmission in the time period for the D2D transmission.