Method and apparatus for measuring state information of intermediate object
A first device sends a first message to a second device, where the first message indicates to the second device to hop to different channels at different times to send radio signals. The frequency bandwidth ranges of any two channels do not completely overlap, and the frequency bandwidth range of each channel is within a total frequency bandwidth range supported by the first device. The first device separately receives the radio signals that are sent by the second device on different channels at different times. The radio signals reach the first device after being reflected by an intermediate object. The first device measures the state information of the intermediate object based on the physical characteristics of the different radio signals that are separately received.
1 . A method for measuring state information of an intermediate object, comprising:
sending, by a first device, a first message to a second device, wherein the first message indicates to the second device to hop to different channels at different times to send radio signals, frequency bandwidth ranges of any two channels do not completely overlap, a frequency bandwidth range of each channel is within a total frequency bandwidth range supported by the first device, and the first message comprises a channel hopping order, the channel hopping order indicating hopping orders for at least two channels;
separately receiving, by the first device, the radio signals that are sent by the second device successively on the different channels at the different times, wherein the radio signals sent by the second device reach the first device after being reflected by an intermediate object located between the first device and the second device; and
measuring, by the first device, state information of the intermediate object based on physical characteristics of the different radio signals that are separately received;
wherein the first message further comprises a feedback mode, the feedback mode comprises a feedback type and a type of measurement data;
the feedback type comprises at least one of a timely feedback type or an aggregated feedback type, and the type of measurement data comprises raw measurement data and processed measurement data;
the timely feedback type is used to indicate the second device to feed back to the first device a physical characteristic of a radio signal received on a current channel before hopping to a next channel;
the aggregated feedback type is used to indicate the second device to feed back to the first device physical characteristics of radio signals received on the plurality of channels after completing all channel hopping based on the first message;
the raw measurement data is used to indicate the second device to feed back to the first device a raw physical characteristic of a radio signal received on a channel; and
the processed measurement data is used to indicate the second device to process a physical characteristic of a radio signal received on a channel and feed back the processed physical characteristic to the first device.
2 . The method according to claim 1 , further comprising:
sending, by the first device, a second message to a third device, wherein the second message indicates to the third device to hop to the different channels at different times to send radio signals, and the second device and the third device hop to a same channel at different times;
separately receiving, by the first device, the radio signals that are sent by the third device successively on the different channels at the different times, wherein the radio signals sent by the third device reach the first device after being reflected by the intermediate object; and
measuring, by the first device, the state information of the intermediate object based on physical characteristics of the separately received radio signals that are sent by the third device successively on the different channels at the different times and the separately received radio signals sent by the second device.
3 . The method according to claim 2 , wherein the sending, by the first device, the first message to the second device, and the sending, by the first device, the second message to the third device comprise:
sending, by the first device, a third message to the second device and the third device, wherein the third message comprises the first message and the second message.
4 . The method according to claim 3 , wherein the third message comprises a quantity of bytes occupied by a target wakeup time (TWT) parameter information field corresponding to the third device, and a quantity of bytes occupied by a TWT parameter information field corresponding to the second device.
5 . The method according to claim 3 , wherein the third message comprises at least one of: indication information indicating whether a plurality of devices are comprised, or indication information indicating a quantity of devices.
6 . The method according to claim 1 , wherein the first message comprises identifiers of a plurality of channels and a channel hopping start time corresponding to an identifier of each channel, identifiers of the plurality of channels are different from each other, and a plurality of channel hopping start times are different from each other.
7 . The method according to claim 6 , wherein the first message comprises at least two TWT parameter information fields, and each TWT parameter information field comprises an identifier of one channel and a channel hopping start time corresponding to the identifier of the channel.
8 . The method according to claim 7 , wherein the TWT parameter information field further comprises a field that indicates whether a parameter set follows the TWT parameter information field.
9 . The method according to claim 1 , wherein the first message further comprises a channel hopping start time and a channel hopping time interval.
10 . The method according to claim 1 , wherein the first message further comprises a quantity of channel hopping repetitions, and the quantity of channel hopping repetitions indicates a quantity of executions that the channel hopping order is executed repeatedly by the second device.
11 . The method according to claim 10 , wherein the first message further comprises a channel hopping repetition time interval, the channel hopping repetition time interval indicates a time interval between an end time of executing the channel hopping order for the n th time by the second device and a start time of executing the channel hopping order for the (n+1) th time by the second device, and n is an integer greater than or equal to 1.
12 . An apparatus, comprising a memory and a processor, wherein the memory stores executable instructions that when executed by the processor, cause the apparatus to:
send a first message to a second device, wherein the first message indicates to the second device to hop to different channels at different times to send radio signals, frequency bandwidth ranges of any two channels do not completely overlap, a frequency bandwidth range of each channel is within a total frequency bandwidth range supported by the apparatus, and the first message comprises a channel hopping order, the channel hopping order indicating hopping orders for at least two channels;
separately receive the radio signals that are sent by the second device successively on the different channels at the different times, wherein the radio signals sent by the second device are received by the apparatus after being reflected by an intermediate object located between the apparatus and the second device; and
measure state information of the intermediate object based on physical characteristics of the radio signals that are separately received;
wherein the first message further comprises a feedback mode, the feedback mode comprises a feedback type and a type of measurement data;
the feedback type comprises at least one of a timely feedback type or an aggregated feedback type, and the type of measurement data comprises raw measurement data and processed measurement data;
the timely feedback type is used to indicate the second device to feed back to the apparatus a physical characteristic of a radio signal received on a current channel before hopping to a next channel;
the aggregated feedback type is used to indicate the second device to feed back to the apparatus physical characteristics of radio signals received on the plurality of channels after completing all channel hopping based on the first message;
the raw measurement data is used to indicate the second device to feed back to the apparatus a raw physical characteristic of a radio signal received on a channel; and
the processed measurement data is used to indicate the second device to process a physical characteristic of a radio signal received on a channel and feed back the processed physical characteristic to the apparatus.
13 . The apparatus according to claim 12 , wherein when the executable instructions are executed by the processor, the executable instructions further cause the apparatus to:
send a second message to a third device, wherein the second message indicates to the third device to hop to the different channels at different times to send radio signals, and the second device and the third device hop to a same channel at different times;
separately receive the radio signals that are sent by the third device successively on the different channels at the different times, wherein the radio signals sent by the third device are received by the apparatus after being reflected by the intermediate object; and
measure the state information of the intermediate object based on the physical characteristics of the separately received radio signals that are sent by the second device successively on the different channels at the different times, and physical characteristics of the separately received radio signals that are sent by the third device successively on the different channels at the different times.
14 . The apparatus according to claim 13 , wherein when the executable instructions are executed by the processor, the executable instructions further cause the apparatus to:
send a third message to the second device and the third device, wherein the third message comprises the first message and the second message.
15 . The apparatus according to claim 14 , wherein the third message comprises a quantity of bytes occupied by a target wakeup time (TWT) parameter information field corresponding to the third device, and a quantity of bytes occupied by a TWT parameter information field corresponding to the second device.
16 . The apparatus according to claim 14 , wherein the third message comprises at least one of: indication information indicating whether a plurality of devices are comprised, or indication information indicating a quantity of devices.
17 . The apparatus according to claim 12 , wherein the first message comprises identifiers of a plurality of channels and a channel hopping start time corresponding to an identifier of each channel, identifiers of different channels are different from each other, and a plurality of channel hopping start times are different from each other.
18 . The apparatus according to claim 17 , wherein the first message comprises at least two TWT parameter information fields, and each TWT parameter information field comprises an identifier of one channel and a channel hopping start time corresponding to the identifier of the channel.
19 . The apparatus according to claim 18 , wherein the TWT parameter information field further comprises a field indicating whether a parameter set follows the TWT parameter information field.
20 . A non-transitory computer-readable storage medium, wherein the storage medium stores computer instructions, and when the computer instructions are executed by a computer, cause the computer to:
send a first message to a second device, wherein the first message is used to indicate to the second device to hop to different channels at different times to send radio signals, frequency bandwidth ranges of any two channels do not completely overlap, a frequency bandwidth range of each channel is within a total frequency bandwidth range supported by the apparatus, the first message comprises a channel hopping order, the channel hopping order indicating hopping orders for at least two channels;
separately receive the radio signals that are sent by the second device successively on the different channels at the different times, wherein the radio signals sent by the second device reach the apparatus after being reflected by an intermediate object located between the apparatus and the second device; and
measure state information of the intermediate object based on physical characteristics of different radio signals that are separately received;
wherein the first message further comprises a feedback mode, the feedback mode comprises a feedback type and a type of measurement data;
the feedback type comprises at least one of a timely feedback type or an aggregated feedback type, and the type of measurement data comprises raw measurement data and processed measurement data;
the timely feedback type is used to indicate the second device to feed back to the computer a physical characteristic of a radio signal received on a current channel before hopping to a next channel;
the aggregated feedback type is used to indicate the second device to feed back to the computer physical characteristics of radio signals received on the plurality of channels after completing all channel hopping based on the first message;
the raw measurement data is used to indicate the second device to feed back to the computer a raw physical characteristic of a radio signal received on a channel; and
the processed measurement data is used to indicate the second device to process a physical characteristic of a radio signal received on a channel and feed back the processed physical characteristic to the computer.