For example, the communications apparatus is a terminal device. FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of this application. For ease of understanding and illustration, in FIG. 10, for example, the terminal device is a mobile phone. FIG. 10 shows only main components of the terminal device. The terminal device 1000 shown in FIG. 10 includes a processor, a memory, a control circuit, and an antenna. Optionally, the terminal device may further include an input/output apparatus. It should be understood that, the control circuit may be disposed in the processor, or may be located outside the processor and exists independently. This is not limited in this embodiment of this application. The processor is mainly configured to process a communication protocol and communication data, control the entire terminal device, execute a software program, and process data of the software program, for example, configured to support the terminal device in performing the actions described in the foregoing method embodiments. The memory is mainly configured to store the software program and the data. The control circuit is mainly configured to perform conversion between a baseband signal and a radio frequency signal and process the radio frequency signal. The control circuit, together with the antenna, may also be referred to as a transceiver that is mainly configured to send and receive a radio frequency signal in an electromagnetic wave form. The input/output apparatus, such as a touchscreen, a display, or a keyboard, is mainly configured to: receive data entered by a user, and output data to the user.