CN112526891A - Intelligent switch key control system and method - Google Patents

Intelligent switch key control system and method Download PDF

Info

Publication number
CN112526891A
CN112526891A CN202011377620.9A CN202011377620A CN112526891A CN 112526891 A CN112526891 A CN 112526891A CN 202011377620 A CN202011377620 A CN 202011377620A CN 112526891 A CN112526891 A CN 112526891A
Authority
CN
China
Prior art keywords
key
intelligent
state
switch
control instruction
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
CN202011377620.9A
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.)
Xingluo Home Yunwulian Technology Co ltd
Original Assignee
Xingluo Intelligent 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 Xingluo Intelligent Technology Co Ltd filed Critical Xingluo Intelligent Technology Co Ltd
Priority to CN202011377620.9A priority Critical patent/CN112526891A/en
Publication of CN112526891A publication Critical patent/CN112526891A/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides an intelligent switch key control system, comprising: the intelligent switch is used for detecting whether a physical key on the intelligent switch is triggered or not; if yes, generating a first key signal according to the key number and the key state of the physical key, and sending the generated first key signal to a cloud server; the cloud server is used for analyzing the first key signal and inquiring the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state; generating a first control instruction according to the intelligent device ID and the key function, and sending the first control instruction to the intelligent device corresponding to the intelligent device ID; and the intelligent equipment is used for receiving the first control instruction and controlling the intelligent equipment to execute the operation corresponding to the first control instruction.

Description

Intelligent switch key control system and method
Technical Field
The invention relates to intelligent home furnishing, in particular to an intelligent switch key control system and method.
Background
With the development of science and technology, smart homes gradually enter the lives of common users. In the field of intelligent home furnishing, a user can install a plurality of intelligent home furnishing devices at different positions in the home to meet personalized requirements of the user. However, smart home devices typically need to be equipped with a specific controller for control. If the number of the controllers of the home equipment is too many, on one hand, the controllers are easy to be mixed and lost, and on the other hand, the resources are easy to be wasted due to the too many controllers.
Disclosure of Invention
In view of this, the invention provides a system and a method for controlling a key of an intelligent switch, which bind a physical key of the intelligent switch with a specific function of an intelligent home device, so that a user can control the intelligent home device through the intelligent switch installed at home, thereby reducing the number of controllers and saving resources.
First, in order to achieve the above object, the present invention provides an intelligent switch key control system, including:
the intelligent switch is used for detecting whether a physical key on the intelligent switch is triggered or not;
if yes, generating a first key signal according to the key number and the key state of the physical key, and sending the generated first key signal to a cloud server;
the cloud server is used for analyzing the first key signal and inquiring the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state;
generating a first control instruction according to the intelligent device ID and the key function, and sending the first control instruction to the intelligent device corresponding to the intelligent device ID;
and the intelligent equipment is used for receiving the first control instruction and controlling the intelligent equipment to execute the operation corresponding to the first control instruction.
Preferably, the system further comprises a user terminal, wherein a client program is installed in the user terminal, and is used for:
acquiring a key number and at least one key state of a physical key of an intelligent switch;
configuring ID of at least one intelligent device corresponding to the key number and key functions corresponding to the at least one key state one by one;
and sending the key number, the intelligent device ID corresponding to the key number, the at least one key state and the key function corresponding to the at least one key state to a cloud server, so that the cloud server generates a cloud key function configuration table corresponding to the intelligent switch according to the key number, the intelligent device ID, the key state and the key function.
Preferably, the cloud server is further configured to issue the cloud key function configuration table to a corresponding intelligent switch, so that the intelligent switch updates a local key function configuration table stored in the intelligent switch according to the cloud key function configuration table.
Preferably, when the network environment is bad or interrupted, the intelligent switch is further used for:
detecting whether a physical key on the intelligent switch is triggered;
if yes, acquiring the key number and the key state of the physical key;
inquiring the local key function configuration table, and determining the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state;
and generating a second control instruction according to the ID of the intelligent device and the key function, and sending the second control instruction to the intelligent device corresponding to the ID of the intelligent device, so that the intelligent device receives the second control instruction and executes the operation corresponding to the second control instruction.
Preferably, the key number at least comprises a unique identity and a key serial number of the intelligent switch;
the key state at least comprises a working state and a non-working state;
the key functions at least comprise opening equipment and closing equipment;
the smart device ID includes at least a MAC address of the smart device.
In addition, in order to achieve the above object, the present invention further provides a method for controlling an intelligent switch key, including:
detecting whether a physical key on the intelligent switch is triggered;
if the first key is triggered, generating a first key signal according to the key number and the key state of the physical key, and sending the generated first key signal to a cloud server;
analyzing the received first key signal in the cloud server, and inquiring the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state;
generating a first control instruction according to the intelligent device ID and the key function, and sending the first control instruction to the intelligent device corresponding to the intelligent device ID;
and receiving the first control instruction at an intelligent device end, and controlling the intelligent device to execute the operation corresponding to the first control instruction.
Preferably, the method further comprises the following steps:
acquiring a key number and at least one key state of a physical key of an intelligent switch through a client program of a user terminal;
configuring ID of at least one intelligent device corresponding to the key number and key functions corresponding to the at least one key state one by one;
and sending the key number, the intelligent device ID corresponding to the key number, the at least one key state and the key function corresponding to the at least one key state to a cloud server, so that the cloud server generates a cloud key function configuration table corresponding to the intelligent switch according to the key number, the intelligent device ID, the key state and the key function.
Preferably, the method further comprises the following steps:
and issuing the cloud key function configuration table to a corresponding intelligent switch so that the intelligent switch updates a local key function configuration table stored in the intelligent switch according to the cloud key function configuration table.
Preferably, when the network environment is bad or interrupted, the method further comprises the following steps:
detecting whether a physical key on the intelligent switch is triggered;
if yes, acquiring the key number and the key state of the physical key through the intelligent switch;
inquiring the local key function configuration table, and determining the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state;
and generating a second control instruction according to the ID of the intelligent device and the key function, and sending the second control instruction to the intelligent device corresponding to the ID of the intelligent device, so that the intelligent device receives the second control instruction and executes the operation corresponding to the second control instruction.
Preferably, the key number at least comprises a unique identity and a key serial number of the intelligent switch;
the key state at least comprises a working state and a non-working state;
the key functions at least comprise opening equipment and closing equipment;
the smart device ID includes at least a MAC address of the smart device.
Compared with the prior art, the intelligent switch key control system and method provided by the invention have the advantages that the unique key number is obtained by numbering the physical keys of the intelligent switch in advance, then the key number is bound with the intelligent device ID in the home of the user, and different key states of the physical keys are configured to correspond to different functions of the intelligent device, so that the user can realize intelligent control on one or more intelligent devices in the home through the physical keys of the intelligent switch in the home, and the user experience is improved.
Drawings
FIG. 1 is a schematic illustration of an alternative operating environment for embodiments of the present invention;
FIG. 2 is a diagram illustrating a hardware architecture of an alternative intelligent switch according to various embodiments of the present invention;
FIG. 3 is a schematic flow chart of a first embodiment of a method for controlling an intelligent switch key according to the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of the method for controlling the keys of the intelligent switch according to the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention 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 invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, an alternative operating environment for implementing various embodiments of the present invention is shown. As shown in the drawings, the present invention can be applied to an intelligent switch key control system, which includes, but is not limited to, at least one or more intelligent switches 1 (only 1 is shown in the drawings), a cloud server 2, and one or more intelligent devices 3 (only 3 is shown in the drawings). The one or more intelligent switches 1 are respectively connected with one end of the cloud server 2 in a communication manner through a network, and the other end of the cloud server 2 is respectively connected with one or more intelligent devices 3 in a communication manner through a network. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, Zigbee, or the like.
The intelligent switch 1 can be an intelligent home control device in a user home, such as a smart panel, a smart screen, a smart sound box, a smart television, a smart phone, a personal computer, a tablet computer and other terminal devices. The intelligent switch 1 is generally configured with one or more physical keys, which are usually connected to a specific circuit coil through a relay, and are mainly used for responding to a key operation acted on the physical keys by a user, that is, when the physical keys are triggered or not triggered, generating corresponding level control signals, so as to control the circuit coil to be switched on or off through the relay, and thus, the intelligent device 3 connected to the circuit coil is turned on or off. The design enables the intelligent switch 1 to be bound with the related relay, the circuit coil and the intelligent device 3 connected with the coil, and the physical key of the intelligent switch 1 can only be used for controlling the corresponding intelligent device 3. Once the smart device 3 is damaged, the physical key is not used. In the embodiment, the intelligent switch 1 is improved (see the following description for details), so that the physical key is separated from the related relay, circuit coil and intelligent device 3, and is not bound.
In this embodiment, the intelligent switch 1 is mainly used for: detecting whether a physical key on the intelligent switch 1 is triggered, if so, generating a first key signal according to the key number and the key state of the physical key, and sending the generated first key signal to the cloud server 2. Specifically, when a key operation acting on the physical key is detected, the smart switch 1 determines that the physical key is triggered. It will be appreciated that the activation of a physical key is closely related to its key state, and that a physical key typically enters a different key state whenever a key operation occurs on the physical key. The user can switch the key state of the physical key through the key operation. The key number refers to an identity having a unique identity property in a home network environment of the personal user, and may be, for example, a number formed by encoding the unique identity of the smart switch 1 where the physical key is located and a key serial number of the physical key in the smart switch 1. The key states refer to different use states of the physical key, such as working and non-working states, on and off states, and the like. The first key signal at least comprises the key number and the key state, the first key signal is mainly used for informing the cloud server 2 in communication connection with the intelligent switch 1, a certain physical key of the intelligent switch 1 is triggered, and the triggered physical key is in which key state.
The cloud server 2 may be a rack server, a blade server, a tower server, or a rack server, and the cloud server 2 may be an independent server or a server cluster composed of a plurality of servers. In this embodiment, the cloud server 2 is mainly configured to: analyzing the first key signal, and inquiring the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state; and generating a first control instruction according to the intelligent equipment ID and the key function, and sending the first control instruction to the intelligent equipment corresponding to the intelligent equipment ID.
In this embodiment, a preset cloud key function configuration table is pre-stored in the cloud server 2, and the cloud key function configuration table stores at least a key number and at least one key state of a physical key of the intelligent switch 1, an ID of at least one piece of intelligent equipment corresponding to the key number, a key function corresponding to the at least one key state, and the like.
The cloud key function configuration table can be generated through the following steps: first, the cloud server 2 may provide a home account, and a user may add any smart home device, such as one or more smart devices 3, one or more smart switches 1, and the like, to the home account through a client installed in a user terminal. Then, through the client program, the user can obtain the key numbers and at least one key state of one or more physical keys of the intelligent switch 1, configure the ID of at least one corresponding intelligent device for the key numbers, and configure the one-to-one key function for the at least one key state. Finally, the key number, the smart device ID corresponding to the key number, the at least one key state, the key functions corresponding to the at least one key state, and the like can be uploaded to the cloud server 2 through the client program, so that the cloud server 2 generates a cloud key function configuration table corresponding to the one or more smart switches 1 according to the key number, the smart device ID, the key state, and the key functions.
In addition, in an embodiment, the client program may display a configuration interface in the user terminal in advance, the configuration interface may provide all the smart switches 1 and the physical keys thereof under the home account, and the user may perform the above configuration on all the smart switches 1 through the configuration interface. For example, the user may first number all the physical keys of the intelligent switch 1 through the configuration interface, so that each physical key has a unique key number. The key number of the physical key may be composed of a unique identity of the intelligent switch 1 where the physical key is located and a key serial number of the physical key in the intelligent switch 1, and the like. Secondly, the user can configure different key states for the physical key through the configuration interface, wherein the key states refer to different use states that the physical key can support. For example, for a common switch key, only 2 key states of on and off are generally included; for the 3-level dimming switch key, at least 3 key states are included. The key states of the physical keys at least comprise working states and non-working states. Finally, the user can configure the corresponding intelligent device 3 and functions for the physical keys through the configuration interface, that is, while selecting the corresponding intelligent device ID for the physical keys with different key codes on the configuration interface, different functions are set according to different types of key states of the physical keys. Wherein, the smart device ID may be a MAC address of the smart device 3, etc. For example, assuming that the physical key of the key code a is configured for a function, according to the above process, the user may first select the physical key of the key code a on the configuration page, then select the key state as the working state, and finally configure the corresponding intelligent device 3 as the intelligent air conditioner B (the ID of the intelligent air conditioner is B) for the physical key of the working state, where the corresponding key function is the start device. Thus, the functional configuration of the A physical key in the working state is completed.
It should be noted that, when the user completes the function configuration of the physical key of the smart switch 1 through the client program, the client program uploads the configuration information to the cloud server 2, so that the cloud server 2 generates a cloud key function configuration table corresponding to the smart switch 1 according to the key number, the smart device ID, the key state, and the key function. The following table is an example of the cloud key configuration table, where:
serial number Intelligent switch Key number Key state Intelligent device Key function
1 Intelligent switch A A01100 Touch working state Intelligent air conditioner A Opening device
2 Intelligent switch A A01100 Non-operating state Intelligent air conditioner A Closing device
3 Intelligent switch A A01101 Working state Intelligent lamp A Opening device
4 Intelligent switch A A01101 Non-operating state Intelligent lamp A Closing device
…… …… …… …… …… ……
As shown in the above table, two physical keys a01100 and a01101 of smart switch a are shown in the table, where a01100 and a01101 both have two key states: an active state and an inactive state. As can be seen from the table, the operating state of the a01100 button corresponds to the turning on of the smart air conditioner a, and the non-operating state corresponds to the turning off of the smart air conditioner a; and the working state of the A01101 key corresponds to the opening of the intelligent lamp A, and the non-working state corresponds to the closing of the intelligent lamp A. In other words, the user can respectively control the intelligent air conditioner a and the intelligent lamp a to be turned on and off through the physical keys a01100 and a01101 of the intelligent switch a. Therefore, when the smart switch 1 sends the first key signal to the cloud server 2, the cloud server 2 analyzes the first key signal, and according to the key number and the key state included in the signal, the cloud key function configuration table is queried to obtain the smart device ID corresponding to the key number and the key function corresponding to the key state. For example, when the key label is a01101 and the key state is the working state, the cloud server 2 queries the cloud key function configuration table, and it can be known that the smart device 3 corresponding to the physical key of the number a01101 is the "smart luminaire a" and the key function corresponding to the working state is the "start device".
Further, the cloud server 2 is further configured to: and generating a first control instruction according to the intelligent equipment ID and the key function, and sending the first control instruction to the intelligent equipment corresponding to the intelligent equipment ID. As can be seen from the foregoing example, when the key label is a01101 and the key state is the working state, the cloud server 2 queries the cloud key function configuration table, and it can be seen that the corresponding smart device 3 is "smart luminaire a" and the corresponding key function is "start device". The cloud server 2 may generate a control instruction for turning on the intelligent lamp a, that is, the first control instruction, according to the intelligent lamp a and the turning-on device.
The intelligent device 3 can be an intelligent air conditioner, an intelligent television, an intelligent sound box, a sound pick-up, a microphone, a telephone, an intelligent curtain, an intelligent lamp, a washing machine, a voice panel and other intelligent household devices. Generally, the smart device 3 may be added to the cloud server 2 through a client program of a user terminal, so as to facilitate a user to configure an intelligent control scheme and the like for the smart device 3. In this embodiment, the smart device 3 is in communication connection with the cloud server 2, and is mainly used for: and receiving a first control instruction sent by the cloud server 2, and controlling the intelligent device 3 to execute an operation corresponding to the first control instruction.
For example, as can be seen from the foregoing, when the cloud server 2 generates a first control instruction of turning on the smart luminaire a, the cloud server 2 may send the instruction of turning on the smart luminaire a to control the smart luminaire a to perform an operation of turning on the smart luminaire a.
It should be added that, under normal conditions, the cloud server 2 generally maintains a network connection with the intelligent switch 1. However, in order to avoid the physical button failure of the intelligent switch 1 when the network environment is bad or interrupted. After the cloud server 2 generates the cloud key function configuration table, the cloud server is further configured to: and issuing the cloud key function configuration table to the corresponding intelligent switch 1, so that the intelligent switch 1 updates the local key function configuration table stored in the intelligent switch 1 according to the cloud key function configuration table.
Correspondingly, the intelligent switch 1 may be further connected to the intelligent device 3 through a short-range communication network, such as a WIFI network, a bluetooth network, a Zigbee network, or the like. Wherein, when the network environment is bad or interrupted, the intelligent switch 1 is further used for: firstly, detecting whether a physical key on the intelligent switch 1 is triggered; if the key is triggered, acquiring the key number and the key state of the physical key of the intelligent switch 1; secondly, according to the key number and the key state, respectively inquiring the local key function configuration table stored in the intelligent switch 1, and determining the intelligent device ID corresponding to the key number and the key function corresponding to the key state in the local key function configuration table; and finally, generating a second control instruction according to the intelligent device ID and the key function, and sending the second control instruction to the intelligent device corresponding to the intelligent device ID, so that the intelligent device receives the second control instruction and executes the operation corresponding to the second control instruction.
Through the description of the functions of the components, the intelligent switch key control system provided by the invention has the advantages that the unique key number is obtained by numbering the physical keys of the intelligent switch 1 in advance, then the key number is bound with the intelligent device ID in the home of the user, and different key states of the physical keys are configured to correspond to different functions of the intelligent device 3, so that the user can realize the intelligent control of one or more intelligent devices 3 in the home through the physical keys of the intelligent switch 1 in the home, and the user experience is improved.
Fig. 2 is a schematic diagram showing a hardware architecture of an optional intelligent switch 1 according to various embodiments of the present invention. As shown, the intelligent switch 1 may include, but is not limited to, a memory 11, a processor 12, and a communication interface 13, which may be communicatively connected to each other via a system bus. It is noted that fig. 1 only shows the intelligent switch 1 with components 11-13, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 11 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the intelligent switch 1, such as a hard disk or a memory of the intelligent switch 1. In other embodiments, the memory 11 may also be an external storage device of the Smart switch 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the Smart switch 1. Of course, the memory 11 may also include both an internal storage unit of the intelligent switch 1 and an external storage device thereof. In this embodiment, the memory 11 is generally used for storing an operating system installed in the intelligent switch 1 and various application software, such as computer program codes. Furthermore, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is typically used to control the overall operation of the intelligent switch 1. In this embodiment, the processor 12 is configured to run the computer program code stored in the memory 11 or process data.
The communication interface 13 may include a wireless network interface or a wired network interface, for example, the communication interface 13 may be a network communication interface such as an Intranet (Internet), the Internet (Internet), a Global System for mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, and the like. In this embodiment, the communication interface 13 is generally used to establish a communication connection and transmit data between the smart switch 1 and the cloud server 2 and/or the smart device 3.
In this embodiment, when the computer program code stored in the memory 11 is executed by the processor 12, an intelligent switch key control method can be implemented.
Fig. 3 is a schematic flow chart of a first embodiment of the intelligent switch key control method according to the present invention. In this embodiment, according to different requirements, the execution order of the steps in the flowchart shown in fig. 4 may be changed, and some steps may be omitted. The method comprises the following steps:
step S110, detecting whether the physical key on the intelligent switch 1 is triggered.
In this embodiment, intelligence switch 1 can be control equipment in the intelligent home in the user's house, for example terminal equipment such as intelligent panel, wisdom screen, intelligent audio amplifier, smart television, smart mobile phone, personal computer, panel computer. The intelligent switch 1 is generally configured with one or more physical buttons, mainly for: and detecting whether a physical key on the intelligent switch 1 is triggered. Specifically, when detecting that a key operation acting on the physical key occurs, the smart switch 1 determines that the physical key is triggered. It will be appreciated that the activation of a physical key is closely related to its key state, and that a physical key typically enters a different key state whenever a key operation occurs on the physical key. Thus, the user can switch the key state of the physical key by performing the key operation.
Step S120, if triggered, generating a first key signal according to the key number and the key state of the physical key, and sending the generated first key signal to the cloud server 2.
In this embodiment, the key number refers to an identity having a unique identification property in a home network environment of a personal user, and may be, for example, a number formed by encoding a unique identity of the smart switch 1 where the physical key is located and a key serial number of the physical key in the smart switch 1. The key states refer to different use states of the physical key, such as working and non-working states, on and off states, and the like. The first key signal at least comprises the key number and the key state, and is mainly used for informing the cloud server 2 in communication connection with the intelligent switch 1, which physical key of the intelligent switch 1 is triggered, and which key state the triggered physical key is in.
Step S130, analyzing the received first key signal in the cloud server 2, and querying the smart device ID corresponding to the key number and the key function corresponding to the key state.
In this embodiment, a preset cloud key function configuration table is pre-stored in the cloud server 2, and the cloud key function configuration table stores at least a key number and at least one key state of a physical key of the intelligent switch 1, an ID of at least one piece of intelligent equipment corresponding to the key number, a key function corresponding to the at least one key state, and the like.
The cloud key function configuration table can be generated through the following steps: first, the cloud server 2 may provide a home account, and a user may add any smart home device, such as one or more smart devices 3, one or more smart switches 1, and the like, to the home account through a client installed in a user terminal. Then, through the client program, the user can obtain the key numbers and at least one key state of one or more physical keys of the intelligent switch 1, configure the ID of at least one corresponding intelligent device for the key numbers, and configure the one-to-one key function for the at least one key state. Finally, the key number, the smart device ID corresponding to the key number, the at least one key state, the key functions corresponding to the at least one key state, and the like can be uploaded to the cloud server 2 through the client program, so that the cloud server 2 generates a cloud key function configuration table corresponding to the one or more smart switches 1 according to the key number, the smart device ID, the key state, and the key functions.
In an embodiment, the client program may display a configuration interface in the user terminal in advance, the configuration interface may provide all the smart switches 1 and the physical keys thereof under the home account, and the user may perform the above configuration on all the smart switches 1 through the configuration interface. For example, the user may first number all the physical keys of the intelligent switch 1 through the configuration interface, so that each physical key has a unique key number. The key number of the physical key may be composed of a unique identity of the intelligent switch 1 where the physical key is located and a key serial number of the physical key in the intelligent switch 1, and the like. Secondly, the user can configure different key states for the physical key through the configuration interface, wherein the key states refer to different use states that the physical key can support. For example, for a common switch key, only 2 key states of on and off are generally included; for the 3-level dimming switch key, at least 3 key states are included. Finally, the user can configure the corresponding intelligent device 3 and functions for the physical keys through the configuration interface, that is, while selecting the corresponding intelligent device ID for the physical keys with different key codes on the configuration interface, different functions are set according to different types of key states of the physical keys. Wherein, the smart device ID may be a MAC address of the smart device 3, etc.
For example, assuming that the physical key of the key code a is configured for a function, according to the above process, the user may first select the physical key of the key code a on the configuration page, then select the key state as the working state, and finally configure the corresponding intelligent device 3 as the intelligent air conditioner B (the ID of the intelligent air conditioner is B) for the physical key of the working state, where the corresponding key function is the start device. Thus, the functional configuration of the A physical key in the working state is completed. It should be noted that, when the user completes the function configuration of the physical key of the smart switch 1 through the client program, the client program uploads the configuration information to the cloud server 2, so that the cloud server 2 generates a cloud key function configuration table corresponding to the smart switch 1 according to the key number, the smart device ID, the key state, and the key function. The following table is an example of the cloud key configuration table, where:
serial number Intelligent switch Key number Key state Intelligent device ID Key function
1 Intelligent switch A A01100 Working state Intelligent air conditioner A Opening device
2 Intelligent switch A A01100 Non-operating state Intelligent air conditioner A Closing device
3 Intelligent switch A A01101 Working state Intelligent lamp A Opening device
4 Intelligent switch A A01101 Non-operating state Intelligent lamp A Closing device
…… …… …… …… …… ……
As shown in the above table, two physical keys a01100 and a01101 of smart switch a are shown in the table, where a01100 and a01101 both have two key states: an active state and an inactive state. As can be seen from the table, the operating state of the a01100 button corresponds to the turning on of the smart air conditioner a, and the non-operating state corresponds to the turning off of the smart air conditioner a; and the working state of the A01101 key corresponds to the opening of the intelligent lamp A, and the non-working state corresponds to the closing of the intelligent lamp A. In other words, the user can respectively control the intelligent air conditioner a and the intelligent lamp a to be turned on and off through the physical keys a01100 and a01101 of the intelligent switch a.
Therefore, when the smart switch 1 sends the first key signal to the cloud server 2, the cloud server 2 analyzes the first key signal, and according to the key number and the key state included in the signal, the cloud key function configuration table is queried to obtain the smart device ID corresponding to the key number and the key function corresponding to the key state. For example, when the key label is a01101 and the key state is the working state, the cloud server 2 queries the cloud key function configuration table, and it can be known that the smart device 3 corresponding to the physical key of the number a01101 is the "smart luminaire a" and the key function corresponding to the working state is the "start device".
Step S140, generating a first control instruction according to the intelligent device ID and the key function, and sending the first control instruction to the intelligent device 3 corresponding to the intelligent device ID.
Further, as can be seen from the foregoing example, when the key label is a01101 and the key state is the working state, the cloud server 2 queries the cloud key function configuration table, and it can be seen that the corresponding smart device 3 is "smart luminaire a" and the corresponding key function is "start device". The cloud server 2 may generate a control instruction for turning on the intelligent lamp a, that is, the first control instruction, according to the intelligent lamp a and the turning-on device.
And step S150, receiving the first control instruction at the intelligent equipment end, and controlling the intelligent equipment to execute the operation corresponding to the first control instruction.
In this embodiment, the intelligent device 3 may be an intelligent home device such as an intelligent air conditioner, an intelligent television, an intelligent sound box, a sound pickup, a microphone, a telephone, an intelligent curtain, an intelligent lamp, a washing machine, and a voice panel. Generally, the smart device 3 may be added to the cloud server 2 through a client program of a user terminal, so as to facilitate a user to configure an intelligent control scheme and the like for the smart device 3. In this embodiment, the smart device 3 is in communication connection with the cloud server 2, and is mainly configured to receive a first control instruction sent by the cloud server 2 and control the smart device 3 to execute an operation corresponding to the first control instruction. For example, as can be seen from the foregoing, when the cloud server 2 generates a first control instruction of turning on the smart luminaire a, the cloud server 2 may send the instruction of turning on the smart luminaire a to control the smart luminaire a to perform an operation of turning on the smart luminaire a.
Through the steps of the process S110-S150, the intelligent switch key control method provided by the invention has the advantages that the unique key number is obtained by numbering the physical keys of the intelligent switch 1 in advance, then the key number is bound with the intelligent device ID in the home of the user, and different key states of the physical keys are configured to correspond to different functions of the intelligent device 3, so that the user can realize intelligent control on one or more intelligent devices 3 in the home through the physical keys of the intelligent switch 1 in the home, and the user experience is improved.
Further, based on the first embodiment of the intelligent switch key control method of the present invention, a second embodiment of the present invention can also be provided.
In this embodiment, as shown in fig. 4, the method for controlling the intelligent switch key further includes:
step S160, the cloud server 2 issues the cloud key function configuration table to the corresponding intelligent switch 1, so that the intelligent switch 1 updates the local key function configuration table stored in the intelligent switch 1 according to the cloud key function configuration table.
Under normal conditions, the cloud server 2 generally maintains a network connection with the intelligent switch 1. However, in order to avoid the physical button failure of the intelligent switch 1 when the network environment is bad or interrupted. After the cloud server 2 generates the cloud key function configuration table, the cloud key function configuration table is also issued to the corresponding intelligent switch 1, so that the intelligent switch 1 updates the local key function configuration table stored in the intelligent switch 1 according to the cloud key function configuration table.
Step S170, when the network environment is severe or interrupted, the intelligent switch 1 detects whether the physical key on the intelligent switch 1 is triggered.
In this embodiment, the intelligent switch 1 may further be in communication connection with the intelligent device 3 through a short-range communication network, where the short-range communication network is, for example, a WIFI network, a bluetooth network, a Zigbee network, or the like. The intelligent switch is used for directly carrying out communication through the communication connection between the intelligent switch 1 and the intelligent equipment 3 when the network environment is severe or interrupted.
And step S180, if the key is triggered, acquiring the key number and the key state of the physical key through the intelligent switch 1.
And step S190, inquiring the local key function configuration table, and determining the intelligent device ID corresponding to the key number and the key function corresponding to the key state.
Step S200, generating a second control instruction according to the ID of the smart device and the key function, and sending the second control instruction to the smart device corresponding to the ID of the smart device, so that the smart device 3 receives the second control instruction and executes an operation corresponding to the second control instruction.
Through the above process steps S160-S200, the intelligent switch key control method provided by the present invention issues the cloud key function configuration table generated in the cloud server 2 to the intelligent switch 1, so that when the network environment is severe or interrupted, the intelligent switch 1 can directly generate a corresponding control command through the locally stored key function configuration table, and send the control command to the corresponding intelligent device 3, thereby realizing localization of intelligent home control, being not affected by the network environment, and improving user experience.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. The utility model provides an intelligence switch button control system which characterized in that includes:
the intelligent switch is used for detecting whether a physical key on the intelligent switch is triggered or not;
if yes, generating a first key signal according to the key number and the key state of the physical key, and sending the generated first key signal to a cloud server;
the cloud server is used for analyzing the first key signal and inquiring the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state;
generating a first control instruction according to the intelligent device ID and the key function, and sending the first control instruction to the intelligent device corresponding to the intelligent device ID;
and the intelligent equipment is used for receiving the first control instruction and controlling the intelligent equipment to execute the operation corresponding to the first control instruction.
2. The system according to claim 1, further comprising a user terminal, wherein the user terminal has a client program installed therein, and is configured to:
acquiring a key number and at least one key state of a physical key of an intelligent switch;
configuring ID of at least one intelligent device corresponding to the key number and key functions corresponding to the at least one key state one by one;
and sending the key number, the intelligent device ID corresponding to the key number, the at least one key state and the key function corresponding to the at least one key state to a cloud server, so that the cloud server generates a cloud key function configuration table corresponding to the intelligent switch according to the key number, the intelligent device ID, the key state and the key function.
3. The system of claim 2, wherein the cloud server is further configured to issue the cloud key function configuration table to a corresponding smart switch, so that the smart switch updates a local key function configuration table stored in the smart switch according to the cloud key function configuration table.
4. The system of claim 3, wherein the intelligent switch is further configured to, when the network environment is harsh or disrupted:
detecting whether a physical key on the intelligent switch is triggered;
if yes, acquiring the key number and the key state of the physical key;
inquiring the local key function configuration table, and determining the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state;
and generating a second control instruction according to the ID of the intelligent device and the key function, and sending the second control instruction to the intelligent device corresponding to the ID of the intelligent device, so that the intelligent device receives the second control instruction and executes the operation corresponding to the second control instruction.
5. The system according to any one of claims 1-4, wherein the key number comprises at least a unique identification of the intelligent switch and a key serial number;
the key state at least comprises a working state and a non-working state;
the key functions at least comprise opening equipment and closing equipment;
the smart device ID includes at least a MAC address of the smart device.
6. A key control method of an intelligent switch is characterized by comprising the following steps:
detecting whether a physical key on the intelligent switch is triggered;
if the first key is triggered, generating a first key signal according to the key number and the key state of the physical key, and sending the generated first key signal to a cloud server;
analyzing the received first key signal in the cloud server, and inquiring the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state;
generating a first control instruction according to the intelligent device ID and the key function, and sending the first control instruction to the intelligent device corresponding to the intelligent device ID;
and receiving the first control instruction at an intelligent device end, and controlling the intelligent device to execute the operation corresponding to the first control instruction.
7. The method of claim 6, further comprising:
acquiring a key number and at least one key state of a physical key of an intelligent switch through a client program of a user terminal;
configuring ID of at least one intelligent device corresponding to the key number and key functions corresponding to the at least one key state one by one;
and sending the key number, the intelligent device ID corresponding to the key number, the at least one key state and the key function corresponding to the at least one key state to a cloud server, so that the cloud server generates a cloud key function configuration table corresponding to the intelligent switch according to the key number, the intelligent device ID, the key state and the key function.
8. The method of claim 7, further comprising:
and issuing the cloud key function configuration table to a corresponding intelligent switch so that the intelligent switch updates a local key function configuration table stored in the intelligent switch according to the cloud key function configuration table.
9. The method of claim 8, further comprising, when the network environment is bad or disrupted:
detecting whether a physical key on the intelligent switch is triggered;
if yes, acquiring the key number and the key state of the physical key through the intelligent switch;
inquiring the local key function configuration table, and determining the intelligent equipment ID corresponding to the key number and the key function corresponding to the key state;
and generating a second control instruction according to the ID of the intelligent device and the key function, and sending the second control instruction to the intelligent device corresponding to the ID of the intelligent device, so that the intelligent device receives the second control instruction and executes the operation corresponding to the second control instruction.
10. The method according to any one of claims 6 to 9, wherein the key number comprises at least a unique identification of the intelligent switch and a key serial number;
the key state at least comprises a working state and a non-working state;
the key functions at least comprise opening equipment and closing equipment;
the smart device ID includes at least a MAC address of the smart device.
CN202011377620.9A 2020-11-30 2020-11-30 Intelligent switch key control system and method Pending CN112526891A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011377620.9A CN112526891A (en) 2020-11-30 2020-11-30 Intelligent switch key control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011377620.9A CN112526891A (en) 2020-11-30 2020-11-30 Intelligent switch key control system and method

Publications (1)

Publication Number Publication Date
CN112526891A true CN112526891A (en) 2021-03-19

Family

ID=74995419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011377620.9A Pending CN112526891A (en) 2020-11-30 2020-11-30 Intelligent switch key control system and method

Country Status (1)

Country Link
CN (1) CN112526891A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114114945A (en) * 2021-12-20 2022-03-01 珠海格力电器股份有限公司 Control method and device of intelligent household equipment and storage medium
CN114598564A (en) * 2022-02-23 2022-06-07 杭州博联智能科技股份有限公司 Equipment control method, system, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105517286A (en) * 2015-12-31 2016-04-20 杭州鸿雁智能科技有限公司 Intelligent WIFI lamp control system and method thereof
WO2016062174A1 (en) * 2014-10-23 2016-04-28 杭州赫智电子科技有限公司 Intelligent electric appliance system and intelligent electric appliance control method
CN106094547A (en) * 2016-07-07 2016-11-09 镇江惠通电子有限公司 Intelligent home equipment control method and system
US20170019265A1 (en) * 2015-07-13 2017-01-19 Xiaomi Inc. Method, terminal and server for controlling smart device
WO2017088689A1 (en) * 2015-11-25 2017-06-01 阿里巴巴集团控股有限公司 Method, device and system for generating control data
CN108415346A (en) * 2018-05-29 2018-08-17 陕西大航联科电子技术有限公司 Control method, switch, electrical equipment and control system
CN110892342A (en) * 2018-05-31 2020-03-17 深圳市蚂蚁雄兵物联技术有限公司 Intelligent key function configuration method and intelligent key
CN111308944A (en) * 2020-04-02 2020-06-19 深圳创维-Rgb电子有限公司 Equipment control method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016062174A1 (en) * 2014-10-23 2016-04-28 杭州赫智电子科技有限公司 Intelligent electric appliance system and intelligent electric appliance control method
US20170019265A1 (en) * 2015-07-13 2017-01-19 Xiaomi Inc. Method, terminal and server for controlling smart device
WO2017088689A1 (en) * 2015-11-25 2017-06-01 阿里巴巴集团控股有限公司 Method, device and system for generating control data
CN105517286A (en) * 2015-12-31 2016-04-20 杭州鸿雁智能科技有限公司 Intelligent WIFI lamp control system and method thereof
CN106094547A (en) * 2016-07-07 2016-11-09 镇江惠通电子有限公司 Intelligent home equipment control method and system
CN108415346A (en) * 2018-05-29 2018-08-17 陕西大航联科电子技术有限公司 Control method, switch, electrical equipment and control system
CN110892342A (en) * 2018-05-31 2020-03-17 深圳市蚂蚁雄兵物联技术有限公司 Intelligent key function configuration method and intelligent key
CN111308944A (en) * 2020-04-02 2020-06-19 深圳创维-Rgb电子有限公司 Equipment control method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114114945A (en) * 2021-12-20 2022-03-01 珠海格力电器股份有限公司 Control method and device of intelligent household equipment and storage medium
CN114598564A (en) * 2022-02-23 2022-06-07 杭州博联智能科技股份有限公司 Equipment control method, system, electronic equipment and storage medium
CN114598564B (en) * 2022-02-23 2023-07-04 杭州博联智能科技股份有限公司 Equipment control method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2021196592A1 (en) Device control method and apparatus
WO2021196638A1 (en) Household appliance control method and apparatus, and computer storage medium
US10264424B2 (en) Information processing method and central control device
CN102801816B (en) Cloud air conditioning system based on cloud computation
WO2020223854A1 (en) Device network configuration method and apparatus, electronic device and storage medium
CN113348725B (en) Device operation method, device, gateway, electronic device and computer readable medium
CN107632526B (en) Control device, method, storage medium and equipment
CN105159122A (en) Smart home control system and control method
CN112526891A (en) Intelligent switch key control system and method
CN103309308A (en) Equipment intelligent control method, device, system and plug-and-play equipment
CN110597075A (en) Method and device for detecting control conflict, electronic equipment and storage medium
US20130035077A1 (en) Electronic device, storage medium and method for remotely controlling household electric appliances
CN107765592B (en) Equipment control method and device and terminal equipment
CN110690996A (en) Configuration method, system and device of intelligent household terminal equipment and terminal equipment
CN111856956A (en) Control method and control terminal for realizing scene interaction
CN110687815B (en) Equipment control method, device, terminal equipment and storage medium
CN109219028B (en) Equivalent device Bluetooth communication method and device based on cloud
KR20230038430A (en) Interaction method, storage medium, and electronic device for building interlocking scenarios of devices
CN112202654B (en) Control instruction processing method, device, equipment and storage medium
CN114007235A (en) Scene rule writing method and device, storage medium, processor and electronic equipment
CN111965989A (en) System updating method and device, smart home control panel and storage medium
CN113341742A (en) Method and device for linkage control of household appliances and cloud control equipment
CN110233874B (en) Information transmission method and device for Internet of things equipment
CN106154853A (en) A kind of control method and mobile terminal
CN106789466B (en) Method for controlling intelligent household appliance, mobile terminal and intelligent household appliance

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230927

Address after: No. 15, Jiannan Road, Nanyou Community, Yuehai Street, Nanshan District, Shenzhen, Guangdong 518000 Hengda Tianjing B2801

Applicant after: Xingluo home yunwulian Technology Co.,Ltd.

Address before: 31a01, block a, aerospace science and Technology Plaza, no.1698, Haizhu community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: Star Network Intelligent Technology Co.,Ltd.