A communication method and apparatus, a readable storage medium, and a
computer program product, which relate to the technical field of communications, and are used for transmitting a reference
signal on the basis of an association between a resource and a sequence type, thereby improving communication performance. A first communication apparatus acquires a sequence type associated with a first resource. On the basis of the sequence type associated with the first resource, the first communication apparatus performs transmission of a first reference
signal on the first resource. The first reference
signal is generated on the basis of a first sequence. The sequence type of the first sequence is the sequence type associated with the first resource. Thus, on the basis of the solution, when the first communication apparatus is configured with multiple
sequence types, according to the solution, the first communication apparatus is enabled to select a corresponding sequence type on the basis of a resource. The solution provides an approach for coexistence of multiple
sequence types.