The present invention relates generally to an Internet of Things (IoT) platform. More specifically, the present invention relates to an autonomous Internet of Things (IoT) platform (AIoT) capable of providing plug-and-play (PnP) and point to multipoint (P2MP) communication between different IoT devices.
The uses of Internet of Things (IoT) devices are increasing exponentially at a dizzy pace. By 2020, there are 50 billion IoT devices. At this growing rate, by 2025, the IoT will exceed 100 billion connected devices. The Internet of Things (IoT) devices are the network of smart devices embedded with sensing, actuating, software, and network connectivity to sense and exchange data between the IoT devices and with the outside world. IoT applications include smart parking, remote health monitoring, disease detection and monitoring, crop monitoring, accident prediction and detection, traffic monitoring, robotic rescue mission, environment pollution monitoring, unmanned aerial vehicle (UAV) rescue operation, which integrates and enables ambient sensing, ubiquitous communications, intelligent analytics, and pervasive computing. However, these developments of the IoT devices became complicated and slowed down because of the lacks of standardization and interoperabilities.
The Internet of Things (IoT) connects a vast number of IoT devices together to form a smart grid that generates massive amount of sensory data to reflect the status of the physical world. Evidently, this requires an internal management system and method to handle the interconnectivities among a vast amount of IoT devices. So far, machine learning, Internet of Things, and autonomous control system (ACS) are investigated in the academic realm only. Real-world solutions for intercommunication among the IoT devices that meet the bandwidth, efficiency, and power consumption requirements are still needed to reliably furnish big data to the analytic tasks. Furthermore, academic stuties are limited to the IoT system with ambient intelligence. That is, these studies are only directed to achieve dynamic and interactive IoT devices that operate based on the conditions of the surrounding environment. In other words, the data from these IoT devices are processed and analyzed by leveraging machine learning (ML) techniques, with the objective of making informed decisions to control the reactions of IoT devices to the physical world. For example, dynamic and interactive IoT thermostat learn to autonomously control central heating systems based on the presence of users and their routine. These academic stuties do not address the issues of internal management of intercommunication between IoT devices to reduce latency, inactivitiy, and network unstability. For example, there is a need for an internal management system that can decide which IoT cameras in a smart city X that can communicate with other IoT cameras and other IoT devices in a second smart city Y to avoid traffic jams. Additionally, there is a need for management system that can facilitate a decentralized IoT environment similar to blockchain in which the IoT devices can point to multi point (P2MP) communicate among one another without being arbitered by a central network.
Furthermore, at the present time, new IoT devices cannot be readily connected to the existing IoT environments in a plug-and-play (PnP) manner because many IoT devices have been deployed with their own proprietary protocols. IoT devices manufactured in different countries and regions around the world are based on different industrial standards such as IEEE, Internet Engineering Task Force (IETF), ITU-T, OneM2M, 3GPP, Telecommunication Standards Development Society, India (TSDSI), Global ICT Standardization Forum for India (GISFI), Bureau of Indian Standards (BIS), Korean Agency for Technology and Standards (KATS), CISCO, IBM, Gartner, IDC, Bosch, and European Telecommunications Standards Institute. This fragmentation of standards makes the communication between different IoT devices difficult, if not impossible. At the present time, to deploy new IoT devices, the developers have to build the entire platform from ground up including network protocols, infrastructure, hardware, software, services, and device drivers. This will limit the full connectivity and usability for users of IoT devices.
Beside connectivity issues, new IoT devices connected to excising IoT environments cannot communicate to the existing IoT devices due to the differences in their industrial standards, communication protocols, manufacturers, and physical connections. Consequently, the expansions of IoT devices result in segmented networks of IoT devices that cannot communicate to one another. This increases complexities, latencies, costs, and inefficiencies of the present IoT environments. Furthermore, the lack of standardization prevents point to multipoint communication and seamless connectivities, thus hampering the intelligent analysis and intelligent actions for artificial intelligence and machine learning—an inherent characteristics of the Internet of Things (IoT).
There exist many attempts to solve the above problems. Standardization bodies have tried to standardize the Internet of Things (IoT). However, the standardization efforts are only within their own industries. For example, IEEE has their own standardization rules, IETF, One M2M, OASIS have theirs, etc. This results in myriads of standardizations for the Internet of Things (IoT). Other inventors and private firms have also tried to solve the standardization and connectivity problems for the Internet of Things (IoT). In the U.S. patent application publication No. US-2015/0019714 by Shaashua et al. (hereinafter referred to as “Shaashua publication”), the inventors tried to solve the communication between different IoT environments. The Shaashua publication provides an interoperable system that includes an integration interface 114 and the integration service system 112 that can cross-connect IoT devices from different vertical IoT environments such as connected device A 102A in the cloud service A and connected device B 102B and connected device C 102C in the cloud serve B 106B. The Shaashua publication discloses, “For device-based integration, the integration application 328 may communicate with the IoT devices 324 belonging to different vertical solutions via an open protocol.” (Shaashua, page 3, ¶[0043]). Thus, the Shaashua publication teaches a cross-communication between IoT devices connected to different cloud services and having different manufacturing standards as well as communication protocols. However, the Shaashua publication fails to teach plug-and-play (PnP) of newly connected IoT devices and point-to-multipoint communications. The Shaashua publication focuses more on how to profiling a user than solving the plug-and-play and point to multipoint communication problems for existing IoT environments. The Shaashua publication monitors the physical environment to obtain the semantics of an entity. Furthermore, in the Shaashua system, the integration application and the integration service system only serve as intermediator or gateway for the communication between IoT devices of two different cloud servers. That is, it would take many integration service systems and integration applications of the Shaashua publication to provide point to multipoint communication in a large IoT environment having many vertical integration systems. This would increase complexities and costs. Furthermore, as the number of IoT devices increases, Shaashua's method does not guarantee point to multipoint communication for a large number of IoT devices in a large IoT environment. Shaashua also fails to teach the set up for such point to multipoint communication.
Therefore what is needed is a smart IoT management system that can efficiently and effectively manage the connectivities of a vast amount of IoT devices.
What is needed is a smart IoT management system that can facilitate the decentralized point to multiple point (P2MP) communication among different IoT devices.
Therefore what is needed is a smart IoT management system that provides an IoT environment that can provide plug-and-play between IoT devices regardless of their communication protocols established by their own manufacturers, industrial standards, and physical connections.
In addition, what is needed is an IoT agent/server, when connected, that can selectively provide plug-and-play (PnP) and point-to-multipoint (P2MP) communication not only between IoT devices but also between their gateways and servers levels.
What is needed is an IoT management system that can decide connections between newly connected and existing IoT environments, hubs, gateways, and IoT devices based on some chosen criteria such as bandwidths, power consumption, and speed.
The IoT environment and accompanying artificial intelligence based IoT gateway as well as software program of the present invention solve the above needs.
Accordingly, an object of the present invention is to provide an Internet of Things (IoT) environment managed by a deep reinforcement neural network (DRNN) which includes: a network; a plurality of IoT servers coupled together and serviced by the network; a plurality of IoT agents coupled to each other and to the plurality of IoT servers; and a plurality of IoT devices electrically coupled to the plurality of IoT agents, wherein the IoT servers and the IoT agents of the present invention further includes a deep reinforcement neural network (DRNN) operative to (i) generate an action map {at}; (ii) receive observations regarding bandwidths, transmission rate, and power consumptions and calculate a cumulative reward function Rt and an
wherein Q(s, a) is the maximum expected value of the reward function Rt and Q(s, a) is written as
where E is an expected value of the value function Q(s, a,); wherein the cumulative reward function Rt
is not achieved, then select another action map {at+1} that yields the highest probability of achieving
that meets both bandwidth and power consumption requirements; otherwise, use the action map {at} to program a webapp configuration program.
An object of the present invention is to provide an Internet of Things (IoT) platform (econsystem) which includes: a network; a plurality of IoT servers coupled together and serviced by the network; a plurality of IoT agents coupled to each other and to the plurality of IoT servers; and a plurality of IoT devices electrically coupled to the plurality of IoT agents, wherein the IoT servers and the IoT agents of the present invention are operable to configure a plug-and-play and point to multipoint communication environment where the plurality of IoT devices, the plurality of IoT servers, and the plurality of IoT agents communicate with one another in a plug-and-play and in a point to multipoint manner regardless of their physical connections, industrial standards, and communication protocols; and the PnP&P2MP communication is managed by a deep reinforcement neural network (DRNN).
Another object of the present invention is to provide a method for achieving a plug-and-play point to multiple point communication between a plurality of IoT devices, a plurality of IoT agents, and a plurality of IoT servers regardless of their physical connections, industrial standards, and communication protocols; the method comprising:
(a) detect a physical connection for each of the plurality of IoT devices, a plurality of IoT agents, and a plurality of IoT servers;
(b) detect a communication protocol for each of the plurality of IoT devices, a plurality of IoT agents, and a plurality of IoT servers;
(c) establish a plug-and-play communication with the plurality of IoT devices, a plurality of IoT agents, and a plurality of IoT servers based on said physical connection, said industrial standards, and said communication protocols;
(d) determine whether each of the plurality of IoT devices, the plurality of IoT agents, and the plurality of IoT servers is incorporated in a control webapp, if the plurality of IoT devices, the plurality of IoT agents, and the plurality of IoT servers are included the control webapp, then
(e) use the control webapp to create a point to multipoint communication and plug-and-play environment for the plurality of IoT devices, the plurality of IoT agents, and said plurality of IoT servers;
(f) if any of the plurality of IoT devices, the plurality of IoT agents, and the plurality of IoT servers is not included in the control webapp, detect their operating parameters, their communication protocols, and their industrial standards;
(g) create configuration files for each of the plurality of IoT devices, the plurality of IoT agents, and the plurality of IoT servers based on said said operating parameters, the communication protocols, and the industrial standards;
(h) embed the configuration files and load said said operating parameters, the communication protocols, and the industrial standards into said control webapp, and
(i) perform the step of using the control webapp to create the point to multipoint manner and in the plug-and-play manner.
Yet another aspect of the present invention is to provide an IoT agent/server for managing an IoT environment all connected together and serviced by a network; the IoT environment (ecosystem) comprising pre-existing a plurality of IoT devices, pre-existing IoT agents, and pre-existing IoT servers. The IoT agent/server includes:
a configuration module configured to form and manage a control webapp;
a data handler module configured to manage and convert data and commands from the pre-existing IoT devices, a plurality of IoT agents, and a plurality of IoT servers;
an artificial intelligence and machine learning module configured to perform data analysis and predict operation behaviors of all IoT devices;
a device manager module to manage the plug-and-play and point to multipoint communications for all IoT devices by creating virtual nodes between said IoT agent and said plurality of IoT devices as soon as said plurality of IoT devices are first electrically coupled to and detected by said at least one IoT agents.
All the above aspects of the present invention achieve the following features and objectives:
An IoT environment that can achieve plug-and-play and point to multipoint communication for all IoT devices, IoT agents regardless of their industrial standards, physical connections, and communication protocols.
After connected to any pre-existing IoT environment, the IoT agent and IoT server of the present invention are capable of rendering such pre-existing IoT environment into a plug-and-play and point-to-multipoint communication IoT environment.
A plug-and-play and point-to-multipoint platform that can provide real-time data for all IoT devices connected thereto to increase the data analytics capability and artificial intelligence/machine learning to accurately predict the behaviors of users.
These and other advantages of the present invention will no doubt become obvious to those of ordinary skill in the art after having read the following detailed description of the exemplary embodiments, which are illustrated in the various drawing Figures.
The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
The figures depict various embodiments of the technology for the purposes of illustration only. A person of ordinary skill in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the technology described herein.
Reference will now be made in detail to the exemplary embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the exemplary embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be obvious to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the present invention.
As used herein, the term “action map” refers to which connections among IoT devices 111-1 to 120-N and 300-1 to 300-M to be selected.
Various aspects of the present invention are now described with reference to
Continuing with
Continuing with
It will be noted that a group of m IoT devices of 111-1 to 120-N can be pre-existing, i.e., pre-connected to DRNN-based IoT platform 100 before the other newly connected (K+L+N−m) IoT devices. Alternatively, the (K+L+M−m) IoT devices can be newly connected as compared to previously connected m IoT devices. IoT devices that are connected to network 101 either before or after are made by different manufactures having different physical connections, communication protocols, industrial standards, as well as operating parameters from those in first integration group 111 of the present invention. IoT devices 111-1, 111-2, . . . , 111-K in first integration group 111; IoT devices 112-1, 112-2, . . . , 112-L in second integration group 112; and IoT devices 120-1, 120-2, . . . , 120-N in third integration group 120 can be devices connected to control the operations and receive real-time data from refrigerators, smart watches, garage openers, air conditioners, thermostats, cameras, faucets, sprinkler systems, mobile phones, sensors, wearable devices, etc. IoT agents (supervisors) 300-1, 300-2, and 300-M can be gateways, IoT agents, IoT interfaces, supervisors, etc. that are made by different manufacturers with different physical connections, communication protocols, and operating parameters and functionalities. These IoT devices have different operating parameters such as open/close, ON/OFF, temperatures, times, pressure, images, blood pressures, heart beats, bandwidth, power consumption, etc. Based on the known parameters, DRNN-based IoT platform 100 uses either stochastic policy gradient (SPG) or deterministic policy gradient (DPG) algorithm to select the next action map {at} and state Si. Network 101 can be data center, edge/fog/cloud, or network such as nanonetwork, body area network (BAN), personal area network (PAN), local area network (LAN), campus/corporate area network (CAN), metropolitan area network (MAN), wide area network (WAN), and mesh area networks, or any combinations thereof.
As shown in
(1) plug-and-play and point-to-multipoint communication for all IoT devices from 111-1 to 120-N represented by an action map {at}, and state Si that meets connectivity, parallel processing, power consumption, speed, and bandwidth requirements, thus reducing system latency, maximizing performance, and enhancing usability.
(2) Optimal management of the entire IoT environment using deep reinforcement neural network that has high probability of convergence and optimal performance; and
(3) An IoT platform behaves like a blockchain in which IoT devices can freely exchange data needed for essential analytics.
The detailed hardware and software structures of IoT agents (agents) 300-1 to 300-M, IoT servers 200 with deep reinforcement neural network (DRNN) of the present invention will be described in details in
Now referring to
Continuing with
Memory 220 includes a basic Input/Output system (BIOS) 221, a data storage 222, a data repository 230 which includes value data storage 231 and replay data storage 232 for all IoT devices 111-1 to 120-N within IoT environment 100. More specifically, value data storage 231 is used to store different action map {at}, state data Si, cumulative reward function Rt, value function Q(a, s), loss function , which will be shared with the target network in the freezing target network algorithm designed to reduce the complexities of the neural network (see
Continuing with
Still referring to
that is if the total power consumption for an action map {at}. selected by DRNN is within the threshold power consumption, then a positive reward Ra is given; otherwise a negative reward Rb is given.
Device and system parameters including physical connections, communication protocols, industrial standards, bandwidth, power consumption, speed are fed to reinforcement learning (RL) module 451 so that the shortest path to the optimal value function Qt+1(a,s) can be chosen. The main function of RL module 451 is to maximize the value function Q(a,s). Value function is defined as Qt+1(St, at)=Qt(St, at)+∝(Rt+1+γmax(Q(St+1, at+1)−Qt(St, at)); where a is the learning rate and γ is the discount rate. Loss function is defined as =E[(r+γmaxa′Q(s′, a′)−Q(s, a))2], where E is the expected value of the difference between the target value and the prediction value. A neural network module 252 performs the learning process that substantially reduces number of storage capacity to store the state data set and Q values stored of value data storage 231. Without neural network module 252, the trial and error interaction with the environment of RL module 251 is hard to be learned due to the formidable computation complexity.
Continuing with
It will be noted that system 200 can be connected as a cluster different IoT servers 210-1 to 210-P serviced by network 201. IoT server 210-1 and IoT server 210-P can be a pre-existing servers which are different from IoT server 210 of the present invention. More particularly, pre-existing (pre-connected) IoT server 210-1 and IoT server 210-P are connected to network 201 via a communication channel 202. IoT server 210 of the present invention is also connected to network 201 via communication channel 202. All IoT servers 210-1, 210, and 210-P can be connected together in a master-slave configuration via another communication channel 203. As alluded above, network 201 can be data center, cloud/edge/fog, or network such as nanonetwork, body area network (BAN), personal area network (PAN), local area network (LAN), campus/corporate area network (CAN), metropolitan area network (MAN), wide area network (WAN), and mesh area networks, or any combinations thereof. Communication channels 202 and 203 can be wireless channels such as Bluetooth, 4G, LTE, 5G, Wi-Fi, Zigbee, Z-wave, radio frequency (RF), Near Field Communication (NFC), Ethernet, LoRaWAN, or can be wired connectors such as RS-232, RS-485, USB, or any combinations thereof. IoT server of the present invention 210, pre-existing IoT servers 210-1 and 210-P can communicate to network 201 using different communication protocols such as Message Queue Telemetry Transport (MQTT), Data Distribution Service (DDS), HTTP, TCP/IP, (Advanced Message Queuing Protocol (AMQP), Modbus, BACnet, OPCUA, or any combinations thereof. It is also noted that pre-existing IoT servers 210-1 and 210-P are IoT servers that are connected to sub-networks (not shown) different from networks 201 either before or after IoT server 210 of the present invention. IoT servers 210-1 and 210-P and sub-networks may be made by different manufactures having different physical connections, communication protocols, industrial standards, as well as operating parameters from those of IoT server 210 of the present invention.
Continuing with
Now referring to
Continuing with
Continuing with
Still referring to
The control webapp (see
Now referring to
At step 401, the physical connections and the existence of IoT devices, IoT agents, IoT servers are detected as soon as the IoT agent and IoT server of the present invention are connected in each of integration groups 111, 112, or 120. In implementing step 401, communication protocol module 319, action connection firmware 341, and PnP API 331 are used. In some embodiments, external connection module 319 is a scanner that scan barcodes, RFID, QR codes, and any other codes that contain physical connections of each IoT device 111-1 to 120-N. In many embodiments of the present invention, PnP API 331 and action connection firmware 341 are sent into IoT environment 100 in order to detect the current physical connections. Physical connections within the scope of the present invention include wireless short range communication channels include ZigBee™/IEEE 802.15.4, Bluetooth™, Z-wave, NFC, Wi-fi/802.11, cellular (e.g., GSM, GPRS, WCDMA, HSPA, and LTE, 5G, etc.), IEEE 802.15.4, IEEE 802.22, ISA100a, wireless USB, and Infrared (IR), LoRa devices, etc.. Medium range wireless communication channels in this embodiment of communication link 161 include Wi-fi and Hotspot. Long range wireless communication channels include UHF/VHF radio frequencies. Wired connections include RS-232 and RS-485.
Next is step 402, the communication protocols of each device within the IoT environment is detected. In many aspects of the present invention, step 402 is implemented using external connection manager 319. Within the scope of the present invention, communication protocols include Message Queue Telemetry Transport (MQTT), Data Distribution Service (DDS), Web/HTTP-HTML, TCP/IP-Internet, e-mail/IP-Internet, (Advanced Message Queuing Protocol (AMQP), Modbus, BACnet, OPCUA, Wireless Application Protocol (WAP), or any combinations thereof. Once communication protocols are detected, the sets of hardware/software rules that enables end-points communication between IoT servers 200, IoT agents 300-1 to 300-M, and IoT devices 111-1 to 120-N are known.
At step 403, once physical connections and communication protocols are known, communication within the IoT environment are established. In various implementations of step 403, device controller 342 and webapp configuration module 343 map out virtual nodes and the entire infrastructure of IoT environment 100. Agent manager module 241 temporarily installed in EEPROM/Flash 312 of IoT agent 300 will receive and convert any commands in accordance to the communication protocols of each IoT device 111-1 to 120-N. Switching network/routers 318 is implemented as hardware that plays an important roles in the realization of step 403. Step 403 achieves plug-and-play between IoT agents 300-1 to 300-M, IoT devices 111-1 to 120-N, and servers 210, 210-1 to 210-P.
At step 404, whether each IoT device, IoT agent, and IoT server represented by a virtual node and infrastructure are incorporated into the control webapp is determined. Step 404 is implemented by device controller 342 and agent manager 241. In many aspects of the present invention, device controller 342 and agent manager 241 go into webapp configuration module 243 to check if newly found virtual nodes and infrastructure have been embedded in the control webapp in form of software buttons and device engines designed to control the plug-and-play and point to multipoint communication for each virtual node and each infrastructure.
At step 405, if the answer to step 404 is NO, operating parameters, industrial standards, physical connections, communication protocols of each IoT device, IoT agent, IoT server are read and embedded into each virtual node. Consequently, each virtual node representing an IoT device is provided with an ID. In many aspects of the present invention, step 405 is implemented by PnP API 331 including many device engines that enter each IoT device 111-1 to 120-N, each IoT agent 300-1 to 300-M, and IoT server 210-1, 210-2, and 210 to retrieve these information. In some other aspects of the present invention, external connection manager 319 can be used to scan in the barcodes, QR codes, optical codes, RFID codes, and other codes that contain the above information.
Next, at step 406, the above information is incorporated into a configuration file. In some aspects of the present invention, configuration file is created and maintained by webapp configuration module 243 in form of a software GUI template. Information regarding physical connections, communication protocols, operating parameters, manufacturers, virtual nodes, and infrastructure are filled in entries of the software template. Please refer to
At step 407, action map {at} that satisfied
condition is loaded into the configuration module to established P2MP communication in the Internet of Things environment. Step 407 is realized by action connections firmware 341 configured to take information from action map {at} to connect webapp configuration module 243. Webapp configuration module 242 uses action map {at} and the configuration file to create the GUI control webapp of
At step 408, plug-and-play and point to multipoint communication of the IoT environment is controlled by the control webpage. In many aspects of the present invention, when a user registers to use the services provided by the control webapp, the user first logs in and sets the operations of IoT environment 100. Once the plug-and-play and point to multipoint communication is set, the control webapp sends out instructions to virtual nodes, device controller 342 and agent manager 241 to perform the tasks set by the user. Referring back to step 408, when a newly connected IoT is connected to a pre-existing (pre-connected or pre-linked) IoT environment and it is determined that this newly connected IoT device is already incorporated in the control webapp, step 408 is performed.
In summary the following objects of the present invention are achieved by process 400 of the present invention:
Point to multipoint (P2MP) communication in the Internet of Things environment shown in
An IoT environment that can achieve plug-and-play and point to multipoint communication for all IoT devices, IoT agents regardless of their industrial standards, physical connections, and communication protocols.
After connected to any pre-existing IoT environment, the IoT agent and IoT server of the present invention are capable of rendering such pre-existing IoT environment into a plug-and-play and point-to-multipoint communication IoT environment.
A plug-and-play and point-to-multipoint platform that can provide real-time data for all IoT devices connected thereto to increase the data analytics capability and artificial intelligence/machine learning to accurately predict the behaviors of users.
Referring now to
In one particular embodiment of the present invention, control webapp 500 is displayed as a webapp on a computer screen of a user with a pointing device 501. In other embodiments of the present invention, control webapp 500 can be displayed on a touchscreen of a mobile phone and pointing device 501 is a finger of a user.
Continuing with
IoT device reading section 520 includes an IoT agent box 521, IoT device 522. Below are all current operating parameter boxes such as operating parameter 1523, operating parameter 2524, and operating parameter K 525. A non-limiting example of IoT device reading section 520 is the display of the IoT device 522 as an air conditioner (AC) having first operating parameter 1523 as real-time temperature (° C.), operating parameter 2524 as time interval when the AC is turned on. For example, the user can set the AC to be turned on for 8 hours a day. Operating parameter K 525 is the speed of the AC. IoT agent box 521 is the hub or gateway where the AC is directly connected to. It is noted that the user can add or remove the operating parameters 523-525. For example, the user can add in the angle and/or the direction of the fan of the AC as other operating parameters. The connection between each IoT device 111-1 to 120-N and its IoT agents 300-1 to 300-M forms a virtual node which includes all the operating parameters 523 to 525. Beside IoT box 521 and IoT device ID box 522 are PnP API 331, IoT device configuration module 345 and and their corresponding device engines that enter each IoT device 111-1 to 120-N to retrieve the necessary information such as operating parameters, communication protocols, physical connections, etc. so that webapp configuration module 242 can build control webapp 500 and IoT device reading section 520.
Continuing with
Still referring to
Continuing with
In IoT device setup section 560, a ON/OFF box 561 allows the user to turn on or off the modification for each IoT device 111-1 to 120-N. If box 561 is turned on, it allows the user to either add or remove operating parameters in an add/remove box 562. If the user changes operating parameters of an IoT device, IoT device reading section 520 will change accordingly. Finally, a mode box 563 sets either real-time mode or interval mode for each IoT device 111-1 to 120-N. When the user moves pointing device to mode box 563, a dropdown menu 563-M listing all the modes of each IoT device will appear to allow the user to select the mode of data transmission. As a non-limiting example, when the user wants IoT device 120-1 to transmit data in the real-time mode, the user shall do to the IoT device reading section 520 to change IoT device ID box 522 to display IoT device 120-1 and IoT agent ID box 521 to IoT manger 300-M. Then the user moves pointing device 501 to mode box 563 to select the real-time mode. As a result, IoT device 120-1 starts to send data to be displayed in IoT device reading section 520 in real-time manner.
Next, referring to
At step 601, a control webapp is activated and displayed. In accordance with many embodiments of the present invention, the control webapp is an interactive tool that directly controls the plug-and-play and point to multipoint communication between IoT devices 111-1 to 120-M in a manner described above in
At step 602, a subscribed user signs in and carries out the authorization process. Step 602 is implemented by a log-in section 510 of control webapp 500. In various aspects of the present invention, other authentication method such as RFID, biometrics, or random codes can be used.
At step 603, operating parameters for each IoT device are modified. Step 603 is implemented by IoT device reading section 520 and IoT device setup section 560.
At step 604, whether operating parameters of IoT devices, IoT agents, and/or IoT servers are modified by users. If the answer is YES, then at step 605, the DRNN algorithm 700 is performed. That is, a new action map {at+1} is proposed, a cumulative reward function Rt,
are recalculated to determine whether the bandwidth, speed, and power consumption are met.
At step 606, configuration file is updated. The configuration file is updated based on the changes that user selects in step 602 to 604. Step 605 is implemented by webapp configuration module 241, DRNN 245, configuration module 345, IoT device controller module 342, and PnP API 344.
At step 607 and step 608, if there are no change in the operating parameters, action map {at}, then P2MP communication among IoT devices continues. Consequently, there is no change in stage s of previous action map {at}.
At step 701, a first action map {at} is proposed and then its
is observed. In various aspects of the present invention, Q(s, a) is a value equation defined as as Q(s,a)=E[γtrt|s, a, π]. E is the expected value of the cumulative reward function Rt, and γ is the discount value. The cumulative reward function Rt is defined based on sum of total bandwidth that converges to a network bandwidth (BWo) and total power consumption that converges to a preset power consumption (Pth). If an action map {at} yields an aggregate system power consumption and bandwidth that are less the the network bandwidth (BWo) and a preset power consumption (Pth), then a reward function rt is Ra. Otherwise, the reward is −Rb. The network bandwidth (BW0) inherently depends on the network layer of IoT platform 100 and how it is set up. Within the present invention, the cumulative reward Rt is defined as Rt=ΣtTγtrt; where is a discount factor and its value range is [0,1], and rt is defined as
that is if the total power consumption for an action map {at}. selected by DRNN is within the threshold power consumption, then a positive reward Ra is given; otherwise a negative reward Rb is given.
At step 702, the total bandwidth of the first action map {at} is calculated. Step 702 is realized by using an arithmetic logic unit (ALU) in GRU 301 to sum up all the communication bandwidth amongst IoT devices 111-1 to 120-N. For example, if IoT device 111-1 is P2MP communicating with 5 other IoT devices, e.g., 120-1, 120-2, 112-1, 112-1, 111-K. This P2MP communication is an action map {at}. The total communication bandwidth utilization BWc can be observed and obtained. DRNN 450 uses these initial problems and constraints to randomly select an action map {at} and state St.
At step 703, the total communication bandwidth is compared with an available network bandwidth (BWo). In each communication system, there exists an inherent communication bandwidth (BWo) defined by the network configuration of IoT platform 101 and the upper and lower communication frequencies of each IoT devices. For example, if IoT platform 100 is connected in LoRaWAN configuration, the data rate is 500 kHz depending on the region and frequency plan. If network 101 is Cloud/Fog/Edge network, then the bandwidth (BWo) depends on the location.
At step 704, if BWo is less than the communication bandwidth utilization (BWc) then the total power consumption (Pe) is calculated. Both steps 703 and 704 are realized by communication protocol module 319, device controller 342, agent manager 241. They sum all the power requirement by each IoT device 111-1 to 120-N together.
At step 705, whether the total power consumption (Pe) is greater than a threshold power consumption (Pin) is determined. Step 705 is realized by using an arithmetic logic unit (ALU) in GRU 301 to sum up all the power consumption amongst IoT devices 111-1 to 120-N. For example, if IoT device 111-1 is P2MP communicating with 5 other IoT devices, e.g., 120-1, 120-2, 112-1, 112-1, 111-K. This P2MP communication is action map {at}. The total power consumption Pe by these 5 IoT devices can be observed and obtained.
At step 706, Q-loss function is calculated. Q-loss function is defined as the root means square of the difference between the target cumulative reward function Rt* and the estimated Rt. Rt is obtained from step 702 and step 703 above in terms of bandwidth utilization and power consumption. While Rt* is an optimal cumulative reward function inherent in any communication system.
At step 707, whether the Q-loss function is minimal is determined. That is, =E[(rt+γmaxa′Q(s′, a′)−Q(s, a))2] is minimal. Collolary, whether the estimated Rt sufficiently equals to the target Rt* function. Whether the select action map {at} and state Si yield a value function Q closest to the target value function set by the parameters of IoT system 100. That is,
The target values Rt is based on the known bandwidth (BWo) and threshold power consumption (Pth) and/or other system parameters such as transmission rate, speed, latency, etc.
At step 708, if the Q-loss function is minimal, then issue the suggested action map {at}, and use this template to program the control webapp page 500 as shown in
If any of the answers to step 703, 705, and 707 are NO, then step 709 is performed by introducing another action map {at+1} and perform steps 701 to step 708 again. In some aspects of the present invention, step 709 includes storing some of the actions that have less priorities and slower speeds than the rest of the action map {at} in a cache memory until these conditions in steps 703, 705, and 707 are met.
Then at step 710, a next action map {at+1} are suggested using either Stochastic Policy Gradient (SPG) or Deterministic Policy Gradient (DGD).
At step 711, everytime the next action map {at+1} is suggested, steps 701 to step 708 are performed again.
At step 712, after an action map {at+1} is successfully introduced, method 500 including modifying the operating parameters of IoT devices 111-1 to 120-N is performed again by users.
Finally at step 713, occasionally or after a certain number of iterations, e.g., 10,000, the discount rate γ and the learning rate α is recalculated based on the learning of the DRNN module 250.
Now referring to
When IoT device environment 100 are connected together, DRNN 800 first proposes an initial action map {at}, in a forward path 801. Then, an observation 802 is received that returns the total power consumption (Pc) and bandwidth (BWc) of the initial action map {at}. An action map {at} is a map indicating all connections among IoT devices 111-1 to 120-N. For example, an initial action map {at} may be IoT device 111-1 is communicating with IoT devices 112-6 and 112-100 in second integration group 112 and IoT device 120-1, 120-9, and 120-27. Cumulative reward function Rt for this action map {at} is calculated, involving bandwidth and power consumption as described in step 703 and 705 respectively. Then a Q function and Q-loss function are calculated as described in step 706. Q value function is the expected value E of all future cumulative reward function Rt given an action map {at} and a state St. That is, Qt+1(St, at)=Qt(St, at)+∝(Rt+1+γmax(Q(St+1, at+1)−Qt(St, at)). Q-loss function is defined as the root means square of the difference between the target Rt function and the proposed Rt function. That is =E[(rt+γmaxa′Q(s′, a′)−Q(s, a))2]). If, from observation path 802, Q-loss of initial action map {at} cannot achieve the minimal Q-loss, a second action map {at+1} is proposed and another observation is evaluated. These iterative steps (e.g., step 702, 703, and 705) are performed until the Q-loss function is minimal or within a preset range.
Continuing with
From the disclosures above as illustrated in
Computer program code for carrying out operations for aspects of the present invention such as PnP&P2MP module 340 or DRNN application specific module 240 may be written in any combination of one or more programming languages, including an object oriented programming language such as Python, Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
The disclosed flowchart and block diagrams illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, element components, and/or groups thereof.
The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
The flow diagrams depicted herein are just one example. There may be many variations to this diagram or the steps (or operations) described therein without departing from the spirit of the invention. For instance, the steps may be performed in a differing order or steps may be added, deleted or modified. All of these variations are considered a part of the claimed invention.
While the preferred embodiment to the invention had been described, it will be understood that those skilled in the art, both now and in the future, may make various improvements and enhancements which fall within the scope of the claims which follow. These claims should be construed to maintain the proper protection for the invention first described.
The foregoing description details certain embodiments of the invention. It will be appreciated, however, that no matter how detailed the foregoing appears in text, the invention can be practiced in many ways. As is also stated above, it should be noted that the use of particular terminology when describing certain features or aspects of the invention should not be taken to imply that the terminology is being re-defined herein to be restricted to including any specific characteristics of the features or aspects of the invention with which that terminology is associated. The scope of the invention should therefore be construed in accordance with the appended claims and any equivalents thereof
This application is a continuation-in-part application under 35 U.S.C. § 120 of application Ser. No. 17/068,952, entitled “Intelligent Plug-and-Play Point-to-Multipoint Internet of Things (Iot) Platform and Method of Managing and using the Same”, filed on Oct. 13, 2020. The parent application is incorporated herewith in its entirety for references.
Number | Date | Country | |
---|---|---|---|
Parent | 17068952 | Oct 2020 | US |
Child | 17646711 | US |