A computer program product comprising non-transitory computer readable medium comprising instructions which, when executed by a computer, cause the computer to carry out operations that perform a method for obtaining an uplink-downlink carrier frequency spacing, wherein the method is applied to an Narrowband Internet of Things (NB-IoT) system, the operations comprising:
- initiating a request in a first cell to access an NB-IoT, and receiving an indication message sent by a base station, wherein the indication message is used to indicate an uplink-downlink carrier frequency spacing corresponding to the first cell;
- and
- determining, according to the indication information, the uplink-downlink carrier frequency spacing corresponding to the first cell, wherein
- in response to a that the indication information carries an uplink-downlink basic carrier frequency spacing corresponding to a frequency band used by the first cell, an index number corresponding to a first carrier frequency deviation in a first carrier frequency deviation set, and a difference between index numbers of uplink and downlink physical resource blocks used by the first cell, determining the first carrier frequency deviation according to the index number corresponding to the first carrier frequency deviation in the first carrier frequency deviation set.