Wireless communication device and wireless communication system
By synchronizing Bluetooth mesh devices to operate in active and sleep periods using a common schedule, power consumption in Bluetooth mesh networks is reduced while maintaining communication reliability.
Patent Information
- Application Number
- JP2021089908
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-05-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-05-28
AI Technical Summary
In Bluetooth mesh networks, low power nodes without relay functions face increased power consumption due to the need to constantly be in a state ready to receive asynchronous packets, leading to higher network power consumption.
Implement a wireless communication device with an oscillator, counter, memory, power controller, and synchronous controller to manage active and inactive periods based on a common schedule, using count values to synchronize communication and reduce power consumption.
This approach reduces power consumption in Bluetooth mesh networks by synchronizing devices to operate in active and sleep periods, thereby minimizing unnecessary power usage and maintaining communication reliability.
Smart Images

Figure 0007554709000005 
Figure 0007554709000011 
Figure 0007554709000018
Abstract
Description
[Technical field]
[0001] The present invention relates to a wireless communication device and a wireless communication system. [Background technology]
[0002] Patent Document 1 discloses a technology for covering a wider communication range with a smaller number of channels in a wireless communication device compatible with the "Bluetooth (registered trademark) mesh" standard. Specifically, the wireless communication device has an advertisement communication control unit that performs broadcast communication with a plurality of unspecified other devices, and a connection communication control unit that performs one-to-one communication with specific other devices. The connection communication control unit is used to transmit and receive messages with other devices in a connection cluster that can communicate with the wireless connection communication control unit. On the other hand, the advertisement communication control unit of a device that is permitted in the connection cluster is used to transmit and receive messages with other devices outside the connection cluster. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-195062 A Summary of the Invention [Problem to be solved by the invention]
[0004] For example, a wireless communication device and a wireless communication system that comply with the "Bluetooth mesh" (abbreviated as BT mesh in the specification) standard as described in Patent Document 1 are known. The BT mesh standard is a mesh network standard established by the Bluetooth SIG (Special Interest Group). In the BT mesh standard, the basic operation is to communicate packets, in other words, messages, using asynchronous flooding, in other words, broadcasting. The wireless communication devices that constitute the BT mesh are called nodes.
[0005] Here, in the BT mesh, for example, some nodes can be defined as low-power nodes that do not have a relay function, i.e., a function to relay packets. Since the low-power nodes can determine the packet reception period by themselves, they can be in a sleep state except for this reception period. On the other hand, each node other than the low-power nodes receives packets that are generated asynchronously, so it is necessary to be in a standby state in which packets can be received at all times. For this reason, in the BT mesh, there was a risk that the power consumption would increase in the entire network.
[0006] Other objects and novel features will become apparent from the description of this specification and the accompanying drawings. [Means for solving the problem]
[0007] A wireless communication device according to an embodiment includes an oscillator that generates a clock signal, a counter that sequentially updates a count value in response to the clock signal, a memory, a wireless communication interface, a power controller, and a synchronization controller. The memory holds schedule data that defines an active period, which is a range of count values that permits communication of packets with the outside, and an inactive period, which is a range of count values that prohibits communication of packets with the outside. The wireless communication interface communicates packets with the outside during the active period obtained from the schedule data and the count value of the counter. The power controller cuts off power supply to the wireless communication interface during the inactive period obtained from the schedule data and the count value of the counter. The synchronization controller updates the count value of the counter based on a synchronization data value stored in the received packet during a reception operation to receive a packet from the outside, and determines a synchronization data value based on the updated count value during a transmission operation to transmit a packet to the outside, and stores the determined synchronization data value in the packet to be transmitted. Effect of the Invention
[0008] According to the embodiment, it is possible to reduce power consumption in a wireless communication device and a wireless communication system. [Brief description of the drawings]
[0009] [Figure 1] 1 is a schematic diagram illustrating a configuration example of a wireless communication system according to a first embodiment. [Diagram 2] 1 is a schematic diagram illustrating an example of a communication method used in a wireless communication system according to a first embodiment. [Diagram 3] 3 is a diagram illustrating an example of a time synchronization method used in the communication system of FIG. 2. [Figure 4] 1 is a schematic diagram illustrating a configuration example of a wireless communication device according to a first embodiment of the present invention. [Diagram 5] 5 is a diagram illustrating an example of a role on a network that is played by the wireless communication device of FIG. 4. [Figure 6] 4 is a timing chart illustrating a detailed example of schedule data in the wireless communication system of the first embodiment. [Figure 7] 4 is a timing chart illustrating an example of an operation accompanying initial synchronization in the wireless communication system according to the first embodiment. [Figure 8] 4 is a timing chart illustrating an example of an operation involved in maintaining synchronization in the wireless communication system according to the first embodiment. [Figure 9] 2 is a schematic diagram showing an example of a packet format in the wireless communication system of the first embodiment. FIG. [Figure 10] 4 is a timing chart showing an example of an operation of a synchronization method using a count value in the wireless communication system of the first embodiment. [Figure 11A] 4 is a timing chart illustrating an example of a processing method associated with a synchronization data value in the wireless communication system according to the first embodiment. [Figure 11B] 11B is a timing chart illustrating an example of a processing method different from that in FIG. 11A. [Figure 12] 11 is a timing chart showing an example of an actual communication valid period in the wireless communication system according to the second embodiment. [Figure 13] 13 is a timing chart illustrating an example of a method for extending a valid communication period in a wireless communication system according to a second embodiment. [Figure 14] 13 is a timing chart illustrating an example of a method for extending a valid communication period in a wireless communication system according to a second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] In the following embodiments, when necessary for convenience, the description will be divided into multiple sections or embodiments, but unless otherwise specified, they are not unrelated to each other, and one is a partial or complete modification, detail, supplementary explanation, etc. of the other. Furthermore, in the following embodiments, when the number of elements, etc. (including the number, numerical value, amount, range, etc.) is mentioned, it is not limited to that specific number, and may be more or less than the specific number, unless otherwise specified or clearly limited in principle to a specific number.
[0011] Furthermore, in the following embodiments, the components (including element steps, etc.) are not necessarily essential unless otherwise specified or considered to be obviously essential in principle. Similarly, in the following embodiments, when referring to the shape, positional relationship, etc. of components, etc., it is intended to include those that are substantially similar or similar to the shape, etc., unless otherwise specified or considered to be obviously not essential in principle. The same applies to the above numerical values and ranges.
[0012] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. In all the drawings for explaining the embodiment, the same members are generally designated by the same reference numerals, and the repeated description will be omitted.
[0013] (Embodiment 1) <Overview of wireless communication system> Fig. 1 is a schematic diagram showing a configuration example of a wireless communication system according to a first embodiment. Fig. 1 shows a network configuration example of a BT mesh as an example of a wireless communication system. In the BT mesh, it is possible to extend the communication distance by sequentially relaying received packets by flooding. Fig. 1 shows a plurality of nodes A to T. Each of the nodes A to T is a wireless communication device that complies with the BT mesh standard.
[0014] Nodes A to T include normal nodes A to H, N, T, relay nodes Q, R, S, friend nodes O and P, and low power nodes I to M. Normal nodes A to H have the functions of generating packets including a specific destination and transmitting the generated packets, and receiving packets addressed to the node itself. Relay nodes Q, R, S have the function of transmitting received packets to multiple other nodes by flooding.
[0015] The friend nodes O, P have the function of temporarily holding packets destined for the low power nodes I to M. The low power nodes I to M intermittently inquire of the friend nodes O, P as to whether they are holding packets destined for the node itself, and if they are holding the packets, they receive the packets from the friend nodes O, P. For this reason, the low power nodes I to M may be in an active state when making inquiries, and in an inactive state, in other words, in a sleep state, during other periods. The active state is an operating state with normal power, and the sleep state is an operating state with reduced power.
[0016] As a specific example of the operation in FIG. 1, for example, the normal node T generates a packet addressed to the low power node L and transmits the packet to the relay node S using a communication means called a GATT bearer. The GATT bearer is a one-to-one communication means. The relay node S relays the packet from the normal node T by flooding using a communication means called an ADV bearer. The ADV bearer is a one-to-many communication means. The friend node O receives and holds the packet addressed to the low power node L that was relayed by the relay node S. Then, in response to an inquiry from the low power node L, the friend node O transmits the held packet to the low power node L.
[0017] In such a wireless communication system, the normal nodes A to H, N, T, relay nodes Q, R, S, and friend nodes O and P, excluding the low power nodes I to M, usually receive packets that are generated asynchronously, so they need to be in a standby state to receive packets at all times. As a result, the power consumption of the entire network may increase. Therefore, it is beneficial to use a communication method according to the embodiment described later.
[0018] <Outline of communication method> Fig. 2 is a schematic diagram for explaining an example of a communication method used in the wireless communication system of the first embodiment. In the wireless communication system of the first embodiment, as shown in Fig. 2, all wireless communication devices (nodes) ND1 to ND3 participating in the network operate in synchronization with a predetermined common schedule. In the example of the schedule in Fig. 2, an active period Ta and a sleep period (inactive period) Ts are included in a recurring cycle Tc.
[0019] The multiple wireless communication devices ND1 to ND3 communicate, i.e., transmit or receive, packets at any timing during the active period Ta. Also, the multiple wireless communication devices ND1 to ND3 wait to receive packets during periods during the active period Ta when no packets are being transmitted. Meanwhile, the multiple wireless communication devices ND1 to ND3 do not communicate packets during the sleep period Ts and operate in a predetermined power saving mode. In this specification, the multiple wireless communication devices (nodes) ND1 to ND3 are collectively referred to as wireless communication device (node) ND.
[0020] In this way, the wireless communication devices ND1 to ND3 synchronize their time in order to operate in synchronization with a common schedule. In detail, each of the wireless communication devices ND1 to ND3 manages time, for example, by a count value of a counter provided in the device itself. In this case, the wireless communication devices ND1 to ND3 may synchronize their count values as appropriate. When the count value is used, the active period Ta is represented by a range of count values, and is a period during which packet communication with the outside is permitted. On the other hand, the sleep period Ts is represented by a range of count values, and is a period during which packet communication with the outside is prohibited.
[0021] Fig. 3 is a diagram for explaining an example of a time synchronization method used in the communication system of Fig. 2. In order to synchronize time with other wireless communication devices ND, each wireless communication device ND stores a count value, which is time information, in a packet to be transmitted to the other wireless communication devices ND. Meanwhile, the other wireless communication devices ND that receive the packet update the count value of their own counters based on the count value stored in the received packet.
[0022] In the example of Fig. 3, when wireless communication device ND1 which starts communication prepares a packet to be transmitted, it stores its own count value in the packet (TX) and transmits it. Then, wireless communication device ND2 which relays the packet receives the packet (RX) from wireless communication device ND1 and updates its own count value with the count value stored in the received packet. This makes it possible to synchronize the count values, in other words, the times, between wireless communication device ND1 and wireless communication device ND2.
[0023] In detail, for example, the wireless communication device ND1 prepares a packet at time t0, and after a delay time Δtd, completes transmission of the packet at time t1. The delay time Δtd is the delay time required for the transmission process of this packet, and is, for example, the time from the start of packet preparation to the completion of packet transmission. Meanwhile, the wireless communication device ND2 completes packet reception at time t1, and synchronizes the count value at that time. Therefore, the ideal count value stored in the packet from the wireless communication device ND1 is the count value at time t1.
[0024] If the wireless communication device ND1 stores in the packet a count value at time t0, which is the time when the packet is prepared, an error of delay time Δtd may occur with respect to the ideal value of time t1. Therefore, it is preferable that the wireless communication device ND1 predetermines this delay time Δtd as a predicted delay time, and stores in the packet at time t0 a count value that reflects the predicted delay time, that is, a count value that is closer to time t1. However, if the delay time Δtd is sufficiently short, it is not necessarily necessary to reflect the predicted delay time.
[0025] The wireless communication device ND2 updates its own count value based on the count value stored in the packet (RX) from the wireless communication device ND1, and then transmits the packet to another wireless communication device (e.g., ND3). At this time, a delay time Δtd similar to that of the wireless communication device ND1 may occur. Therefore, when the delay time Δtd is a problem, it is desirable for the wireless communication device ND2 to reflect the predicted delay time in the updated count value, as in the case of the wireless communication device ND1, and to store the count value reflecting the predicted delay time, i.e., the count value closest to time t2, in the packet to be transmitted (TX). In other words, it is desirable for the wireless communication device ND2 to rewrite the count value stored in the packet from the wireless communication device ND1.
[0026] Similarly, every time a packet is relayed to a downstream device, time synchronization is performed between the transmitting device and the receiving device. As a result, communication control based on the active period Ta and the sleep period Ts as shown in FIG. 2 can be performed with high accuracy. That is, by preventing packet loss due to synchronization deviation, it is possible to improve communication reliability while reducing power consumption by the sleep period Ts. Note that, for example, here, the wireless communication device ND1 transmits a count value corresponding to time t1, but instead, the wireless communication device ND2 can receive a count value at time t0 from the wireless communication device ND1 and predict a count value corresponding to time t1.
[0027] <Overview of wireless communication device> Fig. 4 is a schematic diagram showing a configuration example of a wireless communication device according to the first embodiment of the present invention. The wireless communication device ND shown in Fig. 4 includes an arithmetic processing unit 10, an oscillator 11, a counter 12, a memory 13, a wireless communication interface 14, an antenna 15, and a power supply controller 16. The arithmetic processing unit 10 is typically realized by a processor that executes a program stored in the memory 13. However, the arithmetic processing unit 10 may be realized by an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or the like. The arithmetic processing unit 10 performs predetermined processing according to the role of the wireless communication device ND, in addition to, for example, packet transmission / reception control and packet base bending processing.
[0028] The oscillator 11 is composed of, for example, a PLL (Phase Locked Loop) circuit or the like, and generates a clock signal CK. The counter 12 sequentially updates a count value t[x] in response to the clock signal CK from the oscillator 11. The counter 12 is capable of updating the count value t[x] held in a register or the like with the count value t[y] from the arithmetic processing unit 10. The memory 13 is composed of, for example, a combination of a RAM (Random Access Memory) and a non-volatile memory. The memory 13 holds schedule data 21 that defines an active period Ta and a sleep period (inactive period) Ts as shown in FIG. 2.
[0029] The wireless communication interface 14 is composed of an RFIC (Radio Frequency Integrated Circuit) or the like, and performs wireless communication via the antenna 15. The wireless communication interface 14 communicates packets with the outside, i.e., transmits or receives packets, during an active period Ta obtained from the schedule data 21 and the count value t[x] of the counter 12. In detail, for example, the calculation processing unit 10 determines the active period Ta based on the schedule data 21 and the count value t[x], and communicates packets via the wireless communication interface 14 during this period.
[0030] The power supply controller 16 is composed of, for example, a power supply management IC or the like, and manages the power supply of the entire wireless communication device ND. As one of its functions, the power supply controller 16 cuts off the power supply to the wireless communication interface 14 during a sleep period Ts obtained from the schedule data 21 and the count value t[x]. In detail, for example, the calculation processing unit 10 may determine the sleep period Ts based on the schedule data 21 and the count value t[x], and instruct this period to the power supply controller 16. This makes it possible to reduce power consumption in the wireless communication interface 14, which is a unit that consumes particularly large amounts of power.
[0031] Here, the arithmetic processing unit 10 has a synchronization controller 20. When the synchronization controller 20 operates as a relay that transmits a packet received from the outside to the outside, for example, like the wireless communication device ND2 in Fig. 3, the synchronization controller 20 performs the following process. That is, during a receiving operation of receiving a packet from the outside, the synchronization controller 20 determines a count value t[y] to be updated based on a synchronization data value to be stored in the received packet, here a count value, and updates the count value t[x] of the counter 12 with the count value t[y]. Then, during a transmitting operation of transmitting a packet to the outside, the synchronization controller 20 determines a synchronization data value based on the updated count value t[y], and stores the determined synchronization data value in the packet to be transmitted.
[0032] Moreover, when the synchronization controller 20 operates as a target that receives packets addressed to the device from the outside, the synchronization controller 20 performs only the above-mentioned process during reception. On the other hand, when the synchronization controller 20 operates as an initiator that transmits packets generated by the device to the outside, for example, as in the wireless communication device ND1 in Fig. 3, the synchronization controller 20 performs the following process. That is, during transmission, the synchronization controller 20 determines a synchronization data value based on the count value t[x] of the counter 12 of the device, and stores the determined synchronization data value in the packet to be transmitted.
[0033] The wireless communication device ND in Fig. 4 is particularly useful when applied to each node in the BT mesh wireless communication system shown in Fig. 1. However, the application of the wireless communication device ND is not limited to the BT mesh, and may be other wireless communication systems, in other words, wireless communication networks. In this case, particularly from the viewpoint of time synchronization, it is preferable to apply the device to a network using a flooding method. Also, although the specification is premised on application to a wireless communication network, the communication method of the first embodiment may also be applied to a wired communication network in some cases.
[0034] <Communication method details> [Node network role] Fig. 5 is a diagram for explaining an example of the roles on a network played by the wireless communication device of Fig. 4. In Fig. 5, each of a plurality of wireless communication devices (nodes) ND1 to ND3 plays one of the roles of an initiator INI, a relay RLY, or a target TGT. The initiator INI plays the role of being the starting point of communication. The relay RLY plays the role of relaying packets. The target TGT plays the role of being the end point of communication.
[0035] The role of each node ND in the network is not fixed and can be changed as appropriate. In the example of Fig. 5, in a certain active period Ta, the nodes ND1, ND2, and ND3 play the roles of relay RLY, initiator INI, and target TGT, respectively. On the other hand, when a role change is made in a certain active period Ta, in the subsequent active period Ta, the nodes ND1, ND2, and ND3 play the roles of initiator INI, target TGT, and relay RLY, respectively.
[0036] [How to set schedule data] 2 and 4 for multiple nodes ND, the following methods can be mentioned, for example. As a first method, a system administrator stores the common schedule data 21 in the memory 13 of multiple nodes ND in advance. As a second method, a provisioner notifies the target node ND of the schedule data 21 when carrying out a procedure called provisioning for making the target node ND participate in the BT mesh.
[0037] As a third method, a method of dynamically changing and sharing the common schedule data 21 in the entire BT mesh based on a predetermined procedure can be mentioned. Specifically, a method can be mentioned in which a node ND that wants to change the schedule data 21 transmits the changed common schedule data 21 to other nodes ND using the BT mesh. The first to third methods can be used in combination as appropriate.
[0038] [Schedule data details] Fig. 6 is a timing chart for explaining a detailed example of schedule data in the wireless communication system of the first embodiment. As described above, in the schedule data 21, an active period Ta and a sleep period (inactive period) Ts are determined by a count value. In the example of Fig. 6, the counter 12 cyclically increments the count value t[x] by +1 in the range of 0 to n in response to the clock signal CK. In the schedule data 21, the active period Ta is determined to be in the range of count value t[x] from 0 to m, and the sleep period Ts is determined to be in the range of count value t[x] from "m+1" to n. In this case, the schedule data 21 can be appropriately changed depending on the values of m and n.
[0039] Each node ND distinguishes between an active period Ta and a sleep period Ts based on the schedule data 21 and the count value t[x] of the counter 12. Then, each node ND communicates packets during the active period Ta. On the other hand, each node ND does not communicate packets during the sleep period Ts, and operates in a power saving mode by cutting off the power supply to the wireless communication interface 14.
[0040] [Initial synchronization behavior] Fig. 7 is a timing chart for explaining an example of operation accompanying initial synchronization in the wireless communication system of the first embodiment. In Fig. 7, all nodes ND1 and ND2 operate in an active period Ta1 after a system reset. In the active period Ta1, the transmitting node ND1 transmits a first packet PK1a, and the receiving node ND2 receives the first packet PK1a, thereby establishing synchronization between the nodes ND1 and ND2 (step S101).
[0041] All nodes ND1 and ND2 can communicate packets PK2a at any timing during an active period Ta2 after synchronization is established (step S102). Also, during each active period after synchronization is established, packet communication does not always need to be performed, and there may be an active period Ta3 during which packet communication is not performed (step S103).
[0042] [Keeping in sync] Fig. 8 is a timing chart for explaining an example of an operation associated with maintaining synchronization in the wireless communication system of the first embodiment. For example, since the clock signal CK from the oscillator 11 in Fig. 4 has a deviation for each node ND, if a period of time continues during which no packet is transmitted or received, a synchronization error, that is, a deviation in the count value t[x], may occur. If this synchronization error becomes excessive, there is a risk that normal packet communication between the nodes ND may become difficult.
[0043] Therefore, it is desirable to set a maximum transmission interval, for example, in the initiator INI described in Fig. 5. When there is no packet to be transmitted, the node ND1 serving as the initiator INI transmits a dummy packet PKd, for example, so as not to exceed the maximum transmission interval (step S200). By periodically re-establishing synchronization in this manner, each of the nodes ND1 and ND2 can maintain synchronization.
[0044] [Packet format] 9 is a schematic diagram showing an example of a packet format in the wireless communication system of the first embodiment. A conventional packet used in the BT mesh standard, in other words, a message, includes a header field 25 including a source address, a destination address (DST) field 26, a "Transport PDU (Protocol Data Unit)" field 27, and a MIC (Message Integrity Check) field 28.
[0045] In the BT mesh standard, the "Upper Transport Access PDU" encrypted at the "Upper Transport" layer is divided at the "Lower Transport" layer so that it fits into one packet, and the divided PDU becomes the "Transport PDU." The "Transport PDU" is encrypted at the "Network" layer together with the destination address (DST). The MIC field 28 is a field for checking whether the PDU has been correctly encrypted.
[0046] Here, the packet used in the first embodiment uses the conventional packet format as is, and a field 27a for storing a synchronization data value, here a count value, is provided in the "Transport PDU" field 27. In this example, the size of the field 27a is 4 octets (32 bits). Accordingly, the conventional "Transport PDU" field 27 of a maximum of 128 octets is used as a "Transport PDU" field 27b of a maximum of 124 octets. Each node ND stores a synchronization data value in the field 27a during a transmission operation, and acquires the synchronization data value stored in the field 27a during a reception operation.
[0047] [Synchronization method using count values (1)] 10 is a timing chart showing an example of the operation of a synchronization method using count values in the wireless communication system of the first embodiment. In this example, all nodes ND1 to ND3 start from a state before synchronization begins. In step S301, node ND1 transmits a packet storing a synchronization data value (count value) of "101". Nodes ND2 and ND3 that receive the packet from node ND1 update their own count values with the synchronization data value "101" stored in the packet, thereby synchronizing with node ND1.
[0048] After that, after a certain period of time has passed, an error may occur in the count values of the nodes ND1 to ND3. In step S302, in a state in which this error occurs, the node ND3 transmits a packet storing a synchronization data value of "507". The node ND2, which has received the packet from the node ND3, updates its own count value, which would otherwise be "506", with the synchronization data value "507" stored in the received packet, thereby synchronizing with the node ND3. Similarly, the node ND1, which has received the packet from the node ND3, updates its own count value, which would otherwise be "508", with the synchronization data value "507" stored in the received packet, thereby synchronizing with the node ND3.
[0049] The synchronization controller 20 of each of the nodes ND1 to ND3 may determine the synchronization data value to be stored in the packet to be transmitted using a difference value from a predetermined reference count value, instead of the count value itself. As a specific example, the synchronization controller 20 may determine the synchronization data value as a difference value from the reference count value, for example, using a count value of m / 2 as the reference count value in FIG. 6. As a result, it becomes possible to narrow the possible range of the synchronization data value by about half, and thus to reduce the size of the field 27a shown in FIG. 9.
[0050] [Synchronized data value details] As described in FIG. 3, the synchronization data value may be a count value that does not reflect the predicted delay time, and preferably may be a count value that reflects the predicted delay time. Here, a detailed description will be given of a case where a count value that reflects the predicted delay time is used. FIG. 11A is a timing chart for explaining an example of a processing method associated with the synchronization data value in the wireless communication system of the first embodiment. FIG. 11B is a timing chart for explaining an example of a processing method different from that in FIG. 11A.
[0051] In Fig. 11A, synchronization is established based on the count value of the node ND1 operating as the initiator INI. First, the node ND1 stores a synchronization data value t[1]', which is determined by reflecting the predicted delay time Δtd[0] required for the packet transmission process at the node itself, in a packet to be transmitted (TX) and transmits the packet to the subsequent stage.
[0052] Specifically, node ND1 determines a synchronization data value t[1]' that reflects the predicted delay time Δtd[0] by adding the predicted delay time Δtd[0] to the count value t[0] of its own node at time t0 when the packet, specifically field 27a in Fig. 9, is prepared. The predicted delay time Δtd[0] is, for example, the time from time t0 when the packet is prepared to time t1 when the packet transmission is completed. As a result, the synchronization data value t[1]', i.e., the count value, becomes approximately equal to the count value t[1] at time t1.
[0053] Node ND2, which operates as relay RLY, completes reception of the packet (RX) at time t1 when node ND1 completes transmission of the packet (TX). Then, node ND2 updates its own count value with the synchronization data value t[1]' stored in the received packet (RX) at time t1. As a result, the count value t[1]' of node ND2 is synchronized with the count value t[1] of node ND1.
[0054] After that, the node ND2 determines the synchronization data value t[2]' by reflecting the predicted delay time Δtd[1] required for the packet transmission process at the node in the updated count value t[1]'. In detail, the node ND2 determines the synchronization data value t[2]' by adding the predicted delay time Δtd[1] to the updated count value t[1]'. The predicted delay time Δtd[1] is, for example, the time from the time t1 when the reception of the packet is completed to the time t2 when the transmission of the received packet, i.e., the relay, is completed. As a result, the synchronization data value t[2]', i.e., the count value, becomes approximately equal to the count value t[2] at the time t2. Then, the node ND2 stores the determined synchronization data value t[2]' in a packet to be transmitted (TX) and transmits it to the subsequent stage.
[0055] Thereafter, packets are sequentially relayed in the same manner, so that the count value of a node (e.g., ND3) that receives a packet from node ND2, for example, is synchronized with the count value of node ND2, and further with the count value of node ND1. And finally, the count value of node NDn that operates as a target TGT is synchronized with the count values of all the nodes ND in the previous stage. As a result, highly accurate synchronization that reflects the delay time required for transmission processing can be realized.
[0056] In Fig. 11B, as in Fig. 11A, synchronization is established based on the count value of node ND1 acting as initiator INI. However, unlike Fig. 11A, in Fig. 11B, the predicted delay time is reflected not in the transmission operation but in the reception operation. The following description focuses on the differences from Fig. 11A.
[0057] First, unlike the case of FIG. 11A, node ND1 determines its own node's count value t[0] at time t0 when the packet is prepared as a synchronization data value and stores it in the packet to be transmitted (TX). Then, node ND1 completes packet transmission at time t1, as in the case of FIG. 11A. Meanwhile, node ND2 changes the synchronization data value t[0] stored in the packet received from node ND1 (RX) by reflecting the predicted delay time Δtd[0] required for packet transmission processing at the transmitting node ND1. Then, node ND2 updates its own node's count value with the changed synchronization data value.
[0058] In detail, the node ND2 changes the synchronization data value from t[0] to t[1]' by adding the predicted delay time Δtd[0] to the synchronization data value t[0] stored in the received packet (RX). The changed synchronization data value t[1]', i.e., the count value, becomes almost equal to the count value t[1] at time t1, as in the case of FIG. 11A. Then, the node ND2 updates the count value of its own node with the changed synchronization data value t[1]'. As a result, the count value t[1]' of the node ND2 is synchronized with the count value t[1] of the node ND1.
[0059] After that, the node ND2 stores the changed synchronization data value t[1]' in the packet to be transmitted (TX) and transmits it to the subsequent stage. In the same manner, the packet is sequentially relayed toward the node NDn acting as the target TGT. At that time, the receiving node ND reflects the predicted delay time in the same manner, thereby realizing highly accurate synchronization that reflects the delay time required for the transmission process.
[0060] The synchronization controller 20 of each node ND can determine the predicted delay times Δtd[0], Δtd[1], ... shown in Figs. 11A and 11B in various ways. For example, the synchronization controller 20 may determine the predicted delay time to a predetermined fixed value. In detail, a method of determining a fixed value common to the entire wireless communication system, or a method of determining a fixed value specific to each node may be used. The magnitude of the fixed value is determined, for example, based on simulation, actual measurement, or the like. The synchronization controller 20 may also determine the predicted delay time to a variable value according to the packet length or a variable value according to the operating state of the node ND. Regarding the former, the synchronization controller 20 may determine a variable value that increases with a predetermined proportional coefficient as the packet length increases, for example.
[0061] <Major Effects of the First Embodiment> As described above, in the method of the first embodiment, communication control is performed based on a schedule including a sleep period, and a mechanism for time synchronization is provided. As a result, it is typically possible to realize a reduction in power consumption, and a beneficial effect is obtained, particularly in a mesh network such as a BT mesh. For example, in the BT mesh of FIG. 1, the power consumption can be reduced not only in the low power nodes I to M, but also in the normal nodes A to H, N, T and the relay nodes Q, R, S.
[0062] In addition, regarding time synchronization, instead of using a method that implements time synchronization by setting up a single management node that manages the time of the entire network, the system uses a method that implements time synchronization using normal communications between multiple nodes, which increases resistance to failures and eliminates the need to newly define packets dedicated to synchronization used by the management node.
[0063] Furthermore, because the schedule can be set arbitrarily, it is possible to appropriately level out the traffic and power consumption generated throughout the network. In detail, for example, it is possible to divide the nodes included in the entire network into two segments, and set a schedule so that when one segment is in an active period, the other segment is in a sleep period.
[0064] (Embodiment 2) <About communication validity period> Fig. 12 is a timing chart showing an example of an actual communication valid period in the wireless communication system of the second embodiment. For example, even if synchronization is established using a communication method such as that shown in Fig. 11A, etc., due to an error in the predicted delay time reflected in the synchronization data value, an error in the counter 12, etc., a difference in the time of the active period may actually occur between the nodes ND as shown in Fig. 12. As a result, a period occurs in which some, but not all, of the nodes ND are active, and this period becomes communication unavailable periods Ti1, Ti2.
[0065] On the other hand, in order to avoid unnecessary packet transmission during communication disabled periods Ti1 and Ti2, it is necessary to provide a margin period that takes into account the error of the predicted delay time within the active period of each of the nodes ND1 to ND3. This margin period is, for example, set as reception limited periods Tr1 and Tr2 in which transmission is prohibited and only reception is permitted. The period obtained by excluding the reception limited periods Tr1 and Tr2 from the active period is set as the transmission / reception enabled period Trx for each of the nodes ND1 to ND3. The communication valid period Tv is the period during which packets can actually be transmitted and received, and is set by the logical product of the transmission / reception enabled periods Trx of the multiple nodes ND1 to ND3.
[0066] The reception limited periods Tr1 and Tr2 are set to a sufficient period for each node ND1 to ND3 according to the system requirements. However, the greater the proportion of the reception limited periods Tr1 and Tr2 in the active period, the lower the communication efficiency becomes, and the less efficient it becomes in terms of power consumption. For this reason, it is desirable to shorten the reception limited periods Tr1 and Tr2 and extend the communication valid period Tv.
[0067] <How to extend the valid communication period> 13 and 14 are timing charts for explaining an example of a method for extending the communication valid period in the wireless communication system of the second embodiment. In general, the synchronization controller 20 in FIG. 4 measures the reception interval Δt[n] based on the count value t[n-1] at the time when the packet PKy was received in the previous active period and the count value t[n] at the time when the packet PKx was received in the current active period. The synchronization controller 20 also calculates the reception interval Δt[n]' recognized by the other node NDx that transmitted the packet PKx based on the count value t[n-1] and the synchronization data value t[n]' stored in the packet PKx.
[0068] Then, the synchronization controller 20 corrects the schedule data 21 so that the error between the reception interval Δt[n] based on the measurement of the node ND itself and the reception interval Δt[n]' based on the recognition of the other node NDx approaches zero. This makes it possible to reduce the actual schedule error between multiple nodes ND. As a result, it becomes possible to set the reception limited periods Tr1 and Tr2 to be short, and to extend the communication valid period Tv.
[0069] In detail, in Fig. 13, the time when the node ND receives a packet PKx from another node NDx is t[n], and the time when the node ND receives a packet PKy from another node NDy is t[n-1]. The other node NDy and the other node NDx may be the same node. The time of the node ND is equivalent to the count value of the node ND.
[0070] The synchronization data value (count value) stored in packet PKx is set to t[n]'. The interval between when node ND receives packet PKy at time t[n-1] and when node ND receives packet PKx at time t[n] is set to Δt[n]. The interval Δt[n] is the reception interval actually measured by node ND. The interval Δt[n]' is set to the interval from time t[n-1] when packet PKy is received to time t[n]' represented by the synchronization data value stored in packet PKx. The interval Δt[n]' means the reception interval recognized by other node NDx.
[0071] As shown in equation (1), the difference between the reception interval Δt[n]' based on the recognition of the other node NDx and the reception interval Δt[n] based on the measurement of the own node is defined as the error e[n]. As shown in equation (2), the ratio of the error e[n] to the reception interval Δt[n] based on the measurement of the own node is defined as the error ratio e[n]'. Then, as shown in equation (3), the synchronization controller 20 calculates the error ratio e[n]' every time a packet is received, and calculates the average error value E[n] of the error ratios e[n]' for the past M times.
[0072]
number
[0073]
number
[0074]
number
[0075] 14, if one cycle of the active period and the sleep period is T, it can be estimated that the cycle T based on the count value of the node ND has an error, on average, multiplied by the average error value E[n] compared to other nodes. Therefore, the synchronization controller 20 calculates the corrected cycle T' by correcting the cycle T so as to cancel this estimated error T·E[n], as shown in equation (4).
[0076]
number
[0077] Then, the synchronization controller 20 corrects the schedule data 21 based on this corrected period T'. For example, the synchronization controller 20 may distribute the estimated error T·E[n] proportionally to the active period and the slave period. Note that the algorithm for estimating the error is not limited to the moving average, and various approaches using digital signal processing can be applied.
[0078] <Major Effects of the Second Embodiment> As described above, the effective communication period can be extended by using the method according to the second embodiment. As a result, in addition to the various effects described in the first embodiment, further reduction in power consumption can be achieved.
[0079] The invention made by the present inventor has been specifically described above based on the embodiments, but the present invention is not limited to the above-mentioned embodiments and can be modified in various ways without departing from the gist of the invention. For example, the above-mentioned embodiments have been described in detail to easily explain the present invention, and the present invention is not necessarily limited to those having all of the configurations described. In addition, it is possible to replace a part of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add the configuration of another embodiment to the configuration of one embodiment. In addition, it is possible to add, delete, or replace a part of the configuration of each embodiment with another configuration. [Explanation of symbols]
[0080] 11 Oscillators 12 Counter 13. Memory 14 Wireless communication interface 16 Power Controller 20 Synchronous Controller 21 Schedule Data CK Clock signal INI Initiator ND wireless communication device PK Packet RLY Relay TGT Target Ta active period Ts Sleep period (inactivity period) t[x] Count value Δtd[n] Estimated delay time
Claims
1. an oscillator for generating a clock signal; a counter that sequentially updates a count value in response to the clock signal; a memory for storing schedule data defining an active period, which is a period during which packet communication with the outside is permitted and which is represented by the range of the count value, and an inactive period, which is a period during which packet communication with the outside is prohibited and which is represented by the range of the count value; a wireless communication interface for communicating packets with an external device during the active period obtained from the schedule data and the count value of the counter; a power supply controller that cuts off power supply to the wireless communication interface during the inactive period obtained from the schedule data and the count value of the counter; a synchronization controller that updates the count value of the counter based on a synchronization data value stored in a received packet during a reception operation for receiving a packet from an external device, and determines the synchronization data value based on the updated count value during a transmission operation for transmitting a packet to an external device, and stores the determined synchronization data value in a packet to be transmitted; Equipped with Wireless communication device.
2. 2. The wireless communication device according to claim 1, The synchronization controller updates the count value of the counter with the synchronization data value stored in the received packet during the receiving operation, and determines the synchronization data value by reflecting a predicted delay time required for a packet transmission process in the synchronization controller's own device in the updated count value during the transmitting operation, and stores the determined synchronization data value in the packet to be transmitted. Wireless communication device.
3. 3. The wireless communication device according to claim 2, When the synchronization controller operates as an initiator for transmitting a packet generated by the synchronization controller to an external device, the synchronization controller stores the synchronization data value, which is determined by reflecting a predicted delay time required for a packet transmission process in the synchronization controller, in the packet to be transmitted. Wireless communication device.
4. 2. The wireless communication device according to claim 1, The synchronization controller, during the receiving operation, changes the synchronization data value stored in the received packet by reflecting a predicted delay time required for a packet transmission process in a transmitting side device, updates the count value of the counter with the changed synchronization data value, and during the transmitting operation, stores the changed synchronization data value in the packet to be transmitted. Wireless communication device.
5. 5. The wireless communication device according to claim 4, When the synchronization controller operates as an initiator for transmitting a packet generated by itself to an external device, the synchronization controller defines the count value of the counter at the time when the packet is prepared as the synchronization data value and stores the value in the packet to be transmitted. Wireless communication device.
6. 5. The wireless communication device according to claim 2, The synchronization controller sets the predicted delay time to a predetermined fixed value. Wireless communication device.
7. 5. The wireless communication device according to claim 2, The synchronization controller determines the predicted delay time to be a variable value according to a packet length. Wireless communication device.
8. 3. The wireless communication device according to claim 1, The synchronous controller includes: measuring a first reception interval based on a first count value at a time when a first packet is received in the previous active period and a second count value at a time when a second packet is received in the current active period; calculating a second reception interval recognized by another device that transmitted the second packet based on the first count value and the synchronization data value stored in the second packet; correcting the schedule data so that an error between the first receiving interval and the second receiving interval approaches zero; Wireless communication device.
9. 2. The wireless communication device according to claim 1, the synchronization controller determines the synchronization data value to be stored in the packet to be transmitted using a difference value between the synchronization data value and a predetermined reference count value; Wireless communication device.
10. 2. The wireless communication device according to claim 1, The wireless communication device is a device compatible with the "Bluetooth mesh" standard. Wireless communication device.
11. A wireless communication system including a plurality of wireless communication devices, Each of the plurality of wireless communication devices an oscillator for generating a clock signal; a counter that sequentially updates a count value in response to the clock signal; a memory for storing schedule data defining an active period, which is a period during which packet communication with other wireless communication devices is permitted and which is represented by the range of the count value, and an inactive period, which is a period during which packet communication with other wireless communication devices is prohibited and which is represented by the range of the count value; a wireless communication interface for communicating packets with another wireless communication device during the active period obtained from the schedule data and the count value of the counter; a power supply controller that cuts off power supply to the wireless communication interface during the inactive period obtained from the schedule data and the count value of the counter; a synchronization controller that updates the count value of the counter based on a synchronization data value stored in a received packet during a receiving operation for receiving a packet from another wireless communication device, and determines the synchronization data value based on the updated count value during a transmitting operation for transmitting a packet to the other wireless communication device, and stores the determined synchronization data value in the packet to be transmitted; Equipped with Wireless communication system.
12. 12. The wireless communication system according to claim 11, The synchronization controller updates the count value of the counter with the synchronization data value stored in the received packet during the receiving operation, and determines the synchronization data value by reflecting a predicted delay time required for a packet transmission process in the synchronization controller's own device in the updated count value during the transmitting operation, and stores the determined synchronization data value in the packet to be transmitted. Wireless communication system.
13. 13. The wireless communication system according to claim 12, When the synchronization controller operates as an initiator for transmitting a packet generated by the synchronization controller to an external device, the synchronization controller stores the synchronization data value, which is determined by reflecting a predicted delay time required for a packet transmission process in the synchronization controller, in the packet to be transmitted. Wireless communication system.
14. 12. The wireless communication system according to claim 11, the synchronization controller, during the reception operation, changes the synchronization data value stored in the received packet by reflecting a predicted delay time required for a packet transmission process in the wireless communication device on the transmitting side, updates the count value of the counter with the changed synchronization data value, and during the transmission operation, stores the changed synchronization data value in the packet to be transmitted. Wireless communication system.
15. 15. The wireless communication system according to claim 14, When the synchronization controller operates as an initiator for transmitting a packet generated by itself to an external device, the synchronization controller defines the count value of the counter at the time when the packet is prepared as the synchronization data value and stores the value in the packet to be transmitted. Wireless communication system.
16. 15. The wireless communication system according to claim 12, The synchronization controller sets the predicted delay time to a predetermined fixed value. Wireless communication system.
17. 15. The wireless communication system according to claim 12, The synchronization controller determines the predicted delay time to be a variable value according to a packet length. Wireless communication system.
18. 13. The wireless communication system according to claim 11, The synchronous controller includes: measuring a first reception interval based on a first count value at a time when a first packet is received in the previous active period and a second count value at a time when a second packet is received in the current active period; calculating a second reception interval recognized by a wireless communication device that has transmitted the second packet based on the first count value and the synchronization data value stored in the second packet; correcting the schedule data so that an error between the first receiving interval and the second receiving interval approaches zero; Wireless communication system.
19. 12. The wireless communication system according to claim 11, the synchronization controller determines the synchronization data value to be stored in the packet to be transmitted using a difference value between the synchronization data value and a predetermined reference count value; Wireless communication system.
20. 12. The wireless communication system according to claim 11, The wireless communication system is a system that complies with the "Bluetooth mesh" standard. Wireless communication system.
Citation Information
Patent Citations
Communication apparatus and communication control method
JP2012195840A
Wireless communication device and communication system
JP2020195062A
Bluetooth media device time synchronization
JP2020533851A
Wireless communication system
WO2010071194A1
Synchronized reception in mesh networks
WO2020046270A1
