WO2023024752A1 - Network optimization method and apparatus, and electronic device - Google Patents

Network optimization method and apparatus, and electronic device Download PDF

Info

Publication number
WO2023024752A1
WO2023024752A1 PCT/CN2022/105945 CN2022105945W WO2023024752A1 WO 2023024752 A1 WO2023024752 A1 WO 2023024752A1 CN 2022105945 W CN2022105945 W CN 2022105945W WO 2023024752 A1 WO2023024752 A1 WO 2023024752A1
Authority
WO
WIPO (PCT)
Prior art keywords
sub
location information
intelligent gateway
optimized
information
Prior art date
Application number
PCT/CN2022/105945
Other languages
French (fr)
Chinese (zh)
Inventor
谭荣港
Original Assignee
深圳市欧瑞博科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欧瑞博科技股份有限公司 filed Critical 深圳市欧瑞博科技股份有限公司
Publication of WO2023024752A1 publication Critical patent/WO2023024752A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/12Reselecting a serving backbone network switching or routing node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the technical field of communications, and more specifically, to a network optimization method, device and electronic equipment.
  • Communication technologies such as ZigBee, Bluetooth, 6LOWPAN, and Wireless Fidelity (WIFI for short) have the characteristics of low power consumption, short distance, low speed, and low cost, and are generally used to build networks in small-scale spaces, such as Family, hotel, office building, factory and other scenes.
  • sub-devices such as switches, sensors, lights, etc.
  • Connect and mount multiple sub-devices under the same gateway with the popularity of the Internet of Things and smart homes, more and more sub-devices (such as switches, sensors, lights, etc.) Connect and mount multiple sub-devices under the same gateway.
  • the communication capability of the sub-devices is poor, the communication link of the sub-devices will not be updated, resulting in that the communication capability of the network cannot be optimized.
  • the present application proposes a network optimization method, device and electronic equipment, which can solve the above problems.
  • the embodiment of the present application provides a network optimization method, the method comprising: obtaining the location label of the first intelligent gateway as the first location information; obtaining the respective The location tag is used as the second location information, wherein the number of the second location information is multiple; if there is second location information that does not match the first location information in the plurality of second location information, then from the Determine the sub-device to be optimized among all the sub-devices; determine the second intelligent gateway corresponding to the sub-device to be optimized, and migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
  • an embodiment of the present application provides a network optimization device, the device comprising: a first location information acquisition module, configured to acquire the location tag of the first intelligent gateway as the first location information; a second location information acquisition module , used to obtain the respective location labels of all sub-devices connected to the first intelligent gateway as the second location information, wherein the number of the second location information is multiple; If there is second position information that does not match the first position information in the second position information, then determine the sub-device to be optimized from all the sub-devices; the migration module is used to determine the second corresponding to the sub-device to be optimized An intelligent gateway, for migrating the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
  • the embodiment of the present application provides an electronic device, including: one or more processors; memory; one or more application programs, wherein the one or more application programs are stored in the memory and Configured to be executed by the one or more processors, the one or more application programs are configured to perform the above method.
  • a network optimization method, device, and electronic device provided by the present application obtain the location label of the first intelligent gateway as the first location information, and obtain the respective location labels of all sub-equipment connected to the first intelligent gateway as the second location information, Wherein, the number of the second location information is multiple; if there is second location information that does not match the first location information in the plurality of second location information, then determine the sub-device to be optimized from all sub-devices; determine the sub-device to be optimized The second smart gateway corresponding to the sub-device migrates the sub-device to be optimized from the first smart gateway to the second smart gateway. Through the automatic migration of the sub-device, the automatic optimization of the network communication capability is realized, and the timeliness and stability of the network communication are improved. performance and disaster tolerance.
  • FIG. 1 shows a block diagram of a network optimization system provided by an embodiment of the present application
  • FIG. 2 shows a schematic flowchart of a network optimization method provided by an embodiment of the present application
  • FIG. 3 shows a schematic flowchart of a network optimization method provided by another embodiment of the present application.
  • FIG. 4 shows a schematic flowchart of step S230 of the network optimization method shown in FIG. 3 of the present application
  • FIG. 5 shows a schematic flowchart of a network optimization method provided by another embodiment of the present application.
  • FIG. 6 shows a schematic flowchart of a network optimization method provided by another embodiment of the present application.
  • FIG. 7 shows a schematic flowchart of a network optimization method provided by another embodiment of the present application.
  • Fig. 8 shows a block diagram of a network optimization device provided by an embodiment of the present application.
  • FIG. 9 is a block diagram of an electronic device for executing a network optimization method according to an embodiment of the present application according to an embodiment of the present application.
  • FIG. 10 shows a storage unit used to store or carry program codes for implementing the network optimization method according to the embodiment of the present application according to the embodiment of the present application.
  • ZigBee, BLE, 6LOWPAN, WIFI and other personal area network communication technologies have the characteristics of low power consumption, short distance, low speed, and low cost. They are generally used to build networks in small-scale spaces, such as homes, hotels, office buildings, factories, etc. Scenes. With the popularity of the Internet of Things and smart homes, more and more sub-devices (such as switches, sensors, lights, etc.) Connect and mount multiple sub-devices under the same gateway. However, in the prior art, after the sub-devices subordinate to the gateway are connected, when the communication capability of the sub-devices is poor, the communication link of the sub-devices will not be updated, so the communication capability of the gateway cannot be optimized.
  • the above-mentioned technology development route is widely used, it will greatly increase the complexity of building a wireless Mesh network.
  • the relationship between sub-devices and gateways in the network topology needs to be designed in advance, and the network needs to be established in the agreed order. Gateways cannot start networking at the same time, otherwise the expected network topology cannot be formed.
  • the sub-device will be in the free network adding state once it is powered on.
  • the device will automatically join the network, and the sub-device
  • the affiliation relationship with the gateway is difficult to determine or specify, which brings inconvenience to on-site construction or maintenance, and takes a long time to build a network and is prone to errors.
  • the installers open the gateway networking function at the same time, allowing the sub-devices to freely network. Although it does not affect the normal use of customers, it lays the groundwork for the timeliness, stability, and disaster recovery capabilities of later network communications. Hidden danger.
  • the inventor discovered and proposed a network optimization method, device and electronic equipment after long-term research, which obtains the location tag of the first intelligent gateway as the first location information, and obtains all sub-networks connected to the first intelligent gateway.
  • the respective location tags of the devices are used as the second location information, wherein the number of the second location information is multiple; if there is a second location information that does not match the first location information among the multiple second location information, all Determine the sub-device to be optimized in the device; determine the second intelligent gateway corresponding to the sub-device to be optimized, migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway, and realize the automatic network communication capability through the automatic migration of the sub-device Optimization improves the timeliness, stability and disaster recovery capability of network communication, and migrates the sub-device to the corresponding second smart gateway, so that the sub-device belongs to the corresponding smart gateway, ensuring the affiliation between the sub-device and the gateway. It brings convenience for later construction and maintenance. Wherein, the
  • the network optimization system includes a server 1, a first intelligent gateway 2, The second intelligent gateway 3 , the first sub-device 4 , the second sub-device 5 , the third sub-device 6 , the fourth sub-device 7 and the fifth sub-device 8 .
  • the server 1 is connected with the first intelligent gateway 2 and the second intelligent gateway 3 respectively, and the first intelligent gateway 2 and the second intelligent gateway 3 communicate through the server 1; the first sub-device 4, the second sub-device 5, and the third sub-device 6 and the fourth sub-device 7 belong to the first intelligent gateway 2, and form a subnetwork together with the first intelligent gateway 2, for example, the subnetwork can be a Mesh subnetwork, the first subdevice 4, the second subdevice 5 and The third sub-device 6 is connected with the first intelligent gateway 2 respectively, and the fourth sub-device 7 is connected with the first intelligent gateway 2 through the first sub-device 4; the fifth sub-device 7 belongs to the second intelligent gateway 3, and the fifth sub-device 7 and the second intelligent gateway 3 together form a subnetwork, for example, the subnetwork may be a Mesh subnetwork.
  • the server, intelligent gateway and sub-devices have completed the rapid networking.
  • the fourth sub-device 7 migrates from the first intelligent gateway 1 to the second intelligent gateway 2, and the migrated network is shown in (b) in Figure 1 shown.
  • the server 1 may be a cloud server, or a pre-deployed local server, which is not limited here.
  • the first intelligent gateway 2 and the second intelligent gateway 3 may be independent intelligent gateways, or may be intelligent control panels with gateway functions.
  • the network optimization system is not limited to the above two intelligent gateways, but may also include more intelligent gateways, such as three, four, five, and so on.
  • the number of sub-devices subordinate to each intelligent gateway is not limited to the above-mentioned 1 or 4, and there may be more or less sub-devices, such as 2, 5, 7 and so on.
  • the server manages and controls multiple intelligent gateways, and all gateways back up data to the server, and the version number of the data is the first version number.
  • multiple intelligent gateways have a cascading relationship, that is, there is a master gateway among the multiple intelligent gateways, and the rest of the intelligent gateways are slave gateways.
  • the master gateway can control all slave gateways. For example, when confirming network optimization, the main gateway determines the sub-devices to be optimized in all sub-networks, and controls the sub-devices to be optimized to migrate.
  • the main gateway When the server is re-linked to the network, or after processing other events, the main gateway will synchronize new data to the server, and the server will compare the data stored by itself with the data synchronized by the main gateway. If there is differential data between the two, it will be based on the main gateway The synchronized data updates the previously stored data in the server, otherwise, the data in the server does not need to be updated.
  • the main gateway saves new self-data and the data that the gateway actively backs up to the main gateway, it determines that the version number of the data is the second version number, and the main gateway synchronizes the data of the second version number to the server,
  • the version number of the data stored by the server itself is the first version number.
  • the server compares the first version number with the second version number of the data synchronized by the master gateway. If the first version number is the same as the second version number, it is determined that the server exits the network Or when processing other events, all gateway data are not updated, in order to avoid duplicate data occupying the memory of the server, delete the data of the first version number or the data of the second version number; if the first version number and the second version number If not, the data of the gateway is updated, the data corresponding to the first version is deleted, and the data of the second version number is stored, so as to prevent the problem that the server cannot control the smart gateway.
  • Fig. 2 shows a schematic flowchart of a network optimization method provided by an embodiment of the present application, which is used to realize the optimization process from (a) to (b) in Fig. 1 above.
  • the The network optimization method described above is applied to the network optimization system, the server 1 or the first intelligent gateway 2 as shown in Figure 1, the network optimization device 100 shown in Figure 8 and the electronic equipment configured with the network optimization device 100 as shown in Figure 12 200.
  • This embodiment will take the application of the network optimization method to the server 1 as an example to illustrate the specific process of this embodiment.
  • the process shown in Figure 2 will be described in detail below, and the network optimization method may specifically include the following steps:
  • Step S110 acquiring the location tag of the first intelligent gateway as the first location information.
  • the first location information may include floors, such as 10F, 15F, etc.
  • the first location information may also include room numbers or room attributes, for example, room numbers are 301, 302, etc., and the room attributes are master bedroom, living room, etc. Kitchen, study, etc.
  • the step of network optimization is performed, and the location label of the first intelligent gateway is acquired as the first location information.
  • the network optimization instruction may be manually triggered by the user, or may be automatically generated when the locations of multiple sub-devices change, or may be automatically triggered according to a preset time interval.
  • Step S120 Acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
  • the first intelligent gateway is connected to a plurality of sub-devices, and the first intelligent gateway and the sub-devices connected thereto form a sub-network, for example, the formed sub-network is a Mesh sub-network.
  • the respective location tags of all sub-devices below the first intelligent gateway are acquired as the second location information.
  • the second location information may include floors, for example, 10F, 15F, etc., and the second location information may also include room numbers, for example, 301, 407, and so on.
  • Step S130 if there is second location information that does not match the first location information among the plurality of second location information, determine the sub-device to be optimized from all the sub-devices.
  • each second location information in the plurality of second location information matches the first location information, on the premise that the affiliation relationship between the sub-devices and the first intelligent gateway is established according to the location information, all sub-devices and the first intelligent gateway The affiliation relationship is reasonable, that is to say, all sub-devices under the first intelligent gateway are in the same area as the first intelligent gateway, then in general, the communication performance of the Mesh subnetwork corresponding to the first intelligent gateway can be defaulted good.
  • the affiliation relationship between the sub-devices and the first intelligent gateway is established according to the location information, that is, according to the location information of multiple sub-devices and the location information of the first intelligent gateway, the sub-devices in the same area are subordinate to the sub-devices in the area. Smart Gateway.
  • the affiliation relationship between the sub-device and the first intelligent gateway may be unreasonable, for example, there is a sub-device whose location has changed in the sub-network,
  • the sub-devices subordinate to the first intelligent gateway may be located far away from the first intelligent gateway. network as the subnetwork to be optimized.
  • the second location information when the second location information is the same as the first location information, it is considered that the first location information matches the second location information, that is, the sub-device and the first smart gateway are on the same floor or in the same room .
  • the first location information when the first location information is floor 15F and the second location information is floor 15F, it is determined that the first location information matches the second location information; for another example, when the first location information is room number 303, the second location information When the room number is 303, it is determined that the first location information matches the second location information.
  • the first location information is different from the second location information, it is considered that the first location information does not match the second location information.
  • the first location information is floor 13F and the second location information is floor 15F, it is determined that the first location information does not match the second location information; for another example, when the first location information is room number 303, the second location information When the information is the room number 305, it is determined that the first location information does not match the second location information.
  • the sub-device to be optimized is determined from all sub-devices in the sub-network.
  • sub-devices whose second location information does not match the first location information among the plurality of sub-devices are used as sub-devices to be optimized, and the sub-devices to be optimized are optimized, so that the sub-network can be quickly optimized.
  • the sub-devices whose second location information does not match the first location information are used as candidate sub-devices, and among the candidate sub-devices, those with poor communication capabilities are determined as sub-devices to be optimized.
  • the intelligent gateway if there is, takes the candidate sub-device as the sub-device to be optimized, and if not, determines that the candidate sub-device does not need to be optimized.
  • Step S140 determining a second intelligent gateway corresponding to the sub-device to be optimized, and migrating the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
  • the gateway serves as the second intelligent gateway.
  • the second intelligent gateway corresponding to the sub-device to be optimized is determined, and the sub-device to be optimized is directly migrated from the first intelligent gateway to the next second intelligent gateway. After the migration, the sub-device to be optimized belongs to the second Smart Gateway. Wherein, the location information corresponding to the second intelligent gateway matches the second location information determined to be optimized for the sub-device.
  • the second intelligent gateway corresponding to the sub-device to be optimized is determined.
  • the prompt message "Please confirm whether to perform network optimization" can be displayed, and the migration selection control can be displayed, wherein the migration selection control is an interactive control for the user to perform migration confirmation input.
  • the migration selection control is an interactive control for the user to perform migration confirmation input.
  • the control panel of the first intelligent gateway Display the migration selection control, or display the migration selection control on the user's computer, mobile terminal and other electronic devices.
  • the user may manually migrate the sub-device to be optimized to the first intelligent gateway. Therefore, while the migration selection control is displayed, the migration ignore control can also be displayed , when the user receives an ignore instruction triggered based on the migration ignore control, the connection relationship between the sub-device to be optimized and the first intelligent gateway is maintained, ensuring that the sub-device to be optimized can smoothly access the network.
  • the network optimization method when it is judged that there is second location information that does not match the first location information corresponding to the first intelligent gateway among the second location information corresponding to multiple sub-devices, it is determined from all sub-devices to be optimized Sub-devices, and then automatically migrate the sub-devices to be optimized from the first intelligent gateway to the second intelligent gateway.
  • the automatic optimization of network communication capabilities is realized, making the gateway and corresponding sub-devices easier to manage, thereby improving The timeliness and stability of network communication.
  • FIG. 3 shows a schematic flowchart of a network optimization method provided in another embodiment of the present application. Please refer to FIG. 3.
  • the network optimization method may specifically include the following steps:
  • Step S210 acquiring the location tag of the first intelligent gateway as the first location information.
  • Step S220 Acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
  • step S210-step S220 please refer to step S110-step S120, which will not be repeated here.
  • Step S230 if there is second location information that does not match the first location information in the plurality of second location information, take the sub-device whose location information does not match among all the sub-devices as the to-be-optimized child device.
  • the sub-device whose location information does not match among all the sub-devices can improve the efficiency of network optimization.
  • migrating and optimizing the sub-devices whose location information does not match, adjusting all devices to gateway connections consistent with the location information, and building sub-networks can Improve the disaster recovery capability of the entire environment, that is, when the gateway fails, it will only affect the control operation of the device corresponding to the location information, and will not interfere with the control of other devices.
  • FIG. 4 shows a schematic flowchart of step S230 of the network optimization method shown in FIG. 3 of the present application. Please refer to FIG. 4, step S230 includes the following sub-steps:
  • Sub-step S231 if there is the second location information that does not match the first location information in the plurality of second location information, use the sub-device whose location information does not match among all the sub-devices as a candidate child device.
  • the sub-devices that do not match are used as candidate sub-devices.
  • the candidate sub-devices may be sub-devices that need to be optimized. device, possibly a sub-device that does not need to be optimized.
  • the number of candidate sub-devices may be one or more.
  • Sub-step S232 acquiring device information of the candidate sub-device, wherein the device information includes sub-network information, or sub-network information and location matching information.
  • the subnetwork information includes signal strength, and/or, link layer levels, and/or, number of sub-devices.
  • the signal strength may represent the ability of the candidate sub-device in the sub-network to receive signals, for example, the signal strength is -30dbm (signal strength unit, decibel milliwatt).
  • the link level represents the distance between the candidate device and the first intelligent gateway in the sub-network.
  • the link level may be layer 2, that is, the candidate device is connected to the first intelligent gateway through a sub-device.
  • the number of sub-devices represents the total number of sub-devices in the sub-network where the candidate device is located. The number of devices is 1.
  • Sub-step S233 calculating the evaluation value of the candidate sub-device in the sub-network to which it belongs according to the device information.
  • the device information when the device information includes sub-network information, and the sub-network information includes signal strength, link level number and number of sub-devices, obtain sub-scores corresponding to signal strength, link level number and number of sub-devices, for example, Set the sub-scores corresponding to the signal strength of different intervals in advance.
  • the sub-scores are obtained for the intervals corresponding to the signal strength of the sub-device.
  • the sub-score corresponding to the number of link levels pre-set the sub-score corresponding to the number of sub-devices, obtain the sub-score corresponding to the number of devices in the sub-network where the sub-device is located; then obtain the first weight corresponding to the sub-score degree of signal strength, link level
  • the device information when the device information includes sub-network information and location matching information, and the sub-network information includes signal strength, link level number and number of sub-devices, the signal strength, link level number, number of sub-devices and location are acquired
  • the sub-scores corresponding to each of the matching information wherein the sub-scores corresponding to each of the plurality of location matching information are preset, and when the location matching information of the sub-device is obtained, the corresponding sub-scores are obtained, wherein the first location information is the 7th floor, the second If the second location information is the 8th floor, the location matching information indicates that the two locations do not match and the floors are one floor apart, and the corresponding sub-score is obtained; then the first weight corresponding to the sub-score of signal strength and the corresponding sub-score of the link layer level are obtained.
  • the product of the sub-score and the second weight, the product of the sub-score of the number of sub-equipment and the third weight, and the product of the sub-score of the position matching information and the fourth weight calculate the sum of the above four products, and obtain the evaluation value.
  • Sub-step S234 selecting a sub-device whose evaluation value is smaller than a preset threshold from the candidate sub-device as the sub-device to be optimized.
  • the number of candidate sub-devices is multiple, correspondingly, the number of evaluation values obtained is also multiple.
  • the corresponding As a sub-device to be optimized it can be understood that the location of the sub-device to be optimized does not match the location of the first intelligent gateway, the distance between the two may be far, and the communication capability of the sub-device to be optimized Poor, migrate the sub-device to be optimized.
  • Step S240 determining a second intelligent gateway corresponding to the sub-device to be optimized, and migrating the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
  • step S240 please refer to step S140, which will not be repeated here.
  • the candidate sub-device when it is determined that there is second location information that does not match the first location information corresponding to the first intelligent gateway among the second location information corresponding to multiple sub-devices, determine the sub-devices whose locations do not match as For the candidate sub-device, it can be understood that the position of the candidate device is different from that of the first intelligent gateway, and the distance between the two may be relatively long.
  • the candidate sub-device whose value is less than the preset threshold is regarded as the sub-device to be optimized.
  • the communication capability of the sub-device to be optimized is poor, and the sub-device to be optimized with poor communication capability is migrated to the second intelligent gateway to complete the network optimization, improve network performance, and avoid the migration of candidate sub-devices with better communication capabilities whose evaluation values are greater than the preset value, resulting in waste of computing resources.
  • FIG. 5 shows a schematic flowchart of a network optimization method provided in another embodiment of the present application. Please refer to FIG. 5.
  • the network optimization method may specifically include the following steps:
  • Step S310 acquiring the location label of the first intelligent gateway as the first location information.
  • Step S320 Acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
  • Step S330 if there is second location information that does not match the first location information among the plurality of second location information, determine the sub-device to be optimized from all the sub-devices.
  • step S310-step S330 please refer to step S110-step S130, which will not be repeated here.
  • Step S340 acquiring the device identification of the sub-device to be optimized.
  • the device identifier may be a Media Access Control Address (Media Access Control Address, MAC for short), a Universally Unique Identifier (UUID for short), etc.
  • Media Access Control Address Media Access Control Address, MAC for short
  • UUID Universally Unique Identifier
  • Step S350 sending the device identifier to the second intelligent gateway to instruct the second intelligent gateway to be connected to the sub-device to be optimized.
  • the device identifier is sent to the second intelligent gateway to instruct the second intelligent gateway to connect with the sub-device to be optimized corresponding to the device identifier, and complete the network migration.
  • the first intelligent gateway collects device identifiers of sub-devices to be optimized.
  • the device identification is sent to the second intelligent gateway through the server, and a virtual sub-device to be optimized is added under the second intelligent gateway.
  • the parameters of the virtual sub-device to be optimized are consistent with the parameters of the sub-device to be optimized.
  • the second intelligent The gateway stores the device identifier in its own white list, and opens the networking mode of the white list. In this networking mode, the second intelligent gateway can receive the newly added sub-device.
  • the first intelligent gateway instructs the sub-device to be optimized to connect to the second intelligent gateway, and releases the sub-device to be optimized.
  • the optimization sub-device can request to connect with other intelligent gateways, and join the sub-networks corresponding to other intelligent gateways.
  • the sub-device to be optimized sends a networking request to the second intelligent gateway, wherein the networking request carries the device identifier of the sub-device to be optimized.
  • the second intelligent gateway judges that the device ID carried in the networking request is the same as the device ID in the white list, it allows the sub-device to be optimized to enter the network, configures the sub-device to be optimized according to the parameters, and completes the network migration of the sub-device to be optimized .
  • the parameter information of the sub-device to be optimized stored in the first intelligent gateway can be deleted, so that the available Increased memory.
  • the second intelligent gateway, the server, or the sub-device to be optimized may feed back an indication of the completion of the migration to the first intelligent gateway, and after the first intelligent gateway receives the indication, Then delete the stored parameter information of the sub-device to be optimized. If no indication of the end of the migration is received within the preset time period, the first intelligent gateway will send the parameter information to the second intelligent gateway again until the indication of the end of the migration is received. , which not only ensures that the sub-device to be optimized can be migrated to the second intelligent gateway smoothly, but also can release the available memory of the first intelligent gateway in time.
  • the network optimization method provided in this embodiment obtains the device ID of the sub-device to be optimized and sends it to the second intelligent gateway. optimization.
  • FIG. 6 shows a schematic flowchart of a network optimization method provided in another embodiment of the present application. Please refer to FIG. 6.
  • the network optimization method may specifically include the following steps:
  • Step S410 acquiring the location tag of the first intelligent gateway as the first location information.
  • Step S420 Acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
  • Step S430 if there is second location information that does not match the first location information among the plurality of second location information, determine the sub-device to be optimized from all the sub-devices.
  • Step S440 Determine the second intelligent gateway corresponding to the sub-device to be optimized, and migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
  • step S410-step S430 please refer to step S110-step S140, which will not be repeated here.
  • Step S450 after the sub-device to be optimized is migrated to the second intelligent gateway, it is judged whether the migration operation is a valid migration.
  • the location information of the sub-device to be optimized is consistent with the second Whether the location information of the intelligent gateway matches, or whether the network status of the sub-device to be optimized after migration is improved, determines whether the migration operation is an effective migration, and when the network optimization is an effective migration, it is determined that the network optimization is over; or, when the migration operation is not When migrating effectively, execute the following step S460.
  • the evaluation value of the Mesh subnetwork belonging to the second intelligent gateway can be calculated. In one embodiment, when the evaluation value is less than the preset threshold , it is considered that the migration operation is an invalid migration, and the sub-device to be optimized needs to continue to be migrated; when the evaluation value is greater than the preset threshold, the migration operation is considered as a valid migration, and the network optimization is determined to be completed.
  • the evaluation value of this embodiment is compared with the evaluation value before migration in the above embodiment, and when the evaluation value of this embodiment is smaller than the evaluation value in the above embodiment, it is considered that the migration of the sub-device to be optimized After the network status has not been improved, the migration is an invalid migration, and the sub-device to be optimized needs to continue to migrate (for example, migrate back to the previous sub-network); when the evaluation value of this embodiment is greater than the evaluation value in the above-mentioned embodiment, Then it is considered that the network status is improved after the sub-device to be optimized is migrated, the migration operation is effective migration, and it is determined that the network optimization is completed.
  • the calculation method of the evaluation value of the Mesh subnetwork subordinate to the second intelligent gateway is similar to the calculation method of the evaluation value in the previous embodiment, and will not be repeated here.
  • the location label of the second intelligent gateway is obtained as the third location information.
  • the migration operation is considered to be an invalid migration, and the sub-device to be optimized needs to be Continue the migration; when the second location information matches the third location information, it is considered that the migration operation is a valid migration, and the network optimization ends.
  • Step S460 if not, re-determine the target gateway corresponding to the sub-device to be optimized, and perform a relocation operation.
  • step S110-step S140 the specific steps of performing the migration operation are similar to step S110-step S140, and will not be repeated here.
  • the sub-device to be optimized is migrated from the first intelligent gateway subordinate to the second intelligent gateway, when it is judged that the migration is invalid In the sub-network, the communication capability is still poor, continue to migrate the sub-devices to be optimized until the migration is effective, and finally realize the automatic optimization of the network, improve the communication capability of the smart gateway to be migrated, and ensure the timeliness and stability of the entire network communication sex.
  • FIG. 7 shows a schematic flowchart of a network optimization method provided in another embodiment of the present application. Please refer to FIG. 7.
  • the network optimization method may specifically include the following steps:
  • Step S510 acquiring the location tag of the first intelligent gateway as the first location information.
  • Step S520 Acquire location labels of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
  • Step S530 if there is second location information that does not match the first location information among the plurality of second location information, determine the sub-device to be optimized from all the sub-devices.
  • Step S540 Determine the second intelligent gateway corresponding to the sub-device to be optimized, and migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
  • Step S550 acquiring configuration information of the sub-device to be optimized.
  • the configuration information is used to configure the parameters and working status of the sub-device to be optimized.
  • the sub-device to be optimized is a smart air conditioner. closes when.
  • the configuration information can be obtained from the sub-device to be optimized, specifically, the sub-device to be optimized is configured and stored in the sub-device, the sub-device to be optimized sends the configuration information to the first intelligent gateway, and through the first intelligent The gateway forwards configuration information to the server.
  • the configuration information can be obtained from the first intelligent gateway, specifically, the user configures the sub-device to be optimized and generates configuration information, and the sub-device to be optimized sends the generated configuration information to the first intelligent gateway storage, and the first intelligent gateway controls the sub-device to be optimized according to the configuration information.
  • the server may acquire configuration information from the storage location of the first intelligent gateway.
  • application data and history records of the sub-device to be optimized can also be obtained.
  • Step S560 sending the configuration information to the second intelligent gateway, so as to instruct the second intelligent gateway to configure the sub-device to be optimized according to the configuration information.
  • the configuration information is sent to the second intelligent gateway, and the second intelligent gateway configures the sub-device to be optimized according to the configuration information, so as to ensure that the function of the sub-device to be optimized is normal after migration.
  • the second intelligent gateway can also configure the sub-device to be optimized according to the application data and historical records, so as to ensure that the original information of the sub-device to be optimized remains unchanged, and the normal use of the sub-device to be optimized will not be affected after migration.
  • the second intelligent gateway configures the sub-device to be optimized according to the configuration information sent by the first intelligent gateway, After the network migration, when the sub-device to be optimized belongs to the second intelligent gateway, the original function can still be executed, which ensures that the sub-device to be optimized can work normally.
  • FIG. 8 shows a block diagram of a network optimization device provided by an embodiment of the present application. Please refer to FIG. 8.
  • the network optimization 100 includes: first location information An acquisition module 110 , a second location information acquisition module 120 , a determination module 130 and a migration module 140 .
  • the first location information obtaining module 110 is used to obtain the location tag of the first intelligent gateway as the first location information
  • the second location information acquiring module 120 is configured to acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, wherein the number of the second location information is multiple;
  • a determining module 130 configured to determine a sub-device to be optimized from all sub-devices if there is second position information that does not match the first position information among the plurality of second position information;
  • the migration module 140 is configured to determine a second intelligent gateway corresponding to the sub-device to be optimized, and migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
  • the determining module 130 includes: a determining submodule.
  • a determining submodule configured to, if there is second location information that does not match the first location information in the plurality of second location information, use the sub-device whose location information does not match among all the sub-devices as the all sub-devices Describe the sub-device to be optimized.
  • the determination sub-module includes: a candidate sub-device determination sub-module, a device information acquisition sub-module, an evaluation value calculation sub-module, and a sub-device determination sub-module to be optimized.
  • An alternative sub-device determination submodule configured to, if there is the second position information that does not match the first position information in the plurality of second position information, identify the mismatching position information in all the sub-device
  • the sub-device of is used as an alternative sub-device
  • a device information acquiring submodule configured to acquire device information of the candidate sub-device, wherein the device information includes sub-network information, or sub-network information and location matching information;
  • An evaluation value calculation submodule configured to calculate the evaluation value of the candidate sub-device in the sub-network to which it belongs according to the device information
  • the sub-device determination submodule to be optimized is configured to select a sub-device whose evaluation value is smaller than a preset threshold from the candidate sub-device as the sub-device to be optimized.
  • the subnetwork information includes signal strength, and/or, link layer levels, and/or, number of sub-devices.
  • the migration module 140 includes: a device identification acquisition submodule and a first migration submodule.
  • the device identification obtaining submodule is used to obtain the device identification of the sub-device to be optimized
  • the first migration submodule is configured to send the device identifier to the second intelligent gateway, so as to instruct the second intelligent gateway to connect with the sub-device to be optimized.
  • the network optimization 100 further includes: a configuration information acquisition module and a configuration module.
  • a configuration information acquisition module configured to acquire configuration information of the sub-device to be optimized
  • a configuration module configured to send the configuration information to the second intelligent gateway, to instruct the second intelligent gateway to configure the sub-device to be optimized according to the configuration information.
  • the network optimization 100 further includes: a migration judging module and a re-migration module.
  • a migration judging module configured to judge whether the migration operation is a valid migration after the sub-device to be optimized is migrated to the second intelligent gateway;
  • the re-migration module is configured to, if not, re-determine the target gateway corresponding to the sub-device to be optimized, and perform a relocation operation.
  • the migration module 140 includes: a migration target determination submodule, a display submodule and a second migration submodule.
  • a migration target determination submodule configured to determine the second intelligent gateway corresponding to the sub-device to be optimized
  • the display submodule is used to display the migration selection control
  • the second migration submodule is configured to migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway when receiving a migration instruction triggered based on the migration selection control.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
  • FIG. 9 is a block diagram of an electronic device for executing a network optimization method according to an embodiment of the present application.
  • the electronic device 200 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, a smart gateway, and a smart control panel.
  • the electronic device 200 in this application may include one or more of the following components: a processor 210, a memory 220, and one or more application programs, wherein one or more application programs may be stored in the memory 220 and configured to be executed by a or a plurality of processors 210, and one or more application programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 210 may include one or more processing cores.
  • the processor 210 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 220, and calling data stored in the memory 220.
  • the processor 210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 210 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used for rendering and drawing of the components to be displayed
  • the modem is used for wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 210, but may be realized by a communication chip alone.
  • the memory 220 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 220 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • the data storage area can also store data (such as historical configuration files) created by the electronic device 200 during use.
  • Fig. 10 shows a storage unit used to save or carry program codes for realizing the network optimization method according to the embodiment of the application according to the embodiment of the application.
  • Program codes are stored in the computer-readable medium 300, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
  • the computer readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the computer-readable storage medium 300 has a storage space for program code 310 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products.
  • Program code 310 may, for example, be compressed in a suitable form.
  • the network optimization method, device, and electronic equipment provided by this application obtain the location label of the first intelligent gateway as the first location information, and obtain the respective location labels of all sub-devices connected to the first intelligent gateway as the second location information.
  • Location information wherein the number of second location information is multiple; if there is second location information that does not match the first location information in the plurality of second location information, then determine the sub-device to be optimized from all sub-devices; Determine the second smart gateway corresponding to the sub-device to be optimized, migrate the sub-device to be optimized from the first smart gateway to the second smart gateway, realize automatic optimization of network communication capabilities through automatic migration of sub-device, and improve the timeliness of network communication performance, stability, and disaster recovery capabilities.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application relates to the technical field of communications. Disclosed are a network optimization method and apparatus, and an electronic device. The method comprises: acquiring a location tag of a first intelligent gateway as first location information; acquiring respective location tags of all sub-devices connected to the first intelligent gateway as second location information, wherein there are a plurality of pieces of second location information; if second location information that does not match the first location information is present in the plurality of pieces of second location information, determining a sub-device to be optimized from all the sub-devices; and determining a second intelligent gateway corresponding to the sub-device to be optimized, and migrating the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway. Automatic optimization of network communication capability is implemented by means of automatic migration of sub-devices, thereby improving the timeliness, stability, and disaster tolerance capability of network communications.

Description

网络优化方法、装置及电子设备Network optimization method, device and electronic equipment 技术领域technical field
本申请涉及通信技术领域,更具体地,涉及一种网络优化方法、装置及电子设备。The present application relates to the technical field of communications, and more specifically, to a network optimization method, device and electronic equipment.
背景技术Background technique
紫蜂协议ZigBee、蓝牙、6LOWPAN、无线保真(Wireless Fidelity,简称WIFI)等通讯技术是具有低功耗、短距离、低速率、低成本的特点,一般使用在小范围的空间组建网络,例如家庭、酒店、办公楼、工厂等场景。随着物联网、智能家居的流行,活跃于上述场景中的子设备(如开关、传感器、灯等)越来越多,为了突破单一网络设备数量和覆盖范围,通常会利用多个网关去做级联,在同一个网关下挂载多个子设备。然而,现有技术在网关下属的子设备连接完成后,当子设备的通信能力较差时,由于不会再更新子设备的通信链路,导致网络的通信能力得不到优化。Communication technologies such as ZigBee, Bluetooth, 6LOWPAN, and Wireless Fidelity (WIFI for short) have the characteristics of low power consumption, short distance, low speed, and low cost, and are generally used to build networks in small-scale spaces, such as Family, hotel, office building, factory and other scenes. With the popularity of the Internet of Things and smart homes, more and more sub-devices (such as switches, sensors, lights, etc.) Connect and mount multiple sub-devices under the same gateway. However, in the prior art, after the sub-devices subordinate to the gateway are connected, when the communication capability of the sub-devices is poor, the communication link of the sub-devices will not be updated, resulting in that the communication capability of the network cannot be optimized.
发明内容Contents of the invention
鉴于上述问题,本申请提出了一种网络优化方法、装置及电子设备,能够解决上述问题。In view of the above problems, the present application proposes a network optimization method, device and electronic equipment, which can solve the above problems.
第一方面,本申请实施例提供了一种网络优化方法,所述方法包括:获取第一智能网关的位置标签作为第一位置信息;获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个;若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备;确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。In the first aspect, the embodiment of the present application provides a network optimization method, the method comprising: obtaining the location label of the first intelligent gateway as the first location information; obtaining the respective The location tag is used as the second location information, wherein the number of the second location information is multiple; if there is second location information that does not match the first location information in the plurality of second location information, then from the Determine the sub-device to be optimized among all the sub-devices; determine the second intelligent gateway corresponding to the sub-device to be optimized, and migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
第二方面,本申请实施例提供了一种网络优化装置,所述装置包括:第一位置信息获取模块,用于获取第一智能网关的位置标签作为第一位置信息;第二位置信息获取模块,用于获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个;确定模块,用于若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备;迁移模块,用于确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。In a second aspect, an embodiment of the present application provides a network optimization device, the device comprising: a first location information acquisition module, configured to acquire the location tag of the first intelligent gateway as the first location information; a second location information acquisition module , used to obtain the respective location labels of all sub-devices connected to the first intelligent gateway as the second location information, wherein the number of the second location information is multiple; If there is second position information that does not match the first position information in the second position information, then determine the sub-device to be optimized from all the sub-devices; the migration module is used to determine the second corresponding to the sub-device to be optimized An intelligent gateway, for migrating the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行上述方法。In a third aspect, the embodiment of the present application provides an electronic device, including: one or more processors; memory; one or more application programs, wherein the one or more application programs are stored in the memory and Configured to be executed by the one or more processors, the one or more application programs are configured to perform the above method.
本申请提供的一种网络优化方法、装置及电子设备,获取第一智能网关的位置标签作为第一位置信息,获取与第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,第二位置信息的数量为多个;若在多个第二位置信息中存在与第一位置信息不匹配的第二位置信息,则从所有子设备中确定待优化子设备;确定待优化子设备对应的第二智能网关,将待优化子设备从第一智能网关迁移至第二智能网关,通过子设备的自动迁移,实现网络通信能力的自动优化,提升了网络通讯的时效性、稳定性以及容灾能力。A network optimization method, device, and electronic device provided by the present application obtain the location label of the first intelligent gateway as the first location information, and obtain the respective location labels of all sub-equipment connected to the first intelligent gateway as the second location information, Wherein, the number of the second location information is multiple; if there is second location information that does not match the first location information in the plurality of second location information, then determine the sub-device to be optimized from all sub-devices; determine the sub-device to be optimized The second smart gateway corresponding to the sub-device migrates the sub-device to be optimized from the first smart gateway to the second smart gateway. Through the automatic migration of the sub-device, the automatic optimization of the network communication capability is realized, and the timeliness and stability of the network communication are improved. performance and disaster tolerance.
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These or other aspects of the present application will be more concise and understandable in the description of the following embodiments.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1示出了本申请一个实施例提供的网络优化系统的框图;FIG. 1 shows a block diagram of a network optimization system provided by an embodiment of the present application;
图2示出了本申请一个实施例提供的网络优化方法的流程示意图;FIG. 2 shows a schematic flowchart of a network optimization method provided by an embodiment of the present application;
图3示出了本申请另一个实施例提供的网络优化方法的流程示意图;FIG. 3 shows a schematic flowchart of a network optimization method provided by another embodiment of the present application;
图4示出了本申请的图3所示的网络优化方法的步骤S230的一种流程示意图;FIG. 4 shows a schematic flowchart of step S230 of the network optimization method shown in FIG. 3 of the present application;
图5示出了本申请另一个实施例提供的网络优化方法的流程示意图;FIG. 5 shows a schematic flowchart of a network optimization method provided by another embodiment of the present application;
图6示出了本申请另一个实施例提供的网络优化方法的流程示意图;FIG. 6 shows a schematic flowchart of a network optimization method provided by another embodiment of the present application;
图7示出了本申请另一个实施例提供的网络优化方法的流程示意图;FIG. 7 shows a schematic flowchart of a network optimization method provided by another embodiment of the present application;
图8示出了本申请一实施例提供的网络优化装置的框图;Fig. 8 shows a block diagram of a network optimization device provided by an embodiment of the present application;
图9是本申请实施例的用于执行根据本申请实施例的网络优化方法的电子设备的框图;FIG. 9 is a block diagram of an electronic device for executing a network optimization method according to an embodiment of the present application according to an embodiment of the present application;
图10示出了本申请实施例的用于保存或者携带实现根据本申请实施例的网络优化方法的程序代码的存储单元。FIG. 10 shows a storage unit used to store or carry program codes for implementing the network optimization method according to the embodiment of the present application according to the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
ZigBee、BLE、6LOWPAN、WIFI等个人区域网通讯技术是具有低功耗、短距离、低速率、低成本的特点,一般使用在小范围的空间组建网络,例如家庭、酒店、办公楼、工厂等场景。随着物联网、智能家居的流行,活跃于上述场景中的子设备(如开关、传感器、灯等)越来越多,为了突破单一网络设备数量和覆盖范围,通常会利用多个网关去做级联,在同一个网关下挂载多个子设备。然而,现有技术在网关下属的子设备连接完成后,当子设备的通信能力较差时,由于不会再更新子设备的通信链路,导致网关的通信能力得不到优化。ZigBee, BLE, 6LOWPAN, WIFI and other personal area network communication technologies have the characteristics of low power consumption, short distance, low speed, and low cost. They are generally used to build networks in small-scale spaces, such as homes, hotels, office buildings, factories, etc. Scenes. With the popularity of the Internet of Things and smart homes, more and more sub-devices (such as switches, sensors, lights, etc.) Connect and mount multiple sub-devices under the same gateway. However, in the prior art, after the sub-devices subordinate to the gateway are connected, when the communication capability of the sub-devices is poor, the communication link of the sub-devices will not be updated, so the communication capability of the gateway cannot be optimized.
并且,上述技术发展路线虽然得到普遍应用,但同时会大大提高无线Mesh网组建的复杂度,网络拓扑中的子设备与网关的关系需要提前设计,并且在组建网络时需要按约定顺序组建,多个网关不能同时启动组网,否则无法形成预想的网络拓扑。另外,子设备为了方便使用者快速完成加网动作,通常情况下一旦通电就会处于自由加网状态,只要在信号覆盖范围内任意一个网关启动加网允许,设备就会自动加入网络,子设备与网关的从属关系就很难确定或者指定,给现场施工或者维护带来不便,组网耗时长,容易出错。通常安装人员为了节省组网时间,同时打开网关组网功能,任由子设备自由组网,虽然并不影响客户正常使用,但为后期网络通讯的时效性、稳定性、容灾能力等埋下了隐患。Moreover, although the above-mentioned technology development route is widely used, it will greatly increase the complexity of building a wireless Mesh network. The relationship between sub-devices and gateways in the network topology needs to be designed in advance, and the network needs to be established in the agreed order. Gateways cannot start networking at the same time, otherwise the expected network topology cannot be formed. In addition, in order to facilitate the user to quickly complete the network adding action, the sub-device will be in the free network adding state once it is powered on. As long as any gateway within the signal coverage area starts the network adding permission, the device will automatically join the network, and the sub-device The affiliation relationship with the gateway is difficult to determine or specify, which brings inconvenience to on-site construction or maintenance, and takes a long time to build a network and is prone to errors. Usually, in order to save networking time, the installers open the gateway networking function at the same time, allowing the sub-devices to freely network. Although it does not affect the normal use of customers, it lays the groundwork for the timeliness, stability, and disaster recovery capabilities of later network communications. Hidden danger.
针对上述技术问题,发明人经过长期的研究发现并提出了一种网络优化方法、装置及电子设备,获取第一智能网关的位置标签作为第一位置信息,获取与第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,第二位置信息的数量为多个;若在多个第二位置信息中存在与第一位置信息不匹配的第二位置信息,则从所有子设备中确定待优化子设备;确定待优化子设备对应的第二智能网关,将待优化子设备从第一智能网关迁移至第二智能网关,通过子设备的自动迁移,实现网络通信能力的自动优化,提升了网络通讯的时效性、稳定性以及容灾能力,并且将子设备迁移至对应的第二智能网关,使得子设备下属于对应的智能网关,保证了子设备与网关的从属关系,为后期施工和维护带来了便利。其中,具体的网络优化方法在后续的实施例中具体说明。In view of the above technical problems, the inventor discovered and proposed a network optimization method, device and electronic equipment after long-term research, which obtains the location tag of the first intelligent gateway as the first location information, and obtains all sub-networks connected to the first intelligent gateway. The respective location tags of the devices are used as the second location information, wherein the number of the second location information is multiple; if there is a second location information that does not match the first location information among the multiple second location information, all Determine the sub-device to be optimized in the device; determine the second intelligent gateway corresponding to the sub-device to be optimized, migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway, and realize the automatic network communication capability through the automatic migration of the sub-device Optimization improves the timeliness, stability and disaster recovery capability of network communication, and migrates the sub-device to the corresponding second smart gateway, so that the sub-device belongs to the corresponding smart gateway, ensuring the affiliation between the sub-device and the gateway. It brings convenience for later construction and maintenance. Wherein, the specific network optimization method is described in detail in the subsequent embodiments.
为便于理解下述方法,本实施例先示出了一种网络优化系统的一种可能的实现方式,请参阅图1中的(a),网络优化系统包括服务器1、第一智能网关2、第二智能网关3、第一子设备4、第二子设备5、第三子设备6、第四子设备7以及第五子设备8。服务器1分别与第一智能网关2和第二智能网关3连接,第一智能网关2和第二智能网关3通过服务器1进行通信;第一子设备4、第二子设备5、第三子设备6和第四子设备7下属于第一智能网关2,与第一智能网关2共同构成一个子网络,例如,该子网络可以为Mesh子网络,第一子设备4、第二子设备5和第三子设备6分别与第一智能网关2连接,第四子设备7通过第一子设备4与第一智能网关2连接;第五子设备7下属于第二智能网关3,第五子设备7和第二智能网关3共同构成一个子网络,例如,该子网络可以为Mesh子网络。在此,服务器、智能网关和子设备已完成了快速组网。In order to facilitate the understanding of the following methods, this embodiment first shows a possible implementation of a network optimization system, please refer to (a) in Figure 1, the network optimization system includes a server 1, a first intelligent gateway 2, The second intelligent gateway 3 , the first sub-device 4 , the second sub-device 5 , the third sub-device 6 , the fourth sub-device 7 and the fifth sub-device 8 . The server 1 is connected with the first intelligent gateway 2 and the second intelligent gateway 3 respectively, and the first intelligent gateway 2 and the second intelligent gateway 3 communicate through the server 1; the first sub-device 4, the second sub-device 5, and the third sub-device 6 and the fourth sub-device 7 belong to the first intelligent gateway 2, and form a subnetwork together with the first intelligent gateway 2, for example, the subnetwork can be a Mesh subnetwork, the first subdevice 4, the second subdevice 5 and The third sub-device 6 is connected with the first intelligent gateway 2 respectively, and the fourth sub-device 7 is connected with the first intelligent gateway 2 through the first sub-device 4; the fifth sub-device 7 belongs to the second intelligent gateway 3, and the fifth sub-device 7 and the second intelligent gateway 3 together form a subnetwork, for example, the subnetwork may be a Mesh subnetwork. Here, the server, intelligent gateway and sub-devices have completed the rapid networking.
对网络进行优化时,当第四子设备7为待优化子设备时,第四子设备7从第一智能网关1迁移至第二智能网关2,迁移后的网络如图1中的(b)所示。When optimizing the network, when the fourth sub-device 7 is a sub-device to be optimized, the fourth sub-device 7 migrates from the first intelligent gateway 1 to the second intelligent gateway 2, and the migrated network is shown in (b) in Figure 1 shown.
其中,所述服务器1可以是云端服务器,也可以是预先部署在本地的服务器,在此不做限定。第一智能网关2及第二智能网关3可以为单独的智能网关,也可以为具备网关功能的智能控制面板。Wherein, the server 1 may be a cloud server, or a pre-deployed local server, which is not limited here. The first intelligent gateway 2 and the second intelligent gateway 3 may be independent intelligent gateways, or may be intelligent control panels with gateway functions.
需要说明的是,网络优化系统不限于上述的2个智能网关,还可以包括更多的智能网关,例如3个、4个、5个等。每个智能网关下属的子设备也不限于上述的1个或4个,还可以为更多或更少的子设备,例如2个、5个、7个等。It should be noted that the network optimization system is not limited to the above two intelligent gateways, but may also include more intelligent gateways, such as three, four, five, and so on. The number of sub-devices subordinate to each intelligent gateway is not limited to the above-mentioned 1 or 4, and there may be more or less sub-devices, such as 2, 5, 7 and so on.
服务器对多个智能网关进行管控,所有网关将数据均备份至服务器,该数据的版本号为第一版本号。作为一种实施方式,多个智能网关存在级联关系,即,多个智能网关中有一个主网关,其余的智能网关为从网关,在服务器退出网络,或者服务器的资源用于处理其他事件时,此时,主网关可以对所有从网关进行管控。例如,在确认进行网络优化时,主网关从确定所有子网络中的待优化子设备,并控制待优化子设备进行迁移,同时,保存新的自身数据及从网关主动备份给主网关的数据,当服务器重新链入网络,或者处理完其他事件后,主网关将新的数据同步到服务器,服务器比较自身存储的数据和主网关同步的数据,若两者之间存在差分数据,即基于主网关同步的数据更新服务器中此前存储的数据,否则,服务器中的数据无须更新。作为一种实施方式,主网关在保存新的自身数据及网关主动备份给主网关的数据后,确定该数据的版本号为第二版本号,主网关将第二版本号的数据同步给服务器,服务器自身存储的数据的版本号为第一版本号,服务器比较第一版本号和主网关同步的数据的第二版本号,若第一版本号与第二版本号相同,则确定在服务器退出网络或处理其他事件时,所有网关的数据均未更新,为避免重复数据占用服务器的内存,对第一版本号的数据或第二版本号的数据进行删除;若第一版本号与第二版本号不同时,则网关的数据存在更新,删除第一版本对应的数据,存储第二版本号的数据,防止出现服务器无法控制智能网关的问题。The server manages and controls multiple intelligent gateways, and all gateways back up data to the server, and the version number of the data is the first version number. As an implementation, multiple intelligent gateways have a cascading relationship, that is, there is a master gateway among the multiple intelligent gateways, and the rest of the intelligent gateways are slave gateways. When the server exits the network, or the resources of the server are used to process other events , at this time, the master gateway can control all slave gateways. For example, when confirming network optimization, the main gateway determines the sub-devices to be optimized in all sub-networks, and controls the sub-devices to be optimized to migrate. When the server is re-linked to the network, or after processing other events, the main gateway will synchronize new data to the server, and the server will compare the data stored by itself with the data synchronized by the main gateway. If there is differential data between the two, it will be based on the main gateway The synchronized data updates the previously stored data in the server, otherwise, the data in the server does not need to be updated. As an implementation, after the main gateway saves new self-data and the data that the gateway actively backs up to the main gateway, it determines that the version number of the data is the second version number, and the main gateway synchronizes the data of the second version number to the server, The version number of the data stored by the server itself is the first version number. The server compares the first version number with the second version number of the data synchronized by the master gateway. If the first version number is the same as the second version number, it is determined that the server exits the network Or when processing other events, all gateway data are not updated, in order to avoid duplicate data occupying the memory of the server, delete the data of the first version number or the data of the second version number; if the first version number and the second version number If not, the data of the gateway is updated, the data corresponding to the first version is deleted, and the data of the second version number is stored, so as to prevent the problem that the server cannot control the smart gateway.
图2示出了本申请一个实施例提供的网络优化方法的流程示意图,用于实现上述图1中的(a)至图1中的(b)的优化过程,在具体的实施例中,所述网络优化方法应用于如图1所示的网络优化系统、服务器1或第一智能网关2,图8所示的网络优化装置100以及如图12所示的配置有网络优化装置100的电子设备200。本实施例将以网络优化方法应用于服务器1为例说明本实施例的具体流程。下面将针对图2所示的流程进行详细的阐述,所述网络优化方法具体可以包括如下步骤:Fig. 2 shows a schematic flowchart of a network optimization method provided by an embodiment of the present application, which is used to realize the optimization process from (a) to (b) in Fig. 1 above. In a specific embodiment, the The network optimization method described above is applied to the network optimization system, the server 1 or the first intelligent gateway 2 as shown in Figure 1, the network optimization device 100 shown in Figure 8 and the electronic equipment configured with the network optimization device 100 as shown in Figure 12 200. This embodiment will take the application of the network optimization method to the server 1 as an example to illustrate the specific process of this embodiment. The process shown in Figure 2 will be described in detail below, and the network optimization method may specifically include the following steps:
步骤S110、获取第一智能网关的位置标签作为第一位置信息。Step S110, acquiring the location tag of the first intelligent gateway as the first location information.
预先根据房间或者楼层的实际位置,对不同房间或者楼层标定不同的位置标签,根据第一智能网关所处的位置获取对应的位置标签作为第一位置信息。可选地,第一位置信息可以包括楼层,例如,10F、15F等,第一位置信息还可以包括房间号或者房间属性,例如,房间号为301、302等,房间属性为主卧、客厅、厨房、书房等。According to the actual location of the room or floor in advance, different location tags are calibrated for different rooms or floors, and the corresponding location tag is obtained as the first location information according to the location of the first intelligent gateway. Optionally, the first location information may include floors, such as 10F, 15F, etc. The first location information may also include room numbers or room attributes, for example, room numbers are 301, 302, etc., and the room attributes are master bedroom, living room, etc. Kitchen, study, etc.
在一种实施方式中,当接收到网络优化指令后,执行网络优化的步骤,获取第一智能网关的位置标签作为第一位置信息。其中,网络优化指令可以为用户手动触发的,也可以是在多个子设备中,存在位置发生改变时,自动生成的,还可以是根据预先设置的时间间隔自动触发的。In one embodiment, after receiving the network optimization instruction, the step of network optimization is performed, and the location label of the first intelligent gateway is acquired as the first location information. Wherein, the network optimization instruction may be manually triggered by the user, or may be automatically generated when the locations of multiple sub-devices change, or may be automatically triggered according to a preset time interval.
步骤S120、获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个。Step S120. Acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
第一智能网关连接多个子设备,第一智能网关和与其连接的子设备共同组成子网络,例如,组成的子网络为Mesh子网络。根据所有子设备各自所处的位置,获取第一智能网关下述的所有子设备各自的位置标签作为第二位置信息。同样,第二位置信息可以包括楼层,例如,10F、15F等,第二位置信息还可以包括房间号,例如,301、407等。The first intelligent gateway is connected to a plurality of sub-devices, and the first intelligent gateway and the sub-devices connected thereto form a sub-network, for example, the formed sub-network is a Mesh sub-network. According to the respective locations of all sub-devices, the respective location tags of all sub-devices below the first intelligent gateway are acquired as the second location information. Likewise, the second location information may include floors, for example, 10F, 15F, etc., and the second location information may also include room numbers, for example, 301, 407, and so on.
步骤S130、若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备。Step S130, if there is second location information that does not match the first location information among the plurality of second location information, determine the sub-device to be optimized from all the sub-devices.
若多个第二位置信息中的每个第二位置信息均与第一位置信息匹配,在根据位置信息建立子设备与第一智能网关的从属关系前提下,则所有子设备与第一智能网关的从属关系合理,也就是说,第一智能网关下属的所有子设备均处在与第一智能网关处在同一区域内,则一般情况下可以默认第一智能网关对应的Mesh子网络的通信性能良好。If each second location information in the plurality of second location information matches the first location information, on the premise that the affiliation relationship between the sub-devices and the first intelligent gateway is established according to the location information, all sub-devices and the first intelligent gateway The affiliation relationship is reasonable, that is to say, all sub-devices under the first intelligent gateway are in the same area as the first intelligent gateway, then in general, the communication performance of the Mesh subnetwork corresponding to the first intelligent gateway can be defaulted good.
需要说明的是,根据位置信息建立子设备与第一智能网关的从属关系,即根据多个子设备的位置信息和第一智能网关的位置信息,在同一区域内的子设备从属于该区域内的智能网关。It should be noted that the affiliation relationship between the sub-devices and the first intelligent gateway is established according to the location information, that is, according to the location information of multiple sub-devices and the location information of the first intelligent gateway, the sub-devices in the same area are subordinate to the sub-devices in the area. Smart Gateway.
若多个第二位置信息中存在与第一位置信息不匹配的第二位置信息,则子设备与第一智能网关的从属关系可能不合理,例如,子网络中存在位置发生变化的子设备,再例如,第一智能网关下属的子设备可能处在与第一智能网关较远的位置,当从属关系不合理时,第一智能网关对应的Mesh子网络的通信能力可能较差,该Mesh子网络作为待优化的子网络。If there is second location information that does not match the first location information in the plurality of second location information, the affiliation relationship between the sub-device and the first intelligent gateway may be unreasonable, for example, there is a sub-device whose location has changed in the sub-network, For another example, the sub-devices subordinate to the first intelligent gateway may be located far away from the first intelligent gateway. network as the subnetwork to be optimized.
在一种实施方式中,当第二位置信息与第一位置信息相同时,则认为第一位置信息和第二位置信息匹配,即子设备与第一智能网关处在同一层楼或者同一个房间。例如,当第一位置信息为楼层15F,且第二位置信息为楼层15F时,确定第一位置信息与第二位置信息匹配;再例如,当第一位置信息为房间号303,第二位置信息为房间号303时,确定第一位置信息与第二位置信息匹配。In one embodiment, when the second location information is the same as the first location information, it is considered that the first location information matches the second location information, that is, the sub-device and the first smart gateway are on the same floor or in the same room . For example, when the first location information is floor 15F and the second location information is floor 15F, it is determined that the first location information matches the second location information; for another example, when the first location information is room number 303, the second location information When the room number is 303, it is determined that the first location information matches the second location information.
反之,当第一位置信息与第二位置信息不相同时,则认为第一位置信息和第二位置信息不匹配。例如,当第一位置信息为楼层13F,且第二位置信息为楼层15F时,确定第一位置 信息与第二位置信息不匹配;再例如,当第一位置信息为房间号303,第二位置信息为房间号305时,确定第一位置信息与第二位置信息不匹配。Conversely, when the first location information is different from the second location information, it is considered that the first location information does not match the second location information. For example, when the first location information is floor 13F and the second location information is floor 15F, it is determined that the first location information does not match the second location information; for another example, when the first location information is room number 303, the second location information When the information is the room number 305, it is determined that the first location information does not match the second location information.
在确定了第一智能网关对应的Mesh子网络为待优化的子网络时,从该子网络中的所有子设备中确定待优化子设备。在一种实施方式中,将多个子设备中第二位置信息中与第一位置信息不匹配的子设备作为待优化子设备,并对待优化子设备进行优化,可以快速实现对子网络的优化。When it is determined that the Mesh sub-network corresponding to the first intelligent gateway is the sub-network to be optimized, the sub-device to be optimized is determined from all sub-devices in the sub-network. In an implementation manner, sub-devices whose second location information does not match the first location information among the plurality of sub-devices are used as sub-devices to be optimized, and the sub-devices to be optimized are optimized, so that the sub-network can be quickly optimized.
在另一种实施方式中,将第二位置信息与第一位置信息不匹配的子设备作为备选子设备,在备选子设备中,确定通信能力不佳的作为待优化子设备。In another implementation manner, the sub-devices whose second location information does not match the first location information are used as candidate sub-devices, and among the candidate sub-devices, those with poor communication capabilities are determined as sub-devices to be optimized.
在另一种实施方式中,当确定第二位置信息与第一位置信息不匹配的子设为备选子设备后,判断是否存在第一位置信息与备选子设备的第二位置信息匹配的智能网关,若有,则将备选子设备作为待优化子设备,若无,则确定备选子设备无须优化。In another embodiment, after it is determined that the sub-device whose second location information does not match the first location information is set as an alternative sub-device, it is determined whether there is a sub-device whose first location information matches the second location information of the alternative sub-device. The intelligent gateway, if there is, takes the candidate sub-device as the sub-device to be optimized, and if not, determines that the candidate sub-device does not need to be optimized.
步骤S140、确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。Step S140, determining a second intelligent gateway corresponding to the sub-device to be optimized, and migrating the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
在所有子网络中确定第二智能网关,作为一种方式,获取多个智能网关各自对应的位置信息,在多个智能网关中,确定位置信息与待优化子设备的第二位置信息匹配的智能网关作为第二智能网关。Determine the second intelligent gateway in all sub-networks. As a method, obtain the location information corresponding to each of the multiple intelligent gateways. Among the multiple intelligent gateways, determine the intelligent gateway whose location information matches the second location information of the sub-device to be optimized. The gateway serves as the second intelligent gateway.
在一种实施方式中,确定待优化子设备对应的第二智能网关,直接将待优化子设备从第一智能网关迁移至下第二智能网关,迁移结束后,待优化子设备下属于第二智能网关。其中,第二智能网关对应的位置信息与确定待优化子设备的第二位置信息匹配。In one embodiment, the second intelligent gateway corresponding to the sub-device to be optimized is determined, and the sub-device to be optimized is directly migrated from the first intelligent gateway to the next second intelligent gateway. After the migration, the sub-device to be optimized belongs to the second Smart Gateway. Wherein, the location information corresponding to the second intelligent gateway matches the second location information determined to be optimized for the sub-device.
在另一种实施方式中,确定所述待优化子设备对应的所述第二智能网关。可以在显示提示信息“请确认是否进行网络优化”,并且显示迁移选择控件,其中,迁移选择控件用于供用户进行迁移确认输入的交互控件,可选地,在第一智能网关的控制面板上显示迁移选择控件,或者是在用户的电脑、移动终端等电子设备上显示迁移选择控件。当接收到基于迁移选择控件触发的迁移指令时,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。In another implementation manner, the second intelligent gateway corresponding to the sub-device to be optimized is determined. The prompt message "Please confirm whether to perform network optimization" can be displayed, and the migration selection control can be displayed, wherein the migration selection control is an interactive control for the user to perform migration confirmation input. Optionally, on the control panel of the first intelligent gateway Display the migration selection control, or display the migration selection control on the user's computer, mobile terminal and other electronic devices. When a migration instruction triggered based on the migration selection control is received, the sub-device to be optimized is migrated from the first intelligent gateway to the second intelligent gateway.
可选地,当待优化子设备对应的第二智能网关存在故障时,用户可能手动将待优化子设备迁移至第一智能网关,因此,在显示迁移选择控件的同时,还可以显示迁移忽略控件,当用户接收到基于迁移忽略控件触发的忽略指令指令时,保持待优化子设备与第一智能网关的连接关系,保证了待优化子设备可以顺利入网。Optionally, when the second intelligent gateway corresponding to the sub-device to be optimized is faulty, the user may manually migrate the sub-device to be optimized to the first intelligent gateway. Therefore, while the migration selection control is displayed, the migration ignore control can also be displayed , when the user receives an ignore instruction triggered based on the migration ignore control, the connection relationship between the sub-device to be optimized and the first intelligent gateway is maintained, ensuring that the sub-device to be optimized can smoothly access the network.
本实施例提供的网络优化方法,判断出多个子设备对应的第二位置信息中存在与第一智能网关对应的第一位置信息不匹配的第二位置信息时,从所有子设备中确定待优化子设备,再将待优化子设备从第一智能网关自动迁移至第二智能网关,通过子设备的自动迁移,实现网络通信能力的自动优化,使得网关与对应的子设备更便于管理,从而提升了网络通讯的时效性和稳定性。In the network optimization method provided in this embodiment, when it is judged that there is second location information that does not match the first location information corresponding to the first intelligent gateway among the second location information corresponding to multiple sub-devices, it is determined from all sub-devices to be optimized Sub-devices, and then automatically migrate the sub-devices to be optimized from the first intelligent gateway to the second intelligent gateway. Through the automatic migration of sub-devices, the automatic optimization of network communication capabilities is realized, making the gateway and corresponding sub-devices easier to manage, thereby improving The timeliness and stability of network communication.
可选地,图3示出了本申请另一个实施例提供的网络优化方法的流程示意图,请参阅图3,所述网络优化方法具体可以包括如下步骤:Optionally, FIG. 3 shows a schematic flowchart of a network optimization method provided in another embodiment of the present application. Please refer to FIG. 3. The network optimization method may specifically include the following steps:
步骤S210、获取第一智能网关的位置标签作为第一位置信息。Step S210, acquiring the location tag of the first intelligent gateway as the first location information.
步骤S220、获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个。Step S220. Acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
其中,步骤S210-步骤S220的具体描述请参阅步骤S110-步骤S120,在此不再赘述。Wherein, for the specific description of step S210-step S220, please refer to step S110-step S120, which will not be repeated here.
步骤S230、若在所述多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信 息,则将所述所有子设备中位置信息不匹配的子设备作为所述待优化子设备。Step S230, if there is second location information that does not match the first location information in the plurality of second location information, take the sub-device whose location information does not match among all the sub-devices as the to-be-optimized child device.
若在多个第二位置信息中存在与第一位置信息不匹配的第二位置信息,则将所述所有子设备中位置信息不匹配的子设备作为所述待优化子设备,一方面,仅对待优化子设备进行优化,可以提升网络优化的效率,另一方面,对所述位置信息不匹配的子设备进行迁移优化,将所有设备调整为与位置信息一致的网关连接,构建子网络,可以提高整个环境的容灾能力,即,网关出故障时,仅会影响位置信息对应的设备的控制操作,不会对其他设备的控制造成干扰。If there is second location information that does not match the first location information in the plurality of second location information, then use the sub-device whose location information does not match among all the sub-devices as the sub-device to be optimized. On the one hand, only Optimizing the sub-devices to be optimized can improve the efficiency of network optimization. On the other hand, migrating and optimizing the sub-devices whose location information does not match, adjusting all devices to gateway connections consistent with the location information, and building sub-networks can Improve the disaster recovery capability of the entire environment, that is, when the gateway fails, it will only affect the control operation of the device corresponding to the location information, and will not interfere with the control of other devices.
在一种实施方式中,图4示出了本申请的图3所示的网络优化方法的步骤S230的一种流程示意图,请参阅图4,步骤S230包括如下子步骤:In one embodiment, FIG. 4 shows a schematic flowchart of step S230 of the network optimization method shown in FIG. 3 of the present application. Please refer to FIG. 4, step S230 includes the following sub-steps:
子步骤S231、若在所述多个第二位置信息中存在与所述第一位置信息不匹配的所述第二位置信息,将所述所有子设备中位置信息不匹配的子设备作为备选子设备。Sub-step S231, if there is the second location information that does not match the first location information in the plurality of second location information, use the sub-device whose location information does not match among all the sub-devices as a candidate child device.
若存在与所述第一位置信息不匹配的第二位置信息,将所有子设备中,不匹配的子设备作为备选子设备,可以理解的是,备选子设备可能是需要进行优化的子设备,可能是不需要进行优化的子设备。其中,备选子设备的数量可以是一个,也可以多个。If there is second location information that does not match the first location information, among all sub-devices, the sub-devices that do not match are used as candidate sub-devices. It can be understood that the candidate sub-devices may be sub-devices that need to be optimized. device, possibly a sub-device that does not need to be optimized. Wherein, the number of candidate sub-devices may be one or more.
子步骤S232、获取所述备选子设备的设备信息,其中,所述设备信息包括子网络信息,或者,子网络信息及位置匹配信息。Sub-step S232, acquiring device information of the candidate sub-device, wherein the device information includes sub-network information, or sub-network information and location matching information.
可选地,所述子网络信息包括信号强度,和/或,链路层级数,和/或,子设备数量。其中,信号强度可以表征子网络中的备选子设备接收信号的能力,例如信号强度为-30dbm(信号强度单位,毫瓦分贝)。链路层级表征备选设备在子网络中距离第一智能网关的距离,例如,链路层级可以为2层,即备选设备通过一个子设备与第一智能网关连接。子设备数量表征备选设备所在的子网络中子设备的总数,如图1,第一智能网关对应的Mesh子网络中子设备的数量为4个,第二智能网关对应的Mesh子网络中子设备的数量为1个。Optionally, the subnetwork information includes signal strength, and/or, link layer levels, and/or, number of sub-devices. Wherein, the signal strength may represent the ability of the candidate sub-device in the sub-network to receive signals, for example, the signal strength is -30dbm (signal strength unit, decibel milliwatt). The link level represents the distance between the candidate device and the first intelligent gateway in the sub-network. For example, the link level may be layer 2, that is, the candidate device is connected to the first intelligent gateway through a sub-device. The number of sub-devices represents the total number of sub-devices in the sub-network where the candidate device is located. The number of devices is 1.
子步骤S233、根据所述设备信息计算所述备选子设备在所属子网络的评测值。Sub-step S233, calculating the evaluation value of the candidate sub-device in the sub-network to which it belongs according to the device information.
设备信息的数量为多个,获取多个设备信息各自对应的权重,根据各个设备信息以及各自对应的权重,计算备选子设备在所属子网络的评测值。There are multiple pieces of equipment information, weights corresponding to the pieces of equipment information are acquired, and evaluation values of candidate sub-equipments in the sub-network to which they belong are calculated according to each piece of equipment information and their corresponding weights.
在一种实施方式中,当设备信息包括子网络信息,子网络信息包括信号强度、链路层级数和子设备数量时,获取信号强度、链路层级数和子设备数量各自对应的子评分,例如,预先设置不同区间的信号强度对应的子评分,在获取到信号强度时,对应子设备的信号强度所在的区间获得子评分,预先对不同的链路层级数设置不同的子评分,获取子设备的链路层级数对应的子评分,预先设置子设备数量对应的子评分,获取子设备所在子网络的设备数量对应的子评分;再获取信号强的子评分度对应的第一权重、链路层级数的子评分对应的第二权重、以及子设备数量的子评分对应的第三权重;根据信号强度的子评分与第一权重之间的乘积、链路层级数的子评分与第二权重的乘积、以及子设备数量的子评分与第三权重的乘积,计算上述三个乘积之和,得到子设备在当前子网络的评测值。In one embodiment, when the device information includes sub-network information, and the sub-network information includes signal strength, link level number and number of sub-devices, obtain sub-scores corresponding to signal strength, link level number and number of sub-devices, for example, Set the sub-scores corresponding to the signal strength of different intervals in advance. When the signal strength is obtained, the sub-scores are obtained for the intervals corresponding to the signal strength of the sub-device. Set different sub-scores for different link layer levels in advance to obtain the sub-device The sub-score corresponding to the number of link levels, pre-set the sub-score corresponding to the number of sub-devices, obtain the sub-score corresponding to the number of devices in the sub-network where the sub-device is located; then obtain the first weight corresponding to the sub-score degree of signal strength, link level The second weight corresponding to the sub-score of the number of sub-scores, and the third weight corresponding to the sub-score of the number of sub-devices; product, and the product of the sub-score of the number of sub-device and the third weight, calculate the sum of the above three products, and obtain the evaluation value of the sub-device in the current sub-network.
在另一种实施方式中,当设备信息包括子网络信息及位置匹配信息,子网络信息包括信号强度、链路层级数和子设备数量时,获取信号强度、链路层级数、子设备数量和位置匹配信息各自对应的子评分,其中,预先设置多个位置匹配信息各自对应的子评分,在获取子设备的位置匹配信息时,获取对应的子评分,其中,第一位置信息为7楼,第二位置信息为8楼,则位置匹配信息指示两个位置不匹配且楼层相差一楼,获取对应的子评分;再获取信号强度的子评分对应的第一权重、链路层级数的子评分对应的第二权重、子设备数量的子评分对应的第三权重、以及位置匹配信息的子评分对应的第四权重;根据信号强度的子评分与第一权重之间的乘积、链路层级数的子评分与第二权重的乘积、子设备数量的子评分与第三权 重的乘积、以及位置匹配信息的子评分与第四权重的乘积,计算上述四个乘积之和,得到评测值。In another embodiment, when the device information includes sub-network information and location matching information, and the sub-network information includes signal strength, link level number and number of sub-devices, the signal strength, link level number, number of sub-devices and location are acquired The sub-scores corresponding to each of the matching information, wherein the sub-scores corresponding to each of the plurality of location matching information are preset, and when the location matching information of the sub-device is obtained, the corresponding sub-scores are obtained, wherein the first location information is the 7th floor, the second If the second location information is the 8th floor, the location matching information indicates that the two locations do not match and the floors are one floor apart, and the corresponding sub-score is obtained; then the first weight corresponding to the sub-score of signal strength and the corresponding sub-score of the link layer level are obtained. The second weight corresponding to the second weight of the sub-score of the sub-device quantity, and the fourth weight corresponding to the sub-score of the location matching information; according to the product of the sub-score of the signal strength and the first weight, the link layer level The product of the sub-score and the second weight, the product of the sub-score of the number of sub-equipment and the third weight, and the product of the sub-score of the position matching information and the fourth weight, calculate the sum of the above four products, and obtain the evaluation value.
子步骤S234、从所述备选子设备中筛选出所述评测值小于预设阈值的子设备,作为所述待优化子设备。Sub-step S234 , selecting a sub-device whose evaluation value is smaller than a preset threshold from the candidate sub-device as the sub-device to be optimized.
在备选子设备的数量为多个时,相应地,获得的评测值的数量也为多个,当多个评测值中存在小于预设阈值的评测值时,该评测值对应的备选子设备作为待优化子设备,可以理解的是,待优化子设备所处的位置与第一智能网关所处的位置不匹配,二者之间的距离可能较远,并且待优化子设备的通信能力较差,对待优化子设备进行迁移。多个评测值中存在大于预设阈值的评测值,该评测值对应的备选设备所处的位置与第一智能网关所处的位置可能不同,但是该备选设备的通信能力尚可,因此,对该备选设备不进行优化。When the number of candidate sub-devices is multiple, correspondingly, the number of evaluation values obtained is also multiple. When there is an evaluation value smaller than the preset threshold among the multiple evaluation values, the corresponding As a sub-device to be optimized, it can be understood that the location of the sub-device to be optimized does not match the location of the first intelligent gateway, the distance between the two may be far, and the communication capability of the sub-device to be optimized Poor, migrate the sub-device to be optimized. There is an evaluation value greater than the preset threshold among the multiple evaluation values, and the location of the candidate device corresponding to the evaluation value may be different from the location of the first intelligent gateway, but the communication capability of the candidate device is still acceptable, so , do not optimize for this alternative device.
步骤S240、确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。Step S240, determining a second intelligent gateway corresponding to the sub-device to be optimized, and migrating the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
其中,步骤S240的具体描述请参阅步骤S140,在此不再赘述。Wherein, for the specific description of step S240, please refer to step S140, which will not be repeated here.
本实施例提供的网络优化方法,判断出多个子设备对应的第二位置信息中存在与第一智能网关对应的第一位置信息不匹配的第二位置信息时,确定位置不匹配的子设备作为备选子设备,可以理解的是,备选设备所处的位置与第一智能网关所处的位置不同,可能二者之间的距离较远,再获取备选子设备的评测值,对测评值小于预设阈值的备选子设备作为待优化子设备,可以理解的是,待优化子设的通信能力较差,将通信能力较差的待优化子设备迁移至第二智能网关,完成网络的优化,提高网络性能,并且避免将测评值大于预设值的通信能力较好的备选子设备进行迁移,造成计算资源的浪费。In the network optimization method provided in this embodiment, when it is determined that there is second location information that does not match the first location information corresponding to the first intelligent gateway among the second location information corresponding to multiple sub-devices, determine the sub-devices whose locations do not match as For the candidate sub-device, it can be understood that the position of the candidate device is different from that of the first intelligent gateway, and the distance between the two may be relatively long. The candidate sub-device whose value is less than the preset threshold is regarded as the sub-device to be optimized. It is understandable that the communication capability of the sub-device to be optimized is poor, and the sub-device to be optimized with poor communication capability is migrated to the second intelligent gateway to complete the network optimization, improve network performance, and avoid the migration of candidate sub-devices with better communication capabilities whose evaluation values are greater than the preset value, resulting in waste of computing resources.
可选地,图5示出了本申请另一个实施例提供的网络优化方法的流程示意图,请参阅图5,所述网络优化方法具体可以包括如下步骤:Optionally, FIG. 5 shows a schematic flowchart of a network optimization method provided in another embodiment of the present application. Please refer to FIG. 5. The network optimization method may specifically include the following steps:
步骤S310、获取第一智能网关的位置标签作为第一位置信息。Step S310, acquiring the location label of the first intelligent gateway as the first location information.
步骤S320、获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个。Step S320. Acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
步骤S330、若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备。Step S330, if there is second location information that does not match the first location information among the plurality of second location information, determine the sub-device to be optimized from all the sub-devices.
其中,步骤S310-步骤S330的具体描述请参阅步骤S110-步骤S130,在此不再赘述。Wherein, for the specific description of step S310-step S330, please refer to step S110-step S130, which will not be repeated here.
步骤S340、获取所述待优化子设备的设备标识。Step S340, acquiring the device identification of the sub-device to be optimized.
可选地,设备标识可以为媒体存取控制位址(Media Access Control Address,简称MAC)、通用唯一识别码(Universally Unique Identifier,简称UUID)等。Optionally, the device identifier may be a Media Access Control Address (Media Access Control Address, MAC for short), a Universally Unique Identifier (UUID for short), etc.
步骤S350、将所述设备标识发送至所述第二智能网关,以指示所述第二智能网关与所述待优化子设备连接。Step S350, sending the device identifier to the second intelligent gateway to instruct the second intelligent gateway to be connected to the sub-device to be optimized.
将设备标识发送至第二智能网关,以指示第二智能网关与设备标识对应的待优化子设备连接,完成网络迁移。The device identifier is sent to the second intelligent gateway to instruct the second intelligent gateway to connect with the sub-device to be optimized corresponding to the device identifier, and complete the network migration.
在一种实施方式中,在进行网络迁移时,第一智能网关采集待优化子设备的设备标识。通过服务器将设备标识发送至第二智能网关,并且在第二智能网关下新增一个虚拟的待优化子设备,虚拟的待优化子设备的参数与待优化子设备的参数保持一致,第二智能网关将设备标识存入自身的白名单中,并且打开白名单的组网模式,在该组网模式下,第二智能网关可以接收新增的子设备。第一智能网关指示待优化子设备与第二智能网关连接,并释放待优化 子设备,释放后的待优化子设备恢复为可组网状态,可以理解的是,在可组网状态下,待优化子设备可以请求与其他智能网关连接,加入其他智能网关对应的子网络。待优化子设备向第二智能网关发送组网请求,其中组网请求中携带了待优化子设备的设备标识。第二智能网关判断出组网请求中携带的设备标识与白名单中的设备标识相同时,允许待优化子设备入网,并根据参数对待优化子设备进行配置,完成了待优化子设备的网络迁移。In an implementation manner, when performing network migration, the first intelligent gateway collects device identifiers of sub-devices to be optimized. The device identification is sent to the second intelligent gateway through the server, and a virtual sub-device to be optimized is added under the second intelligent gateway. The parameters of the virtual sub-device to be optimized are consistent with the parameters of the sub-device to be optimized. The second intelligent The gateway stores the device identifier in its own white list, and opens the networking mode of the white list. In this networking mode, the second intelligent gateway can receive the newly added sub-device. The first intelligent gateway instructs the sub-device to be optimized to connect to the second intelligent gateway, and releases the sub-device to be optimized. The optimization sub-device can request to connect with other intelligent gateways, and join the sub-networks corresponding to other intelligent gateways. The sub-device to be optimized sends a networking request to the second intelligent gateway, wherein the networking request carries the device identifier of the sub-device to be optimized. When the second intelligent gateway judges that the device ID carried in the networking request is the same as the device ID in the white list, it allows the sub-device to be optimized to enter the network, configures the sub-device to be optimized according to the parameters, and completes the network migration of the sub-device to be optimized .
需要说明的是,在对待优化子设备进行迁移时,第一智能网关释放待优化子设备时,可以删除第一智能网关中存储的待优化子设备的参数信息,使得第一智能网关中的可用内存增大。或者,还可以在待优化子设备迁移至第二智能网关时,由第二智能网关、服务器或待优化子设备反馈迁移结束的指示至第一智能网关,第一智能网关接收到该指示后,再将存储的待优化子设备的参数信息删除,若在预设时长内未接收到迁移结束的指示时,第一智能网关再次将参数信息发送至第二智能网关,直到接收到迁移结束的指示,既保证了待优化子设备能够顺利迁移至第二智能网关,又可以使得第一智能网关的可用内存及时释放。It should be noted that when the sub-device to be optimized is migrated, when the first intelligent gateway releases the sub-device to be optimized, the parameter information of the sub-device to be optimized stored in the first intelligent gateway can be deleted, so that the available Increased memory. Alternatively, when the sub-device to be optimized is migrated to the second intelligent gateway, the second intelligent gateway, the server, or the sub-device to be optimized may feed back an indication of the completion of the migration to the first intelligent gateway, and after the first intelligent gateway receives the indication, Then delete the stored parameter information of the sub-device to be optimized. If no indication of the end of the migration is received within the preset time period, the first intelligent gateway will send the parameter information to the second intelligent gateway again until the indication of the end of the migration is received. , which not only ensures that the sub-device to be optimized can be migrated to the second intelligent gateway smoothly, but also can release the available memory of the first intelligent gateway in time.
本实施例提供的网络优化方法,获取待优化子设的设备标识并发送至第二智能网关,第二智能网关根据设备标识与待优化子设备连接,保证待优化子设备能够重新入网,实现网络优化。The network optimization method provided in this embodiment obtains the device ID of the sub-device to be optimized and sends it to the second intelligent gateway. optimization.
可选地,图6示出了本申请另一个实施例提供的网络优化方法的流程示意图,请参阅图6,所述网络优化方法具体可以包括如下步骤:Optionally, FIG. 6 shows a schematic flowchart of a network optimization method provided in another embodiment of the present application. Please refer to FIG. 6. The network optimization method may specifically include the following steps:
步骤S410、获取第一智能网关的位置标签作为第一位置信息。Step S410, acquiring the location tag of the first intelligent gateway as the first location information.
步骤S420、获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个。Step S420. Acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
步骤S430、若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备。Step S430, if there is second location information that does not match the first location information among the plurality of second location information, determine the sub-device to be optimized from all the sub-devices.
步骤S440、确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。Step S440: Determine the second intelligent gateway corresponding to the sub-device to be optimized, and migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
其中,步骤S410-步骤S430的具体描述请参阅步骤S110-步骤S140,在此不再赘述。Wherein, for the specific description of step S410-step S430, please refer to step S110-step S140, which will not be repeated here.
步骤S450、当所述待优化子设备迁移至所述第二智能网关后,判断该迁移操作是否为有效迁移。Step S450, after the sub-device to be optimized is migrated to the second intelligent gateway, it is judged whether the migration operation is a valid migration.
当所述待优化子设备迁移至第二智能网关后,为了校验网络优化后的结果,即为了校验待优化子设备迁移至第二智能网关后,待优化子设备的位置信息与第二智能网关的位置信息是否匹配,或者迁移后的待优化子设备的网络状况是否好转,判断迁移操作是否为有效迁移,当网络优化为有效迁移时,确定网络优化结束;或者,当迁移操作不为有效迁移时,执行下述步骤S460。After the sub-device to be optimized is migrated to the second intelligent gateway, in order to verify the result of network optimization, that is, to verify that the sub-device to be optimized is migrated to the second intelligent gateway, the location information of the sub-device to be optimized is consistent with the second Whether the location information of the intelligent gateway matches, or whether the network status of the sub-device to be optimized after migration is improved, determines whether the migration operation is an effective migration, and when the network optimization is an effective migration, it is determined that the network optimization is over; or, when the migration operation is not When migrating effectively, execute the following step S460.
在一种实施方式中,可以计算优化子设备迁移至第二智能网关后,在下属于第二智能网关的Mesh子网络的评测值,在一种实施方式中,当该评测值小于预设阈值时,则认为该迁移操作为无效迁移,需要对待优化子设备继续迁移;当该评测值大于预设阈值时,则认为该迁移操作为有效迁移,确定网络优化结束。在另一种实施方式中,本实施例的评测值与上述实施例迁移前的评测值进行比较,当本实施例的评测值小于上述实施例中的评测值时,则认为待优化子设备迁移后网络状况并未得到提升,该迁移为无效迁移,需要对待优化子设备继续迁移(例如,迁移回之前的子网络中);当本实施例的评测值大于上述实施例中的评测值时,则认为待优化子设备迁移后网络状况得到提升,该迁移操作为有效迁移,确定网络优化结束。In one embodiment, after the optimized sub-device is migrated to the second intelligent gateway, the evaluation value of the Mesh subnetwork belonging to the second intelligent gateway can be calculated. In one embodiment, when the evaluation value is less than the preset threshold , it is considered that the migration operation is an invalid migration, and the sub-device to be optimized needs to continue to be migrated; when the evaluation value is greater than the preset threshold, the migration operation is considered as a valid migration, and the network optimization is determined to be completed. In another implementation, the evaluation value of this embodiment is compared with the evaluation value before migration in the above embodiment, and when the evaluation value of this embodiment is smaller than the evaluation value in the above embodiment, it is considered that the migration of the sub-device to be optimized After the network status has not been improved, the migration is an invalid migration, and the sub-device to be optimized needs to continue to migrate (for example, migrate back to the previous sub-network); when the evaluation value of this embodiment is greater than the evaluation value in the above-mentioned embodiment, Then it is considered that the network status is improved after the sub-device to be optimized is migrated, the migration operation is effective migration, and it is determined that the network optimization is completed.
可选地,在本实施例中,下属于第二智能网关的Mesh子网络的的评测值的计算方式与 上一实施例中评测值的计算方式类似,在此不再赘述。Optionally, in this embodiment, the calculation method of the evaluation value of the Mesh subnetwork subordinate to the second intelligent gateway is similar to the calculation method of the evaluation value in the previous embodiment, and will not be repeated here.
在另一种实施方式中,获取第二智能网关的位置标签作为第三位置信息,当第二位置信息与第三位置信息不匹配时,则认为该迁移操作为无效迁移,需要对待优化子设备继续迁移;当第二位置信息与第三位置信息匹配时,则认为该迁移操作为有效迁移,则网络优化结束。In another embodiment, the location label of the second intelligent gateway is obtained as the third location information. When the second location information does not match the third location information, the migration operation is considered to be an invalid migration, and the sub-device to be optimized needs to be Continue the migration; when the second location information matches the third location information, it is considered that the migration operation is a valid migration, and the network optimization ends.
步骤S460、若否,重新确定与所述待优化子设备对应的目标网关,并执行迁操作。Step S460, if not, re-determine the target gateway corresponding to the sub-device to be optimized, and perform a relocation operation.
其中,执行迁移操纵的具体步骤与步骤S110-步骤S140类似,在此不再赘述。Wherein, the specific steps of performing the migration operation are similar to step S110-step S140, and will not be repeated here.
本实施例提供的网络优化方法,在待优化子设备从下属于第一智能网关迁移至第二智能网关后,当判断出该迁移为无效迁移时,待优化子设备在下属于第二智能网关的子网络中,通信能力仍然不佳,继续迁移待优化子设备,直至迁移为有效迁移,最终实现网络的自动优化,提升了待迁移智能网关的通信能力,保证了整个网络通讯的时效性和稳定性。In the network optimization method provided in this embodiment, after the sub-device to be optimized is migrated from the first intelligent gateway subordinate to the second intelligent gateway, when it is judged that the migration is invalid In the sub-network, the communication capability is still poor, continue to migrate the sub-devices to be optimized until the migration is effective, and finally realize the automatic optimization of the network, improve the communication capability of the smart gateway to be migrated, and ensure the timeliness and stability of the entire network communication sex.
可选地,图7示出了本申请另一个实施例提供的网络优化方法的流程示意图,请参阅图7,所述网络优化方法具体可以包括如下步骤:Optionally, FIG. 7 shows a schematic flowchart of a network optimization method provided in another embodiment of the present application. Please refer to FIG. 7. The network optimization method may specifically include the following steps:
步骤S510、获取第一智能网关的位置标签作为第一位置信息。Step S510, acquiring the location tag of the first intelligent gateway as the first location information.
步骤S520、获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个。Step S520. Acquire location labels of all sub-devices connected to the first intelligent gateway as second location information, where the number of the second location information is multiple.
步骤S530、若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备。Step S530, if there is second location information that does not match the first location information among the plurality of second location information, determine the sub-device to be optimized from all the sub-devices.
步骤S540、确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。Step S540: Determine the second intelligent gateway corresponding to the sub-device to be optimized, and migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
步骤S550、获取所述待优化子设备的配置信息。Step S550, acquiring configuration information of the sub-device to be optimized.
获取待优化子设备的配置信息,其中,配置信息用于对待优化子设备的参数、工作状态等进行配置,例如,待优化子设备为智能空调设备,根据配置信息配置智能空调设备在8:00时关闭。Obtain the configuration information of the sub-device to be optimized. The configuration information is used to configure the parameters and working status of the sub-device to be optimized. For example, the sub-device to be optimized is a smart air conditioner. closes when.
在一种实施方式中,可以从待优化子设备中获取配置信息,具体为,待优化子设备中设置并存储配置信息,待优化子设备将配置信息发送至第一智能网关,经过第一智能网关将配置信息转发至服务器。In one embodiment, the configuration information can be obtained from the sub-device to be optimized, specifically, the sub-device to be optimized is configured and stored in the sub-device, the sub-device to be optimized sends the configuration information to the first intelligent gateway, and through the first intelligent The gateway forwards configuration information to the server.
在另一种实施方式中,可以从第一智能网关中获取配置信息,具体为,用户对待优化子设备进行配置,并生成配置信息,待优化子设备将生成的配置信息发送至第一智能网关进行存储,第一智能网关根据配置信息对待优化子设备进行控制。服务器可以从第一智能网关的存储位置获取配置信息。In another embodiment, the configuration information can be obtained from the first intelligent gateway, specifically, the user configures the sub-device to be optimized and generates configuration information, and the sub-device to be optimized sends the generated configuration information to the first intelligent gateway storage, and the first intelligent gateway controls the sub-device to be optimized according to the configuration information. The server may acquire configuration information from the storage location of the first intelligent gateway.
可选地,除了配置信息外,还可以获取待优化子设备的应用数据、历史记录等。Optionally, in addition to the configuration information, application data and history records of the sub-device to be optimized can also be obtained.
步骤S560、将所述配置信息发送至所述第二智能网关,以指示所述第二智能网关根据所述配置信息对所述待优化子设备进行配置。Step S560, sending the configuration information to the second intelligent gateway, so as to instruct the second intelligent gateway to configure the sub-device to be optimized according to the configuration information.
将配置信息发送至第二智能网关,第二智能网关根据配置信息对待优化子设备进行配置,保证了待优化子设备迁移后的功能正常。The configuration information is sent to the second intelligent gateway, and the second intelligent gateway configures the sub-device to be optimized according to the configuration information, so as to ensure that the function of the sub-device to be optimized is normal after migration.
可选地,第二智能网关还可以根据应用数据、历史记录对待优化子设备进行配置,保证了待优化子设备原先设置的信息不变,迁移后不影响待优化子设备的正常使用。Optionally, the second intelligent gateway can also configure the sub-device to be optimized according to the application data and historical records, so as to ensure that the original information of the sub-device to be optimized remains unchanged, and the normal use of the sub-device to be optimized will not be affected after migration.
本实施例提供的网络优化方法,将待优化子设备从下属于第一智能网关迁移至第二智能网关时,第二智能网关根据第一智能网关发送的配置信息,对待优化子设备进行配置,使得 网络迁移后,待优化子设备在下属于第二智能网关时,原有的功能仍然能够执行,保证了待优化子设备能够正常工作。In the network optimization method provided in this embodiment, when the sub-device to be optimized is migrated from the subordinate first intelligent gateway to the second intelligent gateway, the second intelligent gateway configures the sub-device to be optimized according to the configuration information sent by the first intelligent gateway, After the network migration, when the sub-device to be optimized belongs to the second intelligent gateway, the original function can still be executed, which ensures that the sub-device to be optimized can work normally.
为实现上述方法类实施例,本实施例提供一种网络优化装置,图8示出了本申请一实施例提供的网络优化装置的框图,请参阅图8,网络优化100包括:第一位置信息获取模块110、第二位置信息获取模块120、确定模块130和迁移模块140。In order to implement the above-mentioned method embodiments, this embodiment provides a network optimization device. FIG. 8 shows a block diagram of a network optimization device provided by an embodiment of the present application. Please refer to FIG. 8. The network optimization 100 includes: first location information An acquisition module 110 , a second location information acquisition module 120 , a determination module 130 and a migration module 140 .
第一位置信息获取模块110,用于获取第一智能网关的位置标签作为第一位置信息;The first location information obtaining module 110 is used to obtain the location tag of the first intelligent gateway as the first location information;
第二位置信息获取模块120,用于获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个;The second location information acquiring module 120 is configured to acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, wherein the number of the second location information is multiple;
确定模块130,用于若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备;A determining module 130, configured to determine a sub-device to be optimized from all sub-devices if there is second position information that does not match the first position information among the plurality of second position information;
迁移模块140,用于确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。The migration module 140 is configured to determine a second intelligent gateway corresponding to the sub-device to be optimized, and migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
可选地,确定模块130包括:确定子模块。Optionally, the determining module 130 includes: a determining submodule.
确定子模块,用于若在所述多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则将所述所有子设备中位置信息不匹配的子设备作为所述待优化子设备。A determining submodule, configured to, if there is second location information that does not match the first location information in the plurality of second location information, use the sub-device whose location information does not match among all the sub-devices as the all sub-devices Describe the sub-device to be optimized.
可选地,确定子模块包括:备选子设备确定子模块、设备信息获取子模块、评测值计算子模块和待优化子设备确定子模块。Optionally, the determination sub-module includes: a candidate sub-device determination sub-module, a device information acquisition sub-module, an evaluation value calculation sub-module, and a sub-device determination sub-module to be optimized.
备选子设备确定子模块,用于若在所述多个第二位置信息中存在与所述第一位置信息不匹配的所述第二位置信息,将所述所有子设备中位置信息不匹配的子设备作为备选子设备;An alternative sub-device determination submodule, configured to, if there is the second position information that does not match the first position information in the plurality of second position information, identify the mismatching position information in all the sub-device The sub-device of is used as an alternative sub-device;
设备信息获取子模块,用于获取所述备选子设备的设备信息,其中,所述设备信息包括子网络信息,或者,子网络信息及位置匹配信息;A device information acquiring submodule, configured to acquire device information of the candidate sub-device, wherein the device information includes sub-network information, or sub-network information and location matching information;
评测值计算子模块,用于根据所述设备信息计算所述备选子设备在所属子网络的评测值;An evaluation value calculation submodule, configured to calculate the evaluation value of the candidate sub-device in the sub-network to which it belongs according to the device information;
待优化子设备确定子模块,用于从所述备选子设备中筛选出所述评测值小于预设阈值的子设备,作为所述待优化子设备。The sub-device determination submodule to be optimized is configured to select a sub-device whose evaluation value is smaller than a preset threshold from the candidate sub-device as the sub-device to be optimized.
可选地,所述子网络信息包括信号强度,和/或,链路层级数,和/或,子设备数量。Optionally, the subnetwork information includes signal strength, and/or, link layer levels, and/or, number of sub-devices.
可选地,迁移模块140包括:设备标识获取子模块和第一迁移子模块。Optionally, the migration module 140 includes: a device identification acquisition submodule and a first migration submodule.
设备标识获取子模块,用于获取所述待优化子设备的设备标识;The device identification obtaining submodule is used to obtain the device identification of the sub-device to be optimized;
第一迁移子模块,用于将所述设备标识发送至所述第二智能网关,以指示所述第二智能网关与所述待优化子设备连接。The first migration submodule is configured to send the device identifier to the second intelligent gateway, so as to instruct the second intelligent gateway to connect with the sub-device to be optimized.
可选地,网络优化100还包括:配置信息获取模块和配置模块。Optionally, the network optimization 100 further includes: a configuration information acquisition module and a configuration module.
配置信息获取模块,用于获取所述待优化子设备的配置信息;A configuration information acquisition module, configured to acquire configuration information of the sub-device to be optimized;
配置模块,用于将所述配置信息发送至所述第二智能网关,以指示所述第二智能网关根据所述配置信息对所述待优化子设备进行配置。A configuration module, configured to send the configuration information to the second intelligent gateway, to instruct the second intelligent gateway to configure the sub-device to be optimized according to the configuration information.
可选地,网络优化100还包括:迁移判断模块和重新迁移模块。Optionally, the network optimization 100 further includes: a migration judging module and a re-migration module.
迁移判断模块,用于当所述待优化子设备迁移至所述第二智能网关后,判断该迁移操作是否为有效迁移;A migration judging module, configured to judge whether the migration operation is a valid migration after the sub-device to be optimized is migrated to the second intelligent gateway;
重新迁移模块,用于若否,重新确定与所述待优化子设备对应的目标网关,并执行迁操 作。The re-migration module is configured to, if not, re-determine the target gateway corresponding to the sub-device to be optimized, and perform a relocation operation.
可选地,迁移模块140包括:迁移目标确定子模块、显示子模块和第二迁移子模块。Optionally, the migration module 140 includes: a migration target determination submodule, a display submodule and a second migration submodule.
迁移目标确定子模块,用于确定所述待优化子设备对应的所述第二智能网关;A migration target determination submodule, configured to determine the second intelligent gateway corresponding to the sub-device to be optimized;
显示子模块,用于显示迁移选择控件;The display submodule is used to display the migration selection control;
第二迁移子模块,用于当接收到基于迁移选择控件触发的迁移指令时,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。The second migration submodule is configured to migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway when receiving a migration instruction triggered based on the migration selection control.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the devices and modules described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules.
图9是本申请实施例的用于执行根据本申请实施例的网络优化方法的电子设备的框图,请参阅图9,其示出了本申请实施例提供的一种电子设备200的结构框图。该电子设备200可以是智能手机、平板电脑、智能网关、智能控制面板等能够运行应用程序的电子设备。本申请中的电子设备200可以包括一个或多个如下部件:处理器210、存储器220以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器220中并被配置为由一个或多个处理器210执行,一个或多个应用程序配置用于执行如前述方法实施例所描述的方法。FIG. 9 is a block diagram of an electronic device for executing a network optimization method according to an embodiment of the present application. Please refer to FIG. 9 , which shows a structural block diagram of an electronic device 200 provided by an embodiment of the present application. The electronic device 200 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, a smart gateway, and a smart control panel. The electronic device 200 in this application may include one or more of the following components: a processor 210, a memory 220, and one or more application programs, wherein one or more application programs may be stored in the memory 220 and configured to be executed by a or a plurality of processors 210, and one or more application programs are configured to execute the methods described in the foregoing method embodiments.
其中,处理器210可以包括一个或者多个处理核。处理器210利用各种接口和线路连接整个电子设备200内的各个部分,通过运行或执行存储在存储器220内的指令、程序、代码集或指令集,以及调用存储在存储器220内的数据,执行电子设备200的各种功能和处理数据。可选地,处理器210可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器210可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示组件的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器210中,单独通过一块通信芯片进行实现。Wherein, the processor 210 may include one or more processing cores. The processor 210 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes by running or executing instructions, programs, code sets or instruction sets stored in the memory 220, and calling data stored in the memory 220. Various functions of the electronic device 200 and processing data. Optionally, the processor 210 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 210 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the components to be displayed; the modem is used for wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 210, but may be realized by a communication chip alone.
存储器220可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器220可用于存储指令、程序、代码、代码集或指令集。存储器220可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备200在使用中所创建的数据(比如历史配置文件)等。The memory 220 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory). The memory 220 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 220 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The data storage area can also store data (such as historical configuration files) created by the electronic device 200 during use.
图10示出了本申请实施例的用于保存或者携带实现根据本申请实施例的网络优化方法的程序代码的存储单元,请参阅10,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Fig. 10 shows a storage unit used to save or carry program codes for realizing the network optimization method according to the embodiment of the application according to the embodiment of the application. Please refer to 10, which shows a computer-capable Read the structure block diagram of the storage medium. Program codes are stored in the computer-readable medium 300, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失 性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。The computer readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium). The computer-readable storage medium 300 has a storage space for program code 310 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products. Program code 310 may, for example, be compressed in a suitable form.
综上所述,本申请提供的网络优化方法、装置及电子设备,获取第一智能网关的位置标签作为第一位置信息,获取与第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,第二位置信息的数量为多个;若在多个第二位置信息中存在与第一位置信息不匹配的第二位置信息,则从所有子设备中确定待优化子设备;确定待优化子设备对应的第二智能网关,将待优化子设备从第一智能网关迁移至第二智能网关,通过子设备的自动迁移,实现网络通信能力的自动优化,提升了网络通讯的时效性、稳定性以及容灾能力。To sum up, the network optimization method, device, and electronic equipment provided by this application obtain the location label of the first intelligent gateway as the first location information, and obtain the respective location labels of all sub-devices connected to the first intelligent gateway as the second location information. Location information, wherein the number of second location information is multiple; if there is second location information that does not match the first location information in the plurality of second location information, then determine the sub-device to be optimized from all sub-devices; Determine the second smart gateway corresponding to the sub-device to be optimized, migrate the sub-device to be optimized from the first smart gateway to the second smart gateway, realize automatic optimization of network communication capabilities through automatic migration of sub-device, and improve the timeliness of network communication performance, stability, and disaster recovery capabilities.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not drive the essence of the corresponding technical solutions away from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims (10)

  1. 一种网络优化方法,其特征在于,所述方法包括:A network optimization method, characterized in that the method comprises:
    获取第一智能网关的位置标签作为第一位置信息;Acquiring the location tag of the first intelligent gateway as the first location information;
    获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个;Acquiring location tags of all sub-devices connected to the first intelligent gateway as second location information, wherein the number of the second location information is multiple;
    若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备;If there is second location information that does not match the first location information in the plurality of second location information, then determine the sub-device to be optimized from all the sub-devices;
    确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。A second intelligent gateway corresponding to the sub-device to be optimized is determined, and the sub-device to be optimized is migrated from the first intelligent gateway to the second intelligent gateway.
  2. 根据权利要求1所述的方法,其特征在于,所述若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备,包括:The method according to claim 1, wherein, if there is second location information that does not match the first location information among the plurality of second location information, determining from all the sub-devices to be Optimize child devices, including:
    若在所述多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则将所述所有子设备中位置信息不匹配的子设备作为所述待优化子设备。If there is second location information that does not match the first location information in the plurality of second location information, use the sub-device whose location information does not match among all the sub-devices as the sub-device to be optimized.
  3. 根据权利要求1所述的方法,其特征在于,所述若在所述多个第二位置信息中存在与所述第一位置信息不匹配的所述第二位置信息,则将所述所有子设备中位置信息不匹配的子设备作为所述待优化子设备,包括:The method according to claim 1, wherein if the second location information does not match the first location information in the plurality of second location information, The sub-device whose location information does not match in the device is used as the sub-device to be optimized, including:
    若在所述多个第二位置信息中存在与所述第一位置信息不匹配的所述第二位置信息,将所述所有子设备中位置信息不匹配的子设备作为备选子设备;If the second location information that does not match the first location information exists in the plurality of second location information, use the sub-device whose location information does not match among all the sub-devices as a candidate sub-device;
    获取所述备选子设备的设备信息,其中,所述设备信息包括子网络信息,或者,子网络信息及位置匹配信息;Acquire device information of the candidate sub-device, where the device information includes sub-network information, or sub-network information and location matching information;
    根据所述设备信息计算所述备选子设备在所属子网络的评测值;calculating the evaluation value of the candidate sub-device in the sub-network to which it belongs according to the device information;
    从所述备选子设备中筛选出所述评测值小于预设阈值的子设备,作为所述待优化子设备。A sub-device whose evaluation value is smaller than a preset threshold is selected from the candidate sub-device as the sub-device to be optimized.
  4. 根据权利要求3所述的方法,其特征在于,所述子网络信息包括信号强度,和/或,链路层级数,和/或,子设备数量。The method according to claim 3, wherein the sub-network information includes signal strength, and/or, link layer levels, and/or, the number of sub-devices.
  5. 根据权利要求1-4任意一项所述的方法,其特征在于,所述确定所述待优化子设备对应第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关,包括:The method according to any one of claims 1-4, wherein the determining that the sub-device to be optimized corresponds to a second intelligent gateway, and migrating the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway The second intelligent gateway includes:
    获取所述待优化子设备的设备标识;Obtain the device identifier of the sub-device to be optimized;
    将所述设备标识发送至所述第二智能网关,以指示所述第二智能网关与所述待优化子设备连接。Sending the device identifier to the second intelligent gateway to instruct the second intelligent gateway to be connected to the sub-device to be optimized.
  6. 根据权利要求1-4任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, wherein the method further comprises:
    获取所述待优化子设备的配置信息;Obtain configuration information of the sub-device to be optimized;
    将所述配置信息发送至所述第二智能网关,以指示所述第二智能网关根据所述配置信息对所述待优化子设备进行配置。Sending the configuration information to the second intelligent gateway to instruct the second intelligent gateway to configure the sub-device to be optimized according to the configuration information.
  7. 根据权利要求1-4任意一项所述的方法,其特征在于,所述确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关之后,所述方法还包括:The method according to any one of claims 1-4, wherein the determining the second intelligent gateway corresponding to the sub-device to be optimized is migrating the sub-device to be optimized from the first intelligent gateway to After the second intelligent gateway, the method also includes:
    当所述待优化子设备迁移至所述第二智能网关后,判断该迁移操作是否为有效迁移;After the sub-device to be optimized is migrated to the second intelligent gateway, it is judged whether the migration operation is a valid migration;
    若否,重新确定与所述待优化子设备对应的目标网关,并执行迁操作。If not, re-determine the target gateway corresponding to the sub-device to be optimized, and perform a relocation operation.
  8. 根据权利要求1-4任意一项所述的方法,其特征在于,所述确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关,包括:The method according to any one of claims 1-4, wherein the determining the second intelligent gateway corresponding to the sub-device to be optimized is migrating the sub-device to be optimized from the first intelligent gateway to The second intelligent gateway includes:
    确定所述待优化子设备对应的所述第二智能网关;determining the second intelligent gateway corresponding to the sub-device to be optimized;
    显示迁移选择控件;Show migration selection control;
    当接收到基于迁移选择控件触发的迁移指令时,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。When a migration instruction triggered based on the migration selection control is received, the sub-device to be optimized is migrated from the first intelligent gateway to the second intelligent gateway.
  9. 一种网络优化装置,其特征在于,所述装置包括:A network optimization device, characterized in that the device includes:
    第一位置信息获取模块,用于获取第一智能网关的位置标签作为第一位置信息;The first location information obtaining module is used to obtain the location tag of the first intelligent gateway as the first location information;
    第二位置信息获取模块,用于获取与所述第一智能网关连接的所有子设备各自的位置标签作为第二位置信息,其中,所述第二位置信息的数量为多个;A second location information acquisition module, configured to acquire location tags of all sub-devices connected to the first intelligent gateway as second location information, wherein the number of the second location information is multiple;
    确定模块,用于若在多个第二位置信息中存在与所述第一位置信息不匹配的第二位置信息,则从所述所有子设备中确定待优化子设备;A determining module, configured to determine a sub-device to be optimized from all sub-devices if there is second position information that does not match the first position information among the plurality of second position information;
    迁移模块,用于确定所述待优化子设备对应的第二智能网关,将所述待优化子设备从所述第一智能网关迁移至所述第二智能网关。A migration module, configured to determine a second intelligent gateway corresponding to the sub-device to be optimized, and migrate the sub-device to be optimized from the first intelligent gateway to the second intelligent gateway.
  10. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    一个或多个处理器;one or more processors;
    存储器;memory;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行如权利要求1-8任一项所述的方法。one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs are configured to perform The method according to any one of claims 1-8.
PCT/CN2022/105945 2021-08-23 2022-07-15 Network optimization method and apparatus, and electronic device WO2023024752A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110968378.0A CN113691935A (en) 2021-08-23 2021-08-23 Network optimization method and device and electronic equipment
CN202110968378.0 2021-08-23

Publications (1)

Publication Number Publication Date
WO2023024752A1 true WO2023024752A1 (en) 2023-03-02

Family

ID=78581445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/105945 WO2023024752A1 (en) 2021-08-23 2022-07-15 Network optimization method and apparatus, and electronic device

Country Status (2)

Country Link
CN (1) CN113691935A (en)
WO (1) WO2023024752A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113691935A (en) * 2021-08-23 2021-11-23 深圳市欧瑞博科技股份有限公司 Network optimization method and device and electronic equipment
CN114827199A (en) * 2022-04-08 2022-07-29 深圳市欧瑞博科技股份有限公司 Device migration method and device, computer device and storage medium
CN115460073A (en) * 2022-06-28 2022-12-09 杭州涂鸦信息技术有限公司 Equipment configuration method, device, equipment deployment system and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047982A (en) * 2006-04-02 2007-10-03 华为技术有限公司 Method of gateway transport
CN102238704A (en) * 2010-05-05 2011-11-09 中国移动通信集团公司 Method and device for selecting local gateway for user equipment (UE) in wireless network
EP2552134A1 (en) * 2011-07-29 2013-01-30 Research In Motion Limited System and method for detemining a location for a device in a communication network
US20170041916A1 (en) * 2015-08-06 2017-02-09 Nokia Technologies Oy Position Information Based Access To A Shared Radio Access Channel
CN109240111A (en) * 2018-10-15 2019-01-18 深圳市欧瑞博科技有限公司 Intelligent home furnishing control method, device, system and intelligent gateway
CN110677272A (en) * 2019-08-18 2020-01-10 朗德万斯公司 Method and system for forming a network of devices
CN110944363A (en) * 2018-09-21 2020-03-31 华为技术有限公司 Gateway switching method, gateway reselection method and communication device
CN113691935A (en) * 2021-08-23 2021-11-23 深圳市欧瑞博科技股份有限公司 Network optimization method and device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11336562B2 (en) * 2019-08-06 2022-05-17 Hughes Network Systems, Llc System and method for generic diversity gateway switching for a satellite communication system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047982A (en) * 2006-04-02 2007-10-03 华为技术有限公司 Method of gateway transport
CN102238704A (en) * 2010-05-05 2011-11-09 中国移动通信集团公司 Method and device for selecting local gateway for user equipment (UE) in wireless network
EP2552134A1 (en) * 2011-07-29 2013-01-30 Research In Motion Limited System and method for detemining a location for a device in a communication network
US20170041916A1 (en) * 2015-08-06 2017-02-09 Nokia Technologies Oy Position Information Based Access To A Shared Radio Access Channel
CN110944363A (en) * 2018-09-21 2020-03-31 华为技术有限公司 Gateway switching method, gateway reselection method and communication device
CN109240111A (en) * 2018-10-15 2019-01-18 深圳市欧瑞博科技有限公司 Intelligent home furnishing control method, device, system and intelligent gateway
CN110677272A (en) * 2019-08-18 2020-01-10 朗德万斯公司 Method and system for forming a network of devices
CN113691935A (en) * 2021-08-23 2021-11-23 深圳市欧瑞博科技股份有限公司 Network optimization method and device and electronic equipment

Also Published As

Publication number Publication date
CN113691935A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
WO2023024752A1 (en) Network optimization method and apparatus, and electronic device
WO2020223854A1 (en) Device network configuration method and apparatus, electronic device and storage medium
US20110314163A1 (en) Wireless communication network for smart appliances
CN109150568A (en) A kind of network management, device, system, equipment and storage medium
CN113572799B (en) Method and device for accessing equipment to control platform and server
CN112015095A (en) Networking configuration method and device of intelligent equipment, server and storage medium
CN109617963B (en) Equipment control method and device and Internet of things system
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
CN107113892A (en) A kind of method and device of gateway device automatic network-building
CN114422285B (en) Configuration method based on multi-manufacturer fusion scene of intelligent home client
CN115486038B (en) Internet of things configuration method, internet of things configuration device, computer equipment and storage medium
CN111913402A (en) Smart home batch configuration method, device and system and electronic equipment
CN111372222A (en) Device connection method and system, corresponding terminal device and server
CN111769967A (en) Intelligent configuration method and device for intercom equipment, server, terminal equipment and storage medium
CN114125005A (en) Data processing method and device based on intelligent building system
WO2023202678A1 (en) Device control method and apparatus, electronic device, and storage medium
WO2024016539A1 (en) Device control method and apparatus, and storage medium and electronic apparatus
WO2023273810A1 (en) Network provisioning configuration method and apparatus
CN115903536A (en) Intelligent household appliance control system based on Internet of things
CN115016302A (en) Device control method, device and storage medium
CN107807619A (en) Intelligent home control system and its method of work based on virtual server module
CN104296308B (en) The reminding method of multi-connected machine light running, prompt system and multi-online air-conditioning system
US20160192241A1 (en) Establishing method for self-organization network of wireless nodes
JP2023529775A (en) DEVICE CONTROL METHOD, DEVICE, GATEWAY DEVICE AND STORAGE MEDIUM IN INTERNET OF THINGS
CN117201551B (en) Building information processing method based on Internet of things

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22860098

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE