CN111327497A - Intelligent terminal control method and device, electronic equipment and storage medium - Google Patents

Intelligent terminal control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111327497A
CN111327497A CN202010068791.7A CN202010068791A CN111327497A CN 111327497 A CN111327497 A CN 111327497A CN 202010068791 A CN202010068791 A CN 202010068791A CN 111327497 A CN111327497 A CN 111327497A
Authority
CN
China
Prior art keywords
intelligent terminal
linkage rule
rule
intelligent
server side
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.)
Pending
Application number
CN202010068791.7A
Other languages
Chinese (zh)
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.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information 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 China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010068791.7A priority Critical patent/CN111327497A/en
Publication of CN111327497A publication Critical patent/CN111327497A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network

Abstract

The embodiment of the invention discloses an intelligent terminal control method, an intelligent terminal control device, electronic equipment and a storage medium, wherein the intelligent terminal control method comprises the following steps: acquiring and storing a linkage rule to be executed; generating a control instruction for controlling the intelligent terminal according to the linkage rule; and sending the control instruction to the intelligent terminal so that the intelligent terminal executes an instruction task represented by the control instruction. By locally constructing the intelligent gateway and constructing a local area network between the intelligent gateway and the intelligent terminal, the intelligent gateway can download a linkage strategy for controlling the intelligent terminal through the server side, and control instructions are issued in the constructed local area network through linkage rules to control the intelligent terminal. The linkage rule is placed in the local intelligent gateway, so that the current situation that the intelligent terminal is controlled and needs to depend on the smoothness of an external network is avoided.

Description

Intelligent terminal control method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of intelligent home furnishing, in particular to an intelligent terminal control method and device, electronic equipment and a storage medium.
Background
The smart home (home automation) is characterized in that a home is used as a platform, facilities related to home life are integrated by utilizing a comprehensive wiring technology, a network communication technology, a safety precaution technology, an automatic control technology and an audio and video technology, an efficient management system of home facilities and home schedule affairs is constructed, home safety, convenience, comfort and artistry are improved, and an environment-friendly and energy-saving living environment is realized.
In the prior art, an intelligent home comprises a plurality of intelligent terminals, the intelligent terminals are connected with a server side through a wireless network or a wired network, each intelligent terminal reports acquired environmental parameters to the server side, and then the server side issues a control instruction to the intelligent terminals to control the intelligent terminals. The inventor of the invention finds in research that in the prior art, the control strategy of the smart home is too dependent on network transmission, once a transmission link is in a problem and a server end cannot send a control instruction, the smart home is out of control and cannot be controlled.
Disclosure of Invention
The embodiment of the invention aims to provide an intelligent terminal control method, an intelligent terminal control device, electronic equipment and a storage medium, and control strategies are prevented from being excessively dependent on network transmission.
In order to solve the above technical problem, an embodiment of the present invention provides an intelligent terminal control method, including:
acquiring and storing a linkage rule to be executed;
generating a control instruction for controlling the intelligent terminal according to the linkage rule;
and sending the control instruction to the intelligent terminal so that the intelligent terminal executes an instruction task represented by the control instruction.
The embodiment of the present invention also provides an intelligent terminal control device, including:
the acquisition module is used for acquiring and storing the linkage rule to be executed;
the processing module is used for generating a control instruction for controlling the intelligent terminal according to the linkage rule;
and the execution module is used for sending the control instruction to the intelligent terminal so that the intelligent terminal executes the instruction task represented by the control instruction.
The embodiment of the invention also provides an electronic device, which comprises a memory and a processor, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the intelligent terminal control method.
Embodiments of the present invention also provide a computer-readable medium, where the computer-readable instructions, when executed by one or more processors, cause the one or more processors to perform the steps of the intelligent terminal control method described above.
Compared with the prior art, the method and the system have the advantages that the intelligent gateway is locally constructed, the local area network between the intelligent gateway and the intelligent terminal is constructed, the intelligent gateway can download the linkage strategy for controlling the intelligent terminal through the server side, and the intelligent terminal is controlled by issuing the control command in the constructed local area network through the linkage rule. The linkage rule is placed in the local intelligent gateway, so that the current situation that the intelligent terminal is controlled and needs to depend on the smoothness of an external network is avoided. Meanwhile, the operation pressure brought by the server side controlling all the intelligent terminals is relieved, network resources are saved, the risk that the interactive data are intercepted illegally is reduced due to the fact that real-time data interaction is not needed, and the safety of the whole system is improved.
In addition, the acquiring and storing the linkage rule to be executed includes:
acquiring event information which represents rule change and is sent by a user terminal;
responding to the event information, and sending first request information to a preset server side so that the server side returns a linkage rule generated by the server side according to the event information according to the first request information;
and receiving the linkage rule sent by the server side.
In addition, when the user operation represented by the event information is a deletion operation, after the obtaining of the event information representing a rule change sent by the user terminal, the method includes:
responding to the event information, sending second request information to a preset server side, so that the server side returns deletion information generated by the server side according to the event information according to the second request information;
and receiving deletion information sent by the server side, and deleting the locally stored original linkage rule according to the deletion information.
In addition, when the linkage rule is a timed task rule, the generating a control instruction for controlling the intelligent terminal according to the linkage rule includes:
establishing a delay task according to the linkage rule;
and when the delay time of the delay task is achieved, sending a control instruction to the intelligent terminal according to the linkage rule.
In addition, when the linkage rule is a trigger task rule, the generating of the control instruction for controlling the intelligent terminal according to the linkage rule includes:
acquiring detection parameters uploaded by the intelligent terminal;
comparing the detection parameters with preset trigger conditions in the linkage rule;
and when the detection parameters meet the trigger conditions, sending a control instruction generated according to the linkage rule to the intelligent terminal.
In addition, after the control instruction is sent to the intelligent terminal, the method includes:
acquiring an execution log generated by the intelligent terminal executing the control instruction;
and sending the execution log to a preset server side.
In addition, the sending the execution log to a preset server includes:
acquiring the transmission rate of a transmission link;
comparing the transmission rate with a preset rate threshold;
when the transmission rate is smaller than the rate threshold value, caching the execution log in a preset cache queue;
and when the transmission rate is equal to or greater than the rate threshold value, sending all the execution logs cached in the cache queue to the server side.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic diagram of a basic flow of an intelligent terminal control method according to an embodiment of the present invention;
FIG. 2 is a topology structure diagram of an intelligent gateway system according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of acquiring a linkage rule by an intelligent gateway according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of deleting linkage rules by the intelligent gateway according to the embodiment of the present invention;
FIG. 5 is a flowchart illustrating a process for generating control commands according to an embodiment of the present invention;
FIG. 6 is a schematic flow chart illustrating a process of generating a control command in response to an intelligent terminal according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a first implementation of uploading an execution log according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating a second implementation of uploading an execution log according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of a basic structure of an intelligent terminal control device according to an embodiment of the present invention;
FIG. 10 is a block diagram of the basic structure of an electronic device embodying the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
Specifically, referring to fig. 1, fig. 1 is a basic flow diagram of the intelligent terminal control method according to the embodiment.
As shown in fig. 1, an intelligent terminal control method includes:
s1100, acquiring and storing a linkage rule to be executed;
in this embodiment, an intelligent gateway is provided, and the intelligent gateway can be: the intelligent router or the switch and the like can be connected with node equipment of different protocol networks.
The intelligent gateway can download and execute the linkage rule sent by the server side, wherein the linkage rule is a rule strategy for controlling the operation of equipment, for example, the time for starting the electric heater in the intelligent home is set, or whether the electric heater needs to be started or not is determined according to the indoor temperature, and the like, and the linkage rule can be a linkage strategy. Therefore, the linkage rule can be defined as a control strategy for controlling the working state of each intelligent terminal in the intelligent home. In this embodiment, the server can be a cloud.
And after receiving the updated linkage rule, the intelligent gateway covers the local original linkage rule with the updated linkage rule. In some embodiments, after receiving the updated linkage rule, the intelligent gateway overwrites the local original linkage rule with the updated linkage rule and stores the original linkage rule in a locally specified folder, so as to perform backtracking when the updated linkage rule execution fails.
The method for acquiring the linkage rule by the intelligent gateway is not limited to this, in some embodiments, the linkage rule is set by the user terminal, when the user terminal sets a new linkage rule or changes the linkage rule, the updated rule is sent to the server side, after the server side receives the set linkage rule or changes the linkage rule, the updated linkage rule is subjected to security audit to confirm the authority of the user terminal and the security of the updated rule, and after all the information is confirmed, a new linkage rule is generated. And after acquiring the event information, the intelligent gateway sends request information to the server side and actively acquires a new linkage rule from the server side. By the method, the error occurrence of the server side mistaken sending or missed sending linkage rule can be effectively prevented, and the accuracy of information issuing is improved. Meanwhile, the method can also enable the server to verify whether the intelligent gateway is in a normal working state, and if the server does not acquire the request information from the intelligent gateway within a period of time after receiving the time information, the server can determine that the intelligent gateway or a network link connected with the intelligent gateway has errors.
S1200, generating a control instruction for controlling the intelligent terminal according to the linkage rule;
in this embodiment, the intelligent gateway establishes a local area network with an intelligent terminal in an intelligent home. Referring to fig. 2, fig. 2 is a topology structure diagram of the intelligent gateway system of the present embodiment. As shown in fig. 2, the user terminal is in communication connection with the server and the intelligent gateway, the server is in communication connection with the intelligent gateway, and the intelligent gateway is in communication connection with the plurality of intelligent terminals.
In this embodiment, the intelligent terminal is a controlled electronic device in an intelligent home. For example, a smart switch, a smart television, a smart refrigerator, a smart speaker, a smart rice cooker, or a smart window curtain. In some embodiments, some intelligent terminals further include a sub-device, for example, a plurality of load devices are connected to one intelligent patch panel, and the plurality of load devices are sub-devices of the intelligent patch panel.
In this embodiment, the user terminal can be a mobile terminal or a PC terminal.
In the present embodiment, the communication connection means connection via a wireless network or a wired network.
And after downloading or updating the linkage rules, the intelligent gateway sends control instructions to each intelligent terminal according to the linkage rules.
The issuing mode of the control instruction comprises the following steps: direct control and responsive control. The direct control means that: when the instruction rule is timing control, the intelligent gateway directly sends a control instruction to the controlled intelligent terminal. For example, the linkage rules are: and (3) starting the light at 18:00 moment, and directly sending a starting control instruction to an intelligent switch for controlling the light by the intelligent gateway at the set moment. The response control means: and the intelligent gateway adapts the environmental parameters uploaded by the intelligent terminal and then sends a control instruction to the intelligent terminal. For example, the linkage rules are: when the indoor temperature is lower than 22 ℃, the electric heater is started, the intelligent gateway receives the indoor temperature parameters reported by the intelligent electric heater, and when the indoor temperature is lower than 22 ℃, the intelligent gateway sends a starting control instruction to the intelligent electric heater.
In some embodiments, the control command is issued in a manner that combines direct control and responsive control, for example, the linkage rule is: after 18:00, if the light intensity in the room is lower than the set threshold value, the intelligent gateway receives the brightness parameter sent by the light sensor when the set time arrives, and sends an on control instruction to the controlled intelligent switch when the brightness parameter is lower than the set threshold value.
S1300, sending the control instruction to the intelligent terminal so that the intelligent terminal can execute the instruction task represented by the control instruction.
And after receiving the control instruction sent by the intelligent gateway, the controlled intelligent terminal executes the instruction task represented by the control instruction. The instruction task is as follows: the working state of the intelligent terminal, for example: the duration of the on, off, or on operation, the power of the operation, etc.
According to the embodiment, the intelligent gateway is locally constructed, the local area network between the intelligent gateway and the intelligent terminal is constructed, the intelligent gateway can download the linkage strategy for controlling the intelligent terminal through the server side, and the intelligent terminal is controlled by issuing the control instruction in the constructed local area network through the linkage rule. The linkage rule is placed in the local intelligent gateway, so that the current situation that the intelligent terminal is controlled and needs to depend on the smoothness of an external network is avoided. Meanwhile, the operation pressure brought by the server side controlling all the intelligent terminals is relieved, network resources are saved, the risk that the interactive data are intercepted illegally is reduced due to the fact that real-time data interaction is not needed, and the safety of the whole system is improved.
In some embodiments, when a user creates or changes a linkage rule through a user terminal, the intelligent gateway requests the server side to acquire an updated linkage rule according to event information sent by the user terminal. Referring to fig. 3, fig. 3 is a schematic flow chart illustrating the intelligent gateway acquiring the linkage rule according to the embodiment.
As shown in fig. 3, S1100 includes:
s1111, acquiring event information which is sent by the user terminal and represents rule change;
and after the linkage rule is newly added or modified by the user terminal, the user sends the newly added or modified linkage rule to the server terminal, and then sends event information representing rule change to the intelligent gateway, wherein the content recorded by the event information is notification information to notify the intelligent gateway that the linkage rule is changed.
And after receiving the set or changed linkage rule, the server performs security examination on the updated linkage rule to confirm the authority of the user terminal and the security of the updated rule, and after the information is confirmed, a new linkage rule is generated.
S1112, sending first request information to a preset server in response to the event information, so that the server returns a linkage rule generated by the server according to the event information according to the first request information;
after the intelligent gateway obtains the event information, first request information is sent to the server side, the first request information is used for obtaining a new linkage rule from the server side, and after the server side receives the first request information sent by the intelligent gateway, the updated linkage rule is sent to the intelligent gateway.
And S1113, receiving the linkage rule sent by the server side.
And after receiving the updated linkage rule, the intelligent gateway covers the local original linkage rule with the updated linkage rule. In some embodiments, after receiving the updated linkage rule, the intelligent gateway overwrites the local original linkage rule with the updated linkage rule and stores the original linkage rule in a locally specified folder, so as to perform backtracking when the updated linkage rule execution fails.
The new linkage rule is actively acquired from the server by sending the request information, so that the error of the linkage rule which is wrongly sent or missed to be sent by the server can be effectively prevented, and the accuracy of information sending is improved. Meanwhile, the method can also enable the server to verify whether the intelligent gateway is in a normal working state, and if the server does not acquire the request information from the intelligent gateway within a period of time after receiving the time information, the server can determine that the intelligent gateway or a network link connected with the intelligent gateway has errors.
In some embodiments, when the user deletes an existing linkage rule through the user terminal, the intelligent gateway acquires the deleted content information from the server according to the event information sent by the user terminal. Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a process of deleting a linkage rule by the intelligent gateway according to the embodiment.
As shown in fig. 4, after S1111, the method includes:
s1121, responding to the event information, sending second request information to a preset server side, so that the server side returns deletion information generated by the server side according to the event information according to the second request information;
when the user deletes the established linkage rule through the user terminal, the deleted content is sent to the server terminal, and the server terminal generates deleted information after receiving the deleted content. The deletion information includes: the ID of the deleted linkage rule.
And after receiving the deletion event information sent by the user terminal, the intelligent gateway sends second request information to the server, wherein the second request information is used for acquiring the deletion information from the server. And after receiving the second request information sent by the user, the server side sends the deletion information to the intelligent gateway.
And S1122, receiving the deleting information sent by the server side, and deleting the original linkage rule stored locally according to the deleting information.
And after receiving the deletion information sent by the server side, the intelligent gateway deletes the linkage rule of the ID in the original linkage rule stored locally according to the ID of the linkage rule recorded in the deletion information, and completes the updating of the local linkage rule.
The deletion information is actively acquired from the server by sending the request information, so that the error of the server side transmitting the deletion information mistakenly or not can be effectively prevented, and the accuracy of information transmission is improved. Meanwhile, the method can also enable the server to verify whether the intelligent gateway is in a normal working state, and if the server does not acquire the request information from the intelligent gateway within a period of time after receiving the time information, the server can determine that the intelligent gateway or a network link connected with the intelligent gateway has errors.
In some embodiments, when the linkage rule is a timing task rule, a control instruction needs to be issued to a corresponding intelligent terminal within a set time. Referring to fig. 5, fig. 5 is a schematic flow chart illustrating the generation of the control command according to the present embodiment.
As shown in fig. 5, S1200 includes:
s1211, establishing a delay task according to the linkage rule;
when the event represented by the linkage rule is a timing control event, in order to ensure that the linkage rule is executed, a delay task needs to be established according to the set time information in the linkage rule.
And S1212, when the delay time of the delay task is achieved, sending a control instruction to the intelligent terminal according to the linkage rule.
After the delay task is established, when the delay time of the delay task returns to zero, the delay task is activated, a control instruction is generated according to a control strategy set by a linkage rule, and then the control instruction is sent to a corresponding intelligent terminal. For example, the linkage rules are: and (3) starting the light at 18:00, obtaining delay time according to the difference value between the activation time set by the linkage rule and the current time, establishing a delay task according to the delay time, and directly sending a starting control instruction to an intelligent switch for controlling the light by the intelligent gateway after the delay task returns to zero.
By means of establishing the delay task, the probability that the linkage rule is executed by mistake is avoided, and the execution accuracy of the linkage rule is improved.
In some embodiments, when the linkage rule is the trigger task rule, the intelligent gateway needs to respond to the intelligent terminal according to the linkage rule to generate a corresponding control instruction after uploading the environmental parameters to the intelligent terminal. Referring to fig. 6, fig. 6 is a schematic flow chart illustrating a process of generating a control command in response to an intelligent terminal according to this embodiment.
As shown in fig. 6, S1200 further includes:
s1221, acquiring detection parameters uploaded by the intelligent terminal;
and when the linkage rule is a trigger task rule, the intelligent gateway acquires the detection parameters uploaded by the intelligent terminal at regular time according to the type of the environmental parameters determined by the linkage rule. The types of detection parameters can be (without limitation): temperature, light intensity, air humidity, oxygen content in the air, harmful gas content in the air or pm2.5 content and other environmental parameters in the field of smart home.
S1222, comparing the detection parameters with preset trigger conditions in the linkage rules;
and the intelligent gateway compares the acquired detection parameters with the preset trigger conditions in the linkage rules. For the linkage rules of the trigger type, each linkage rule is set with a trigger condition, and for different environmental parameters or user settings, each trigger condition can be set by self-definition or use the conventional trigger condition in the corresponding field. For example, the linkage rules are: when the indoor temperature is lower than 22 ℃, the electric heater is started, the intelligent gateway receives the indoor temperature parameters reported by the intelligent electric heater, and when the indoor temperature is lower than 22 ℃, the intelligent gateway sends a starting control instruction to the intelligent electric heater.
And S1223, when the detection parameters meet the trigger conditions, sending a control instruction generated according to the linkage rule to the intelligent terminal.
When the detection parameters meet the trigger conditions set by the linkage rules through comparison, the intelligent gateway responds to the detection parameters uploaded by the corresponding intelligent terminal, generates a corresponding control instruction according to the linkage rules, and sends the generated control instruction to the corresponding intelligent terminal.
In some embodiments, in order to enable the server to monitor the execution of the control instructions by the intelligent terminals, the execution logs of the control instructions executed by the intelligent terminals need to be uploaded to the server. Referring to fig. 7, fig. 7 is a flowchart illustrating a first embodiment of uploading an execution log according to the present embodiment.
As shown in fig. 7, after S1300, the method includes:
s1311, obtaining an execution log generated by the intelligent terminal executing the control instruction;
in this embodiment, in the process of executing the control command, the intelligent terminal collects parameters generated at each stage in the execution process to form an execution log. Wherein, the execution log comprises: the type of the control instruction, the issuing time of the control instruction, the execution duration of the control instruction, the execution result of the control instruction or the environment change parameter after the control instruction is executed.
And after the execution of the control instruction is finished, the intelligent terminal sends the generated execution log to the intelligent gateway.
S1312, sending the execution log to a preset server.
And after obtaining the execution log uploaded by the intelligent terminal, the intelligent gateway sends the execution log to the server side. And after receiving the execution log uploaded by the intelligent gateway, the server side determines whether the execution process of the intelligent terminal is normal according to the stored linkage rule. When the intelligent terminal is abnormally executed, the server side sends a warning instruction to the user terminal, or sends a control instruction for re-execution or stopping execution to the intelligent gateway according to the setting. The influence of the execution error is prevented from further expanding. By uploading the execution log generated by the operation of the intelligent terminal to the server side, the server side can monitor the execution result of the intelligent terminal, and the monitoring system can enable the server side to obtain the operation condition of the intelligent terminal and timely troubleshoot the error reason when the error occurs.
In some embodiments, when uploading the intelligent log, the intelligent gateway needs to detect the transmission rate in the transmission link to ensure that the transmission link can normally transmit the execution log, and when the transmission link fails, the execution log is cached first, and the cached execution log is uploaded to the server after the network is recovered to be normal. Referring to fig. 8, fig. 8 is a flowchart illustrating a second embodiment of uploading an execution log according to the present embodiment.
As shown in fig. 8, S1312 includes:
s1321, acquiring the transmission rate of a transmission link;
when the intelligent gateway uploads the execution log to the server, link connection needs to be established with the server to form a transmission link, and then the transmission rate of the transmission link is obtained. The transmission rate can be obtained by estimating the transmission rate of the transmission link in the current time period according to the long-time data statistics of the transmission link. The transmission rate of the transmission link can also be obtained through testing by sending a test data packet to the server side.
S1322, comparing the transmission rate with a preset rate threshold value;
and comparing the transmission rate with a preset rate threshold, wherein the rate threshold is a measurement mark for measuring whether the transmission link is normal or not. For example, the rate threshold is set to 5k/s, but the value of the rate threshold is not limited to this, and the rate threshold can be set by self according to different application scenarios.
In some embodiments, the rate threshold is a dynamic threshold, specifically, the rate threshold is directly proportional to the size of the execution log, and the larger the data amount uploaded to the execution log is, the larger the value of the rate threshold is; conversely, the smaller. The ratio of the speed threshold value to the execution log data volume can be set in a user-defined mode according to actual needs.
S1323, when the transmission rate is smaller than the rate threshold, caching the execution log in a preset cache queue;
and when the transmission rate is smaller than the rate threshold value through comparison, the intelligent terminal caches the execution log. Specifically, a cache queue is set in the intelligent gateway, and the intelligent terminal stores the execution log in the cache queue. The number of execution logs cached is limited by the size of the cache space of the intelligent terminal, for example, the number of execution logs cached by the intelligent terminal may not exceed 50. However, the number of caches is not limited to this, and may vary according to different embodiments, and specifically, the number of caches is proportional to the size of the cache space of the intelligent terminal.
In some embodiments, when the transmission link cannot be recovered for a long time and the number of the accumulated execution logs reaches the upper limit of the cache, the execution logs recording that the execution result is "successful" are deleted from the cache queue to release the cache space, and the subsequent execution logs are cached.
S1324, when the transmission rate is equal to or greater than the rate threshold, sending all the execution logs cached in the cache queue to the server side.
After caching the execution log, the intelligent gateway continuously acquires the transmission rate of the transmission link in a real-time or timing acquisition mode. And when the transmission rate is equal to or greater than the rate threshold value, all the execution logs in the cache queue are sent to the server side. When the transmission problem occurs in the external network, the execution log is cached, and the cached execution log is uploaded after the network is recovered, so that the execution log is prevented from being lost due to the network problem, and the safety of data transmission is improved.
Referring to fig. 9, fig. 9 is a schematic diagram of a basic structure of the intelligent terminal control device according to the embodiment.
As shown in fig. 9, an intelligent terminal control device includes: an acquisition module 2100, a processing module 2200, and an execution module 2300. The obtaining module 2100 is configured to obtain and store a linkage rule to be executed; the processing module 2200 is configured to generate a control instruction for controlling the intelligent terminal according to the linkage rule; the execution module 2300 is configured to send the control instruction to the intelligent terminal, so that the intelligent terminal executes an instruction task represented by the control instruction.
In some embodiments, the intelligent terminal control device further comprises: the device comprises a first obtaining submodule, a first processing submodule and a first receiving submodule. The first obtaining submodule is used for obtaining event information which is sent by a user terminal and represents rule change; the first processing submodule is used for responding the event information and sending first request information to a preset server so that the server returns a linkage rule generated by the server according to the event information according to the first request information; the first receiving submodule is used for receiving the linkage rule sent by the server side.
In some embodiments, when the user operation represented by the event information is a delete operation, the intelligent terminal control device further includes: a second processing sub-module and a second receiving sub-module. The second processing submodule is used for responding to the event information and sending second request information to a preset server side so that the server side returns deletion information generated by the server side according to the event information according to the second request information; and the second receiving submodule is used for receiving the deleting information sent by the server side and deleting the locally stored original linkage rule according to the deleting information.
In some embodiments, when the linkage rule is a timed task rule, the intelligent terminal control device further includes: a third processing submodule and a first execution submodule. The third processing submodule is used for establishing a delay task according to the linkage rule; and the first execution submodule is used for sending a control instruction to the intelligent terminal according to the linkage rule when the delay time of the delay task is achieved.
In some embodiments, when the linkage rule is a trigger task rule, the intelligent terminal control device further includes: the system comprises a second acquisition submodule, a fourth processing submodule and a second execution submodule. The second acquisition submodule is used for acquiring detection parameters uploaded by the intelligent terminal; the fourth processing submodule is used for comparing the detection parameters with the preset triggering conditions in the linkage rule; and the second execution submodule is used for sending a control instruction generated according to the linkage rule to the intelligent terminal when the detection parameter meets the trigger condition.
In some embodiments, the intelligent terminal control device further includes: a third obtaining submodule and a first sending submodule. The third obtaining submodule is used for obtaining an execution log generated by the intelligent terminal executing the control instruction; and the first sending submodule is used for sending the execution log to a preset server side.
In some embodiments, the intelligent terminal control device further includes: a fourth obtaining submodule, a fifth processing submodule, a third executing submodule and a second sending submodule. The fourth obtaining submodule is used for obtaining the transmission rate of the transmission link; the fifth processing sub-module is used for comparing the transmission rate with a preset rate threshold; the third execution submodule is used for caching the execution log in a preset cache queue when the transmission rate is smaller than the rate threshold; and the second sending submodule is used for sending all the execution logs cached in the cache queue to the server side when the transmission rate is equal to or greater than the rate threshold.
In order to solve the above technical problems, embodiments of the present invention further provide an electronic device. Referring to fig. 10, fig. 10 is a block diagram of a basic structure of the electronic device according to the embodiment.
As shown in fig. 10, the internal structure of the electronic device is schematically illustrated. The electronic device includes a processor, a non-volatile storage medium, a memory, and a network interface connected by a system bus. The non-volatile storage medium of the electronic device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable the processor to realize the intelligent terminal control method when being executed by the processor. The processor of the electronic device is used for providing calculation and control capability and supporting the operation of the whole electronic device. The memory of the electronic device may have computer readable instructions stored therein, which when executed by the processor, may cause the processor to perform a smart terminal control method. The network interface of the electronic equipment is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the present solution and does not constitute a limitation on the electronic devices to which the present solution applies, and that a particular electronic device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute specific functions of the obtaining module 2100, the processing module 2200, and the executing module 2300 in fig. 9, and the memory stores program codes and various data required for executing the modules. The network interface is used for data transmission to and from a user terminal or a server. The memory in this embodiment stores program codes and data necessary for executing all the sub-modules in the medicine sorting device, and the server can call the program codes and data of the server to execute the functions of all the sub-modules.
The present invention also provides a storage medium storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of the intelligent terminal control method according to any of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

Claims (10)

1. An intelligent terminal control method is characterized by comprising the following steps:
acquiring and storing a linkage rule to be executed;
generating a control instruction for controlling the intelligent terminal according to the linkage rule;
and sending the control instruction to the intelligent terminal so that the intelligent terminal executes an instruction task represented by the control instruction.
2. The intelligent terminal control method according to claim 1, wherein the obtaining and storing the linkage rules to be executed comprises:
acquiring event information which represents rule change and is sent by a user terminal;
responding to the event information, and sending first request information to a preset server side so that the server side returns a linkage rule generated by the server side according to the event information according to the first request information;
and receiving the linkage rule sent by the server side.
3. The intelligent terminal control method according to claim 2, wherein when the user operation represented by the event information is a delete operation, after the obtaining of the event information representing a rule change sent by the user terminal, the method comprises:
responding to the event information, sending second request information to a preset server side, so that the server side returns deletion information generated by the server side according to the event information according to the second request information;
and receiving deletion information sent by the server side, and deleting the locally stored original linkage rule according to the deletion information.
4. The intelligent terminal control method according to claim 1, wherein when the linkage rule is a timed task rule, the generating a control instruction for controlling the intelligent terminal according to the linkage rule comprises:
establishing a delay task according to the linkage rule;
and when the delay time of the delay task is achieved, sending a control instruction to the intelligent terminal according to the linkage rule.
5. The intelligent terminal control method according to claim 1, wherein when the linkage rule is a trigger task rule, the generating a control instruction for controlling the intelligent terminal according to the linkage rule comprises:
acquiring detection parameters uploaded by the intelligent terminal;
comparing the detection parameters with preset trigger conditions in the linkage rule;
and when the detection parameters meet the trigger conditions, sending a control instruction generated according to the linkage rule to the intelligent terminal.
6. The intelligent terminal control method according to claim 1, wherein after the sending the control command to the intelligent terminal, the method comprises:
acquiring an execution log generated by the intelligent terminal executing the control instruction;
and sending the execution log to a preset server side.
7. The intelligent terminal control method according to claim 6, wherein the sending the execution log to a preset server side comprises:
acquiring the transmission rate of a transmission link;
comparing the transmission rate with a preset rate threshold;
when the transmission rate is smaller than the rate threshold value, caching the execution log in a preset cache queue;
and when the transmission rate is equal to or greater than the rate threshold value, sending all the execution logs cached in the cache queue to the server side.
8. The utility model provides an intelligent terminal controlling means which characterized in that includes:
the acquisition module is used for acquiring and storing the linkage rule to be executed;
the processing module is used for generating a control instruction for controlling the intelligent terminal according to the linkage rule;
and the execution module is used for sending the control instruction to the intelligent terminal so that the intelligent terminal executes the instruction task represented by the control instruction.
9. An electronic device comprising a memory and a processor, the memory having stored therein computer-readable instructions that, when executed by the processor, cause the processor to perform the intelligent terminal control method of any one of claims 1 to 7.
10. A computer readable medium, which when executed by one or more processors, causes the one or more processors to perform the intelligent terminal control method of any one of claims 1 to 7.
CN202010068791.7A 2020-01-21 2020-01-21 Intelligent terminal control method and device, electronic equipment and storage medium Pending CN111327497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010068791.7A CN111327497A (en) 2020-01-21 2020-01-21 Intelligent terminal control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010068791.7A CN111327497A (en) 2020-01-21 2020-01-21 Intelligent terminal control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111327497A true CN111327497A (en) 2020-06-23

Family

ID=71170931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010068791.7A Pending CN111327497A (en) 2020-01-21 2020-01-21 Intelligent terminal control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111327497A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437153A (en) * 2020-11-20 2021-03-02 青岛易来智能科技股份有限公司 Equipment linkage processing method and device
CN112764351A (en) * 2020-12-18 2021-05-07 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent device, electronic device and storage medium
CN113098786A (en) * 2021-04-12 2021-07-09 深圳市欧瑞博科技股份有限公司 Intelligent gateway control method and device and computer readable storage medium
CN113114583A (en) * 2021-04-12 2021-07-13 深圳市欧瑞博科技股份有限公司 Intelligent gateway control method and device and computer readable storage medium
CN113595773A (en) * 2021-07-16 2021-11-02 珠海格力电器股份有限公司 Information processing method, device, electronic equipment and storage medium
CN113848734A (en) * 2021-08-30 2021-12-28 珠海格力电器股份有限公司 Intelligent equipment linkage control method and device
CN114666194A (en) * 2020-12-22 2022-06-24 福建天泉教育科技有限公司 Equipment management method and terminal
CN117111483A (en) * 2023-02-20 2023-11-24 荣耀终端有限公司 Intelligent equipment control method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160219053A1 (en) * 2015-01-27 2016-07-28 Danzhi Cai Intelligent terminal and interactive control system and interactive control method using same
CN108306771A (en) * 2018-02-09 2018-07-20 腾讯科技(深圳)有限公司 Log reporting method, apparatus and system
CN109104473A (en) * 2018-07-27 2018-12-28 深圳绿米联创科技有限公司 A kind of control method, control device, control system and gateway
CN110209639A (en) * 2019-04-16 2019-09-06 深圳绿米联创科技有限公司 Information processing method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160219053A1 (en) * 2015-01-27 2016-07-28 Danzhi Cai Intelligent terminal and interactive control system and interactive control method using same
CN108306771A (en) * 2018-02-09 2018-07-20 腾讯科技(深圳)有限公司 Log reporting method, apparatus and system
CN109104473A (en) * 2018-07-27 2018-12-28 深圳绿米联创科技有限公司 A kind of control method, control device, control system and gateway
CN110209639A (en) * 2019-04-16 2019-09-06 深圳绿米联创科技有限公司 Information processing method, apparatus and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437153A (en) * 2020-11-20 2021-03-02 青岛易来智能科技股份有限公司 Equipment linkage processing method and device
CN112764351A (en) * 2020-12-18 2021-05-07 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent device, electronic device and storage medium
CN114666194A (en) * 2020-12-22 2022-06-24 福建天泉教育科技有限公司 Equipment management method and terminal
CN114666194B (en) * 2020-12-22 2023-10-20 福建天泉教育科技有限公司 Equipment management method and terminal
CN113098786A (en) * 2021-04-12 2021-07-09 深圳市欧瑞博科技股份有限公司 Intelligent gateway control method and device and computer readable storage medium
CN113114583A (en) * 2021-04-12 2021-07-13 深圳市欧瑞博科技股份有限公司 Intelligent gateway control method and device and computer readable storage medium
CN113595773A (en) * 2021-07-16 2021-11-02 珠海格力电器股份有限公司 Information processing method, device, electronic equipment and storage medium
CN113595773B (en) * 2021-07-16 2022-05-17 珠海格力电器股份有限公司 Information processing method, device, electronic equipment and storage medium
CN113848734A (en) * 2021-08-30 2021-12-28 珠海格力电器股份有限公司 Intelligent equipment linkage control method and device
CN117111483A (en) * 2023-02-20 2023-11-24 荣耀终端有限公司 Intelligent equipment control method and system

Similar Documents

Publication Publication Date Title
CN111327497A (en) Intelligent terminal control method and device, electronic equipment and storage medium
CN102901180B (en) A kind of method and system controlling air-conditioning
CN103064390B (en) Room environment remote monitoring system and monitoring method thereof based on Internet of Things
CN107370644B (en) Linkage control method and device, computer readable storage medium and computer equipment
CN113759791A (en) Monitoring system, method and device based on intelligent gateway and intelligent gateway
CN111787064B (en) Expert system-based Internet of things linkage control method and system
CN113465121A (en) Remote monitoring system based on air conditioner of Internet of things and control method thereof
CN112383509A (en) Internet of things equipment safety monitoring system and method based on data flow
CN111341063A (en) Intelligent control system, method and device for safety early warning and monitoring of electric equipment and terminal equipment
CN113821242B (en) Intelligent firmware matching method and system
CN111221366A (en) Control method and system for power equipment in cable tunnel and computer equipment
CN114422323A (en) Combined monitoring method and device for Internet of things equipment and electronic equipment
CN104076704A (en) Terminal and control method thereof
CN106331596B (en) Household monitoring method and system
WO2024060657A1 (en) Method and apparatus for monitoring whole-house air environment, and device and storage medium
CN116980958A (en) Radio equipment electric fault monitoring method and system based on data identification
CN111981632A (en) Information notification method and device and air conditioning system
CN114116343A (en) Equipment testing method and device, electronic equipment and storage medium
CN113572837A (en) Power grid monitoring system data processing service scheduling method based on fragmentation technology
CN209784760U (en) Intelligent home management system
CN112865312A (en) Power dispatching system and power data processing method
CN112862120A (en) Power maintenance and repair supervision system and method
CN103115414B (en) Communication equipment room energy-conserving controls system and method
CN115473919B (en) Sensing data access method, system, device, storage medium and equipment for power transmission and transformation Internet of things
Wang et al. Design and Realization of Smart Home Security System Based on AWS

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200623

RJ01 Rejection of invention patent application after publication