A non-transitory computer-readable storage medium, wherein a computer program is stored in the non-transitory computer-readable storage medium, and when the computer program is executed by a processor, a signal transmission method is performed, wherein the signal transmission method comprises:
- obtaining auxiliary information of a synchronization signal of a preset operation frequency band, wherein the preset operation frequency band is an operation frequency band of a preset service, and the preset service is a sidelink service, wherein the auxiliary information comprises pattern information of a synchronization raster, the pattern information of the synchronization raster comprises at least one of the following information:
- a type of the synchronization raster, wherein the type of the synchronization raster comprises:
- a relative synchronization raster or a global synchronization raster;
- a frequency domain unit difference between synchronization rasters;
- a frequency domain offset of the synchronization raster;
- a synchronization raster number;
- a step size S between adjacent synchronization raster numbers;
- indication information of the synchronization raster;
- a frequency domain position of the synchronization raster;
- or
- a measurement threshold of the synchronization raster;
- and
- transmitting or receiving the synchronization signal based on the auxiliary information, comprising:
- obtaining a first synchronization raster for transmitting or receiving the synchronization signal based on the pattern information of the synchronization raster comprising:
- when the pattern information of the synchronization raster comprises the type of the synchronization raster, determining that a type of the first synchronization raster is the type indicated in the pattern information of the synchronization raster, and obtaining the first synchronization raster based on the type of the first synchronization raster;
- or
- when the pattern information of the synchronization raster does not comprise the type of the synchronization raster, considering that the first synchronization raster is a global synchronization raster or a relative synchronization raster by default, and obtaining the first synchronization raster based on the type of the first synchronization raster;
- or
- when the type of the synchronization raster is the relative synchronization raster, obtaining a reference position corresponding to the relative synchronization raster, and when the pattern information of the synchronization raster comprises the frequency domain unit difference between synchronization rasters, using frequency domain positions evenly spaced apart by the frequency domain unit difference between synchronization rasters starting from the reference position as the first synchronization raster;
- or
- when the type of the synchronization raster is the global synchronization raster, and the pattern information of the synchronization raster comprises the frequency domain unit difference between synchronization rasters, using global synchronization rasters evenly spaced apart by the frequency domain unit difference between synchronization rasters in the global synchronization raster as the first synchronization raster;
- or
- when the pattern information of the synchronization raster comprises the synchronization raster number, and the number is a relative synchronization raster number, obtaining the relative synchronization raster based on at least one of a reference position corresponding to the synchronization raster, the frequency domain unit difference between synchronization rasters, the frequency domain offset of the synchronization raster, the step size S between adjacent synchronization raster numbers, or a frequency domain position of the synchronization signal;
- and using a relative synchronization raster corresponding to the number as the first synchronization raster;
- or
- when the pattern information of the synchronization raster comprises the indication information of the synchronization raster, the indication information of the synchronization raster comprises a quantity N of the synchronization rasters, and the type of the synchronization raster is the global synchronization raster, selecting N global synchronization rasters from the global synchronization raster as the first synchronization raster;
- or
- when the pattern information of the synchronization raster comprises the indication information of the synchronization raster, the indication information of the synchronization raster comprises a quantity N of the synchronization rasters, and the type of the synchronization raster is the relative synchronization raster, obtaining the relative synchronization raster based on at least one of a reference position of the synchronization raster, the frequency domain unit difference between synchronization rasters, the frequency domain offset of the synchronization raster, the synchronization raster number, the step size S between adjacent synchronization raster numbers, or the frequency domain position of the synchronization raster;
- and selecting N relative synchronization rasters from the relative synchronization raster as the first synchronization raster;
- or
- when the pattern information of the synchronization raster comprises the indication information of the synchronization raster, the indication information of the synchronization raster comprises a quantity N of the synchronization rasters, and the type of the synchronization raster is the relative synchronization raster, using frequency domain positions evenly spaced apart by a fixed distance starting from a reference position corresponding to the synchronization raster as the first synchronization raster, wherein the fixed distance is equal to a result obtained by rounding up a carrier bandwidth/N;
- or
- when the pattern information of the synchronization raster comprises the indication information of the synchronization raster, the indication information of the synchronization raster comprises bitmap information of the synchronization raster, and the type of the synchronization raster is the global synchronization raster, selecting a global synchronization raster corresponding to the bitmap information from the global synchronization raster as the first synchronization raster;
- or when the pattern information of the synchronization raster comprises the indication information of the synchronization raster, the indication information of the synchronization raster comprises bitmap information of the synchronization rasters, and the type of the synchronization raster is the relative synchronization raster, obtaining the relative synchronization raster based on at least one of a reference position of the synchronization raster, the frequency domain unit difference between synchronization rasters, the frequency domain offset of the synchronization raster, the synchronization raster number, the step size S between adjacent synchronization raster numbers, or the frequency domain position of the synchronization raster, and selecting a relative synchronization raster corresponding to the bitmap information from the relative synchronization raster as the first synchronization raster.