CN115296958B - Distribution method and device of equipment control tasks, storage medium and electronic device - Google Patents

Distribution method and device of equipment control tasks, storage medium and electronic device Download PDF

Info

Publication number
CN115296958B
CN115296958B CN202210742718.2A CN202210742718A CN115296958B CN 115296958 B CN115296958 B CN 115296958B CN 202210742718 A CN202210742718 A CN 202210742718A CN 115296958 B CN115296958 B CN 115296958B
Authority
CN
China
Prior art keywords
target
control
gateway
tasks
gateways
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202210742718.2A
Other languages
Chinese (zh)
Other versions
CN115296958A (en
Inventor
王洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210742718.2A priority Critical patent/CN115296958B/en
Publication of CN115296958A publication Critical patent/CN115296958A/en
Application granted granted Critical
Publication of CN115296958B publication Critical patent/CN115296958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a distribution method, a device, a storage medium and an electronic device of equipment control tasks, which relate to the technical field of intelligent families, wherein the distribution of the equipment control tasks comprises the following steps: acquiring a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area, wherein a plurality of intelligent equipment is deployed in the target area and controlled by the plurality of gateways, and each equipment control task in the plurality of equipment control tasks is used for controlling the target equipment in the plurality of intelligent equipment to reach an equipment state to be adjusted; acquiring target tasks with target number from a plurality of equipment control tasks, wherein the target number is the number of target gateways; and sending the target tasks with the target number to the target gateway corresponding to the target tasks with the target number in the target gateways. The problems of low control efficiency and the like of equipment in the related technology are solved, and the technical effect of improving the control efficiency of the equipment is realized.

Description

Distribution method and device of equipment control tasks, storage medium and electronic device
Technical Field
The application relates to the technical field of smart families, in particular to a distribution method and device of equipment control tasks, a storage medium and an electronic device.
Background
Along with the development of intelligence and the improvement of living standard of people, the use frequency of the intelligent scene is higher and higher, and the demands of users on the intelligent scene are more and more varied. In the prior art, the logic constraint, command compensation, online state and other computing work of all devices in the scene execution process and the response and state report after all devices are controlled are usually intensively born by a scene execution panel (gateway). In addition, the scene execution panel can only control the devices executing the scene one by one, if more devices need to be controlled by the scene execution task, a long time is often required to send control instructions to all the devices to be controlled, and further the devices need a long time to respond, so that the control efficiency of the gateway on the devices is low.
Aiming at the problems of low control efficiency and the like of equipment in the related art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a method and a device for distributing equipment control tasks, a storage medium and an electronic device, so as to at least solve the problems of low equipment control efficiency and the like in the related technology.
According to an embodiment of the present application, there is provided a method for distributing a device control task, including: acquiring a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area, wherein a plurality of intelligent equipment is deployed in the target area and controlled by the plurality of gateways, and each equipment control task in the plurality of equipment control tasks is used for controlling the target equipment in the plurality of intelligent equipment to reach an equipment state to be adjusted;
Acquiring target tasks with target number from the plurality of equipment control tasks, wherein the target number is the number of the target gateways;
and sending the target tasks with the target number to target gateways corresponding to the target tasks with the target number in the target gateways.
Optionally, the acquiring a target number of target tasks from the plurality of device control tasks includes:
creating the target number of target threads;
and mutually exclusive pulling one device control task from a request queue through each target thread in the target number of target threads to serve as the target task, wherein the request queue is used for storing the plurality of device control tasks.
Optionally, before said mutually exclusive pulling of a device control task from a request queue by each of said target number of target threads as said target task, said method further comprises:
creating an initial request queue of first-in first-out;
and pushing a plurality of groups of equipment control tasks with corresponding relations and the identifiers of the target gateways into the initial request queue as a plurality of groups of requests to obtain the request queue.
Optionally, the sending the target number of target tasks to a target gateway corresponding to the target number of target tasks in the plurality of target gateways includes:
Acquiring a target communication address of a target gateway corresponding to each target task;
constructing a target control request carrying each target task;
and sending the target control request to the target communication address.
Optionally, after the sending the target control request to the target communication address, the method further includes:
acquiring a sending state of the target control request, wherein the sending state is used for indicating whether the target control request is successfully sent to the target communication address;
under the condition that the sending state is used for indicating that the target control request is not successfully sent to the target communication address, acquiring candidate gateways from a callable gateway list, wherein the callable gateway list is used for recording the gateways which are currently allowed to be called in the plurality of gateways;
and sending the target control request to the candidate gateway.
Optionally, the sending the target control request to the candidate gateway includes:
closing target threads for sending the target control requests, wherein a target number of target threads comprise target threads for sending the target control requests, and the target number of target threads are used for sending the plurality of device control tasks;
Acquiring candidate threads from other threads except for the target threads used for sending the target control request in the target number of target threads;
and sending the target control request to the candidate gateway through the candidate thread.
Optionally, after the sending the target number of target tasks to the target gateway corresponding to the target number of target tasks in the plurality of target gateways, the method further includes:
acquiring a target execution result of each target task returned by each target gateway;
adding the target execution result to an initial execution result queue until the execution result of each equipment control task is returned to obtain a target execution result queue;
integrating the execution results stored in the target execution result queue to obtain a control result, wherein the control result is used for indicating whether the target equipment reaches the equipment state to be adjusted;
and displaying the control result.
According to another embodiment of the embodiments of the present application, there is also provided a device control task distributing apparatus, including: the first acquisition module is used for acquiring a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area, wherein a plurality of intelligent equipment are deployed in the target area and controlled by the plurality of gateways, and each equipment control task in the plurality of equipment control tasks is used for controlling the target equipment in the plurality of intelligent equipment to reach an equipment state to be adjusted;
The second acquisition module is used for acquiring target tasks with target quantity from the plurality of equipment control tasks, wherein the target quantity is the quantity of the target gateways;
and the first sending module is used for sending the target tasks with the target number to the target gateway corresponding to the target tasks with the target number in the target gateways.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the distribution method of the above-mentioned device control task when running.
According to still another aspect of the embodiments of the present application, there is further provided an electronic apparatus including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the method for distributing the device control task described above through the computer program.
In the embodiment of the application, a plurality of device control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area are acquired, wherein a plurality of intelligent devices are deployed in the target area and controlled by the plurality of gateways, and each device control task in the plurality of device control tasks is used for controlling the target device in the plurality of intelligent devices to reach a device state to be adjusted; acquiring target tasks with target number from a plurality of equipment control tasks, wherein the target number is the number of target gateways; the method comprises the steps of sending target tasks of the target number to target gateways corresponding to the target tasks of the target number in the target gateways, namely under the condition that a plurality of equipment control tasks processed by the target gateways in the plurality of gateways to be deployed in a target area are obtained, obtaining the target tasks of the target number from the equipment control tasks, and sending the target tasks of the target number to the corresponding target gateways in parallel, so that the equipment control tasks of the target number are sent to the target gateways in parallel, the equipment control tasks are prevented from being sent to the corresponding target gateways one by one, time required for sending all the equipment control tasks to the corresponding target gateways is saved, and time required for controlling the whole equipment is further shortened. By adopting the technical scheme, the problems of lower control efficiency and the like of equipment in the related technology are solved, and the technical effect of improving the control efficiency of the equipment is realized.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a method of distributing device control tasks according to an embodiment of the application;
FIG. 2 is a flow chart of a method of distributing device control tasks according to an embodiment of the application;
FIG. 3 is a schematic illustration of the distribution of a device control task in accordance with an embodiment of the present application;
FIG. 4 is a schematic diagram II of the distribution of a device control task according to an embodiment of the present application;
fig. 5 is a block diagram of a device control task distribution apparatus according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for distributing equipment control tasks is provided. The distribution method of the equipment control task is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described distribution method of the device control task may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a method for distributing a device control task is provided and applied to the terminal device, and fig. 2 is a flowchart of a method for distributing a device control task according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
Step S202, a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area are obtained, wherein a plurality of intelligent equipment is deployed in the target area and controlled by the plurality of gateways, and each equipment control task in the plurality of equipment control tasks is used for controlling the target equipment in the plurality of intelligent equipment to reach an equipment state to be adjusted;
step S204, obtaining target tasks with target number from the plurality of equipment control tasks, wherein the target number is the number of the target gateways;
step S206, the target tasks with the target number are sent to the target gateway corresponding to the target tasks with the target number in the target gateways.
Through the steps, under the condition that a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways deployed in a target area are obtained, the target tasks with the target number can be obtained from the plurality of equipment control tasks and are sent to the corresponding target gateways in parallel, so that the equipment control tasks with the target number are sent to the corresponding target gateways in parallel, the equipment control tasks are prevented from being sent to the corresponding target gateways one by one, the time required for sending all the equipment control tasks to the corresponding target gateways is saved, and the time required for controlling the whole equipment of the target is further shortened. By adopting the technical scheme, the problems of lower control efficiency and the like of equipment in the related technology are solved, and the technical effect of improving the control efficiency of the equipment is realized.
In the technical solution provided in step S202, in the case of acquiring the multiple device control tasks processed by multiple target gateways in multiple gateways to be deployed in the target area, it may be indicated that it is desirable to control, by the multiple target gateways, the target devices in multiple intelligent devices deployed in the target area to reach the device state to be adjusted, so as to control the multiple target devices by the multiple target gateways, avoid controlling the multiple target devices by the centralized gateway, and improve the efficiency of the control device while fully utilizing the control resources of each gateway.
Alternatively, in the present embodiment, the target area may include, but is not limited to, a functional area in which a plurality of smart devices are deployed, which is divided in a space of a house or the like, and may include, but is not limited to, an entertainment area, an office area, a cooking area, a sleeping area, and the like. Each target area may have, but is not limited to, a completely different, or partially identical, smart device deployed therein, such as: intelligent devices such as intelligent televisions, intelligent projection devices, intelligent sound boxes and intelligent lamps can be arranged in the entertainment area, and intelligent devices such as intelligent lamps, intelligent computers and intelligent displays can be arranged in the office area.
Alternatively, in the present embodiment, the plurality of intelligent devices deployed in the target area may be controlled by, but not limited to, a plurality of gateways deployed in the target area by way of at least one of WIFI, zigBee (ZigBee technology) gateway, bluetooth gateway, or the like. Each gateway may control one or more smart devices, but is not limited to. The intelligent device may include, but is not limited to, an intelligent television, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent stove, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock and the like, and the like may be controlled by deploying a plurality of gateways in the target area.
Optionally, in this embodiment, each target gateway may, but is not limited to, process one or more device control tasks, which may, but is not limited to, be used to control the target device to reach a device state to be adjusted, which may, but is not limited to, states including an operating temperature to which the device is to be adjusted, an operating mode to which the device is to be adjusted, an operating time of the device in the device state to be adjusted, a device off, and a device on, etc. The control tasks of the plurality of devices are cooperatively processed through the plurality of gateways, that is, the plurality of devices are cooperatively controlled through the plurality of gateways, and the control efficiency of the devices is improved.
In the technical solution provided in step S204, one or more device control tasks may be obtained as a target number of target tasks from a plurality of device control tasks, where the target number of target tasks includes a plurality of device control tasks, the device control tasks consistent with the number of target gateways may be obtained as the target number of target tasks, which avoids obtaining the device control tasks one by one and improves efficiency of obtaining the device control tasks.
Optionally, in this embodiment, the number of the target gateways may be one or more, and may be, but not limited to, in a case that the number of the target gateways is multiple, indicate that there may be multiple target gateways to process, in parallel, the number of device control tasks that is consistent with the target number of the target gateways at this time, so that the target number of target tasks is obtained according to the number of target gateways that are allowed to process the device control tasks in parallel currently, and efficiency of processing the device control tasks is improved.
Alternatively, in this embodiment, it may, but not limited to, acquire one or more device control services from a plurality of device control services as a target number of target tasks until all device control services are acquired as target tasks, and may, but not limited to, in the case where a plurality of device control services are acquired from a plurality of device control services as a target number of target tasks, implement batch acquisition of target tasks from a plurality of device control services, and improve efficiency of acquiring target tasks.
In one exemplary embodiment, a target number of target tasks may be, but are not limited to, obtained by: creating the target number of target threads; and mutually exclusive pulling one device control task from a request queue through each target thread in the target number of target threads to serve as the target task, wherein the request queue is used for storing the plurality of device control tasks.
Optionally, in this embodiment, the number of threads that are the same as the number of target gateways may be created as target threads, and each target thread of the target number of target threads may be started, and each target thread may mutually exclusive pull a device control task from the request queue in parallel as a target task, so that the same device control task is prevented from being pulled by the same target thread, and further, the failure of pulling the device control task is caused, and the success rate of pulling the device control task by each target thread is improved; meanwhile, each thread in the target number of target threads can pull one device control task from the request queue in parallel, so that the time required for pulling the target number of device control tasks is greatly reduced, and the efficiency of pulling the device control tasks is improved.
In one exemplary embodiment, the request queue may be acquired, but is not limited to, by: creating an initial request queue of first-in first-out; and pushing a plurality of groups of equipment control tasks with corresponding relations and the identifiers of the target gateways into the initial request queue as a plurality of groups of requests to obtain the request queue.
Alternatively, in this embodiment, the initial request queue may be created, but not limited to, FIFO (First in First out), and multiple sets of device control tasks with a corresponding relationship and identities of the target gateway (may be, but not limited to, including an ID (identity document, an identification number) of the target gateway, or a name of the target gateway, or an access address of the target gateway, etc.) may be pushed (push) as multiple sets of requests into the initial request queue of the first-in first-out, to obtain the request queue.
In the technical solution provided in step S206, the target number of target tasks may be sent to the target gateway corresponding to the target number of target tasks in the multiple gateways in parallel through each thread in the target number of target threads, which avoids sending the corresponding target tasks to the target gateway corresponding to the target number of target tasks one by one, and improves the efficiency of sending the target tasks to the corresponding target gateways.
In one exemplary embodiment, a target number of target tasks may be sent to a target gateway corresponding to the target number of target tasks, but is not limited to, by: acquiring a target communication address of a target gateway corresponding to each target task; constructing a target control request carrying each target task; and sending the target control request to the target communication address.
Alternatively, in this embodiment, it is possible, but not limited to, acquiring URL (Uniform Resource Locator ) of a target gateway corresponding to each target task, or gateway IP (Internet Protocol Address )) address, or the like, as the target communication address, and it is possible, but not limited to, sending each target control request to the corresponding target communication address by each of a plurality of target threads.
Alternatively, in the present embodiment, it is possible, but not limited to, to construct a control request for controlling a plurality of target devices to reach a device state to be adjusted, or it is possible, but not limited to, to construct a control command corresponding to the realization of the plurality of target devices to reach the device state to be adjusted, and execution logic between the control commands, as a target control request, or the like.
Optionally, in this embodiment, the target control request of each target task may, but is not limited to, carry a callback address that returns an execution result of the target task, and after sending, by each of the multiple target threads, the target control request of the target number to the target communication address of the corresponding target gateway, it is not necessary to wait for each target gateway to complete execution of the corresponding target task, but in a case that the target gateway completes execution of the corresponding target task, return the execution result of the target task to the callback address, so as to implement asynchronous callback.
In one exemplary embodiment, the target control request may be sent to the candidate gateway, but is not limited to, by: acquiring a sending state of the target control request, wherein the sending state is used for indicating whether the target control request is successfully sent to the target communication address; under the condition that the sending state is used for indicating that the target control request is not successfully sent to the target communication address, acquiring candidate gateways from a callable gateway list, wherein the callable gateway list is used for recording the gateways which are currently allowed to be called in the plurality of gateways; and sending the target control request to the candidate gateway.
Alternatively, in this embodiment, the method may, but not limited to, when the number of times of sending the target control request is greater than the number of times threshold (for example, 3 times, 5 times, or 6 times, etc.), and the target control request is not successfully sent to the corresponding target communication address, but may, but not limited to, obtain the candidate gateway from the callable gateway list, and send the target control request to the candidate gateway, thereby avoiding control failure of the target device caused by sending failure of the target control request, and improving probability of successful control of the device.
Optionally, in this embodiment, each gateway of the plurality of gateways may initiate a broadcast message carrying the calling status of the gateway, so that each gateway of the plurality of gateways may know each other whether the other gateway is currently allowed to be called, and may obtain the list of callable gateways by, but is not limited to, the following: acquiring a broadcast message initiated by each gateway in a plurality of gateways, wherein the broadcast message carries the calling state of the corresponding gateway; and recording the call state carried by the record, wherein the call state is used for indicating the gateway corresponding to the broadcast message which is allowed to be called by the corresponding gateway, and obtaining a callable gateway list.
In one exemplary embodiment, the target control request may be sent to the candidate gateway, but is not limited to, by: closing target threads for sending the target control requests, wherein a target number of target threads comprise target threads for sending the target control requests, and the target number of target threads are used for sending the plurality of device control tasks; acquiring candidate threads from other threads except for the target threads used for sending the target control request in the target number of target threads; and sending the target control request to the candidate gateway through the candidate thread.
Alternatively, in this embodiment, but not limited to, in the case that the target control request is not successfully sent to the target communication address, the target thread for sending the target control request is turned off, and the target thread for sending the target control request does not participate in other device control tasks in the subsequent sending request queue, so that sending failure of other device control tasks due to the target thread is avoided.
Alternatively, in this embodiment, but not limited to, in the case that the sending of the target control request fails, the candidate threads may be acquired from other threads except for the target thread used for sending the target control request in the target number of target threads, and the target control request may be sent to the candidate communication address of the candidate gateway by the candidate thread, which achieves that the target control request is sent to the candidate gateway by the candidate thread, and improves the success rate of device control.
In one exemplary embodiment, the control results may be presented, but are not limited to, by: acquiring a target execution result of each target task returned by each target gateway; adding the target execution result to an initial execution result queue until the execution result of each equipment control task is returned to obtain a target execution result queue; integrating the execution results stored in the target execution result queue to obtain a control result, wherein the control result is used for indicating whether the target equipment reaches the equipment state to be adjusted; and displaying the control result.
Optionally, in this embodiment, a first-in first-out initial execution result queue may be created, and the target execution result of each target task returned by each target gateway may be added to the initial result queue, until the execution result of each device control task is added to the initial result queue, so as to obtain the target execution result queue.
Optionally, in this embodiment, the integrated processing of parsing, filtering, summarizing, and the like may be performed on the execution result stored in the target execution result queue to obtain a control result (which may include, but is not limited to, whether the target device is operated in an operation mode to be adjusted, whether the target device is operated in an operation temperature to be adjusted, whether the target device is operated from shutdown to an on state to be adjusted, and the like) that may be used to indicate whether the target device reaches the device state to be adjusted, and the control result may be displayed in a text or visual image or voice manner, and the like.
In order to better understand the process of distributing the device control task, the following description is given with reference to an alternative embodiment, but is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a method for distributing a device control task is provided, and fig. 3 is a schematic diagram of distributing a device control task according to an embodiment of the present application, as shown in fig. 3, mainly including the following steps:
step S302, a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area are obtained;
step S304, creating target threads with the target number consistent with the number of the target gateways;
step S306, mutually exclusive pulling a device control task from a request queue through each target thread in the target number of target threads to serve as a target task, wherein the request queue is used for storing a plurality of device control tasks;
step S308, obtaining a target communication address of a target gateway corresponding to each target task;
step S310, constructing a target control request carrying each target task;
step S312, each target control request is sent to a target communication address through each thread in the target number of target threads;
Step S314, a sending state of the target control request is obtained, wherein the sending state is used for indicating whether the target control request is successfully sent to the target communication address, and step S316 to step S322 are executed under the condition that the sending state is used for indicating that the target control request is not successfully sent to the target communication address; in the case where the transmission state is used to indicate that the target control request is successfully transmitted to the target communication address, steps S306 to S314 are performed; step S316, under the condition that the sending state is used for indicating that the target control request is not successfully sent to the target communication address, a candidate gateway is obtained from a callable gateway list, wherein the callable gateway list is used for recording the gateway which is currently allowed to be called in a plurality of gateways;
step S318, closing target threads for sending target control requests, wherein a target number of target threads comprise target threads for sending target control requests, and the target number of target threads are used for sending a plurality of device control tasks;
step S320, obtaining candidate threads from other threads except for the target threads used for sending the target control request in the target number of target threads;
in step S322, the target control request is sent to the candidate gateway through the candidate thread.
In this embodiment, a method for distributing a device control task is provided, where control over multiple target devices may be achieved by sending multiple device control tasks to be processed to multiple corresponding target gateways, and fig. 4 is a second schematic diagram of distributing a device control task according to an embodiment of the present application, as shown in fig. 4, and mainly includes the following steps:
step S402, a plurality of control sets to be processed (namely a plurality of equipment control tasks) are obtained;
step S404, creating threads (i.e. the target threads) consistent with the number of gateways (i.e. the target gateways) and the target number;
step S406, creating a FIFO request queue (i.e. the initial request queue described above);
step S408, a plurality of groups of equipment control tasks with corresponding relations and the identifiers of target gateways are used as a plurality of groups of requests to be pushed into a FIFO request queue, and the request queue is obtained;
step S410, each thread (namely, each target thread in the target number) is started, and one device control task is mutually exclusive pulled from the request queue to serve as a target task;
step S412, analyzing the URL (i.e. the target communication address) of the gateway corresponding to the target task and initiating an http request (i.e. the target control request is sent to the target communication address);
Step S414, obtaining whether the http request is successfully sent to the corresponding gateway, and may, but is not limited to, performing steps S416 to S422 in the case that the http connection fails (i.e. the above-mentioned target control request is not successfully sent to the target communication address); steps S410 to S414 may be performed, but are not limited to, in the case that the http connection is successful (i.e., the above-described target control request is successfully sent to the target communication address);
step S416, may but not limited to retry transmission 3 times (or 2 times, or 5 times, etc.), if the retry still fails, may but not limited to querying other gateways (i.e. candidate gateways described above) from the available service list (i.e. the callable gateway list described above), and resumpting the request (i.e. the target control request described above) to the end of the request FIFO queue;
step S418, closing the thread corresponding to the sending target control request;
step S420, obtaining candidate threads from other threads except for the target threads used for sending the target control request in the target number of target threads;
step S422, the target control request is sent to the candidate gateway through the candidate thread;
step S424, obtaining the response data (i.e. the execution result) returned by the gateway, pushing the response data to the FIFO result queue (i.e. the execution result queue), and repeating the steps S410 to S414 until all the device control tasks to be processed are sent to the corresponding gateway, and obtaining the execution results returned by all the target gateways;
Step S426, integrating the execution results stored in the FIFO result queue and destroying the thread resources;
step 428, the task execution logic is ended, and the control result is displayed.
In the embodiment of the application, the plurality of devices are controlled by the plurality of gateways together, so that the control efficiency of the devices can be effectively improved. The explanation of the efficiency of device control may be performed with, but not limited to, devices controlled by each of gateway a, gateway B, gateway C, and gateway D (i.e., the above-mentioned plurality of target devices), and the number of devices controlled by each gateway may be, but not limited to, 50 as shown in table 1.
TABLE 1
Gateway (GW) Gateway A Gateway B Gateway C Gateway D
Controlling the number of devices 50 50 50 50
In the prior art, the calculation formula of the response time t1 of the control device through the fixed gateway is as follows:
t1=(t lc +t ls +t ld )*sum l +(t rc +t rs +t rd )*sum r +(t es +t ed )*sum e
wherein t is lc Generating time consuming for device control command calculations, substantially constant; t is t ls Time consuming, substantially constant, control transfer for the local device; t is t ld Controlling other losses for the local device, substantially constant; sum l The number of the local devices is constant; t is t rc Generating time consuming for device control command calculations, substantially constant; t is t rs Time consuming control of remote panel (gateway) devices, often greater than t, is affected by network conditions ls ;t rd Controlling other losses for the remote device, affected by network conditions; sum r The number of the remote devices is constant; t is t es Time consuming control transfer for the retry device; t is t ed Other overheads for retry devices; sum e Retry control of the number of devices;
under ideal conditions, it can be considered that t ld 、t rd 、sum e All 0's then:
t1=(t lc +t ls )*sum l +(t rc +t rs )*sum r
the scene task may be performed by, but is not limited to, 50 devices controlled by gateway a being local control, 150 devices controlled by gateway B, gateway C, and gateway D being remote control, then:
t1=(t lc +t ls )*50+(t rc +t rs ))*150
in this embodiment of the present application, the control performed by each gateway on multiple devices may be, but is not limited to, local control, where the device response time is determined by the service time consuming the longest time consuming the distribution call, and the calculation formula of the device response time t 2:
t2=(t lc +t ls )*sum l +t m +t s
wherein t is m Time consuming for the distributed computing module; t is t s Time consuming reaching a service for remote invocation
The device response time may be, but is not limited to, the gateway a acquiring multiple device control tasks:
t2=(t lc +t ls )*50+t m +t s
time-consuming comparison:
t1=(t lc +t ls )*50+(t rc +t rs ) 150 and t2= (t lc +t ls )*50+t m +t s Comparison, the reduced product is t1= (t rc +t rs ) 150 and t2=t m +t s And (5) comparing. In contrast, t m For fixed data inquiry, data encapsulation, local call and the like, the cost is slightly larger than t rc ;t s For one-time transmission of control command set to target panel (gateway), the using time is slightly longer than t rs Therefore, t2 is far smaller than t1, and the control efficiency of the equipment is greatly improved.
In addition, the mode that a plurality of gateways cooperatively control a plurality of devices is adopted, the number of devices which can be supported by the gateway can be greatly increased, as shown in table 2, compared with the prior art that the number of the whole-house supporting devices is always the same as the number N of single gateway supporting devices, the number of the whole-house supporting devices can be increased to the product of the number of the gateways and the number N of the single gateway supporting devices by adopting the technical scheme that the plurality of gateways cooperatively control a plurality of target devices in the embodiment of the application.
TABLE 2
Scheme for the production of a semiconductor device Gateway support device number Number of supporting devices for whole house
Prior Art Number of single gateway support devices N N
Embodiments of the present application Number of single gateway support devices N Product of number of gateways and N
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
FIG. 5 is a block diagram of a device control task distribution apparatus according to an embodiment of the present application; as shown in fig. 5, includes:
a first obtaining module 502, configured to obtain a plurality of device control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area, where a plurality of intelligent devices are deployed in the target area, the plurality of intelligent devices are controlled by the plurality of gateways, and each device control task in the plurality of device control tasks is configured to control a target device in the plurality of intelligent devices to reach a device state to be adjusted;
a second obtaining module 504, configured to obtain a target number of target tasks from the plurality of device control tasks, where the target number is the number of target gateways;
a first sending module 506, configured to send the target number of target tasks to a target gateway corresponding to the target number of target tasks in the target gateways.
By the embodiment, under the condition that the plurality of equipment control tasks processed by the plurality of target gateways in the plurality of gateways deployed in the target area are acquired, the target number of target tasks can be acquired from the plurality of equipment control tasks and are sent to the corresponding target gateways in parallel, so that the equipment control tasks of the target number are sent to the corresponding target gateways in parallel, the equipment control tasks are prevented from being sent to the corresponding target gateways one by one, the time required for sending all the equipment control tasks to the corresponding target gateways is saved, and the time required for controlling the whole equipment of the target is further shortened. By adopting the technical scheme, the problems of lower control efficiency and the like of equipment in the related technology are solved, and the technical effect of improving the control efficiency of the equipment is realized.
Optionally, the second obtaining module includes:
a creating unit, configured to create the target number of target threads;
and the pulling unit is used for mutually exclusive pulling one device control task from a request queue through each target thread in the target number of target threads to serve as the target task, wherein the request queue is used for storing the plurality of device control tasks.
Optionally, the apparatus further includes:
the creating module is used for creating a first-in first-out initial request queue before each target thread passing through the target number of target threads mutually exclusive pulls one equipment control task from the request queue to serve as the target task;
and the pushing module is used for pushing a plurality of groups of equipment control tasks with corresponding relations and the identifiers of the target gateways into the initial request queue as a plurality of groups of requests to obtain the request queue.
Optionally, the first sending module includes:
the first acquisition unit is used for acquiring a target communication address of a target gateway corresponding to each target task;
the construction unit is used for constructing a target control request carrying each target task;
And the first sending unit is used for sending the target control request to the target communication address.
Optionally, the apparatus further includes:
a third obtaining module, configured to obtain a sending state of the target control request after the target control request is sent to the target communication address, where the sending state is used to indicate whether the target control request is successfully sent to the target communication address;
a fourth obtaining module, configured to obtain, when the sending state is used to indicate that the target control request is not successfully sent to the target communication address, a candidate gateway from a callable gateway list, where the callable gateway list is used to record a gateway that is currently allowed to be invoked in the multiple gateways;
and the second sending module is used for sending the target control request to the candidate gateway.
Optionally, the second sending module includes:
a closing unit, configured to close target threads for sending the target control request, where a target number of target threads includes target threads for sending the target control request, and the target number of target threads is used for sending the plurality of device control tasks;
A second obtaining unit, configured to obtain candidate threads from other threads, except for a target thread for sending the target control request, in the target number of target threads;
and the second sending unit is used for sending the target control request to the candidate gateway through the candidate thread.
Optionally, the apparatus further includes:
a fifth obtaining module, configured to obtain a target execution result of each target task returned by each target gateway after the target tasks of the target number are sent to a target gateway corresponding to the target tasks of the target number in the target gateways;
the adding module is used for adding the target execution result to an initial execution result queue until the execution result of each equipment control task is returned to obtain a target execution result queue;
the integration module is used for integrating the execution results stored in the target execution result queue to obtain a control result, wherein the control result is used for indicating whether the target equipment reaches the equipment state to be adjusted;
and the display module is used for displaying the control result.
Embodiments of the present application also provide a storage medium including a stored program, wherein the program performs the method of any one of the above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, acquiring a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area, wherein a plurality of intelligent equipment is deployed in the target area and controlled by the plurality of gateways, and each equipment control task in the plurality of equipment control tasks is used for controlling the target equipment in the plurality of intelligent equipment to reach an equipment state to be adjusted;
s2, acquiring target tasks with target number from the plurality of equipment control tasks, wherein the target number is the number of the target gateways;
s3, sending the target tasks with the target number to target gateways corresponding to the target tasks with the target number in the target gateways.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area, wherein a plurality of intelligent equipment is deployed in the target area and controlled by the plurality of gateways, and each equipment control task in the plurality of equipment control tasks is used for controlling the target equipment in the plurality of intelligent equipment to reach an equipment state to be adjusted;
s2, acquiring target tasks with target number from the plurality of equipment control tasks, wherein the target number is the number of the target gateways;
s3, sending the target tasks with the target number to target gateways corresponding to the target tasks with the target number in the target gateways.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices and, in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (8)

1. A method for distributing device control tasks, comprising:
Acquiring a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area, wherein a plurality of intelligent equipment is deployed in the target area and controlled by the plurality of gateways, and each equipment control task in the plurality of equipment control tasks is used for controlling the target equipment in the plurality of intelligent equipment to reach an equipment state to be adjusted;
acquiring target tasks with target number from the plurality of equipment control tasks, wherein the target number is the number of the target gateways;
transmitting the target tasks with the target number to a target gateway corresponding to the target tasks with the target number in the target gateways;
the sending the target number of target tasks to a target gateway corresponding to the target number of target tasks in the target gateways includes: acquiring a target communication address of a target gateway corresponding to each target task; constructing a target control request carrying each target task; sending the target control request to the target communication address;
the constructing the target control request carrying each target task comprises the following steps: constructing execution logic between control commands corresponding to the device states to be adjusted for realizing the plurality of target devices as the target control request;
After said sending the target control request to the target communication address, the method further comprises: acquiring a sending state of the target control request, wherein the sending state is used for indicating whether the target control request is successfully sent to the target communication address; under the condition that the sending state is used for indicating that the target control request is not successfully sent to the target communication address, acquiring candidate gateways from a callable gateway list, wherein the callable gateway list is used for recording the gateways which are currently allowed to be called in the plurality of gateways; sending the target control request to the candidate gateway;
before the candidate gateway is obtained from the callable gateway list, the method further includes:
acquiring a broadcast message initiated by each gateway in the plurality of gateways, wherein the broadcast message carries the calling state of the corresponding gateway; and recording the call state carried by the call state to indicate the gateway corresponding to the broadcast message which is allowed to be called by the corresponding gateway, and obtaining the callable gateway list.
2. The method of claim 1, wherein the obtaining a target number of target tasks from the plurality of device control tasks comprises:
Creating the target number of target threads;
and mutually exclusive pulling one device control task from a request queue through each target thread in the target number of target threads to serve as the target task, wherein the request queue is used for storing the plurality of device control tasks.
3. The method of claim 2, wherein prior to said mutually exclusive pulling of a device control task from a request queue as said target task by each of said target number of target threads, said method further comprises:
creating an initial request queue of first-in first-out;
and pushing a plurality of groups of equipment control tasks with corresponding relations and the identifiers of the target gateways into the initial request queue as a plurality of groups of requests to obtain the request queue.
4. The method of claim 1, wherein the sending the target control request to the candidate gateway comprises:
closing target threads for sending the target control requests, wherein a target number of target threads comprise target threads for sending the target control requests, and the target number of target threads are used for sending the plurality of device control tasks;
Acquiring candidate threads from other threads except for the target threads used for sending the target control request in the target number of target threads;
and sending the target control request to the candidate gateway through the candidate thread.
5. The method of claim 1, wherein after the sending the target number of target tasks to a target gateway of the plurality of target gateways that corresponds to the target number of target tasks, the method further comprises:
acquiring a target execution result of each target task returned by each target gateway;
adding the target execution result to an initial execution result queue until the execution result of each equipment control task is returned to obtain a target execution result queue;
integrating the execution results stored in the target execution result queue to obtain a control result, wherein the control result is used for indicating whether the target equipment reaches the equipment state to be adjusted;
and displaying the control result.
6. A device control task distribution apparatus, comprising:
the first acquisition module is used for acquiring a plurality of equipment control tasks processed by a plurality of target gateways in a plurality of gateways to be deployed in a target area, wherein a plurality of intelligent equipment are deployed in the target area and controlled by the plurality of gateways, and each equipment control task in the plurality of equipment control tasks is used for controlling the target equipment in the plurality of intelligent equipment to reach an equipment state to be adjusted;
The second acquisition module is used for acquiring target tasks with target quantity from the plurality of equipment control tasks, wherein the target quantity is the quantity of the target gateways;
the first sending module is used for sending the target tasks with the target number to a target gateway corresponding to the target tasks with the target number in the target gateways;
wherein, the first sending module includes: the first acquisition unit is used for acquiring a target communication address of a target gateway corresponding to each target task; the construction unit is used for constructing a target control request carrying each target task; a first sending unit, configured to send the target control request to the target communication address;
the construction unit is used for constructing the control commands and execution logic between the control commands, which are used for realizing that a plurality of target devices reach the device states to be adjusted, as the target control requests;
the apparatus further comprises: a third obtaining module, configured to obtain a sending state of the target control request after the target control request is sent to the target communication address, where the sending state is used to indicate whether the target control request is successfully sent to the target communication address; a fourth obtaining module, configured to obtain, when the sending state is used to indicate that the target control request is not successfully sent to the target communication address, a candidate gateway from a callable gateway list, where the callable gateway list is used to record a gateway that is currently allowed to be invoked in the multiple gateways; the second sending module is used for sending the target control request to the candidate gateway;
The device is also for: acquiring a broadcast message initiated by each gateway in the plurality of gateways, wherein the broadcast message carries the calling state of the corresponding gateway; and recording the call state carried by the call state to indicate the gateway corresponding to the broadcast message which is allowed to be called by the corresponding gateway, and obtaining the callable gateway list.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 5.
8. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to perform the method of any of claims 1 to 5 by means of the computer program.
CN202210742718.2A 2022-06-28 2022-06-28 Distribution method and device of equipment control tasks, storage medium and electronic device Active CN115296958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210742718.2A CN115296958B (en) 2022-06-28 2022-06-28 Distribution method and device of equipment control tasks, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210742718.2A CN115296958B (en) 2022-06-28 2022-06-28 Distribution method and device of equipment control tasks, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115296958A CN115296958A (en) 2022-11-04
CN115296958B true CN115296958B (en) 2024-03-22

Family

ID=83821201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210742718.2A Active CN115296958B (en) 2022-06-28 2022-06-28 Distribution method and device of equipment control tasks, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115296958B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271167A (en) * 2011-09-09 2011-12-07 刘浩 Agent parallel processing method and structure suitable for distributive communication middleware
US10165427B1 (en) * 2017-06-24 2018-12-25 TruckR, Inc. Remote internet communication with RF network devices
CN109358960A (en) * 2018-11-01 2019-02-19 郑州云海信息技术有限公司 A kind of task distribution method, system, equipment and computer readable storage medium
CN110716796A (en) * 2019-09-02 2020-01-21 中国平安财产保险股份有限公司 Intelligent task scheduling method and device, storage medium and electronic equipment
CN112073398A (en) * 2020-08-27 2020-12-11 北京金山云网络技术有限公司 Message queue processing method, device and system, storage medium and electronic device
CN112099958A (en) * 2020-11-17 2020-12-18 深圳壹账通智能科技有限公司 Distributed multi-task management method and device, computer equipment and storage medium
CN112163468A (en) * 2020-09-11 2021-01-01 浙江大华技术股份有限公司 Image processing method and device based on multiple threads
CN112637318A (en) * 2020-12-17 2021-04-09 哈尔滨工业大学(威海) Intelligent gateway system and device for storage integrity and control method thereof
CN112799789A (en) * 2021-03-22 2021-05-14 腾讯科技(深圳)有限公司 Node cluster management method, device, equipment and storage medium
CN112865990A (en) * 2019-11-26 2021-05-28 杭州萤石软件有限公司 File upgrading method, system and device
CN113093596A (en) * 2021-03-29 2021-07-09 北京金山云网络技术有限公司 Control instruction processing method and device
CN113114753A (en) * 2021-04-07 2021-07-13 北京金山云网络技术有限公司 Equipment control method, device and system, storage medium and electronic device
WO2021169674A1 (en) * 2020-02-28 2021-09-02 京东数字科技控股股份有限公司 Processing method and apparatus for service data
CN114020430A (en) * 2021-11-04 2022-02-08 上海合阔信息技术有限公司 Distributed task scheduling method and device, electronic equipment and storage medium
CN114157613A (en) * 2021-11-11 2022-03-08 珠海格力电器股份有限公司 Data reporting method, gateway, server, electronic device and storage medium
CN114661433A (en) * 2020-12-24 2022-06-24 北京金山云网络技术有限公司 Event task scheduling method and device, storage medium and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140129284A1 (en) * 2012-11-07 2014-05-08 Fmr Llc Real-Time System Processing Capability Determination and Workflow Adaptation for Target Regions in a Customer Information Control System
CN104750543B (en) * 2013-12-26 2018-06-15 杭州华为数字技术有限公司 Thread creation method, service request processing method and relevant device
US10178033B2 (en) * 2017-04-11 2019-01-08 International Business Machines Corporation System and method for efficient traffic shaping and quota enforcement in a cluster environment
CN114518833A (en) * 2020-10-30 2022-05-20 伊姆西Ip控股有限责任公司 Method, electronic device and computer program product for storage management

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102271167A (en) * 2011-09-09 2011-12-07 刘浩 Agent parallel processing method and structure suitable for distributive communication middleware
US10165427B1 (en) * 2017-06-24 2018-12-25 TruckR, Inc. Remote internet communication with RF network devices
CN109358960A (en) * 2018-11-01 2019-02-19 郑州云海信息技术有限公司 A kind of task distribution method, system, equipment and computer readable storage medium
CN110716796A (en) * 2019-09-02 2020-01-21 中国平安财产保险股份有限公司 Intelligent task scheduling method and device, storage medium and electronic equipment
CN112865990A (en) * 2019-11-26 2021-05-28 杭州萤石软件有限公司 File upgrading method, system and device
WO2021169674A1 (en) * 2020-02-28 2021-09-02 京东数字科技控股股份有限公司 Processing method and apparatus for service data
CN112073398A (en) * 2020-08-27 2020-12-11 北京金山云网络技术有限公司 Message queue processing method, device and system, storage medium and electronic device
CN112163468A (en) * 2020-09-11 2021-01-01 浙江大华技术股份有限公司 Image processing method and device based on multiple threads
CN112099958A (en) * 2020-11-17 2020-12-18 深圳壹账通智能科技有限公司 Distributed multi-task management method and device, computer equipment and storage medium
WO2022105531A1 (en) * 2020-11-17 2022-05-27 深圳壹账通智能科技有限公司 Distributed multi-task management method and apparatus, and computer device and storage medium
CN112637318A (en) * 2020-12-17 2021-04-09 哈尔滨工业大学(威海) Intelligent gateway system and device for storage integrity and control method thereof
CN114661433A (en) * 2020-12-24 2022-06-24 北京金山云网络技术有限公司 Event task scheduling method and device, storage medium and electronic equipment
CN112799789A (en) * 2021-03-22 2021-05-14 腾讯科技(深圳)有限公司 Node cluster management method, device, equipment and storage medium
CN113093596A (en) * 2021-03-29 2021-07-09 北京金山云网络技术有限公司 Control instruction processing method and device
CN113114753A (en) * 2021-04-07 2021-07-13 北京金山云网络技术有限公司 Equipment control method, device and system, storage medium and electronic device
CN114020430A (en) * 2021-11-04 2022-02-08 上海合阔信息技术有限公司 Distributed task scheduling method and device, electronic equipment and storage medium
CN114157613A (en) * 2021-11-11 2022-03-08 珠海格力电器股份有限公司 Data reporting method, gateway, server, electronic device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于机器学习的无线Mesh网络路由算法研究;李兆恩;北京邮电大学;9-24 *

Also Published As

Publication number Publication date
CN115296958A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN108683574A (en) A kind of apparatus control method, server and intelligent domestic system
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN111970181B (en) Network distribution method and device for intelligent household equipment, electronic equipment and storage medium
CN115296958B (en) Distribution method and device of equipment control tasks, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115297162B (en) Message sending method and device, storage medium and electronic device
CN116027937A (en) Rendering method and device of component to be edited, storage medium and electronic device
CN115296946B (en) Control request decomposition method and device, storage medium and electronic device
CN115314549B (en) Offline equipment management method, storage medium and electronic device
CN116684374A (en) Gateway message processing method and device, storage medium and electronic device
CN115001885B (en) Equipment control method and device, storage medium and electronic device
CN116743691A (en) Interactive system of gateway message
CN115277412B (en) Edge gateway upgrading method and device, storage medium and electronic device
WO2024016506A1 (en) Gateway device control method and apparatus, and storage medium and electronic apparatus
CN117784631A (en) Method and device for sending scene execution instruction, storage medium and electronic device
CN116760792A (en) Gateway message sending method and device, storage medium and electronic device
CN117857398A (en) Method and device for determining time consumption of service in stages
CN117768256A (en) Equipment control method, device, storage medium and electronic device
CN117707488A (en) Function response method and device, storage medium and electronic device
CN115296945A (en) Method, system and device for controlling equipment, storage medium and electronic device
CN116546055A (en) Service message processing method and device, storage medium and electronic device
CN116450229A (en) Pre-starting method and device of application software, storage medium and electronic device
CN117891490A (en) Method, system, electronic equipment and storage medium for configuring components
CN116389436A (en) Broadcasting method and device of processing result, storage medium and electronic device
CN116389068A (en) Login method and device of application system, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant