Gateway device for IoT sensors or actuators
11178529 · 2021-11-16
Inventors
Cpc classification
H04W52/0274
ELECTRICITY
H04W4/80
ELECTRICITY
H04L67/567
ELECTRICITY
H04L12/66
ELECTRICITY
H04L67/12
ELECTRICITY
Y02D30/70
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
H04W84/18
ELECTRICITY
H04W88/10
ELECTRICITY
H04W24/10
ELECTRICITY
H04W52/0203
ELECTRICITY
International classification
H04W4/80
ELECTRICITY
H04L12/66
ELECTRICITY
Abstract
The present invention describes a gateway device (100, 100a) for wirelessly connecting IoT sensors, actuators or devices (150, 151, 152, etc.) and aggregating the sensor/actuator/device data into data packages (160); these sensor connections use short range (SR) wireless communication, which includes Bluetooth, BLE, Zigbee, NFC or similar wireless technology. The data packages (160) are then transmitted to a monitor centre (190) at predetermined time intervals via a low power, long range (LR), wireless wide area network (LPWAN), which includes NB-IoT, Sigfox, LoRa or similar wireless technology. BLE standard is modified to further reduce battery power consumption for use in the gateway device. In addition, scheduling of SR and LR transmissions averts wireless interference.
Claims
1. A gateway device for an IoT system comprising: a short range (SR) wireless communication module for interfacing with one or more BLE (Bluetooth low energy) sensors, actuators or devices; a memory unit containing a software to control a micro-controller, wherein data from the one or more BLE sensors, actuators or devices are aggregated into a data package; a low power, long range (LR) wireless communication module for transmitting the data package to a monitor centre at predetermined time periods; an artificial intelligence or a machine learning module disposed in the micro-controller to record time blocks when the SR wireless communication is silent and, in response, to turn on a radio associated with the LR wireless communication, so as to avert interference between the SR and LR wireless communication; and a battery for powering the gateway device; wherein the microcontroller is configured such that when a BLE sensor, actuator or device's broadcast timing has drifted or disappeared and BLE data package is lost, the microcontroller creates two scan windows in a successive scan cycle, with a first scan window located one scan interval prior to the previously known connected scan window and a second scan window located one scan interval after the previously known connected scan window, and directionally shifting the first scan window and the second scan window outwardly to the left and right by one scan interval, respectively, in each successive scan cycle to facilitate fast sensor or actuator re-discovery and re-connection, with concomitantly low power consumption.
2. The IoT gateway device according to claim 1, further comprising a setup/gateway mode switch, a charging port/local communication port and a web server module.
3. The IoT gateway device according to claim 1, wherein the SR wireless communication module is configured with a BLE a chip set.
4. The IoT gateway device according to claim 1, wherein the LR wireless communication module comprises a chip set providing narrow-band IoT (NB-IoT), Sigfox, LoRa or similar low power, long range wireless communication.
5. The IoT gateway device according to claim 1, wherein the gateway device is connectable to an external setup device via a USB, wifi or LAN port.
6. The IoT gateway device according to claim 1, wherein when the SR or LR wireless communication is silent, the gateway device is operable to turn off the radio associated with the SR or LR wireless communication so as to conserve power in the battery.
7. The IoT gateway device according to claim 1, wherein each data package comprises a header and sensor information, which sensor information includes the sensor identity and sensor value.
8. The IoT gateway device according to claim 7, wherein when the sensor value does not change, only a heartbeat message is sent to the monitor centre, instead of sending sensor value periodically.
9. The IoT gateway device according to claim 1, wherein when a data package contains a time-critical message or an ad-hoc message, the associated sensor, actuator or device transmits the message broadcast to the IoT gateway device.
10. The IoT gateway device according to claim 1, wherein: a BLE scan cycle is divided into 64 equal time blocks so that a scan window has a scan interval lasting 160 ms; a BLE scan window is shifted by one time block for each scan cycle to listen for any BLE sensor or actuator that is located within range and is cyclically advertising; and the scan window shifting and listening processes are repeated until a scan window time block substantially or effectively coincides or synchronises with a time block that a BLE sensor or actuator is advertising, and in response turning on a BLE scanner located in the IoT gateway device during these synchronised or connected time blocks to further conserve power in the battery.
11. The IoT gateway device according to claim 10, wherein a duty cycle of the scan window is a unity and therefore the BLE device is turned on for substantially 1.56% of the time during each scan cycle.
12. The IoT gateway device according to claim 10, wherein the IoT gateway device is turned off during the time blocks laying outside the sychronised or connected BLE time blocks to further conserve power in the battery.
13. The IoT gateway device according to claim 1, wherein after operating a predetermined number of re-discovery and re-connection scanning cycles, and reconnection fails, the microcontroller starts a fresh BLE sensor or actuator discovery and connection operation.
14. The IoT gateway device according to claim 13, wherein after operating a predetermined number of fresh BLE discovery cycles and connection fails to re-establish, the microcontroller declares a BLE sensor or actuator failure, and sends an alert to the monitor centre.
15. The IoT gateway device according to claim 1, wherein the artificial intelligence or a machine learning module records and learns the pattern of the IoT gateway scanner time blocks which synchronise with the time blocks of the BLE sensors or actuators, so that the IoT gateway device radio is powered on only during these synchronised time blocks so as to further conserve power in the battery.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) This invention will be described by way of non-limiting embodiments of the present invention, with reference to the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
DETAILED DESCRIPTION
(7) One or more specific and alternative embodiments of the present invention will now be described with reference to the attached drawings. It shall be apparent to one skilled in the art, however, that this invention may be practised without such specific details. Some of the details may not be described at length so as not to obscure the invention. For ease of reference, common reference numerals or series of numerals will be used throughout the figures when referring to the same or similar features common to the figures.
(8)
(9)
(10) In
(11)
(12)
(13) In the above sensor/actuator discovery step 250, operation is only for sensors/actuators that are in working order and are advertising. For sensor/actuator that has time-critical alert or contain ad-hoc message, these sensors/actuators are programmed to broadcast continuously for a minimum of 1 scan cycle.
(14) In the above description, short range (SR) wireless communication employing Bluetooth Low Energy (BLE) technology has been mentioned. To improve on BLE performance, it is possible to further minimize energy consumption to achieve energy efficiency and yet maintain responsiveness of this gateway device 100,100a for an IoT application. A BLE sensor/actuator/device 150, 151, 152, etc., called an advertiser, periodically broadcasts short data packages (PDU) within an advertising window T.sub.AW, as shown in
(15) Usually, at the start or initialization of the gateway device 100,100a (BLE scanner) and the BLE sensor/actuator 150,151, etc. are turned on at different times and, therefore, there is no synchronization of start time for the advertising interval (T.sub.AI) and the scan interval (T.sub.SI). As a result, the advertising event does not occur at substantially or effectively the same time as the scanning window, as seen in
(16) Table 1 shows a summary of the BLE parameters modified for reduced power consumption:
(17) TABLE-US-00001 Parameter Notation Value according to the present invention Scan Interval T.sub.si =160 ms for 64 time blocks Scan Window T.sub.sw T.sub.sw = T.sub.sI Scan Cycle T.sub.sc =10,240 ms Advertising Interval T.sub.AI 20 (or 100) ms ≤ T.sub.AI ≤ 10.24 s integer multiple of 0.625 ms Advertising Delay ρ pseudo-random value in [0, 10] ms Advertising Event T.sub.AE =T.sub.AI + ρ Adv. Indication T.sub.AW ≤10 ms (low duty cycle) interval
(18) A second modification is in optimizing the BLE scanner process, in the event of the BLE sensor/actuator 150,151, etc. broadcast timing has drifted with respect to the gateway device 100,100a (operating in scanner mode), for e.g., after replacing a battery in a BLE sensor, a BLE sensor is faulty, and so on. The present invention provides a fast connection method at low power consumption (instead of re-establishing connection via a fresh discovery operation (in step 250 of the sensor setup routine 210)). In this fast connection method, two scan windows are created (in a successive scan cycle) from one previously known connected scan time block, so that a first scan window appears before and a second scan window appears after the previously known connected scan time block, as shown in
(19) In the BLE gateway device 100,100a, power in short range (SR) wireless communication is relatively low, for eg. 10 mW, whilst the power in long range (LR) wireless communication is substantially higher, for eg. 200 mW. Due to proximity of the SR and LR antennae, harmful interference becomes an issue; any harmful interference will result in decrease of the effective ranges of SR and LR communication. From the aggregated advertising and scanning time blocks records, the microcontroller 110 is able to determine the time blocks when the SR communication are idle or silent, and the microcontroller is configured to activate LR communication only during the time blocks when the SR communication is silent. With this feature, interference or blocking of SR communication by the LR communication is averted.
(20) The sensors/actuators/devices 150,151,152, etc. may be binary devices or analog devices. Data of binary devices is defined in two states, 0 or 1, or on or off. Data of analog devices (such as, temperature or humidity readings) can be represented in hexadecimal values. To reduce the data packet 160 size for the LR wireless communication to send to the monitor centre 190, the latest set of sensor/actuator data is recorded in the memory 120 of the gateway device 100,100a; if there are no changes to the binary data or pattern of the analog data is repeated, the gateway device 100,100a will only send a heartbeat message to the monitor centre stating that there is no change in data value, instead of sending all the sensor data periodically. An advantage of sending this heartbeat message is also to meet a reduced payload on certain LPWAN, such as, a package size limit of 12 bytes using Sigfox.
(21) Whilst BLE wireless technology has been used to exemplify the above invention, some of the processes and methods are also applicable for use with other SR wireless technology, including other Bluetooth standards, Zigbee, NFC, and so on, and other LR wireless technology, including NB-IoT, Sigfox, LoRa, and so on. For instance, the microcontroller 110 employs artificial intelligence or machine learning in scheduling of SR and LR communication to avert interference is applicable for all the various types of SR and LR wireless technologies. In another instance, when there are no changes to the binary data or pattern of the analog data is repeated, the gateway device 100,100a will only send a heartbeat message to the monitor centre 190 stating that there is no change in data value, instead of sending all the sensor data periodically. In yet another instance, when a sensor/actuator needs to send time-critical alert or ad-hoc message to the monitor centre 190, the sensor/actuator has to broadcast the time-critical alert/ad-hoc message for the gateway device 100,100a to pick up; in response to receipt of the time-critical alert/ad-hoc message, a downlink command can be issued from the monitor centre 190 to correct or adjust the apparatus linked to the sensor/actuator 150,151, etc. (for eg. to trigger a fixed camera sensor to be turned on).
(22) While specific embodiments have been described and illustrated, it is understood that many changes, modifications, variations and combinations thereof could be made to the present invention without departing from the scope of the present invention.