CN110928192A - Self-learning method, device, equipment and storage medium of scene mode - Google Patents

Self-learning method, device, equipment and storage medium of scene mode Download PDF

Info

Publication number
CN110928192A
CN110928192A CN201911099483.4A CN201911099483A CN110928192A CN 110928192 A CN110928192 A CN 110928192A CN 201911099483 A CN201911099483 A CN 201911099483A CN 110928192 A CN110928192 A CN 110928192A
Authority
CN
China
Prior art keywords
knx
module
scene mode
instruction
controlled
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
CN201911099483.4A
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.)
Hangzhou Deep Ferry Technology Co Ltd
Original Assignee
Hangzhou Deep Ferry 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 Hangzhou Deep Ferry Technology Co Ltd filed Critical Hangzhou Deep Ferry Technology Co Ltd
Priority to CN201911099483.4A priority Critical patent/CN110928192A/en
Publication of CN110928192A publication Critical patent/CN110928192A/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], computer integrated manufacturing [CIM]
    • 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

Abstract

The invention relates to a self-learning method, a self-learning device, a self-learning equipment and a self-learning storage medium of a scene mode. Wherein, the method comprises the following steps: acquiring a self-learning starting instruction; monitoring a first control message on the KNX bus according to the self-learning starting instruction; analyzing the first control message to obtain an operation instruction and an address of the controlled KNX module, wherein the operation instruction is used for indicating the controlled KNX module to execute preset operation; acquiring a self-learning stopping instruction; and stopping monitoring the first control message on the KNX bus according to the self-learning stopping instruction, and storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode. The method and the device solve the problem of complex configuration of the scene mode in the KNX system in the related technology, and reduce the complexity of the scene configuration in the KNX system.

Description

Self-learning method, device, equipment and storage medium of scene mode
Technical Field
The invention relates to the field of smart home, in particular to a scene mode self-learning method, a scene mode self-learning device, scene mode self-learning equipment and a computer readable storage medium.
Background
KNX is the only open international standard in the field of household and building control, and is developed by combining European three bus protocols EIB, BatiBus and EHS. The KNX standard is currently approved as the European standard (CENELECEN50090& CENEN13321-1), the International Standard (ISO/IEC14543-3), the American Standard (ANSI/ASHRAE135) and the Chinese instructional Standard (GB/Z20965), which have become the national Standard instructional documents for "HBES technical Specification-residential and building controls". The KNX protocol is based on EIB, gives consideration to the physical layer specifications of BatiBus and EHS, absorbs the advantages of configuration modes in BatiBus and EHS and the like, and provides a complete solution for home automation and building automation. KNX possesses a design and test tool (ETS) that can be independently designed and tested by the manufacturer; providing a plurality of communication media (TP, PL, RF and IP); a plurality of system configuration modes (A, E, S modes) are provided. The KNX bus is a system independent of the manufacturer and the field of application. The lighting, shading/shutter, security system, energy management, heating, ventilation, air conditioning system, signal and monitoring system, service interface and building control system, remote control, metering, video/audio control, large-scale household appliances and the like of the home and building are controlled through the KNX bus system. The intelligent home utilizes advanced computer technology, network communication technology and comprehensive wiring technology, integrates individual requirements according to the principle of human engineering, organically combines various subsystems related to home life such as security protection, light control, curtain control, gas valve control, information appliances, scene linkage, floor heating and the like, and realizes 'people-oriented' brand-new home life experience through networked comprehensive intelligent control and management.
The KNX module refers to a system module controlled by a KNX bus, such as a KNX light control module, a KNX curtain control module, a KNX air-conditioning gateway and the like. At present, professional KNX debugging engineers are required to use ETS tools to carry out setting debugging one by one about the on-line and setting of the KNX module. The ETS is special KNX debugging tool software, needs to be purchased from a KNX association, runs in a Windows operating system of a computer, and is used for designing and configuring the KNX intelligent home and building control installation system. If the KNX module needs to be modified, a professional KNX debugging engineer is required to go to the site to modify the configuration. This solution is relatively demanding for commissioning personnel and requires the use of ETS tools.
The KNX system has a special KNX module, a KNX scene module, which is used for setting scenes of the KNX system, for example: in the night scene mode, a small night lamp can be turned on, the brightness can be adjusted, a curtain can be closed, and the like. However, since the configuration of the various devices of the KNX system needs to be configured by the KNX commissioning engineer using the ETS tool, the configuration of the KNX scene module is no exception, which makes it difficult for the user to modify himself once the scene mode of the KNX scene module is configured by the KNX commissioning engineer.
Disclosure of Invention
Based on this, it is necessary to provide a scene mode self-learning method, apparatus, device and computer readable storage medium for solving the problem of complex configuration of scene modes in the KNX system in the related art.
According to an aspect of an embodiment of the present invention, there is provided a self-learning method of a scene mode, including:
acquiring a self-learning starting instruction;
monitoring a first control message on the KNX bus according to the self-learning starting instruction;
analyzing the first control message to obtain an operation instruction and an address of a controlled KNX module, wherein the operation instruction is used for indicating the controlled KNX module to execute preset operation;
acquiring a self-learning stopping instruction;
and stopping monitoring the first control message on the KNX bus according to the self-learning stopping instruction, and storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode.
In one embodiment, after storing the resolved operation instruction and the address of the controlled KNX module as a scene mode, the method further includes:
acquiring a scene mode starting instruction;
according to the scene mode starting instruction, acquiring the operating instruction and the address of the controlled KNX module in the scene mode;
generating a second control message according to the operation instruction and the address of the controlled KNX module;
and sending the second control message to the KNX bus.
In one of the embodiments, the first and second electrodes are,
storing the resolved operation instruction and the address of the controlled KNX module as a scene mode includes: storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode according to the scene mode identifier;
under the condition that the scene mode start instruction further carries the scene mode identifier, acquiring the operation instruction and the address of the controlled KNX module in the scene mode according to the scene mode start instruction includes: inquiring a scene mode corresponding to the scene mode identification; and acquiring the operating instruction and the address of the controlled KNX module in a scene mode corresponding to the scene mode identifier.
In one of the embodiments, the first and second electrodes are,
storing the resolved operation instruction and the address of the controlled KNX module as a scene mode further comprises: converting the operation instruction obtained by analysis and the address of the controlled KNX module into storage data in a preset format and storing the storage data;
generating a second control message according to the operation instruction and the address of the controlled KNX module includes: and converting the stored data into the operating instruction and the address of the controlled KNX module, and generating the second control message according to the operating instruction and the address of the controlled KNX module.
In one embodiment, the first control message is sent by a KNX host device in a KNX system to the KNX bus or by a KNX module to the KNX bus.
According to an aspect of the embodiments of the present invention, there is also provided a self-learning apparatus of a scene mode, including:
the first acquisition module is used for acquiring a self-learning starting instruction;
the monitoring module is used for monitoring a first control message on the KNX bus according to the self-learning starting instruction;
the analysis module is used for analyzing the first control message to obtain an operation instruction and an address of a controlled KNX module, wherein the operation instruction is used for indicating the controlled KNX module to execute preset operation;
the second acquisition module is used for acquiring a self-learning stopping instruction;
and the storage module is used for stopping monitoring the first control message on the KNX bus according to the self-learning stopping instruction and storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode.
In one embodiment, the apparatus further comprises:
a third obtaining module, configured to obtain a scene mode start instruction;
a fourth obtaining module, configured to obtain, according to the scene mode start instruction, the operation instruction and the address of the controlled KNX module in the scene mode;
the generating module is used for generating a second control message according to the operating instruction and the address of the controlled KNX module;
and the sending module is used for sending the second control message to the KNX bus.
In one of the embodiments, the first and second electrodes are,
the storage module is used for storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode according to the scene mode identifier;
the fourth obtaining module is configured to query a scene mode corresponding to the scene mode identifier; and acquiring the operating instruction and the address of the controlled KNX module in a scene mode corresponding to the scene mode identifier.
According to an aspect of an embodiment of the present invention, there is also provided a self-learning apparatus of a scene mode, including in one embodiment: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method described above.
According to an aspect of an embodiment of the present invention, there is also provided a computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, in one embodiment, implement the above-described method.
Compared with the prior art, the self-learning method, the device, the equipment and the computer readable storage medium of the scene mode provided by the embodiment of the invention adopt the steps of acquiring a self-learning starting instruction; monitoring a first control message on the KNX bus according to the self-learning starting instruction; analyzing the first control message to obtain an operation instruction and an address of the controlled KNX module, wherein the operation instruction is used for indicating the controlled KNX module to execute preset operation; acquiring a self-learning stopping instruction; and stopping monitoring the first control message on the KNX bus according to the self-learning stop instruction, and storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode, so that the problem of complex configuration of the scene mode in the KNX system in the related technology is solved, and the complexity of the scene configuration in the KNX system is reduced.
Drawings
FIG. 1 is a flow diagram of a method of self-learning of a scene mode according to an embodiment of the invention;
FIG. 2 is a flow chart of a method of self-learning and self-configuration of a scenario pattern in accordance with a preferred embodiment of the present invention;
FIG. 3 is a block diagram of a self-learning device of a scene mode according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a hardware structure of a self-learning device of a scene mode according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In the present embodiment, the present invention is preferably described and explained by taking the self-learning of the scene mode of the KNX scene module as an example, but the present embodiment is not limited to be implemented by only the KNX scene module, and may also be implemented in other KNX modules (e.g., a KNX light control module, a KNX curtain control module, and a KNX air conditioner gateway).
In the present embodiment, a method for self-learning a scene mode is provided, and fig. 1 is a flowchart of the method for self-learning a scene mode according to the embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
and S101, acquiring a self-learning starting instruction by the KNX scene module.
In this embodiment, the way for the KNX scene module to obtain the self-learning start instruction includes, but is not limited to: a self-learning button is arranged on the KNX scene module, and a user triggers the self-learning button to obtain a self-learning starting instruction; the user sends a control instruction to the KNX gateway equipment through the intelligent terminal, the KNX gateway equipment sends the control instruction to the corresponding KNX scene module through the KNX bus, and the KNX scene module receives the control instruction and then analyzes the control instruction to obtain a self-learning starting instruction.
And S102, monitoring a first control message on the KNX bus by the KNX scene module according to the self-learning starting instruction.
And S103, the KNX scene module analyzes the first control message to obtain an operation instruction and an address of the controlled KNX module, wherein the operation instruction is used for indicating the controlled KNX module to execute preset operation.
In this embodiment, after receiving the learning start instruction, the KNX scene module starts to monitor the first control packet on the KNX bus. The first control packet in this embodiment may originate from at least three sources:
source 1: in the process of controlling the KNX module by the KNX host device, the KNX host device sends a control message carrying an operation instruction to the KNX module through the KNX bus. The source address of the control message is KNX host equipment, and the destination address is a controlled KNX module. In this embodiment, after the KNX scene module monitors the control packet, the KNX scene module does not directly discard the control packet, but analyzes the control packet to obtain the operation instruction, and obtains the address of the controlled KNX module as the destination address of the control packet.
Source 2: in the process of distributed autonomous control by the KNX module, after the KNX module generates an operation instruction, the operation instruction is packaged into a control message and is sent to the KNX bus. The source address of the control message is the current KNX module, and the destination address can be a KNX host device or other devices. Meanwhile, the type of the operation instruction can be marked in the control message as a notification message which is sent by the current KNX module to other KNX modules or the KNX host device, but not a control message. In this embodiment, after monitoring the message, the KNX scene module analyzes the message to obtain the operation instruction, and meanwhile, learns that the control message is a notification message, and therefore obtains the address of the controlled KNX module as the source address of the control message.
Source 3: in the process of controlling the second KNX module by the first KNX module in a linkage mode, after the first KNX module generates an operation instruction, the operation instruction is packaged into a control message and sent to the second KNX module through the KNX bus. The source address of the control message is a first KNX module, and the destination address of the control message is a second KNX module. In this embodiment, after the KNX scene module listens to the message, the operation instruction is obtained through analysis, and meanwhile, the address of the controlled KNX module is also obtained as the address of the second KNX module.
Step S104, the KNX scene module acquires a self-learning stopping instruction;
in this embodiment, the self-learning stop instruction may be generated by active operation of the user, for example, the user triggers the self-learning button on the KNX scene module again to generate the self-learning stop instruction, or the user sends a control instruction to the KNX gateway device through the intelligent terminal, the KNX gateway device sends the control instruction to the corresponding KNX scene module through the KNX bus, and the KNX scene module receives the control instruction and then analyzes the control instruction to obtain the self-learning stop instruction. The self-learning stop command may also be triggered on time, for example, after the KNX scene module obtains the self-learning start command, a timer may be started, and when the timer expires, the self-learning stop command is generated. The time of the timer is preferably several minutes or several tens of minutes, for example 10 minutes.
And S105, stopping monitoring the first control message on the KNX bus by the KNX scene module according to the self-learning stopping instruction, and storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode.
In this embodiment, the operation instruction and the address of the controlled KNX module corresponding to the operation instruction are stored as the scene mode, so that the configuration of the scene mode is realized. In order to implement configuration of a plurality of scene modes, in the present embodiment, all the operation instructions generated by the self-learning start instruction and the self-learning stop instruction at one time and the addresses of the corresponding controlled KNX modules are used as one scene mode, and the scene mode is stored according to the scene mode identifier.
Through the steps, the automatic setting of the scene mode is realized by monitoring the first control message on the KNX bus, the problem of complex configuration of the scene mode in the KNX system in the related technology is solved, and the complexity of the scene configuration in the KNX system is reduced.
After one or more scene modes are obtained, the scene modes can be executed by means of triggering a scene mode starting instruction by a user or automatically triggering the scene mode starting instruction at a set time, and similarly, when the scene mode starting instruction is triggered by the user, the user can be triggered by a button arranged on a KNX scene module or by a smart terminal connected with a KNX gateway. In this embodiment, after acquiring the scene mode start instruction, the KNX scene module acquires the operation instruction and the address of the controlled KNX module in the stored scene mode, then generates a second control packet according to the operation instruction and the address of the controlled KNX module, and finally sends the second control packet to the KNX bus. The second control messages carry operation instructions, the destination addresses of the second control messages are the addresses of the controlled KNX modules, and when the controlled KNX modules receive the second control messages on the KNX bus, if the destination addresses of the second control messages are the addresses of the current controlled KNX modules, the second control messages are analyzed, and the operation instructions carried in the second control messages are executed; if the destination address of the second control message is not the address of the current controlled KNX module, the second control message may be directly discarded. By the method, the controlled KNX module can be automatically configured according to the scene mode.
And under the condition that the operation instruction obtained by analysis and the address of the controlled KNX module are stored as the scene mode according to the scene mode identifier, the scene mode identifier is also carried in the scene mode starting instruction. After receiving a scene mode starting instruction, the KNX scene module inquires a corresponding scene mode according to a scene mode identifier carried in the scene mode starting instruction, and acquires an operation instruction and an address of the controlled KNX module from the inquired scene mode corresponding to the scene mode identifier, so that a certain scene mode is selected from a plurality of scene modes, and the controlled KNX module is automatically configured according to the selected scene mode.
In one embodiment, storing the resolved operation instruction and the address of the controlled KNX module as the scene mode may include: and converting the operation instruction obtained by analysis and the address of the controlled KNX module into storage data in a preset format and storing the storage data. Generating the second control packet according to the operation instruction and the address of the controlled KNX module may include: and converting the stored data into an operation instruction and an address of the controlled KNX module, and generating a second control message according to the operation instruction and the address of the controlled KNX module. The predetermined format includes, but is not limited to, JSON format, or proprietary format, such as VSON format. In the embodiment, the operation instruction and the address of the controlled KNX module are converted into a preset format, so that the data are transmitted and stored, and the data are coupled with a private business system.
In this embodiment, after the KNX scene module generates the scene mode, the KNX scene module may further send the scene mode to the KNX main control device, so that the KNX main control device implements the corresponding scene mode.
Fig. 2 is a flowchart of a self-learning and self-configuration method of a scenario mode according to a preferred embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
in step S201, when the user presses the learning button of the KNX scene module (the self-reset panel button connected to the KNX scene module), the learning mode is entered.
In step S202, in the learning mode, the user operates the KNX module with other functions.
In step S203, the KNX scene module memorizes the operation commands executed by the KNX modules with other functions and the addresses of the KNX modules.
And step S204, after exiting the learning mode, the KNX scene module converts the operation instructions executed by the other KNX modules with the functions and the addresses of the KNX modules into information in a preset format for storage.
And step S205, pressing the learning key again, and converting the corresponding information in the preset format into a control instruction by the KNX scene module to be sent out.
Through the embodiment, the functions of other KNX modules are learned through setting on the control panel of the slave control module such as the KNX module. The learning function can learn the function of a single KNX module and also can learn the functions of a plurality of KNX modules, so that a user can conveniently set corresponding scene modes according to own requirements in the slave control module.
The embodiment also provides a scene mode self-learning device, which is preferably applied to the KNX scene module and is used for realizing the above scene mode self-learning method. Fig. 3 is a block diagram illustrating a method for self-learning a scene mode according to an embodiment of the present invention, and as shown in fig. 3, the self-learning apparatus for a scene mode includes:
a first obtaining module 31, configured to obtain a self-learning starting instruction;
the monitoring module 32 is coupled to the first obtaining module 31 and configured to monitor a first control packet on the KNX bus according to the self-learning start instruction;
the analyzing module 33 is coupled to the monitoring module 32, and configured to analyze the first control packet to obtain an operation instruction and an address of the controlled KNX module, where the operation instruction is used to instruct the controlled KNX module to execute a preset operation;
a second obtaining module 34, configured to obtain a self-learning stop instruction;
and the storage module 35 is coupled to the analysis module 33 and the second obtaining module 34, and is configured to stop monitoring the first control packet on the KNX bus according to the self-learning stop instruction, and store the operation instruction obtained through analysis and the address of the controlled KNX module as a scene mode.
In one embodiment, the apparatus further comprises: a third obtaining module, coupled to the certain storage block 25, configured to obtain a scene mode start instruction; the fourth acquisition module is coupled to the third acquisition module and used for acquiring the operation instruction and the address of the controlled KNX module in the scene mode according to the scene mode starting instruction; the generating module is coupled to the fourth obtaining module and used for generating a second control message according to the operation instruction and the address of the controlled KNX module; and the sending module is coupled to the generating module and used for sending the second control message to the KNX bus.
In one embodiment, the storage module 35 is configured to store the operation instruction obtained by the parsing and the address of the controlled KNX module as a scene mode according to the scene mode identifier; the fourth acquisition module is used for inquiring the scene mode corresponding to the scene mode identifier; and acquiring the operating instruction and the address of the controlled KNX module in the scene mode corresponding to the scene mode identifier.
In addition, the self-learning method of the scene mode of the embodiment of the present invention described in conjunction with fig. 1 may be implemented by a self-learning apparatus of the scene mode. Fig. 4 is a schematic diagram illustrating a hardware structure of a self-learning device of a scene mode according to an embodiment of the present invention.
The self-learning device of the scene mode may comprise a processor 41 and a memory 42 storing computer program instructions.
Specifically, the processor 41 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing the embodiments of the present invention.
Memory 42 may include mass storage for data or instructions. By way of example, and not limitation, memory 42 may include a Hard Disk Drive (HDD), a floppy Disk Drive, flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 42 may include removable or non-removable (or fixed) media, where appropriate. The memory 42 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 42 is a non-volatile solid-state memory. In particular embodiments, memory 42 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 41 may implement the self-learning method of any of the scene modes in the above embodiments by reading and executing computer program instructions stored in the memory 42.
In one example, the self-learning device of the contextual pattern may also include a communication interface 43 and a bus 40. As shown in fig. 4, the processor 41, the memory 42, and the communication interface 43 are connected via the bus 40 to complete mutual communication.
The communication interface 43 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiment of the present invention.
The bus 40 includes hardware, software, or both that couple the components of the self-learning device of the scene mode to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 40 may include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
The self-learning device of the scene mode can execute the self-learning method of the scene mode in the embodiment of the invention based on the acquired data, thereby realizing the self-learning method of the scene mode described in conjunction with fig. 1.
In addition, in combination with the self-learning method of the scene mode in the above embodiments, the embodiments of the present invention may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement a self-learning method of any of the above embodiments of a scene mode.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A self-learning method of a scene mode is characterized by comprising the following steps:
acquiring a self-learning starting instruction;
monitoring a first control message on the KNX bus according to the self-learning starting instruction;
analyzing the first control message to obtain an operation instruction and an address of a controlled KNX module, wherein the operation instruction is used for indicating the controlled KNX module to execute preset operation;
acquiring a self-learning stopping instruction;
and stopping monitoring the first control message on the KNX bus according to the self-learning stopping instruction, and storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode.
2. The method according to claim 1, wherein after storing the resolved operation instruction and the address of the controlled KNX module as a scene mode, the method further comprises:
acquiring a scene mode starting instruction;
according to the scene mode starting instruction, acquiring the operating instruction and the address of the controlled KNX module in the scene mode;
generating a second control message according to the operation instruction and the address of the controlled KNX module;
and sending the second control message to the KNX bus.
3. The method of claim 2,
storing the resolved operation instruction and the address of the controlled KNX module as a scene mode includes: storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode according to the scene mode identifier;
under the condition that the scene mode start instruction further carries the scene mode identifier, acquiring the operation instruction and the address of the controlled KNX module in the scene mode according to the scene mode start instruction includes: inquiring a scene mode corresponding to the scene mode identification; and acquiring the operating instruction and the address of the controlled KNX module in a scene mode corresponding to the scene mode identifier.
4. The method of claim 2,
storing the resolved operation instruction and the address of the controlled KNX module as a scene mode further comprises: converting the operation instruction obtained by analysis and the address of the controlled KNX module into storage data in a preset format and storing the storage data;
generating a second control message according to the operation instruction and the address of the controlled KNX module includes: and converting the stored data into the operating instruction and the address of the controlled KNX module, and generating the second control message according to the operating instruction and the address of the controlled KNX module.
5. The method according to any one of claims 1 to 4, characterized in that the first control message is sent into the KNX bus by a KNX host device in a KNX system or by a KNX module.
6. A self-learning apparatus of a scene mode, comprising:
the first acquisition module is used for acquiring a self-learning starting instruction;
the monitoring module is used for monitoring a first control message on the KNX bus according to the self-learning starting instruction;
the analysis module is used for analyzing the first control message to obtain an operation instruction and an address of a controlled KNX module, wherein the operation instruction is used for indicating the controlled KNX module to execute preset operation;
the second acquisition module is used for acquiring a self-learning stopping instruction;
and the storage module is used for stopping monitoring the first control message on the KNX bus according to the self-learning stopping instruction and storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode.
7. The apparatus of claim 6, further comprising:
a third obtaining module, configured to obtain a scene mode start instruction;
a fourth obtaining module, configured to obtain, according to the scene mode start instruction, the operation instruction and the address of the controlled KNX module in the scene mode;
the generating module is used for generating a second control message according to the operating instruction and the address of the controlled KNX module;
and the sending module is used for sending the second control message to the KNX bus.
8. The apparatus of claim 7,
the storage module is used for storing the operation instruction obtained by analysis and the address of the controlled KNX module as a scene mode according to the scene mode identifier;
the fourth obtaining module is configured to query a scene mode corresponding to the scene mode identifier; and acquiring the operating instruction and the address of the controlled KNX module in a scene mode corresponding to the scene mode identifier.
9. A self-learning device of a scene mode, characterized by comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-5.
10. A computer-readable storage medium having computer program instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1 to 5.
CN201911099483.4A 2019-11-12 2019-11-12 Self-learning method, device, equipment and storage medium of scene mode Pending CN110928192A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911099483.4A CN110928192A (en) 2019-11-12 2019-11-12 Self-learning method, device, equipment and storage medium of scene mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911099483.4A CN110928192A (en) 2019-11-12 2019-11-12 Self-learning method, device, equipment and storage medium of scene mode

Publications (1)

Publication Number Publication Date
CN110928192A true CN110928192A (en) 2020-03-27

Family

ID=69852794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911099483.4A Pending CN110928192A (en) 2019-11-12 2019-11-12 Self-learning method, device, equipment and storage medium of scene mode

Country Status (1)

Country Link
CN (1) CN110928192A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625554A (en) * 2012-03-20 2012-08-01 浙江大学 Distributed DALI (Digital Addressable Lighting Interface) lighting control system and method thereof
CN104932333A (en) * 2015-05-15 2015-09-23 广东美的暖通设备有限公司 KNX control system and KNX/IP gateway
CN106462231A (en) * 2014-03-17 2017-02-22 Itu 商业发展公司 Computer-implemented gaze interaction method and apparatus
CN206077901U (en) * 2016-09-08 2017-04-05 深圳市泛海三江科技发展有限公司 Intelligent switch based on KNX buses
CN106707783A (en) * 2016-12-30 2017-05-24 中科同德(北京)生态科技有限公司 KNX bus control method and system for recording user behavior habits
CN106814720A (en) * 2017-03-27 2017-06-09 杭州古北电子科技有限公司 Intelligent home furnishing control method and system
CN109446027A (en) * 2018-10-24 2019-03-08 青岛海信智慧家居系统股份有限公司 Scene triggering method and device based on bus system
CN109799716A (en) * 2018-12-24 2019-05-24 北京金茂绿建科技有限公司 A kind of method, apparatus and smart home system of scene push

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625554A (en) * 2012-03-20 2012-08-01 浙江大学 Distributed DALI (Digital Addressable Lighting Interface) lighting control system and method thereof
CN106462231A (en) * 2014-03-17 2017-02-22 Itu 商业发展公司 Computer-implemented gaze interaction method and apparatus
CN104932333A (en) * 2015-05-15 2015-09-23 广东美的暖通设备有限公司 KNX control system and KNX/IP gateway
CN206077901U (en) * 2016-09-08 2017-04-05 深圳市泛海三江科技发展有限公司 Intelligent switch based on KNX buses
CN106707783A (en) * 2016-12-30 2017-05-24 中科同德(北京)生态科技有限公司 KNX bus control method and system for recording user behavior habits
CN106814720A (en) * 2017-03-27 2017-06-09 杭州古北电子科技有限公司 Intelligent home furnishing control method and system
CN109446027A (en) * 2018-10-24 2019-03-08 青岛海信智慧家居系统股份有限公司 Scene triggering method and device based on bus system
CN109799716A (en) * 2018-12-24 2019-05-24 北京金茂绿建科技有限公司 A kind of method, apparatus and smart home system of scene push

Similar Documents

Publication Publication Date Title
CN108432282B (en) Method and apparatus for managing electronic devices through wireless communication
CN113138562B (en) Terminal control system and terminal control method based on Internet of things
US20150262443A1 (en) METHOD, SYSTEM, and COMPUTER-READABLE MEDIUM RELATING TO INTERNET of THINGS-ENABLED REMOTE CONTROLS
CN107632526B (en) Control device, method, storage medium and equipment
CN106452989B (en) method and device for establishing intelligent scene
CN111885579B (en) Bluetooth device testing method, device, equipment and storage medium
CN109831362A (en) A kind of electronic equipment control method and system
CN109100950A (en) A kind of control method and smart home system of smart home device
CN104566783A (en) Air conditioner control method and air conditioner control system
JP2008172570A (en) Home network system
CN111654844A (en) Device pairing method and related device and device
CN111245677A (en) Communication abnormity reporting method and device, electronic equipment and storage medium
CN111885580A (en) Bluetooth device test method, device and storage medium
WO2018103623A1 (en) Terminal control method and apparatus, and terminal system
CN110928192A (en) Self-learning method, device, equipment and storage medium of scene mode
CN107329404B (en) Control method of intelligent household equipment and intelligent gateway
CN105207811B (en) Method and device for replacing non-AllJoyn equipment
EP2819349A1 (en) Communication device, communication method, and management device
CN110868343B (en) KNX node automatic discovery method and KNX system
JP2013013287A (en) Electric power supply device, electric power management method, and electric power management program
CN113357754A (en) Method and device for displaying running state, storage medium and electronic device
Wang et al. Design and Realization of Smart Home Security System Based on AWS
CN110233783A (en) A kind of electrical control system based on set of terminal positioning
KR20200079142A (en) Real time power saving system with real time feed back
KR20190066575A (en) Control apparatus, control method of control apparatus and program

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