Partially connected device
By introducing a proxy mode and client mode switching mechanism in IoT devices, using multiple wireless communication protocols to dynamically manage device connections, the problem of IoT device connection management in large environments is solved, and efficient management and flexible expansion of a large number of devices is achieved .
Patent Information
- Application Number
- CN202380031531.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-03-29
- Filing Date
- 2023-03-23
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-03-23
AI Technical Summary
It is difficult to effectively manage a large number of IoT devices in prior art, especially in large office environments, where enterprise-level APs cannot maintain a sufficient number of connections to allow all IoT devices to remain active.
By providing a device and system, the device can be operated interchangeably in proxy mode or client mode, connect to a wireless network using a first wireless communication protocol to receive operation instructions, and transmit broadcast messages over a second wireless communication protocol , dynamically manage device connections, avoid pre-planning of network architecture and manually managing device count.
The management of an almost unlimited number of IoT devices is achieved, reducing the number of direct connections to Wi-Fi APs, avoiding device overload, and improving system flexibility and scalability.
Smart Images

Figure CN118975281A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to managing devices using a combination of wireless networks and direct device-to-device communications. Background Art
[0002] A smart device is a device that can be remotely controlled via a device such as a smartphone, such as a light bulb, a smart plug, a switch, etc. Such a device may be referred to as an Internet of Things (IoT) device. An IoT device is a device that includes at least one component (e.g., such as a light bulb or an actuator) that can be remotely operated via an operating instruction. The operating instruction may be transmitted wirelessly, for example, via a wireless network.
[0003] US patent application US2013 / 0083722 A1 discloses a method for extending the coverage area of a cellular network to enable a user of a wireless device to control an appliance such as a lamp. To this end, it is proposed to allow a wireless device (e.g., a cellular phone) to communicate with a base station in a cell via another wireless device in the cell of the cellular network over a non-cellular interface using multiple hops.
[0004] European patent application EP 3955642 A1 discloses another method for extending the coverage area of a cellular network, wherein a first user equipment has a relay role and relays the communication between a base station and a second user equipment in a cell, and when signal conditions change, the role of the user equipment is reversed. A combined role reversal of the user equipment combined with handover is also disclosed.
[0005] A wide range of IoT devices can be used for different functions. Many of these devices need to be connected to the Internet in order to be remotely controlled. For example, in use, a smart device can be connected to a Wi-Fi network in order to access the Internet and thereby receive operating instructions.
[0006] Problems can arise when a user wishes to install a large number of IoT devices in one location, such as, for example, a residence or office. Each of these devices typically requires an internet connection to operate. As mentioned above, this is typically in the form of a wireless connection to a Wi-Fi access point (AP). Consumer-grade APs can only maintain connections with a relatively small number of devices at the same time; a typical maximum might be 30-50 devices simultaneously. For example, in a small office environment, if 10 employees each have a computer and a smart device each connected to the AP, then the AP will be close to the maximum number of connections it can maintain. This may result in a maximum of 5-10 IoT devices being able to connect to the AP without the risk of an employee being unable to connect their device.
[0007] In larger offices where a large number of lighting devices, switches, and plugs need to be connected to the network, it is clear that even enterprise-grade APs may not be able to maintain a sufficient number of connections to allow all IoT devices to maintain active connections. Therefore, a technical problem arises as to how to manage a large number of IoT devices. Therefore, there is a need to provide an alternative method for managing IoT devices.
[0008] There are existing solutions, such as the use of Zigbee networks. Zigbee networks use Zigbee coordinators, which maintain an Internet connection (usually via a wireless connection to a Wi-Fi AP) and broadcast the Zigbee network. End devices are authenticated and connected to the Zigbee network and receive instructions via the network. Zigbee networks are similar to Wi-Fi networks, but use the IEEE802.15.4 technical standard to define the operation of low-rate wireless personal area networks (LR-WPANs). Summary of the invention
[0009] While existing solutions (such as the Zigbee system discussed above) reduce the number of devices that connect directly to a Wi-Fi AP, Zigbee network controllers themselves are also limited by the number of end devices they can connect to simultaneously. Therefore, the structure of such a system must be planned in advance to ensure that a sufficient number of network controllers are used to manage the end devices. In addition, when adding new devices to the system, care must be taken to ensure that existing controllers can remain connected.
[0010] Devices, systems and methods are disclosed herein that provide improved ways of providing operating instructions to devices such as IoT devices. The present disclosure allows a substantially unlimited number of devices to be controlled via a wireless network. The present disclosure does not require pre-planning of the network architecture, nor does it require manual management or maintenance of the number of control devices and terminal devices.
[0011] According to a first aspect disclosed herein, a first device is provided as one of a group of devices, the first device comprising: an application component configured to be operated by a remote operator via one or more operation instructions; a controller; and a wireless interface for connecting to a wireless network using a first wireless communication protocol and receiving and transmitting broadcast messages using a second wireless communication protocol.
[0012] According to a first aspect, a first device is configured such that, in use, it can operate interchangeably in a proxy mode or a client mode in order to receive operating instructions; wherein in the proxy mode, the first device is configured to connect to a wireless network using a first wireless communication protocol, so that, in use, operating instructions are received via the connected wireless network using the first wireless communication protocol; and wherein when switching to the client mode, the first device is configured to disassociate from the wireless network using the first wireless communication protocol; wherein in the proxy mode or the client mode, the first device is configured such that, in use, operating instructions are received via one or more input broadcast messages using a second wireless communication protocol.
[0013] According to the first aspect, the first device is also configured such that, in use, in response to receiving an operating instruction using the first wireless communication protocol or the second wireless communication protocol, the operating instruction is forwarded by the first device in one or more output broadcast messages using the second wireless communication protocol; and when the first device operates in proxy mode, the controller switches the first device to operate in client mode in response to at least one of the following: determining that a threshold number of other devices are connected to the wireless network using the first wireless communication protocol; and the first device has received an operating instruction addressed to the first device to switch to client mode using the first wireless communication protocol.
[0014] According to a second aspect disclosed herein, there is provided a corresponding method of operating a first device according to the first aspect.
[0015] According to the third aspect disclosed in this document, a system is provided, comprising: a device operating in proxy mode according to the first aspect; and a device operating in client mode according to the first aspect; wherein, in use: the device operating in proxy mode receives operation instructions via a connected wireless network using a first wireless communication protocol, and in response to the received operation instructions, transmits the operation instructions forward in one or more output broadcast messages via a second wireless communication protocol; the device operating in client mode receives one or more input broadcast messages via a second wireless communication protocol, the one or more input broadcast messages corresponding to one or more output broadcast messages including operation instructions broadcast by the first device via the second wireless communication protocol; and the device operating in client mode transmits the operation instructions forward in one or more output broadcast messages via the second wireless communication protocol in response to the received operation instructions.
[0016] According to some embodiments disclosed herein, a device may initially operate in "legacy mode" as a regular Wi-Fi STA or alternatively as a Wi-Fi soft AP. When operating in legacy mode as a STA, the device will need to be provisioned, i.e., network credentials will need to be provided to allow the device to connect to a Wi-Fi AP. The device may operate in legacy mode as a default startup. For example, a provisioning process in which a user uses wired access or other customary provisioning processes may provide the device with login credentials required to connect to a Wi-Fi AP, such as the basic service set identifier (BSSID) and password of the AP. Alternatively, the device may initially be started in "legacy mode" as a soft AP, thereby facilitating a provisioning device such as a mobile phone or tablet to connect to the soft AP and communicate. The provisioning device may then provide the device with network credentials for a Wi-Fi (infrastructure) AP. Thus, the provisioning process may be performed using a Wi-Fi protocol, a Wi-Fi Direct protocol, or more alternatively, a Bluetooth protocol.
[0017] A device operating in a legacy mode may, in response to instructions provided from a remote server (e.g., in the cloud), after being triggered by a user, switch to operating in a proxy / client mode (as described in the aspects disclosed above) in response to determining that a threshold number of other devices connected to the Wi-Fi AP are also operating in a legacy mode and / or by detecting that one or more other devices within a threshold range are capable of operating in a proxy / client mode. In the case of a Wi-Fi system, by having a device (STA) switch to client mode and disassociate from a Wi-Fi AP, the number of devices associated with the Wi-Fi AP may be reduced, and a second wireless communication protocol may be used to forward operating instructions from a remote operator to a client device.
[0018] According to some embodiments disclosed herein, a device operating in client mode may intermittently connect to a wireless network using a first wireless communication protocol in order to download a firmware update. The connection may be triggered after a preset time period has elapsed since the last connection, or may be triggered in response to an instruction received from a remote server or from a user. Optionally, the proxy device and the client device, or alternatively the client device, may coordinate the time when they join / associate to the first wireless network to avoid associating too many devices at once, a simple solution may involve a round-robin scheme or time slot allocation.
[0019] According to some embodiments, the first wireless communication protocol is IEEE 802.11 operating in infrastructure mode, where one or more access points use a basic service set (BSS) or an extended service set (ESS).
[0020] According to some embodiments, the second wireless communication protocol is based on Wi-Fi Direct, wherein the IEE 802.11 protocol is used with peer-to-peer extensions from Wi-Fi Direct. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] To aid understanding of the present disclosure and to show how embodiments may be implemented, reference is made by way of example to the accompanying drawings, in which:
[0022] Figure 1 A device according to the invention is schematically shown.
[0023] Figure 2 A system according to the invention is schematically shown, comprising a device operating in a proxy mode and a device operating in a client mode. DETAILED DESCRIPTION
[0024] The following describes a device configured to operate in a proxy mode or a client mode. Methods of operating such a device and systems including two or more such devices are also described. By being able to operate interchangeably in a proxy mode or a client mode, the present disclosure provides a solution in which the number of devices connected to a wireless network (such as a Wi-Fi network provided by a Wi-Fi AP) can be changed dynamically without changing the number or type of devices in the system. These devices can switch between operating in a proxy mode and operating in a client mode, either automatically or in response to instructions transmitted by a remote operator. This solution is advantageous because it allows an almost unlimited number of devices according to the present disclosure to be part of a system of devices without imposing any requirements on the wireless network or the types of devices required within the system.
[0025] Figure 1 An example of a device 100 according to embodiments disclosed herein is schematically illustrated. The device 100 includes an application component 102, a controller 104, and a wireless interface 106. In some examples, the device 100 may also include a memory 108 configured to store information.
[0026] An application component 102 according to the present disclosure is a component configured to be operable by a remote operator via one or more operating instructions. In some examples, a device may include more than one application component 102. The remote operator may, for example, be a cloud-based control system that manages a network of field application devices installed in a home or office environment. An application component may be used for a single application such as a lighting application, including a controller (wireless switch), a sensor (wireless presence sensor, daylight sensor), and an actuator associated with a wireless light bulb or a wirelessly connected luminaire. However, these applications may be extended beyond lighting applications and may include, for example, HVAC applications, positioning applications, and / or asset tracking applications, which may use RF sensing to detect people or devices (asset tracking), security camera applications, wireless sensor applications, wireless actuator applications. An application component may actually include devices for various applications.
[0027] Controller 104 may be one or more computer chips. In some examples, controller 104 may be a computer processor. As discussed in more detail below, in some examples, controller 104 is configured to control device 100 to perform various functions.
[0028] The wireless interface 106 is configured to communicate using at least two wireless communication protocols: a first wireless communication protocol and a second wireless communication protocol. The first wireless communication protocol is used to connect to a wireless network to receive operating instructions from a remote operator. The second wireless communication protocol is used to transmit and receive broadcast messages to receive and / or relay operating instructions to / from other devices.
[0029] In some examples, device 100 also includes memory 108. Memory 108 may be any suitable memory for storing information. Memory 108 may be non-volatile memory such that information may be retained in memory 108 even if device 100 is powered off.
[0030] The device 100 is configured to be able to operate in a proxy mode or a client mode. When operating in the proxy mode, the device 100 is configured to connect to the wireless network using the wireless interface 106 to receive operating instructions from the remote operator. When switched to operating in the client mode, the device 100 is configured to disassociate from the wireless network so that the device 100 is not connected to the wireless network using the first wireless communication protocol. In some examples, the device 100 may not be connected to the wireless network, for example once it is instructed to operate in the client mode and it has been disassociated. In such examples, the device 100 is not "connected" or associated to the wireless network, in other words, the device does not attempt to transmit packets / messages within the network and therefore cannot be disassociated from the wireless network. In such examples, the device 100 does not attempt to connect to the wireless network using the first wireless communication protocol.
[0031] The device 100 is configured to be able to receive operating instructions when operating in proxy mode or client mode. When operating in proxy mode, the operating instructions can be received via a wireless network using a first wireless communication protocol, or via one or more broadcast messages received using a second wireless communication protocol. When operating in client mode, the device 100 can only receive operating instructions via one or more broadcast messages received via the second wireless communication protocol. When operating in either mode, when the device 100 receives operating instructions, the device 100 is configured to relay the received operating instructions by transmitting the received operating instructions via one or more broadcast messages using the second wireless communication protocol. Therefore, broadcast messages represent a form of communication that allows reducing the impact of application components on first wireless network resources (such as the number of devices that need to be associated to an AP). When broadcast communications are additionally performed out-of-band, for example using different frequency bands and / or channels, or even using different radios, further reductions in impact can be achieved.
[0032] Device 100 is configured such that when operating in proxy mode, controller 104 switches the device from operating in proxy mode to operating in client mode. In some examples, controller 104 is configured to switch the device in this manner in response to a determination that a threshold number of devices are connected to the wireless network using the first wireless communication protocol. Additionally or alternatively, controller 104 is configured to switch the device in this manner in response to device 100 having received an operating instruction addressed to device 100 to switch to client mode using the first wireless communication protocol.
[0033] In some examples, the determination that a threshold number of devices are connected to the wireless network can be made by the device's controller 104. For example, the controller 104 can detect that multiple other devices according to the present disclosure are also connected to the wireless network, and therefore one or more devices should switch to client mode so that fewer devices are connected to the wireless network.
[0034] In some examples, the determination that a threshold number of devices are connected to a wireless network can be made by a remote operator (such as a server located in the cloud). In some examples, the determination can be made by a user.
[0035] Figure 2An example of a system according to an embodiment disclosed herein is schematically illustrated. The system includes a first device 100 operating in a proxy mode and a second device 200 operating in a client mode. In the illustrated example, the first device 100 may be referred to as a proxy device and the second device 200 may be referred to as a client device. The first device 100 is connected to a wireless network using a first wireless communication protocol. In this example, the wireless network is formed and managed by a wireless network controller 300. The wireless network controller 300 may be, for example, a Wi-Fi wireless access point (WAP). The system according to the present disclosure requires at least one device operating in a proxy mode and at least one device operating in a client mode, however it should be appreciated that the system may include any number of additional devices operating in a proxy mode and any number of additional devices operating in a client mode; for simplicity, Figure 2 Only one example of each is illustrated.
[0036] like Figure 2 , the first device 100 maintains a connection 302 with the wireless network controller 300 using a first wireless communication protocol. The second device 200 does not maintain a connection with the wireless network controller 300. However, as discussed in more detail below, the second device 200 may periodically connect 304 to a wireless network managed by the wireless network controller 300, for example, to download firmware updates. When connected to the wireless network controller 300, the second device 200 may remain in client mode (and therefore not receive operating instructions via the network controller 300), or may switch to operating in proxy mode.
[0037] In some examples, the connection 302 between the first device 100 and the wireless network controller 300 using the first wireless communication protocol is a wireless local area network formed and managed by the wireless network controller 300. In some examples, in order to connect to the wireless network, the first device must request to join the wireless network, and then must provide authentication information (e.g., a password) in order to be authorized to access the network. In some examples, when the connection is authenticated, the wireless network controller 300 stores the identification information of the first device 100 so that the wireless network controller 300 knows that the first device 100 has been authorized to access the network. Similarly, after being authorized to access, the first device 100 can be stored in the memory 108 so that the device 100 knows that it is connected to the wireless network. When connected to the wireless network, the device 100 and the wireless network controller 300 may be able to share information in the two-way communication link 302 without further authentication. In some examples, after establishing the connection 302 to the wireless network controller 300, the device 100 can establish a secure connection to the remote server 400. In some examples, the remote server 400 may be connected to the wireless network controller 300 via a local area network connection, and in other examples, the remote server 400 may be connected to the wireless network controller via an Internet connection. This will be discussed in detail below.
[0038] In some examples, when disconnected from the wireless network (e.g., if the first device 100 switches from proxy mode to client mode), the first device notifies the wireless network controller 300 that the first device is disconnected from the wireless network. In some examples, disconnection can be referred to as disassociating from the network. In response, the wireless network controller 300 can cancel the authentication of the device 100, for example by removing the stored information indicating that the device 100 is authenticated. If in the future, the device 100 attempts to reconnect to the wireless network using the first wireless communication protocol, the device 100 may need to provide authentication information using the same association procedure used by the device newly joining the network in order to be allowed to reconnect to the wireless network.
[0039] In use, the first device 100 receives an operating instruction (not shown) transmitted via the wireless network 302 using the first wireless communication protocol. In some examples, the operating instruction can be transmitted from a server 400 connected to a wireless network controller via a network connection and / or via the Internet. Figure 1 As discussed, when the first device 100 receives an operation instruction, the first device 100 is configured to relay the received operation instruction by transmitting the received operation instruction via one or more broadcast messages 110 using the second wireless communication protocol. In addition, when the second device 200 receives an operation instruction, the second device 200 is configured to relay the received operation instruction by transmitting the received operation instruction via one or more broadcast messages 210 using the second wireless communication protocol.
[0040] Other examples of functionality of devices according to the present disclosure will now be discussed in more detail.
[0041] In some examples, the operating instruction may include or consist of an application layer command including two or more of on, off, and / or power saving.
[0042] In some examples, the controller 104 may cause the device 100 to transmit a switching message to other devices connected to the wireless network. The switching message may allow the devices to coordinate the decision to switch from the proxy mode to the client mode so as to prevent all devices from switching from the proxy mode to the client mode (because at least one device must remain connected to the wireless network and operate in the proxy mode in order to relay the operating instructions to other devices via one or more broadcast messages using the second wireless communication protocol). In some examples, the switching message may cause the other devices to temporarily delay switching modes so that the device 100 can switch from the proxy mode to the client mode. In such an example, after the first device 100 has switched to operate in the client mode, the other devices may re-evaluate whether the threshold number of devices operating in the proxy mode is still reached. In some examples, when operating in the proxy mode, upon receiving the switching message, the device 100 may wait for a period of time before determining whether the threshold number of devices has been reached. In some examples, the waiting period may be a time period randomly determined between a preset upper limit and a lower limit; this is advantageous because it may prevent multiple devices from evaluating whether the threshold amount has been reached at the same time. In other examples, the switching message may notify the other devices that the first device 100 will remain in the proxy mode and one of the other devices should switch instead.
[0043] In some examples, the threshold number of devices connected to a wireless network operating in proxy mode can be a preset number of devices. In other examples, the threshold number of devices can be determined as a ratio between the number of devices operating in proxy mode and the number of devices that have switched to operating in client mode. In some examples, the ratio of proxy / client devices can be determined by a remote operator (e.g., a server operating in the cloud).
[0044] In some examples, the device may be configured such that the first time the device 100 is turned on, the device must be provisioned. Provisioning involves providing authentication information to the device 100 in order to connect to a wireless network using the first wireless communication protocol. In some examples where the device 100 includes a memory 108, the authentication information may be stored in the memory 108 such that after provisioning, the device is able to connect to any wireless network via the first wireless communication protocol using the access credentials stored in the memory 108.
[0045] For example, the provisioning may be performed by a user using a device such as a smart phone. The provisioning may be performed using one or more broadcast messages received using a second wireless communication protocol. In some examples, the device 100 may transmit a broadcast message using a second wireless communication protocol to notify other devices that the device 100 requests provisioning information. In some examples, the device 100 may be configured to periodically transmit such a broadcast message until the provisioning information is provided. In some examples, the device 100 may be configured such that upon receiving one or more broadcast messages requesting provisioning information from another device, the device 100 transmits the provisioning information stored in the memory 108 of the device 100 via the second wireless communication protocol via one or more broadcast messages.
[0046] In some examples, device 100 may be configured such that after provisioning information is provided to device 100, device 100 connects to a wireless network using a first wireless communication protocol. In some examples, device 100 may be configured to operate in a "legacy mode" after first connecting to a wireless network. In legacy mode, the device receives operating instructions via a wireless network using a first wireless communication protocol, but does not relay operating instructions. When operating in legacy mode, the device operates in a manner similar to other known devices. Device 100 may then be switched to operate in proxy mode or client mode. Device 100 may switch from legacy mode to proxy / client mode in response to an instruction received by a remote operator, or in response to a determination that a threshold number of devices are connected to a wireless network using a first wireless communication protocol. In some examples, the determination may be made by a remote operator or may be made by controller 104.
[0047] According to the present disclosure, an application component 102 can be any component configured to be operable by a remote operator via one or more operating instructions. In some cases, a device including such a component can be referred to as an IoT device. In some examples, the application component 102 of the device 100 can be selected from the group including: a lighting device, a light sensor, a smart plug, an HVAC device, an actuator, a space heater, a disinfection unit, an air purifier, an audio speaker, a video reproduction unit, a garage door opener, an alarm system, an electronic lock. Other examples of application components are also considered.
[0048] In some examples, the operating instructions received by the device 100 via the first wireless communication protocol or the second wireless communication protocol each include a unique identifier. The unique identifier is a unique identifier for each operating instruction. The unique identifier allows the device to distinguish between operating instructions received by the device.
[0049] In some examples where device 100 also includes memory 108 , controller 104 of device 100 may be configured to store a unique identifier for each operating instruction received by device 100 in memory 108 of device 100 .
[0050] In some examples where the controller 104 of the device 100 is configured to store a unique identifier for an operating instruction, the controller 104 of the device is configured such that when an operating instruction is received by the device, the controller 104 compares the unique identifier for the operating instruction with a unique identifier stored in the memory 108 of the device 100. This allows the controller 104 to determine whether the device 100 has previously received an operating instruction with the same unique identifier, and therefore determine whether the operating instruction has been received.
[0051] In some examples, if the controller 104 determines that the received operating instruction has the same unique identifier as a previously received operating instruction, the controller 104 is configured to prevent the operating instruction from being retransmitted via one or more broadcast messages using the second wireless communication protocol. In practice, this prevents the same operating instruction from being forwarded multiple times through a system including multiple devices. Alternatively or additionally, the broadcast message can be equipped with a time-to-live counter that is decremented at each hop and is no longer retransmitted when the number of hops reaches zero.
[0052] In some examples, the controller 104 of the device 100 may be configured to store only a limited number of unique identifiers in the memory 108. In such an example, the controller 104 stores the unique identifiers in the memory 108 in such a manner that the temporal order of the operating instructions including the unique identifiers can be determined (e.g., by operating the memory as a FIFO). When the controller 104 determines that a preset number of unique identifiers stored in the memory 108 has been reached, the oldest unique identifier stored in the memory 108 is removed, similar to a FIFO. The preset number of unique identifiers to be stored in the memory is determined so that repeated relaying of operating instructions with the same unique identifier is avoided, while also preventing the need to provide a large amount of memory 108. Optionally, the entries in the memory may also be associated with a timestamp, thereby enabling pruning / deletion of FIFO memory entries that have expired and are no longer relevant. To this end, a predetermined maximum FIFO lifetime may be used, which is used as a threshold for deleting old FIFO memory entries.
[0053] In some examples, the operating instructions may include a device identifier. Such a device identifier may include, for example, a MAC address of the device. In such an example, the device identifier may allow the intended receiving device(s) of the operating instructions to be identified.
[0054] In one such example, the device identifier may identify the device to which the operating instruction is intended to be transmitted. In such an example, the device 100, upon receiving the operating instruction, may operate the application component 102 in response to the controller 104 determining that the operating instruction includes the device identifier corresponding to the device 100. In some examples, if the controller 104 determines that the operating instruction includes the device identifier corresponding to the device 100, the controller 104 may prevent the device 100 from relaying the operating instruction.
[0055] In another example, the device identifier may identify a device (referred to as a transmitting device) that transmits the operating instructions via one or more broadcast messages. In such an example, other devices (referred to herein as receiving devices) may be configured such that upon receiving the operating instructions including the device identifier corresponding to the transmitting device, the receiving devices operate their corresponding application components. Such an example may allow the devices to operate as a device group rather than as individual devices.
[0056] In some examples, when operating in client mode, controller 104 can be configured to cause device 100 to connect to a wireless network using a first wireless communication protocol to check for the availability of a firmware update. If controller 104 determines that a firmware update is available, controller 104 causes device 100 to download and install the firmware update via the wireless network using the first wireless communication protocol. In some examples, when connected to a wireless network using the first wireless communication protocol, device 100 can switch to operating in proxy mode, or can continue to operate in client mode. If device 100 continues to operate in client mode, device 100 does not receive operating instructions via the wireless network using the first wireless communication protocol.
[0057] In response to receiving an update instruction via a broadcast message received using the second wireless communication protocol, the controller 104 may cause the device 100 to connect to the wireless network using the first wireless communication protocol to check for a firmware update. Alternatively, the controller 104 may cause the device 100 to connect to the wireless network using the first wireless communication protocol to check for a firmware update after a preset time period has passed. The preset time period may be determined from the last time the controller 104 checked for a firmware update.
[0058] In some examples, when the device 100 is operating in client mode, the operating instructions received via one or more broadcast messages received using the second wireless communication protocol may request the device 100 to connect to the wireless network using the first wireless communication protocol. For example, this may be because the operation of the application component 102 requests the use of the wireless network. In such an example, the device 100 may continue to operate in client mode, or may switch to operate in proxy mode. In an example where the device switches to operate in proxy mode, the controller 104 may transmit a message to notify other devices connected to the wireless network to notify them that the device 100 must be connected to the wireless network in order to allow the application component 102 to use the wireless network. In such an example, if a determination is made that a threshold number of devices has been reached, the transmitted message may cause one or more other devices to switch from proxy mode to client mode. Similarly, if the device 100 is operating in proxy mode and receives a message indicating that another device previously operating in client mode needs to switch to proxy mode, if a determination is made that a threshold number of devices operating in proxy mode has been reached, the controller 104 may cause the device 100 to switch to operate in client mode.
[0059] In some examples, the first wireless communication protocol can be any wireless network protocol suitable for connecting the device 100 to the Internet via a wireless network protocol. In some examples, the first wireless communication protocol can be a wireless network using the IEEE 802.11 protocol. This wireless network can use the IEEE 802.11 protocol operating in infrastructure mode, wherein one or more access points use a basic service set (BSS) or an extended service set (ESS). In some examples, the wireless network to which the device 100 is connected using the first wireless communication protocol can be a wireless network formed and managed by one or more wireless access points (WAPs). In such a network, one or more WAPs form and manage the wireless network, and Internet access can be provided to devices connected to the wireless network. This type of wireless network is beneficial because it allows a high-bandwidth connection between a device and the Internet. In other examples, the first wireless communication protocol can be, for example, a Bluetooth network.
[0060] In some examples, the second wireless communication protocol can be any wireless peer-to-peer protocol suitable for transmitting broadcast messages. In some examples, the second wireless communication protocol is based on Wi-Fi Direct, where the IEE 802.11 protocol is used with peer extensions from Wi-Fi Direct. In some examples, the broadcast message can be a P2P public action frame as defined in the Wi-Fi Direct standard. In other examples, the second wireless communication protocol can use, for example, Bluetooth, Bluetooth low energy, or Zigbee PAN inter-broadcast messages.
[0061] In some examples, broadcast messages and / or operating instructions can be encrypted. Encryption can be performed by the device and / or by the remote server 400. These devices can be configured so that only encrypted operating instructions / broadcast messages are executed and / or relayed. Encryption can use encryption such as public key-private key pair types. In such an example, encryption is performed by a trusted device using the private key portion of a public key-private key pair. After receiving the encrypted instruction / message, the controller 104 of the device 100 can use the public key portion of the public key-private key pair to decrypt the encrypted message. Using the public key-private key pair method is beneficial because it allows any device (whether trusted or not) to decrypt the broadcast message, but only a trusted device can encrypt the instruction / message.
[0062] In some examples where encryption is used, the encryption method may include a unique time-based value. Such a value would allow duplicate messages to be identified, thereby preventing unauthorized users / devices from retransmitting encrypted messages at a later time (replay attacks).
[0063] In some examples, the controller 104 can be configured to cause the device 100 to periodically transmit a heartbeat signal via one or more broadcast messages using the second wireless communication protocol. The device 100 uses the second wireless communication protocol to transmit and receive broadcast messages. Unlike the first wireless communication protocol, the device does not connect to the network or maintain a connection with other devices using the second wireless communication protocol. Instead, a heartbeat signal can be used to allow the device to know other devices operating within the range of the broadcast message.
[0064] In some examples, device 100 may transmit a heartbeat signal at a preset interval. In some examples, the heartbeat signal may include device identification information so that another device can determine which device transmitted the heartbeat signal when receiving the heartbeat signal. In some examples, the device identification information may include a MAC address of the device that transmits the heartbeat signal.
[0065] In some examples, the heartbeat signal transmitted by the device 100 may include information identifying whether the device 100 is operating in proxy mode or client mode. In some examples, when the device 100 is operating in client mode, if the device 100 does not receive a heartbeat signal from another device operating in proxy mode after a predetermined time period, the controller 104 may switch the device 100 from operating in client mode to operating in proxy mode. In the event that a first device operating in proxy mode stops operating (for example, the first device may suffer a power outage or mechanical failure), it will stop transmitting heartbeat signals; a second device operating in client mode that previously received relayed operating instructions from the first device will determine that a predetermined time period has passed since receiving the heartbeat signal from the first device. The second device will thereby determine that the first device is no longer operating, and therefore the controller of the second device can cause the second device to switch to operating in proxy mode.
[0066] In some examples, if during a predetermined time period, the second device receives one or more heartbeat signals from another device operating in proxy mode, the second device may not switch to operating in proxy mode. In some examples, the second device will switch to operating in proxy mode only if a heartbeat signal from any other device operating in proxy mode is not received within a predetermined time period. In some examples, after determining that one or more devices operating in proxy mode have stopped transmitting heartbeat signals, the second device may wait for a randomly determined time period before switching to operating in proxy mode. This may be beneficial because it may prevent multiple devices operating in client mode from switching to proxy mode at the same time, which may potentially interfere with the operation of the wireless network.
[0067] In some examples, device 100 operating in client mode may periodically transmit a heartbeat signal via one or more broadcast messages using a second wireless communication protocol. In some examples, the heartbeat signal may be transmitted in response to receiving a heartbeat signal transmitted by a device operating in proxy mode.
[0068] In some examples where a device operating in client mode transmits a heartbeat signal, a device 100 operating in proxy mode may transmit information about the received heartbeat signal to a remote operator via a wireless network using a first wireless communication protocol in response to receiving a heartbeat signal from another device operating in client mode. In some examples, the remote operator may be a server 400 connected to the wireless network controller 300 via a network connection and / or via the Internet. In some examples, the transmitted information about the received heartbeat signal may allow the remote operator to determine which devices are capable of receiving operating instructions.
[0069] In some examples, when device 100 is operating in proxy mode, if controller 104 determines that the received heartbeat signal indicates that the number of other devices operating in proxy mode meets the threshold, controller 104 can cause device 100 to switch to operating in client mode. In some examples, after determining that the number of devices operating in proxy mode meets the threshold, controller 104 can wait for a randomly determined time period before switching the device to operate in proxy client mode. This may be beneficial because it can prevent multiple devices operating in proxy mode from switching to client mode at the same time, which may potentially interfere with receiving operating instructions via the wireless network using the first wireless communication protocol.
[0070] In some examples, after the device 100 connects to the wireless network using the first connection, the device 100 can establish a connection to the remote server 400. In some examples, the server can connect to the wireless network via another network connection and / or via the Internet. In some examples, the device 100 uses the server authorization credential to establish a secure connection with the server 400. In some examples, the server authorization credential is hard-coded into the device 100 when the device is manufactured. In other examples, the server authorization credential can be configured in the device 100 at a later time (e.g., during or after provisioning).
[0071] In some examples, remote server 400 can be connected to a wireless network controller via a local area network or via the Internet. In some examples, remote server 400 can be one or more cloud-based servers. In some examples, remote server 400 can run a publish-subscribe network protocol, such as message queue telemetry transmission (MQTT). After establishing a connection to remote server 400, the device can subscribe to one or more mailboxes hosted on the remote server. After subscribing to one or more mailboxes, the device can thus receive a control message, which includes an operating instruction transmitted to one or more mailboxes. Then, the received operating instruction is relayed to other devices in the system, as described in the above example.
[0072] In such an example, a user may use, for example, a smart phone to indicate that he wishes to operate the application component 102 of the device 100. The operating instruction to operate the application component 102 is transmitted to the remote server 400, where it is transmitted to the relevant mailbox in a control message. The device 100, which is subscribed to the mailbox and operates in proxy mode, receives the control message including the operating instruction from the server 400 via the wireless network using the first wireless communication protocol. The operating instruction may then be relayed via one or more broadcast messages using the second wireless communication protocol. Using a subscription-based model such as this is advantageous because it means that even if the access credentials of the device are compromised by a third party, the third party will only be able to receive the transmitted control message; the third party will not be able to issue unauthorized instructions.
[0073] MQTT is the preferred messaging protocol used by the remote server 400 to transmit operating instructions to one or more devices 100 of the present disclosure, however other protocols may also be used. Some additional examples of protocols that may be used are: Constrained Application Protocol (CoAP), Extensible Messaging and Presence Protocol (XMPP), Advanced Message Queuing Protocol (AMQP), and Data Distribution Service (DDS).
[0074] It will be appreciated that the above-described embodiments have been described by way of example only.
[0075] More generally, according to one aspect disclosed herein, a first device is provided as one of a group of devices, the first device comprising: an application component configured to be operable by a remote operator via one or more operating instructions; a controller; and a wireless interface for connecting to a wireless network using a first wireless communication protocol and receiving and transmitting broadcast messages using a second wireless communication protocol; the first device is configured so that, in use, it can operate interchangeably in a proxy mode or a client mode to receive operating instructions; wherein in the proxy mode, the first device is configured to connect to a wireless network using the first wireless communication protocol, so that, in use, the operating instructions are received via the connected wireless network using the first wireless communication protocol; wherein when switched to the client mode, the first device is configured to communicate with the wireless network using the first wireless communication protocol. except association; wherein, in proxy mode or client mode, the first device is configured so that, in use, an operating instruction is received via one or more input broadcast messages using a second wireless communication protocol; wherein the first device is configured so that, in use, in response to receiving an operating instruction using the first wireless communication protocol or the second wireless communication protocol, the operating instruction is forwarded by the first device in one or more output broadcast messages using the second wireless communication protocol; and wherein when the first device operates in proxy mode, the controller is configured to switch the first device to operate in client mode in response to at least one of the following: determining that a threshold number of other devices are connected to the wireless network using the first wireless communication protocol; and the first device has received an operating instruction addressed to the first device to switch to client mode using the first wireless communication protocol.
[0076] According to a second aspect disclosed herein, there is provided the first device according to the first aspect, wherein each operation instruction comprises a unique identifier, wherein the unique identifier is unique to the operation instruction.
[0077] According to a third aspect disclosed herein, there is provided the first device according to the second aspect, further comprising a memory configured to store a unique identifier for each operation instruction received by the device.
[0078] According to the fourth aspect disclosed in this document, a first device according to the third aspect is provided, wherein a controller is configured such that: when an operation instruction received in one or more broadcast messages is received via a second wireless communication protocol, the controller compares the unique identifier of the operation instruction with any unique identifier previously stored in the memory; and only if the unique identifier of the operation instruction does not match another unique identifier previously stored in the memory, the operation instruction is transmitted in one or more broadcast messages using the second wireless communication protocol.
[0079] According to a fifth aspect disclosed herein, a first device according to any of the preceding aspects is provided, wherein a controller is configured such that when the first device operates in client mode, in response to at least one of: receiving an update instruction via one or more input broadcast messages received using a second wireless communication protocol; and a preset time period having passed since the first device was disassociated from the wireless network; the controller causes the first device to connect to the wireless network using the first wireless communication protocol in order to retrieve a firmware update.
[0080] According to a sixth aspect disclosed herein, a first device according to any of the preceding aspects is provided, wherein the component configured to be operable by a remote operator is selected from a group consisting of: lighting equipment, light sensors, smart plugs, HVAC equipment, actuators, space heaters, disinfection units, air purifiers, audio speakers, video reproduction units, garage door openers, alarm systems, and electronic locks.
[0081] According to a seventh aspect disclosed herein, there is provided a first device according to any preceding aspect, wherein the first wireless communication protocol comprises an IEEE 802.11 protocol and / or a Bluetooth protocol.
[0082] According to an eighth aspect disclosed herein, there is provided a first device according to any preceding aspect, wherein the second wireless communication protocol comprises a wireless peer-to-peer protocol and / or a Bluetooth protocol.
[0083] According to a ninth aspect disclosed herein, there is provided the first device according to the eighth aspect, wherein the second wireless communication protocol includes a Wi-Fi Direct P2P public action frame.
[0084] According to a tenth aspect disclosed herein, there is provided a first device according to any preceding aspect, wherein the controller is configured such that when the first device operates in a proxy mode, the first device transmits a first heartbeat signal via one or more broadcast messages using a second wireless communication protocol at a first interval.
[0085] According to the eleventh aspect disclosed herein, a first device according to any of the preceding aspects is provided, wherein a controller is configured such that when the first device operates in client mode, if a first heartbeat signal is not received via one or more broadcast messages using a second wireless communication protocol during a first time period, the controller switches the first device to operate in proxy mode.
[0086] According to the twelfth aspect disclosed herein, a first device according to any of the preceding aspects is provided, wherein a controller is configured such that when operating in client mode, if a first heartbeat signal is received via one or more broadcast messages using a second wireless communication protocol, the first device transmits a second heartbeat signal via one or more broadcast messages using the second wireless communication protocol, wherein the second heartbeat signal includes a first device identifier associated with the first device.
[0087] According to the thirteenth aspect disclosed herein, a first device according to any of the preceding aspects is provided, wherein a controller is configured such that when the first device operates in proxy mode, if a second heartbeat signal including a second device identifier is received via one or more broadcast messages using a second wireless communication protocol, the controller of the first device stores the second device identifier.
[0088] According to the fourteenth aspect disclosed herein, there is provided a method for operating a first device according to any of the preceding aspects, wherein: when operating in proxy mode, the first device connects to a wireless network using a first wireless communication protocol, and receives operating instructions via the connected wireless network using the first wireless communication protocol; when switching to client mode, the first device disassociates from the wireless network using the first wireless communication protocol; when operating in proxy mode or client mode, receives operating instructions via one or more input broadcast messages using a second wireless communication protocol; in response to receiving operating instructions using the first wireless communication protocol or the second wireless communication protocol, the operating instructions are forwarded by the first device in one or more output broadcast messages using the second wireless communication protocol; and when the first device operates in proxy mode, the first device is switched to operate in client mode in response to at least one of the following: determining that a threshold number of other devices are connected to the wireless network using the first wireless communication protocol; and the first device has received operating instructions addressed to the first device to switch to client mode using the first wireless communication protocol.
[0089] According to a fifteenth aspect of the disclosure, there is provided a system comprising: a device according to any one of claims 1 to 13 operating in a proxy mode; and a device according to any one of claims 1 to 13 operating in a client mode;
[0090] Wherein, during use: a device operating in proxy mode receives operation instructions via a connected wireless network using a first wireless communication protocol, and in response to receiving the operation instructions, transmits the operation instructions forward in one or more output broadcast messages via a second wireless communication protocol; a device operating in client mode receives one or more input broadcast messages via a second wireless communication protocol, the one or more input broadcast messages corresponding to one or more output broadcast messages including operation instructions broadcast by the first device via the second wireless communication protocol; and a device operating in client mode transmits the operation instructions forward in one or more output broadcast messages via the second wireless communication protocol in response to receiving the operation instructions.
[0091] Other variations of the disclosed embodiments may be understood and implemented by those skilled in the art in practicing the claimed invention by studying the drawings, the disclosure and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the indefinite article "a" or "an" does not exclude a plurality. A single processor or other unit may implement the functions of several items listed in the claims. The mere fact that certain measures are cited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. The computer program may be stored / distributed on a suitable medium, such as an optical storage medium or a solid-state medium, provided with or as part of other hardware; but may also be distributed in other forms, such as via the Internet or other wired or wireless telecommunications systems. Any reference signs in the claims should not be interpreted as limiting the scope.
Claims
1. A first device used as one of a group of devices, the first device comprising: an application component configured to be operable by a remote operator via one or more operating instructions, the application component being for field use in at least one of a lighting application, an HVAC application, an asset tracking application, or a security application; Controller; and a wireless interface for connecting to a wireless network using a first wireless communication protocol and receiving and transmitting broadcast messages using a second wireless communication protocol, the first wireless communication protocol including an IEEE 802.11 protocol; The first device is configured such that, in use, it can operate interchangeably in either a proxy mode or a client mode in order to receive operating instructions; wherein in the proxy mode, the first device is configured to connect to a wireless network using a first wireless communication protocol, so that in use, an operation instruction is received via the connected wireless network using the first wireless communication protocol; wherein when switching to the client mode, the first device is configured to disassociate from the wireless network using the first wireless communication protocol; wherein when operating in proxy mode and when operating in client mode, the first device is configured such that, in use, operating instructions are received via one or more incoming broadcast messages using a second wireless communication protocol; wherein the first device is configured such that, in use, in response to receiving an operating instruction using the first wireless communication protocol, the operating instruction is transmitted onwards by the first device in one or more outgoing broadcast messages using the second wireless communication protocol; and wherein the first device is configured such that, in use, in response to receiving an operating instruction using the second wireless communication protocol, the operating instruction is transmitted onwards by the first device in one or more outgoing broadcast messages using the second wireless communication protocol; as well as Wherein, when the first device operates in the proxy mode, the controller is configured to switch the first device to operate in the client mode in response to a determination that a threshold number of other devices are connected to the wireless network using the first wireless communication protocol.
2. A first device used as one of a group of devices, the first device comprising: an application component configured to be operable by a remote operator via one or more operating instructions, the application component being for field use in at least one of a lighting application, an HVAC application, an asset tracking application, or a security application; Controller; and a wireless interface for connecting to a wireless network using a first wireless communication protocol and receiving and transmitting broadcast messages using a second wireless communication protocol, the first wireless communication protocol including an IEEE 802.11 protocol; The first device is configured such that, in use, it can operate interchangeably in either a proxy mode or a client mode in order to receive operating instructions; wherein in the proxy mode, the first device is configured to connect to a wireless network using a first wireless communication protocol, so that in use, an operation instruction is received via the connected wireless network using the first wireless communication protocol; wherein when switching to the client mode, the first device is configured to disassociate from the wireless network using the first wireless communication protocol; wherein when operating in proxy mode and when operating in client mode, the first device is configured such that, in use, operating instructions are received via one or more incoming broadcast messages using a second wireless communication protocol; wherein the first device is configured such that, in use, in response to receiving an operating instruction using the first wireless communication protocol, the operating instruction is transmitted onwards by the first device in one or more outgoing broadcast messages using the second wireless communication protocol; wherein the first device is configured such that, in use, in response to receiving an operating instruction using the second wireless communication protocol, the operating instruction is transmitted onwards by the first device in one or more outgoing broadcast messages using the second wireless communication protocol; as well as Wherein when the first device operates in the proxy mode, the controller is configured to switch the first device to operate in the client mode in response to the first device having received an operation instruction addressed to the first device to switch to the client mode using the first wireless communication protocol. 3 . The first device according to claim 1 , wherein each operating instruction comprises a unique identifier, wherein the unique identifier is unique to the operating instruction.
4. The first device of claim 2, further comprising a memory configured to store a unique identifier for each operating instruction received by the device or unique identifiers for up to the last N operating instructions received, where N is a predetermined integer.
5. The first device according to claim 3, wherein: The controller is configured such that: upon receiving the operating instructions received in one or more broadcast messages via the second wireless communication protocol, the controller compares the unique identifier of the operating instructions with any unique identifiers previously stored in the memory; and The operating instructions are transmitted in one or more broadcast messages using a second wireless communication protocol only if the unique identifier of the operating instructions does not match another unique identifier previously stored in the memory.
6. The first device according to claim 1 or 2, wherein: The controller is configured such that when the first device operates in the client mode, in response to at least one of the following: receiving update instructions via one or more incoming broadcast messages received using a second wireless communication protocol; and a preset period of time has passed since the first device was disassociated from the wireless network; The controller causes the first device to connect to a wireless network using a first wireless communication protocol to retrieve a firmware update.
7. The first device according to claim 1 or 2, wherein: The application component configured to be operable by a remote operator is selected from the group consisting of: lighting equipment, light sensors, smart plugs, HVAC equipment, actuators, space heaters, disinfection units, air purifiers, audio speakers, video reproduction units, garage door openers, alarm systems, electronic locks.
8. The first device according to claim 1 or 2, wherein: The second wireless communication protocol includes a wireless peer-to-peer protocol and / or a Bluetooth protocol.
9. The first device according to claim 8, wherein: The second wireless communication protocol includes a Wi-Fi Direct P2P public action frame.
10. The first device according to claim 1 or 2, wherein: The controller is configured such that when the first device operates in the proxy mode, the first device transmits a first heartbeat signal via one or more broadcast messages at a first interval using the second wireless communication protocol.
11. The first device according to claim 1 or 2, wherein: The controller is configured such that when the first device operates in client mode, if a first heartbeat signal is not received via one or more broadcast messages using the second wireless communication protocol during a first time period, the controller switches the first device to operate in proxy mode.
12. The first device according to claim 1 or 2, wherein: The controller is configured such that, when operating in client mode, if a first heartbeat signal is received via one or more broadcast messages using the second wireless communication protocol, the first device transmits a second heartbeat signal via one or more broadcast messages using the second wireless communication protocol, wherein the second heartbeat signal includes a first device identifier associated with the first device.
13. The first device according to claim 1 or 2, wherein: The controller is configured such that when the first device operates in the proxy mode, if a second heartbeat signal including a second device identifier is received via one or more broadcast messages using the second wireless communication protocol, the controller of the first device stores the second device identifier.
14. A method of operating a first device according to claim 1, wherein: When operating in the proxy mode, the first device connects to the wireless network using the first wireless communication protocol and receives the operation instruction via the connected wireless network using the first wireless communication protocol; When switching to the client mode, the first device disassociates from the wireless network using the first wireless communication protocol; receiving operating instructions via one or more incoming broadcast messages using a second wireless communication protocol when operating in the proxy mode and when operating in the client mode; In response to receiving the operating instructions using the first wireless communication protocol, the operating instructions are transmitted forward by the first device in one or more outgoing broadcast messages using the second wireless communication protocol; In response to receiving the operating instructions using the second wireless communication protocol, the operating instructions are transmitted forward by the first device in one or more outgoing broadcast messages using the second wireless communication protocol; and When the first device is operating in the proxy mode, in response to a determination that a threshold number of other devices are connected to the wireless network using the first wireless communication protocol, the first device is switched to operate in the client mode.
15. A method of operating a first device according to claim 2, wherein: When operating in the proxy mode, the first device connects to the wireless network using the first wireless communication protocol and receives the operation instruction via the connected wireless network using the first wireless communication protocol; When switching to the client mode, the first device disassociates from the wireless network using the first wireless communication protocol; receiving operating instructions via one or more incoming broadcast messages using a second wireless communication protocol when operating in the proxy mode and when operating in the client mode; In response to receiving the operating instructions using the first wireless communication protocol, the operating instructions are transmitted forward by the first device in one or more outgoing broadcast messages using the second wireless communication protocol; In response to receiving the operating instructions using the second wireless communication protocol, the operating instructions are transmitted forward by the first device in one or more outgoing broadcast messages using the second wireless communication protocol; and When the first device is operating in the proxy mode, in response to the first device having received an operating instruction addressed to the first device to switch to the client mode using the first wireless communication protocol, the first device is switched to operate in the client mode.
Citation Information
Patent Citations
Beacon-based handover option for commissioning and control of wireless network devices
CN111886922A
Forwarding Internet Protocol Version 6 Link-Local Multicast to Support Roaming of Wireless Mobile Client Devices
US20130028163A1
Integration of Publish-Subscribe Messaging with Authentication Tokens
US20200067903A1
Timed lighting control
WO2014024078A1
Method for connecting to network, mobile terminal, electronic device, and graphical user interface
WO2018157512A1
