Method for operation of UWB tag, UWB tag, and storage medium
View Patent ↗A method and an apparatus for operation of an ultra wide band (UWB) tag, a UWB tag, and a storage medium are provided and relate to the field of UWB technology. The method includes the following. A UWB transceiver is controlled to be in a first transceiving state in response to the UWB tag being in a first state, where the first state belongs to a target-state set. The UWB tag is switched to a second state from the first state in response to a state transition event and the UWB transceiver is controlled to be in a second transceiving state, where the second state belongs to the target-state set.
1 . A method for operation of an ultra wide band (UWB) tag that is provided with a UWB transceiver, comprising:
controlling the UWB transceiver to be in a first transceiving state in response to the UWB tag being in a first state, wherein the first state belongs to a target-state set; and
switching the UWB tag to a second state from the first state in response to a state transition event and controlling the UWB transceiver to be in a second transceiving state, wherein the second state belongs to the target-state set;
wherein the target-state set comprises a sleep state, a transmitting state, a waiting state, and a listening state, and controlling the UWB transceiver to be in the first transceiving state in response to the UWB tag being in the first state comprises one of the following:
controlling the UWB transceiver to be in an off state in response to the UWB tag being in the sleep state or the waiting state;
controlling the UWB transceiver to be in a transmission-enabled state in response to the UWB tag being in the transmitting state; and
controlling the UWB transceiver to be in a reception-enabled state in response to the UWB tag being in the listening state.
2 . The method according to claim 1 , wherein switching the UWB tag to the second state from the first state in response to the state transition event comprises:
determining, based on the first state and a state transition relationship, the second state corresponding to the state transition event in response to the state transition event, wherein the state transition relationship is used to represent a transition relationship between states in the target-state set; and
switching the UWB tag to the second state from the first state.
3 . The method according to claim 1 , wherein determining, based on the first state and the state transition relationship, the second state corresponding to the state transition event in response to the state transition event comprises one of the following:
determining, based on the state transition relationship, the listening state as the second state in response to the first state being the sleep state and a sleep duration being reached;
determining, based on the state transition relationship, the sleep state as the second state in response to the first state being the transmitting state and the UWB transceiver completing data frame transmission;
determining, based on the state transition relationship, the listening state as the second state in response to the first state being the waiting state and a waiting duration being reached;
determining, based on the state transition relationship, the transmitting state as the second state in response to the first state being the listening state and a target channel being idle within a listening duration; and
determining, based on the state transition relationship, the waiting state as the second state in response to the first state being the listening state and the target channel being occupied within the listening duration.
4 . The method according to claim 3 , wherein the UWB transceiver is controlled by a finite state machine (FSM), the target-state set is a finite state set corresponding to the FSM, and the FSM is consisted of a register and a combinational logic circuit, wherein the register comprises:
a first register configured to store the sleep duration;
a second register configured to store the listening duration;
a third register configured to store a waiting unit duration, wherein the waiting duration is determined through a random number generated by the combinational logic circuit and the waiting unit duration; and
a fourth register configured to store a transceiver parameter, wherein the transceiver parameter comprises at least one of the target channel, a rate, or a data frame format.
5 . The method according to claim 2 , wherein the target-state set further comprises a first transmitting state, a receiving state, a second transmitting state, a first sleep state, and a second sleep state, and controlling the UWB transceiver to be in the first transceiving state in response to the UWB tag being in the first state further comprises one of the following:
controlling the UWB transceiver to be in a transmission-enabled state in response to the UWB tag being in the first transmitting state or the second transmitting state;
controlling the UWB transceiver to be in a reception-enabled state in response to the UWB tag being in the receiving state; and
controlling the UWB transceiver to be in an off state in response to the UWB tag being in the first sleep state or the second sleep state.
6 . The method according to claim 5 , wherein determining, based on the first state and the state transition relationship, the second state corresponding to the state transition event in response to the state transition event comprises one of the following:
determining, based on the state transition relationship, the receiving state as the second state in response to the first state being the first transmitting state and the UWB transceiver completing data frame transmission;
determining, based on the state transition relationship, the second transmitting state as the second state in response to the first state being the receiving state and the UWB transceiver receiving a data frame transmitted by a terminal device;
determining, based on the state transition relationship, the first sleep state as the second state in response to the first state being the receiving state and the UWB transceiver receiving no data frame transmitted by the terminal device within a timeout duration;
determining, based on the state transition relationship, the second sleep state as the second state in response to the first state being the second transmitting state and the UWB transceiver completing data frame transmission;
determining, based on the state transition relationship, the first transmitting state as the second state in response to the first state being the first sleep state and a first sleep duration being reached; and
determining, based on the state transition relationship, the first transmitting state as the second state in response to the first state being the second sleep state and a second sleep duration being reached, wherein the first sleep duration is greater than the second sleep duration.
7 . The method according to claim 6 , wherein the UWB transceiver is controlled by an FSM, the target-state set is a finite state set corresponding to the FSM, and the FSM is consisted of a register and a combinational logic circuit, wherein the register comprises:
a fifth register configured to store the first sleep duration;
a sixth register configured to store the second sleep duration;
a seventh register configured to store a first idle duration that is a duration required for the terminal device to switch a receiver to a transmitter under the first transmitting state;
an eighth register configured to store a second idle duration that is a duration required for the terminal device to switch the transmitter to the receiver under the receiving state;
a ninth register configured to store the timeout duration; and
a tenth register configured to store a transceiver parameter, wherein the transceiver parameter comprises at least one of a target channel, a rate, or a data frame format.
8 . The method according to claim 1 , wherein the UWB transceiver is controlled by a micro controller unit (MCU) or an FSM.
9 . The method according to claim 1 , wherein the UWB tag has at least two operation modes, different operation modes correspond to different target-state sets, and the method further comprises:
performing operation-mode switching in response to an operation-mode switching instruction, wherein the operation-mode switching instruction is triggered though a physical key on the UWB tag.
10 . The method according to claim 9 , wherein the UWB transceiver is controlled by an FSM, the target-state set is a finite state set corresponding to the FSM, the UWB tag is provided with at least two FSMs, different FSMs correspond to different operation modes of the UWB tag, different FSMs correspond to different finite state sets, and performing operation-mode switching in response to the operation-mode switching instruction comprises:
performing FSM switching in response to the operation-mode switching instruction.
11 . The method according to claim 8 , wherein the UWB tag has a first operation mode and a second operation mode, wherein
under the first operation mode, the UWB tag periodically transmits a data frame, to make a terminal device determine, according to the data frame, an internet of things (IoT) device represented by the UWB tag, and control the IoT device; and
under the second operation mode, the UWB tag exchanges a data frame with the terminal device, to make the terminal device determine a distance and an angle between the terminal device and the UWB tag according to the data frame exchanged.
12 . An ultra wide band (UWB) tag comprising a UWB transceiver and a controller, wherein:
the UWB transceiver is electrically connected to the controller;
the UWB transceiver is configured to transmit/receive a data frame on a channel; and
the controller is configured to:
control the UWB transceiver to be in a first transceiving state in response to the UWB tag being in a first state, wherein the first state belongs to a target-state set; and
switch the UWB tag to a second state from the first state in response to a state transition event and control the UWB transceiver to be in a second transceiving state, wherein the second state belongs to the target-state set;
wherein the target-state set comprises a first transmitting state, a receiving state, a second transmitting state, a first sleep state, and a second sleep state, and in terms of controlling the UWB transceiver to be in the first transceiving state in response to the UWB tag being in the first state, the controller is configured to perform one of the following:
controlling the UWB transceiver to be in a transmission-enabled state in response to the UWB tag being in the first transmitting state or the second transmitting state;
controlling the UWB transceiver to be in a reception-enabled state in response to the UWB tag being in the receiving state; and
controlling the UWB transceiver to be in an off state in response to the UWB tag being in the first sleep state or the second sleep state.
13 . The UWB tag according to claim 12 , wherein the controller is a micro controller unit (MCU) or a finite state machine (FSM).
14 . The UWB tag according to claim 12 , wherein in terms of switching the UWB tag to the second state from the first state in response to the state transition event, the controller is configured to:
determine, based on the first state and a state transition relationship, the second state corresponding to the state transition event in response to the state transition event, wherein the state transition relationship is used to represent a transition relationship between states in the target-state set; and
switch the UWB tag to the second state from the first state.
15 . The UWB tag according to claim 14 , wherein the target-state set further comprises a sleep state, a transmitting state, a waiting state, and a listening state, and in terms of controlling the UWB transceiver to be in the first transceiving state in response to the UWB tag being in the first state, the controller is further configured to performing one of the following:
controlling the UWB transceiver to be in an off state in response to the UWB tag being in the sleep state or the waiting state;
controlling the UWB transceiver to be in a transmission-enabled state in response to the UWB tag being in the transmitting state; and
controlling the UWB transceiver to be in a reception-enabled state in response to the UWB tag being in the listening state.
16 . A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores at least one program code, and the program code is executed by a finite state machine (FSM) to:
control a UWB transceiver to be in a first transceiving state in response to a UWB tag being in a first state, wherein the first state belongs to a target-state set; and
switch the UWB tag to a second state from the first state in response to a state transition event and controlling the UWB transceiver to be in a second transceiving state, wherein the second state belongs to the target-state set;
wherein the UWB tag has a first operation mode and a second operation mode, wherein
the program code is executed by the FSM to further control the UWB tag to periodically transmit a data frame under the first operation mode, to make a terminal device determine, according to the data frame, an internet of things (IoT) device represented by the UWB tag, and control the IoT device; and
the program code is executed by the FSM to further control the UWB tag to exchange a data frame with the terminal device under the second operation mode, to make the terminal device determine a distance and an angle between the terminal device and the UWB tag according to the data frame exchanged.
17 . The non-transitory computer-readable storage medium according to claim 16 , wherein the UWB tag has at least two operation modes, different operation modes correspond to different target-state sets, and the program code is further executed by the FSM to:
perform operation-mode switching in response to an operation-mode switching instruction, wherein the operation-mode switching instruction is triggered though a physical key on the UWB tag.
18 . The non-transitory computer-readable storage medium according to claim 17 , wherein the UWB transceiver is controlled by the FSM, the target-state set is a finite state set corresponding to the FSM, the UWB tag is provided with at least two FSMs, different FSMs correspond to different operation modes of the UWB tag, different FSMs correspond to different finite state sets, and in terms of performing operation-mode switching in response to the operation-mode switching instruction, the program code is executed by the FSM to:
perform FSM switching in response to the operation-mode switching instruction.