Button management method, panel, device and storage medium
By using the detachable face shell and detection circuit in the smart button panel, dynamically adjusting the number of buttons and updating the control interface, the problem of difficulty and cost of adjusting the number of buttons in the existing technology is solved, and flexibility and economy are improved.
Patent Information
- Application Number
- PCT/CN2024/116145
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-20
- Filing Date
- 2024-08-30
- Publication Date
- 2025-03-27
AI Technical Summary
In the existing smart home appliance technology, the number of keys of the smart button panel is fixed, and users need to replace the entire panel to adjust the number of keys, which makes adjustments difficult and high change costs.
By introducing a detachable face shell and detection circuit in the smart key panel, the installed face shell is identified to determine the current number of keys, and when a feedback event of the number of keys is detected, the key information is sent to the device to update the control interface.
It realizes dynamic adjustment of the number of keys on the smart key panel, and updates the control interface at the same time, reducing the difficulty and cost of adjusting the number of keys.
Smart Images

Figure CN2024116145_27032025_PF_FP_ABST
Abstract
Description
Key management method, panel, device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on September 20, 2023, with application number 202311229911.7 and application name “A method, panel, device and storage medium for key management”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application belongs to the technical field of smart home appliances, and in particular relates to a method, panel, device and storage medium for key management. Background Art
[0003] With the continuous development of smart home appliance technology, more and more users are gradually recognizing the convenience brought by smart home appliances. In the process of deploying smart home appliances, as the number of smart home appliances continues to increase, in order to be able to control smart home appliances more conveniently, corresponding smart button panels can be installed. Depending on the usage scenario, smart button panels with different numbers of buttons such as one button, two buttons or three buttons can be installed to achieve control of one or more specified smart appliances.
[0004] With existing smart home appliance technology, the number of buttons on the smart button panel is fixed at the factory. After the user completes the installation of the smart button panel, if they need to add or reduce buttons, they need to replace the entire panel, which greatly increases the difficulty and cost of adjusting the number of buttons.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a method, apparatus, panel, device and computer-readable storage medium for key management, which can solve the problem of existing smart home appliance technology that when the number of keys on the smart key panel needs to be adjusted, the entire panel needs to be replaced, the adjustment is difficult and the change cost is high.
[0007] The first aspect provides a method for key management, which is applied to a smart key panel. The key management method includes: if a key number feedback event is detected, sending key information to the device; the key information includes the current number of keys on the smart key panel, and the key information is the input for updating at least one element of the control interface corresponding to the smart key panel on the device.
[0008] The implementation of the embodiments of the present application has the following beneficial effects: the cover in the smart button panel is a detachable cover, and the smart button panel can determine the current number of buttons by identifying the installed cover, and when a button number feedback event is detected, the button information carrying the current number of buttons is sent to the corresponding device, and the device can update the corresponding elements in the control interface according to the current number of buttons of the smart button panel, thereby achieving dynamic and flexible adjustment of the number of buttons on the smart button panel while updating the control interface of the smart button panel, making it convenient to set control events associated with each button on the smart button panel. Compared with existing smart home appliance technology, when the number of buttons of the smart button panel needs to be adjusted, there is no need to remove the entire smart button panel and replace it with another panel with the appropriate number of buttons. Instead, it is only necessary to adjust the specifications of the cover on the smart button panel to change the number of buttons configured on the smart button panel, which greatly improves the flexibility of adjusting the number of panel buttons and reduces the cost of changes.
[0009] In a possible implementation of the first aspect, if a key number feedback event is detected, sending key information to the device includes:
[0010] If the key number feedback event is detected, sending a first message indicating an information change to the device;
[0011] In response to a second message sent by the device for instructing to obtain information, the key information is sent to the device.
[0012] In a possible implementation of the first aspect, before the step of sending key information to the device if a key number feedback event is detected, the method further includes:
[0013] Determining the current number of keys according to the number of housings configured on the smart key panel;
[0014] If the current number of keys is inconsistent with the number of keys recorded in the configuration file of the smart key panel, the configuration file is updated based on the current number of keys, and the key number feedback event is generated.
[0015] In a possible implementation of the first aspect, the smart key panel includes a plurality of detection circuits;
[0016] The determining the current number of keys according to the number of cover plates configured on the smart key panel includes:
[0017] receiving coupling signals fed back by each of the detection circuits, wherein the coupling signals are generated when the cover is buckled onto the panel area corresponding to the detection circuit;
[0018] The number of the face shells is determined according to the received coupling signal.
[0019] In a possible implementation of the first aspect, the coupling signal is generated when a switch on the detection circuit is connected, and the switch is connected when the face shell is buckled into the panel area of the detection circuit.
[0020] In a possible implementation of the first aspect, if a key number feedback event is detected, sending key information to the device includes:
[0021] Generate the key information by using a key service application;
[0022] The key information is sent to a server through the key service application, so that the key information is sent to the device through the server.
[0023] In a possible implementation of the first aspect, if a key number feedback event is detected, sending key information to the device includes:
[0024] The key information is sent to the device through the first communication module; and the smart key panel establishes a communication connection with the device through the first communication module.
[0025] A second aspect provides a smart key panel, comprising: a panel body and at least one cover fastened to the panel body;
[0026] The panel body includes a plurality of detection circuits and a control chip; the output port of the detection circuit is connected to the input port of the control chip;
[0027] The detection circuit is used to output a coupling signal to the control chip when detecting that the face cover is buckled with the panel area corresponding to the detection circuit;
[0028] The control chip is used to receive the coupling signals sent by each of the detection circuits, and determine the current number of keys on the smart key panel based on the coupling signals, and when the current number of keys is inconsistent with the number of keys recorded in the configuration file, send key information containing the current number of keys to the device.
[0029] In a possible implementation of the second aspect, the detection circuit includes a first switch pin, and the housing includes a second switch pin;
[0030] When the face shell is buckled onto the panel area corresponding to the detection circuit, the first switch pin is connected to the second switch pin; when the first switch pin is connected to the second switch pin, the detection circuit generates the coupling signal.
[0031] In a possible implementation of the second aspect, the detection circuit includes a first coupling coil; the housing includes a second coupling coil;
[0032] When the cover is buckled onto the panel area corresponding to the detection circuit, the first coupling coil and the second coupling coil generate the coupling signal.
[0033] In a possible implementation of the second aspect, the smart key panel includes a communication module, an input port of the communication module is connected to an output port of the control chip; the smart key panel establishes a communication connection with the device through the communication module;
[0034] The communication module is configured to generate a communication protocol data packet corresponding to the communication module from the key information, and send the communication protocol data packet to the device via the communication connection; and / or
[0035] The communication module is used to send the key information to the server, so that the key information is sent to the device through the server.
[0036] In a possible implementation of the second aspect, the communication module includes: at least one of a wireless fidelity Wi-Fi module, a Bluetooth module, a low-power Bluetooth module, a ZigBee module, an ultra-wideband UWB module, a near-field communication NFC module, and a power line carrier communication PLC module.
[0037] In a possible implementation of the second aspect, the panel body includes a control circuit board, a back panel and a junction box, the control chip and the detection circuit are installed on the control circuit board, the control circuit board is installed on the back panel, and the back panel is installed on the junction box.
[0038] A third aspect provides a key management method, applied to a device, the key management method comprising:
[0039] receiving key information sent by a smart key panel, wherein the key information is sent when the smart key panel detects a key number feedback event, and the key information includes the current number of keys on the smart key panel;
[0040] At least one element of a control interface corresponding to the smart key panel is updated based on the key information.
[0041] In a possible implementation of the third aspect, the receiving the key information sent by the smart key panel includes:
[0042] The key information sent by the server is received through the key service application, where the key information is sent by the smart key panel to the server through the key service application installed in the smart key panel.
[0043] In a possible implementation of the third aspect, the receiving the key information sent by the smart key panel includes:
[0044] The key information sent by the smart key panel is received through the second communication module; and the device establishes a communication connection with the smart key panel through the second communication module.
[0045] In a possible implementation manner of the third aspect, after updating at least one element of the control interface of the smart key panel based on the key information, the method further includes:
[0046] In response to a setting operation initiated by a user in the control interface, setting a touch mode of any button corresponding to the smart button panel on the control interface and a smart device controlled by any button;
[0047] If touch information about one of the keys is received from the smart key panel, the smart device associated with the key is controlled, and the touch information is sent when the smart key panel detects that the user touches the key in a corresponding touch manner.
[0048] In a possible implementation of the third aspect, the receiving the key information sent by the smart key panel includes:
[0049] receiving a first message sent by the smart key panel for indicating an information change, wherein the first message is sent when the smart key panel detects the key number feedback event;
[0050] A second message for instructing to obtain information is sent to the smart key panel, so that the smart key panel feeds back the key information based on the second message.
[0051] The fourth aspect provides a smart key panel, comprising: a memory, one or more processors, and one or more programs stored in the memory, wherein the one or more processors implement the key management method described in any one of the first aspects when executing the one or more programs.
[0052] The fifth aspect provides a device comprising: a memory, one or more processors, and one or more programs stored in the memory, wherein the one or more processors implement the key management method described in any one of the third aspects when executing the one or more programs.
[0053] A sixth aspect provides a readable storage medium, which stores one or more programs. When the one or more programs are executed by a processor, the method for key management described in any one of the first aspect or the third aspect is implemented.
[0054] A seventh aspect provides a program product, which, when executed on a device, enables the device to execute the key management method described in any one of the first aspect or the third aspect.
[0055] The eighth aspect provides a chip system comprising one or more processors, wherein the one or more processors are coupled to a memory, and the one or more processors execute one or more programs stored in the memory to implement the key management method as described in any one of the first aspect or the third aspect.
[0056] The ninth aspect provides a smart home appliance system, which includes at least one smart button panel as in the fourth aspect and a device as in the fifth aspect.
[0057] It can be understood that the beneficial effects of the second to ninth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] FIG1 is a schematic diagram of different types of smart key panels;
[0059] FIG2 is a schematic structural diagram of a smart key panel provided in an embodiment of the present application;
[0060] FIG3 is a schematic structural diagram of a panel body provided in an embodiment of the present application;
[0061] FIG4 is a schematic diagram showing the relationship between the number of housings and the number of buttons provided in one embodiment of the present application;
[0062] FIG5 is a schematic diagram of a detection circuit provided in an embodiment of the present application;
[0063] FIG6 is a schematic diagram of a panel body based on contact detection provided by an embodiment of the present application;
[0064] FIG7 is a schematic diagram of a panel body based on non-contact detection provided by an embodiment of the present application;
[0065] FIG8 is a schematic diagram of a panel body provided by another embodiment of the present application;
[0066] FIG9 is a schematic structural diagram of a panel body provided in another embodiment of the present application;
[0067] FIG10 is a flowchart illustrating an interactive implementation of a key management method according to an embodiment of the present application;
[0068] FIG11 is a schematic diagram illustrating the corresponding relationship between key capability states and key numbers according to an embodiment of the present application;
[0069] 12 is a schematic diagram of a device and a smart key panel transmitting key information via a key service application according to an embodiment of the present application;
[0070] FIG13 is a schematic diagram of the data structure of key information provided in an embodiment of the present application;
[0071] FIG14 is a schematic diagram of a smart home configuration according to an embodiment of the present application;
[0072] FIG15 is a schematic diagram of various scenarios in which a smart key panel according to an embodiment of the present application establishes a connection with a device based on a communication module;
[0073] FIG16 is an interactive flow chart of sending key information from a smart key panel to a device according to another embodiment of the present application;
[0074] FIG17 is a schematic structural diagram of a smart home appliance system provided in one embodiment of the present application;
[0075] FIG18 is a schematic diagram of a control interface of a smart home appliance application provided in one embodiment of the present application;
[0076] FIG19 is a schematic diagram of setting a control event according to an embodiment of the present application;
[0077] FIG20 is a flowchart of a key management method provided by an embodiment of the present application on the smart key panel side;
[0078] FIG21 is a flowchart of a method for key management provided in an embodiment of the present application on the device side;
[0079] FIG22 is a schematic structural diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0081] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0082] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0083] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0084] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0085] With the continuous development of smart home appliance technology, smart home appliances have gradually become popular in users' homes. In order to better control smart home appliances and general home appliances in the house, such as controlling the on and off status of home appliances or changing the operating gear, etc., the home appliances can be controlled through the smart button panel. Each button in the smart button panel can be set with different functions according to the user's usage needs. For example, a certain button is used to control the on and off status of the smart light, while another button can be used to control the color temperature of the smart light. Due to the flexible setting of the smart button panel and good compatibility with smart home appliances, it has gradually become one of the important members of smart home appliances and is widely used. For example, Figure 1 shows a schematic diagram of different types of smart button panels. As shown in Figure 1, according to the number of buttons on the smart button panel, it can be divided into a one-button panel, a two-button panel and a three-button panel, etc. Users can install the corresponding smart button panel according to actual usage needs.
[0086] However, the number of buttons set on each panel of the existing smart button panel is fixed. Correspondingly, in the application of smart home appliances, the number of buttons in the control interface corresponding to each smart button panel is also fixed and bound to the panel model of the smart button panel, that is, the number of buttons and the corresponding control interface are immutable. However, as the user's usage needs continue to change, the demand for the number of buttons on the smart button panel will also change. For example, when adding smart home appliances, more buttons are needed to control the newly added smart home appliances; if a smart home appliance needs to be removed, there will be vacant buttons on the smart button panel, thereby reducing the utilization rate of the buttons. At this time, if the number of buttons on the smart button panel needs to be adjusted, the entire smart button panel needs to be removed and replaced with another smart button panel that meets the button requirements. For example, in the scenario of adding smart home appliances, the user needs to first remove the two-button panel and then reinstall the three-button panel, and the change operation is complicated. It can be seen that when the number of buttons on the existing smart button panel needs to be adjusted, there are problems such as difficulty in adjustment and low flexibility in changing the number of buttons. Furthermore, the control interface of the smart home appliance application cannot be updated according to the actual number of buttons, which is not conducive to the setting of the smart button panel.
[0087] Example 1:
[0088] In order to solve the above-mentioned problems existing in the existing smart key panel, an embodiment of the present application provides a smart key panel, which includes a panel body and at least one face shell fastened to the panel body. For example, Figure 2 shows a structural diagram of the smart key panel provided by an embodiment of the present application. Referring to (a) in Figure 2, the smart key panel is a two-key panel, which includes a panel body 21 and two face shells fastened to the panel body 21, namely, face shell 22 and face shell 23. In some implementation scenarios, when the user needs to adjust the number of keys on the smart key panel, for example, to adjust the two-key panel to a three-key panel, the above-mentioned face shell 22 and face shell 23 can be removed and replaced with four face shells of four-key specifications, such as face shells 24 to 27 shown in (b) in Figure 2. The above-mentioned smart key panel can be adjusted from a two-key specification key panel to a four-key specification key panel.
[0089] It can be seen that the smart key panel provided in the embodiment of the present application can adjust the number of keys on the smart key panel according to the specifications of the face shell and the number of installed face shells, so as to achieve the purpose of flexibly adjusting the number of panel keys. In order to identify the real-time number of keys on the smart key panel, a control chip and a plurality of detection circuits are provided on the panel body of the above-mentioned smart key panel. For example, Figure 3 shows a structural schematic diagram of the panel body provided in an embodiment of the present application. As shown in Figure 3, the panel body 21 of the smart control panel includes a control chip 31 and four detection circuits, namely detection circuit 32 to detection circuit 35. Among them, the control chip 31 includes a memory, one or more processors and one or more programs stored in the memory. When one or more processors execute one or more programs, the key management method provided in the subsequent embodiments is implemented. The configuration file of the smart key panel can also be stored in the memory of the control chip 31.
[0090] The output port of each detection circuit on the panel body is connected to the input port of the control chip 31. For example, the output port of the detection circuit 32 is connected to the input port of the control chip, and the output port of the detection circuit 33 is connected to the input port of the control chip.
[0091] Taking the detection circuit 32 as an example, the detection circuit 32 is used to detect whether there is a cover that is fastened to its corresponding detection area. If there is a cover that is fastened to its corresponding detection area, the detection circuit 32 can output a coupling signal through the output port. The control chip 31 can receive the coupling signal sent by the detection circuit 32 through the input port, thereby determining the presence of a cover in its corresponding detection area. Based on this, the control chip 31 can receive the number of coupling signals fed back by each detection circuit to determine the number of cover shells fastened to the smart panel, and then determine the current number of keys on the smart key panel based on the number of cover shells.
[0092] In one possible implementation, the number of cover shells configured on the smart key panel is the current number of keys on the smart key panel. For example, FIG4 shows a schematic diagram of the relationship between the number of cover shells and the number of keys provided in an embodiment of the present application. Referring to FIG4 (a), the number of keys on each cover shell is one. In this case, the number of cover shells is the same as the number of keys on the smart key panel, and the number of cover shells can be used as the above-mentioned number of keys.
[0093] In one possible implementation, if a cover is configured with two buttons, the current number of buttons on the smart key panel can be determined based on the number of buttons on each cover. As shown in (b) of Figure 4 , the number of buttons on each cover is 2. In this case, the current number of buttons = 2 * number of covers. Specifically, the number of buttons configured on each cover can be set as needed and is not limited here.
[0094] If the number of buttons on the face shell is not fixed, the detection circuit can determine the number of buttons on the face shell according to the characteristic parameters preset when it is actually fastened, and then generate a coupling signal that matches the number of buttons on the face shell. By way of example, FIG5 shows a schematic diagram of a detection circuit provided by an embodiment of the present application. Referring to FIG5 , the detection circuit includes a plurality of different physical switches. When face shells with different numbers of buttons are fastened to the detection area corresponding to the detection circuit, the number of physical switches connected is different. For example, a face shell with 2 buttons can connect two physical switches, while a face shell with 1 button can connect 1 physical switch. The detection circuit can generate a coupling signal corresponding to the number of physical switches connected, and send it to the control chip so that the control chip can determine the current number of buttons based on the coupling signal.
[0095] In this embodiment, the detection circuit can detect whether the face cover is fastened to its corresponding detection area in the following two ways:
[0096] Method 1: Contact detection
[0097] In this embodiment, each detection circuit includes a first switch pin. For example, FIG6 shows a schematic diagram of a panel body based on contact detection according to an embodiment of the present application. As shown in FIG6 , the panel body includes a control chip 31 and four first switch pins, namely switch pins 11 to 14. Correspondingly, each face shell that is fastened to the panel body may also include a second switch pin. Taking the panel body with 4 face shells as an example, face shell 1 is provided with switch pin 21, face shell 2 is provided with switch pin 22, face shell 3 is provided with switch pin 23, and face shell 4 is provided with switch pin 24. When each face shell is fastened to the panel body, switch pin 11 will be connected to switch pin 21, switch pin 12 will be connected to switch pin 22, switch pin 13 will be connected to switch pin 23, and switch pin 14 will be connected to switch pin 24. When each pair of pins is connected, a coupling signal will be generated and transmitted to the control chip 31. The control chip 31 can determine the number of face shells based on the number of coupling signals received, and then determine the current number of keys on the current smart key panel.
[0098] It should be noted that the number of switch pins configured on each panel body is different, and can be determined based on the maximum number of cover shells or the maximum number of buttons supported by the panel body, and is not limited here.
[0099] Method 2: Non-contact detection
[0100] In this embodiment, each detection circuit includes a first coupling coil. For example, FIG7 shows a schematic diagram of a panel body based on non-contact detection according to an embodiment of the present application. As shown in FIG7 , the panel body includes a control chip 31 and four first coupling coils, namely coupling coils 11 to 14. Correspondingly, each face shell that is fastened to the panel body may also include a second coupling coil. Taking the panel body with four face shells as an example, a coupling coil 21 is configured on face shell 1, a coupling coil 22 is configured on face shell 2, a coupling coil 23 is configured on face shell 3, and a coupling coil 24 is configured on face shell 4. When each face shell is fastened to the panel body, the coupling coil 11 and the coupling coil 21 will generate a coupling signal, the coupling coil 12 and the coupling coil 22 will generate a coupling signal, the coupling coil 13 and the coupling coil 23 will generate a coupling signal, and the coupling coil 14 and the coupling coil 24 will generate a coupling signal. The coupling signal generated by each pair of coupling coils can be transmitted to the control chip 31 through the corresponding output pin. The control chip 31 can determine the number of face shells based on the number of coupling signals received, and then determine the current number of keys on the current smart key panel.
[0101] It should be noted that the number of coupling coils configured on each panel body is different, and can be determined based on the maximum number of face shells or the maximum number of buttons supported by the panel body, and is not limited here.
[0102] In this embodiment, the control chip 31 may also include a memory, which may record a configuration file about the smart key panel. The configuration file records the number of keys determined by the last detection of the smart key panel. The control chip 31 will compare the current d key number determined based on the coupling signal with the number of keys recorded in the configuration file, thereby identifying whether the number of keys on the smart key panel has changed, and thus determining whether it is necessary to send the changed key information to the device.
[0103] In one possible implementation, a communication module may be configured on the panel body. For example, FIG8 shows a schematic diagram of a panel body provided by another embodiment of the present application. In addition to including a control chip 31 and a plurality of detection circuits, such as a detection circuit 32, the panel body also includes a communication module 81. The output port of the control chip 31 is connected to the input module of the communication module, and the control chip 31 can send the output key information to the communication module 81, and then send it to the device through the communication module 81. According to the different communication connections established with the device, the communication module 81 includes but is not limited to at least one of a Wireless Fidelity (Wi-Fi) module, a Bluetooth module, a low-power Bluetooth module, a ZigBee module, a Near Field Communication (NFC) module, an Ultra Wide Band (UWB) module, and a Power Line Communication (PLC) module.
[0104] In a possible implementation, the panel body can also be divided into multiple parts. For example, Figure 9 shows a structural diagram of a panel body provided by another embodiment of the present application. Referring to Figure 9, the above-mentioned modules (i.e., the control chip 31, the detection circuit 32 to the detection circuit 35, and the communication module 81) can be installed on a control circuit board 91, the control circuit board 91 can be installed on a back plate 92, and the back plate 92 can be installed on a junction box 93, thereby forming a panel body. A plurality of fasteners can be included on the panel body, and the face shell can be fastened with the fasteners to be installed on the above-mentioned panel body.
[0105] Example 2:
[0106] In an embodiment of the present application, based on the structure of the above-mentioned smart button panel, the smart button panel can monitor the number of face shells installed on the panel body in real time, thereby determining the current number of buttons of the smart button panel, so that the current number of buttons of the smart button panel can be updated to the device in real time, and the device can update at least one element in the control interface according to the current number of buttons of the smart button panel, so as to achieve the purpose of flexibly adjusting the number of buttons of the smart button panel. The following describes the specific implementation process of a button management method provided by an embodiment of the present application from the perspective of the interaction process between the smart button panel and the device. For example, Figure 10 shows an interactive implementation flow chart of the button management method provided by an embodiment of the present application. As shown in Figure 10, the button management method is applied to a smart home system, which includes: a device and at least one smart button panel. Among them, the device can specifically be a management terminal of a smart home, such as a smart router or a computer, etc., which manages and controls other smart home appliances in the scene through the management terminal. Specifically, the specific implementation process of the above-mentioned smart button control method is described as follows:
[0107] In S1001, if the smart key panel detects a key number feedback event, it sends key information to the device; the key information includes the current number of keys on the smart key panel.
[0108] In S1002 , the device receives key information sent by the smart key panel.
[0109] In this embodiment, the smart button panel can determine the number of face shells installed on the panel body through the detection circuit, and then determine the current number of keys of the smart button panel through the number of face shells. If the current number of keys is different from the number of keys recorded in the configuration file in advance, it can be determined that there is a key number feedback event. At this time, the smart button panel will execute the S1001 operation, that is, generate a key information, and encapsulate the current number of keys of the smart button panel into the above-mentioned key information.
[0110] In a possible implementation, the key information may further include a panel identifier of the smart key panel, which may be a panel number, a network address, or a physical address, or a combination of two or more thereof.
[0111] In one possible implementation, the above-mentioned key information may also include the key capability status of each key. The key capability status includes two types: enabled state and disabled state. If the key capability status of a key is enabled, it means that the key is in a usable state; if the key capability status of a key is disabled, it means that the key is in an unusable state. The smart key panel can configure a key number for different detection areas. If a detection area is fastened to the upper shell, the key corresponding to the detection area is in a usable state, that is, the key capability status corresponding to the key number is enabled; conversely, if a detection area is not fastened to the upper shell, the key corresponding to the detection area is in an unusable state, that is, the key capability status corresponding to the key number is disabled. The smart key panel can add the correspondence between all key numbers and their enabled states to the above-mentioned key information.
[0112] Exemplarily, FIG11 shows a setting diagram of the correspondence between the button capability status and the button number provided in an embodiment of the present application. Referring to FIG11 , the smart button panel can be divided into four detection areas, namely area 1 to area 4, and the corresponding button numbers are button1 to button4. Among them, the detection area corresponding to button1 (i.e., area 1) is fastened with the cover 1, and the cover 1 will block the detection area of button2 (i.e., area 2), that is, button1 is configured with the cover 1, i.e., button 1, while button2 is not configured with a cover and has no corresponding button. Therefore, the button capability status of button1 is enabled, and the button capability status of button2 is disabled. Correspondingly, area 3 is fastened with the cover 2, i.e., button 2, and the cover 2 covers area 4. The button capability status of button3 is enabled, and the button capability status of button4 is disabled. Therefore, the button information generated by the smart button panel can be as shown in Table 1. In other implementations, the key information may include not only the key number but also a custom number corresponding to each key and a key type (such as a touch key type and a press key type, etc.).
[0113] Table 1
[0114] In this embodiment, after detecting the current number of keys, the smart key panel can determine whether the number of keys on the smart key panel has changed. If it is detected that the number of keys has changed, it indicates that there is a key number feedback event, and the operation S1001 is executed; conversely, if it is detected that the number of keys has not changed, it indicates that there is no key number feedback event, and there is no need to send key information to the device.
[0115] Specifically, the triggering of the key count feedback event includes at least the following two situations:
[0116] Case 1: Triggered when the panel is powered on
[0117] In this embodiment, when the smart button panel is installed and powered on, the current number of buttons on the smart button panel can be determined by detecting the coupling signal fed back by the circuit. Since the device does not record the information of the smart button panel, that is, it is not registered at the device, at this time, the smart button panel can detect the existence of a button number feedback event and send the above button information to the device.
[0118] Case 2: Triggered when the face shell changes
[0119] In this embodiment, a configuration file is stored in the memory of the smart key panel, and the configuration file records the number of keys on the smart key panel during the last detection. The smart key panel can be configured with a corresponding detection opportunity, such as a periodic detection or a power-on detection. When the preset detection opportunity is reached, the number of keys on the smart key panel is determined, and the number of keys is written to the configuration file and stored in the memory. In this case, the number of keys recorded in the configuration file is the number of keys collected during the last detection opportunity.
[0120] In one possible implementation, when the smart button panel leaves the factory, a preset number of buttons can be written into the above-mentioned configuration file. When the smart button panel is powered on for the first time, it can also detect whether the current number of buttons is consistent with the pre-configured number of buttons. If they are consistent, button information is generated based on the number of buttons recorded in the configuration file and sent to the device; otherwise, if they are inconsistent, the configuration file is updated based on the current number of buttons, and the button information recording the current number of buttons is sent to the device.
[0121] In one possible implementation, when the smart button panel detects that the current number of buttons is inconsistent with the number of buttons recorded in the configuration file, it can provide button information to the device to synchronously update the associated elements in the smart button panel's control interface. The smart button panel can write the current number of buttons into a data packet corresponding to the communication method with the device, thereby generating button information and sending the button information to the device.
[0122] In one possible implementation, when the smart button panel detects that the current number of buttons is inconsistent with the number of buttons recorded in the configuration file, in addition to sending button information to the device, it can also update the configuration file and update the number of buttons in the configuration file, so that the number of buttons recorded in the configuration file is consistent with the actual number of buttons on the smart button panel.
[0123] In an embodiment of the present application, the number of keys pressed on the smart key panel at the last detection time is recorded through a configuration file, and the current number of keys is compared with the recorded number of keys to determine whether there is a key number feedback event, so as to determine whether key information needs to be sent to the device, thereby improving the timeliness of key information feedback.
[0124] In this embodiment, a communication connection can be established between the device controlling the smart home appliance and the smart key panel, and the smart key panel can send the above-mentioned key information to the device through the communication connection between the smart key panel and the device. The communication connection established between the smart key panel and the device can include the following two methods:
[0125] Method 1: The smart key panel establishes a communication connection with the device through the key service application
[0126] For example, FIG12 shows a schematic diagram of a device and a smart key panel provided in an embodiment of the present application transmitting key information via a key service application. Referring to FIG12 , the smart key panel and the device in the embodiment of the present application may be installed with a key service application. After startup, the smart key panel and the device may run the key service application, and the smart key panel and the device may establish a communication connection between them via the key service application. The above-mentioned process of transmitting key information includes:
[0127] In S1201 , the smart key panel runs a key service application.
[0128] In S1202 , the smart key panel is connected to the server through the key service application.
[0129] In this embodiment, the smart key panel is installed with a key service application. After the smart key panel is powered on, the smart key panel can run the key service application. When the smart key panel is capable of internet communication, for example, by connecting to a router in the scene via a Wi-Fi module or network cable, and then accessing the internet through the router, the key service application can send a login request to a server. If the server recognizes the login request as legitimate, it will determine that the smart key panel is online, thus establishing a connection between the smart key panel and the server.
[0130] In one possible implementation, the server may be a server for smart appliances, providing users with management and control functions related to smart appliances. For example, a user may use the server to group multiple smart appliances into a smart home, set the device as the smart host for the smart home, and control multiple smart appliances within the smart home through the smart host, such as the smart key panel described above.
[0131] In S1203 , the device runs a key service application.
[0132] In S1204, the device connects to the server through the key service application.
[0133] Similarly, the device in this embodiment can also be installed with a key service application. When the device is able to communicate with the Internet, it can also send a login request to the server through the above-mentioned key service application. When the server recognizes that the above-mentioned login request is legitimate, it will recognize that the device is online, that is, a connection between the device and the server is established.
[0134] In S1205 , the smart key panel sends the key information to the server via the key service application.
[0135] In this embodiment, both the smart key panel and the device are connected to the server via a key service application. In this case, the two can send interactive data through the server. Therefore, the smart key panel needs to notify the device of changes in the number of its keys. Therefore, the smart key panel can send key information to the server via the key service application, and the server can then send this key information to the device.
[0136] In one possible implementation, the smart button panel can generate corresponding button information based on the JavaScript Object Notation (json) format. The button information can be a product physical model profile, which is used to describe the product type, what it can do, and the services that can be provided to the outside world. For example, Figure 13 shows a schematic diagram of the data structure of the button information provided by an embodiment of the present application. The data structure of the button information includes a product information data group and multiple service information groups; wherein the product information data group includes a product type, a product model, and a product identification. For the smart button panel, the above-mentioned product type can be a smart button panel, the product model can be determined by the panel model, such as A0001, and the above-mentioned product identification can be the physical number of the smart button panel, such as TCM00001. Each service information group is used to carry information about a button on the smart button panel. The service information group includes a button attribute field and a button command field, which are used to record the relevant information of each button, and can include a command field and a response field.
[0137] In S1206 , the device receives the key information sent by the server through the key service application.
[0138] In this embodiment, the device is connected to the server through the key service application. After receiving the key information of the smart key panel, the server can determine the management device associated with the smart key panel. When it is determined that the management device of the smart key panel is a device, the key information can be sent to the device so that the device can update the key-related elements in the control interface through the key information.
[0139] In one possible implementation, the server may record the correspondence between the smart key panel and the management device. For example, FIG14 shows a schematic diagram of the setting of the smart home provided by an embodiment of the present application. Referring to FIG14 , a user can open the management interface of the smart home appliance on a user terminal (such as a smart phone or a portable computer, etc.), and the management interface of the smart home appliance displays multiple different smart home appliances in the smart home 1, such as a smart TV 141, a smart door lock 142, a smart host 143 and a smart key panel 144. Among them, the above-mentioned smart host 143 can be the above-mentioned device. Since the smart host 143 is the management device in the smart home, it can be used to control the smart key panel 144, the smart TV 141 and the smart door lock 142. The server can record the correspondence between the management device and the managed device. After receiving the key information of the smart key panel 144, the server can determine that its management device is the smart host 143 through the above-mentioned correspondence, and therefore can send the key information to the smart host 143.
[0140] In an embodiment of the present application, a communication connection is established between the device and the smart button panel through a button service application, so that the smart button panel can be controlled through the device even at a long distance, without being limited to the same scenario, making the deployment of smart home appliances more flexible, and also enabling users to update the button information of the smart button panel in real time in remote control scenarios.
[0141] Method 2: The smart key panel establishes a connection with the device based on the communication module
[0142] In this embodiment, the smart key panel is configured with a first communication module, and the device is configured with a second communication module. A communication connection can be established between the device and the smart key panel via the communication modules.
[0143] For example, FIG15 shows schematic diagrams of various scenarios in which the smart key panel provided by an embodiment of the present application establishes a connection with a device based on a communication module.
[0144] As shown in (a) of FIG15 , the communication module is a Wi-Fi module, and the smart key panel and the device can access the same local area network through the Wi-Fi module, and then the smart key panel can transmit data with the device through the local area network.
[0145] As shown in (b) of FIG15 , if the communication module is a PLC module, the smart key panel can be directly connected to the device via a power transmission line, thereby sending key information to the device via the power transmission line.
[0146] As shown in (c) in Figure 15, the communication module is a Bluetooth module. When the distance between the smart button panel and the device is within the communication range of the Bluetooth module, the smart button panel can establish a communication connection with the device through the Bluetooth module and transmit button information through the Bluetooth connection.
[0147] In an embodiment of the present application, the smart button panel can encapsulate the above-mentioned button information using the data protocol associated with the communication module according to the type of communication module connected to the device, and send the button information to the device through the communication module, thereby achieving diversity of communication connections, and through direct connection between the smart button panel and the device, it can also improve the efficiency and stability of data transmission, thereby improving the timeliness of button updates.
[0148] Furthermore, as another embodiment of the present application, FIG16 shows an interactive flow chart of a smart key panel sending key information to a device according to another embodiment of the present application. Referring to FIG16 , in the key management method provided in the embodiment of the present application, S1001 specifically includes S1601 to S1603, and S1002 includes S1604, which are specifically described as follows:
[0149] In S1601, if the smart key panel detects a key number feedback event, it sends a first message indicating information change to the device.
[0150] In this embodiment, when the smart key panel detects a change in the number of keys, that is, when it detects a key number feedback event, it sends a first message to the device.
[0151] In S1602, in response to the first message, the device sends a second message to the smart key panel for instructing to obtain information.
[0152] In this embodiment, when the device receives the first message sent by the smart button panel, it sends a corresponding second message to the smart button panel, wherein the data transmission method between the device and the smart button panel can be one of the above-mentioned multiple transmission methods, such as realizing data transmission through the button application service, or realizing data transmission after direct connection through the communication module.
[0153] In S1603 , the smart key panel sends key information to the device in response to the second message.
[0154] In this embodiment, after receiving the second message sent by the device, the smart key panel generates corresponding key information based on the current number of keys and sends the corresponding key information to the device.
[0155] In S1604, the device receives the key information sent by the smart key panel.
[0156] In an embodiment of the present application, the smart button panel can first send a first message for indicating information changes, and then send the corresponding button information after receiving a second message sent by the device for indicating the acquisition of information. Since the device can obtain the button information through other means, if the device has updated the control interface of the smart button panel, at this time, the smart button panel does not need to repeatedly send the button information, which can improve the efficiency of data transmission and reduce unnecessary data transmission.
[0157] In S1003 , the device updates at least one element in the control interface corresponding to the smart key panel based on the key information.
[0158] In this embodiment, after receiving the key information from the smart key panel, the device updates the information about the smart key panel so that the number of keys on the smart key panel recorded in the device is consistent with the current number of keys. The device can be connected to a server of a smart home appliance and send the key information to the server. The server can then update the corresponding elements in the control interface of the smart key panel based on the key information so that the number of keys configured on the control interface is consistent with the current number of keys on the smart key panel.
[0159] In one possible implementation, the control interface includes a virtual panel corresponding to the smart button panel. The number of buttons corresponding to the virtual panel can be updated according to the number of buttons recorded in the button information sent by the device, that is, the above-mentioned element can be the virtual panel of the smart button panel in the control interface.
[0160] In one possible implementation, the control interface can configure corresponding setting controls for different buttons in the smart button panel, and the above elements can be the setting controls corresponding to each button in the control interface, and based on the current number of buttons on the smart button panel, the setting controls of some buttons can be added or deleted.
[0161] In one possible implementation, the control interface may include a setting control for the smart key panel. The setting control displays the key identifiers of the keys on the smart key panel. That is, the above-mentioned elements may be used to set the key identifiers displayed in the control on the control interface for the smart panel, and may add or delete key identifiers of some keys based on the current number of keys on the smart key panel.
[0162] For example, FIG17 shows a schematic diagram of the structure of a smart home appliance system provided by an embodiment of the present application. Referring to FIG17 , the smart home appliance system includes: a smart key panel, a device, and a server. The process of updating the control interface may specifically include the following steps:
[0163] ① The smart key panel can determine the number of cover plates fastened to the smart key panel by detecting the coupling signal fed back by the circuit, and determine the number of keys of the smart key panel according to the number of cover plates.
[0164] ② If the smart key panel detects that the current number of keys is inconsistent with the number of keys in the configuration file, it detects that there is a key feedback event.
[0165] ③The smart key panel sends key information to the device.
[0166] ④ After receiving the key information, the device can send the key information to the server of the corresponding application. The corresponding application can be a smart home application and / or a device management application.
[0167] ⑤ After receiving the key information, the server can update the control interface of the corresponding application based on the number of keys.
[0168] Among them, the above-mentioned server can be a server of a smart home application, and the smart home appliance application is used to control the operating status of each smart home appliance, that is, the control interface generated by the server is the state control interface of the smart key panel, such as controlling the switch status of each key in the smart key panel. For example, Figure 18 shows a schematic diagram of the control interface of the smart home appliance application provided by an embodiment of the present application. Referring to (a) in Figure 18, the current number of keys on the smart key panel is 3. After the device receives the key information, the relevant key information can be synchronized to the server of the smart home appliance application. The smart home appliance application can generate a corresponding control interface, as shown in (b) in Figure 18. The control interface displays a virtual panel 181 that is consistent with the number of keys on the smart key panel. By clicking the keys on the virtual panel 181, the switch status of the corresponding keys on the smart panel can be controlled. The control interface also includes setting controls corresponding to each key in the smart key panel, such as setting controls 182 for setting the left key, setting controls 183 for setting the middle key, and setting controls 184 for setting the right key. Since the control interface generated by the smart home appliance application is generated based on the button information received by the device, the number of buttons on the control interface is consistent with the actual number of buttons on the smart button panel, and will be updated as the number of buttons on the smart button panel is updated. Correspondingly, the above-mentioned elements for updating the control interface can be the above-mentioned virtual panel 181, and the setting controls 182~184 corresponding to each button, thereby ensuring that the user's virtual panel on the control interface is synchronized with the actual smart button panel, thereby improving the accuracy of smart button panel management.
[0169] Similarly, if the smart button panel changes from three buttons to two buttons, as shown in (c) in Figure 18, the smart button panel will send button information to the device. In this case, the device will update the elements in the control interface based on the number of buttons in the button information, such as updating the virtual panel 181 to obtain the virtual panel 185; for example, deleting the setting control 184 and adjusting the button identifiers displayed on the setting controls 182 and 183 to obtain setting controls 186 and 187, as shown in (d) in Figure 18, where the number of buttons changes from 3 buttons to 2 buttons, maintaining synchronization between the virtual panel and the smart button panel.
[0170] Among them, the above-mentioned server can also be a server of a device management application. The device management application is used to set the control events of each button on the smart button panel, such as limiting the touch mode of the button and the device associated with the button to control. For example, Figure 19 shows a setting diagram of the control event provided in an embodiment of the present application. Referring to (a) in Figure 19, the current number of buttons on the smart button panel is 2. The smart button panel can send button information to the device, and the device updates the relevant elements in the control interface of the device management application based on the current number of buttons in the button information, as shown in (b) in Figure 19. The control interface displays a setting item 191 of the smart button panel, which marks the panel identification of the smart button panel, such as smart button panel 1, and the function of each button. For example, switch 1 and color temperature control button, which means that the smart button panel 1 contains two buttons, one of which has the function of controlling the switch state of the device, and the other has the function of controlling the color temperature of the smart light.
[0171] Since the device has updated the device management application according to the key information, that is, the multi-terminal interface synchronization is performed through the server of the device management application, the user can start the device management application through a local user terminal, such as a mobile phone or a portable computer, and generate a corresponding control interface on the user terminal; in some implementation scenarios, the user can also open the above-mentioned control interface on the device, and the display device of the control interface is not specifically limited. When the user needs to set each key, he can click the setting item 191 of the smart key panel in the above-mentioned control interface to enter the corresponding setting interface, as shown in (c) in Figure 19. The setting interface can set the touch mode for each key, for example, the touch mode for switch 1 is single-click or double-click, and the touch mode for the color temperature control button is single-click or double-click. Of course, in other implementation scenarios, the above-mentioned touch mode can also include click and long press, etc., and the specific touch mode can be set according to the actual situation.
[0172] When the control interface is the control interface corresponding to the device management application, the elements included in the above-mentioned updated control interface can be the button identifiers displayed in the setting item 191 in Figure 19, and the identifiers corresponding to each button in the setting interface obtained after clicking the setting item 191.
[0173] In one possible implementation, in addition to setting the corresponding touch mode, the control device corresponding to each button can also be set. For example, if you continue to slide the setting interface, it will be displayed as shown in (d) in Figure 19. The user can set the device associated with each button and the corresponding function. For example, switch 1 is used to control smart light 1, and its corresponding function is switch; the color temperature control button is used to control smart light 1, and its corresponding function is color temperature control.
[0174] After the user completes the corresponding setting operation, the device will store the control events corresponding to each button in the smart control panel. When the smart button panel feeds back the touch information of the corresponding button, it will control the specified device according to the control event associated with the button.
[0175] For example, when the smart button panel detects that the user clicks switch 1, it will generate touch information about the click of switch 1. The device will determine that the touch information of the single click is to control the switch state of smart lamp 1, and then control smart lamp 1 to switch the switch state, for example, from the on state to the off state, or from the off state to the on state.
[0176] For another example, when the smart button panel detects that the user clicks the color temperature control button, it will generate touch information about the single click of the color temperature control button. The device will determine that the touch information of the click is to adjust the color temperature of smart lamp 1, and then adjust the color temperature of smart lamp 1 based on the preset color temperature switching order.
[0177] From the above, it can be seen that in a method for managing buttons provided by an embodiment of the present application, the cover in the smart button panel is a detachable cover, and the smart button panel can determine the current number of buttons by identifying the installed cover, and when a button number feedback event is detected, the button information carrying the current number of buttons is sent to the corresponding device, and the device can update the corresponding elements in the control interface according to the current number of buttons of the smart button panel, thereby realizing dynamic and flexible adjustment of the number of buttons on the smart button panel while updating the control interface of the smart button panel, making it convenient to set control events associated with each button on the smart button panel. Compared with existing smart home appliance technology, when the number of buttons of the smart button panel needs to be adjusted, there is no need to remove the entire smart button panel and replace it with another panel with a suitable number of buttons. Instead, it is only necessary to adjust the specifications of the cover on the smart button panel to change the number of buttons configured on the smart button panel, which greatly improves the flexibility of adjusting the number of buttons on the panel and reduces the cost of changes.
[0178] Example 3:
[0179] Compared with the second embodiment, the second embodiment describes the key management method provided by the embodiment of the present application from the perspective of the interaction between the device and the smart key panel, while the third embodiment describes the key management method provided by the embodiment of the present application from the perspective of the smart key panel. For example, Figure 20 shows a flowchart of the key management method provided by the first embodiment of the present application from the perspective of the smart key panel. The specific description is as follows:
[0180] In S2001, if a key number feedback event is detected, key information is sent to the device; the key information includes the current number of keys on the smart key panel, and the key information is input for updating at least one element of the control interface corresponding to the smart key panel on the device.
[0181] Optionally, if a key number feedback event is detected, sending key information to the device includes:
[0182] If the key number feedback event is detected, sending a first message indicating an information change to the device;
[0183] In response to a second message sent by the device for instructing to obtain information, the key information is sent to the device.
[0184] Optionally, before sending key information to the device if a key number feedback event is detected, the method further includes:
[0185] Determining the current number of keys according to the number of housings configured on the smart key panel;
[0186] If the current number of keys is inconsistent with the number of keys recorded in the configuration file of the smart key panel, the configuration file is updated based on the current number of keys, and the key number feedback event is generated.
[0187] Optionally, the smart key panel includes multiple detection circuits;
[0188] The determining the current number of keys according to the number of cover plates configured on the smart key panel includes:
[0189] receiving coupling signals fed back by each of the detection circuits, wherein the coupling signals are generated when the cover is buckled onto the panel area corresponding to the detection circuit;
[0190] The number of the face shells is determined according to the received coupling signal.
[0191] Optionally, the coupling signal is generated when a switch on the detection circuit is connected, and the switch is connected when the face shell is buckled into the panel area of the detection circuit.
[0192] Optionally, if a key number feedback event is detected, sending key information to the device includes:
[0193] Generate the key information by using a key service application;
[0194] The key information is sent to a server through the key service application, so that the key information is sent to the device through the server.
[0195] Optionally, if a key number feedback event is detected, sending key information to the device includes:
[0196] The key information is sent to the device through the first communication module; and the smart key panel establishes a communication connection with the device through the first communication module.
[0197] In an embodiment of the present application, the cover in the smart button panel is a detachable cover. The smart button panel can determine the current number of buttons by identifying the installed cover, and when a button number feedback event is detected, the button information carrying the current number of buttons is sent to the corresponding device. The device can update the corresponding elements in the control interface according to the current number of buttons on the smart button panel, thereby achieving dynamic and flexible adjustment of the number of buttons on the smart button panel while updating the control interface of the smart button panel, making it convenient to set control events associated with each button on the smart button panel. Compared with existing smart home appliance technology, when the number of buttons on the smart button panel needs to be adjusted, there is no need to remove the entire smart button panel and replace it with another panel with the appropriate number of buttons. Instead, it is only necessary to adjust the specifications of the cover on the smart button panel to change the number of buttons configured on the smart button panel, which greatly improves the flexibility of adjusting the number of buttons on the panel and reduces the cost of changes.
[0198] Example 4:
[0199] Compared with the second embodiment, the second embodiment describes the key management method provided by the embodiment of the present application from the perspective of the interaction between the device and the smart key panel, while the fifth embodiment describes the key management method provided by the embodiment of the present application from the perspective of the device. For example, Figure 21 shows a flowchart of the key management method provided by the first embodiment of the present application from the device side, which is described in detail as follows:
[0200] In S2101, key information sent by a smart key panel is received, where the key information is sent when the smart key panel detects a key number feedback event, and the key information includes the current number of keys on the smart key panel.
[0201] In S2102, at least one element of the control interface corresponding to the smart key panel is updated based on the key information.
[0202] Optionally, the receiving the key information sent by the smart key panel includes:
[0203] The key information sent by the server is received through the key service application, where the key information is sent by the smart key panel to the server through the key service application installed in the smart key panel.
[0204] Optionally, the receiving the key information sent by the smart key panel includes:
[0205] The key information sent by the smart key panel is received through the second communication module; and the device establishes a communication connection with the smart key panel through the second communication module.
[0206] Optionally, after updating at least one element of the control interface of the smart key panel based on the key information, the method further includes:
[0207] In response to a setting operation initiated by a user in the control interface, setting a touch mode of any button corresponding to the smart button panel on the control interface and a smart device controlled by any button;
[0208] If touch information about one of the keys is received from the smart key panel, the smart device associated with the key is controlled, and the touch information is sent when the smart key panel detects that the user touches the key in a corresponding touch manner.
[0209] Optionally, the receiving the key information sent by the smart key panel includes:
[0210] receiving a first message sent by the smart key panel for indicating an information change, wherein the first message is sent when the smart key panel detects the key number feedback event;
[0211] A second message for instructing to obtain information is sent to the smart key panel, so that the smart key panel feeds back the key information based on the second message.
[0212] It should be understood that the first message and the second message involved in this article can also be described as a first instruction and a second instruction, or a first request and a second request, or a first message and a second message.
[0213] Figure 22 is a schematic diagram of the structure of a device provided in one embodiment of the present application. As shown in Figure 22, the device 22 of this embodiment includes: at least one processor 220 (only one processor is shown in Figure 22), a memory 221, and a program 222 stored in the memory 221 and executable on the at least one processor 220. When the processor 220 executes the program 222, the steps of any of the above-mentioned key management method embodiments are implemented.
[0214] Device 23 may be a desktop computer, laptop, PDA, or cloud server. The device may include, but is not limited to, a processor 220 and a memory 221. Those skilled in the art will appreciate that FIG22 is merely an example of device 22 and does not limit the scope of device 22. Device 22 may include more or fewer components than shown, or a combination of certain components or different components. For example, it may also include input / output devices, network access devices, and the like.
[0215] The processor 220 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.
[0216] In some embodiments, the memory 221 may be an internal storage unit of the device 22, such as a hard disk or memory of the device 22. In other embodiments, the memory 221 may also be an external storage device of the device 22, such as a plug-in hard disk, smart memory card, secure digital card, flash memory card, etc. equipped on the device 22. Furthermore, the memory 221 may also include both an internal storage unit of the device 22 and an external storage device. The memory 231 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of the programs. The memory 221 may also be used to temporarily store data that has been output or is about to be output.
[0217] An embodiment of the present application also provides a device, which includes: at least one processor, a memory, and one or more programs stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the one or more programs.
[0218] An embodiment of the present application further provides a readable storage medium, which stores one or more programs. When the one or more programs are executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0219] An embodiment of the present application provides a program product. When the program product is run on a device, the device can implement the steps in the above-mentioned method embodiments when the program product is executed.
[0220] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a program. The program can be stored in a readable storage medium, and when the program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the program includes program code, and the program code can be in source code form, object code form, executable file or some intermediate form. The readable medium may at least include: any entity or device that can carry the program code to the smart key panel / device, a recording medium, a memory, a read-only memory, a random access memory, an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0221] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A method for key management, characterized in that: Applied to a smart key panel, the method comprises: If a key number feedback event is detected, key information is sent to the device, where the key information includes the current number of keys on the smart key panel, and the key information is input for updating at least one element of the control interface corresponding to the smart key panel on the device.
2. The method according to claim 1, characterized in that If a key number feedback event is detected, key information is sent to the device, including: If the key number feedback event is detected, sending a first message indicating information change to the device; In response to a second message sent by the device for instructing to obtain information, the key information is sent to the device.
3. The method according to claim 1, characterized in that Before the step of sending key information to the device if a key number feedback event is detected, the step further includes: Determining the current number of keys according to the number of cover plates configured on the smart key panel; If the current number of keys is inconsistent with the number of keys recorded in the configuration file of the smart key panel, the configuration file is updated based on the current number of keys, and the key number feedback event is generated.
4. The method according to claim 3, characterized in that The smart key panel includes multiple detection circuits; The determining the current number of keys according to the number of cover plates configured on the smart key panel includes: receiving coupling signals fed back by each of the detection circuits, wherein the coupling signals are generated when the face shell is buckled onto a panel area corresponding to the detection circuit; The number of the face shells is determined according to the received coupling signal.
5. The method according to claim 4, characterized in that The coupling signal is generated when a switch on the detection circuit is connected, and the switch is connected when the cover is buckled onto the panel area of the detection circuit.
6. The method according to any one of claims 3 to 5, characterized in that: If a key number feedback event is detected, key information is sent to the device, including: Generate the key information by using a key service application; The key information is sent to a server through the key service application, so that the key information is sent to the device through the server.
7. The method according to any one of claims 3 to 5, characterized in that: If a key number feedback event is detected, key information is sent to the device, including: The key information is sent to the device through the first communication module, and the smart key panel establishes a communication connection with the device through the first communication module.
8. A method for key management, characterized in that: Applied to a device, the method comprises: Receiving key information sent by the smart key panel, wherein the key information is sent when the smart key panel detects a key number feedback event, and the key information includes the current number of keys of the smart key panel; At least one element of the control interface corresponding to the smart button panel is updated based on the button information.
9. The method according to claim 8, characterized in that The receiving the key information sent by the smart key panel includes: The key information sent by the server is received through the key service application, and the key information is sent to the server by the smart key panel through the key service application installed in the smart key panel.
10. The method according to claim 8, characterized in that The receiving the key information sent by the smart key panel includes: The key information sent by the smart key panel is received through the second communication module, and the device establishes a communication connection with the smart key panel through the second communication module.
11. The method according to any one of claims 8 to 10, characterized in that: After updating at least one element of the control interface of the smart key panel based on the key information, the method further includes: In response to a setting operation initiated by a user in the control interface, setting a touch mode of any button corresponding to the smart button panel on the control interface and a smart device controlled by any button; If touch information about one of the keys is received from the smart key panel, the smart device associated with the key is controlled, and the touch information is sent when the smart key panel detects that the user touches the key in a corresponding touch manner.
12. The method according to any one of claims 8 to 10, characterized in that: The receiving the key information sent by the smart key panel includes: receiving a first message sent by the smart button panel for indicating information change, wherein the first message is sent when the smart button panel detects the button number feedback event; A second message for instructing to obtain information is sent to the smart button panel, so that the smart button panel feeds back the button information based on the second message.
13. An intelligent key panel applied to the key management method according to any one of claims 1 to 7, characterized in that: include: A panel body and at least one cover buckled on the panel body; The panel body includes a plurality of detection circuits and a control chip; The output port of the detection circuit is connected to the input port of the control chip; The detection circuit is used to output a coupling signal to the control chip when detecting that the face cover is buckled with the panel area corresponding to the detection circuit; The control chip is used to receive the coupling signals sent by each of the detection circuits, and determine the current number of keys of the smart key panel based on the coupling signals, and when the current number of keys is inconsistent with the number of keys recorded in the configuration file, send key information containing the current number of keys to the device.
14. The smart key panel according to claim 13, characterized in that: The detection circuit includes a first switch pin, and the housing includes a second switch pin; When the face shell is buckled onto the panel area corresponding to the detection circuit, the first switch pin is connected to the second switch pin, and the detection circuit generates the coupling signal when the first switch pin is connected to the second switch pin.
15. The smart key panel according to claim 13, characterized in that: The detection circuit includes a first coupling coil, and the housing includes a second coupling coil; When the face shell is buckled onto the panel area corresponding to the detection circuit, the first coupling coil and the second coupling coil generate the coupling signal.
16. The smart key panel according to any one of claims 13 to 15, characterized in that: The smart key panel includes a communication module, the input port of the communication module is connected to the output port of the control chip; the smart key panel establishes a communication connection with the device through the communication module; The communication module is used to generate a communication protocol data packet corresponding to the communication module from the key information, and send the communication protocol data packet to the device through the communication connection; and / or The communication module is used to send the key information to the server, so that the key information is sent to the device through the server.
17. The smart key panel according to claim 16, characterized in that: The communication module includes: at least one of a wireless fidelity Wi-Fi module, a Bluetooth module, a low-power Bluetooth module, a ZigBee module, an ultra-wideband UWB module, a near-field communication NFC module, and a power line carrier communication PLC module.
18. The smart key panel according to any one of claims 13 to 15, characterized in that: The panel body includes a control circuit board, a back panel and a junction box. The control chip and the detection circuit are installed on the control circuit board. The control circuit board is installed on the back panel. The back panel is installed on the junction box.
19. An intelligent key panel, characterized in that: The smart key panel includes a memory, one or more processors, and one or more programs stored in the memory, and the one or more processors execute the one or more programs according to the steps of the method according to any one of claims 1 to 7.
20. A device, characterized in that The device comprises a memory, one or more processors and one or more programs stored in the memory, and the one or more processors execute the one or more programs according to any one of claims 8 to 12.
21. A readable storage medium storing one or more programs, characterized in that: When the one or more programs are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented, or the steps of the method according to any one of claims 8 to 12 are implemented.
Citation Information
Patent Citations
Liquid crystal touch control switch, configuration system and configuration method
CN109857438A
Key configuration method and device of intelligent gateway and electronic equipment
CN110838973A
Remote controller key updating method and device, remote controller and storage medium
CN114422836A
Intelligent switch capable of setting different key numbers
CN116313613A
Apparatus for lighting control
US20230114505A1