Radio communication device, radio communication program, and radio communication method
By selectively performing beacon reception based on history and thresholds, the wireless communication device reduces power consumption during synchronization control, extending battery life in LoRaWAN devices.
Patent Information
- Application Number
- JP2023029223
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-09
AI Technical Summary
Existing LoRaWAN-based wireless communication devices consume significant power during synchronization control processes, such as beacon signal reception and PingSlot timing, even when data communication is not occurring, leading to excessive power consumption.
A wireless communication device and method that selectively performs beacon reception only at predetermined timings based on beacon reception history, using counters and thresholds to determine when to skip beacon cycles, thereby reducing unnecessary power usage.
The solution significantly reduces power consumption by minimizing unnecessary beacon reception, allowing the device to operate for extended periods on battery power while maintaining communication functionality.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a wireless communication device, a wireless communication program, and a wireless communication method, and can be applied to devices that require wireless communication over a wide area with low power consumption, for example. [Background technology]
[0002] Conventionally, there exists LoRaWAN (Long Range Wide Area Network) (registered trademark) as a wireless communication method that covers a wide area with low power consumption (Non-Patent Document 1). In the following, LoRaWAN will also be referred to simply as "LoRa."
[0003] In a conventional communication system using LoRaWAN as shown in Non-Patent Document 1, a slave device that performs wireless communication (hereinafter also referred to as a "wireless slave device" or simply a "terminal") is configured to be able to communicate with a higher-level device (e.g., an application server) via a gateway (base station) and a network server. In the following, communication from the wireless slave device to the gateway or network server is referred to as uplink communication, and communication from the gateway or network server to the wireless slave device is referred to as downlink communication.
[0004] LoRaWAN offers three communication methods, Class A, B, and C, depending on the battery life (power saving) of the wireless client device and the flexibility of downlink communication.
[0005] Class A is a method in which a downlink instruction can be issued to a wireless slave device only immediately after the wireless slave device transmits uplink data.
[0006] Class C is a method in which the wireless slave device can always receive downlink data from the upper side except when it is transmitting uplink data.
[0007] Class B is a method in which a wireless slave device performs time synchronization with the upper side by receiving a beacon transmitted from a gateway at a predetermined cycle (hereinafter referred to as "beacon cycle"), and enables downlink reception at a synchronization timing (Ping Slot timing) based on the time synchronization. A wireless slave device compatible with Class B waits in a state where wireless reception is possible only at the beacon signal reception timing or Ping Slot timing based on the above beacon cycle, and can operate in a power-saving manner at other times.
[0008] Next, communication control in a wireless slave device that supports LoRaWAN Class B will be described. A wireless slave device that supports Class B connects to a network server via a gateway, creates a session key by exchanging JoinRequest-JoinAccept with the network server, and then requests the current time from the network server using a MAC command called DeviceTimeReq. The network server responds with DeviceTimingAns in response to the request from the wireless slave device. This allows the wireless slave device to know the current time and predict the next beacon period. The wireless slave device can then receive the first beacon signal by receiving a wireless signal at the predicted timing. In addition, the wireless slave device can synchronize timing with the gateway by receiving a beacon signal 128 seconds after the timing of receiving the first beacon signal in the next and subsequent beacon periods. The wireless slave device notifies the network server that the wireless slave device is operating in Class B by sending a notification of synchronization by setting the Class B bit in the next uplink frame. The network server expects that the wireless slave device is operating in Class B when it receives a frame with the same class B bit from the wireless slave device, and the next time a downlink request occurs from the application, it will transmit the downlink at the PingSlot timing, which is the timing for synchronization with the wireless slave device.The wireless slave device performs wireless reception processing only when it receives a beacon signal based on the beacon cycle mentioned above or when it receives a PingSlot, and at other times it can operate in low power mode by putting the wireless slave device's CPU into sleep mode.
[0009] As described above, by using the LoRaWAN Class B system, the wireless slave device operates with low power consumption (for example, by putting the CPU into sleep mode, etc.) except for beacon signal reception processing, PingSlot timing reception processing, and other transmission processing. This allows the wireless slave device in a system that uses the LoRaWAN Class B system to operate for long periods of time, such as several years to a decade, by being battery-powered. [Prior art documents] [Non-patent literature]
[0010] [Non-Patent Document 1] "LoRaWAN(TM) Specification v1.1", LoRaAlliance(TM), [Retrieved January 28, 2022], [Online], INTERNET,<URL: https: / / lora-alliance.org / resource_hub / lorawan-specification-v1-1 / > Summary of the Invention [Problem to be solved by the invention]
[0011] As mentioned above, the use of LoRaWAN Class B makes it possible to operate wireless devices on batteries for long periods of time, but wireless devices belonging to LPWA that use LoRaWAN are generally used for applications that generate data communication timing on a daily or longer cycle. Therefore, wireless devices belonging to LPWA that use LoRaWAN are usually (most of the time) in a power saving operating state (sleep state) and are not expected to generate data communication.
[0012] However, in wireless devices using the LoRaWAN Class B system, even during times when no data communication is occurring, it is necessary to continuously perform processing related to synchronization control (e.g., beacon signal reception processing and PingSlot timing reception processing, etc.), which results in a problem in that the amount of power consumed by communication control such as synchronization control is significantly greater than the amount of power consumed by the data communication itself (e.g., uplink communication and downlink communication).
[0013] In view of the above problems, there is a demand for a wireless communication device, a wireless communication program, and a wireless communication method that can control communication with a wireless communication network system with reduced power consumption. [Means for solving the problem]
[0014] The first invention is characterized in that a wireless communication device connectable to a wireless communication network system has a wireless transmitting unit that transmits a wireless signal, a wireless receiving unit that receives the wireless signal, a communication control means that controls the wireless transmitting unit and the wireless receiving unit to perform communication control to connect to and communicate with the wireless communication network system, an operation memory means that stores beacon reception history information regarding beacon reception for time synchronization transmitted from the wireless communication network system at beacon cycle timings at regular intervals via the wireless receiving unit by the communication control means, and a beacon processing means that performs a beacon reception determination process to determine whether or not to attempt beacon reception for each of the beacon cycle timings based on the beacon reception history information stored in the operation memory means, and controls the communication control means to attempt beacon reception only at the beacon cycle timings where it is determined as a result of the beacon reception determination process that a beacon reception attempt should be performed.
[0015] A second wireless communication program of the present invention is characterized in that the computer, which is mounted on a wireless communication device that has a wireless transmitting unit that transmits wireless signals and a wireless receiving unit that receives wireless signals and is connectable to a wireless communication network system, is made to function as a communication control means that controls the wireless transmitting unit and the wireless receiving unit to connect to and communicate with the wireless communication network system, an operation memory means that stores beacon reception history information regarding beacon reception for time synchronization that is transmitted from the wireless communication network system at beacon period timings that are every constant period via the wireless receiving unit, and a beacon processing means that performs a beacon reception determination process to determine whether or not to attempt beacon reception for each beacon period timing based on the beacon reception history information stored in the operation memory means, and controls the communication control means to attempt beacon reception only at the beacon period timings where it is determined as a result of the beacon reception determination process that a beacon reception attempt should be performed.
[0016] A third wireless communication method of the present invention is a wireless communication method performed by a wireless communication device connectable to a wireless communication network system, the wireless communication device comprising a wireless transmitting unit that transmits wireless signals, a wireless receiving unit that receives wireless signals, a communication control means, an operation memory means, and a beacon processing means, the communication control means controlling the wireless transmitting unit and the wireless receiving unit to perform communication control to connect to and communicate with the wireless communication network system, the operation memory means storing beacon reception history information regarding beacon reception for time synchronization transmitted by the communication control means from the wireless communication network system at beacon cycle timings at regular intervals via the wireless receiving unit, the beacon processing means performing a beacon reception determination process for determining whether or not to attempt beacon reception for each of the beacon cycle timings based on the beacon reception history information stored in the operation memory means, and controlling the communication control means to attempt beacon reception only at the beacon cycle timings where it is determined as a result of the beacon reception determination process that a beacon reception attempt should be performed. Effect of the Invention
[0017] According to the present invention, it is possible to provide a wireless communication device, a wireless communication program, and a wireless communication method that control communication with a wireless communication network system with reduced power consumption. [Brief description of the drawings]
[0018] [Figure 1] 1 is a block diagram showing a functional configuration of a wireless slave unit (wireless communication device) according to an embodiment. [Diagram 2] 1 is a block diagram illustrating an example of an overall configuration of a communication system according to an embodiment. [Diagram 3] 1 is a diagram illustrating, in the form of a state transition diagram, a control process for receiving a beacon (beacon reception control process) in a wireless slave device according to an embodiment. FIG. [Figure 4] 10 is a flowchart showing a process performed when a connection attempt process is successful in a wireless slave device according to the embodiment. [Diagram 5] 11 is a flowchart showing a process (beacon period event) when a beacon period timing arrives in a wireless slave device according to the embodiment. [Figure 6] 10 is a flowchart showing details of a beacon skip mode routine process performed in the wireless slave device according to the embodiment. [Figure 7] 10 is a flowchart showing details of a beacon reception process performed in the wireless slave device according to the embodiment. [Figure 8] 10 is a flowchart showing details of a beacon skip mode determination process performed in the wireless slave device according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] (A) Main embodiment Hereinafter, an embodiment of a wireless communication device, a wireless communication program, and a wireless communication method according to the present invention will be described in detail with reference to the drawings. In this embodiment, an example in which the wireless communication device, the wireless communication program, and the wireless communication method are applied to a wireless slave unit will be described.
[0020] (A-1) Configuration of the embodiment FIG. 2 is a block diagram showing an example of the overall configuration of a communication system according to the embodiment.
[0021] In the communication system 1 shown in FIG. 2, an application server 10, a network server 20, a gateway 30 serving as a base station, and a wireless slave unit 40 serving as a wireless communication device are arranged.
[0022] The number of each device installed in the communication system 1 is not limited, but for ease of explanation, the communication system 1 of this embodiment will be described as having at least one application server 10, one network server 20, one gateway 30, and one wireless slave device 40, as shown in FIG. 2.
[0023] In this embodiment, in principle, each device constituting the communication system 1 is configured to communicate in accordance with the standard specifications defined by LoRaAlliance (registered trademark). In other words, in this specification, each device constituting the communication system 1 will be described as performing processing (operations) based on the specifications defined by LoRaAlliance, except for processing (operations) that are not specifically described below. In the following, the term "LoRa standard" refers to the specifications defined by LoRaAlliance.
[0024] The wireless slave device 40 mainly transmits information detected by various sensors mounted on or connected to itself, information collected from electrical devices connected to itself, etc., to the upper side (application server 10 side) of the communication system 1. The wireless slave device 40 is wirelessly connected to the gateway 30. Hereinafter, the wireless communication section between the wireless slave device 40 and the gateway 30 will be referred to as the "LoRa wireless section."
[0025] The gateway 30 relays various information wirelessly received from the wireless slave device 40 to the network server 20. The connection configuration between the gateway 30 and the network server 20 is not limited, and may be, for example, a wired connection (e.g., various LAN cables, etc.) or a wireless connection (e.g., various wireless LANs, etc.).
[0026] The network server 20 relays various data received from the wireless slave device 40 via the gateway 30 to the application server 10. The connection between the network server 20 and the application server 10 may be wired or wireless as described above, and the standard and method used for the connection are not limited. The network server 20 also manages the identifiers of the wireless slave devices 40 and encrypts communications. That is, in the communication system 1 of this embodiment, the gateway 30 and the network server 20 cooperate to form one wireless communication network system, and the wireless slave devices 40 are connected to each other.
[0027] The application server 10 executes any process based on various information received from the wireless slave device 40 via the network server 20. For example, the application server 10 accumulates and processes data transmitted from the wireless slave device 40.
[0028] Next, an overview of beacon reception control by the wireless slave device 40 will be described.
[0029] When viewed from an external device (such as the network server 20 or the gateway 30), the wireless slave device 40 behaves as if it is operating in Class B of the LoRa standard, but in order to save power, it operates differently from the LoRa standard to the extent that it does not affect the external device (such as the network server 20 or the gateway 30).
[0030] As described above, in the LoRa standard, a wireless slave device that supports Class B is in a standby state in which it attempts (is able to) receive a beacon from the gateway every beacon period in order to synchronize time with the gateway (hereinafter, this standby state is referred to as a "reception standby state"). Hereinafter, the timing of beacon reception in every beacon period in the wireless slave device 40 (that is, the timing of beacon reception in a wireless slave device that operates completely in Class B of the LoRa standard) is referred to as a "beacon period timing". The wireless slave device 40 saves power by not taking a reception standby state (not attempting to receive a beacon) for some beacon period timings within a range that can be estimated not to affect communication with external devices (gateway 30, network server 20). Hereinafter, the process of the wireless slave device 40 not taking a reception standby state even when it reaches a beacon period timing is also referred to as a "skip".
[0031] Specifically, the wireless slave device 40 of this embodiment operates in either an operation mode in which the wireless slave device 40 is in a reception standby state for all beacon cycle timings (hereinafter referred to as "normal mode") or an operation mode in which the wireless slave device 40 is not in a reception standby state (skips) for some beacon cycle timings (hereinafter referred to as "beacon skip mode"). In this embodiment, the wireless slave device 40 receives beacons in normal mode (beacon skip mode OFF) as a rule, and transitions to beacon skip mode (beacon skip mode ON) only while a predetermined condition is satisfied. Details of a method for determining the beacon cycle timings to skip when operating in beacon skip mode (or a method for determining the beacon cycle timings to be in a reception standby state) in the wireless slave device 40 will be described later.
[0032] Next, an overview of the beacon reception control performed by the wireless slave device 40 will be described.
[0033] In the wireless slave device 40 of this embodiment, three counters are used for beacon reception control: a beacon cycle count A, a beacon reception attempt count B, and a beacon reception success count C. Also, in the wireless slave device 40, three parameters are used for beacon reception control: a recorded beacon count O, a beacon reception accuracy threshold P, and a multiple value R.
[0034] The beacon cycle count A is a counter for counting the number of times a beacon cycle timing has arrived. In other words, the beacon cycle count A is a counter that is incremented (added by 1) every time a beacon cycle timing arrives, even if the beacon cycle timing has been skipped.
[0035] The beacon reception attempt count B is a counter for counting the number of times the wireless slave device 40 has attempted to receive a beacon (the number of beacon period timings at which it has been determined that beacon reception should be attempted).
[0036] The number of successful beacon receptions C is a counter for counting the number of times that the wireless slave device 40 has attempted to receive a beacon and as a result has succeeded in receiving the beacon (the number of times that the beacon reception was successful).
[0037] The recorded beacon count O indicates the number of beacon cycle timings for which history is recorded (upper limit value of the beacon cycle count A), and can be set to any value. For example, if the recorded beacon count O is set to 20 [times], the wireless slave device 40 increments the beacon cycle count A until the beacon cycle count A becomes 20 times or more (A≧O). When the beacon cycle count A becomes 20 times or more (A≧O), the wireless slave device 40 calculates the beacon reception accuracy (the number of successful beacon receptions C / the number of beacon reception attempts B) and clears (sets to zero) the beacon cycle count A. In other words, the wireless slave device 40 calculates the beacon reception accuracy every time the beacon cycle count A becomes 20 times or more (A≧O).
[0038] The beacon reception accuracy threshold P is a parameter used as a threshold when determining whether or not to transition to the beacon skip mode in the wireless slave device 40, and can be set to any value. Every time the wireless slave device 40 calculates the beacon reception accuracy, it compares the calculated beacon reception accuracy with the beacon reception accuracy threshold P, and determines the operation mode based on the comparison result. For example, assume that the beacon reception accuracy threshold P is 95[%]. In this case, the wireless slave device 40 may determine to operate in the beacon skip mode when the beacon reception accuracy is 95[%] or more, and may determine to operate in the normal mode when the beacon reception accuracy is less than 95[%].
[0039] The multiple value R is a parameter for determining whether or not to skip beacon reception for each beacon cycle timing while the wireless slave device 40 is operating in the beacon skip mode, and can be set to any value. The wireless slave device 40 may skip beacon cycle timings where the beacon cycle count A is a multiple of the multiple value R, and may receive beacons (not skip) at other beacon cycle timings. For example, assume that the multiple value R is set to 3. In this case, the wireless slave device 40 may skip beacon cycle timings where the beacon cycle count A is a multiple of 3 (3, 6, 9, 12, 15, 18), and may receive beacons at other timings.
[0040] Next, the functional configuration of the wireless slave device 40 will be described with reference to FIG.
[0041] As shown in FIG. 1, the wireless slave device 40 has a system data memory unit 41, a timer control unit 42, a beacon processing unit 43, an operation memory unit 44, a MAC control unit 45, a wireless transmitting unit 46, a wireless receiving unit 47 and a wireless antenna 48.
[0042] The wireless slave device 40 may be realized by installing a program (including the wireless communication program according to the embodiment) in a computer (not shown) for components that can be realized by software (for example, elements including the system data storage unit 41, timer control unit 42, beacon processing unit 43, operation storage unit 44, and MAC control unit 45). The computer is configured with, for example, a processor, a primary memory (volatile memory), a secondary memory (non-volatile memory), and the like. The system data storage unit 41 and the operation storage unit 44 may both be assigned the secondary memory (non-volatile memory), but only the operation storage unit 44 may be assigned the primary memory (volatile memory).
[0043] The system data storage unit 41 is a recording means for recording system data (including, for example, various parameters) used in operating the wireless slave device 40. In this embodiment, the system data storage unit 41 records at least the parameters of the number of recorded beacons O, the beacon reception accuracy threshold P, and the multiple value R.
[0044] The timer control unit 42 has a timer function, measures the set timeout time, and when the time has elapsed, responds (notifies) the element that set the timeout time (such as the beacon processing unit 43) with a timeout (ignition) response (notification).
[0045] The beacon processing unit 43 functions as a beacon processing means that performs control processing related to beacon reception. When the beacon processing unit 43 operates in normal mode, it instructs the MAC control unit 45 to perform a beacon reception attempt at the timing of class B of the LoRa standard (all beacon cycle timings). When the MAC control unit 45 receives an instruction to attempt beacon reception from the beacon processing unit 43, it controls the wireless receiving unit 47 and the like so that beacons can be received only for a predetermined period according to the LoRa standard. When the beacon reception accuracy (number of successful beacon receptions C / number of beacon reception attempts B) becomes equal to or greater than the beacon reception accuracy threshold P, the beacon processing unit 43 determines to transition to a beacon skip mode and performs processing to skip some beacon cycle timings.
[0046] The operation memory unit 44 functions as an operation memory means for storing variables, counters, and the like used in operating the wireless slave device 40. In this embodiment, the operation memory unit 44 stores at least counters for the number A of beacon cycles, the number B of beacon reception attempts, and the number C of beacon reception successes.
[0047] The MAC control unit 45 has a function of a communication control means that controls the wireless transmission unit 46 and the wireless reception unit 47 to wirelessly communicate with the wireless communication network system (specifically, a function of wirelessly communicating directly with the gateway 30). The MAC control unit 45 basically realizes a function of media access control (MAC) defined in the LoRa standard. The MAC control unit 45 realizes a function of media access control by controlling the wireless transmission unit 46, the wireless reception unit 47, etc. Specifically, the MAC control unit 45 executes a network participation sequence (attempts connection to the network server 20) of the wireless slave device 40, and performs communication control processing and the like for securely communicating with the network server 20 using a generated encryption key, etc.
[0048] The wireless transmission unit 46 has a function of transmitting a wireless signal using the wireless antenna 48. The wireless transmission unit 46 performs wireless modulation on data instructed by the MAC control unit 45 according to the LoRa modulation method, for example, and transmits the wireless signal.
[0049] The wireless receiving unit 47 has a function of receiving a wireless signal using a wireless antenna 48. The wireless receiving unit 47 demodulates the received radio wave according to the LoRa modulation method, for example, and supplies the demodulated signal to the MAC control unit 45 as data.
[0050] The wireless antenna 48 is an antenna for transmitting and receiving radio waves to and from the LoRa wireless section (wireless slave device 40).
[0051] (A-2) Operation of the embodiment Next, the operation of the wireless slave device 40 in this embodiment having the above configuration (including the wireless communication method in this embodiment) will be described.
[0052] FIG. 3 is a diagram showing the beacon reception control process in the wireless slave device 40 in the form of a state transition diagram.
[0053] In the state transition diagram of FIG. 3, the wireless slave device 40 is illustrated as transitioning to any one of states X1 to X3.
[0054] 3, state X1 indicates that the wireless slave device 40 is in an "initial state." Also, in FIG. 3, state X2 indicates a "beacon signal initial synchronization in progress" state (state operating in normal mode) in which the wireless slave device 40 starts receiving a beacon and is time-synchronized with the gateway 30. Furthermore, in FIG. 3, state X3 indicates a "beacon signal synchronization completed" state (state operating in beacon skip mode) in which synchronization processing using a beacon signal is completed in the wireless slave device 40.
[0055] [Behavior in state X1 (initial state)] When the wireless slave device 40 enters the initial state (state X1), the MAC control unit 45 performs a process (hereinafter also referred to as a "connection attempt process") of attempting a Join sequence process (Join sequence process in the LoRa standard protocol) to the network server 20. Specifically, the wireless slave device 40 (MAC control unit 45) transmits a JoinRequest signal to the network server 20, and connects to the network server 20 by receiving a JoinAccept response from the network server 20.
[0056] If a response (JoinAccept signal) is received normally from the network server 20 in response to the JoinRequest signal from the MAC control unit 45, the connection attempt process is successful. If the connection attempt process is successful, the wireless slave device 40 (MAC control unit 45) transitions from state X1 (initial state) to state X2 (state during initial synchronization of beacon signal) (step S1). Also, if the connection attempt process is successful, the MAC control unit 45 transmits a DeviceTimeReq to the network server 20 to request the current time, receives a DeviceTimingAns response, and acquires the current time. Thereafter, the MAC control unit 45 and the beacon processing unit 43 are able to predict the timing of the next and subsequent beacon cycles based on the current time.
[0057] On the other hand, if there is no response (JoinAccept signal) from the network server 20 to the JoinRequest signal from the MAC control unit 45, the connection attempt process fails (is interrupted) (step S2). In this case, the MAC control unit 45 maintains the state X1 (initial state) and repeats the connection attempt process (sending the JoinRequest signal) at an arbitrary period.
[0058] [Behavior in state X2 (initial synchronization of beacon signal)] When the connection attempt process is successful and the state transitions to state X2 (beacon signal initial synchronization in progress; normal mode), the beacon processing unit 43 causes the MAC control unit 45 to execute a beacon reception attempt at a timing (every beacon cycle timing) according to Class B of the LoRa standard. Then, when the number of beacon cycles A is equal to or greater than the number of recorded beacons O, the beacon processing unit 43 calculates the beacon reception accuracy (number of successful beacon receptions C / number of beacon reception attempts B). Then, when the beacon reception accuracy is equal to or greater than the beacon reception accuracy threshold P, the beacon processing unit 43 transitions to state X3 (beacon signal synchronization completed; beacon skip mode) (step S5), and when the beacon reception accuracy is less than the beacon reception accuracy threshold P, the state X2 (beacon signal initial synchronization in progress; normal mode) is maintained (step S4).
[0059] Furthermore, if beacon reception fails N times in succession during state X2 (beacon signal initial synchronization in progress; normal mode) (if normal beacon reception cannot be confirmed), the beacon processing unit 43 determines to transition to state X1 (initial state) and causes the MAC control unit 45 to execute a connection trial process (step S3). The value of N is not limited, but may be set to, for example, about 3 times.
[0060] [Behavior in state X3 (beacon signal synchronization completed)] When the state transitions to X3 (beacon signal synchronization completed; beacon skip mode), the beacon processing unit 43 controls the MAC control unit 45 to execute a beacon reception attempt only when the beacon cycle count A is a multiple of the multiple value R. Even if the beacon cycle timing is skipped by the beacon processing unit 43 while operating in X3 (beacon signal synchronization completed), the MAC control unit 45 regards the beacon reception process as having been executed, and executes other schedule setting processes (e.g., schedule setting processes based on the LoRa standard such as Pingslot schedule setting processes) in the same manner as when the beacon reception process is executed. For example, even if the beacon cycle timing is skipped by the beacon processing unit 43 while operating in X3 (beacon signal synchronization completed), the MAC control unit 45 executes a process of scheduling Pingslot (a process of waiting in a state where downlink reception is possible) until the next beacon cycle timing in the same manner as when the beacon reception process is executed at the skipped beacon cycle timing. At this time, the MAC control unit 45 may determine that the beacon reception process at the skipped beacon cycle timing was successful and set the scheduled time of the Pingslot until the next beacon cycle timing, or may determine that the beacon reception process at the skipped beacon cycle timing was unsuccessful and set the scheduled time of the Pingslot until the next beacon cycle timing. This allows the MAC control unit 45 to receive downlink signals even while operating in state X3 (beacon skip mode).
[0061] Also, even in state X3, the beacon processing unit 43 calculates the beacon reception accuracy (number of successful beacon receptions C / number of beacon reception attempts B) each time the beacon cycle count A becomes equal to or greater than the number of recorded beacons O, and if the beacon reception accuracy is equal to or greater than the beacon reception accuracy threshold P, it maintains state X3 (step S7), and if the beacon reception accuracy is less than the beacon reception accuracy threshold P, it transitions to state X2 (step S6).
[0062] Furthermore, if beacon reception fails N consecutive times during state X3 (beacon signal synchronization completed; beacon skip mode) (if normal beacon reception cannot be confirmed), the beacon processing unit 43 determines to transition to state X1 (initial state) and causes the MAC control unit 45 to execute a connection attempt process (step S8).
[0063] Next, a specific example of processing for realizing the beacon reception control processing of the state transition diagram shown in FIG. 3 will be described with reference to the flowcharts of FIGS.
[0064] FIG. 4 is a flowchart showing the process (the process performed in step S1) performed when the connection attempt process in the wireless slave device 40 is successful.
[0065] If the connection attempt process is successful, the beacon processing unit 43 clears (sets to 0) each counter (the number of beacon cycles A, the number of beacon reception attempts B, and the number of successful beacon receptions C) (S101).
[0066] Then, the beacon processing unit 43 determines the current time based on the contents of DeviceTimingAns (response to DeviceTimeReq) received by the MAC control unit 45 from the network server 20, calculates the next beacon period timing (S102), sets the calculated beacon period (next beacon period timing) in the timer control unit 42 (S103), and terminates the processing.
[0067] FIG. 5 is a flowchart showing a process (hereinafter, referred to as a "beacon period event") of the wireless slave device 40 when the beacon period timing arrives (the timer control unit 42 times out / fires).
[0068] When a beacon period event starts, the beacon processor 43 performs a process (hereinafter referred to as a "beacon skip mode routine process") to determine an appropriate operation mode (either the normal mode or the beacon skip mode) (S201). The beacon skip mode routine process will be described in detail later.
[0069] Next, the beacon processing unit 43 performs a process of determining whether or not to skip the current beacon cycle timing (hereinafter referred to as "beacon skip mode determination process") (S202). In the beacon skip mode determination process, either "False" indicating a determination result that a beacon reception attempt will be made (not skipped) for the current beacon cycle timing, or "True" indicating a determination result that a beacon reception attempt will be made for the current beacon cycle timing (not to skip) is output. The beacon skip mode determination process will be described in detail later.
[0070] Next, the beacon processing unit 43 determines whether or not the conditions that the judgment result of the beacon skip mode judgment process is False and the current state is not X1 (initial state) are met (S203), and if the above conditions are met, the operation proceeds to step S204 described later, and if not, the operation proceeds to step S206 described later.
[0071] If it is determined in step S203 that the above condition is met, the beacon processing unit 43 performs a process of receiving a beacon at the current beacon cycle timing (hereinafter simply referred to as "beacon reception process") (S204).
[0072] Next, the beacon processing unit 43 sets the beacon period in the timer control unit 42 in order to obtain the next beacon period timing (S205), and ends the processing of the beacon period event.
[0073] On the other hand, if it is determined in the above-mentioned step S203 that the above condition is not met, the beacon processing unit 43 checks whether the current state is X1 (initial state) or not (S206), and if the current state is X1 (initial state), ends the processing of the beacon period event, and if the current state is not X1 (initial state), proceeds to the processing of the above-mentioned step S207.
[0074] The reason for checking whether or not the state is X1 (initial state) in step S206 is that there is a possibility of transitioning to state X1 (initial state) in the beacon skip mode routine processing in step S201 described later. If the state has transitioned to state X1 (initial state) in the beacon skip mode routine processing in step S201, the wireless slave device 40 ends the process without setting the beacon period timing for the next period, and then restarts from the connection attempt processing.
[0075] If it is determined in the above-mentioned step S206 that the current state is not X1 (initial state) (i.e., if it is state X3), the beacon processing unit 43 causes the MAC control unit 45 to execute other schedule setting processing (for example, schedule setting processing based on the LoRa standard, such as Pingslot schedule setting processing) (S207), in the same manner as when beacon reception processing is performed at the current time (when beacon reception is successful or unsuccessful), and proceeds to the processing of step S205.
[0076] Next, the beacon skip mode routine process in step S201 described above will be described in detail.
[0077] FIG. 6 is a flowchart showing details of the beacon skip mode routine process.
[0078] When starting the beacon skip mode routine process, beacon processor 43 first increments (adds 1 to) the beacon cycle count A (S301).
[0079] Next, the beacon processing unit 43 determines whether the number of beacon reception attempts B is greater than N (S302), and if the number of beacon reception attempts B is greater than N, it operates from step S303 described below, and if not, it ends the beacon skip mode routine processing.
[0080] If it is determined in step S302 above that the number of beacon reception attempts B is greater than N, the beacon processing unit 43 determines whether the number of beacon cycles A is greater than or equal to the number of recorded beacons O (S303), and if the number of beacon cycles A is greater than or equal to the number of recorded beacons O, proceeds to step S304 described below, and if not, terminates the beacon skip mode routine processing.
[0081] If it is determined in step S302 above that the number of beacon cycles A is equal to or greater than the number of recorded beacons O, the beacon processing unit 43 calculates the beacon reception accuracy (number of successful beacon receptions C / number of beacon reception attempts B) and determines whether the calculated beacon reception accuracy is equal to or greater than a beacon reception accuracy threshold value P (S304). If the beacon reception accuracy is equal to or greater than the beacon reception accuracy threshold value P, the beacon processing unit 43 starts operating from step S305, which will be described later, and if not, starts operating from step S307, which will be described later.
[0082] If it is determined in the above-mentioned step S304 that the beacon reception accuracy is equal to or greater than the beacon reception accuracy threshold P, the beacon processing unit 43 turns the beacon skip mode ON (or leaves it as it is if it is already ON) (S305).
[0083] Next, the beacon processing unit 43 clears (initializes to 0) each counter (the number of beacon cycles A, the number of beacon reception attempts B, and the number of beacon reception successes C) (S306), and ends the beacon skip mode routine processing.
[0084] On the other hand, if it is determined in the above-mentioned step S304 that the beacon reception accuracy is less than the beacon reception accuracy threshold value P, the beacon processing unit 43 determines whether the number of beacon reception attempts B is 0 or not (S307), and if the number of beacon reception attempts B is 0, it proceeds to step S308 described below, and if not, it proceeds to step S309 described below.
[0085] If it is determined in step S307 that the number of beacon reception attempts B is 0, the wireless slave device 40 (beacon processing unit 43, MAC control unit 45) transitions to state X1 (initial state) (S308). The fact that the number of beacon reception attempts B is 0 at the time of step S307 means that beacon reception has failed N times in a row (beacon reception has been attempted and failed).
[0086] Next, beacon processor 43 turns off the beacon skip mode (if it is already off, leaves it as is) (S309), and then proceeds to step S306 described above to clear each counter, and then ends the beacon skip mode routine processing.
[0087] Next, the beacon reception process in step S204 described above will be described in detail.
[0088] FIG. 7 is a flowchart showing the details of the beacon reception process.
[0089] When the beacon reception process is started, the beacon processor 43 increments (adds 1) the number of beacon reception attempts B (S401).
[0090] Next, the beacon processing unit 43 instructs the MAC control unit 45 to receive a beacon (S402), and checks the result (beacon reception success or failure) (S403). At this time, the MAC control unit 45 executes schedule setting processing other than the next beacon period timing (for example, schedule setting processing based on the LoRa standard, such as Pingslot schedule setting processing) based on the result of the beacon reception processing (beacon reception success or failure).
[0091] If the beacon reception is successful, the beacon processing unit 43 increments the number of successful beacon receptions C (S404) and terminates the beacon reception process, and if the beacon reception is unsuccessful, the beacon reception process is terminated as is (without incrementing the number of successful beacon receptions C).
[0092] Next, the beacon skip mode determination process in step S202 described above will be described in detail.
[0093] FIG. 8 is a flowchart showing details of the beacon skip mode determination process.
[0094] When the beacon skip mode determination process is started, the beacon processing unit 43 determines whether or not the current operation mode is the beacon skip mode (S501), and if it is the beacon skip mode, proceeds to step S502 described later, and if it is not (if it is the normal mode), proceeds to step S504 described later.
[0095] When the current operation mode is the beacon skip mode, the beacon processor 43 determines whether the number of beacon cycles A corresponds to a multiple of the multiple value R (S502).
[0096] For example, the beacon processing unit 43 may determine that the number of beacon periods A corresponds to a multiple of the multiple value R when the remainder when A is divided by R is 0 (MOD(A, R)=0).
[0097] In the above-mentioned step S502, if the beacon cycle number A corresponds to a multiple of the multiple value R, the beacon processing unit 43 outputs True as a determination result that the current beacon cycle timing is to be skipped (S503), and ends the beacon skip mode determination process.
[0098] On the other hand, if the beacon cycle count A is not a multiple of the multiple value R, or if the beacon mode is not selected (if the mode is normal), the beacon processing unit 43 outputs False as the determination result that the beacon will be received (not skipped) at the current beacon cycle timing (S504), and terminates the beacon skip mode determination process.
[0099] As described above, the wireless slave device 40 aims to save power by skipping beacon reception attempts for some beacon cycle timings.
[0100] In a communication environment with higher beacon synchronization accuracy between the gateway 30 and the wireless slave device 40, a higher beacon reception accuracy threshold P may be effective in suppressing power consumption, but depending on the clock accuracy of the wireless slave device 40, the accuracy of the timing when receiving actual data may decrease due to operation with a self-running clock without receiving a beacon for a long period of time. Therefore, it is desirable to set parameters according to the performance of the wireless slave device 40 and the communication environment.
[0101] (A-3) Effects of the embodiment According to this embodiment, the following effects can be obtained.
[0102] When viewed from an external device (such as the network server 20 or the gateway 30), the wireless slave device 40 of this embodiment behaves as if it is operating in Class B of the LoRa standard, but skips some beacon period timings to the extent that it does not affect the external device. This allows the wireless slave device 40 of this embodiment to reduce the power consumption required for controlling beacon reception compared to the conventional case (when fully compliant with Class B of the LoRa standard).
[0103] (B) Other embodiments The present invention is not limited to the above-described embodiments, and may include modified embodiments such as those exemplified below.
[0104] (B-1) In the above embodiment, an example was shown in which the wireless slave device 40 was connected to LoRaWAN. However, the power consumption reduction effect can be obtained in a similar manner even if the wireless slave device 40 is connected to a wireless communication network system that synchronizes based on another beacon signal.
[0105] (B-2) In the above embodiment, the wireless slave device 40 (beacon processing unit 43) skips beacon cycle timings where the beacon cycle count A is a multiple of the multiple value R, but conversely, the wireless slave device 40 (beacon processing unit 43) may skip beacon cycle timings other than those where the beacon cycle count A is a multiple of the multiple value R. For example, if the multiple value R is 3, the wireless slave device 40 (beacon processing unit 43) may attempt to receive beacons only at beacon cycle timings where the beacon cycle count A is 3, 6, 9, 12, 15, 18, . . . and skip the other beacon cycle timings.
[0106] (B-3) In the above embodiment, the wireless slave device 40 (beacon processing unit 43) determines the beacon cycle timing to be skipped using the multiple value R of the beacon cycle count A, but other parameters may be used. For example, instead of the multiple value R, it may be replaced with a "skip threshold value Q" that indicates the ratio of the beacon cycle timing to be skipped and the beacon cycle timing not skipped. For example, when the skip threshold value Q=25% is applied in the beacon processing unit 43, the ratio of the beacon cycle timing to be skipped may be set to 25% (skipped once in four times).
[0107] (B-4) In the above embodiment, the multiple value R is a fixed value, but it may be a dynamically variable value. For example, the multiple value R may be varied according to the beacon reception accuracy. Specifically, the multiple value R may be set to a larger value as the beacon reception accuracy increases, for example, when the beacon reception accuracy is 95% or more and less than 96%, the multiple value R=3, when the beacon reception accuracy is 97% or more and less than 98%, the multiple value R=4, when the beacon reception accuracy is 98% or more and less than 99%, the multiple value R=5, and when the beacon reception accuracy is 99% or more, the multiple value R=6. [Explanation of symbols]
[0108] 1...communication system, 10...application server, 20...network server, 30...gateway, 40...wireless slave unit (wireless communication device), 41...system data memory unit, 42...timer control unit, 43...beacon processing unit, 44...operation memory unit, 45...MAC control unit, 46...wireless transmitting unit, 47...wireless receiving unit, 48...wireless antenna.
Claims
1. A wireless communication device connectable to a wireless communication network system, a wireless transmission unit that transmits a wireless signal; A wireless receiving unit for receiving a wireless signal; a communication control means for controlling the wireless transmission unit and the wireless reception unit to connect to the wireless communication network system and perform communication; an operation storage means for storing beacon reception history information regarding beacon reception for time synchronization, which is transmitted at a beacon period timing for each fixed period from the wireless communication network system by the communication control means via the wireless receiving unit; a beacon processing means for performing a beacon reception determination process for determining whether or not to perform a beacon reception attempt for each of the beacon cycle timings based on the beacon reception history information stored in the operation storage means, and for controlling the communication control means to perform a beacon reception attempt only at the beacon cycle timings for which it has been determined as a result of the beacon reception determination process that a beacon reception attempt should be performed; A wireless communication device comprising:
2. The wireless communication device according to claim 1, characterized in that the beacon reception history information includes a beacon cycle count, which counts the number of times the beacon cycle timing has arrived, a beacon reception attempt count, which counts the number of times the communication control means has attempted to receive a beacon, and a beacon reception success count, which indicates the number of times the communication control means has successfully received a beacon.
3. The wireless communication device according to claim 2, characterized in that the beacon processing means operates in a beacon skip mode in which it calculates beacon reception accuracy based on the number of successful beacon receptions and the number of beacon reception attempts, and determines not to attempt beacon reception for some of the beacon period timings if the beacon reception accuracy is higher than a predetermined threshold.
4. The wireless communication device according to claim 3, characterized in that, while operating in the beacon skip mode, the beacon processing means determines not to attempt beacon reception at the beacon period timing when the beacon period count is a multiple of a predetermined multiple value, and determines to attempt beacon reception at the beacon period timing when the beacon period count is not a multiple of the multiple value.
5. The wireless communication device according to claim 3, characterized in that, while operating in the beacon skip mode, the beacon processing means determines that a beacon reception attempt will be made at the beacon period timing where the beacon period count is a multiple of a predetermined multiple value, and determines that a beacon reception attempt will not be made at the beacon period timing where the beacon period count is not a multiple of the multiple value.
6. The communication control means determining a signal reception waiting time for waiting for a signal reception from the wireless communication network system until the next beacon period timing based on a result of the beacon reception trial; Even if a beacon reception attempt was not made at the beacon cycle timing, the beacon reception attempt is regarded as having been made at the beacon cycle timing at which the beacon reception attempt was not made, and the signal reception standby time until the next beacon cycle timing is determined.
2. The wireless communication device according to claim 1 .
7. A computer installed in a wireless communication device that has a wireless transmitting unit that transmits a wireless signal and a wireless receiving unit that receives the wireless signal and is connectable to a wireless communication network system, a communication control means for controlling the wireless transmission unit and the wireless reception unit to connect to the wireless communication network system and perform communication; an operation storage means for storing beacon reception history information regarding beacon reception for time synchronization, which is transmitted at a beacon period timing for each fixed period from the wireless communication network system by the communication control means via the wireless receiving unit; a beacon processing means for performing a beacon reception determination process for determining whether or not to perform a beacon reception attempt for each of the beacon cycle timings based on the beacon reception history information stored in the operation storage means, and for controlling the communication control means to perform a beacon reception attempt only at the beacon cycle timings for which it has been determined as a result of the beacon reception determination process that a beacon reception attempt should be performed; A wireless communication program characterized by causing the wireless communication program to function as described above.
8. A wireless communication method performed by a wireless communication device connectable to a wireless communication network system, comprising: the wireless communication device includes a wireless transmitting unit that transmits a wireless signal, a wireless receiving unit that receives the wireless signal, a communication control means, an operation storage means, and a beacon processing means; the communication control means controls the wireless transmission unit and the wireless reception unit to perform communication control for connecting to and communicating with the wireless communication network system; the operation storage means stores beacon reception history information regarding beacon reception for time synchronization transmitted at a beacon period timing for every fixed period from the wireless communication network system by the communication control means via the wireless receiving unit; The beacon processing means performs a beacon reception determination process for determining whether or not to perform a beacon reception attempt for each of the beacon cycle timings based on the beacon reception history information stored in the operation storage means, and controls the communication control means to perform a beacon reception attempt only at the beacon cycle timings for which it has been determined as a result of the beacon reception determination process that a beacon reception attempt should be performed.
23. A wireless communication method comprising:
