CN116107231B - Log processing method, device and system for intelligent household equipment - Google Patents

Log processing method, device and system for intelligent household equipment Download PDF

Info

Publication number
CN116107231B
CN116107231B CN202310405714.XA CN202310405714A CN116107231B CN 116107231 B CN116107231 B CN 116107231B CN 202310405714 A CN202310405714 A CN 202310405714A CN 116107231 B CN116107231 B CN 116107231B
Authority
CN
China
Prior art keywords
control
target controlled
node
target
equipment
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
CN202310405714.XA
Other languages
Chinese (zh)
Other versions
CN116107231A (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.)
Shenzhen SDMC Technology Co Ltd
Original Assignee
Shenzhen SDMC 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 Shenzhen SDMC Technology Co Ltd filed Critical Shenzhen SDMC Technology Co Ltd
Priority to CN202310405714.XA priority Critical patent/CN116107231B/en
Publication of CN116107231A publication Critical patent/CN116107231A/en
Application granted granted Critical
Publication of CN116107231B publication Critical patent/CN116107231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/80Homes; Buildings
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • G16Y20/20Information sensed or collected by the things relating to the thing itself
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives
    • 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/2823Reporting information sensed by appliance or service execution status of appliance services in a home automation network
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The utility model provides a method, a device and a system for processing logs of intelligent household equipment, which relate to the technical field of intelligent household control, the system comprises a server, a client and at least one controlled equipment, each controlled equipment corresponds to a first identifier, each controlled equipment comprises at least one sub-node, each sub-node corresponds to a second identifier, each sub-node comprises at least one state, each state of each sub-node corresponds to a state value, the server receives a household equipment control request sent by the client, control log information is generated, the control log information comprises control failure information, time information and control mode information, a control instruction is sent to a first target controlled equipment, so that the first target controlled sub-node obtains a target state value from the first target controlled equipment, and an operation corresponding to the target state value is executed, and the problem that the log information of the intelligent household equipment in the prior art is not detailed is solved.

Description

Log processing method, device and system for intelligent household equipment
Technical Field
The invention relates to the technical field of intelligent home control, in particular to a method, a device and a system for processing logs of intelligent home equipment.
Background
The prior art is not very detailed in the collection of control logs of smart home devices, such as a smart home device, which has a distinction between manual control and remote control and can be controlled to a node below the device (such as a switch node 1, a switch node 2 and a switch node 3 under a three-way switch). The prior art takes measures that after the node state of the equipment changes, the information is uploaded to a server, and then the equipment control log is generated, so that whether the intelligent household equipment is manually controlled or remotely controlled cannot be distinguished, and the equipment control log cannot be generated when the remote control fails, so that the intelligent household equipment control log is not detailed enough.
Disclosure of Invention
The invention aims to overcome the defect that log information of intelligent household equipment in the prior art is not detailed enough, and provides a method, a device and a system for processing the log of the intelligent household equipment.
In order to solve the technical problems, the embodiment of the invention discloses at least a method, a device and a system for processing logs of intelligent household equipment.
In a first aspect, a disclosed embodiment of the present invention provides a method for processing a log of an intelligent home device, where the method is used in a log management system of an intelligent home device, where the log management system of an intelligent home device includes a server, a client, and at least one controlled device, each controlled device corresponds to a first identifier, each controlled device includes at least one child node, each child node corresponds to a second identifier, each child node includes at least one state, each state of each child node corresponds to a state value, and the method is implemented by the server, and includes:
Receiving a home equipment control request sent by a client, wherein the home equipment control request comprises a first identifier of first target controlled equipment, a second identifier of a first target controlled sub-node of the first target controlled equipment, and target state value and time information of the first target controlled sub-node;
determining a first target controlled device according to a first identifier of the first target controlled device and a second identifier of the first target controlled child node;
generating control log information of the first target controlled device, wherein the control log information comprises a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information and control mode information, the control state information is control failure, and the control mode information comprises remote control and manual control;
and sending a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device and executes the operation corresponding to the target state value.
Optionally, the method further comprises: receiving first control result information sent by second target controlled equipment, wherein the first control result information comprises a first identifier of the second target controlled equipment, a second identifier of a second target controlled sub-node of the second target controlled equipment and a current state value of the second target controlled sub-node; judging whether control log information of the second target controlled sub-node exists in a log information base according to the first identification of the second target controlled equipment and the second identification of the second target controlled sub-node; if the control failure identification exists and the state information in the control log information of the second target controlled sub-node is the control failure identification, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be remote control; if the control mode information does not exist, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be manually controlled.
In a second aspect, a disclosed embodiment of the present invention provides a method for processing a log of an intelligent home device, where the method is used in a log management system of an intelligent home device, where the log management system of an intelligent home device includes a server, a client, and at least one controlled device, each controlled device corresponds to a first identifier, each controlled device includes at least one child node, each child node corresponds to a second identifier, each child node includes at least one state, each state of each child node corresponds to a state value, and the method is implemented by the controlled device, and includes:
receiving a control instruction, wherein the control instruction comprises a second identifier of a third target controlled child node and a target state value of the third target controlled child node;
executing the operation corresponding to the target state value of the third target controlled child node;
if the control instruction is sent by the server, after the operation is successful, sending second control result information to the server, wherein the second control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled sub-node of the third target controlled equipment and a result state value of the third target controlled sub-node;
And if the control instruction is triggered manually, after the operation is successful, sending third control result information to the server, wherein the third control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled sub-node of the third target controlled equipment and a result state value of the third target controlled sub-node.
Optionally, the method further comprises: if the control instruction is sent by the server or the control instruction is triggered manually, the current state is maintained after the operation fails.
In a third aspect, an embodiment of the present disclosure provides a server, configured to be used in an intelligent home device log management system, where the intelligent home device log management system includes a server, a client, and at least one controlled device, each controlled device corresponds to a first identifier, each controlled device includes at least one child node, each child node corresponds to a second identifier, each child node includes at least one state, each state of each child node corresponds to a state value, and the server includes:
the control request receiving module is used for receiving a household equipment control request sent by a client, wherein the household equipment control request comprises a first identifier of first target controlled equipment, a second identifier of a first target controlled sub-node of the first target controlled equipment, and target state value and time information of the first target controlled sub-node;
The target controlled device determining module is used for determining the first target controlled device according to the first identifier of the first target controlled device and the second identifier of the first target controlled child node;
the log information generation module is used for generating control log information of the first target controlled device, wherein the control log information comprises a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information and control mode information, the control state information is control failure, and the control mode information comprises remote control and manual control;
and the control instruction sending module is used for sending a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device and executes the operation corresponding to the target state value.
In a fourth aspect, an embodiment of the present disclosure provides an intelligent home device, where the intelligent home device is provided with a first identifier, and includes at least one sub-node, each sub-node of each controlled device corresponds to a second identifier, each sub-node includes at least one state, each state of each sub-node corresponds to a state value, and the intelligent home device includes:
The control instruction receiving module is used for receiving a control instruction, wherein the control instruction comprises a second identifier of a third target controlled child node and a target state value of the third target controlled child node;
the operation execution module is used for executing the operation corresponding to the target state value of the third target controlled child node;
and the control result sending module is used for sending second control result information to the server after the operation is successful if the control instruction is sent by the server, wherein the second control result information comprises a first identifier of a third target controlled device, a second identifier of a third target controlled sub-node of the third target controlled device and a result state value of the third target controlled sub-node, and sending third control result information to the server after the operation is successful if the control instruction is manually triggered, wherein the third control result information comprises the first identifier of the third target controlled device, the second identifier of the third target controlled sub-node of the third target controlled device and the result state value of the third target controlled sub-node.
In a fifth aspect, an embodiment of the present disclosure further provides a log processing system for an intelligent home device, including:
The method comprises the steps that a client sends a home equipment control request to a server and sends a control instruction to a controlled device, wherein the home equipment control request comprises a first identifier of a first target controlled device, a second identifier of a first target controlled sub-node of the first target controlled device, and a target state value and time information of the first target controlled sub-node;
the server receives a home equipment control request sent by the client; determining first target controlled equipment according to a first identifier of the first target controlled equipment and a second identifier of the first target controlled child node; generating control log information of the first target controlled device, wherein the control log information comprises a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information and control mode information, the control state information comprises control failure and control success, and the control mode information comprises remote control and manual control; according to the first identification of the first target controlled device, the second identification of the first target controlled sub-node and the target state value of the first target controlled sub-node, a control instruction is sent to the first target controlled device, so that the first target controlled sub-node obtains the target state value from the first target controlled device and executes the operation corresponding to the target state value;
The controlled device receives a control instruction, wherein the control instruction comprises a second identifier of a third target controlled child node and a target state value of the third target controlled child node; executing the operation corresponding to the target state value of the third target controlled child node; if the control instruction is sent by the server, after the operation is successful, sending second control result information to the server, wherein the second control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled sub-node of the third target controlled equipment and a result state value of the third target controlled sub-node; and if the control instruction is triggered manually, after the operation is successful, sending third control result information to the server, wherein the third control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled sub-node of the third target controlled equipment and a result state value of the third target controlled sub-node.
Optionally, the server is further configured to receive first control result information sent by a second target controlled device, where the first control result information includes a first identifier of the second target controlled device, a second identifier of a second target controlled child node of the second target controlled device, and a current state value of the second target controlled child node; judging whether control log information of the second target controlled sub-node exists in a log information base according to the first identification of the second target controlled equipment and the second identification of the second target controlled sub-node; if the control failure identification exists and the state information in the control log information of the second target controlled sub-node is the control failure identification, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be remote control; if the control mode information does not exist, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be manually controlled.
In a sixth aspect, the disclosed embodiments of the invention also provide a computer apparatus comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect, or any of the possible implementations of the first aspect.
In a seventh aspect, the disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the first aspect, or any of the possible implementation manners of the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps that a server receives a home equipment control request sent by a client to generate control log information of controlled equipment, the control log information comprises a first identifier of first target controlled equipment, a second identifier of a first target controlled sub-node, control state information, time information and control mode information, the control state information is control failure, and according to the first identifier of the first target controlled equipment, the second identifier of the first target controlled sub-node and a target state value of the first target controlled sub-node, a control instruction is sent to the first target controlled equipment, so that the first target controlled sub-node obtains the target state value from the first target controlled equipment, and executes operation corresponding to the target state value.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flowchart of a method for processing logs of smart home devices according to an embodiment of the disclosure;
fig. 2 shows a flowchart of another method for processing logs of smart home devices according to an embodiment of the disclosure;
fig. 3 shows a flowchart of yet another method for processing logs of smart home devices according to an embodiment of the present disclosure;
FIG. 4 is a functional block diagram of a server according to an embodiment of the present disclosure;
fig. 5 shows a functional block diagram of an intelligent home device according to an embodiment of the present disclosure;
fig. 6 is a schematic functional structure diagram of a log processing system of an intelligent home device according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a computer device according to an embodiment of the present disclosure;
FIG. 8 is a schematic diagram of a remote control process in accordance with an embodiment of the present disclosure;
fig. 9 shows a schematic diagram of a manual control flow in a disclosed embodiment of the invention.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying summary.
Example 1
As shown in fig. 1, a flowchart of a method for processing a log of an intelligent home device according to an embodiment of the present invention is provided, where the method is used in an intelligent home device log management system, and the intelligent home device log management system includes a server, a client, and at least one controlled device, each controlled device corresponds to a first identifier, each controlled device includes at least one sub-node, each sub-node corresponds to a second identifier, each sub-node includes at least one state, and each state of each sub-node corresponds to a state value, and the method is implemented by the server, and includes:
S11: and receiving a home equipment control request sent by the client, wherein the home equipment control request comprises a first identifier of first target controlled equipment, a second identifier of a first target controlled sub-node of the first target controlled equipment, and target state value and time information of the first target controlled sub-node.
S12: and determining the first target controlled device according to the first identifier of the first target controlled device and the second identifier of the first target controlled child node.
S13: generating control log information of a first target controlled device, wherein the control log information comprises a first identifier of the first target controlled device, a second identifier of a first target controlled child node, control state information, time information and control mode information, the control state information is control failure, and the control mode information comprises remote control and manual control.
S14: and sending a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device and executes the operation corresponding to the target state value.
It may be appreciated that, in the technical solution provided in this embodiment, the server receives the home device control request sent by the client, generates a piece of control log information of the controlled device, where the control log information includes a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information, and control mode information, where the control state information is control failure, and sends a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node, and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device, and executes an operation corresponding to the target state value.
Example 2
As an improvement of embodiment 1, as shown in fig. 2, another flow chart of a method for processing a log of an intelligent home device according to an embodiment of the present invention is provided, where the method is used in a log management system of an intelligent home device, and the log management system of an intelligent home device includes a server, a client, and at least one controlled device, each controlled device corresponds to a first identifier, each controlled device includes at least one child node, each child node corresponds to a second identifier, each child node includes at least one state, and each state of each child node corresponds to a state value, and the method is implemented by the server, and includes:
S21: and receiving a home equipment control request sent by the client, wherein the home equipment control request comprises a first identifier of first target controlled equipment, a second identifier of a first target controlled sub-node of the first target controlled equipment, and target state value and time information of the first target controlled sub-node.
S22: and determining the first target controlled device according to the first identifier of the first target controlled device and the second identifier of the first target controlled child node.
S23: generating control log information of a first target controlled device, wherein the control log information comprises a first identifier of the first target controlled device, a second identifier of a first target controlled child node, control state information, time information and control mode information, the control state information is control failure, and the control mode information comprises remote control and manual control.
S24: and sending a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device and executes the operation corresponding to the target state value.
S25: and receiving first control result information sent by the second target controlled device, wherein the first control result information comprises a first identifier of the second target controlled device, a second identifier of a second target controlled sub-node of the second target controlled device and a current state value of the second target controlled sub-node.
S26: judging whether control log information of the second target controlled sub-node exists in the log information base according to the first identification of the second target controlled device and the second identification of the second target controlled sub-node.
S27: if the control failure identification exists and the state information in the control log information of the second target controlled sub-node is the control failure identification, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be remotely controlled.
S28: if the control mode information does not exist, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be manually controlled.
It may be appreciated that, in the technical solution provided in this embodiment, the server receives the home device control request sent by the client, generates a piece of control log information of the controlled device, where the control log information includes a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information, and control mode information, where the control state information is control failure, and sends a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node, and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device, and executes an operation corresponding to the target state value.
Example 3
As shown in fig. 3, an embodiment of the present invention further provides a method for processing a log of an intelligent home device, where the method is used in a log management system of an intelligent home device, and the log management system of an intelligent home device includes a server, a client, and at least one controlled device, where each controlled device corresponds to a first identifier, each controlled device includes at least one child node, each child node corresponds to a second identifier, each child node includes at least one state, and each state of each child node corresponds to a state value, and the method is implemented by the controlled device, and includes:
s31: and receiving a control instruction, wherein the control instruction comprises a second identifier of the third target controlled child node and a target state value of the third target controlled child node.
S32: and executing the operation corresponding to the target state value of the third target controlled child node.
S33: if the control instruction is sent by the server, after the operation is successful, sending second control result information to the server, wherein the second control result information comprises a first identifier of the third target controlled device, a second identifier of a third target controlled child node of the third target controlled device and a result state value of the third target controlled child node.
S34: if the control instruction is triggered manually, after the operation is successful, third control result information is sent to the server, wherein the third control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled child node of the third target controlled equipment and a result state value of the third target controlled child node.
S35: if the control command is sent by the server or the control command is triggered manually, the current state is maintained after the operation fails.
It may be appreciated that, in the technical solution provided in this embodiment, the server receives the home device control request sent by the client, generates a piece of control log information of the controlled device, where the control log information includes a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information, and control mode information, where the control state information is control failure, and sends a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node, and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device, and executes an operation corresponding to the target state value.
Example 4
As shown in fig. 4, an embodiment of the present invention further provides a server, configured to be used in an intelligent home device log management system, where the intelligent home device log management system includes a server, a client, and at least one controlled device, each controlled device corresponds to a first identifier, each controlled device includes at least one child node, each child node corresponds to a second identifier, each child node includes at least one state, each state of each child node corresponds to a state value, and the server includes:
the control request receiving module 41 is configured to receive a home device control request sent by a client, where the home device control request includes a first identifier of a first target controlled device, a second identifier of a first target controlled child node of the first target controlled device, and a target state value and time information of the first target controlled child node;
a target controlled device determining module 42, configured to determine a first target controlled device according to a first identifier of the first target controlled device and a second identifier of the first target controlled child node;
the log information generating module 43 is configured to generate a piece of control log information of the first target controlled device, where the control log information includes a first identifier of the first target controlled device, a second identifier of the first target controlled child node, control state information, time information, and control mode information, and the control state information is control failure, and the control mode information includes remote control and manual control;
The control instruction sending module 44 is configured to send a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node, and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device, and performs an operation corresponding to the target state value.
In some alternative embodiments, the server further comprises:
the control result receiving module 45 is configured to receive first control result information sent by a second target controlled device, where the first control result information includes a first identifier of the second target controlled device, a second identifier of a second target controlled child node of the second target controlled device, and a current state value of the second target controlled child node.
The log information query module 46 is configured to determine whether control log information of the second target controlled child node exists in the log information base according to the first identifier of the second target controlled device and the second identifier of the second target controlled child node.
The log information modifying module 47 is configured to modify, if the log information exists and the state information in the control log information of the second target controlled child node is a control failure identifier, the state information in the control log information of the second target controlled child node to control successfully, and modify the control mode information in the control log information of the second target controlled child node to remote control. If the control mode information does not exist, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be manually controlled.
It may be appreciated that, in the technical solution provided in this embodiment, the server receives the home device control request sent by the client, generates a piece of control log information of the controlled device, where the control log information includes a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information, and control mode information, where the control state information is control failure, and sends a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node, and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device, and executes an operation corresponding to the target state value.
Example 5
As shown in fig. 5, an embodiment of the present invention further provides an intelligent home device, where the intelligent home device is provided with a first identifier, and includes at least one sub-node, each sub-node of each controlled device corresponds to a second identifier, each sub-node includes at least one state, each state of each sub-node corresponds to a state value, and the intelligent home device includes:
A control instruction receiving module 51, configured to receive a control instruction, where the control instruction includes a second identifier of a third target controlled child node and a target state value of the third target controlled child node;
the operation execution module 52 is configured to execute an operation corresponding to the target state value of the third target controlled child node;
the control result sending module 53 is configured to send, if the control instruction is sent by the server, second control result information to the server after the operation is successful, where the second control result information includes a first identifier of the third target controlled device, a second identifier of the third target controlled sub-node of the third target controlled device, and a result state value of the third target controlled sub-node, and if the control instruction is triggered manually, send, after the operation is successful, third control result information to the server, where the third control result information includes the first identifier of the third target controlled device, the second identifier of the third target controlled sub-node of the third target controlled device, and the result state value of the third target controlled sub-node.
In some alternative embodiments, control result sending module 53: if the control command is sent by the server or the control command is triggered manually, the current state is maintained after the operation fails.
It may be appreciated that, in the technical solution provided in this embodiment, the server receives the home device control request sent by the client, generates a piece of control log information of the controlled device, where the control log information includes a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information, and control mode information, where the control state information is control failure, and sends a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node, and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device, and executes an operation corresponding to the target state value.
Example 6
As shown in fig. 6, an embodiment of the present invention further provides a log processing system of an intelligent home device, including:
the client 61 sends a home equipment control request to the server and sends a control instruction to the controlled equipment, wherein the home equipment control request comprises a first identifier of the first target controlled equipment, a second identifier of a first target controlled sub-node of the first target controlled equipment, a target state value of the first target controlled sub-node and time information;
The server 62 receives a home equipment control request sent by the client; determining first target controlled equipment according to the first identification of the first target controlled equipment and the second identification of the first target controlled child node; generating control log information of a first target controlled device, wherein the control log information comprises a first identifier of the first target controlled device, a second identifier of a first target controlled child node, control state information, time information and control mode information, the control state information is control failure, and the control mode information comprises remote control and manual control; according to a first identifier of first target controlled equipment, a second identifier of a first target controlled sub-node and a target state value of the first target controlled sub-node, a control instruction is sent to the first target controlled equipment, so that the first target controlled sub-node obtains the target state value from the first target controlled equipment, executes an operation corresponding to the target state value, and receives first control result information sent by second target controlled equipment, wherein the first control result information comprises the first identifier of the second target controlled equipment, the second identifier of the second target controlled sub-node of the second target controlled equipment and the current state value of the second target controlled sub-node; judging whether control log information of the second target controlled sub-node exists in a log information base according to the first identification of the second target controlled equipment and the second identification of the second target controlled sub-node; if the control failure identification exists and the state information in the control log information of the second target controlled sub-node is the control failure identification, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be remote control; if the control mode information does not exist, modifying the state information in the control log information of the second target controlled sub-node into control success, and modifying the control mode information in the control log information of the second target controlled sub-node into manual control;
The controlled device 63 receives a control instruction, where the control instruction includes a second identifier of the third target controlled child node and a target state value of the third target controlled child node; executing the operation corresponding to the target state value of the third target controlled child node; if the control instruction is sent by the server, after the operation is successful, sending second control result information to the server, wherein the second control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled child node of the third target controlled equipment and a result state value of the third target controlled child node; if the control instruction is triggered manually, after the operation is successful, third control result information is sent to the server, wherein the third control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled child node of the third target controlled equipment and a result state value of the third target controlled child node.
In some optional embodiments, the server 61 is further configured to receive first control result information sent by the second target controlled device, where the first control result information includes a first identifier of the second target controlled device, a second identifier of a second target controlled child node of the second target controlled device, and a current state value of the second target controlled child node; judging whether control log information of the second target controlled sub-node exists in a log information base according to the first identification of the second target controlled equipment and the second identification of the second target controlled sub-node; if the control failure identification exists, the state information in the control log information of the second target controlled sub-node is modified to be successful in control, and the control mode information in the control log information of the second target controlled sub-node is modified to be remote control; if the control mode information does not exist, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be manually controlled.
It may be appreciated that, in the technical solution provided in this embodiment, the server receives the home device control request sent by the client, generates a piece of control log information of the controlled device, where the control log information includes a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information, and control mode information, where the control state information is control failure, and sends a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node, and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device, and executes an operation corresponding to the target state value.
Example 7
Based on the same technical concept, the embodiment of the application further provides a computer device, which comprises a memory 1 and a processor 2, as shown in fig. 7, the memory 1 stores a computer program, and the processor 2 implements the log processing method of any one of the above-mentioned intelligent home devices when executing the computer program.
The memory 1 includes at least one type of readable storage medium including flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 1 may in some embodiments be an internal storage unit of the smart home device log processing system, such as a hard disk. The memory 1 may in other embodiments also be an external storage device of a Smart home device log processing system, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc. Further, the memory 1 may also include both an internal storage unit and an external storage device of the log processing system of the smart home device. The memory 1 may be used not only for storing application software installed in the smart home device log processing system and various types of data, such as codes of the smart home device log processing program, but also for temporarily storing data that has been output or is to be output.
The processor 2 may in some embodiments be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip for running program code or processing data stored in the memory 1, for example executing a smart home device log processing program or the like.
It may be appreciated that, in the technical solution provided in this embodiment, the server receives the home device control request sent by the client, generates a piece of control log information of the controlled device, where the control log information includes a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information, and control mode information, where the control state information is control failure, and sends a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node, and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device, and executes an operation corresponding to the target state value.
In order to facilitate the reader to understand the technical scheme of the embodiment of the invention, the scheme is described in detail below through specific examples.
In order to collect device control logs when the remote control of the intelligent home device fails and accurately distinguish and acquire operation names and control results of the remote or manual control of the intelligent home device, the following technical scheme is adopted.
Firstly, a unique identifier is set for the intelligent household equipment in a server, a unique identifier and a limited value are set for each node of the intelligent household equipment, and an operation name is set for each value (for example, an intelligent three-way switch is named as point1 for the node 1, and two values of point 1: 1 represents an opening operation, 0 represents a closing operation, and the same is true for the node 2 and the node 3).
The first step: to prevent failure of the control device, the device does not report a message, so the server generates a device control log (including, but not limited to, a device unique identifier, a node value and a corresponding operation name, time) and marks it as a control failure by default before issuing a control instruction. And then issuing a control instruction.
And a second step of: when the state of the equipment node changes, the unique identifier of the equipment, the unique identifier of the node and the current state value of the node are reported to a server. And the server matches the equipment control log and the operation name generated in the first step according to the equipment unique identifier, the unique identifier of the node and the current state value of the node. If the matching is successful, the operation is marked as successful, and the operation name and the control result can be accurately obtained through the operation. If the device fails to execute, no status value is reported, but in the first step, a device control log marked as control failure is generated, so that even if the remote control device fails, the device control log can be generated.
Remote control process referring to fig. 8, the principle of remote control is to set a certain value for a node of a device. When the client remotely controls the equipment, equipment control logs are generated simultaneously, and the equipment control logs comprise, but are not limited to, equipment unique identifiers, unique identifiers of equipment nodes, values set by the equipment nodes and time. And marks the log as operation failure and remote control type by default. After the equipment node receives the control instruction and executes the control instruction successfully, reporting the unique identifier of the equipment and the unique identifier of the equipment node and the current value of the equipment node to a server, receiving the message by the server, comparing the unique identifier of the node and the value of the node with the equipment control log marked as failed and remote control type in the server through the unique identifier of the equipment, if the equipment control log is matched, removing the operation name set for the value in the server according to the value of the node, recording the operation name into the operation record, and finally marking the control log as successful operation.
Manual control process referring to fig. 9, when a device is manually controlled, the server does not first generate a device control log that is marked as control failure. After a certain node of the device is manually controlled, the device reports the unique identifier of the device, the unique identifier of the device node and the current value of the device node to the server as usual, the server receives the message, and the unique identifier of the node and the value of the node are compared with the device control log marked as failed in the server through the unique identifier of the device, at the moment, the device control log marked as operation failure is not generated, and the device control log with the type of manual control and successful operation is generated when the comparison fails. And then the operation names set for the values in the server are matched according to the values of the nodes, and the operation names are recorded into the operation records. The manual control device can also generate a device control log at this time. And can distinguish between manual control and remote control.
Remote control: with reference to fig. 9, the specific flow is as follows: the client initiates a control equipment request to the server, and the server receives the control equipment request and generates an equipment control log. The server marks the device control log as a remote control type. The server defaults to marking the device control log as an operation failure. The service sends a control instruction to the intelligent device. The intelligent device receives the control instruction. The intelligent device executes the control instruction. If the intelligent device fails to execute the control instruction, the device control log does not need to be processed, because the server has identified the device control log as failed. The intelligent device successfully executes the control instruction, and reports an execution result, wherein the execution result comprises a device unique identifier, a node unique identifier and a node current value. The server receives the execution result. And the server matches the generated equipment control log with the unique identifier of the node and the current value of the node according to the unique identifier of the equipment. If the server-side matching device control log fails, the device control log does not need to be processed, and the server defaults to identify the device control log as failed, the server-side matching device control log is successful, the operation name corresponding to the current value of the node is continuously queried, the server-side writes the operation name into the device control log, and the server-side marks the device control log as successful operation.
The disclosed embodiments of the present invention also provide a computer readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps of the method for processing logs of smart home devices in the method embodiment described above. Wherein the storage medium may be a volatile or nonvolatile computer readable storage medium.
The computer program product of the method for processing the log of the smart home device provided by the embodiment of the invention comprises a computer readable storage medium storing program codes, and the instructions included in the program codes can be used for executing the steps of the method for processing the log of the smart home device in the embodiment of the method, and the embodiment of the method can be referred to specifically, and will not be repeated here.
The disclosed embodiments also provide a computer program which, when executed by a processor, implements any of the methods of the previous embodiments. The computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present invention, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present invention, unless otherwise indicated, the meaning of "plurality" means at least two.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the invention, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the invention.

Claims (8)

1. The method is characterized in that the method is used for an intelligent household equipment log management system, the intelligent household equipment log management system comprises a server, a client and at least one controlled equipment, each controlled equipment corresponds to a first identifier, each controlled equipment comprises at least one sub-node, each sub-node corresponds to a second identifier, each sub-node comprises at least one state, each state of each sub-node corresponds to a state value, the method is realized by the server, the server generates an equipment control log before issuing a control instruction, and the equipment control log is marked as a control failure and a remote control type by default, and then the control instruction is issued; after the control instruction of the intelligent home equipment is successfully executed, uploading a message to a server, when the state of a node of the equipment is changed, comparing the message with equipment control logs marked as control failure and remote control type in the server, if the control instruction is matched with the equipment control logs, judging that the control instruction is successfully executed, modifying default marked as control failure into control success, if the control instruction is not successfully executed, not modifying, when the control instruction is manually controlled, not generating the equipment control logs marked as control failure by the server, after manually controlling a certain node of the equipment, reporting the message to the server by the equipment as usual, and comparing the message with the equipment control logs marked as failure and remote control type in the server, wherein the comparison fails at the moment, and generating the equipment control logs with the types of manual control and operation success, wherein the method comprises the following steps:
Receiving a home equipment control request sent by a client, wherein the home equipment control request comprises a first identifier of first target controlled equipment, a second identifier of a first target controlled sub-node of the first target controlled equipment, and target state value and time information of the first target controlled sub-node;
determining a first target controlled device according to a first identifier of the first target controlled device and a second identifier of the first target controlled child node;
generating control log information of the first target controlled device, wherein the control log information comprises a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information and control mode information, the control state information is control failure, and the control mode information comprises remote control and manual control;
according to the first identification of the first target controlled device, the second identification of the first target controlled sub-node and the target state value of the first target controlled sub-node, a control instruction is sent to the first target controlled device, so that the first target controlled sub-node obtains the target state value from the first target controlled device and executes the operation corresponding to the target state value;
Receiving first control result information sent by second target controlled equipment, wherein the first control result information comprises a first identifier of the second target controlled equipment, a second identifier of a second target controlled sub-node of the second target controlled equipment and a current state value of the second target controlled sub-node;
judging whether control log information of the second target controlled sub-node exists in a log information base according to the first identification of the second target controlled equipment and the second identification of the second target controlled sub-node;
if the control failure identification exists and the state information in the control log information of the second target controlled sub-node is the control failure identification, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be remote control;
if the control mode information does not exist, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be manually controlled.
2. The method is used for an intelligent household equipment log management system, the intelligent household equipment log management system comprises a server, a client and at least one controlled equipment, each controlled equipment corresponds to a first identifier, each controlled equipment comprises at least one sub-node, each sub-node corresponds to a second identifier, each sub-node comprises at least one state, each state of each sub-node corresponds to a state value, and the method is realized by the controlled equipment and comprises the following steps:
Receiving a control instruction, wherein the control instruction comprises a second identifier of a third target controlled child node and a target state value of the third target controlled child node;
executing the operation corresponding to the target state value of the third target controlled child node;
if the control instruction is sent by the server, after the operation is successful, sending second control result information to the server, wherein the second control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled sub-node of the third target controlled equipment and a result state value of the third target controlled sub-node;
and if the control instruction is triggered manually, after the operation is successful, sending third control result information to the server, wherein the third control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled sub-node of the third target controlled equipment and a result state value of the third target controlled sub-node.
3. The smart home device log processing method of claim 2, further comprising:
if the control instruction is sent by the server or the control instruction is triggered manually, the current state is maintained after the operation fails.
4. The server is characterized by being used for an intelligent household equipment log management system, wherein the intelligent household equipment log management system comprises a server, a client and at least one controlled equipment, each controlled equipment corresponds to a first identifier, each controlled equipment comprises at least one sub-node, each sub-node corresponds to a second identifier, each sub-node comprises at least one state, each state of each sub-node corresponds to a state value, an equipment control log is generated before a control instruction is issued, the equipment control log is marked as a control failure and a remote control type by default, and then the control instruction is issued; after the control instruction of the intelligent home equipment is successfully executed, uploading a message to a server, when the state of a node of the equipment is changed, comparing the message with equipment control logs marked as control failure and remote control type in the server, if the control instruction is matched with the equipment control logs, judging that the control instruction is successfully executed, modifying default marked as control failure into control success, if the control instruction is not successfully executed, not modifying, when the control instruction is manually controlled, not generating the equipment control logs marked as control failure by the server, after manually controlling a certain node of the equipment, reporting the message to the server by the equipment as usual, and comparing the message with the equipment control logs marked as failure and remote control type in the server, wherein the comparison fails at the moment, and generating the equipment control logs with the types of manual control and operation success, wherein the server comprises:
The control request receiving module is used for receiving a household equipment control request sent by a client, wherein the household equipment control request comprises a first identifier of first target controlled equipment, a second identifier of a first target controlled sub-node of the first target controlled equipment, and target state value and time information of the first target controlled sub-node;
the target controlled device determining module is used for determining the first target controlled device according to the first identifier of the first target controlled device and the second identifier of the first target controlled child node;
the log information generation module is used for generating control log information of the first target controlled device, wherein the control log information comprises a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information and control mode information, the control state information is control failure, and the control mode information comprises remote control and manual control;
a control instruction sending module, configured to send a control instruction to the first target controlled device according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node, and the target state value of the first target controlled sub-node, so that the first target controlled sub-node obtains the target state value from the first target controlled device, and executes an operation corresponding to the target state value;
The control result receiving module is used for receiving first control result information sent by second target controlled equipment, wherein the first control result information comprises a first identifier of the second target controlled equipment, a second identifier of a second target controlled child node of the second target controlled equipment and a current state value of the second target controlled child node;
the log information query module is used for judging whether control log information of the second target controlled sub-node exists in a log information base according to the first identifier of the second target controlled device and the second identifier of the second target controlled sub-node;
the log information modification module is used for modifying the state information in the control log information of the second target controlled sub-node into control success and modifying the control mode information in the control log information of the second target controlled sub-node into remote control if the log information exists and the state information in the control log information of the second target controlled sub-node is a control failure identifier; if the control mode information does not exist, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be manually controlled.
5. The utility model provides an intelligent household equipment, its characterized in that, intelligent household equipment is equipped with a first sign, including at least one child node, every child node of every controlled device corresponds a second sign, and every child node includes at least one state, and every state of every child node corresponds a state value, intelligent household equipment includes:
the control instruction receiving module is used for receiving a control instruction, wherein the control instruction comprises a second identifier of a third target controlled child node and a target state value of the third target controlled child node;
the operation execution module is used for executing the operation corresponding to the target state value of the third target controlled child node;
and the control result sending module is used for sending second control result information to the server after the operation is successful if the control instruction is sent by the server, wherein the second control result information comprises a first identifier of a third target controlled device, a second identifier of a third target controlled sub-node of the third target controlled device and a result state value of the third target controlled sub-node, and sending third control result information to the server after the operation is successful if the control instruction is manually triggered, wherein the third control result information comprises the first identifier of the third target controlled device, the second identifier of the third target controlled sub-node of the third target controlled device and the result state value of the third target controlled sub-node.
6. An intelligent home device log processing system, comprising:
the method comprises the steps that a client sends a home equipment control request to a server and sends a control instruction to a controlled device, wherein the home equipment control request comprises a first identifier of a first target controlled device, a second identifier of a first target controlled sub-node of the first target controlled device, and a target state value and time information of the first target controlled sub-node;
the server generates a device control log before issuing the control instruction, marks the device control log as a control failure and a remote control type by default, and issues the control instruction; after the control instruction of the intelligent home equipment is successfully executed, uploading a message to a server, when the state of a node of the equipment is changed, comparing the message with equipment control logs marked as control failure and remote control type in the server, if the control instruction is matched with the equipment control logs, judging that the control instruction is successfully executed, modifying default marked as control failure into control success, if the control instruction is not successfully executed, not modifying, when the control instruction is manually controlled, not generating the equipment control logs marked as control failure by the server, after manually controlling a certain node of the equipment, reporting the message to the server by the equipment as usual, and comparing the message with the equipment control logs marked as failure and remote control type in the server, wherein the comparison failure is generated, and the equipment control logs with the type of manual control and operation success are generated, and the method comprises the following steps of: receiving a home equipment control request sent by a client; determining first target controlled equipment according to a first identifier of the first target controlled equipment and a second identifier of the first target controlled child node; generating control log information of the first target controlled device, wherein the control log information comprises a first identifier of the first target controlled device, a second identifier of the first target controlled sub-node, control state information, time information and control mode information, the control state information is control failure, and the control mode information comprises remote control and manual control; according to the first identifier of the first target controlled device, the second identifier of the first target controlled sub-node and the target state value of the first target controlled sub-node, a control instruction is sent to the first target controlled device, so that the first target controlled sub-node obtains the target state value from the first target controlled device, executes an operation corresponding to the target state value, and is also used for receiving first control result information sent by the second target controlled device, wherein the first control result information comprises the first identifier of the second target controlled device, the second identifier of the second target controlled sub-node of the second target controlled device and the current state value of the second target controlled sub-node; judging whether control log information of the second target controlled sub-node exists in a log information base according to the first identification of the second target controlled equipment and the second identification of the second target controlled sub-node; if the control failure identification exists and the state information in the control log information of the second target controlled sub-node is the control failure identification, the state information in the control log information of the second target controlled sub-node is modified to be successfully controlled, and the control mode information in the control log information of the second target controlled sub-node is modified to be remote control; if the control mode information does not exist, modifying the state information in the control log information of the second target controlled sub-node into control success, and modifying the control mode information in the control log information of the second target controlled sub-node into manual control;
The controlled device receives a control instruction, wherein the control instruction comprises a second identifier of a third target controlled child node and a target state value of the third target controlled child node; executing the operation corresponding to the target state value of the third target controlled child node; if the control instruction is sent by the server, after the operation is successful, sending second control result information to the server, wherein the second control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled sub-node of the third target controlled equipment and a result state value of the third target controlled sub-node; and if the control instruction is triggered manually, after the operation is successful, sending third control result information to the server, wherein the third control result information comprises a first identifier of third target controlled equipment, a second identifier of a third target controlled sub-node of the third target controlled equipment and a result state value of the third target controlled sub-node.
7. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory in communication via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the smart home device log processing method of any of claims 1 to 3.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the smart home device log processing method according to any one of claims 1 to 3.
CN202310405714.XA 2023-04-17 2023-04-17 Log processing method, device and system for intelligent household equipment Active CN116107231B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310405714.XA CN116107231B (en) 2023-04-17 2023-04-17 Log processing method, device and system for intelligent household equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310405714.XA CN116107231B (en) 2023-04-17 2023-04-17 Log processing method, device and system for intelligent household equipment

Publications (2)

Publication Number Publication Date
CN116107231A CN116107231A (en) 2023-05-12
CN116107231B true CN116107231B (en) 2023-07-11

Family

ID=86258366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310405714.XA Active CN116107231B (en) 2023-04-17 2023-04-17 Log processing method, device and system for intelligent household equipment

Country Status (1)

Country Link
CN (1) CN116107231B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000047003A1 (en) * 1999-01-25 2000-08-10 Mpath Interactive, Inc. Method, system and computer program product for adaptive logging
CN100530185C (en) * 2006-10-27 2009-08-19 北京搜神网络技术有限责任公司 Network behavior based personalized recommendation method and system
CN104468149B (en) * 2013-09-12 2018-11-02 中国移动通信集团设计院有限公司 Information processing method, intelligent terminal and cable network system
CN110765090B (en) * 2019-10-31 2023-05-02 泰康保险集团股份有限公司 Log data management method and device, storage medium and electronic equipment
KR20230011119A (en) * 2021-07-13 2023-01-20 주식회사 썬에이치에스티 A platform that supports error history lists and alarm services, and a system that supports them
CN114500503A (en) * 2022-01-14 2022-05-13 广东好太太智能家居有限公司 Intelligent device offline log uploading method, intelligent device and readable medium

Also Published As

Publication number Publication date
CN116107231A (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN110401662B (en) Industrial control equipment fingerprint identification method and storage medium
CN107580040B (en) Method and device for upgrading communication module in intelligent household terminal
CN102487522B (en) Management method and gateway device of terminal devices
CN104426969A (en) Method, system, terminal and server for binding vehicle frame number and mobile communication identifier
CN112083972B (en) BMC system configuration method, device, equipment and readable storage medium
CN108108431A (en) Method of data synchronization and system
CN112529697A (en) Bank pipelining processing method and device combining RPA and AI
CN116107231B (en) Log processing method, device and system for intelligent household equipment
CN111506496A (en) Test data acquisition method and device, electronic equipment and storage medium
CN113676496B (en) Data transmission method, system, readable storage medium and computer equipment
CN110750327A (en) Virtual network function management method and system, agent device, and storage medium
US20230166404A1 (en) Electronic device remote controller
CN113590161B (en) Memory-controllable NB-IOT module differential upgrading method and system
CN114116343A (en) Equipment testing method and device, electronic equipment and storage medium
JP2014098988A (en) Control system and control method
JP2023531701A (en) Efficient controller data generation and extraction
CN106411618A (en) Network management equipment data comparison real-time update method
CN113055653B (en) Automatic updating method and device of image acquisition equipment and related equipment
CN105389218A (en) Methods of server cabinet for processing basic input output system (BIOS) information, and nodes
CN116662093A (en) Server testing method, device, equipment and storage medium
CN116016592A (en) Automobile signal acquisition method and system based on edge calculation
CN114697354B (en) Network distribution method of NB-IOT equipment, intelligent terminal and network distribution system
CN116094973B (en) Testing method and device for wide area network management protocol of user equipment
CN116136685B (en) Communication control system and method suitable for high-speed CAN and low-speed CAN
CN115016312A (en) Cloud scene optimization method and device for intelligent home multi-manufacturer equipment

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