Communications method and apparatus
In a communications method, a control node determines first configuration information where the first configuration information belongs to a configuration information set. The configuration information set includes at least one piece of configuration information to indicate whether a first slave node performs, in some or all of time units included in a preset time period, an operation corresponding to the first configuration information. The method is applied to coordination management of communication between slave nodes in a transmission system having a plurality of service requirements and implements flexible configuration of each slave node in the transmission system controlled by the control node.
1 . A communications method comprising:
determining, by a control node, first configuration information, wherein the first configuration information belongs to a configuration information set, and wherein the first configuration information indicates, based on a sampling frequency of a first slave node, whether the first slave node is instructed to perform, in time units in a preset time period, an operation corresponding to the first configuration information;
sending, by the control node, the first configuration information to the first slave node; and
sending an instruction that uplink random data of a third slave node may be overwritten with uplink random data of the first slave node, wherein the control node is configured to connect to the second slave node, the first slave node, and the third slave node in series.
2 . The method of claim 1 , wherein the first configuration information comprises a bitmap, wherein bits in the bitmap are in a one-to-one correspondence with the time units in the preset time period, and wherein each bit in the bitmap indicates whether to perform, on a corresponding time unit, the operation corresponding to the first configuration information.
3 . The method of claim 1 , wherein the configuration information set comprises one or more of uplink time unit activation information, uplink time unit demodulation information, uplink time unit forwarding information, uplink time unit padding information, downlink time unit activation information, downlink time unit demodulation information, downlink time unit forwarding information, or downlink time unit padding information.
4 . The method of claim 1 , wherein the preset time period comprises at least one of:
a downlink time domain resource, wherein the downlink time domain resource comprises a downlink pilot, a downlink frame header, and a first time unit comprising periodic downlink regular data; or
an uplink time domain resource, wherein the uplink time domain resource comprises an uplink pilot, an uplink frame header, and a second time unit comprising periodic uplink regular data.
5 . The method of claim 4 , wherein the downlink time domain resource further comprises a third time unit comprising downlink feedback information; and/or a fourth time unit comprising burst downlink random data, and wherein the uplink time domain resource further comprises a fifth time unit comprising uplink feedback information; and/or a sixth time unit comprising burst uplink random data.
6 . The method of claim 5 , further comprising sending, by the control node, second configuration information to the first slave node, wherein the second configuration information comprises location information or quantity information about either the fourth time unit or the sixth time unit.
7 . A communications apparatus comprising:
a memory configured to store instructions, and a processor coupled to the memory and configured to execute the instructions to cause the communications apparatus to:
determine first configuration information, wherein the first configuration information belongs to a configuration information set, and wherein the first configuration information indicates, based on a sampling frequency of a first slave node, whether the first slave node is instructed to perform, in time units in a preset time period, an operation corresponding to the first configuration information;
send the first configuration information to the first slave node; and
send an instruction that uplink random data of a third slave node may be overwritten with uplink random data of the first slave node, wherein the communications apparatus is configured to connect to a second slave node, the first slave node, and the third slave node in series.
8 . The communications apparatus of claim 7 , wherein the first configuration information comprises a bitmap, wherein bits in the bitmap are in a one-to-one correspondence with the time units in the preset time period, and wherein each bit in the bitmap indicates whether to perform, on a corresponding time unit, the operation corresponding to the first configuration information.
9 . The communications apparatus of claim 7 , wherein the configuration information set comprises one or more of: uplink time unit activation information, uplink time unit demodulation information, uplink time unit forwarding information, uplink time unit padding information, downlink time unit activation information, downlink time unit demodulation information, downlink time unit forwarding information, and downlink time unit padding information.
10 . The communications apparatus of claim 7 , wherein the preset time period comprises at least one of, a downlink time domain resource, wherein the downlink time domain resource comprises a downlink pilot, a downlink frame header, and a first time unit comprising periodic downlink regular data.
11 . The communications apparatus of claim 10 , wherein the downlink time domain resource further comprises a third time unit comprising downlink feedback information; and/or a fourth time unit comprising burst downlink random data.
12 . The communications apparatus of claim 11 , wherein the processor is further configured to execute the instructions to cause the communications apparatus to send second configuration information to the first slave node, wherein the second configuration information comprises location information or quantity information about the fourth time unit.
13 . The communications apparatus of claim 12 , wherein the second configuration information further indicates whether the first slave node activates an overwrite function within the preset time period, wherein the overwrite function comprises an instruction that downlink random data of a second slave node may be overwritten with downlink random data of the first slave node.
14 . A first slave node comprising:
a memory configured to store instructions, and a processor coupled to the memory and configured to execute the instructions to cause the first slave node to:
sample, at a sampling frequency, data from a peripheral device;
receive, from a control node, first configuration information, wherein the first configuration information belongs to a configuration information set, and wherein the first configuration information indicates, based on the sampling frequency, whether the first slave node is to perform, in time units in a preset time period, an operation corresponding to the first configuration information;
determine, based on the first configuration information, a determined operation for each time unit in the preset time period;
perform the determined operation for each time unit when each time unit is reached; and
receive second configuration information, wherein the second configuration information indicates whether the first slave node is to activate an overwrite function within the preset time period, wherein the overwrite function comprises an instruction that uplink random data of a third slave node may be overwritten with uplink random data of the first slave node, and wherein the first slave node is configured to connect to the control node, a second slave node, and the third slave node in series.
15 . The first slave node of claim 14 , wherein the first configuration information comprises a bitmap, wherein bits in the bitmap are in a one-to-one correspondence with the time units in the preset time period; and wherein each bit in the bitmap indicates whether to perform, on a corresponding time unit, the operation corresponding to the first configuration information.
16 . The first slave node of claim 14 , wherein the configuration information set comprises one or more of: uplink time unit activation information, uplink time unit demodulation information, uplink time unit forwarding information, uplink time unit padding information, downlink time unit activation information, downlink time unit demodulation information, downlink time unit forwarding information, or downlink time unit padding information.
17 . The first slave node of claim 14 , wherein the preset time period comprises at least one of, an uplink time domain resource, wherein the uplink time domain resource comprises an uplink pilot, an uplink frame header, and a second time unit comprises uplink regular data.
18 . The first slave node of claim 17 , wherein the uplink time domain resource further comprises a fifth time unit comprising uplink feedback information; and/or a sixth time unit comprising burst uplink random data.
19 . The first slave node of claim 18 , wherein the processor is further configured to execute the instructions to cause the first slave node to receive second configuration information from the control node, wherein the second configuration information comprises location information or quantity information about the sixth time unit.
20 . The first slave node of claim 19 , wherein the second configuration information further indicates whether the first slave node is to activate an overwrite function within the preset time period, and wherein the overwrite function comprises an instruction that downlink random data of the second slave node may be overwritten with downlink random data of the first slave node.