CN110703615A - Data-driven scene method and device based on Internet of things - Google Patents

Data-driven scene method and device based on Internet of things Download PDF

Info

Publication number
CN110703615A
CN110703615A CN201910872155.7A CN201910872155A CN110703615A CN 110703615 A CN110703615 A CN 110703615A CN 201910872155 A CN201910872155 A CN 201910872155A CN 110703615 A CN110703615 A CN 110703615A
Authority
CN
China
Prior art keywords
terminal
scene
rule
things
internet
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
CN201910872155.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.)
Beijing Fangyan Mohang Technology Co Ltd
Original Assignee
Beijing Fangyan Mohang 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 Beijing Fangyan Mohang Technology Co Ltd filed Critical Beijing Fangyan Mohang Technology Co Ltd
Priority to CN201910872155.7A priority Critical patent/CN110703615A/en
Publication of CN110703615A publication Critical patent/CN110703615A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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] or computer integrated manufacturing [CIM]
    • G05B19/4185Total 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] or computer integrated manufacturing [CIM] characterised by the network communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Cardiology (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data-driven scene method and device based on the Internet of things, and relates to the field of the Internet of things. The method comprises the following steps: establishing and maintaining long connection with a plurality of terminals in the Internet of things; detecting data uploaded by a first terminal in the Internet of things in real time, and switching a current scene where a user to which the first terminal belongs is located to a first scene when a rule engine is used for determining that the data uploaded by the first terminal is successfully matched with the first scene; and detecting data uploaded by a second terminal in the Internet of things in real time, and triggering a third terminal specified by the first rule to execute a first operation after the rule engine is used for determining that the data uploaded by the second terminal is successfully matched with the first rule in the first scene. The device includes: the device comprises a connecting module, a switching module and a driving module. The method and the device realize the effectiveness of the automatic control rule in the Internet of things, and are more flexible to apply.

Description

Data-driven scene method and device based on Internet of things
Technical Field
The application relates to the field of the Internet of things, in particular to a data-driven scene method and device based on the Internet of things.
Background
With the development of the internet of things, more and more internet of things devices come into the world, so that the linkage relationship among the devices is more and more complex and difficult to control. At present, after an internet of things terminal is connected to a cloud terminal through Wi-Fi, 2/3/4G, NBIoT, lora and other network access modes, the cloud terminal generally preprocesses data and then transmits the data to a rule engine to match corresponding rules.
Generally, the processing rules of the cloud are pre-configured. For example, rule A is that the study room light is on after entering the study room, rule B is that the study room light is off after leaving the study room, and rule C is that the study room door is opened. The cloud end judges that the matching rule A is successful when the current study is entering the study according to the data, judges that the matching rule B is successful when the current study is leaving the study, and triggers corresponding action only when the study door is opened, namely the study lamp is on or off under the condition that the rule C is successfully matched.
However, the processing rules are all manually preconfigured, and once configuration is completed, the processing rules are not changed in the running process, so that the flexibility is poor, the application is limited, and the processing rules cannot be adjusted in time as required under the condition that the user scene is frequently changed.
Disclosure of Invention
It is an object of the present application to overcome the above problems or to at least partially solve or mitigate the above problems.
According to an aspect of the present application, there is provided a method for data-driven scenarios based on the internet of things, including:
establishing and maintaining long connection with a plurality of terminals in the Internet of things;
detecting data uploaded by a first terminal in the Internet of things in real time, and switching a current scene where a user to which the first terminal belongs is located to a first scene when a rule engine is used for determining that the data uploaded by the first terminal is successfully matched with the first scene;
and detecting data uploaded by a second terminal in the Internet of things in real time, and triggering a third terminal specified by the first rule to execute a first operation after the rule engine is used for determining that the data uploaded by the second terminal is successfully matched with the first rule in the first scene.
Optionally, the method further comprises:
and according to the data uploaded by each terminal in the Internet of things, counting the use habits of the user, and according to the use habits, correspondingly adjusting the rules in each scene.
Optionally, the method includes the steps of counting usage habits of the user according to data uploaded by each terminal in the internet of things, and correspondingly adjusting rules in each scene according to the usage habits, including:
and receiving the same data uploaded by the third terminal in the first scene for multiple times, generating a second rule according to the uploaded data when the uploading times reach the specified times, and adding the second rule to the rule corresponding to the first scene.
Optionally, the method includes the steps of counting usage habits of the user according to data uploaded by each terminal in the internet of things, and correspondingly adjusting rules in each scene according to the usage habits, including:
and counting the times of successfully matching the third rule in the second scene within a specified time according to the data uploaded by each terminal in the Internet of things, and deleting the third rule in the rule corresponding to the second scene if the times are less than the specified times.
Optionally, the method includes the steps of counting usage habits of the user according to data uploaded by each terminal in the internet of things, and correspondingly adjusting rules in each scene according to the usage habits, including:
and receiving data uploaded by the third terminal under the first scene for multiple times, determining that the third terminal executes second operation under the condition of meeting the first rule according to the uploaded data and the times, and replacing the first operation in the first rule with the second operation.
According to another aspect of the present application, there is provided an apparatus for data-driven scenarios based on the internet of things, including:
a connection module configured to establish and maintain long connections with a plurality of terminals within an internet of things;
the switching module is matched to detect data uploaded by a first terminal in the Internet of things in real time, and when the rule engine is used for determining that the data uploaded by the first terminal is successfully matched with a first scene, the switching module switches the current scene of a user to which the first terminal belongs to the first scene;
and the driving module is configured to detect data uploaded by a second terminal in the internet of things in real time, and trigger a third terminal specified by the first rule to execute a first operation after the rule engine is used for determining that the data uploaded by the second terminal successfully matches the first rule in the first scene.
Optionally, the apparatus further comprises:
and the adjusting module is configured to count the use habits of the user according to the data uploaded by each terminal in the Internet of things, and correspondingly adjust the rules in each scene according to the use habits.
Optionally, the adjusting module is specifically configured to:
and receiving the same data uploaded by the third terminal in the first scene for multiple times, generating a second rule according to the uploaded data when the uploading times reach the specified times, and adding the second rule to the rule corresponding to the first scene.
Optionally, the adjusting module is specifically configured to:
and counting the times of successfully matching the third rule in the second scene within a specified time according to the data uploaded by each terminal in the Internet of things, and deleting the third rule in the rule corresponding to the second scene if the times are less than the specified times.
Optionally, the adjusting module is specifically configured to:
and receiving data uploaded by the third terminal under the first scene for multiple times, determining that the third terminal executes second operation under the condition of meeting the first rule according to the uploaded data and the times, and replacing the first operation in the first rule with the second operation.
According to yet another aspect of the application, there is provided a computing device comprising a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.
According to yet another aspect of the application, a computer-readable storage medium, preferably a non-volatile readable storage medium, is provided, having stored therein a computer program which, when executed by a processor, implements a method as described above.
According to yet another aspect of the application, there is provided a computer program product comprising computer readable code which, when executed by a computer device, causes the computer device to perform the method described above.
According to the technical scheme, long connection is established and maintained with a plurality of terminals in an internet of things, data uploaded by a first terminal in the internet of things is detected in real time, when a rule engine is used for determining that the data uploaded by the first terminal successfully matches a first scene, the current scene of a user to which the first terminal belongs is switched to the first scene, data uploaded by a second terminal in the internet of things is detected in real time, the rule engine is used for determining that the data uploaded by the second terminal successfully matches a first rule in the first scene, then a third terminal specified by the first rule is triggered to execute a first operation, validity of an automatic control rule in the internet of things is achieved, the internet of things terminal is directly connected with a cloud terminal, the scene rule is stored in the cloud terminal, and scene switching and scene conflict prevention are achieved through the cloud terminal; the method can divide different rules into different scenes according to user requirements, ensures mutual exclusion triggering between different scenes of the same user or the same family, is more flexible in application, and can be suitable for different manufacturers connected to the same cloud, different Wi-Fi modules and joint triggering scenes among Internet of things terminals of different local area networks.
The above and other objects, advantages and features of the present application will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the present application will be described in detail hereinafter by way of illustration and not limitation with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
FIG. 1 is a flow diagram of a method for an Internet of things-based data-driven scenario according to one embodiment of the present application;
FIG. 2 is a flow diagram of a method for an Internet of things based data driven scenario according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a data driven scenario based on the Internet of things according to another embodiment of the present application;
fig. 4 is a diagram of an apparatus architecture for an internet of things based data driven scenario according to another embodiment of the present application;
FIG. 5 is a block diagram of a computing device according to another embodiment of the present application;
fig. 6 is a diagram of a computer-readable storage medium structure according to another embodiment of the present application.
Detailed Description
Fig. 1 is a flow diagram of a method for an internet of things based data driven scenario according to one embodiment of the present application.
Referring to fig. 1, the method includes:
101: establishing and maintaining long connection with a plurality of terminals in the Internet of things;
102: detecting data uploaded by a first terminal in the Internet of things in real time, and switching a current scene of a user to which the first terminal belongs to a first scene when the rule engine is used for determining that the data uploaded by the first terminal is successfully matched with the first scene;
103: the method comprises the steps of detecting data uploaded by a second terminal in the Internet of things in real time, and triggering a third terminal specified by a first rule to execute a first operation after a rule engine is used for determining that the data uploaded by the second terminal successfully matches the first rule in a first scene.
In this embodiment, optionally, the method further includes:
and according to the data uploaded by each terminal in the Internet of things, counting the use habits of the user, and correspondingly adjusting the rules in each scene according to the use habits.
In this embodiment, optionally, the usage habit of the user is counted according to the data uploaded by each terminal in the internet of things, and the corresponding adjustment is performed on the rule in each scene according to the usage habit, including:
and receiving the same data uploaded by the third terminal in the first scene for multiple times, generating a second rule according to the uploaded data when the uploading times reach the specified times, and adding the second rule into the rule corresponding to the first scene.
In this embodiment, optionally, the usage habit of the user is counted according to the data uploaded by each terminal in the internet of things, and the corresponding adjustment is performed on the rule in each scene according to the usage habit, including:
and counting the times of successful matching of the third rule in the second scene within a specified time according to the data uploaded by each terminal in the Internet of things, and deleting the third rule in the rule corresponding to the second scene if the times are less than the specified times.
In this embodiment, optionally, the usage habit of the user is counted according to the data uploaded by each terminal in the internet of things, and the corresponding adjustment is performed on the rule in each scene according to the usage habit, including:
and receiving data uploaded by the third terminal in the first scene for multiple times, determining that the third terminal executes the second operation under the condition of meeting the first rule according to the uploaded data and the times, and replacing the first operation in the first rule with the second operation.
In the method provided by the embodiment, long connections are established and maintained with a plurality of terminals in an internet of things, data uploaded by a first terminal in the internet of things is detected in real time, when a rule engine is used for determining that the data uploaded by the first terminal successfully matches a first scene, the current scene where a user of the first terminal is located is switched to the first scene, data uploaded by a second terminal in the internet of things is detected in real time, the rule engine is used for determining that the data uploaded by the second terminal successfully matches a first rule in the first scene, and then a third terminal specified by the first rule is triggered to execute a first operation, so that the validity of an automatic control rule in the internet of things is realized, the internet of things terminal is directly connected with a cloud terminal, the scene rule is stored in the cloud terminal, and scene switching and scene conflict prevention are realized through the cloud terminal; the method can divide different rules into different scenes according to user requirements, ensures mutual exclusion triggering between different scenes of the same user or the same family, is more flexible in application, and can be suitable for different manufacturers connected to the same cloud, different Wi-Fi modules and joint triggering scenes among Internet of things terminals of different local area networks.
Fig. 2 is a flow diagram of a method for an internet of things based data driven scenario according to another embodiment of the present application. Referring to fig. 2, the method includes:
201: establishing and maintaining long connection with a plurality of terminals in the Internet of things;
the internet of things terminal can be connected to the cloud end in a network access mode such as Wi-Fi, 2/3/4G, NBIoT (Narrow Band internet of things) or lora.
In this embodiment, after each terminal in the internet of things is connected to the cloud, data can be periodically uploaded to the cloud. The internet of things terminal can interact control information and service data with the cloud end through a standard internet of things protocol MQTT (Message Queuing teletransmission).
202: detecting data uploaded by a first terminal in the Internet of things in real time, and switching a current scene of a user to which the first terminal belongs to a first scene when the rule engine is used for determining that the data uploaded by the first terminal is successfully matched with the first scene;
in this embodiment, optionally, the rules in various scenarios may be configured by the user through the application software APP in the mobile phone, one scenario may include multiple rules, each rule may include one condition or a combination of multiple conditions, and the number of terminals of the internet of things involved may be one or multiple, which is not limited specifically.
The rule engine may determine data uploaded by the first terminal, and a successful match with the first scene means that the data uploaded by the first terminal meets a condition specified in the first scene, so that the current scene is switched to the first scene. For example, the value uploaded by an infrared sensor or a pyroelectric sensor on a door of a study room of a certain user in the internet of things exceeds 300.121, and the condition of entering the study room scene is met, namely the cloud determines that a person enters the study room at the moment, and therefore the current scene is switched to the first scene, namely the scene of entering the study room.
203: detecting data uploaded by a second terminal in the Internet of things in real time, and triggering a third terminal specified by a first rule to execute a first operation after determining that the data uploaded by the second terminal successfully matches the first rule in a first scene by using a rule engine;
in this embodiment, successful matching with the first rule means that the data uploaded by the second terminal meets the condition specified in the first rule, and therefore, the result specified by the first rule triggers the corresponding one or more third terminals to execute corresponding operations. Fig. 3 is a schematic diagram of a data-driven scenario based on the internet of things according to another embodiment of the present application. Referring to fig. 3, the first terminal uploads data to the cloud, after the first scene is successfully matched, switching of the first scene is triggered, the second terminal uploads data to the cloud, and after the first rule in the first scene is successfully matched, the third terminal is triggered to execute corresponding operation, so that linkage based on data driving in a specified scene is completed.
For example, the first scenario is a "study room in use scenario", which includes two rules: A. if the brightness of the study room lamp is lower than 30, adjusting the brightness to 50; B. if the person leaves the study room, opening a scene with uncertain study room use states. And when the current scene is the 'study in use scene', if the cloud determines that the brightness of the study is lower than 30 according to the data uploaded by the study lamp, namely the study lamp successfully matches the rule A in the first scene, issuing a command to control the corresponding study lamp to execute the operation of adjusting the brightness to 50.
204: the same data uploaded by the third terminal in the first scene are received for multiple times, and if the uploading times reach the specified times, a second rule is generated according to the uploaded data, and the second rule is added into the rule corresponding to the first scene;
205: counting the times of successfully matching the third rule in the second scene within a specified time according to data uploaded by each terminal in the Internet of things, and deleting the third rule in the rule corresponding to the second scene if the times are less than the specified times;
for example, the second scenario is a "study use state uncertainty scenario" and includes the following three rules: C. if the brightness of the study room lamp is lower than 30, adjusting the brightness to 50; D. after the scene is opened for 10 minutes, entering a 'study room non-use scene'; E. when the person is detected to enter the study room, opening a 'study room using scene'. And counting the times of successfully matching the rule C in the second scene within the specified time according to data uploaded by the study lamp for many times, deleting the rule C in the scene with uncertain study use state if the times are less than the specified times, and only keeping the rules D and E, thereby ensuring that the rules in the scene better accord with the use habits of users and realizing the intelligent automatic adjustment of the rules.
206: and receiving data uploaded by the third terminal in the first scene for multiple times, determining that the third terminal executes the second operation under the condition of meeting the first rule according to the uploaded data and the times, and replacing the first operation in the first rule with the second operation.
For example, the first scenario is a "study usage scenario", and a rule a in this scenario is specifically: if the brightness of the study room lamp is lower than 30, the brightness is adjusted to 50. When the current scene is a 'study in use scene', if the cloud receives data uploaded by the lamps of the study for multiple times and the brightness of the lamps of the study is determined to be lower than 30, the brightness is adjusted to 70, and then the rule A in the scene is modified as follows: if the brightness of the study room lamp is lower than 30, the brightness is adjusted to 70, so that the rule is ensured to be more consistent with the use habit of the user.
In the method provided by the embodiment, long connections are established and maintained with a plurality of terminals in an internet of things, data uploaded by a first terminal in the internet of things is detected in real time, when a rule engine is used for determining that the data uploaded by the first terminal successfully matches a first scene, the current scene where a user of the first terminal is located is switched to the first scene, data uploaded by a second terminal in the internet of things is detected in real time, the rule engine is used for determining that the data uploaded by the second terminal successfully matches a first rule in the first scene, and then a third terminal specified by the first rule is triggered to execute a first operation, so that the validity of an automatic control rule in the internet of things is realized, the internet of things terminal is directly connected with a cloud terminal, the scene rule is stored in the cloud terminal, and scene switching and scene conflict prevention are realized through the cloud terminal; the method can divide different rules into different scenes according to user requirements, ensures mutual exclusion triggering between different scenes of the same user or the same family, is more flexible in application, and can be suitable for different manufacturers connected to the same cloud, different Wi-Fi modules and joint triggering scenes among Internet of things terminals of different local area networks.
Fig. 4 is a diagram of an apparatus for a data-driven scenario based on the internet of things according to another embodiment of the present application. Referring to fig. 4, the apparatus includes:
a connection module 401 configured to establish and maintain long connections with a plurality of terminals within an internet of things;
the switching module 402 is matched to detect data uploaded by a first terminal in the internet of things in real time, and switch a current scene of a user to which the first terminal belongs to a first scene when the rule engine is used to determine that the data uploaded by the first terminal successfully matches the first scene;
the driving module 403 is configured to detect data uploaded by the second terminal in the internet of things in real time, and trigger a third terminal specified by the first rule to execute the first operation after determining that the data uploaded by the second terminal successfully matches the first rule in the first scenario by using the rule engine.
In this embodiment, optionally, the apparatus further includes:
and the adjusting module is configured to count the use habits of the user according to the data uploaded by each terminal in the Internet of things, and correspondingly adjust the rules in each scene according to the use habits.
In this embodiment, optionally, the adjusting module is specifically configured to:
and receiving the same data uploaded by the third terminal in the first scene for multiple times, generating a second rule according to the uploaded data when the uploading times reach the specified times, and adding the second rule into the rule corresponding to the first scene.
In this embodiment, optionally, the adjusting module is specifically configured to:
and counting the times of successful matching of the third rule in the second scene within a specified time according to the data uploaded by each terminal in the Internet of things, and deleting the third rule in the rule corresponding to the second scene if the times are less than the specified times.
In this embodiment, optionally, the adjusting module is specifically configured to:
and receiving data uploaded by the third terminal in the first scene for multiple times, determining that the third terminal executes the second operation under the condition of meeting the first rule according to the uploaded data and the times, and replacing the first operation in the first rule with the second operation.
The apparatus provided in this embodiment may perform the method provided in any of the above method embodiments, and details of the process are described in the method embodiments and are not described herein again.
According to the device provided by the embodiment, long connection is established and maintained with a plurality of terminals in an internet of things, data uploaded by a first terminal in the internet of things is detected in real time, when a rule engine is used for determining that the data uploaded by the first terminal successfully matches a first scene, the current scene where a user of the first terminal is located is switched to the first scene, data uploaded by a second terminal in the internet of things is detected in real time, the rule engine is used for determining that the data uploaded by the second terminal successfully matches a first rule in the first scene, then a third terminal specified by the first rule is triggered to execute a first operation, the validity of an automatic control rule in the internet of things is achieved, the internet of things terminal is directly connected with a cloud terminal, the scene rule is stored in the cloud terminal, and scene switching and scene conflict prevention are achieved through the cloud terminal; the method can divide different rules into different scenes according to user requirements, ensures mutual exclusion triggering between different scenes of the same user or the same family, is more flexible in application, and can be suitable for different manufacturers connected to the same cloud, different Wi-Fi modules and joint triggering scenes among Internet of things terminals of different local area networks.
The above and other objects, advantages and features of the present application will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Embodiments also provide a computing device, referring to fig. 5, comprising a memory 1120, a processor 1110 and a computer program stored in said memory 1120 and executable by said processor 1110, the computer program being stored in a space 1130 for program code in the memory 1120, the computer program, when executed by the processor 1110, implementing the method steps 1131 for performing any of the methods according to the invention.
The embodiment of the application also provides a computer readable storage medium. Referring to fig. 6, the computer readable storage medium comprises a storage unit for program code provided with a program 1131' for performing the steps of the method according to the invention, which program is executed by a processor.
The embodiment of the application also provides a computer program product containing instructions. Which, when run on a computer, causes the computer to carry out the steps of the method according to the invention.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed by a computer, cause the computer to perform, in whole or in part, the procedures or functions described in accordance with the embodiments of the application. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by a program, and the program may be stored in a computer-readable storage medium, where the storage medium is a non-transitory medium, such as a random access memory, a read only memory, a flash memory, a hard disk, a solid state disk, a magnetic tape (magnetic tape), a floppy disk (floppy disk), an optical disk (optical disk), and any combination thereof.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method for data-driven scenarios based on the Internet of things comprises the following steps:
establishing and maintaining long connection with a plurality of terminals in the Internet of things;
detecting data uploaded by a first terminal in the Internet of things in real time, and switching a current scene where a user to which the first terminal belongs is located to a first scene when a rule engine is used for determining that the data uploaded by the first terminal is successfully matched with the first scene;
and detecting data uploaded by a second terminal in the Internet of things in real time, and triggering a third terminal specified by the first rule to execute a first operation after the rule engine is used for determining that the data uploaded by the second terminal is successfully matched with the first rule in the first scene.
2. The method of claim 1, further comprising:
and according to the data uploaded by each terminal in the Internet of things, counting the use habits of the user, and according to the use habits, correspondingly adjusting the rules in each scene.
3. The method according to claim 2, wherein the method comprises the steps of counting usage habits of the user according to data uploaded by each terminal in the internet of things, and correspondingly adjusting rules in each scene according to the usage habits, and comprises the steps of:
and receiving the same data uploaded by the third terminal in the first scene for multiple times, generating a second rule according to the uploaded data when the uploading times reach the specified times, and adding the second rule to the rule corresponding to the first scene.
4. The method according to claim 2, wherein the method comprises the steps of counting usage habits of the user according to data uploaded by each terminal in the internet of things, and correspondingly adjusting rules in each scene according to the usage habits, and comprises the steps of:
and counting the times of successfully matching the third rule in the second scene within a specified time according to the data uploaded by each terminal in the Internet of things, and deleting the third rule in the rule corresponding to the second scene if the times are less than the specified times.
5. The method according to claim 2, wherein the method comprises the steps of counting usage habits of the user according to data uploaded by each terminal in the internet of things, and correspondingly adjusting rules in each scene according to the usage habits, and comprises the steps of:
and receiving data uploaded by the third terminal under the first scene for multiple times, determining that the third terminal executes second operation under the condition of meeting the first rule according to the uploaded data and the times, and replacing the first operation in the first rule with the second operation.
6. An apparatus for data-driven scenarios based on the internet of things, comprising:
a connection module configured to establish and maintain long connections with a plurality of terminals within an internet of things;
the switching module is matched to detect data uploaded by a first terminal in the Internet of things in real time, and when the rule engine is used for determining that the data uploaded by the first terminal is successfully matched with a first scene, the switching module switches the current scene of a user to which the first terminal belongs to the first scene;
and the driving module is configured to detect data uploaded by a second terminal in the internet of things in real time, and trigger a third terminal specified by the first rule to execute a first operation after the rule engine is used for determining that the data uploaded by the second terminal successfully matches the first rule in the first scene.
7. The apparatus of claim 6, further comprising:
and the adjusting module is configured to count the use habits of the user according to the data uploaded by each terminal in the Internet of things, and correspondingly adjust the rules in each scene according to the use habits.
8. The apparatus of claim 7, wherein the adjustment module is specifically configured to:
and receiving the same data uploaded by the third terminal in the first scene for multiple times, generating a second rule according to the uploaded data when the uploading times reach the specified times, and adding the second rule to the rule corresponding to the first scene.
9. The apparatus of claim 7, wherein the adjustment module is specifically configured to:
and counting the times of successfully matching the third rule in the second scene within a specified time according to the data uploaded by each terminal in the Internet of things, and deleting the third rule in the rule corresponding to the second scene if the times are less than the specified times.
10. The apparatus of claim 7, wherein the adjustment module is specifically configured to:
and receiving data uploaded by the third terminal under the first scene for multiple times, determining that the third terminal executes second operation under the condition of meeting the first rule according to the uploaded data and the times, and replacing the first operation in the first rule with the second operation.
CN201910872155.7A 2019-09-16 2019-09-16 Data-driven scene method and device based on Internet of things Pending CN110703615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910872155.7A CN110703615A (en) 2019-09-16 2019-09-16 Data-driven scene method and device based on Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910872155.7A CN110703615A (en) 2019-09-16 2019-09-16 Data-driven scene method and device based on Internet of things

Publications (1)

Publication Number Publication Date
CN110703615A true CN110703615A (en) 2020-01-17

Family

ID=69195334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910872155.7A Pending CN110703615A (en) 2019-09-16 2019-09-16 Data-driven scene method and device based on Internet of things

Country Status (1)

Country Link
CN (1) CN110703615A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114114946A (en) * 2021-12-24 2022-03-01 珠海格力电器股份有限公司 Control method and device of intelligent household equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282311A (en) * 2014-12-26 2016-01-27 维沃移动通信有限公司 Mobile terminal application starting method and mobile terminal thereof
WO2017036237A1 (en) * 2015-08-28 2017-03-09 中兴通讯股份有限公司 Application program desktop position sorting method, device and system
CN107333368A (en) * 2017-07-13 2017-11-07 深圳市盛路物联通讯技术有限公司 A kind of control method and Internet of Things server based on Internet of Things
CN107864174A (en) * 2017-07-03 2018-03-30 华南理工大学 A kind of rule-based internet of things equipment interlock method
WO2018108082A1 (en) * 2016-12-15 2018-06-21 中兴通讯股份有限公司 Linked control method for internet-of-things gateway and internet-of-things gateway
CN108732936A (en) * 2018-05-09 2018-11-02 青岛海信智慧家居***股份有限公司 A kind of method and apparatus creating linkage scene information
CN208175075U (en) * 2018-04-27 2018-11-30 湖北安达业智能科技股份有限公司 Intelligent illuminating switch
CN109901410A (en) * 2019-04-08 2019-06-18 广州市畅驿智能科技有限公司 A kind of Internet of Things wisdom hotel integrally solves system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282311A (en) * 2014-12-26 2016-01-27 维沃移动通信有限公司 Mobile terminal application starting method and mobile terminal thereof
WO2017036237A1 (en) * 2015-08-28 2017-03-09 中兴通讯股份有限公司 Application program desktop position sorting method, device and system
WO2018108082A1 (en) * 2016-12-15 2018-06-21 中兴通讯股份有限公司 Linked control method for internet-of-things gateway and internet-of-things gateway
CN107864174A (en) * 2017-07-03 2018-03-30 华南理工大学 A kind of rule-based internet of things equipment interlock method
CN107333368A (en) * 2017-07-13 2017-11-07 深圳市盛路物联通讯技术有限公司 A kind of control method and Internet of Things server based on Internet of Things
CN208175075U (en) * 2018-04-27 2018-11-30 湖北安达业智能科技股份有限公司 Intelligent illuminating switch
CN108732936A (en) * 2018-05-09 2018-11-02 青岛海信智慧家居***股份有限公司 A kind of method and apparatus creating linkage scene information
CN109901410A (en) * 2019-04-08 2019-06-18 广州市畅驿智能科技有限公司 A kind of Internet of Things wisdom hotel integrally solves system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114114946A (en) * 2021-12-24 2022-03-01 珠海格力电器股份有限公司 Control method and device of intelligent household equipment

Similar Documents

Publication Publication Date Title
CN107278369B (en) Personnel searching method, device and communication system
JP7033467B2 (en) Fraudulent communication detection device and fraudulent communication detection program
EP2975821B1 (en) Network connection method and apparatus
CN111651263B (en) Resource processing method and device of mobile terminal, computer equipment and storage medium
US20220285981A1 (en) Contraband detection through smart power components
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
US20180077592A1 (en) Network selection method and apparatus therefor
CN111327758B (en) Camera sharing method and device
KR20150082079A (en) Apparatus and method for controlling home device using wearable device
AU2015219766B2 (en) Electronic device and method for processing image
CN106254467A (en) Sharing files method and device
CN110611723A (en) Scheduling method and device of service resources
CN108076386A (en) Video cardton detection method and device, storage medium
JP2022518000A (en) Measurement reporting method and equipment, terminal equipment information acquisition method and equipment
CN113178028A (en) Control method, wearable device, mobile terminal and readable storage medium
CN111654354A (en) Detection method, device and storage medium of Maximum Transmission Unit (MTU)
CN110703615A (en) Data-driven scene method and device based on Internet of things
CN105187154B (en) The method and device of response bag reception delay
CN106897750B (en) Improved physical access control system
KR102219781B1 (en) Server and operating method thereof
CN113132906B (en) Virtual positioning identification method and device, storage medium and electronic equipment
CN105764372B (en) A kind of image pickup method and Intelligent bracelet
CN114365468B (en) Information transfer method, device, electronic equipment and storage medium
CN110754076B (en) Method and device for determining brushing amount terminal
RU2765980C1 (en) Method and system for collecting user device identifiers in form of mac addresses

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: 20200117

RJ01 Rejection of invention patent application after publication