CN109753034B - Control method, control device, electronic equipment and storage medium - Google Patents

Control method, control device, electronic equipment and storage medium Download PDF

Info

Publication number
CN109753034B
CN109753034B CN201811504836.XA CN201811504836A CN109753034B CN 109753034 B CN109753034 B CN 109753034B CN 201811504836 A CN201811504836 A CN 201811504836A CN 109753034 B CN109753034 B CN 109753034B
Authority
CN
China
Prior art keywords
control
controlled
equipment
controlled devices
priorities
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
CN201811504836.XA
Other languages
Chinese (zh)
Other versions
CN109753034A (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.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology 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 Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN201811504836.XA priority Critical patent/CN109753034B/en
Publication of CN109753034A publication Critical patent/CN109753034A/en
Application granted granted Critical
Publication of CN109753034B publication Critical patent/CN109753034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the application provides a control method, a control device, electronic equipment and a storage medium. The method comprises the following steps: the instruction end equipment acquires current control indexes of a plurality of controlled equipment, and the control indexes represent the controlled success degree of the controlled equipment; sequencing the control priorities of the controlled equipment according to the control indexes to obtain the control priorities corresponding to the controlled equipment; and sending a corresponding control instruction to the controlled equipment according to the control priority. The method records the historical performance of the controlled equipment within a certain time through the instruction end equipment, performs weight distribution of control priority on the control command of the controlled equipment, and can solve the problem that too many control commands are issued to a plurality of controlled equipment by the instruction end equipment within a short time: the controlled equipment with poor control condition occupies software resources, so that other equipment with normal control condition is influenced, and the control command is not issued timely, and further the user experience can be improved.

Description

Control method, control device, electronic equipment and storage medium
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a control method, an apparatus, an electronic device, and a storage medium.
Background
For device control in the smart home system, the method can be applied to automatic linkage to control the device, and can also be used for controlling the device by using a mobile phone app. Sometimes, some controlled devices may consume software resources of a previous device due to bad communication signals or due to the fact that a power supply is unplugged (where "the previous device" is a relative concept, for example, a gateway issues a control command to a plurality of zigbee devices, the "previous device" is the gateway, a server issues a control command to a plurality of gateways, the "previous device" is the server), and the previous device has a message retransmission mechanism and a timeout waiting mechanism for devices with unstable communication.
Disclosure of Invention
In view of the above, embodiments of the present application provide a control method, an apparatus, an electronic device, and a storage medium to achieve improvement of the above problem.
In a first aspect, an embodiment of the present application provides a control method, which is applied to an instruction side device, and the method includes: the instruction end equipment acquires current control indexes of a plurality of controlled equipment, and the control indexes represent the controlled success degree of the controlled equipment; sequencing the control priorities of the controlled equipment according to the control indexes to obtain the control priorities corresponding to the controlled equipment; and sending a corresponding control instruction to the controlled equipment according to the control priority.
In a second aspect, an embodiment of the present application provides a control apparatus, which runs on a command end device, where the apparatus includes: the control condition acquisition module is used for the instruction end equipment to acquire the current control indexes of the plurality of controlled equipment, and the control indexes represent the controlled success degree of the controlled equipment; the priority ranking module is used for ranking the control priorities of the controlled equipment according to the control indexes to obtain the control priorities corresponding to the controlled equipment; and the control instruction sending module is used for sending the corresponding control instruction to the controlled equipment according to the control priority.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and one or more processors: one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of the first aspect described above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having program code stored therein, where the program code executes to perform the above-mentioned method.
Compared with the prior art, the control method, the control device, the electronic equipment and the storage medium provided by the embodiment of the application obtain the current control indexes of the plurality of controlled equipment through the instruction end equipment, and the control indexes represent the controlled success degree of the controlled equipment; sequencing the control priorities of the controlled equipment according to the control indexes to obtain the control priorities corresponding to the controlled equipment; and sending a corresponding control instruction to the controlled equipment according to the control priority. In the method, in the process of controlling the controlled devices, the mode of sending the control commands to the controlled devices based on the priorities of the controlled devices solves the problem that too many control commands are sent to the controlled devices by the upper-level device in a short time: the controlled equipment with poor control condition occupies software resources, so that other equipment with normal control condition is influenced, and the control command is not issued timely, and further the user experience can be improved.
In order to make the aforementioned and other objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of an application environment provided by an embodiment of the present application.
Fig. 2 shows a flowchart of a control method provided in an embodiment of the present application.
Fig. 3 shows a block diagram of a control device according to an embodiment of the present application.
Fig. 4 shows a block diagram of an electronic device according to an embodiment of the present application.
Fig. 5 illustrates a storage unit for storing or carrying program codes for implementing a control method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
With the rapid development of the internet, the smart home system is more and more deep into the life of people. The smart home systems have a large number of devices, and for device control in the smart home systems, automatic linkage is generally adopted to control the devices, for example, the devices are controlled through a gateway connected with the devices; furthermore, the device may also be controlled by a mobile terminal (e.g. a handset APP). However, some controlled devices often consume software resources of the previous device due to poor communication signals or power being unplugged. The upper-level device is a relative concept, for example, the gateway issues a control command to a plurality of zigbee devices, and then the "upper-level device" is the gateway; the server sends control commands to a plurality of gateways, and the 'upper-level equipment' is the server. Optionally, the upper-level device may have mechanisms such as packet retransmission or timeout waiting for the controlled device with unstable communication, and if the number of the controlled devices at the same time is large, the processing procedure may generate resource contention for the other controlled devices with normal communication.
Therefore, the inventor finds that a controlled device with unstable communication has a mechanism such as message retransmission or timeout waiting for a previous-stage device, so that the controlled device with poor communication condition affects the controlled device with normal communication and brings inconvenience to a user. The problem that too many control commands are issued to a plurality of controlled devices by the upper-level device in a short time is solved: the controlled equipment with poor control condition occupies software resources, so that other equipment with normal control condition is influenced, and the control command is not issued timely, and further the user experience can be improved.
For the convenience of describing the scheme of the present application in detail, the following description will first describe an application environment in the embodiments of the present application with reference to the drawings.
As shown in fig. 1, a network system 10 according to an embodiment of the present application is provided, where the network system 10 includes: mobile terminal 11, server 12, gateway 13, controlled device 14, and router 15. The mobile terminal 11 may be any device with communication and storage functions, such as: the smart phone, the desktop computer, the notebook computer, the tablet computer or other smart communication devices with network connection functions. The server 12 may be a network access server, a database server, a cloud server, or the like. Optionally, the gateway 13 is built based on a ZigBee protocol, and the controlled device 14 may be a device added to the gateway 13 in advance, for example, the device may be a device in a suite to which the gateway belongs when the gateway leaves a factory; or a device subsequently connected to the gateway 13 by a user operation. The controlled device 14 may be an entity intelligent device, such as an electric meter, a door sensor, a body sensor, a door and window sensor, a temperature and humidity sensor, a water sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, an intelligent socket, a wireless switch, a wireless wall-mounted switch, a magic cube controller, a curtain motor, a multifunctional gateway, an air conditioner partner, a camera, or a virtual sensor device, such as a virtual body sensor device, or an infrared transmitting device or a camera device, and is not limited herein.
Optionally, a client capable of managing the smart home device is installed in the mobile terminal 11, where the client may be an application client (such as a mobile phone APP) or a web page client, and is not limited herein.
Alternatively, one or more controlled devices 14 may establish a network connection with the gateway 13 based on the ZigBee protocol, thereby joining the ZigBee network. Both the gateway 13 and the mobile terminal 11 may be connected to a router 15, and may be connected to the ethernet via the router 15, and the router 15 may be connected to the server 12 via 2G/3G/4G/5G, WIFI, etc. For example, the gateway 13 and the mobile terminal 11 may store the acquired information in the server 12. Optionally, the mobile terminal 11 may also establish a network connection with the server 12 through 2G/3G/4G/5G, WIFI, so as to obtain data sent by the server 12.
Alternatively, the local area network path as shown in fig. 1 indicates that the mobile terminal 11 is in the same local area network as the router 15 and the gateway 13, and the wide area network path indicates that the mobile terminal 11 is in the same local area network as the router 15 and the gateway 13. Wherein, when the mobile terminal 11 is in the same local area network as the router 15 and the gateway 13, the mobile terminal 11 can interact with the gateway 13 and the controlled device 14 connected to the gateway 13 through the local area network path as shown in fig. 1; it is also possible to interact with the gateway 13 and the controlled device 14 connected to the gateway 13 through a wide area network path as shown in fig. 1. When the mobile terminal 11 is not in the same local area network as the router 15 and the gateway 13, the mobile terminal 11 may interact with the gateway 13 and the controlled device 14 connected to the gateway 13 through a wide area network path as shown in fig. 1.
It should be noted that, in the embodiment of the present application, the instruction end device may be the mobile terminal 11 or the gateway 13. As one mode, the command end device may send a control command to the controlled device 14, so as to control the controlled device to operate normally. In one implementation, when the instruction end device is the mobile terminal 11, the mobile terminal 11 sends a control instruction to the controlled device 14, and performs data interaction with the controlled device 14. In another implementation, if the command end device is the gateway 13, the gateway 13 sends a control command to the controlled device 14, and performs data interaction with the controlled device 14.
It should be noted that, in the embodiment of the present application, the instruction end device 11 may send a control instruction to the controlled device 14, so as to control the controlled device to normally operate.
Optionally, when a certain controlled device moves from one location to another location, a power supply of the controlled device is removed, or a network signal changes suddenly, a communication signal and communication quality of the controlled device are affected, so that the communication signal of the controlled device is unstable, and the controlled device cannot respond to the control command sent by the instruction end device in time, and the instruction end device has mechanisms such as message retransmission, timeout waiting, and the like for the controlled device with unstable communication signal or a longer communication distance. In this case, if the number of the controlled devices at the same time is large, the above mechanism may affect other controlled devices with normal communication signals, for example, the network signal resource is preempted, so that the control instruction of the instruction side device to the related controlled device is not issued in time, and the like.
Therefore, an embodiment of the present application provides a control method, where historical performance of a controlled device in a certain time is recorded by an instruction end device, where the historical performance includes a success rate at which the controlled device is controlled and/or a communication condition between the controlled device and the instruction end device, and then a control command of the controlled device is subjected to weight distribution of control priority according to the controlled success rate and/or the communication condition of the controlled device. The control priority of the controlled devices can be sequenced by the instruction end device, the control priority corresponding to the controlled devices is obtained, and then the instruction end device can send corresponding control instructions to the controlled devices according to the control priority.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a flowchart of a control method according to an embodiment of the present application is shown, where the control method is applied to a command end device, and the control method includes:
step S110, the instruction end equipment obtains current control indexes of a plurality of controlled equipment, and the control indexes represent the controlled success degree of the controlled equipment.
The command end device represents a device used for sending a control command to the home devices in an automation scene of the intelligent home system, and the controlled device represents a home device used for executing the control command sent by the command end device in the automation scene of the intelligent home system. As one way, the instruction side device may use a scene selected from a plurality of pre-configured scenes as a target scene, and then use a plurality of devices corresponding to the target scene as controlled devices. The selection of the scene from the plurality of pre-configured scenes may be triggered manually by the user, or may be triggered based on the detection of an event by the command end device.
In one mode, a scene of 'door and window open and automatic light on' can be used as a target scene, then, the door and window open is used as a trigger condition of the target scene, the intelligent switch is triggered to control the bulb to light on, the intelligent switch is equivalent to an instruction end device, when the door and window are opened, the intelligent switch can sense a trigger signal of a door and window sensor and send an opening instruction to the bulb, therefore, the bulb is a controlled device, and a plurality of bulbs can be arranged in a room, so that only the controlled device controlled by the instruction end device belongs to the controlled device, and therefore, the number of the bulbs can be multiple.
As one mode, the control index may include a success probability of the controlled device responding to the control of the command end device. Optionally, the success probability represents a ratio of success times of the controlled device controlled by the command end device to the total control times. As an implementation manner, after the instruction side device sends the control instruction to the controlled device, the control instruction is temporarily cached, and after the controlled device receives and executes the control instruction, the controlled device sends a completion signal to the instruction side device. Optionally, if the instruction side device receives the completion signal, the control of this time is recorded as successful, and if the instruction side device does not receive the completion signal after retransmission and timeout waiting, the control of this time is recorded as unsuccessful.
As another implementation, if the controlled device can respond to the control command quickly after the instruction side device sends the control command to the controlled device (for example, the controlled device can respond to the control command within 1 second and return a task execution completion signal), then the control command of this time can be recorded as successful control, and then, after the instruction side device sends the control command to all corresponding controlled devices, the ratio of the number of successful controls to the total number of controls is the success probability. The total control times may be the number of times that the instruction end device sends the control instruction to the controlled device within a statistical preset time period, or may also adopt preset control times (for example, 1000 times is taken as the total control times).
As another way, the control index may include a communication condition of the controlled device, where the communication condition characterizes communication signal strength, communication quality, and surrounding communication interference between the controlled device and the instruction-side device (optionally, includes received communication signal strength, received communication quality of the instruction-side device; received communication signal strength, received communication quality of the controlled device; and/or communication interference between the instruction-side device and the controlled device), and the like.
As still another way, the control index may include a device identifier and function information of the controlled device, where the device identifier of the controlled device may be used to uniquely identify the type of the controlled device; the function information of the controlled device may include a preset control priority level for controlling the controlled device, and as an implementation, the preset control priority level may be defined according to user habits or frequency of use of the controlled device, for example, a priority level of the controlled device with a higher frequency of use may be defined as a priority level for processing.
Step S120: and sequencing the control priorities of the controlled equipment according to the control indexes to obtain the control priorities corresponding to the controlled equipment.
It should be noted that the communication quality of the controlled device may be affected by the communication quality of the command end device to some extent, and therefore, the signal strength or the signal quality of the command end device in the embodiment of the present application is not lower than the required signal strength or the signal quality that satisfies the requirement that the command end device sends the control command to the controlled device.
Alternatively, referring to the description in step S110, it may be understood that the control index includes at least one of a success probability of the respective control of the controlled device and a communication condition of the controlled device. As one way, the instruction side device stores a data table for counting success probabilities of response control of the controlled devices, where the data table may be historical performance of the controlled devices responding to the control instructions in a certain past time period, and if it is detected that the success probabilities of response control of more than half of the controlled devices in the data table are higher than a certain value, for example, higher than 80%, the instruction side device may preferentially adopt the success probabilities to rank the control priorities of the controlled devices; if more than half of the controlled devices in the plurality of controlled devices have stronger signal strength or better signal quality, the instruction end device can preferentially adopt the signal strength or signal quality of the controlled devices to sequence the control priority of the controlled devices; if there is no significant difference between the signal strength and the signal quality of the controlled devices or the success probability of the response control of the controlled devices (for example, the difference between the maximum value and the minimum value is less than 10%), the command end device may rank the control priority of the controlled devices according to the success probability of the response control of the controlled devices and the communication signal strength and the signal quality thereof, which is described in detail as follows:
optionally, if the control index includes a success probability of response control of the controlled device, the instruction side device may rank the control priorities of the multiple devices according to the success probability to obtain the control priorities corresponding to the multiple controlled devices. Wherein, the controlled device with higher success probability has the highest control priority.
Optionally, if the control index includes a communication status of the controlled device, the command end device may determine received signal strengths or signal qualities of the multiple controlled devices and/or the command end device, and rank the control priorities of the multiple controlled devices according to the signal strengths or the signal qualities to obtain the control priorities corresponding to the multiple controlled devices. Wherein, the stronger the signal strength or the better the signal quality of the controlled device, the higher the corresponding control priority. It should be noted that, for the controlled devices, if the communication signal strength corresponding to the controlled devices is weaker or the signal quality is worse, the control priority of the controlled devices is lower, then the control instruction sent by the instruction side device does not preferentially reach the controlled devices; on the contrary, if the communication signal strength corresponding to the controlled device is stronger or the signal quality is better, the control priority of the controlled device is higher, so that the instruction end device can preferentially send the control instruction to the controlled device with higher control priority, thereby improving the sending efficiency of the control instruction and improving the utilization rate of resources.
As an implementation manner, before sequencing the control priorities of the multiple controlled devices, the instruction side device may first determine whether the control index meets a preset condition, in an embodiment of the present application, the preset condition may include a first preset condition and a second preset condition, and therefore, before sequencing the control priorities of the multiple controlled devices, the instruction side device may first determine whether the control index meets the first preset condition and/or the second preset condition, and then perform priority sequencing on the controlled devices meeting the preset condition among the multiple controlled devices, so as to obtain the control priorities corresponding to the multiple controlled devices meeting the preset condition. The first preset condition indicates that the command end device can rank the control priorities of the controlled devices with the success probability of response control not lower than a first threshold (for example, the controlled success rate is not lower than 60%) among the plurality of controlled devices, and the second preset condition indicates that the command end device can rank the control priorities of the controlled devices with the communication signal strength not lower than a second threshold (for example, the signal strength is not lower than-60 dbm) or the signal quality not worse than the second threshold among the plurality of controlled devices.
In this case, as a manner, before the control priorities of the multiple controlled devices are sorted, the instruction side device may determine whether the control index satisfies a first preset condition, and if so, continue to determine whether the controlled device satisfying the first preset condition satisfies a second preset condition, and if so, the instruction side device may sort the control priorities of the controlled devices to obtain the control priorities corresponding to the multiple controlled devices satisfying the preset conditions, so that the sending efficiency of the control instruction may be improved.
As another mode, before the control priorities of the multiple controlled devices are sorted, the instruction side device may determine whether the control index satisfies a second preset condition, if so, continue to determine whether the controlled device satisfying the second preset condition satisfies the first preset condition, and if so, the instruction side device may sort the control priorities of the controlled devices to obtain the control priorities corresponding to the multiple controlled devices satisfying the preset condition, so as to improve the sending efficiency of the control instruction.
As still another way, the preset conditions may be set as: and judging whether the controlled success rate and the communication signal strength or the signal quality of the controlled equipment meet a first threshold and a second threshold, and if so, sequencing the control priorities of the met controlled equipment to improve the efficiency of sending the control instruction by the instruction end equipment.
Optionally, as described in step S110, the control index may further include device identifiers and function information of the controlled devices, the device identifiers of the controlled devices may be associated with the corresponding function information, and the controlled devices having different function information have different device identifiers, so that the instruction end device may search the function information corresponding to the multiple controlled devices according to the device identifiers of the multiple controlled devices, and sort the control priorities of the multiple controlled devices according to the searched function information corresponding to the device identifiers of the multiple controlled devices, so as to obtain the control priorities corresponding to the multiple controlled devices.
Optionally, the instruction side device may store a priority comparison table of the controlled device in advance, where the priority comparison table includes the control priority of the controlled device. As one way, the function information may include a preset priority level for controlling the controlled device, and in a specific application scenario, for example, a plurality of controlled devices (e.g., bulbs) of the same type in the smart home system need to control the priority level, and a user may customize the control priority level of the bulb into: the priority of the bulb in the living room is high, and the priority of the bulb in the bedroom is low, so that when the starting instruction of the bulb is triggered, the bulb in the living room is firstly turned on, and then the bulb in the bedroom is turned on.
In another specific application scenario, for different types of controlled devices in the smart home system, since the functions of the different types of devices are different and the time consumed by the devices with different functions in responding to the start instruction is different, the priority of the controlled devices with different functions can be defined according to the time of the controlled devices with different functions in responding to the start instruction. For example, the lamp and the television are different types of devices, because the functions of the lamp and the television are different, the time for the television to respond to the turn-on instruction with larger power consumption is relatively longer, and the turn-on time is longer, so that the control priority of the television is later, the energy consumption of the lamp is less, the turn-on instruction can be responded immediately, and the priority can be earlier. Therefore, the control efficiency can be improved by defining the priority for the control commands of the controlled equipment with different functions, and the user experience of the controlled equipment is further improved.
The specific embodiment of the priority level preset for controlling the controlled device may be changed according to the actual situation, and is not limited herein. The instruction end device may first determine whether the function information of the controlled device includes a preset priority level for controlling the controlled device, and if so, may sequence the control priorities of the multiple controlled devices according to the preset priority level for controlling the controlled device, to obtain the control priorities corresponding to the multiple controlled devices, so as to improve the sending efficiency of the control instruction and improve the resource utilization rate.
It should be noted that, before the command end device sorts the control priorities of the multiple controlled devices through the function information, the command end device may determine whether the function information of the multiple controlled devices is the same, and if the function information of the multiple controlled devices is the same, the command end device may sort the control priorities of the multiple controlled devices.
In a specific application scenario, for example, for a plurality of controlled devices in the smart home system, the controlled devices may carry device identifiers, the command end device may search for function information corresponding to the device identifiers of the controlled devices through the device identifiers of the controlled devices, and compare the searched function information, where it may be determined whether functions corresponding to the controlled devices in the function information are consistent, and if so, it may be determined that the function information of the controlled devices is the same.
When the function information of the controlled devices is judged to be the same, as a way, the control instructions of the controlled devices with the same function information can be defined with priorities according to the user requirements (for example, a controlled device which is commonly used by the user or the user wants to start work first is defined with a higher priority, etc.), so that the control priorities of the controlled devices with the same function information are sorted. Alternatively, the control priorities of a plurality of controlled devices having the same function information may be ranked according to the success probability or communication status of the controlled device in response to the control by the command side device (including the communication status of the command side device and the communication status of the controlled device).
Step S130: and sending a corresponding control instruction to the controlled equipment according to the control priority.
Optionally, the instruction end device may send corresponding control instructions to the multiple controlled devices according to the control priorities of the multiple controlled devices, so that the controlled devices may respond to the control instructions quickly and work normally. The control command may be the same target command automatically generated, or may be a command to be sent within a certain time, and if the control command is the same target command automatically generated, resource contention is easily generated. Therefore, the control method provided by the embodiment can improve the resource utilization rate and improve the user experience.
In the control method provided by this embodiment, a command end device obtains current control indexes of a plurality of controlled devices, and the control indexes represent the degree of success of control of the controlled devices; sequencing the control priorities of the controlled equipment according to the control indexes to obtain the control priorities corresponding to the controlled equipment; and sending a corresponding control instruction to the controlled equipment according to the control priority. The method records the historical performance of the controlled equipment within a certain time through the instruction end equipment, performs weight distribution of control priority on the control command of the controlled equipment, and can solve the problem that too many control commands are issued to a plurality of controlled equipment by the instruction end equipment within a short time: the controlled equipment with poor control condition occupies software resources, so that other equipment with normal control condition is influenced, and the control command is not issued timely, and further the user experience can be improved.
Referring to fig. 3, a block diagram of a control apparatus according to an embodiment of the present disclosure is shown, in which the control apparatus 200 is operated on a command end device, the apparatus 200 includes: a control condition obtaining module 210, a priority ordering module 220 and a control instruction sending module 230.
The control condition obtaining module 210 is configured to instruct the end device to obtain current control indexes of multiple controlled devices, where the control indexes represent degrees of success of the controlled devices.
A priority ranking module 220, configured to rank the control priorities of the multiple controlled devices according to the control indicators, so as to obtain the control priorities corresponding to the multiple controlled devices.
Optionally, the control index may include a success probability of response control of the controlled device, and in this case, the priority ranking module 220 is further configured to instruct the end device to rank the control priorities of the plurality of controlled devices according to the success probability, so as to obtain the control priorities corresponding to the plurality of controlled devices, where the controlled device with the higher success probability has the higher corresponding control priority.
Optionally, the control index may include a communication condition of the controlled device, where the communication condition is strength of the controlled device receiving the signal of the instruction end device, and in this case, the priority ranking module 220 is further configured to determine, by the instruction end device, strength of the multiple controlled devices receiving the signal of the instruction end device; and then, sequencing the control priorities corresponding to the controlled devices according to the signal strength or the signal quality to obtain the control priorities corresponding to the controlled devices, wherein the controlled devices with stronger signal strength or better signal quality have higher corresponding control priorities.
Optionally, as a mode, a certain preset condition may be preset, for example, a first threshold is set for a first control index in the control indexes, a second threshold is set for a second control index in the control indexes, and the controlled devices meeting the first threshold in the first control index and/or the controlled devices meeting the second threshold in the second index are screened out by setting, and priority ranking is performed. Then, the priority ranking module 220 may also be configured to order, by the instruction end device, the control priorities of the multiple controlled devices that satisfy the preset condition according to the control index, so as to obtain the control priorities corresponding to the multiple controlled devices that satisfy the preset condition.
Optionally, the control index may further include a device identifier and function information of the controlled device, where the device identifier represents a device type of the controlled device, and as an implementation manner, the priority ranking module 220 may be configured to instruct the end device to search for the function information corresponding to the multiple controlled devices according to the device identifiers of the multiple controlled devices; and then, sequencing the control priorities of the plurality of controlled devices according to the searched function information corresponding to the device identifiers of the plurality of controlled devices to obtain the control priorities corresponding to the plurality of controlled devices.
It is easy to understand that the function information may include a self-defined priority level for controlling the controlled device, and then the priority ranking module 220 may be configured to instruct the end device to determine whether the function information includes the self-defined priority level for controlling the controlled device, and optionally, if so, the end device may rank the control priorities of the plurality of controlled devices according to the self-defined priority level for controlling the controlled device, so as to obtain the control priorities corresponding to the plurality of controlled devices.
It should be noted that, the instruction side device orders the control priorities of the multiple controlled devices according to the control indexes, and needs to determine whether the function information of the multiple controlled devices is the same before obtaining the control priorities corresponding to the multiple controlled devices; if the control priorities are the same, the control priorities of the plurality of controlled devices may be sorted.
And a control instruction sending module 230, configured to send a corresponding control instruction to the controlled device according to the control priority.
In the control device provided in this embodiment, a command end device obtains current control indexes of a plurality of controlled devices, and the control indexes represent the degree of success of control of the controlled devices; sequencing the control priorities of the controlled equipment according to the control indexes to obtain the control priorities corresponding to the controlled equipment; and sending a corresponding control instruction to the controlled equipment according to the control priority. In this embodiment, the instruction end device records the historical performance of the controlled device within a certain time, and performs weight distribution of control priority on the control command of the controlled device, so that it is possible to solve the problem that too many control commands are issued to a plurality of controlled devices by the instruction end device within a short time: the controlled equipment with poor control condition occupies software resources, so that other equipment with normal control condition is influenced, and the control command is not issued timely, and further the user experience can be improved.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 4, a schematic diagram of a server 300 applicable to the embodiments of the present application is shown, where the server 300 includes a memory 301 and one or more processors 302, and the memory 301 and the processors 302 are connected by communication lines.
The memory 301 may be used to store software programs and modules, such as the control method and the program instructions/modules corresponding to the apparatus in the embodiment of the present application, and the processor 302 executes various functional applications and data processing, such as the control method provided in the embodiment of the present invention, by executing the software programs and modules stored in the memory 301.
The memory 301 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. It will be appreciated that the configuration shown in fig. 4 is merely illustrative, and that server 300 may include more or fewer components than shown in fig. 4, or have a different configuration than shown in fig. 4. The components shown in fig. 4 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 5, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 400 has stored therein program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. Program code 410 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (9)

1. A control method is applied to instruction end equipment, and is characterized by comprising the following steps:
the method comprises the steps that instruction end equipment obtains current control indexes of a plurality of controlled equipment, the control indexes represent the controlled success degree of the controlled equipment, the control indexes comprise success probability of response control of the controlled equipment and communication conditions of the controlled equipment, the communication conditions are signal strength or signal quality between the controlled equipment and the instruction end equipment, and the signal strength or signal quality of the instruction end equipment is not lower than the signal strength or signal quality required for the instruction end equipment to send a control command to the controlled equipment;
judging whether the control index meets a first preset condition, if so, continuously judging whether the controlled equipment meeting the first preset condition meets a second preset condition, if so, sequencing the control priorities of the controlled equipment according to the control index to obtain the control priorities corresponding to the controlled equipment, or judging whether the control index meets the second preset condition, if so, continuously judging whether the controlled equipment meeting the second preset condition meets the first preset condition, if so, sequencing the control priorities of the controlled equipment according to the control index to obtain the control priorities corresponding to the controlled equipment, and the first preset condition represents that the instruction end equipment performs control priority sequencing on the controlled equipment of which the response control success probability is not lower than a first threshold value among the controlled equipment The second preset condition represents that the instruction end equipment carries out control priority sequencing on the controlled equipment of which the communication signal strength is not lower than a second threshold value or the signal quality is not lower than the second threshold value in the plurality of controlled equipment;
and sending corresponding control instructions to the controlled equipment according to the control priority.
2. The control method according to claim 1, wherein the control index includes a success probability of response control of the controlled device; the step of ranking the control priorities of the plurality of controlled devices according to the control index to obtain the control priorities corresponding to the plurality of controlled devices includes:
and sequencing the control priorities of the controlled devices according to the success probabilities to obtain the control priorities corresponding to the controlled devices, wherein the higher the success probability is, the higher the corresponding control priority of the controlled device is.
3. The control method according to claim 1, wherein the control index includes a communication condition of the controlled device, the communication condition being a signal strength or a signal quality between the controlled device and the instruction side device;
the step of ranking the control priorities of the plurality of controlled devices according to the control index to obtain the control priorities corresponding to the plurality of controlled devices includes:
judging the signal strength or the signal quality of the controlled equipment and/or the instruction end equipment;
and sequencing the control priorities corresponding to the controlled devices according to the signal strength or the signal quality to obtain the control priorities corresponding to the controlled devices, wherein the controlled devices with stronger signal strength or better signal quality have higher corresponding control priorities.
4. The control method according to claim 1, wherein the control index includes device identification and function information of the controlled device, and the step of ranking the control priorities of the plurality of controlled devices according to the control index to obtain the control priorities corresponding to the plurality of controlled devices comprises:
searching function information corresponding to the controlled devices according to the device identifications of the controlled devices;
and sequencing the control priorities of the plurality of controlled devices according to the searched function information corresponding to the device identifications of the plurality of controlled devices to obtain the control priorities corresponding to the plurality of controlled devices.
5. The control method according to claim 4, wherein the function information includes a customized priority level for controlling the controlled device, and the step of sorting the control priorities of the plurality of controlled devices according to the control index to obtain the control priorities corresponding to the plurality of controlled devices further includes:
judging whether the function information comprises a self-defined priority level for controlling the controlled equipment;
and if so, sequencing the control priorities of the controlled equipment according to the self-defined priority level of the controlled equipment to obtain the control priorities corresponding to the controlled equipment.
6. The control method according to claim 4, wherein the step of ranking the control priorities of the plurality of controlled devices according to the control index to obtain the control priorities corresponding to the plurality of controlled devices further comprises:
judging whether the function information of the controlled devices is the same;
and if the control priority levels are the same, sequencing the control priority levels of the plurality of controlled devices with the same function information.
7. A control apparatus, operating on a command side device, the control apparatus comprising:
the control condition acquisition module is used for acquiring current control indexes of a plurality of controlled devices by instruction end equipment, wherein the control indexes represent the controlled success degree of the controlled devices, the control indexes comprise success probability of response control of the controlled devices and communication conditions of the controlled devices, the communication conditions are signal strength or signal quality between the controlled devices and the instruction end equipment, and the signal strength or signal quality of the instruction end equipment is not lower than the signal strength or signal quality required by the instruction end equipment for sending a control command to the controlled devices;
a priority ranking module, configured to determine whether the control indicator satisfies a first preset condition, if the control indicator satisfies the first preset condition, continue to determine whether the controlled device satisfying the first preset condition satisfies a second preset condition, if the control indicator satisfies the second preset condition, rank the control priorities of the multiple controlled devices according to the control indicator, to obtain control priorities corresponding to the multiple controlled devices, or determine whether the control indicator satisfies the second preset condition, if the control indicator satisfies the second preset condition, continue to determine whether the controlled device satisfying the second preset condition satisfies the first preset condition, if the control indicator satisfies the first preset condition, rank the control priorities of the multiple controlled devices according to the control indicator, to obtain control priorities corresponding to the multiple controlled devices, where the first preset condition represents a controlled device whose response control success probability of the command end device to the multiple controlled devices is not lower than a first threshold The control priorities are sequenced, and the second preset condition represents that the instruction end equipment sequences the control priorities of the controlled equipment of which the communication signal strength is not lower than a second threshold value or the signal quality is not lower than the second threshold value in the controlled equipment;
and the control instruction sending module is used for sending corresponding control instructions to the controlled equipment according to the control priority.
8. An electronic device, comprising a memory;
one or more processors;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-6.
9. A computer-readable storage medium, having a program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-6.
CN201811504836.XA 2018-12-10 2018-12-10 Control method, control device, electronic equipment and storage medium Active CN109753034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811504836.XA CN109753034B (en) 2018-12-10 2018-12-10 Control method, control device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811504836.XA CN109753034B (en) 2018-12-10 2018-12-10 Control method, control device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109753034A CN109753034A (en) 2019-05-14
CN109753034B true CN109753034B (en) 2021-12-07

Family

ID=66403652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811504836.XA Active CN109753034B (en) 2018-12-10 2018-12-10 Control method, control device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109753034B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110955148A (en) * 2019-10-14 2020-04-03 珠海格力电器股份有限公司 Control method and system for environmental comfort, electronic equipment and storage medium
CN111176130B (en) * 2020-01-07 2022-05-24 华为技术有限公司 Equipment control method, equipment control method and equipment control system
CN111885218B (en) * 2020-07-22 2023-06-23 海尔优家智能科技(北京)有限公司 Method and device for managing intelligent equipment and binding equipment
CN112087492B (en) * 2020-08-12 2023-05-12 北京首钢自动化信息技术有限公司 Device management method and device, electronic device and storage medium
CN112565032B (en) * 2020-11-30 2022-07-05 扬州鹏为软件有限公司 Method for connecting terminal and intelligent equipment
CN113596791B (en) * 2021-06-25 2023-10-24 青岛海尔科技有限公司 Bluetooth device control method and device, storage medium and electronic device
CN113759740B (en) * 2021-09-18 2022-09-20 江苏悦达绿色建筑科技有限公司 Equipment regulation and control method for smart house

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105974806A (en) * 2015-11-17 2016-09-28 杭州赫智电子科技有限公司 Intelligent household device pool control method and intelligent household device pool control system
CN107248943A (en) * 2017-07-06 2017-10-13 海信集团有限公司 Apparatus control method and device
CN107797461A (en) * 2017-09-30 2018-03-13 广东美的制冷设备有限公司 Progress control method, resource shared device and computer-readable recording medium
CN108092861A (en) * 2017-12-13 2018-05-29 深圳绿米联创科技有限公司 Realize collocation method, the equipment linkage control method and device of equipment linkage
CN108600059A (en) * 2018-04-24 2018-09-28 Oppo广东移动通信有限公司 Apparatus control method and Related product

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102076105B (en) * 2011-01-12 2014-04-30 北京傲天动联技术股份有限公司 Polling method for point-to-multipoint communication system
JP6119618B2 (en) * 2014-01-16 2017-04-26 株式会社デンソー production equipment
CN104023374A (en) * 2014-05-27 2014-09-03 美的集团股份有限公司 Wireless local area network access parameter configuration method and system
CN106369744A (en) * 2016-08-29 2017-02-01 珠海格力电器股份有限公司 Control method and device for equipment
CN107707436A (en) * 2017-09-18 2018-02-16 广东美的制冷设备有限公司 Terminal control method, device and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105974806A (en) * 2015-11-17 2016-09-28 杭州赫智电子科技有限公司 Intelligent household device pool control method and intelligent household device pool control system
CN107248943A (en) * 2017-07-06 2017-10-13 海信集团有限公司 Apparatus control method and device
CN107797461A (en) * 2017-09-30 2018-03-13 广东美的制冷设备有限公司 Progress control method, resource shared device and computer-readable recording medium
CN108092861A (en) * 2017-12-13 2018-05-29 深圳绿米联创科技有限公司 Realize collocation method, the equipment linkage control method and device of equipment linkage
CN108600059A (en) * 2018-04-24 2018-09-28 Oppo广东移动通信有限公司 Apparatus control method and Related product

Also Published As

Publication number Publication date
CN109753034A (en) 2019-05-14

Similar Documents

Publication Publication Date Title
CN109753034B (en) Control method, control device, electronic equipment and storage medium
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
CN109725540B (en) Equipment control method and device, electronic equipment and storage medium
JP7041323B2 (en) System and method of operation of smart plug
CN109474494B (en) Equipment detection method, device, server and storage medium
CN109587018B (en) Equipment configuration method, device, network system and mobile terminal
CN110278135B (en) Equipment position searching method, device, gateway and storage medium
CN105306318B (en) intelligent scene configuration method, device and server
CN111025925A (en) Intelligent home furnishing system based on cloud computing
CN109445292B (en) Automatic execution result collection method, device, system and storage medium
CN113412469A (en) Equipment network distribution method and device, electronic equipment and storage medium
EP4274190A1 (en) Smart device control method and apparatus, electronic device, and computer readable medium
CN110324216B (en) Automatic configuration method, device, system, server and storage medium
CN109725543B (en) Equipment control code configuration method and device, cloud server and network system
CN112350907A (en) Scene linkage control method, terminal and computer readable storage medium
CN108427310A (en) Intelligent home furnishing control method, device and computer readable storage medium
CN109167711B (en) Household appliance control method and device, storage medium and server
CN112764351A (en) Control method and device of intelligent device, electronic device and storage medium
CN110113232A (en) Apparatus control method, device, system, electronic equipment and storage medium
CN107770009B (en) Control device, method, storage medium and equipment
CN109981424B (en) Linkage scheme processing method and device, electronic equipment and storage medium
CN110045705B (en) Intelligent home control method, device and system adopting heterogeneous wireless network
CN113330424A (en) Instruction processing method, instruction processing device, electronic device and storage medium
CN114326420A (en) Intelligent grouping method and device for equipment, intelligent equipment and storage medium
CN114553626A (en) Equipment state query method, query device, electronic equipment and storage medium

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