Provided are a communication method and a
communication device, the method comprising: a first
communication device obtaining an identifier of a first resource, the first resource being used for transmitting a reference
signal, such as a sidelink positioning reference
signal, the identifier of the first resource is determined according to at least one of the following items: the length of a
time domain resource capable of being used for transmitting the sidelink positioning reference
signal, the initial position of the
time domain resource for transmitting the sidelink positioning reference signal, and the length of the
time domain resource for transmitting the sidelink positioning reference signal; the first
communication device transmits a sidelink positioning reference signal using a first resource. On the basis, a uniform generation mode of the sidelink positioning reference signal
resource identifier can be designed, so that flexible indication of the sidelink positioning reference signal resource can be realized.