Device management method and system for multi-split centralized control gateway, and device and medium
Batch distribution of networks is performed through WIFI or Bluetooth. Using the target broadcast data of client broadcast, the gateway device automatically connects to designated WIFI and joins a multi-online centralized gateway cluster, solving the cumbersome problems of the traditional distribution process and achieving efficient and convenient device distribution network.
Patent Information
- Application Number
- PCT/CN2024/112690
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-20
- Filing Date
- 2024-08-16
- Publication Date
- 2025-06-26
AI Technical Summary
In the equipment management of multi-online centralized gateways, the traditional distribution networking process is cumbersome and requires manual connection and configuration, resulting in long distribution networking time and low efficiency, especially when there are a large number of devices.
Batch distribution of networks through WIFI or Bluetooth, using the target broadcast data broadcast by the client, the gateway device automatically connects to the designated WIFI and joins a multi-online centralized gateway cluster to avoid cumbersome manual connection and configuration operations.
It realizes the simple, fast and convenient distribution network of multiple online centralized gateway devices, shortens distribution time, improves distribution network efficiency, and is suitable for batch operations in multiple devices.
Smart Images

Figure CN2024112690_26062025_PF_FP_ABST
Abstract
Description
Device management method, system, device and medium for multi-connection centralized control gateway
[0001] Related applications
[0002] This application claims priority to Chinese patent application number 202311765925.0, filed on December 20, 2023, entitled “Device management method, system, device and medium for multi-connected centralized control gateway,” the entire text of which is incorporated herein by reference. Technical Field
[0003] The present application relates to the field of management technology, and in particular to a device management method, system, device and medium for a multi-connected centralized control gateway. Background Art
[0004] Multi-split air conditioners, a common central air conditioning system for commercial spaces, feature multiple indoor units connected to a single outdoor unit, enabling independent control of multiple rooms and significantly improving air conditioning efficiency and comfort. A distributed multi-split centralized control gateway connects multiple outdoor units to a gateway, which in turn connects multiple gateways via a network, enabling remote, unified control and management of all indoor and outdoor units within a region.
[0005] Summary of the Invention
[0006] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0007] The embodiments of the present application provide a device management method, system, device, and medium for a multi-connected centralized control gateway. This method can be used to perform batch network configuration via Wi-Fi or Bluetooth, enabling simple, fast, and convenient batch network configuration operations for gateways. This avoids tedious manual connection and configuration operations, significantly shortens network configuration time for multi-connected centralized control gateway devices, and improves network configuration efficiency. The technical solution is as follows:
[0008] In the first aspect, an embodiment of the present application provides a device management method for a multi-connected centralized control gateway, which is applied to a gateway device; the method includes: if the gateway device has not joined the multi-connected centralized control gateway cluster to which the client is connected, then the target network configuration method corresponding to the gateway device is determined according to the target state of the WIFI module of the gateway device; the target network configuration method includes WIFI configuration or Bluetooth configuration; based on the target network configuration method, the target broadcast data broadcast by the client is obtained; the target broadcast data is determined by the client according to preset rules based on the target information of the client; the target information includes the specified WIFI information of the specified WIFI in the client and / or the target identification information corresponding to the client; based on the target broadcast data, the specified WIFI is connected to join the multi-connected centralized control gateway cluster.
[0009] In the second aspect, an embodiment of the present application provides a device management method for a multi-connected centralized control gateway, which is applied to a client; the method includes: determining target broadcast data according to preset rules based on the target information of the client; the target information includes the specified WIFI information of the specified WIFI in the client and / or the target identification information corresponding to the client; broadcasting the target broadcast data so that the gateway device that has not joined the multi-connected centralized control gateway cluster connected to the client connects to the specified WIFI based on the target broadcast data and joins the multi-connected centralized control gateway cluster.
[0010] In a third aspect, an embodiment of the present application provides a gateway device, the gateway device comprising:
[0011] A first determination module is configured to determine a target network configuration mode corresponding to the gateway device according to a target state of the WIFI module of the gateway device if the gateway device has not joined the multi-connection centralized control gateway cluster to which the client is connected; the target network configuration mode includes WIFI configuration or Bluetooth configuration;
[0012] An acquisition module is configured to acquire target broadcast data broadcast by the client based on the target network configuration mode; the target broadcast data is determined by the client according to preset rules based on the target information of the client; the target information includes the designated WIFI information of the designated WIFI in the client and / or the target identification information corresponding to the client;
[0013] The connection module is used to connect to the above-mentioned designated WIFI based on the above-mentioned target broadcast data and join the above-mentioned multi-connection centralized control gateway cluster.
[0014] In a fourth aspect, an embodiment of the present application provides a client, the client comprising:
[0015] A third determination module is configured to determine target broadcast data according to preset rules based on the target information of the client; the target information includes the designated WIFI information of the designated WIFI in the client and / or the target identification information corresponding to the client;
[0016] The broadcast module is used to broadcast the above-mentioned target broadcast data so that the gateway devices that have not joined the multi-connection centralized control gateway cluster connected to the above-mentioned client can connect to the above-mentioned designated WIFI based on the above-mentioned target broadcast data and join the above-mentioned multi-connection centralized control gateway cluster.
[0017] In the fifth aspect, an embodiment of the present application provides a device management system for a multi-connected centralized control gateway, and the device management system of the multi-connected centralized control gateway includes a gateway device and a client; the gateway device is used to execute the method provided in the first aspect of the embodiment of this specification, and the client is used to execute the method provided in the second aspect of the embodiment of this specification.
[0018] In a sixth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
[0019] The processor is connected to the memory;
[0020] The aforementioned memory is used to store executable program code;
[0021] The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method provided in the first aspect or the second aspect of the embodiment of this specification.
[0022] In the seventh aspect, an embodiment of the present application provides a computer storage medium, which stores multiple instructions, and the instructions are suitable for being loaded by a processor and executing the method steps provided in the first aspect or the second aspect of the embodiment of the present application.
[0023] In one or more embodiments of the present application, if the gateway device has not joined the multi-connected centralized control gateway cluster connected to the client, the target network configuration mode corresponding to the gateway device is determined according to the target state of the WIFI module of the gateway device, and the target network configuration mode includes WIFI configuration or Bluetooth configuration; based on the target network configuration mode, the target broadcast data broadcast by the client is obtained, and the target broadcast data is determined by the client according to the preset rules based on the target information of the client, and the target information includes the specified WIFI information of the specified WIFI in the client and / or the target identification information corresponding to the client; based on the target broadcast data, the specified WIFI is connected to join the multi-connected centralized control gateway cluster, so that when the gateway device is not networked and joins the multi-connected centralized control gateway cluster, compared with the network configuration method of a single gateway device one by one, batch network configuration can be performed through WIFI or Bluetooth in a broadcast manner, without waiting for the two devices to connect before data transmission, and without one-to-one configuration of fixed IP addresses, a simple, fast and convenient gateway batch network configuration operation can be achieved, avoiding tedious manual connection and configuration operations, greatly shortening the network configuration time of the multi-connected centralized control gateway device, and improving the network configuration efficiency.
[0024] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0026] FIG1 is a schematic diagram of the architecture of a device management system of a multi-connected centralized control gateway provided by an exemplary embodiment of the present application;
[0027] FIG2 is a flow chart of a device management method for a multi-connected centralized control gateway provided by an exemplary embodiment of the present application;
[0028] FIG3 is a schematic diagram of an implementation flow of determining a target network configuration method corresponding to a gateway device according to an exemplary embodiment of the present application;
[0029] FIG4 is a schematic diagram of an implementation process of a WIFI network configuration according to an exemplary embodiment of the present application;
[0030] FIG5 is a schematic diagram of an implementation process of a Bluetooth network configuration according to an exemplary embodiment of the present application;
[0031] FIG6 is a flow chart of another device management method for a multi-connected centralized control gateway provided by an exemplary embodiment of the present application;
[0032] FIG7 is a flow chart of another device management method for a multi-connected centralized control gateway provided by an exemplary embodiment of the present application;
[0033] FIG8 is a schematic structural diagram of a gateway device provided by an exemplary embodiment of the present application;
[0034] FIG9 is a schematic structural diagram of a client provided by an exemplary embodiment of the present application;
[0035] FIG10 is a schematic structural diagram of an electronic device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0036] To make the features and advantages of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of this application.
[0037] The terms "first," "second," "third," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements, but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0038] Next, please refer to Figure 1, which is a schematic diagram of the architecture of a device management system of a multi-connected centralized control gateway provided by an exemplary embodiment of the present application. As shown in Figure 1, the device management system of the multi-connected centralized control gateway includes: a client and a gateway device.
[0039] in:
[0040] The client may include one or more user terminals. A user version of the software may be installed in the client to enable the central gateway device in the multi-connected centralized control gateway cluster connected by the client to perform data management, troubleshooting, and system optimization on each gateway device in the multi-connected centralized control gateway cluster. The client may also determine the target broadcast data according to preset rules based on the target information of the client. The target information includes the specified WIFI information of the specified WIFI in the client and / or the target identification information corresponding to the client, and broadcast the above target broadcast data so that the gateway devices that have not joined the multi-connected centralized control gateway cluster connected by the client can connect to the specified WIFI based on the above target broadcast data and join the multi-connected centralized control gateway cluster managed by the client. The above multi-connected centralized control gateway cluster includes multiple gateway devices, and the above multiple gateway devices are connected to each other through a local area network. The above multi-connected centralized control gateway cluster connects multiple outdoor units to the gateway device, each outdoor unit is connected to one or more indoor units, and then connects multiple gateway devices through the network to achieve remote unified control and management of indoor and outdoor units in a region (for example, indoor and outdoor units of air conditioners in a region). The storage space of each gateway device in the above-mentioned multi-connected centralized control gateway cluster stores local data, as well as data of the external unit connected to it and the internal unit connected to the external unit.
[0041] Among them, at least one of the above-mentioned multiple gateway devices will be selected as a central gateway device, that is, a data center node of the multi-connected centralized control gateway cluster, which is used to bear the basic gateway role and also be responsible for carrying out communications between the multi-connected centralized control gateway cluster and the outside world (such as clients). The central gateway device is also used to maintain the normal operation of each gateway device in the multi-connected centralized control gateway cluster, as well as to store the interaction data between the multi-connected centralized control gateway cluster and the client and the operation data corresponding to each gateway device in the multi-connected centralized control gateway cluster, so as to ensure the security and integrity of the data in the multi-connected centralized control gateway cluster.
[0042] It is understandable that any user terminal in the client can be, but is not limited to, a mobile phone, tablet computer, laptop computer or other device installed with the user version software.
[0043] It can be understood that the above-mentioned central gateway device can be the gateway device with the largest storage capacity or the strongest performance among the above-mentioned multiple gateway devices, or it can be any gateway device among the above-mentioned multiple gateway devices or a gateway device specified by the user according to needs, etc., and the embodiments of this application do not limit this.
[0044] The gateway device may be a gateway device that has joined the above-mentioned multi-connection centralized control gateway cluster, or a gateway device that has not joined the above-mentioned multi-connection centralized control gateway cluster.
[0045] Specifically, if the gateway device has not joined the multi-connected centralized control gateway cluster to which the client is connected, the target network configuration method corresponding to the gateway device can be determined first based on the target state of the WIFI module of the gateway device. The target network configuration method includes WIFI configuration or Bluetooth configuration. Then, the target broadcast data broadcast by the client is obtained based on the target network configuration method. Finally, the specified WIFI is connected based on the target broadcast data to join the above-mentioned multi-connected centralized control gateway cluster.
[0046] The network can be a medium that provides a communication link between gateway devices, between any gateway device and a client, or can be the Internet, which includes network devices and transmission media, but is not limited thereto. The transmission medium can be a wired link, such as, but not limited to, a coaxial cable, optical fiber, and a digital subscriber line (DSL), or a wireless link, such as, but not limited to, Bluetooth, a near-field communication (NFC) module, wireless fidelity (WIFI), and a mobile device network.
[0047] It can be understood that the number of gateway devices and clients in the device management system of the multi-connected centralized control gateway shown in Figure 1 is only an example. In a specific implementation, the device management system of the multi-connected centralized control gateway can include any number of gateway devices and clients, and the embodiments of this specification do not specifically limit this.
[0048] In practical applications, the network configuration and management of distributed multi-connected centralized control gateways still present numerous challenges. When a gateway lacks wired network access and requires a specific Wi-Fi connection to join a cluster, one-to-one configuration is time-consuming and inefficient for a large number of devices. Traditional gateway configuration often uses a fixed IP address, requiring a direct network cable connection to the gateway and then accessing the fixed IP address for configuration. This is a complex and time-consuming process. In the smart home sector, Wi-Fi configuration is often transferred by connecting the device to Bluetooth or an AP hotspot. While this reduces configuration complexity, it still requires individual configuration for multiple devices, preventing batch operations.
[0049] To solve the above problems, the following describes a device management method for a multi-connected centralized control gateway provided by an exemplary embodiment of the present application, in conjunction with FIG1 . Specifically, please refer to FIG2 , which is a flow chart of a device management method for a multi-connected centralized control gateway provided by an exemplary embodiment of the present application. As shown in FIG2 , the device management method for a multi-connected centralized control gateway includes the following steps:
[0050] S201: If the gateway device has not joined the multi-connected centralized control gateway cluster to which the client is connected, the gateway device determines a target network configuration mode corresponding to the gateway device according to a target state of a WIFI module of the gateway device.
[0051] Specifically, after the gateway device is powered on, it will automatically check its own status. If it is detected that the network connection status of the gateway device is not connected, or if it is detected that the IP address of the central gateway device in the multi-connected centralized control gateway cluster does not exist in the database of the gateway device, it can be determined that the gateway device has not joined the multi-connected centralized control gateway cluster connected by the client, and it will be controlled to enter the network distribution mode. If it is detected that the network connection status of the gateway device is connected and it is detected that the IP address of the central gateway device in the multi-connected centralized control gateway cluster exists in the database of the gateway device, it can be considered that the gateway device has joined the multi-connected centralized control gateway cluster connected by the client, and no further network distribution is required. Subsequently, it is only necessary to perform corresponding management operations according to the management tasks issued by the client forwarded by the central gateway device.
[0052] Specifically, after detecting that the gateway device has not joined the multi-connected centralized control gateway cluster connected to the client and controlling it to enter the network configuration mode, the gateway device will determine the corresponding target network configuration method based on the target state of its WIFI module. The above-mentioned target network configuration method may include but is not limited to WIFI configuration or Bluetooth configuration. For example, but not limited to, when the target state of the WIFI module of the gateway device shows that the gateway device has the ability of WiFi network configuration, the target network configuration method corresponding to the gateway device is determined to be WIFI configuration, that is, the gateway device is controlled to enter the WIFI network configuration; when the target state of the WIFI module of the gateway device shows that the gateway device currently does not have the ability of WiFi network configuration, for example, the gateway device is already connected to other WIFI, it can be determined that the target network configuration method corresponding to the gateway device is Bluetooth configuration, that is, the gateway device is controlled to enter the Bluetooth network configuration.
[0053] Optionally, as shown in FIG3 , the implementation process of determining the target network configuration mode corresponding to the gateway device according to the target state of the WIFI module of the gateway device may include:
[0054] S301, determining whether the WIFI module of the gateway device is in STA mode or does not support sniffer mode.
[0055] Specifically, when the gateway device is in STA mode, its Wi-Fi module is currently operating in wireless terminal mode, connecting to the network through an AP hotspot. In this case, the gateway device cannot implement Wi-Fi network configuration. When the gateway device enters sniffer mode, it will monitor all 802.11 messages in the environment and must poll and monitor on supported channels. If the gateway device does not support sniffer mode, it cannot monitor all 802.11 messages in the environment and cannot implement Wi-Fi network configuration.
[0056] S302: If the WIFI module is in STA mode or the WIFI module does not support sniffer mode, determine that the target network configuration mode corresponding to the gateway device is Bluetooth network configuration.
[0057] Specifically, if the WIFI module is in STA mode or does not support sniffer mode, it can be considered that the gateway device currently does not have the WIFI network configuration capability, and the target network configuration mode corresponding to the gateway device can be determined to be Bluetooth network configuration, that is, it is controlled to enter the Bluetooth network configuration.
[0058] S303: If the WIFI module is not in STA mode and supports sniffer mode, determine that the target network configuration mode corresponding to the gateway device is WIFI network configuration.
[0059] Specifically, if the WIFI module is not in STA mode and supports sniffer mode, it can be considered that the gateway device currently has WIFI network configuration capability, and the target network configuration mode corresponding to the gateway device can be determined to be WIFI network configuration, that is, it can be controlled to enter the WIFI network configuration.
[0060] In the embodiment of the present application, the target network configuration mode corresponding to the gateway device is determined by the target state of the WIFI module of the gateway device, that is, whether it is in STA mode or does not support sniffer mode. Since WIFI network configuration is more efficient than Bluetooth network configuration and the distance between devices supported by the network configuration is farther, WIFI network configuration is given priority when the gateway device currently has WIFI network configuration capability. Only when the gateway device currently does not have WIFI network configuration capability will Bluetooth network configuration be attempted. This can ensure the network configuration efficiency and performance of the gateway device to a certain extent and improve the flexibility of network configuration of the gateway device.
[0061] Next, please continue to refer to FIG. 2 . As shown in FIG. 2 , the device management method of the multi-connected centralized control gateway further includes:
[0062] S202: The client determines target broadcast data according to preset rules based on the client's target information.
[0063] Specifically, the above-mentioned target information includes the specified WIFI information of the specified WIFI in the client and / or the target identification information corresponding to the client. The above-mentioned specified WIFI can be, but is not limited to, the WIFI configured for the gateway device designated by the user as the one to be configured (i.e., not joined to the multi-connected centralized control gateway cluster), or the WIFI to which the client is currently connected, etc. When the user wants to configure one or more gateway devices to be configured to join the multi-connected centralized control gateway cluster, the client can be triggered based on the target operation (such as but not limited to click, slide, etc.) to determine the corresponding target broadcast data according to preset rules based on the above-mentioned target information, such as but not limited to directly encrypting and encapsulating the specified WIFI information and / or the target identification information corresponding to the client to obtain the corresponding target broadcast data. The above-mentioned target identification information can be, but is not limited to, a specific identifier customized for the client, etc., used to characterize the identity of the client. The above-mentioned specified WIFI information can be, but is not limited to, including the network name and password of the specified WIFI, etc.
[0064] Optionally, the client can determine the corresponding target broadcast data based on the target network configuration method corresponding to the gateway device based on the target information. That is, once the gateway device to be configured has determined the corresponding target network configuration method, it can package the target network configuration method and the identity information of the gateway device together and broadcast it to inform the client of its current target network configuration method, so that the client can subsequently determine the corresponding target broadcast data based on its corresponding target network configuration method.
[0065] Optionally, as shown in Figure 4, when the target network configuration mode corresponding to the gateway device is WIFI configuration, the client can encrypt and encapsulate the specified WIFI information of the specified WIFI, for example, but not limited to encrypting the network name and password of the specified WIFI and encapsulating it through the user datagram protocol to obtain the corresponding target broadcast data.
[0066] Optionally, as shown in FIG5 , when the target network configuration mode corresponding to the gateway device is Bluetooth network configuration, the client may directly add its corresponding target identification information to the broadcast packet to obtain the corresponding target broadcast data.
[0067] It can be understood that when there are multiple gateway devices to be configured with different target network configuration methods, in order to ensure the network configuration efficiency and realize batch configuration of multiple devices to be configured, the above-mentioned client can simultaneously determine the target broadcast data corresponding to the WIFI network configuration and the target broadcast data corresponding to the Bluetooth network configuration according to the implementation process shown in Figures 4 and 5, and broadcast them together to ensure that gateway devices with different target network configuration methods can obtain the target broadcast data that conforms to their corresponding network configuration methods, thereby realizing efficient network configuration.
[0068] S203: The client broadcasts target broadcast data.
[0069] Specifically, after determining the target broadcast data, the client can directly broadcast the target broadcast data so that gateway devices that have not joined the multi-connected centralized control gateway cluster can connect to the specified WIFI based on the target broadcast data, complete the network configuration, join the multi-connected centralized control gateway cluster, and directly transmit the target broadcast data through broadcasting. There is no need to wait for the two devices to connect before data transmission, which supports batch configuration of multiple devices at the same time, greatly improving the network configuration efficiency in the case of multiple devices.
[0070] S204: The gateway device obtains the target broadcast data broadcast by the client based on the target network configuration mode.
[0071] Optionally, as shown in Figure 4, when the target network configuration mode is WIFI network configuration, the gateway device can be controlled to enter sniffer mode first to monitor all 802.11 messages in the environment, and the gateway device needs to poll and monitor on the supported channels until the target broadcast data broadcast by the client after encrypting and encapsulating the specified WIFI information is obtained, and then the gateway device is controlled to stop channel polling and monitoring.
[0072] It can be understood that in order to determine the accuracy of the target broadcast data obtained by the gateway device and avoid the problem of network configuration failure of the gateway device due to incorrect target broadcast data obtained, the gateway device can stop channel polling and monitoring only after obtaining the target broadcast data broadcast by the client and decrypting and verifying that it is correct, thereby improving the success rate and reliability of network configuration to a certain extent.
[0073] Optionally, as shown in FIG5 , when the target network configuration mode is Bluetooth network configuration, the gateway device may be controlled to start Bluetooth broadcasting, and target broadcast data broadcast by the client with the target identification information of the client added thereto may be obtained based on the Bluetooth broadcasting.
[0074] S205: The gateway device connects to the designated WIFI based on the target broadcast data and joins the multi-connected centralized control gateway cluster.
[0075] Specifically, after the gateway device obtains the target broadcast data broadcast by the client, it can obtain the specified WIFI information of the specified WIFI according to the target broadcast data, and then connect to the specified WIFI based on the specified WIFI information, complete the network configuration, and join the multi-connection centralized control gateway cluster.
[0076] It can be understood that the above-mentioned gateway devices may include multiple ones, that is, the embodiment of the present application can realize the simultaneous network configuration of multiple gateway devices, that is, batch network configuration. The specific number of gateway devices participating in the network configuration can be set according to actual conditions, and the embodiment of the present application does not limit this.
[0077] Optionally, as shown in Figure 4, when the gateway device performs Wi-Fi network configuration, after obtaining the target broadcast data broadcast by the client and stopping channel polling and monitoring, it can switch from sniffer mode to STA mode and connect to the corresponding designated Wi-Fi based on the designated Wi-Fi information encrypted and encapsulated in the target broadcast data, completing the network configuration and allowing the gateway device to join the multi-connected centralized control gateway cluster. Each gateway device in the multi-connected centralized control gateway cluster is connected to the same designated Wi-Fi to facilitate batch management of each gateway device in the multi-connected centralized control gateway cluster.
[0078] Optionally, as shown in Figure 5, when the gateway device performs Bluetooth network configuration, after obtaining the target broadcast data that has been added with the client's target identification information, the gateway device can send a scan request message to the client based on the target identification information. The scan request message carries the identity information of the gateway device. After receiving the scan request message sent by the gateway device based on the client's target identification information, the client will return a corresponding scan response message to the gateway device based on the identity information carried in the scan request message; the scan response message includes the specified WIFI information to be configured. After receiving the scan response message returned by the client based on the scan request message, the gateway device can connect to the specified WIFI based on the specified WIFI information in the scan response message, complete the network configuration, and join the multi-connected centralized control gateway cluster.
[0079] In an embodiment of the present application, if the gateway device has not joined the multi-connected centralized control gateway cluster connected to the client, the target network configuration mode corresponding to the gateway device is determined according to the target state of the WIFI module of the gateway device, and the target network configuration mode includes WIFI configuration or Bluetooth configuration; based on the target network configuration mode, the target broadcast data broadcast by the client is obtained, and the target broadcast data is determined by the client according to the preset rules based on the target information of the client, and the target information includes the specified WIFI information of the specified WIFI in the client and / or the target identification information corresponding to the client; based on the target broadcast data, the specified WIFI is connected to join the multi-connected centralized control gateway cluster, so that when the gateway device is not networked and joins the multi-connected centralized control gateway cluster, compared with the network configuration method of a single gateway device one by one, batch network configuration can be performed through WIFI or Bluetooth in a broadcast manner, without waiting for the two devices to connect before data transmission, and without one-to-one configuration of fixed IP addresses, a simple, fast and convenient gateway batch network configuration operation can be achieved, avoiding tedious manual connection and configuration operations, greatly shortening the network configuration time of the multi-connected centralized control gateway device, and improving the network configuration efficiency.
[0080] After the gateway device joins the multi-connected centralized control gateway cluster, in order to facilitate the management of the multi-connected centralized control gateway cluster, it is necessary to count the gateway device set corresponding to the multi-connected centralized control gateway cluster. The authenticity of the gateway device set corresponding to the multi-connected centralized control gateway cluster often affects the efficiency and accuracy of managing the multi-connected centralized control gateway cluster. Therefore, in the process of device management of the multi-connected centralized control gateway, it is also necessary to perform certain verification on the gateway device set corresponding to the multi-connected centralized control gateway cluster to ensure management efficiency and accuracy. Specifically as shown in Figure 6, the device management method of the above-mentioned multi-connected centralized control gateway can include the steps shown in Figure 2 to realize the batch configuration of gateway devices to join the multi-connected centralized control gateway cluster, and can also include the following steps:
[0081] S601: The gateway device broadcasts the gateway device information of the gateway device via Bluetooth.
[0082] Specifically, after the gateway device joins the multi-connected centralized control gateway cluster network, it will broadcast its own gateway device information via Bluetooth. The gateway device information includes the identity information and IP address information of the gateway device.
[0083] S602: The client determines a gateway device set corresponding to a multi-connection centralized control gateway cluster based on gateway device information of at least one gateway device.
[0084] Specifically, after the client receives the gateway device information broadcast by at least one gateway device via Bluetooth, it can directly determine the gateway device set corresponding to the multi-connected centralized control gateway cluster based on the gateway device information of the above-mentioned at least one gateway device. The above-mentioned gateway device set includes the identity information and IP address information of each gateway device in the multi-connected centralized control gateway cluster.
[0085] S603: The client performs a connectivity test on each gateway device in the gateway device set, and obtains a connectivity result corresponding to each gateway device in the gateway device set.
[0086] Specifically, the client can send a test message to each gateway device in the gateway device set based on the IP address information of each gateway device to perform a connectivity test on each gateway device, and determine the connectivity results corresponding to each gateway device in the gateway device set based on whether a test response message returned by each gateway device based on the test message is received. In other words, when a test response message returned by a gateway device is received, that is, the gateway device responds to the test message sent by the client, it can be considered that the gateway device and the client are in a connected state. When a test response message returned by a gateway device is not received, that is, the gateway device does not respond to the test message sent by the client, it can be considered that the gateway device and the client are in a disconnected state.
[0087] S604: The client updates the gateway device set corresponding to the multi-connection centralized control gateway cluster based on the connection results corresponding to each gateway device in the gateway device set.
[0088] Specifically, the client can remove the gateway devices in the gateway device set that are not connected, so as to obtain the updated gateway device set corresponding to the multi-line centralized control gateway cluster, to ensure that each gateway device in the updated gateway device set can be connected and managed, and avoid the impact of the disconnected gateway devices in the gateway device set on the accuracy and effectiveness of the management of the multi-line centralized control gateway cluster devices.
[0089] Optionally, the above-mentioned connectivity result includes that the gateway device is not connected. In order to avoid the problem that the accuracy of updating the gateway device set corresponding to the multi-connected centralized control gateway cluster is affected by the existence of some gateway addresses that cannot be connected due to network address changes and the like, as well as the inconvenience in managing the multi-connected centralized control gateway cluster devices, if there are disconnected gateway devices in the gateway device set, the client can also first perform a device scan based on the target IP segment to obtain the corresponding device scan result. The above-mentioned target IP segment is the IP segment where the client is located or the specified IP segment input by the user based on the client; then, the gateway device set corresponding to the multi-connected centralized control gateway cluster is updated based on the device scan result. That is, in an embodiment of the present application, the IP segment where the client device is located can be searched to find all manageable gateway devices, or the user can manually specify the IP segment to search again, and after finding all gateway devices, the gateway device set (such as but not limited to the gateway list) is updated, thereby realizing rapid and accurate discovery of gateway devices in a complex LAN environment through IP scanning, thereby improving the flexibility and efficiency of device management.
[0090] In order to achieve more comprehensive multi-connected centralized control gateway device management and improve the flexibility of device management, the device management method of the multi-connected centralized control gateway can include the steps shown in Figure 2 to achieve batch network configuration of gateway devices to join the multi-connected centralized control gateway cluster and the steps shown in Figure 6 to achieve the update of the gateway device set corresponding to the multi-connected centralized control gateway cluster. In addition, the process shown in Figure 7 can also be used to efficiently and conveniently realize the discovery and aggregation of internal and external machines connected to each gateway device in the multi-connected centralized control gateway cluster. Specifically, as shown in Figure 7, after the gateway device realizes network configuration and joins the multi-connected centralized control gateway cluster, the device management method of the multi-connected centralized control gateway can also include the following steps:
[0091] S701: The client sends a device tracking instruction to the central gateway device in the multi-connected centralized control gateway cluster.
[0092] Specifically, when the user wants to know the information of the indoor and outdoor devices connected to each gateway device in the multi-connected centralized control gateway cluster or wants to manage the indoor and outdoor devices connected to each gateway device, the client can be triggered to send the corresponding device tracking instruction to the central gateway device in the multi-connected centralized control gateway cluster. The device tracking instruction can perform one-click discovery and tracking of indoor and outdoor devices for all gateway devices in the multi-connected centralized control gateway cluster, realizing large-scale device tracking and discovery in a short time, or it can only discover and track indoor and outdoor devices for user-specified gateway devices in the multi-connected centralized control gateway cluster, so as to improve the flexibility of multi-connected centralized control gateway device management.
[0093] S702: The central gateway device forwards the device tracking instruction to the gateway devices in the multi-connected centralized control gateway cluster.
[0094] Specifically, when the client performs internal and external machine tracking, the data center (central gateway device) will query the gateway device set corresponding to the multi-connected centralized control gateway cluster after receiving the device tracking instruction sent by the client, and at the same time send device tracking instructions to each gateway device in the gateway device set.
[0095] S703 : The gateway device sends a target message to each serial interface of the gateway device and target detection address information in response to the device tracking instruction.
[0096] Specifically, after receiving the device tracking instruction sent by the client and forwarded by the central gateway device, the gateway device can respond to the device tracking instruction and send a target message to each serial interface of the gateway device and the target detection address information. The above-mentioned target detection address information includes the external device address information and the internal device address information accessed by the serial interface.
[0097] Optionally, each serial interface (COM interface) in the gateway device can be connected to one or more target systems (for example, but not limited to eight refrigerant systems), where the addresses of the outdoor unit and indoor unit in each target system are known, for example, addresses 129-132 are outdoor units, and 0-63 are indoor units. After receiving the device tracking instruction, each gateway device can concurrently attempt to send 129 outdoor unit message (target message) detection to the serial interface. If there is no response, it means that the outdoor unit with address 129 does not exist in the target system corresponding to the serial interface. Then, it will continue to try the outdoor unit message (target message) detection with addresses 130-132 under the target system and the indoor unit message (target message) detection with addresses 0-63 in turn until the detection of all addresses of all target systems is completed.
[0098] S704: If the gateway device receives a target response message corresponding to the target message, the gateway device determines target device information of the target device connected to the serial interface based on the target response message.
[0099] Specifically, the target device includes an external device connected to the gateway device and / or an internal device connected to the external device. That is, if the gateway device receives an external device response message corresponding to an external device message, it can determine the device type and device address information of the external device connected to the serial interface based on the detection address of the external device message; and / or if the gateway device receives an internal device response message corresponding to an internal device message, it can determine the device type and device address information of the internal device connected to the serial interface based on the detection address of the internal device message.
[0100] Optionally, in order to achieve more refined device management of the multi-connected centralized control gateway, if the target response message received by the gateway device is an abnormal message, it can be determined that the target device connected to the corresponding serial interface according to the target detection address information corresponding to the target response message is an abnormal device, that is, the target device is recorded as an abnormal device in the target device information corresponding to the target device connected to the serial interface; if the target response message is a normal message, the device type information and device address information of the target device connected to the corresponding serial interface can be determined based on the target detection address information corresponding to the target response message.
[0101] S705 , the gateway device reports target device information of target devices connected to each serial interface of the gateway device to the central gateway device.
[0102] Specifically, after determining the target device information of the target device corresponding to each serial interface of the gateway device, the gateway device may report the target device information to the central gateway device.
[0103] S706: The central gateway device aggregates the target device information reported by each gateway device in the multi-connected centralized control gateway cluster to obtain corresponding target device aggregate information, and returns it to the client.
[0104] Specifically, after the central gateway device receives the target device information reported by each gateway device in the multi-line centralized control gateway cluster, it can summarize it to obtain the target device summary information corresponding to the multi-line centralized control gateway cluster, so that the client can achieve more precise and flexible management of each device in the multi-line centralized control gateway cluster based on the target device summary information.
[0105] Next, please refer to Figure 8, which is a schematic diagram of the structure of a gateway device provided in an embodiment of the present application. As shown in Figure 8, the gateway device 800 includes:
[0106] A first determining module 810 is configured to determine a target network configuration mode corresponding to the gateway device based on a target state of the Wi-Fi module of the gateway device if the gateway device has not joined the multi-connected centralized control gateway cluster to which the client is connected; the target network configuration mode may include Wi-Fi configuration or Bluetooth configuration;
[0107] An acquisition module 820 is configured to acquire target broadcast data broadcast by the client based on the target network configuration mode; the target broadcast data is determined by the client according to preset rules based on the target information of the client; the target information includes the specified WIFI information of the specified WIFI in the client and / or the target identification information corresponding to the client;
[0108] The connection module 830 is used to connect to the above-mentioned designated WIFI based on the above-mentioned target broadcast data and join the above-mentioned multi-connection centralized control gateway cluster.
[0109] In a possible implementation, the first determining module 810 includes:
[0110] A judging unit, configured to judge whether the WIFI module of the gateway device is in STA mode or does not support sniffer mode;
[0111] A first determining unit is configured to determine that the target network configuration mode corresponding to the gateway device is the Bluetooth network configuration mode if the WIFI module is in STA mode or the WIFI module does not support sniffer mode;
[0112] The second determining unit is configured to determine that the target network configuration mode corresponding to the gateway device is the WIFI network configuration mode if the WIFI module is not in the STA mode and supports the sniffer mode.
[0113] In a possible implementation, the target network configuration mode is the WIFI network configuration mode;
[0114] The acquisition module 820 includes:
[0115] A first control unit is used to control the gateway device to enter a sniffer mode;
[0116] A second control unit is configured to poll and monitor on a channel supported by the gateway device until the target broadcast data broadcast by the client is obtained, and then control the gateway device to stop channel polling and monitoring; the target broadcast data is obtained by the client encrypting and encapsulating the specified WIFI information of the specified WIFI;
[0117] The connection module 830 includes:
[0118] A mode switching unit, configured to switch the gateway device from sniffer mode to STA mode;
[0119] The first connection unit is used to connect the above-mentioned designated WIFI based on the above-mentioned designated WIFI information in the above-mentioned target broadcast data when the above-mentioned gateway device is in STA mode, so that the above-mentioned gateway device joins the above-mentioned multi-connection centralized control gateway cluster.
[0120] In a possible implementation, the target network configuration method is the Bluetooth network configuration method;
[0121] The acquisition module 820 includes:
[0122] A third control unit is used to control the gateway device to start Bluetooth broadcasting;
[0123] A first acquiring unit is configured to acquire target broadcast data broadcast by the client based on the Bluetooth broadcast; the target broadcast data includes target identification information corresponding to the client;
[0124] The connection module 830 includes:
[0125] A first sending unit is configured to send a scan request message to the client based on the target identification information; the scan request message carries the identity information of the gateway device;
[0126] A first receiving unit is configured to receive a scan response message returned by the client based on the scan request message; the scan response message includes the designated WIFI information of the designated WIFI;
[0127] The second connection unit is configured to connect to the designated WIFI based on the designated WIFI information in the scan response message and join the multi-connection centralized control gateway cluster.
[0128] In a possible implementation, the gateway device 800 further includes:
[0129] The Bluetooth broadcast module is used to broadcast the gateway device information of the above-mentioned gateway device via Bluetooth, so that the above-mentioned client can determine the gateway device set corresponding to the above-mentioned multi-connected centralized control gateway cluster based on the gateway device information of at least one of the above-mentioned gateway devices, and perform connectivity tests on each gateway device in the above-mentioned gateway device set to update the above-mentioned gateway device set; the above-mentioned gateway device information includes the identity information and IP address information of the above-mentioned gateway device.
[0130] In a possible implementation, the gateway device 800 further includes:
[0131] A first receiving module is configured to receive a device tracking instruction sent by the client and forwarded by a central gateway device in the multi-connected centralized control gateway cluster;
[0132] A first sending module is used to send a target message to each serial interface and target detection address information of the gateway device in response to the device tracking instruction;
[0133] A second determining module is configured to determine, if a target response message corresponding to the target message is received, target device information of a target device connected to the serial interface based on the target response message; the target device includes an external device connected to the gateway device and / or an internal device connected to the external device;
[0134] The information reporting module is used to report the target device information of the target device corresponding to each serial interface of the above-mentioned gateway device to the above-mentioned central gateway device, so that the above-mentioned central gateway device can summarize the above-mentioned target device information reported by each gateway device in the above-mentioned multi-connection centralized control gateway cluster and return it to the above-mentioned client.
[0135] In a possible implementation, the second determining module includes:
[0136] a third determining unit, configured to determine, if the target response message is an abnormal message, that the target device connected to the serial interface corresponding to the target detection address information is an abnormal device;
[0137] The fourth determining unit is configured to determine, if the target response message is a normal message, device type information and device address information of the target device connected to the serial interface corresponding to the target detection address information based on the target response message.
[0138] The division of the modules in the above-mentioned gateway device is for illustration only. In other embodiments, the gateway device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned gateway device. The implementation of each module in the gateway device provided in the embodiments of this specification can be in the form of a computer program. The computer program can be run on the gateway device, terminal or server. The program modules constituted by the computer program can be stored in the memory of the gateway device, terminal or server. When the computer program is executed by the processor, all or part of the steps of the device management method of the multi-connected centralized control gateway described in the embodiments of this specification are implemented.
[0139] Next, please refer to Figure 9, which is a schematic diagram of the structure of a client provided in an embodiment of the present application. As shown in Figure 9, the client 900 includes:
[0140] The third determining module 910 is configured to determine target broadcast data according to preset rules based on the target information of the client; the target information includes the designated WIFI information of the designated WIFI in the client and / or the target identification information corresponding to the client;
[0141] The broadcast module 920 is used to broadcast the target broadcast data so that the gateway devices that have not joined the multi-connection centralized control gateway cluster connected to the client can connect to the designated WIFI based on the target broadcast data and join the multi-connection centralized control gateway cluster.
[0142] In a possible implementation, the third determining module 910 is specifically configured to:
[0143] When the target network configuration mode corresponding to the above-mentioned gateway device is WIFI network configuration, the specified WIFI information of the above-mentioned specified WIFI is encrypted and encapsulated to obtain the target broadcast data; or
[0144] When the target network configuration mode corresponding to the above-mentioned gateway device is Bluetooth network configuration, the target identification information corresponding to the above-mentioned client is added to the broadcast packet to obtain target broadcast data.
[0145] In a possible implementation, the client 900 further includes:
[0146] A second receiving module is configured to receive a scan request message sent by the gateway device based on the target identification information when the target network configuration mode corresponding to the gateway device is Bluetooth network configuration; the scan request message carries the identity information of the gateway device;
[0147] The second sending module is used to return a corresponding scan response message to the above-mentioned gateway device based on the above-mentioned scan request message; the above-mentioned scan response message includes the above-mentioned specified WIFI information, so that the above-mentioned gateway device connects to the above-mentioned specified WIFI based on the above-mentioned specified WIFI information in the above-mentioned scan response message and joins the above-mentioned multi-connection centralized control gateway cluster.
[0148] In a possible implementation, the client 900 further includes:
[0149] A third receiving module is configured to receive gateway device information broadcasted by at least one of the above-mentioned gateway devices via Bluetooth; the above-mentioned gateway device information includes identity information and IP address information of the above-mentioned gateway device;
[0150] A fourth determining module is configured to determine a gateway device set corresponding to the multi-connected centralized control gateway cluster based on the gateway device information of at least one of the gateway devices;
[0151] A testing module, configured to perform a connectivity test on each gateway device in the gateway device set to obtain a connectivity result corresponding to each gateway device in the gateway device set;
[0152] The update module is used to update the gateway device set corresponding to the above-mentioned multi-connection centralized control gateway cluster based on the connectivity results corresponding to each gateway device in the above-mentioned gateway device set.
[0153] In a possible implementation, the connectivity result includes that the gateway device is not connected;
[0154] The update modules mentioned above include:
[0155] a device scanning unit configured to scan a device based on a target IP segment if there is a disconnected gateway device in the gateway device set, and obtain a device scanning result; the target IP segment being the IP segment where the client is located or a specified IP segment input by the user based on the client;
[0156] An updating unit is used to update the gateway device set corresponding to the multi-connected centralized control gateway cluster based on the device scanning results.
[0157] In a possible implementation, the client 900 further includes:
[0158] The third sending module is used to send a device tracking instruction to the central gateway device in the above-mentioned multi-connected centralized control gateway cluster, so that the above-mentioned central gateway device forwards the above-mentioned device tracking instruction to the gateway devices in the above-mentioned multi-connected centralized control gateway cluster, and summarizes the target device information of each serial interface of the above-mentioned gateway device corresponding to the target device connected to the target device reported by each gateway device in the above-mentioned multi-connected centralized control gateway cluster based on the above-mentioned device tracking instruction to obtain target device summary information; the above-mentioned target device includes an external device connected to the above-mentioned gateway device and / or an internal device connected to the above-mentioned external device;
[0159] The fourth receiving module is used to receive the target device summary information returned by the above-mentioned central gateway device.
[0160] The division of the modules in the client described above is for illustrative purposes only. In other embodiments, the client can be divided into different modules as needed to perform all or part of the functionality of the client described above. The various modules in the client provided in the embodiments of this specification can be implemented in the form of a computer program. This computer program can be executed on a terminal or server. The program modules comprising this computer program can be stored in the memory of the terminal or server. When executed by a processor, this computer program implements all or part of the steps of the device management method for a multi-connected centralized control gateway described in the embodiments of this specification.
[0161] 10 , which illustrates a schematic diagram of an electronic device according to an embodiment of the present invention. As shown in FIG10 , the electronic device 1000 may include at least one processor 1010 , at least one network interface 1020 , a user interface 1030 , a memory 1040 , and at least one communication bus 1050 .
[0162] The communication bus 1050 is used to implement connection and communication between these components.
[0163] The network interface 1020 may include but is not limited to a low-power Bluetooth module, a Near Field Communication (NFC) module, a Wireless Fidelity (Wi-Fi) module, and the like.
[0164] The user interface 1030 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 1030 may also include a standard wired interface and a wireless interface.
[0165] The processor 1010 may include one or more processing cores. The processor 1010 utilizes various interfaces and circuits to connect various components within the electronic device 1000. It executes instructions, programs, code sets, or instruction sets stored in the memory 1040, and accesses data stored in the memory 1040 to perform various functions and process data within the electronic device 1000. Optionally, the processor 1010 may be implemented using at least one hardware form factor of a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 1010 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content displayed on the display; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 1010 and may be implemented as a separate chip.
[0166] Among them, the memory 1040 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1040 includes a non-transitory computer-readable storage medium. The memory 1040 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1040 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a determination function, a sending function, a receiving function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1040 may also be at least one storage device located away from the aforementioned processor 1010. As shown in Figure 10, the memory 1040 as a computer storage medium may include an operating system, a network communication module, a user interface module and program instructions.
[0167] In some possible embodiments, in the electronic device 1000 shown in Figure 10, the user interface 1030 is mainly used to provide an input interface for the user and obtain data input by the user; the above-mentioned electronic device 1000 can be the gateway device 800 shown in Figure 8, and the processor 1010 can be used to call the program instructions stored in the memory 1040, and specifically perform the following operations: if the above-mentioned gateway device has not joined the multi-connected centralized control gateway cluster connected to the client, then determine the target network configuration method corresponding to the above-mentioned gateway device according to the target state of the WIFI module of the above-mentioned gateway device; the above-mentioned target network configuration method includes WIFI configuration or Bluetooth configuration; based on the above-mentioned target network configuration method, obtain the target broadcast data broadcast by the above-mentioned client; the above-mentioned target broadcast data is determined by the above-mentioned client based on the target information of the above-mentioned client according to preset rules; the above-mentioned target information includes the specified WIFI information of the specified WIFI in the above-mentioned client and / or the target identification information corresponding to the above-mentioned client; connect to the above-mentioned specified WIFI based on the above-mentioned target broadcast data and join the above-mentioned multi-connected centralized control gateway cluster.
[0168] In some possible embodiments, when the processor 1010 executes the above-mentioned determination of the target network configuration mode corresponding to the gateway device according to the target state of the WIFI module of the gateway device, it is specifically used to execute: determining whether the WIFI module of the gateway device is in STA mode or does not support sniffer mode; if the WIFI module is in STA mode or the WIFI module does not support sniffer mode, determining that the target network configuration mode corresponding to the gateway device is the Bluetooth network configuration; if the WIFI module is not in STA mode and the WIFI module supports sniffer mode, determining that the target network configuration mode corresponding to the gateway device is the WIFI network configuration.
[0169] In some possible embodiments, the target network configuration mode is the WIFI network configuration mode;
[0170] When the processor 1010 executes the target broadcast data broadcast by the client based on the target network configuration method, it is specifically used to execute: controlling the gateway device to enter sniffer mode; polling and listening on the channel supported by the gateway device until the target broadcast data broadcast by the client is obtained, and then controlling the gateway device to stop channel polling and listening; the target broadcast data is obtained by the client encrypting and encapsulating the specified WIFI information of the specified WIFI.
[0171] The processor 1010 executes the above-mentioned connection to the designated WIFI based on the target broadcast data so that the gateway device joins the multi-connected centralized control gateway cluster, and is specifically used to execute: switching the gateway device from sniffer mode to STA mode; when the gateway device is in STA mode, connecting to the designated WIFI based on the designated WIFI information in the target broadcast data so that the gateway device joins the multi-connected centralized control gateway cluster.
[0172] In some possible embodiments, the target network configuration method is the Bluetooth network configuration method;
[0173] When the processor 1010 executes the target broadcast data broadcast by the client based on the target network configuration method, it is specifically used to execute: controlling the gateway device to start Bluetooth broadcasting; obtaining the target broadcast data broadcast by the client based on the Bluetooth broadcasting; the target broadcast data includes the target identification information corresponding to the client.
[0174] When the processor 1010 executes the above-mentioned connection to the designated WIFI based on the target broadcast data and joins the multi-connected centralized control gateway cluster, it is specifically used to execute: sending a scan request message to the client based on the target identification information; the scan request message carries the identity information of the gateway device; receiving a scan response message returned by the client based on the scan request message; the scan response message includes the designated WIFI information of the designated WIFI; connecting to the designated WIFI based on the designated WIFI information in the scan response message and joining the multi-connected centralized control gateway cluster.
[0175] In some possible embodiments, after the processor 1010 executes the above-mentioned connection to the specified WIFI based on the above-mentioned target broadcast data and joins the above-mentioned multi-connected centralized control gateway cluster, it is also used to execute: broadcasting the gateway device information of the above-mentioned gateway device via Bluetooth, so that the above-mentioned client determines the gateway device set corresponding to the above-mentioned multi-connected centralized control gateway cluster based on the gateway device information of at least one of the above-mentioned gateway devices, and performs connectivity tests on each gateway device in the above-mentioned gateway device set to update the above-mentioned gateway device set; the above-mentioned gateway device information includes the identity information and IP address information of the above-mentioned gateway device.
[0176] In some possible embodiments, after the processor 1010 executes the above-mentioned connection to the designated WIFI based on the above-mentioned target broadcast data and joins the above-mentioned multi-connected centralized control gateway cluster, it is also used to execute: receiving the device tracking instruction sent by the above-mentioned client forwarded by the central gateway device in the above-mentioned multi-connected centralized control gateway cluster; in response to the above-mentioned device tracking instruction, sending a target message to each serial interface and target detection address information of the above-mentioned gateway device; if a target response message corresponding to the above-mentioned target message is received, the target device information of the target device corresponding to the serial interface is determined based on the above-mentioned target response message; the above-mentioned target device includes an external unit connected to the above-mentioned gateway device and / or an internal unit connected to the above-mentioned external unit; the target device information of the target device corresponding to each serial interface of the above-mentioned gateway device is reported to the above-mentioned central gateway device, so that the above-mentioned central gateway device summarizes the above-mentioned target device information reported by each gateway device in the above-mentioned multi-connected centralized control gateway cluster and returns it to the above-mentioned client.
[0177] In some possible embodiments, when the processor 1010 determines the target device information of the target device connected to the serial interface based on the target response message, it is specifically configured to execute:
[0178] If the above-mentioned target response message is an abnormal message, it is determined that the target device connected to the above-mentioned serial interface corresponding to the above-mentioned target detection address information is an abnormal device; if the above-mentioned target response message is a normal message, the device type information and device address information of the target device connected to the above-mentioned serial interface corresponding to the above-mentioned target detection address information are determined based on the above-mentioned target response message.
[0179] In some possible embodiments, the electronic device 1000 may be the client 900 shown in FIG. 9 , and the processor 1010 may be used to call the program instructions stored in the memory 1040 and specifically perform the following operations: determining the target broadcast data according to preset rules based on the target information of the client; the target information includes the specified WIFI information of the specified WIFI in the client and / or the target identification information corresponding to the client; broadcasting the target broadcast data so that the gateway device that has not joined the multi-connected centralized control gateway cluster connected to the client connects to the specified WIFI based on the target broadcast data and joins the multi-connected centralized control gateway cluster.
[0180] In some possible embodiments, when the processor 1010 executes the above-mentioned determination of the target broadcast data based on the target information of the client according to preset rules, it is specifically used to execute: when the target network configuration method corresponding to the gateway device is WIFI configuration, the specified WIFI information of the specified WIFI is encrypted and encapsulated to obtain the target broadcast data; or, when the target network configuration method corresponding to the gateway device is Bluetooth configuration, the target identification information corresponding to the client is added to the broadcast packet to obtain the target broadcast data.
[0181] In some possible embodiments, after executing the above-mentioned broadcast of the above-mentioned target broadcast data, the above-mentioned processor 1010 is also used to execute: when the target network configuration mode corresponding to the above-mentioned gateway device is Bluetooth network configuration, receiving a scan request message sent by the above-mentioned gateway device based on the above-mentioned target identification information; the above-mentioned scan request message carries the identity information of the above-mentioned gateway device; based on the above-mentioned scan request message, returning a corresponding scan response message to the above-mentioned gateway device; the above-mentioned scan response message includes the above-mentioned specified WIFI information, so that the above-mentioned gateway device connects to the above-mentioned specified WIFI based on the above-mentioned specified WIFI information in the above-mentioned scan response message, and joins the above-mentioned multi-connection centralized control gateway cluster.
[0182] In some possible embodiments, the processor 1010 executes the broadcast of the target broadcast data so that a gateway device that has not joined the multi-connection centralized control gateway cluster connected to the client connects to the designated WIFI based on the target broadcast data, and after joining the multi-connection centralized control gateway cluster, is further configured to execute:
[0183] Receive gateway device information broadcasted by at least one of the above-mentioned gateway devices via Bluetooth; the above-mentioned gateway device information includes the identity information and IP address information of the above-mentioned gateway device; determine the gateway device set corresponding to the above-mentioned multi-connected centralized control gateway cluster based on the gateway device information of at least one of the above-mentioned gateway devices; perform connectivity testing on each gateway device in the above-mentioned gateway device set to obtain the connectivity results corresponding to each gateway device in the above-mentioned gateway device set; update the gateway device set corresponding to the above-mentioned multi-connected centralized control gateway cluster based on the connectivity results corresponding to each gateway device in the above-mentioned gateway device set.
[0184] In some possible embodiments, the above-mentioned connection result includes that the above-mentioned gateway device is not connected;
[0185] When the processor 1010 executes the update of the gateway device set corresponding to the multi-connected centralized control gateway cluster based on the connectivity results corresponding to each gateway device in the gateway device set, it is specifically used to execute: if there are unconnected gateway devices in the gateway device set, perform a device scan based on the target IP segment to obtain a device scan result; the target IP segment is the IP segment where the client is located or the specified IP segment input by the user based on the client; and update the gateway device set corresponding to the multi-connected centralized control gateway cluster based on the device scan result.
[0186] In some possible embodiments, the processor 1010 executes the broadcast of the target broadcast data, so that the gateway device of the multi-connected centralized control gateway cluster that has not joined the client connection connects to the specified WIFI based on the target broadcast data, and after joining the multi-connected centralized control gateway cluster, is also used to execute: sending a device tracking instruction to the central gateway device in the multi-connected centralized control gateway cluster, so that the central gateway device forwards the device tracking instruction to the gateway devices in the multi-connected centralized control gateway cluster, and summarizes the target device information of each serial interface of the gateway device corresponding to the target device accessed, reported by each gateway device in the multi-connected centralized control gateway cluster based on the device tracking instruction, to obtain target device summary information; the target device includes an external unit connected to the gateway device and / or an internal unit connected to the external unit; and receives the target device summary information returned by the central gateway device.
[0187] The present application also provides a computer storage medium having instructions stored therein that, when executed on a computer or processor, cause the computer or processor to perform one or more steps of any of the above methods. If the various component modules of the above-mentioned gateway device or client are implemented as software functional units and sold or used as independent products, they may be stored in the storage medium.
[0188] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted via the computer-readable storage medium. The computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired, such as coaxial cable, optical fiber, digital subscriber line (DSL), or wireless (such as infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0189] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When executed, the program can include the processes of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks. The technical features of this embodiment and the implementation scheme can be combined in any manner unless they conflict.
[0190] The embodiments described above are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the scope of protection determined by the claims of the present application.
Claims
1. A device management method for a multi-connection centralized control gateway, the method being applied to a gateway device; the method comprising: If the gateway device has not joined the multi-connection centralized control gateway cluster connected to the client, the target network configuration mode corresponding to the gateway device is determined according to the target state of the WIFI module of the gateway device; the target network configuration mode includes WIFI network configuration or Bluetooth network configuration; Acquire the target broadcast data broadcast by the client based on the target network configuration mode; The target broadcast data is determined by the client according to a preset rule based on the target information of the client; the target information includes the designated WIFI information of the designated WIFI in the client and / or the target identification information corresponding to the client; Based on the target broadcast data, the designated WIFI is connected and joined into the multi-connection centralized control gateway cluster.
2. The method according to claim 1, wherein determining the target network configuration mode corresponding to the gateway device according to the target state of the WIFI module of the gateway device comprises: Determine whether the WIFI module of the gateway device is in STA mode or does not support sniffer mode; If the WIFI module is in STA mode or the WIFI module does not support sniffer mode, determining that the target network configuration mode corresponding to the gateway device is the Bluetooth network configuration; If the WIFI module is not in STA mode and the WIFI module supports sniffer mode, it is determined that the target network configuration mode corresponding to the gateway device is the WIFI network configuration.
3. The method according to claim 1 or 2, wherein the target network configuration mode is the WIFI network configuration; The acquiring the target broadcast data broadcast by the client based on the target network configuration mode includes: Control the gateway device to enter sniffer mode, poll and monitor on the channels supported by the gateway device until the target broadcast data broadcast by the client is obtained, and then control the gateway device to stop channel polling and monitoring; The target broadcast data is obtained by the client encrypting and packaging the designated WIFI information of the designated WIFI; The connecting the designated WIFI based on the target broadcast data so that the gateway device joins the multi-connection centralized control gateway cluster includes: The gateway device is switched from sniffer mode to STA mode, and connected to the designated WIFI based on the designated WIFI information in the target broadcast data, so that the gateway device joins the multi-connection centralized control gateway cluster.
4. The method according to claim 1 or 2, characterized in that: The target network configuration mode is the Bluetooth network configuration; The acquiring the target broadcast data broadcast by the client based on the target network configuration mode includes: Control the gateway device to start Bluetooth broadcasting; Acquire the target broadcast data broadcast by the client based on the Bluetooth broadcast; the target broadcast data includes the target identification information corresponding to the client; The connecting to the designated WIFI based on the target broadcast data and joining the multi-connection centralized control gateway cluster includes: Sending a scan request message to the client based on the target identification information; the scan request message carries the identity information of the gateway device; receiving a scan response message returned by the client based on the scan request message; the scan response message includes the specified WIFI information of the specified WIFI; Based on the designated WIFI information in the scan response message, connect to the designated WIFI and join the multi-connection centralized control gateway cluster.
5. The method according to claim 1, after connecting to the designated WIFI based on the target broadcast data and joining the multi-connection centralized control gateway cluster, the method further comprises: The gateway device information of the gateway device is broadcasted via Bluetooth, so that the client determines the gateway device set corresponding to the multi-connected centralized control gateway cluster based on the gateway device information of at least one of the gateway devices, and performs connectivity tests on each gateway device in the gateway device set to update the gateway device set; the gateway device information includes the identity information and IP address information of the gateway device.
6. The method according to claim 1, after connecting to the designated WIFI based on the target broadcast data and joining the multi-connection centralized control gateway cluster, the method further comprises: Receiving a device tracking instruction sent by the client and forwarded by a central gateway device in the multi-connection centralized control gateway cluster; In response to the device tracking instruction, sending a target message to each serial interface of the gateway device and target detection address information; If a target response message corresponding to the target message is received, target device information of the target device corresponding to the serial interface is determined based on the target response message; the target device includes an external device connected to the gateway device and / or an internal device connected to the external device; The target device information of the target device corresponding to each serial interface of the gateway device is reported to the central gateway device, so that the central gateway device summarizes the target device information reported by each gateway device in the multi-connection centralized control gateway cluster and returns it to the client.
7. The method according to claim 6, wherein determining the target device information of the target device corresponding to the serial interface based on the target response message comprises: If the target response message is an abnormal message, determining that the target device connected to the corresponding serial interface is an abnormal device based on the target detection address information; If the target response message is a normal message, the device type information and the device address information of the target device connected to the corresponding serial interface are determined based on the target response message and the target detection address information.
8. A device management method for a multi-connection centralized control gateway, the method being applied to a client; the method comprising: Determine the target broadcast data according to preset rules based on the target information of the client; The target information includes the designated WIFI information of the designated WIFI in the client and / or the target identification information corresponding to the client; The target broadcast data is broadcasted, so that the gateway devices that have not joined the multi-connection centralized control gateway cluster connected to the client can connect to the designated WIFI based on the target broadcast data and join the multi-connection centralized control gateway cluster.
9. The method according to claim 8, wherein the step of determining the target broadcast data according to a preset rule based on the target information of the client comprises: When the target network configuration mode corresponding to the gateway device is WIFI network configuration, the designated WIFI information of the designated WIFI is encrypted and packaged to obtain target broadcast data; or When the target network configuration mode corresponding to the gateway device is Bluetooth network configuration, the target identification information corresponding to the client is added to the broadcast packet to obtain target broadcast data.
10. The method according to claim 8 or 9, after broadcasting the target broadcast data, the method further comprises: When the target network configuration mode corresponding to the gateway device is Bluetooth network configuration, receiving a scan request message sent by the gateway device based on the target identification information; The scanning request message carries the identity information of the gateway device; Returning a corresponding scan response message to the gateway device based on the scan request message; The scan response message includes the designated WIFI information, so that the gateway device connects to the designated WIFI based on the designated WIFI information in the scan response message and joins the multi-connection centralized control gateway cluster.
11. The method of claim 8, wherein the target broadcast data is broadcasted so that a gateway device that has not joined the multi-connection centralized control gateway cluster connected to the client can connect to the designated WIFI based on the target broadcast data, and after joining the multi-connection centralized control gateway cluster, the method further comprises: Receiving gateway device information broadcasted by at least one of the gateway devices via Bluetooth; The gateway device information includes the identity information and IP address information of the gateway device; Determine the gateway device set corresponding to the multi-connection centralized control gateway cluster based on the gateway device information of at least one of the gateway devices; Performing a connectivity test on each gateway device in the gateway device set to obtain a connectivity result corresponding to each gateway device in the gateway device set; The gateway device set corresponding to the multi-connection centralized control gateway cluster is updated based on the connectivity results corresponding to each gateway device in the gateway device set.
12. The method according to claim 11, wherein the connection result comprises that the gateway device is not connected; The updating of the gateway device set corresponding to the multi-connection centralized control gateway cluster based on the connection results corresponding to each gateway device in the gateway device set includes: If there are unconnected gateway devices in the gateway device set, a device scan is performed based on a target IP segment to obtain a device scan result; the target IP segment is the IP segment where the client is located or the specified IP segment input by the user based on the client; The gateway device set corresponding to the multi-connection centralized control gateway cluster is updated based on the device scanning result.
13. The method of claim 8, wherein the target broadcast data is broadcasted so that a gateway device that has not joined the multi-connection centralized control gateway cluster connected to the client can connect to the designated WIFI based on the target broadcast data, and after joining the multi-connection centralized control gateway cluster, the method further comprises: Sending a device tracking instruction to the central gateway device in the multi-connection centralized control gateway cluster, so that the central gateway device forwards the device tracking instruction to the gateway devices in the multi-connection centralized control gateway cluster, and summarizing the target device information of the target device corresponding to each serial interface of the gateway device reported by each gateway device in the multi-connection centralized control gateway cluster based on the device tracking instruction, to obtain target device summary information; the target device includes an external device connected to the gateway device and / or an internal device connected to the external device; Receive the target device summary information returned by the central gateway device.
14. A gateway device, comprising: A first determination module is used to determine the target network configuration mode corresponding to the gateway device according to the target state of the WIFI module of the gateway device if the gateway device has not joined the multi-connection centralized control gateway cluster to which the client is connected; the target network configuration mode includes WIFI network configuration or Bluetooth network configuration; An acquisition module, used for acquiring target broadcast data broadcast by the client based on the target network configuration mode; The target broadcast data is determined by the client according to a preset rule based on the target information of the client; the target information includes the designated WIFI information of the designated WIFI in the client and / or the target identification information corresponding to the client; A connection module is used to connect to the designated WIFI based on the target broadcast data and join the multi-connection centralized control gateway cluster.
15. A client, comprising: A third determination module, configured to determine target broadcast data according to preset rules based on the target information of the client; The target information includes the designated WIFI information of the designated WIFI in the client and / or the target identification information corresponding to the client; The broadcast module is used to broadcast the target broadcast data so that the gateway devices that have not joined the multi-connection centralized control gateway cluster connected to the client can connect to the designated WIFI based on the target broadcast data and join the multi-connection centralized control gateway cluster.
16. A device management system for a multi-connected centralized control gateway, the device management system for the multi-connected centralized control gateway comprising a gateway device and a client; the gateway device is used to execute the method described in any one of claims 1 to 7, and the client is used to execute the method described in any one of claims 8 to 13.
17. An electronic device comprising: Processor and memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 13.
18. A computer storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 13.
Citation Information
Patent Citations
Streaming media gateway dynamic networking method, device and system, terminal equipment and medium
CN112367309A
Gateway, intelligent equipment network distribution processing method, electronic equipment and storage medium
CN114615099A
Equipment network distribution system and method, related equipment and storage medium
CN115442872A
Cluster management method and device of API gateway
CN115883289A
System and method for beacon-based passive clustering in mobile ad hoc networks (MANET)
US11304084B1