Network control method and device, electronic equipment and storage medium

By determining the resource occupation of sub-device in the home device network and allocating services, the problem of performance bottleneck of home hosts is solved and the resource utilization and stability of the home device network is improved.

CN119892542AInactive Publication Date: 2025-04-25GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411905138.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Home hosts are prone to performance bottlenecks when processing large amounts of computing and data traffic, especially when there are many devices, which may lead to performance degradation or even downtime, affecting the stability of the entire home device network.

Method used

The resource occupancy of sub-devices is determined in the home device network through the home host, and the services are allocated to the sub-device according to the resource occupancy and needs to be achieved to achieve dynamic and reasonable allocation of resources.

Benefits of technology

The dynamic and reasonable allocation of home equipment network resources is realized, avoiding the impact of the network control performance of the home host due to excessive processing volume, and improving resource utilization and network stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892542A_ABST
    Figure CN119892542A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a network control method and device, electronic equipment and a storage medium, and the method comprises the steps: determining a home host and sub-equipment which are bound in a home equipment network in response to a home equipment networking operation; then determining the resource occupation condition of the sub-equipment in the home equipment network through the home host, and determining the service needing to be processed by the home host and the resource occupation demand of the service; therefore, the home host distributes the service to the sub-equipment according to the resource occupation condition and the resource occupation demand. According to the invention, dynamic and reasonable distribution of network resources of the home equipment is realized, influence on network control performance of the home equipment due to overlarge processing capacity of the home host is avoided, the resource utilization rate of the network of the home equipment is improved, and the stability of the network of the home equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network control technology, and in particular to a network control method and device, electronic equipment, and storage medium. Background Art

[0002] With the popularization of smart home devices, the number of devices in the home device network is increasing, including home hosts, smart appliances, sensors, and mobile terminals, etc. These devices form a unified home device network through the home host, relying on the home host to complete the collaborative operation between devices.

[0003] As the core of network control, the home host can achieve efficient collaboration between devices, but it needs to process a large amount of calculations and data traffic, which can easily cause performance bottlenecks, especially when there are a large number of devices. In serious cases, such as when the CPU or memory usage of the home host is too high, it can easily lead to performance degradation or even downtime of the home host, affecting the stability of the entire home device network. Summary of the invention

[0004] In view of the above problems, a network control method and device, electronic device, and storage medium are proposed to overcome the above problems or at least partially solve the above problems, including:

[0005] A network control method, the method comprising:

[0006] In response to the home device networking operation, determining the bound home host and sub-device in the home device network;

[0007] Determining the resource occupancy of the sub-device in the home device network through the home host, and determining the service to be processed by the home host and the resource occupancy requirement of the service;

[0008] The home host allocates the service to the sub-device according to the resource occupancy situation and the resource occupancy requirement.

[0009] Optionally, allocating the service to the sub-device according to the resource occupancy status and the resource occupancy requirement by the home host includes:

[0010] Comparing the resource occupancy situation with the resource occupancy requirement through the home host, and determining a target service that can be processed by the sub-device in the service according to the comparison result;

[0011] The home host determines a first target sub-device that can process the target service among the sub-devices according to the resource occupation requirement of the target service, and allocates the target service to the first target sub-device.

[0012] Optionally, the method further includes:

[0013] The home host determines the allocated services in the downed sub-device in response to the downtime of any of the sub-devices, and allocates the allocated services to other sub-devices among the sub-devices except the downed sub-device.

[0014] Optionally, the method further includes:

[0015] In response to the downtime of the home host, a second target sub-device is determined in the sub-devices, and a temporary home device network is constructed through the second target sub-device under the condition that the second target sub-device is used as a temporary home host.

[0016] Optionally, the method further includes:

[0017] In response to insufficient memory of any of the sub-devices, the home host initiates memory subsidy to the sub-device with insufficient memory through the home host and / or other sub-devices among the sub-devices except the sub-device with insufficient memory.

[0018] Optionally, the method further includes:

[0019] Saving temporary data in the temporary home device network by the second target sub-device during the downtime of the home host;

[0020] When the downtime home host resumes normal operation, the temporary data is sent to the home host through the second target sub-device.

[0021] Optionally, the method further includes:

[0022] An alarm reminder message is sent to the user through a related application in the temporary home device network.

[0023] Optionally, determining the resource occupancy of the sub-device in the home device network by the home host includes:

[0024] The home host determines the CPU occupancy and memory occupancy of the sub-device in the home device network, and determines the resource occupancy of the sub-device based on the CPU occupancy and memory occupancy.

[0025] Optionally, the determining of the service to be processed by the home host and the resource occupation requirement of the service includes:

[0026] The services to be processed by the home host and the CPU occupancy requirements and memory occupancy requirements of the services are determined, and the resource occupancy requirements of the services are determined according to the CPU occupancy requirements and the memory occupancy requirements.

[0027] A network control device, comprising:

[0028] A bound device determination module, for determining bound home hosts and sub-devices in a home device network in response to a home device networking operation;

[0029] A resource occupancy determination module, used to determine the resource occupancy of the sub-device in the home device network through the home host, and determine the service to be processed by the home host and the resource occupancy requirement of the service;

[0030] A service allocation module is used to allocate the service to the sub-device through the home host according to the resource occupancy situation and the resource occupancy requirement.

[0031] Optionally, the service allocation module includes:

[0032] a target service determination submodule, configured to compare the resource occupancy situation with the resource occupancy requirement through the home host, and determine a target service that can be processed by the sub-device in the service according to the comparison result;

[0033] The target service allocation submodule is used to determine, through the home host, a first target sub-device that can process the target service among the sub-devices according to the resource occupation requirement of the target service, and allocate the target service to the first target sub-device.

[0034] Optionally, the device further comprises:

[0035] The sub-device downtime response module is used to respond to the downtime of any of the sub-devices through the home host, determine the allocated services in the downed sub-device, and allocate the allocated services to other sub-devices in the sub-devices except the downed sub-device.

[0036] Optionally, the device further comprises:

[0037] The home host downtime response module is used to respond to the downtime of the home host, determine a second target sub-device in the sub-device, and build a temporary home device network through the second target sub-device under the condition that the second target sub-device is used as a temporary home host.

[0038] Optionally, the device further comprises:

[0039] The insufficient memory response module is used to respond to the insufficient memory situation of any of the sub-devices through the home host and / or other sub-devices among the sub-devices except the insufficient memory sub-device to initiate memory subsidies to the insufficient memory sub-device through the home host and / or other sub-devices among the sub-devices except the insufficient memory sub-device.

[0040] Optionally, the device further comprises:

[0041] A temporary data storage module, used for saving temporary data in the temporary home device network through the second target sub-device during the downtime of the home host;

[0042] The temporary data sending module is used to send the temporary data to the home host through the second target sub-device when the home host that has been down resumes normal operation.

[0043] Optionally, the device further comprises:

[0044] The alarm reminder module is used to send alarm reminder information to the user through the relevant application program in the temporary home device network.

[0045] Optionally, the resource occupancy determination module includes:

[0046] The resource occupancy determination submodule is used to determine the CPU occupancy and memory occupancy of the sub-device in the home device network through the home host, and determine the resource occupancy of the sub-device based on the CPU occupancy and memory occupancy.

[0047] Optionally, the resource occupancy determination module includes:

[0048] The resource occupancy requirement determination submodule is used to determine the service to be processed by the home host and the CPU occupancy requirement and memory occupancy requirement of the service, and determine the resource occupancy requirement of the service according to the CPU occupancy requirement and the memory occupancy requirement.

[0049] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the network control method as described above when executed by the processor.

[0050] A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the network control method as described above is implemented.

[0051] A computer program product includes a computer program, and when the computer program is executed by a processor, the network control method described above is implemented.

[0052] The embodiments of the present invention have the following advantages:

[0053] The present invention provides a network control method, which determines the bound home host and sub-device in the home device network by responding to the home device networking operation; then determines the resource occupancy of the sub-device in the home device network through the home host, and determines the service to be processed by the home host and the resource occupancy demand of the service; thereby, the home host allocates the service to the sub-device according to the resource occupancy and resource occupancy demand. The dynamic and reasonable allocation of home device network resources is realized, the home host is prevented from affecting the home device network control performance due to excessive processing volume, the resource utilization rate of the home device network is improved, and the stability of the home device network is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0055] Figure 1 is a flowchart of the steps of a network control method provided by some embodiments of the present invention;

[0056] Figure 2 It is a schematic diagram of the overall execution flow of the service allocation of the present invention provided by some embodiments of the present invention;

[0057] Figure 3 It is a schematic diagram of a process for coping with a home host downtime situation provided by some embodiments of the present invention;

[0058] Figure 4 is a flowchart of another network control method provided by some embodiments of the present invention;

[0059] Figure 5 is a flowchart of another network control method provided by some embodiments of the present invention;

[0060] Figure 6 is a flowchart of another network control method provided by some embodiments of the present invention;

[0061] Figure 7 It is a structural schematic diagram of a network control device provided by some embodiments of the present invention. DETAILED DESCRIPTION

[0062] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with basically the same functions and effects. This is only for the purpose of clearly describing the technical solutions of the embodiments of the present application, and shall not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.

[0064] In the embodiments of the present application, the terms "upper", "lower", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0065] With the popularization of smart home devices, the number of devices in the home device network is increasing, including home hosts, smart appliances, sensors, and mobile terminals, etc. These devices form a unified home device network through the home host, relying on the home host to complete the collaborative operation between devices.

[0066] As the core of network control, the home host can achieve efficient collaboration between devices, but it needs to process a large amount of calculations and data traffic, which can easily cause performance bottlenecks, especially when there are a large number of devices. In serious cases, such as when the CPU or memory usage of the home host is too high, it can easily lead to performance degradation or even downtime of the home host, affecting the stability of the entire home device network.

[0067] In order to solve the above problems, the present invention improves the network control method in the related art based on the core technical concept of dynamically and reasonably allocating network resources of home appliances. The present invention will be described in detail below with reference to the accompanying drawings:

[0068] Reference Figure 1 , shows a flowchart of a network control method provided by some embodiments of the present invention, which may specifically include the following steps:

[0069] Step 101, in response to a home device networking operation, determining a bound home host and sub-device in a home device network;

[0070] In the specific implementation, Figure 2As shown, when the home device is networked, the home host and the sub-device are generally bound. Therefore, after the home device is networked, the bound home host and the sub-device can be determined in the home device network to facilitate the subsequent resource allocation process.

[0071] Step 102, determining the resource occupancy of the sub-device in the home device network through the home host, and determining the service to be processed by the home host and the resource occupancy requirement of the service;

[0072] In the specific implementation, Figure 2 As shown, the home host can obtain the CPU resource occupancy rate and memory usage reported by the sub-device, so as to determine the resource occupancy of the sub-device based on this; and can further determine the services that the home host needs to process and the resource occupancy requirements of the services, such as the memory resources and other resource occupancy requirements required by these services, so as to determine in the subsequent process whether the services that the home host needs to process can be allocated to the sub-device for processing.

[0073] In some embodiments of the present invention, determining the resource occupancy of the sub-device in the home device network by the home host includes:

[0074] The home host determines the CPU occupancy and memory occupancy of the sub-device in the home device network, and determines the resource occupancy of the sub-device based on the CPU occupancy and memory occupancy.

[0075] In actual applications, the CPU resource occupancy rate (CPU occupancy) and memory usage (memory occupancy) reported by the sub-device can be obtained through the home host, so as to determine the overall resource occupancy of the sub-device.

[0076] In some embodiments of the present invention, the determining of the service to be processed by the home host and the resource occupation requirement of the service includes:

[0077] The services to be processed by the home host and the CPU occupancy requirements and memory occupancy requirements of the services are determined, and the resource occupancy requirements of the services are determined according to the CPU occupancy requirements and the memory occupancy requirements.

[0078] In actual applications, for the services that the home host needs to process, the CPU usage and memory usage requirements of these services can also be determined, and the overall resource usage requirements of these services can be determined accordingly, so as to facilitate subsequent comparison of the same dimensions to confirm whether these services can be assigned to sub-devices for processing.

[0079] Step 103: Allocate the service to the sub-device through the home host according to the resource occupancy status and the resource occupancy requirement.

[0080] In a specific implementation, after determining the resource usage of the sub-device, the services that the home host needs to process, and the resource usage requirements of the services, the home host can compare the resource usage with the resource usage requirements, and determine the target service that can be processed by the sub-device in the service based on the comparison result; then, the home host can determine the first target sub-device that can process the target service in the sub-device based on the resource usage requirements of the target service, and allocate the target service to the first target sub-device.

[0081] In one example, taking memory resources as an example, if the memory resources required for the home host to implement the corresponding service of controlling the sub-device are 20M, it can be determined among all the sub-devices whether there is a sub-device with available memory space greater than 20M. If there is a sub-device with available memory space greater than 20M, then the service is the target service that can be processed by the sub-device; further, a first target sub-device for processing the target service can be randomly or according to preset rules selected from these sub-devices with available memory space greater than 20M, and the target service can be assigned to the first target sub-device for processing, that is, the resources of the home host may not be used, and the control instructions can be sent entirely by this sub-device; thereby reducing the memory usage of the home host and improving the stability of the home device network.

[0082] In some embodiments of the present invention, allocating the service to the sub-device according to the resource occupancy status and the resource occupancy requirement by the home host includes:

[0083] Comparing the resource occupancy situation with the resource occupancy requirement through the home host, and determining a target service that can be processed by the sub-device in the service according to the comparison result;

[0084] The home host determines a first target sub-device that can process the target service among the sub-devices according to the resource occupation requirement of the target service, and allocates the target service to the first target sub-device.

[0085] In actual applications, after determining the resource usage of the sub-device, the services that the home host needs to process, and the resource usage requirements of the services, the home host can compare the resource usage with the resource usage requirements, and determine the target service that can be processed by the sub-device in the service based on the comparison result; then, the home host can determine the first target sub-device that can process the target service in the sub-device based on the resource usage requirements of the target service, and allocate the target service to the first target sub-device.

[0086] In one example, taking memory resources as an example, if the memory resources required for the home host to implement the corresponding service of controlling the sub-device are 20M, it can be determined among all the sub-devices whether there is a sub-device with available memory space greater than 20M. If there is a sub-device with available memory space greater than 20M, then the service is the target service that can be processed by the sub-device; further, a first target sub-device for processing the target service can be randomly or according to preset rules selected from these sub-devices with available memory space greater than 20M, and the target service can be assigned to the first target sub-device for processing, that is, the resources of the home host may not be used, and the control instructions can be sent entirely by this sub-device; thereby reducing the memory usage of the home host and improving the stability of the home device network.

[0087] In some embodiments of the present invention, the method further comprises:

[0088] The home host determines the allocated services in the downed sub-device in response to the downtime of any of the sub-devices, and allocates the allocated services to other sub-devices among the sub-devices except the downed sub-device.

[0089] In a specific implementation, there is generally a heartbeat link between the sub-device managed by the home host and the home host to determine whether the sub-device is disconnected. If the sub-device is completely down, the heartbeat link between the sub-device and the home host will also be disconnected. That is, the home host can detect the abnormality of the downed sub-device, and can further notify the sub-devices other than the downed sub-device to start the service function that was previously running on the downed sub-device, that is, the allocated service can be allocated to the sub-devices other than the downed sub-device, to ensure the stability of the home device network.

[0090] In some embodiments of the present invention, the method further comprises:

[0091] In response to the downtime of the home host, a second target sub-device is determined in the sub-devices, and a temporary home device network is constructed through the second target sub-device under the condition that the second target sub-device is used as a temporary home host.

[0092] In actual applications, all devices in the home device network may have abnormal communication. The home host is the brain of the home device interconnection. If an abnormality occurs, it means that all local controls in the home are invalid. At this time, you can select a temporary device from the sub-devices to reorganize the functions of the home host and form a new brain. After the home host is restored, the temporary server can be deregistered. However, when the home host has network communication abnormalities, other devices generally cannot communicate with the home host. Therefore, the high-performance central control and / or APP directly connected to the host can start its own services and wake up the sub-devices that previously communicated with the host, and re-establish a new temporary server through the sub-devices. At the same time, it can also continuously scan the status of the home host. When the abnormal state of the home host is restored, the local network communication of the home host is restored.

[0093] like Figure 3 As shown, if the home host is down, the sub-device will not be able to be awakened or deployed by the home host. At this time, the sub-device can determine whether the home host is completely down through UBind, heartbeat packets and TCP activity after being disconnected from the home host for a period of time, and can determine the second target sub-device that can carry the core functions of the home host in the sub-device according to the above comparison results. For example, the sub-device with the largest available memory space and / or the lowest CPU occupancy rate can be determined as the second target sub-device; thus, when it is determined that the home host is completely down, the service used by the home host can be enabled through the second target sub-device to build a temporary home device network, maintain local communication, and send an alarm reminder to the customer through the relevant APP in the temporary home device network; for example, when the APP is in the local home host network, if the original service of the home host has been switched to the second target sub-device, then the APP can pop up a corresponding alarm message to notify the user of the abnormal communication of the home host according to the time when the home host is disconnected fed back by the second target sub-device, and can restart the home host to try to restore the network. If the network cannot be restored, the after-sales maintenance phone number and the maintenance platform address and other information can be popped up to the user.

[0094] After the home host resumes normal operation, the network communication status of the home host can be restored. The second target sub-device can save temporary data in the temporary home device network during the downtime of the home host, so that when the downed home host resumes normal operation, the temporary data can be sent to the home host through the second target sub-device for subsequent recovery of the home host data.

[0095] In some embodiments of the present invention, the method further comprises:

[0096] In response to insufficient memory of any of the sub-devices, the home host initiates memory subsidy to the sub-device with insufficient memory through the home host and / or other sub-devices among the sub-devices except the sub-device with insufficient memory.

[0097] In a specific implementation, when any sub-device in a home device network runs out of memory, memory subsidies can be initiated to the sub-device with insufficient memory through the home host and / or other sub-devices except the sub-device with insufficient memory. For example, memory subsidies can be provided based on an internal protocol through distributed memory sharing or dynamic memory allocation to ensure that the sub-device operates normally.

[0098] In some embodiments of the present invention, the method further comprises:

[0099] Saving temporary data in the temporary home device network by the second target sub-device during the downtime of the home host;

[0100] When the downtime home host resumes normal operation, the temporary data is sent to the home host through the second target sub-device.

[0101] In actual applications, if the home host crashes, the sub-device will not be able to be awakened or deployed by the home host. At this time, the sub-device can determine whether the home host has completely crashed through UBind, heartbeat packets and TCP activity after being disconnected from the home host for a period of time, and can determine the second target sub-device that can carry the core functions of the home host in the sub-device according to the above comparison results. For example, the sub-device with the largest available memory space and / or the lowest CPU occupancy rate can be determined as the second target sub-device; thus, when it is determined that the home host is completely down, the service used by the home host can be enabled through the second target sub-device to build a temporary home device network, maintain local communication, and send an alarm reminder to the customer through the relevant APP in the temporary home device network; for example, when the APP is in the local home host network, if the original service of the home host has been switched to the second target sub-device, then the APP can pop up a corresponding alarm message to notify the user of the abnormal communication of the home host according to the time when the home host is disconnected fed back by the second target sub-device, and can restart the home host to try to restore the network. If the network cannot be restored, the after-sales maintenance phone number and maintenance platform address and other information can be popped up to the user.

[0102] After the home host resumes normal operation, the network communication status of the home host can be restored. The second target sub-device can save temporary data in the temporary home device network during the downtime of the home host, so that when the downed home host resumes normal operation, the temporary data can be sent to the home host through the second target sub-device for subsequent recovery of the home host data.

[0103] In some embodiments of the present invention, the method further comprises:

[0104] An alarm reminder message is sent to the user through a related application in the temporary home device network.

[0105] In actual applications, if the home host crashes, the sub-device will not be able to be awakened or deployed by the home host. At this time, the sub-device can determine whether the home host has completely crashed through UBind, heartbeat packets and TCP activity after being disconnected from the home host for a period of time, and can determine the second target sub-device that can carry the core functions of the home host in the sub-device according to the above comparison results. For example, the sub-device with the largest available memory space and / or the lowest CPU occupancy rate can be determined as the second target sub-device; thus, when it is determined that the home host is completely down, the service used by the home host can be enabled through the second target sub-device to build a temporary home device network, maintain local communication, and send an alarm reminder to the customer through the relevant APP in the temporary home device network; for example, when the APP is in the local home host network, if the original service of the home host has been switched to the second target sub-device, then the APP can pop up a corresponding alarm message to notify the user of the abnormal communication of the home host according to the time when the home host is disconnected fed back by the second target sub-device, and can restart the home host to try to restore the network. If the network cannot be restored, the after-sales maintenance phone number and maintenance platform address and other information can be popped up to the user.

[0106] Reference Figure 4 , shows a flowchart of another network control method provided by some embodiments of the present invention, which may specifically include the following steps:

[0107] Step 401, in response to the home device networking operation, determining the bound home host and sub-device in the home device network;

[0108] In the specific implementation, Figure 2 As shown, when the home device is networked, the home host and the sub-device are generally bound. Therefore, after the home device is networked, the bound home host and the sub-device can be determined in the home device network to facilitate the subsequent resource allocation process.

[0109] Step 402, determining the resource occupancy of the sub-device in the home device network through the home host, and determining the service to be processed by the home host and the resource occupancy requirement of the service;

[0110] In the specific implementation, Figure 2As shown, the home host can obtain the CPU resource occupancy rate and memory usage reported by the sub-device, so as to determine the resource occupancy of the sub-device based on this; and can further determine the services that the home host needs to process and the resource occupancy requirements of the services, such as the memory resources and other resource occupancy requirements required by these services, so as to determine in the subsequent process whether the services that the home host needs to process can be allocated to the sub-device for processing.

[0111] Step 403, allocating the service to the sub-device through the home host according to the resource occupancy situation and the resource occupancy requirement;

[0112] In a specific implementation, after determining the resource usage of the sub-device, the services that the home host needs to process, and the resource usage requirements of the services, the home host can compare the resource usage with the resource usage requirements, and determine the target service that can be processed by the sub-device in the service based on the comparison result; then, the home host can determine the first target sub-device that can process the target service in the sub-device based on the resource usage requirements of the target service, and allocate the target service to the first target sub-device.

[0113] In one example, taking memory resources as an example, if the memory resources required for the home host to implement the corresponding service of controlling the sub-device are 20M, it can be determined among all the sub-devices whether there is a sub-device with available memory space greater than 20M. If there is a sub-device with available memory space greater than 20M, then the service is the target service that can be processed by the sub-device; further, a first target sub-device for processing the target service can be randomly or according to preset rules selected from these sub-devices with available memory space greater than 20M, and the target service can be assigned to the first target sub-device for processing, that is, the resources of the home host may not be used, and the control instructions can be sent entirely by this sub-device; thereby reducing the memory usage of the home host and improving the stability of the home device network.

[0114] Step 404: In response to the downtime of any of the sub-devices, the home host determines the allocated services in the downed sub-device and allocates the allocated services to the other sub-devices except the downed sub-device.

[0115] In a specific implementation, there is generally a heartbeat link between the sub-device managed by the home host and the home host to determine whether the sub-device is disconnected. If the sub-device is completely down, the heartbeat link between the sub-device and the home host will also be disconnected. That is, the home host can detect the abnormality of the downed sub-device, and can further notify the sub-devices other than the downed sub-device to start the service function that was previously running on the downed sub-device, that is, the allocated service can be allocated to the sub-devices other than the downed sub-device, to ensure the stability of the home device network.

[0116] Reference Figure 5 , shows a flowchart of another network control method provided by some embodiments of the present invention, which may specifically include the following steps:

[0117] Step 501, in response to the home device networking operation, determining the bound home host and sub-device in the home device network;

[0118] In the specific implementation, Figure 2 As shown, when the home device is networked, the home host and the sub-device are generally bound. Therefore, after the home device is networked, the bound home host and the sub-device can be determined in the home device network to facilitate the subsequent resource allocation process.

[0119] Step 502, determining the resource occupancy of the sub-device in the home device network through the home host, and determining the service to be processed by the home host and the resource occupancy requirement of the service;

[0120] In the specific implementation, Figure 2 As shown, the home host can obtain the CPU resource occupancy rate and memory usage reported by the sub-device, so as to determine the resource occupancy of the sub-device based on this; and can further determine the services that the home host needs to process and the resource occupancy requirements of the services, such as the memory resources and other resource occupancy requirements required by these services, so as to determine in the subsequent process whether the services that the home host needs to process can be allocated to the sub-device for processing.

[0121] Step 503, allocating the service to the sub-device through the home host according to the resource occupancy situation and the resource occupancy requirement;

[0122] In a specific implementation, after determining the resource usage of the sub-device, the services that the home host needs to process, and the resource usage requirements of the services, the home host can compare the resource usage with the resource usage requirements, and determine the target service that can be processed by the sub-device in the service based on the comparison result; then, the home host can determine the first target sub-device that can process the target service in the sub-device based on the resource usage requirements of the target service, and allocate the target service to the first target sub-device.

[0123] In one example, taking memory resources as an example, if the memory resources required for the home host to implement the corresponding service of controlling the sub-device are 20M, it can be determined among all the sub-devices whether there is a sub-device with available memory space greater than 20M. If there is a sub-device with available memory space greater than 20M, then the service is the target service that can be processed by the sub-device; further, a first target sub-device for processing the target service can be randomly or according to preset rules selected from these sub-devices with available memory space greater than 20M, and the target service can be assigned to the first target sub-device for processing, that is, the resources of the home host may not be used, and the control instructions can be sent entirely by this sub-device; thereby reducing the memory usage of the home host and improving the stability of the home device network.

[0124] Step 504, in response to the downtime of the home host, determine a second target sub-device in the sub-devices, and build a temporary home device network through the second target sub-device under the condition that the second target sub-device is used as a temporary home host.

[0125] In practical applications, such as Figure 3 As shown, if the home host is down, the sub-device will not be able to be awakened or deployed by the home host. At this time, the sub-device can determine whether the home host is completely down through UBind, heartbeat packets and TCP activity after being disconnected from the home host for a period of time, and can determine the second target sub-device that can carry the core functions of the home host in the sub-device according to the above comparison results. For example, the sub-device with the largest available memory space and / or the lowest CPU occupancy rate can be determined as the second target sub-device; thus, when it is determined that the home host is completely down, the service used by the home host can be enabled through the second target sub-device to build a temporary home device network, maintain local communication, and send an alarm reminder to the customer through the relevant APP in the temporary home device network; for example, when the APP is in the local home host network, if the original service of the home host has been switched to the second target sub-device, then the APP can pop up a corresponding alarm message to notify the user of the abnormal communication of the home host according to the time when the home host is disconnected fed back by the second target sub-device, and can restart the home host to try to restore the network. If the network cannot be restored, the after-sales maintenance phone number and the maintenance platform address and other information can be popped up to the user.

[0126] After the home host resumes normal operation, the network communication status of the home host can be restored. The second target sub-device can save temporary data in the temporary home device network during the downtime of the home host, so that when the downed home host resumes normal operation, the temporary data can be sent to the home host through the second target sub-device for subsequent recovery of the home host data.

[0127] Reference Figure 6 , shows a flowchart of another network control method provided by some embodiments of the present invention, which may specifically include the following steps:

[0128] Step 601, in response to the home device networking operation, determining the bound home host and sub-device in the home device network;

[0129] In the specific implementation, Figure 2 As shown, when the home device is networked, the home host and the sub-device are generally bound. Therefore, after the home device is networked, the bound home host and the sub-device can be determined in the home device network to facilitate the subsequent resource allocation process.

[0130] Step 602, determining the resource occupancy of the sub-device in the home device network through the home host, and determining the service to be processed by the home host and the resource occupancy requirement of the service;

[0131] In the specific implementation, Figure 2 As shown, the home host can obtain the CPU resource occupancy rate and memory usage reported by the sub-device, so as to determine the resource occupancy of the sub-device based on this; and can further determine the services that the home host needs to process and the resource occupancy requirements of the services, such as the memory resources and other resource occupancy requirements required by these services, so as to determine in the subsequent process whether the services that the home host needs to process can be allocated to the sub-device for processing.

[0132] Step 603, allocating the service to the sub-device through the home host according to the resource occupancy situation and the resource occupancy requirement;

[0133] In a specific implementation, after determining the resource usage of the sub-device, the services that the home host needs to process, and the resource usage requirements of the services, the home host can compare the resource usage with the resource usage requirements, and determine the target service that can be processed by the sub-device in the service based on the comparison result; then, the home host can determine the first target sub-device that can process the target service in the sub-device based on the resource usage requirements of the target service, and allocate the target service to the first target sub-device.

[0134] In one example, taking memory resources as an example, if the memory resources required for the home host to implement the corresponding service of controlling the sub-device are 20M, it can be determined among all the sub-devices whether there is a sub-device with available memory space greater than 20M. If there is a sub-device with available memory space greater than 20M, then the service is the target service that can be processed by the sub-device; further, a first target sub-device for processing the target service can be randomly or according to preset rules selected from these sub-devices with available memory space greater than 20M, and the target service can be assigned to the first target sub-device for processing, that is, the resources of the home host may not be used, and the control instructions can be sent entirely by this sub-device; thereby reducing the memory usage of the home host and improving the stability of the home device network.

[0135] Step 604: In response to the insufficient memory condition of any of the sub-devices, the home host initiates memory subsidy to the insufficient memory sub-device through the home host and / or other sub-devices among the sub-devices except the insufficient memory sub-device.

[0136] In a specific implementation, when any sub-device in a home device network runs out of memory, memory subsidies can be initiated to the sub-device with insufficient memory through the home host and / or other sub-devices except the sub-device with insufficient memory. For example, memory subsidies can be provided based on an internal protocol through distributed memory sharing or dynamic memory allocation to ensure that the sub-device operates normally.

[0137] The embodiment of the present invention provides a network control method, which determines the bound home host and sub-device in the home device network by responding to the home device networking operation; then determines the resource occupancy of the sub-device in the home device network through the home host, and determines the service to be processed by the home host and the resource occupancy demand of the service; thereby, the home host allocates the service to the sub-device according to the resource occupancy and resource occupancy demand. The dynamic and reasonable allocation of home device network resources is realized, the control performance of the home device network is avoided to be affected by the excessive processing volume of the home host, the resource utilization rate of the home device network is improved, and the stability of the home device network is improved.

[0138] Specifically, taking CPU utilization as an example, after the home devices are networked, the home host can compare the CPU utilization of the services it needs to process with that of the other sub-devices, and use high-occupancy services on devices with low CPU utilization, thereby reducing the home host's own CPU resource utilization, thereby greatly enhancing the stability of the device network. Even if the home host has a communication anomaly and causes a crash, other sub-devices can take over the home host's communication work and continue to maintain network operation.

[0139] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0140] Reference Figure 7 , shows a schematic diagram of the structure of a network control device provided by some embodiments of the present invention; applied to a data sending end, it may specifically include the following modules:

[0141] The bound device determination module 701 is used to determine bound home hosts and sub-devices in the home device network in response to the home device networking operation;

[0142] The resource occupation determination module 702 is used to determine the resource occupation of the sub-device in the home device network through the home host, and determine the service to be processed by the home host and the resource occupation requirement of the service;

[0143] The service allocation module 703 is used to allocate the service to the sub-device according to the resource occupancy status and the resource occupancy requirement through the home host.

[0144] In some embodiments of the present invention, the service allocation module 703 includes:

[0145] a target service determination submodule, configured to compare the resource occupancy situation with the resource occupancy requirement through the home host, and determine a target service that can be processed by the sub-device in the service according to the comparison result;

[0146] The target service allocation submodule is used to determine, through the home host, a first target sub-device that can process the target service among the sub-devices according to the resource occupation requirement of the target service, and allocate the target service to the first target sub-device.

[0147] In some embodiments of the present invention, the device further comprises:

[0148] The sub-device downtime response module is used to respond to the downtime of any of the sub-devices through the home host, determine the allocated services in the downed sub-device, and allocate the allocated services to other sub-devices in the sub-devices except the downed sub-device.

[0149] In some embodiments of the present invention, the device further comprises:

[0150] The home host downtime response module is used to respond to the downtime of the home host, determine a second target sub-device in the sub-device, and build a temporary home device network through the second target sub-device under the condition that the second target sub-device is used as a temporary home host.

[0151] In some embodiments of the present invention, the device further comprises:

[0152] The insufficient memory response module is used to respond to the insufficient memory situation of any of the sub-devices through the home host and / or other sub-devices among the sub-devices except the insufficient memory sub-device to initiate memory subsidies to the insufficient memory sub-device through the home host and / or other sub-devices among the sub-devices except the insufficient memory sub-device.

[0153] In some embodiments of the present invention, the device further comprises:

[0154] A temporary data storage module, used for saving temporary data in the temporary home device network through the second target sub-device during the downtime of the home host;

[0155] The temporary data sending module is used to send the temporary data to the home host through the second target sub-device when the home host that has been down resumes normal operation.

[0156] In some embodiments of the present invention, the device further comprises:

[0157] The alarm reminder module is used to send alarm reminder information to the user through the relevant application program in the temporary home device network.

[0158] In some embodiments of the present invention, the resource occupancy determination module 702 includes:

[0159] The resource occupancy determination submodule is used to determine the CPU occupancy and memory occupancy of the sub-device in the home device network through the home host, and determine the resource occupancy of the sub-device based on the CPU occupancy and memory occupancy.

[0160] In some embodiments of the present invention, the resource occupancy determination module 702 includes:

[0161] The resource occupancy requirement determination submodule is used to determine the service to be processed by the home host and the CPU occupancy requirement and memory occupancy requirement of the service, and determine the resource occupancy requirement of the service according to the CPU occupancy requirement and the memory occupancy requirement.

[0162] Some embodiments of the present invention further provide an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program implements the above network control method when executed by the processor.

[0163] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above network control method is implemented.

[0164] Some embodiments of the present invention further provide a computer program product, including a computer program, which implements the above network control method when executed by a processor.

[0165] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0166] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0167] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0168] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable network-controlled terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable network-controlled terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0169] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable network control terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0170] These computer program instructions can also be loaded onto a computer or other programmable network controlled terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0171] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0172] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the above elements.

[0173] The network control method and device, electronic device, and storage medium provided are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A network control method, characterized in that: The method comprises: In response to the home device networking operation, determining the bound home host and sub-device in the home device network; Determining the resource occupancy of the sub-device in the home device network through the home host, and determining the service to be processed by the home host and the resource occupancy requirement of the service; The home host allocates the service to the sub-device according to the resource occupancy situation and the resource occupancy requirement.

2. The method according to claim 1, characterized in that The allocating the service to the sub-device according to the resource occupation situation and the resource occupation requirement by the home host includes: Comparing the resource occupancy situation with the resource occupancy requirement through the home host, and determining a target service that can be processed by the sub-device in the service according to the comparison result; The home host determines a first target sub-device that can process the target service among the sub-devices according to the resource occupation requirement of the target service, and allocates the target service to the first target sub-device.

3. The method according to claim 1, characterized in that The method further comprises: The home host determines the allocated services in the downed sub-device in response to the downtime of any of the sub-devices, and allocates the allocated services to other sub-devices among the sub-devices except the downed sub-device.

4. The method according to claim 1, characterized in that: The method further comprises: In response to the downtime of the home host, a second target sub-device is determined in the sub-devices, and a temporary home device network is constructed through the second target sub-device under the condition that the second target sub-device is used as a temporary home host.

5. The method according to claim 1, characterized in that: The method further comprises: In response to insufficient memory of any of the sub-devices, the home host initiates memory subsidy to the sub-device with insufficient memory through the home host and / or other sub-devices among the sub-devices except the sub-device with insufficient memory.

6. The method according to claim 4, characterized in that The method further comprises: Saving temporary data in the temporary home device network by the second target sub-device during the downtime of the home host; When the downtime home host resumes normal operation, the temporary data is sent to the home host through the second target sub-device.

7. The method according to claim 4, characterized in that The method further comprises: An alarm reminder message is sent to the user through a related application in the temporary home device network.

8. The method according to claim 1, characterized in that: The determining the resource occupancy of the sub-device in the home device network by the home host includes: The home host determines the CPU occupancy and memory occupancy of the sub-device in the home device network, and determines the resource occupancy of the sub-device based on the CPU occupancy and memory occupancy.

9. The method according to claim 1, characterized in that: The determining of the service to be processed by the home host and the resource occupation requirement of the service includes: The services to be processed by the home host and the CPU occupancy requirements and memory occupancy requirements of the services are determined, and the resource occupancy requirements of the services are determined according to the CPU occupancy requirements and the memory occupancy requirements.

10. A network control device, characterized in that: The device comprises: A bound device determination module, for determining bound home hosts and sub-devices in a home device network in response to a home device networking operation; A resource occupancy determination module, used to determine the resource occupancy of the sub-device in the home device network through the home host, and determine the service to be processed by the home host and the resource occupancy requirement of the service; A service allocation module is used to allocate the service to the sub-device through the home host according to the resource occupancy situation and the resource occupancy requirement.

11. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the network control method according to any one of claims 1 to 9 is implemented.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the network control method according to any one of claims 1 to 9 is implemented.

13. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the network control method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Edge side smart home management method and system

    CN114221829A

  • Home computing resource allocation method, device and system

    CN116860445A

  • Family network system and its load distributing method

    CN1848749A

  • Resource map log management system of home resource management architecture and method thereof

    KR1020130068847A