A method for transmitting a D2D signal, the method comprising: detecting, by user equipment, UE, a synchronization signal; determining, by the UE, a synchronization reference for sending a D2D signal to other UE or for receiving a D2D signal from the other UE according to the synchronization signal; characterized in that, the method further comprises: determining, by the UE, a D2D resource configuration according to information carried in the detected synchronization signal; determining, by the UE, a resource position for D2D signal transmission, according to the determined synchronization reference for sending a D2D signal to other UE or for receiving a D2D signal from the other UE, and the determined D2D resource configuration; and sending, by the UE, the D2D signal to the other UE at the resource position, or, receiving, by the UE, the D2D signal from the other UE at the resource position; wherein the determining, by the UE, the D2D resource configuration according to the information carried in the detected synchronization signal comprises: determining, by the UE, the D2D resource configuration according to the information carried in the synchronization signal, and a pre-obtained correspondence relationship between the information and the D2D resource configuration; or determining, by the UE, a physical resource for D2D transmission according to the information carried in the synchronization signal, and determining the D2D resource configuration according to the physical resource; wherein the information carried in the synchronization signal comprises at least one of: a sequence identifier for generating a synchronization sequence in the synchronization signal, a sequence type for the synchronization sequence, a cyclic shift for the synchronization sequence, Time Division Duplex, TDD, uplink-downlink configuration information carried in the synchronization signal, or system bandwidth information carried in the synchronization signal. detecting, by user equipment, UE, a synchronization signal; determining, by the UE, a synchronization reference for sending a D2D signal to other UE or for receiving a D2D signal from the other UE according to the synchronization signal; characterized in that, the method further comprises: determining, by the UE, a D2D resource configuration according to information carried in the detected synchronization signal; determining, by the UE, a resource position for D2D signal transmission, according to the determined synchronization reference for sending a D2D signal to other UE or for receiving a D2D signal from the other UE, and the determined D2D resource configuration; and sending, by the UE, the D2D signal to the other UE at the resource position, or, receiving, by the UE, the D2D signal from the other UE at the resource position; determining, by the UE, a D2D resource configuration according to information carried in the detected synchronization signal; determining, by the UE, a resource position for D2D signal transmission, according to the determined synchronization reference for sending a D2D signal to other UE or for receiving a D2D signal from the other UE, and the determined D2D resource configuration; and sending, by the UE, the D2D signal to the other UE at the resource position, or, receiving, by the UE, the D2D signal from the other UE at the resource position; wherein the determining, by the UE, the D2D resource configuration according to the information carried in the detected synchronization signal comprises: determining, by the UE, the D2D resource configuration according to the information carried in the synchronization signal, and a pre-obtained correspondence relationship between the information and the D2D resource configuration; or determining, by the UE, a physical resource for D2D transmission according to the information carried in the synchronization signal, and determining the D2D resource configuration according to the physical resource; wherein the information carried in the synchronization signal comprises at least one of: a sequence identifier for generating a synchronization sequence in the synchronization signal, a sequence type for the synchronization sequence, a cyclic shift for the synchronization sequence, Time Division Duplex, TDD, uplink-downlink configuration information carried in the synchronization signal, or system bandwidth information carried in the synchronization signal. determining, by the UE, the D2D resource configuration according to the information carried in the synchronization signal, and a pre-obtained correspondence relationship between the information and the D2D resource configuration; or determining, by the UE, a physical resource for D2D transmission according to the information carried in the synchronization signal, and determining the D2D resource configuration according to the physical resource; wherein the information carried in the synchronization signal comprises at least one of: a sequence identifier for generating a synchronization sequence in the synchronization signal, a sequence type for the synchronization sequence, a cyclic shift for the synchronization sequence, Time Division Duplex, TDD, uplink-downlink configuration information carried in the synchronization signal, or system bandwidth information carried in the synchronization signal.