Key management method, panel, equipment and storage medium
By using the detachable shell in the smart button panel to detect and send button information, the problem of difficult and high cost of adjusting the number of buttons in the prior art is solved, and flexible adjustment and low-cost button management are achieved.
Patent Information
- Application Number
- CN202311229911.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-20
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2043-09-20
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 using the removable face shell in the smart key panel, the number of face shells is detected 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 CN119676013A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] 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, due to the increasing number of smart home appliances, 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-button or three-button can be installed to achieve control of one or more specified smart appliances.
[0003] 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 he needs to add or reduce buttons, he needs to replace the entire panel, which greatly increases the difficulty of adjusting the number of buttons and the cost of changes. Summary of the invention
[0004] 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.
[0005] The first aspect provides a method for key management, which is applied to a smart key panel. The method for key management includes: if a key number feedback event is detected, sending key information to the device; the key information includes the current number of keys of 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.
[0006] The implementation of the embodiments of the present application has the following beneficial effects: the face shell in the smart button panel is a detachable face shell, the smart button panel can determine the current number of keys by identifying the installed face shell, and when detecting a key number feedback event, it will send the key information carrying the current number of keys to the corresponding device, and the device can update the corresponding elements in the control interface according to the number of keys of the current smart button panel, thereby realizing dynamic and flexible adjustment of the number of keys on the smart button panel while updating the control interface of the smart button panel, and facilitating the setting of control events associated with each key on the smart button panel. Compared with the existing smart home appliance technology, when the number of keys of the smart button panel needs to be adjusted, there is no need to dismantle the entire smart button panel and replace it with another panel with a suitable number of keys. Instead, it is only necessary to adjust the face shell specifications on the smart button panel to change the number of keys configured on the smart button panel, which greatly improves the flexibility of adjusting the number of panel keys and reduces the cost of change.
[0007] In a possible implementation manner of the first aspect, if a key number feedback event is detected, sending key information to a device includes:
[0008] If the key number feedback event is detected, sending a first message indicating information change to the device;
[0009] In response to a second message sent by the device for instructing to obtain information, the key information is sent to the device.
[0010] In a possible implementation manner of the first aspect, before the step of sending key information to a device if a key number feedback event is detected, the method further includes:
[0011] Determining the current number of keys according to the number of cover plates configured on the smart key panel;
[0012] 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.
[0013] In a possible implementation of the first aspect, the smart key panel includes a plurality of detection circuits;
[0014] The determining the current number of keys according to the number of cover plates configured on the smart key panel includes:
[0015] 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;
[0016] The number of the face shells is determined according to the received coupling signal.
[0017] 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 a panel area of the detection circuit.
[0018] In a possible implementation manner of the first aspect, if a key number feedback event is detected, sending key information to a device includes:
[0019] Generate the key information by using a key service application;
[0020] 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.
[0021] In a possible implementation manner of the first aspect, if a key number feedback event is detected, sending key information to a device includes:
[0022] 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.
[0023] A second aspect provides a smart key panel, comprising: a panel body and at least one cover buckled on the panel body;
[0024] 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;
[0025] 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;
[0026] 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.
[0027] In a possible implementation manner of the second aspect, the detection circuit includes a first switch pin, and the housing includes a second switch pin;
[0028] 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.
[0029] In a possible implementation of the second aspect, the detection circuit includes a first coupling coil; the housing includes a second coupling coil;
[0030] 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.
[0031] 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;
[0032] 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
[0033] 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.
[0034] 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.
[0035] 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.
[0036] A third aspect provides a key management method, which is applied to a device. The key management method includes:
[0037] 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;
[0038] At least one element of the control interface corresponding to the smart button panel is updated based on the button information.
[0039] In a possible implementation manner of the third aspect, the receiving the key information sent by the smart key panel includes:
[0040] 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.
[0041] In a possible implementation manner of the third aspect, the receiving the key information sent by the smart key panel includes:
[0042] 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.
[0043] 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:
[0044] 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;
[0045] 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.
[0046] In a possible implementation manner of the third aspect, the receiving the key information sent by the smart key panel includes:
[0047] 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;
[0048] 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.
[0049] The fourth aspect provides an intelligent button 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 button management method described in any one of the first aspects when executing the one or more programs.
[0050] 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.
[0051] A sixth aspect provides a readable storage medium, wherein the readable storage medium stores one or more programs, and 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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
[0056] Figure 1 It is a schematic diagram of different types of smart key panels;
[0057] Figure 2 is a structural diagram of a smart key panel provided by an embodiment of the present application;
[0058] Figure 3 It is a structural schematic diagram of a panel body provided by an embodiment of the present application;
[0059] Figure 4 It is a schematic diagram of the relationship between the number of face shells and the number of buttons provided in an embodiment of the present application;
[0060] Figure 5 is a schematic diagram of a detection circuit provided in an embodiment of the present application;
[0061] Figure 6 is a schematic diagram of a panel body based on contact detection provided by an embodiment of the present application;
[0062] Figure 7 is a schematic diagram of a panel body based on non-contact detection provided by an embodiment of the present application;
[0063] Figure 8 is a schematic diagram of a panel body provided by another embodiment of the present application;
[0064] Fig. 9is a structural schematic diagram of a panel body provided by another embodiment of the present application;
[0065] Fig.10 is an interactive implementation flow chart of a key management method provided by an embodiment of the present application;
[0066] Fig.11 It is a schematic diagram of setting the corresponding relationship between the key capability status and the key number provided in an embodiment of the present application;
[0067] Fig.12 is a schematic diagram of a device and a smart key panel transmitting key information through a key service application provided by an embodiment of the present application;
[0068] Fig.13 is a schematic diagram of the data structure of key information provided by an embodiment of the present application;
[0069] Fig.14 This is a schematic diagram of the setting of a smart home provided by an embodiment of the present application;
[0070] Fig.15 It is a schematic diagram of various scenarios in which the smart key panel provided by the embodiment of the present application establishes a connection with the device based on the communication module;
[0071] Fig.16 is an interactive flow chart of a smart key panel sending key information to a device provided by another embodiment of the present application;
[0072] Fig.17 is a structural diagram of a smart home appliance system provided by an embodiment of the present application;
[0073] Fig.18 is a schematic diagram of a control interface of a smart home appliance application provided by an embodiment of the present application;
[0074] Fig.19 is a schematic diagram of setting a control event provided by an embodiment of the present application;
[0075] Fig. 20 This is a flowchart of the key management method provided by an embodiment of the present application on the smart key panel side;
[0076] Fig.21 This is a flowchart of a method for key management provided by an embodiment of the present application on the device side;
[0077] Fig. 22 It is a schematic diagram of the structure of a device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0078] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also 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 prevent unnecessary details from obstructing the description of the present application.
[0079] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0080] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" 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 "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0081] 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.
[0082] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0083] With the continuous development of smart home appliance technology, smart home appliances are gradually becoming 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 smart button panel can be used to control the home appliances. 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 a smart light, while another button can be used to control the color temperature of a smart light. Due to the flexible setting of the smart button panel and its 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 Schematic diagram showing different types of smart key panels. Figure 1 As shown, according to the different numbers of buttons on the smart button panel, it can be divided into one-button panel, two-button panel and three-button panel, etc. Users can install the corresponding smart button panel according to actual usage requirements.
[0084] However, in the existing smart button panels, the number of buttons set on each 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 is bound to the panel model of the smart button panel, that is, the number of buttons and the corresponding control interface are immutable. However, with the continuous changes in user usage needs, the demand for the number of buttons of the smart button panel will also change accordingly. 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 remove the two-button panel first, 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.
[0085] Embodiment 1:
[0086] In order to solve the above 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 cover buckled on the panel body. Figure 2 FIG. 1 shows a schematic diagram of the structure of a smart key panel provided by an embodiment of the present application. Figure 2As shown in (a) of FIG. 1 , the smart key panel is a two-key panel, and the smart key panel includes a panel body 21 and two cover shells buckled on the panel body 21, namely, cover shell 22 and cover 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 cover shell 22 and cover shell 23 can be removed and replaced with four cover shells of four-key specifications, such as Figure 2 The cover 24 to the cover 27 shown in (b) of FIG. 1 , the smart key panel can be adjusted from a two-key key panel to a four-key key panel.
[0087] 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 face shells installed, 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 multiple detection circuits are arranged on the panel body of the smart key panel. For example, Figure 3 FIG. 1 shows a schematic diagram of the structure of a panel body provided by an embodiment of the present application. Figure 3 As shown, the panel body 21 of the intelligent 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 intelligent key panel can also be stored in the memory of the control chip 31.
[0088] 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.
[0089] Taking the detection circuit 32 as an example, the detection circuit 32 is used to detect whether there is a buckled face shell in the corresponding detection area. If there is a buckled face shell in the corresponding detection area, the detection circuit 32 can output a coupling signal through the output port, and the control chip 31 can receive the coupling signal sent by the detection circuit 32 through the input port, so as to determine whether there is a face shell in the 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 face shells buckled on the smart panel, and determine the current number of keys of the smart key panel according to the number of face shells.
[0090] In a possible implementation, the number of cover shells configured on the smart key panel is the current number of keys on the smart key panel. Figure 4A schematic diagram showing the relationship between the number of housings and the number of buttons provided in an embodiment of the present application. Figure 4 As shown in (a), the number of keys on each cover is one. In this case, the number of cover is the same as the number of keys on the smart key panel, and the number of cover can be used as the above-mentioned number of keys.
[0091] In a possible implementation, if two buttons are configured on a cover, the current number of buttons on the smart button panel can be determined based on the number of buttons on each cover. Figure 4 As shown in (b), the number of keys of each shell is 2. In this case, the current number of keys = 2*the number of shells. Specifically, the number of keys configured on each shell can be set according to demand and is not limited here.
[0092] If the number of buttons on the cover is not fixed, the detection circuit can determine the number of buttons on the cover according to the preset characteristic parameters during the actual buckling, and then generate a coupling signal that matches the number of buttons on the cover. Figure 5 FIG. 1 is a schematic diagram of a detection circuit provided by an embodiment of the present application. Figure 5 As shown, the detection circuit includes a plurality of different physical switches. When the face shells with different numbers of keys are buckled in the detection area corresponding to the detection circuit, the number of physical switches connected is different. For example, a face shell with 2 keys can connect two physical switches; and a face shell with 1 key 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 keys based on the coupling signal.
[0093] In this embodiment, the detection circuit detects whether the face cover is buckled in the corresponding detection area, which specifically includes the following two methods:
[0094] Method 1: Contact detection
[0095] In this embodiment, each detection circuit includes a first switch pin, illustratively, Figure 6 FIG. 1 is a schematic diagram of a panel body based on contact detection provided by an embodiment of the present application. Figure 6As shown, the panel body includes a control chip 31, and four first switch pins, namely switch pins 11 to switch pins 14. Correspondingly, each face shell buckled on the panel body may also include a second switch pin. Taking the panel body buckled with four face shells as an example, face shell 1 is equipped with switch pin 21, face shell 2 is equipped with switch pin 22, face shell 3 is equipped with switch pin 23, and face shell 4 is equipped with switch pin 24. When each face shell is buckled on the panel body, switch pin 11 will be connected with switch pin 21, switch pin 12 will be connected with switch pin 22, switch pin 13 will be connected with switch pin 23, and switch pin 14 will be connected with 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 according to the number of coupling signals received, and then determine the current number of keys of the current smart key panel.
[0096] It should be noted that the number of switch pins configured on each panel body is different, which can be specifically determined according to the maximum number of face shells or the maximum number of buttons supported by the panel body, and is not limited here.
[0097] Method 2: Non-contact detection
[0098] In this embodiment, each detection circuit includes a first coupling coil, illustratively, Figure 7 FIG. 1 is a schematic diagram of a panel body based on non-contact detection provided by an embodiment of the present application. Figure 7 As shown, the panel body includes a control chip 31, and four first coupling coils, namely coupling coils 11 to 14. Correspondingly, each face shell buckled on the panel body may also include a second coupling coil. Taking the panel body buckled with four face shells as an example, face shell 1 is provided with coupling coil 21, face shell 2 is provided with coupling coil 22, face shell 3 is provided with coupling coil 23, and face shell 4 is provided with coupling coil 24. When each face shell is buckled on the panel body, coupling coil 11 and coupling coil 21 will generate coupling signals, coupling coil 12 and coupling coil 22 will generate coupling signals, coupling coil 13 and coupling coil 23 will generate coupling signals, and coupling coil 14 and coupling coil 24 will generate coupling signals. The coupling signals generated by each pair of coupling coils can be transmitted to the control chip 31 through the corresponding output pins. The control chip 31 can determine the number of face shells according to the number of coupling signals received, and then determine the current number of keys of the current smart key panel.
[0099] It should be noted that the number of coupling coils configured on each panel body is different, and can be specifically determined according to the maximum number of face shells or the maximum number of buttons supported by the panel body, and is not limited here.
[0100] In this embodiment, the control chip 31 may also include a memory, which may record a configuration file about the smart button panel. The configuration file records the number of keys determined by the last detection of the smart button panel. The control chip 31 will compare the current number of keys d determined based on the coupling signal with the number of keys recorded in the configuration file, thereby identifying whether the number of keys of the smart button panel has changed, and determining whether it is necessary to send the changed key information to the device.
[0101] In a possible implementation, a communication module may be configured on the panel body. For example, Figure 8 A schematic diagram of a panel body provided by another embodiment of the present application is shown. 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 (Wireless Fidelity, Wi-Fi) module, a Bluetooth module, a low-power Bluetooth module, a ZigBee module, a near field communication (Near Field Communication, NFC) module, an ultra-wideband (Ultra Wide Band, UWB) module, and a power line carrier communication (Power Line Communication, PLC) module.
[0102] In a possible implementation, the panel body can also be divided into multiple parts. For example, Fig. 9 FIG. 2 shows a schematic diagram of the structure of a panel body provided by another embodiment of the present application. Fig. 9 As shown, the above-mentioned modules (i.e., the control chip 31, the detection circuits 32 to 35, and the communication module 81) can be installed on the control circuit board 91, the control circuit board 91 can be installed on the back plate 92, and the back plate 92 can be installed on the junction box 93, thereby forming a panel body. The panel body can include a plurality of fastening parts, and the face shell can be fastened with the fastening parts to be installed on the above-mentioned panel body.
[0103] Embodiment 2:
[0104] 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 shells installed on the panel body in real time, so as to determine the current number of buttons of the smart button panel, so as to update the current number of buttons to the device in real time. 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 in an embodiment of the present application from the perspective of the interaction process between the smart button panel and the device. For example, Fig.10 FIG. 1 shows an interactive implementation flow chart of a key management method provided by an embodiment of the present application. Fig.10 As shown, the button management method is applied to a smart home system, which includes: a device and at least one smart button panel. The device can be a management terminal of a smart home, such as a smart router or a computer, and other smart home appliances in the scene are managed and controlled through the management terminal. Specifically, the specific implementation process of the above-mentioned smart button control method is described as follows:
[0105] In S1001, if the smart button panel detects a button number feedback event, it sends button information to the device; the button information includes the current button number of the smart button panel.
[0106] In S1002, the device receives key information sent by the smart key panel.
[0107] 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 pre-stored in the configuration file, 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.
[0108] 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, a physical address, or a combination of two or more thereof.
[0109] In a possible implementation, the above-mentioned key information may also include the key capability status of each key. Among them, the key capability status includes two types: enabled state and disabled state. Among them, 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 snapped on 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 snapped on 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.
[0110] For example, Fig.11 A schematic diagram showing the corresponding relationship between the key capability status and the key number provided by an embodiment of the present application is shown. Fig.11 As shown, the smart button panel can be divided into 4 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 buckled 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., key 1, and button2 is not configured with the cover and has no corresponding key. Therefore, the key capability state of button1 is enabled, and the key capability state of button2 is disabled. Correspondingly, area 3 is buckled with the cover 2, i.e., key 2, and the cover 2 covers area 4. The key capability state of button3 is enabled, and the key capability state of button4 is disabled. Therefore, the key information generated by the smart button panel can be as shown in Table 1. In other implementations, in addition to the key number, the above-mentioned key information can also include the custom number corresponding to each key and the key type (such as touch key type and press key type, etc.).
[0111] Button Number Key Capability Status button1 Enable status button2 Disabled state button3 Enable status button4 Disabled state
[0112] Table 1
[0113] In this embodiment, after detecting the current number of keys, the smart key panel can determine whether the number of keys of 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.
[0114] Specifically, the triggering of the above key count feedback event includes at least the following two situations:
[0115] Case 1: Triggered when the panel is powered on
[0116] 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.
[0117] Case 2: Triggered when the face shell changes
[0118] In this embodiment, the configuration file in the memory of the smart key panel records the number of keys of the smart key panel at the last detection. The smart key panel can be configured with a corresponding detection opportunity, such as periodic detection or power-on detection, etc. When the preset detection opportunity is reached, the number of keys of the smart key panel is determined, and the number of keys is written into the above configuration file and stored in the memory. In this case, the number of keys recorded in the above configuration file is the number of keys collected at the last detection opportunity.
[0119] 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.
[0120] In a 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, the smart button panel can feed back button information to the device to synchronously update the associated elements in the control interface of the smart button panel. The smart button panel can write the current number of buttons into a data packet corresponding to the communication method according to the communication method with the device, thereby generating button information, and sending the button information 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, 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 of the smart button panel.
[0122] In an embodiment of the present application, the number of keys pressed on the smart button 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 it is necessary to send key information to the device, thereby improving the timeliness of key information feedback.
[0123] 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 key information to the device through the communication connection between the device and the smart key panel. The communication connection established between the smart key panel and the device can include the following two methods:
[0124] Method 1: The smart key panel establishes a communication connection with the device through the key service application
[0125] For example, Fig.12 A schematic diagram showing a device provided by an embodiment of the present application and a smart key panel transmitting key information through a key service application is shown. Fig.12 As shown, the smart key panel and the device in the embodiment of the present application may be installed with a key service application. After the smart key panel and the device are started, the key service application may be run, and the smart key panel and the device may establish a communication connection between the two through the key service application. The above-mentioned process of transmitting key information includes:
[0126] In S1201 , the smart key panel runs a key service application.
[0127] In S1202, the smart key panel is connected to the server through the key service application.
[0128] In this embodiment, the smart button panel is installed with a button service application, and after the smart button panel is powered on, the smart button panel can run the button service application. When the smart button panel is capable of Internet communication, for example, through a Wi-Fi module or a network cable, etc., accessing a router in the scene, and accessing the Internet through the router, the button service application can send a login request to the server. When the server recognizes that the login request is legitimate, it will recognize that the smart button panel is online, that is, a connection between the smart button panel and the server is established.
[0129] In a possible implementation, the server may be a server of a smart home appliance to provide users with relevant management and control functions of the smart home appliance. For example, a user may classify multiple smart home appliances into a smart home through the server, set the device as a smart host of the smart home, and control multiple different smart home appliances in the smart home through the smart host, such as the smart key panel mentioned above.
[0130] In S1203, the device runs a key service application.
[0131] In S1204, the device connects to the server through the key service application.
[0132] Similarly, the device in this embodiment may also be installed with a key service application. When the device is able to communicate with the Internet, a login request may be sent to the server through the key service application. When the server recognizes that the login request is legitimate, it will recognize that the device is online, i.e., a connection between the device and the server is established.
[0133] In S1205, the smart key panel sends the key information to the server through the key service application.
[0134] In this embodiment, both the smart button panel and the device are connected to the server through the button service application. In this case, the two can send interactive data between them through the server. Based on this, the smart button panel needs to notify the device that the number of its buttons has changed. Therefore, the smart button panel can send the button information to the server through the button service application, and the server can send the button information to the device.
[0135] In a possible implementation, the smart key panel can generate corresponding key information based on JavaScript Object Notation (json) format. The key information can be a product physical model profile, which is used to describe the product type, what it can do, and the services it can provide to the outside world. For example, Fig.13 A schematic diagram of the data structure of the key information provided by an embodiment of the present application is shown. The data structure of the key 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 a smart key panel, the above-mentioned product type may be a smart key panel, and the product model may be determined by the panel model, such as A0001, and the above-mentioned product identification may be the physical number of the smart key panel, such as TCM00001. Each service information group is used to carry information about a key on the smart key panel. Among them, the service information group includes a key attribute field and a key command field, which are used to record the relevant information of each key, and may include a command field and a response field.
[0136] In S1206, the device receives the key information sent by the server through the key service application.
[0137] In this embodiment, the device is connected to the server through a button service application. After receiving the button information of the smart button panel, the server can determine the management device associated with the smart button panel. When it is determined that the management device of the smart button panel is a device, the button information can be sent to the device so that the device can update the button-related elements in the control interface through the button information.
[0138] In a possible implementation, the server may record the correspondence between the smart key panel and the management device. Fig.14 FIG. 1 shows a schematic diagram of a smart home configuration provided by an embodiment of the present application. Fig.14 As shown, the user can open the management interface of the smart home appliance on the 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.
[0139] 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 scene, thereby making the deployment of smart home appliances more flexible and enabling users to update the button information of the smart button panel in real time in remote control scenarios.
[0140] Method 2: The smart key panel establishes a connection with the device based on the communication module
[0141] 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 through the communication module.
[0142] For example, Fig.15 Schematic diagrams of various scenarios in which the smart key panel provided by the embodiment of the present application establishes a connection with the device based on the communication module are shown.
[0143] See also Fig.15As shown in (a), the communication module is a Wi-Fi module, so the smart button panel and the device can access the same local area network through the Wi-Fi module, and then the smart button panel can transmit data with the device through the local area network.
[0144] See also Fig.15 As shown in (b), the communication module is a PLC module, and the smart key panel can be directly connected to the device through the power transmission line, thereby sending key information to the device through the power transmission line.
[0145] See also Fig.15 As shown in (c), 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.
[0146] 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 realizing the diversity of communication connections, and through the 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.
[0147] Further, as another embodiment of the present application, Fig.16 FIG. 2 shows an interactive flow chart of a smart key panel sending key information to a device according to another embodiment of the present application. Fig.16 As shown, 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:
[0148] In S1601, if the smart key panel detects a key number feedback event, it sends a first message indicating information change to the device.
[0149] In this embodiment, when the smart key panel detects a change in the number of keys, that is, detects a key number feedback event, it sends a first message to the device.
[0150] In S1602, the device sends a second message for instructing to obtain information to the smart key panel in response to the first message.
[0151] In this embodiment, when the device receives a 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 a button application service, or realizing data transmission after direct connection through a communication module.
[0152] In S1603, the smart key panel sends key information to the device in response to the second message.
[0153] In this embodiment, after receiving the second message sent by the device, the smart button panel generates corresponding button information based on the current number of buttons and sends the information to the device.
[0154] In S1604, the device receives the key information sent by the smart key panel.
[0155] In an embodiment of the present application, the smart button panel can first send a first message for indicating information changes, and then send corresponding button information after receiving a second message sent by the device for indicating obtaining information. Since the device can obtain 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 button information, which can improve the efficiency of data transmission and reduce unnecessary data transmission.
[0156] In S1003, the device updates at least one element in the control interface corresponding to the smart button panel based on the button information.
[0157] In this embodiment, after receiving the key information of the smart key panel, the device updates the information about the smart key panel so that the number of keys about 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, and the server can update the corresponding elements in the control interface of the smart key panel according to the key information so that the number of keys configured on the control interface is consistent with the number of keys of the current smart key panel.
[0158] In one possible implementation, the control interface includes a virtual panel corresponding to the smart button panel. The number of keys corresponding to the virtual panel can be updated according to the number of keys 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.
[0159] 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. Based on the current number of buttons on the smart button panel, the setting controls of some buttons can be added or deleted.
[0160] In a 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 elements may be the key identifiers displayed in the setting control of the smart panel in the control interface, and based on the current number of keys on the smart key panel, the key identifiers of some keys may be added or deleted.
[0161] For example, Fig.17 FIG. 1 shows a schematic diagram of the structure of a smart home appliance system provided by an embodiment of the present application. Fig.17 As shown, the smart home appliance system includes: a smart key panel, a device and a server. The above-mentioned process of updating the control interface may specifically include the following steps:
[0162] ① 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.
[0163] ② 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.
[0164] ③The smart key panel sends key information to the device.
[0165] ④ 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.
[0166] ⑤ After receiving the key information, the server can update the control interface of the corresponding application based on the number of keys.
[0167] The server may 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. Fig.18 FIG. 1 is a schematic diagram showing a control interface of a smart home appliance application provided by an embodiment of the present application. Fig.18 As shown in (a) in FIG. 1 , the current number of buttons on the smart button panel is 3. After the device receives the button information, the relevant button information can be synchronized to the server of the smart home appliance application. The smart home appliance application can generate a corresponding control interface, such as Fig.18As shown in (b), the control interface displays a virtual panel 181 that is consistent with the number of buttons on the smart button panel. By clicking the buttons on the virtual panel 181, the switch state of the corresponding buttons on the smart panel can be controlled. The control interface also includes a setting control corresponding to each button in the smart button panel, such as a setting control 182 for setting the left button, a setting control 183 for setting the middle button, and a setting control 184 for setting the right button. 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 elements for updating the control interface can be the virtual panel 181 and the setting controls 182 to 184 corresponding to each button, thereby ensuring that the virtual panel on the control interface of the user is synchronized with the actual smart button panel, thereby improving the accuracy of smart button panel management.
[0168] Similarly, if the smart key panel changes from three keys to two keys, Fig.18 As shown in (c) in FIG. 1 , the smart key panel sends key information to the device. In this case, the device updates the elements in the control interface based on the key number in the key information, for example, updating the virtual panel 181 to obtain the virtual panel 185; for another example, deleting the setting control 184, and adjusting the key identifiers displayed on the setting controls 182 and 183 to obtain the setting controls 186 and 187, and generating the following: Fig.18 As shown in (d) in the figure, the number of keys is changed from 3 keys to 2 keys, maintaining the synchronization between the virtual panel and the smart key panel.
[0169] The server may also be a server of a device management application. The device management application is used to set the control events of each key on the smart key panel, such as limiting the touch mode of the key and the device associated with the key. Fig.19 FIG. 1 shows a schematic diagram of setting a control event provided by an embodiment of the present application. Fig.19 As shown in (a) in FIG. 1 , the current number of keys on the smart key panel is 2. The smart key panel can send key information to the device. The device updates the relevant elements in the control interface of the device management application based on the current number of keys in the key information, such as Fig.19 As shown in (b) in the figure. 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 is used to control the switch state of the device, and the other is used to control the color temperature of the smart light.
[0170] 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 the local user terminal, such as a mobile phone or a portable computer, and generate the corresponding control interface on the user terminal; in some implementation scenarios, the user can also open the above 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 control interface to enter the corresponding setting interface, such as Fig.19 As shown in (c) in the setting interface, the touch mode for each button can be set, 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 touch mode can also include click and long press, etc. The specific touch mode can be set according to the actual situation.
[0171] In the case where the control interface is a control interface corresponding to the device management application, the elements included in the above-mentioned update control interface may be as follows: Fig.19 The button identifiers displayed in the setting item 191, and the identifiers corresponding to the buttons in the setting interface obtained after clicking the setting item 191.
[0172] In a 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, the following will be displayed: Fig.19 As shown in (d), the user can set the device associated with each button and the corresponding function, such as 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.
[0173] 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.
[0174] 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 light 1, and then control smart light 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.
[0175] 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.
[0176] 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 detecting a button number feedback event, it will send the button information carrying the current number of buttons to the corresponding device, and the device can update the corresponding elements in the control interface according to the number of buttons of the current 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, and facilitating the setting of control events associated with each button on the smart button panel. Compared with the existing smart home appliance technology, when the number of buttons of the smart button panel needs to be adjusted, there is no need to dismantle 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 panel buttons and reduces the cost of change.
[0177] Embodiment three:
[0178] 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 two-end 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. Fig. 20 The following is a flowchart of the key management method provided by an embodiment of the present application on the smart key panel side, which is specifically described as follows:
[0179] 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.
[0180] Optionally, if a key number feedback event is detected, sending key information to the device includes:
[0181] If the key number feedback event is detected, sending a first message indicating information change to the device;
[0182] In response to a second message sent by the device for instructing to obtain information, the key information is sent to the device.
[0183] Optionally, before the step of sending key information to the device if a key number feedback event is detected, the method further includes:
[0184] Determining the current number of keys according to the number of cover plates configured on the smart key panel;
[0185] 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.
[0186] Optionally, the smart key panel includes a plurality of detection circuits;
[0187] The determining the current number of keys according to the number of cover plates configured on the smart key panel includes:
[0188] 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;
[0189] The number of the face shells is determined according to the received coupling signal.
[0190] 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 onto a panel area of the detection circuit.
[0191] Optionally, if a key number feedback event is detected, sending key information to the device includes:
[0192] Generate the key information by using a key service application;
[0193] 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.
[0194] Optionally, if a key number feedback event is detected, sending key information to the device includes:
[0195] 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.
[0196] In the embodiment of the present application, the face shell in the smart button panel is a detachable face shell. The smart button panel can determine the current number of buttons by identifying the installed face shell, and when detecting a button number feedback event, it will send the button information carrying the current number of buttons to the corresponding device. The device can update the corresponding elements in the control interface according to the number of buttons of the current 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, and facilitating the setting of control events associated with each button on the smart button panel. Compared with the 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 face shell specifications 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 change.
[0197] Embodiment 4:
[0198] 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 two-end 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. Fig.21 The following is a flowchart of a method for key management provided by an embodiment of the present application on the device side, which is specifically described as follows:
[0199] In S2101, 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 of the smart key panel;
[0200] In S2102, at least one element of the control interface corresponding to the smart button panel is updated based on the button information.
[0201] Optionally, the receiving the key information sent by the smart key panel includes:
[0202] 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.
[0203] Optionally, the receiving the key information sent by the smart key panel includes:
[0204] 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.
[0205] Optionally, after updating at least one element of the control interface of the smart button panel based on the button information, the method further includes:
[0206] 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;
[0207] 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.
[0208] Optionally, the receiving the key information sent by the smart key panel includes:
[0209] 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;
[0210] 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.
[0211] 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.
[0212] Fig. 22 This is a schematic diagram of the structure of a device provided in one embodiment of the present application. Fig. 22 As shown, the device 22 of this embodiment includes: at least one processor 220 ( Fig. 22 Only one processor is shown), a memory 221, and a program 222 stored in the memory 221 and executable on the at least one processor 220, wherein the processor 220 implements the steps in any of the above-mentioned key management method embodiments when executing the program 222.
[0213] The device 23 may be a desktop computer, a notebook, a PDA, a cloud server, etc. The device may include, but is not limited to, a processor 220 and a memory 221. Those skilled in the art will appreciate that Fig. 22 It is only an example of device 22 and does not constitute a limitation on device 22. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0214] 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, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0215] The memory 221 may be an internal storage unit of the device 22 in some embodiments, such as a hard disk or memory of the device 22. The memory 221 may also be an external storage device of the device 22 in other embodiments, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc. equipped on the device 22. Further, 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, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the program. The memory 221 may also be used to temporarily store data that has been output or is to be output.
[0216] 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.
[0217] An embodiment of the present application further provides a readable storage medium, wherein the readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0218] An embodiment of the present application provides a program product. When the program product runs on a device, the device can implement the steps in the above-mentioned method embodiments when the device executes the program product.
[0219] 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, and the program can be stored in a readable storage medium, which can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the program includes a 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, recording medium, memory, read-only memory, random access memory, electric carrier signal, telecommunication signal and software distribution medium that can carry the program code to the smart key panel / device. For example, a U disk, a mobile hard disk, a disk or an optical disk. In the above embodiments, the description of each embodiment has its own emphasis, and the part that is not described or recorded in detail in a certain embodiment can refer to the relevant description of other embodiments.
[0220] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope 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
Touch panel enabling users to perform self-defining of keys
CN105786259A
Key number configurable LoRa switch
CN110456677A
Temperature controller with data transmission function
CN115826641A
Automatic saftware input panel selection based on application program state
CN1432912A