Intelligent switch

By designing a wireless switch with a display screen, the display screen and the circuit board can move synchronously and be fixedly connected. By adopting a sealed structure and elastic support components, the problems of button confusion and unstable connection of wireless switches are solved, and the structural compactness and power consumption efficiency are improved.

CN121662630APending Publication Date: 2026-03-13WUHAN LINPTECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-23
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing wireless switches suffer from numerous buttons, leading to confusion; unstable connection between the display screen and circuit board; loose structure, making them prone to damage; and high power consumption.

Method used

Design a wireless switch with a display screen, in which the display screen and circuit board move synchronously and are fixedly connected to the press panel. It adopts a sealed structure and elastic support, is powered by a wireless communication module, and is equipped with multiple detection elements and sensing units. The limit of the press panel and the middle shell is optimized to achieve electrical isolation and sealing, thereby reducing power consumption.

Benefits of technology

It improves the connection stability and structural compactness between the display screen and the circuit board, reduces power consumption, enhances the tactile feedback of the button and the anti-accidental touch capability of the detection components, ensures display effect, and saves energy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121662630A_ABST
    Figure CN121662630A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent switch. The intelligent switch comprises a fixing assembly; the movable assembly is movably connected with the fixed assembly; wherein the movable assembly at least comprises a pressing panel, a display screen and a circuit board, and the pressing panel is used for receiving pressing force and driving the movable assembly to move towards a first direction in response to the pressing force; the display screen is electrically connected to the circuit board, and the display screen and the circuit board are directly or indirectly fixedly connected to the pressing panel, so that the display screen and the circuit board can synchronously move along with the pressing panel; the circuit board is provided with at least one detection piece facing the first direction, and when the movable assembly responds to the pressing force to move towards the first direction, the detection piece is pressed by the fixed assembly to be triggered. According to the intelligent switch provided by the invention, the function of each key can be displayed through the display screen, and the problem that a wireless switch is easy to confuse due to too many keys is solved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent filed on September 23, 2023, with application number 202311241094.7 and invention title "A Smart Switch". Technical Field

[0002] This invention relates to the field of switch technology, and more particularly to intelligent switches. Background Technology

[0003] With the development of smart homes, smart switches are playing an increasingly important role. Smart switches control electrical appliances by sending wireless or wired signals. Compared with traditional wall switches, smart switches have a wider range of applications and are therefore being used more and more. Summary of the Invention

[0004] One objective of this invention is to provide a wireless switch with a display screen that can show the function of each button, and the displayed content can be modified accordingly as the button function changes, thereby solving the problem of confusion caused by the large number of buttons in a wireless switch.

[0005] Another objective of this invention is to provide a wireless switch with a display screen, wherein the display screen and the circuit board move synchronously with the pressing panel, and the display screen and the circuit board do not move relative to each other, making the connection between the two more stable and preventing damage to the electrical connection between the display screen and the circuit board.

[0006] Another objective of this invention is to provide a wireless switch with a display screen, wherein the display screen and the circuit board are directly or indirectly fixedly connected to the pressing panel, making the structure more compact, and thus the distance between the display screen and the circuit board is closer, and the connection stability between the two is higher.

[0007] Another object of the present invention is to provide a wireless switch with a display screen, wherein the circuit board is powered by a battery and receives and / or transmits wireless signals via a wireless communication module.

[0008] Another objective of this invention is to provide a wireless switch with a display screen, wherein the display screen and the circuit board are respectively disposed on both sides of the movable component, which has the following advantages: 1. It makes the display screen closer to the pressing panel, resulting in a better display effect; 2. The movable component can provide electrical isolation, preventing static electricity on the circuit board from affecting the display screen; 3. It facilitates the placement of detection components and other electronic components on the circuit board.

[0009] Another objective of this invention is to provide a wireless switch with a display screen, wherein the press panel can not only be pressed, but also display the content of the display screen to the outside, so that the content displayed on the screen corresponds to the position of each button, and the user can intuitively obtain the function information corresponding to each button on the press panel, which brings convenience to operation.

[0010] Another objective of this invention is to provide a wireless switch with a display screen, wherein a sealing element is provided between the pressing panel and the receiving groove. The sealing element is located at the position corresponding to the ribbon cable passage and is used to seal the receiving groove to prevent dust and moisture from entering the receiving groove, which would cause the inner side of the display to become blurry and affect the display effect.

[0011] Another object of the present invention is to provide a wireless switch with a display screen, wherein the display screen and the circuit board are connected by a ribbon cable, which is beneficial to the sealing effect of the receiving groove, and the ribbon cable is flexible and not easily damaged.

[0012] Another objective of this invention is to provide a wireless switch with a display screen, wherein at least three sides of the first surface are sealed to the pressing panel by double-sided adhesive to prevent dust and moisture from entering between the display area and the pressing panel through the ribbon cable through the port, thereby avoiding dust and moisture affecting the display effect; in addition, the sealing effect achieved by double-sided adhesive makes the assembly efficiency higher.

[0013] Another objective of this invention is to provide a wireless switch with a display screen, wherein the movement of a circuit board drives the movement of a detection element, thereby triggering the detection element, so that the detection element and the display screen can share a single circuit board, making the structure more compact.

[0014] Another object of the present invention is to provide a wireless switch with a display screen, wherein the elastic support member serves to: 1. provide a reset force to facilitate the reset of the movable component; 2. provide a preload force to prevent the movable component from becoming loose; and 3. provide a support force to prevent the detection element from being falsely triggered.

[0015] Another objective of this invention is to provide a wireless switch with a display screen, wherein an elastic support is disposed between the movable part and the middle shell, thereby avoiding the generation of elastic force between the movable part and the bottom shell, thus ensuring the relative positional accuracy between the bottom shell and the movable part, and avoiding the situation where the detection element cannot be triggered due to excessively long idle stroke.

[0016] Another object of the present invention is to provide a wireless switch with a display screen, wherein the movable part is supported in a balanced manner by various elastic support members, so that the elastic force at various points of the pressing panel is more balanced, preventing the detection element from being falsely triggered, and improving the pressing feel.

[0017] Another objective of this invention is to provide a wireless switch with a display screen, wherein a limiting part is disposed between the movable part and the pressing panel, so that after the pressing panel is installed on the movable part, the limiting part is limited between the pressing panel and the movable part, thereby improving the matching accuracy between the three and accurately controlling the pressing stroke of the pressing panel to avoid false triggering or non-triggering of the detection element.

[0018] Another objective of this invention is to provide a wireless switch with a display screen, wherein the upper and lower limit positions of the pressing panel are both set on the middle shell to shorten the dimensional chain of errors, make the pressing stroke of the pressing panel more accurate, and avoid the situation where the detection element is falsely triggered or fails to trigger.

[0019] Another object of the present invention is to provide a wireless switch with a display screen, wherein four elastic support members and four detection members are arranged at circumferential intervals along the movable member. This makes the support force at corresponding positions of each detection member more consistent, improves the pressing feel of the panel, and prevents adjacent detection members from being accidentally triggered when a certain detection member is pressed.

[0020] Another objective of this invention is to provide a wireless switch with a display screen, wherein four elastic support members are respectively located at the four corners of a square pressing panel; four detection members are respectively located at the midpoints of the four sides of the pressing panel, so that the support force of each detection member at the corresponding position is more consistent and the detection members have stronger anti-accidental touch capability; moreover, setting the elastic support members at the four corners of the movable member can save the internal space of the movable member and make the structure more compact.

[0021] Another objective of this invention is to provide a wireless switch with a display screen, wherein the detection element is located at the midpoint of each side of the polygonal pressing panel. When the corner of the pressing panel receives a pressing force, according to the lever principle, the downward stroke of the corner of the pressing panel is greater than the movement stroke of the detection element. Since the gap between the pressing panel and the middle shell determines the pressing stroke, the corner of the pressing panel abuts against the middle shell, and the pressing stroke is insufficient to trigger the detection switch. The advantage of this design is that when the pressing position is slightly deviated from a certain detection element, the detection element adjacent to that detection element will not be accidentally triggered, thus achieving the effect of preventing accidental touch of the detection element.

[0022] Another object of the present invention is to provide a wireless switch with a display screen, wherein the pressing panel is square in shape, and when the corner of the pressing panel receives pressing force, the corner of the pressing panel abuts against the middle shell, and the pressing stroke is insufficient to trigger the detection switch, so that when the pressing position is slightly deviated from a certain detection element, the detection element adjacent to that detection element will not be falsely triggered.

[0023] Another objective of this invention is to provide a wireless switch with a display screen, wherein four detection elements are respectively located at the midpoints of the four sides of a square pressing panel, and the display screen is located at the center of the pressing panel, so that the content displayed on the display screen corresponds to the position of each detection element, and the display screen can more intuitively indicate the function corresponding to the four detection elements.

[0024] Another object of the present invention is to provide a wireless switch with a display screen, wherein external air can enter the airflow cavity through a vent or a first opening, and the movement of the movable component can accelerate the airflow, making the detection results of the first sensor more accurate.

[0025] Another objective of this invention is to provide a wireless switch with a display screen, wherein the elastic part can provide elastic support to the battery, so that the battery can be supported as it moves up and down with the circuit board, preventing the battery from losing electrical connection with the circuit board during movement.

[0026] Another objective of this invention is to provide a wireless switch with a display screen, wherein the second sensing unit can sense the approach of a human hand, so that after the panel is not operated for a certain period of time, the display screen turns off, and when the user's hand approaches the wireless switch, the display screen lights up, thereby reducing power consumption and saving energy.

[0027] Another objective of this invention is to provide a wireless switch with a display screen, wherein the conductive wire, threaded connector, and mounting hole together form the detection electrode of the second sensing unit, which improves the sensing sensitivity and allows the second sensing unit to reduce power consumption and increase battery life while meeting sensitivity requirements.

[0028] Another object of the present invention is to provide a wireless switch with a display screen, wherein multiple mounting holes are distributed along the edge of a circuit board, and conductive lines connect each mounting hole in pairs, so that the sensing area surrounded by the conductive lines is wider and the sensing sensitivity is higher.

[0029] Another objective of this invention is to provide a wireless switch with a display screen, wherein elastic support is provided by an elastic part, which greatly simplifies the structure and improves the efficiency of processing and assembly.

[0030] One objective of this invention is to provide a wireless battery switch, wherein the wireless battery switch has a display function and the displayed text can be customized.

[0031] Another objective of this invention is to provide a wireless battery switch, wherein a technical solution using multiple sensing units achieves the goal of prompting the user through a display unit while keeping power consumption within an acceptable range.

[0032] Another objective of this invention is to provide a wireless battery switch, wherein a first text message is displayed by a display unit to prompt the user, and multiple sensing units are used to configure the first text message and sense changes in the environmental state, thereby generating a second signal to trigger the control unit to display the first text message by the display unit. That is, the first text message is not displayed before being triggered, so as to reduce power consumption.

[0033] Another objective of this invention is to provide a wireless battery switch, wherein the control unit has a first power consumption mode with low power consumption and a second power consumption mode with higher power consumption than the first power consumption mode; wherein in the first power consumption mode, the control unit waits to be triggered, and in the second power consumption mode, the control unit enters a normal display state. The wireless battery switch will be in the first power consumption mode, which does not display first text information, for most of the time, while the second power consumption mode, which displays first text information, only occupies a small portion of the entire usage cycle, thereby achieving the goal of reducing power consumption while prompting the user with first text information.

[0034] Another objective of this invention is to provide a wireless battery switch in which the control unit is in a sleep state most of the time, without having to light up the display unit in real time to display information. The display unit is only triggered to light up when necessary, thereby greatly reducing power consumption.

[0035] Another objective of this invention is to provide a wireless battery switch, wherein when the control unit is in a first power consumption mode waiting to be triggered, the display unit will be completely powered off to significantly reduce the power consumption of the display unit during daily use. After the control unit is triggered, within a first preset time, the control unit enters a sleep mode but maintains the display state of the display unit so that the user can view the data while partially reducing the power consumption within the first preset time.

[0036] Another object of the present invention is to provide a battery wireless switch, wherein the voltage regulator unit has the dual beneficial effects of stabilizing the power supply voltage of the display unit to improve the stability of the display state of the display unit and controlling the power supply of the display unit.

[0037] Another objective of this invention is to provide a wireless battery switch, wherein in a first power consumption mode of the control unit, the second sensing unit alternately enters a working state and a resting state; in the working state, it senses changes in the medium of a designated space.

[0038] Another object of the present invention is to provide a battery wireless switch in which screws for fixing the circuit board are electrically connected to the wires to jointly form the detection electrode of the second sensing unit, thereby increasing the sensing range.

[0039] Another objective of this invention is to provide a wireless battery switch, wherein in a first mode, the control unit is only used to transmit wireless signals and does not need to receive external signals, i.e., it does not need to process external signals, thereby reducing power consumption in the first mode. Only in the second mode is it necessary to receive external signals through the first sensing unit to configure the first text information. However, since the wireless battery switch spends most of its lifespan in the first mode, briefly entering the second mode for configuration will not have a significant impact on overall power consumption.

[0040] One objective of this invention is to provide a wireless battery switch, wherein in response to a first trigger command, the switch transitions from a first mode to a second mode, establishes a communication connection with a terminal device, and receives first index information sent by the terminal device. The power consumption of the wireless battery switch in the first mode is less than that in the second mode, so that the wireless battery switch can be configured by the terminal while saving power when configuration is not required, thereby increasing battery life.

[0041] Another objective of this invention is to provide a battery wireless switch, wherein the battery wireless switch is provided with a memory for storing at least two text messages arranged in a predetermined order, so that less configuration information needs to be sent, only index information needs to be sent, thereby saving transmission time, reducing the power consumption of the battery wireless switch, and increasing battery life.

[0042] One objective of this invention is to provide an intelligent switch, in which the terminal device includes information representing the specific location of the button and text information displayed by the intelligent switch. The information representing the specific location of the button remains unchanged, and when configuring an automated process, the information representing the specific location of the button is used for configuration, ensuring that the button is easier to distinguish.

[0043] To achieve at least one of the above objectives, the present invention provides a wireless switch with a display screen, comprising a fixed component and a movable component, the movable component being movably connected to the fixed component; wherein, the movable component includes at least a pressing panel, a display screen, and a circuit board, the pressing panel being used to receive pressing force and, in response to the pressing force, to drive the movable component to move in a first direction; the display screen being electrically connected to the circuit board, the display screen and the circuit board being directly or indirectly fixedly connected to the pressing panel, such that the display screen and the circuit board can move synchronously with the pressing panel.

[0044] According to an embodiment of the present invention, the movable component further includes a movable member movably connected to the fixed component; the pressing panel and the circuit board are respectively disposed on both sides of the movable member, and the display screen is limited between the pressing panel and the movable member, so that the display screen displays information to the outside through the pressing panel.

[0045] According to an embodiment of the present invention, the display screen is electrically connected to the circuit board via a ribbon cable, and the movable component has a ribbon cable passage opening through which the ribbon cable passes.

[0046] According to an embodiment of the present invention, the movable component has a receiving groove facing the display screen, the display screen is placed in the receiving groove, the pressing panel is covered by the receiving groove, and the pressing panel is sealed to the movable component; a sealing element is provided between the pressing panel and the receiving groove, and the sealing element is provided at the position corresponding to the cable passage, for sealing the receiving groove.

[0047] According to an embodiment of the present invention, the movable component has a receiving groove facing the display screen, the display screen is placed in the receiving groove, the pressing panel is covered by the receiving groove, and the pressing panel is bonded to the movable component by double-sided adhesive; the display screen includes a first surface facing the pressing panel, the first surface has a display area, the display area characterizing the area where the display screen displays content; the double-sided adhesive has a display through hole at a position corresponding to the display area, and at least three sides of the display through hole are attached to the first surface, such that at least three sides of the first surface are sealed to the pressing panel by the double-sided adhesive.

[0048] According to an embodiment of the present invention, the circuit board is provided with at least one detection element facing the first direction, and when the movable component moves toward the first direction in response to the pressing pressure, the detection element is triggered by being pressed by the fixed component.

[0049] According to an embodiment of the present invention, the movable component further includes a movable member, which is movably connected to the fixed component. The pressing panel and the circuit board are disposed on the movable member. The fixed component is provided with an elastic support member, which is directly or indirectly connected to the movable member and is used to provide elastic support to the movable member in the opposite direction to the first direction. When the pressing force is removed, the movable member returns to its original position under the action of the elastic support.

[0050] According to an embodiment of the present invention, the fixing component includes a middle shell and a bottom shell, the movable member is movably connected to the middle shell, and the elastic support member is disposed between the middle shell and the movable member. There are multiple elastic support members, and each elastic support member supports the movable member in a balanced manner. The bottom shell is disposed on the side of the middle shell away from the pressing panel. When the movable member drives the detection member to move in the first direction, the detection member abuts against the bottom shell and is triggered by the bottom shell.

[0051] According to an embodiment of the present invention, the middle shell is provided with a limiting portion between the movable member and the pressing panel, the limiting portion being used to limit the extreme position of the movable member moving in a second direction, the second direction being opposite to the first direction.

[0052] According to an embodiment of the present invention, the middle shell restricts the extreme position of the pressing panel moving toward the first direction.

[0053] According to an embodiment of the present invention, there are four elastic support members and four detection members, and the four elastic support members and the four detection members are arranged at circumferential intervals along the movable member.

[0054] According to an embodiment of the present invention, the pressing panel is square in shape, and the four elastic support members are respectively located at the four corners of the square; the four detection members are respectively located at the midpoints of the four sides of the square.

[0055] According to an embodiment of the present invention, the middle shell is provided with a plurality of limiting portions between the movable member and the pressing panel, and each limiting portion is provided with a connecting post facing the first direction. The movable member is provided with a connecting hole at a corresponding position of the connecting post. The connecting hole is sleeved on the connecting post and can slide along the connecting post to realize the movable connection between the movable member and the middle shell. A limiting screw is installed at the end of the connecting post. The elastic support member is constructed as a spring, and the spring is sleeved on the connecting post. One end of the spring abuts against the movable member, and the other end abuts against the nut of the limiting screw. The limiting screw compresses the spring so that the spring provides elastic support to the movable member.

[0056] According to an embodiment of the present invention, the fixing component includes a middle shell and a bottom shell, the movable member is movably connected to the middle shell, and the bottom shell is disposed on the side of the middle shell away from the pressing panel. When the movable member drives the detection member to move in the first direction, the detection member abuts against the bottom shell and is triggered by the bottom shell. The bottom shell is provided with the elastic support member, which is indirectly connected to the movable member and is used to provide elastic support to the movable member.

[0057] According to an embodiment of the present invention, a first sensor is provided on the side of the circuit board facing the pressing panel, the first sensor being used to detect temperature and / or humidity; the fixing component includes a middle shell, the movable member is movably connected to the middle shell, the side wall of the middle shell is provided with at least one vent hole at the position corresponding to the first sensor, and the movable member is provided with a first opening at the position corresponding to the first sensor.

[0058] According to an embodiment of the present invention, the pressing panel is square in shape, and there are four detection elements, which are respectively located at the midpoints of the four sides of the square; the display screen is located at the center of the pressing panel.

[0059] According to an embodiment of the present invention, the circuit board is provided with a battery and a wireless communication module. The circuit board is powered by the battery and receives and / or transmits wireless signals through the wireless communication module.

[0060] According to an embodiment of the present invention, the fixing component includes a middle shell and a bottom shell, and the movable component is movably connected to the middle shell; the bottom shell covers the side of the middle shell away from the pressing panel and is detachably connected to the middle shell; the bottom shell is provided with an elastic part at the position corresponding to the battery, and the elastic part is compressed by the battery and the bottom shell to provide elastic support for the battery.

[0061] According to an embodiment of the present invention, a second sensing unit is provided on the circuit board, which can emit a second signal in response to the proximity of a human hand. The second sensing unit is electrically connected to the display screen, and the display screen can light up in response to the second signal.

[0062] According to an embodiment of the present invention, the circuit board has at least one mounting hole, which is fixedly connected to the movable part by a threaded connector; the mounting hole is provided with a conductive part, which is connected to the threaded connector; the circuit board is provided with a second sensing unit for sensing the approach of a human hand, the second sensing unit is electrically connected to a conductive wire, which is connected to the mounting hole, so that the second sensing unit is electrically connected to the mounting hole and the threaded connector.

[0063] According to an embodiment of the present invention, a metal edging is provided on the inner side of the mounting hole, and the metal edging forms the conductive portion.

[0064] According to an embodiment of the present invention, there are multiple mounting holes distributed along the edge of the circuit board, and the conductive lines connect each mounting hole in pairs.

[0065] According to an embodiment of the present invention, the pressing panel is constructed as a polygon, the polygon including multiple sides and multiple corners, and the circuit board is provided with multiple detection elements facing the first direction, each detection element being located at a position corresponding to the midpoint of each side of the polygon, such that: when the pressing panel receives a pressing force at the position corresponding to the detection element, the detection element moves towards the first direction to be triggered; when the corner of the pressing panel receives a pressing force, the pressing panel abuts against the fixing component, and the pressing stroke is insufficient to trigger the detection element.

[0066] According to an embodiment of the present invention, the pressing panel is square in shape, including four sides and four corners; there are four detection elements, each of which is located at the midpoint of each side of the square. When the corner of the pressing panel receives the pressing force, the corner of the pressing panel abuts against the fixing component, and the pressing stroke is insufficient to trigger the detection switch.

[0067] To achieve at least one of the above objectives, a wireless battery switch is provided, comprising:

[0068] A first sensing unit is used to acquire a configuration signal; the configuration signal is used to determine first text information; a second sensing unit is used to generate a second signal based on changes in the medium of a specified space; a control unit is electrically connected to the first sensing unit and the second sensing unit to acquire the configuration signal and the second signal; and can be triggered by the second signal, and after being triggered, displays the first text information through a display unit; a battery power supply unit is used to power the control unit, the first sensing unit, the second sensing unit and the display unit.

[0069] According to an embodiment of the present invention, the control unit is capable of switching from a first power consumption mode to a second power consumption mode in response to the second signal; wherein the first text information is displayed through the display unit in the second power consumption mode; the power consumption of the control unit in the first power consumption mode is within 1 / n of the power consumption in the second power consumption mode; wherein n takes the value [1000, 6000].

[0070] According to an embodiment of the present invention, the control unit is further configured to enter the first power consumption mode if the second signal is acquired after a first preset time following the entry into the second power consumption mode.

[0071] According to an embodiment of the present invention, the control unit has a sleep state during both the first power consumption mode and the first preset time period.

[0072] According to an embodiment of the present invention, the control unit is further configured to cut off the power supply to the display unit in a sleep state of a first power consumption mode, so that the current is less than 5uA in the first power consumption mode; and to maintain the power supply to the display unit in a sleep state for a first preset time, so that the display unit continuously displays the first text information during the first preset time.

[0073] According to an embodiment of the present invention, a voltage regulator unit is further provided, electrically connected between the battery power supply unit and the display unit, to boost the supply voltage of the battery power supply unit to a specified range and then supply power to the display unit; the voltage regulator unit is controlled by the control unit so that the control unit enables the control unit to supply power to the display unit in a second power consumption mode, and disables the voltage regulator unit in a first power consumption mode to cut off the power supply to the display unit.

[0074] According to an embodiment of the present invention, in the first power consumption mode of the control unit, the second sensing unit alternately enters a working state and a resting state; in the working state, it senses changes in the medium of a specified space.

[0075] According to an embodiment of the present invention, the second sensing unit includes at least one sensing controller, at least one detection electrode, and at least one reference ground plane; the detection electrode can be energized to form a parasitic capacitance with the reference ground plane; the designated space includes an area close to the battery wireless switch, and the capacitance value of the parasitic capacitance varies according to the dielectric change within the area close to the battery wireless switch; in the operating state, the sensing controller energizes the detection electrode and generates the second signal after the change in the parasitic capacitance exceeds a designated threshold; in the resting state, the sensing controller stops energizing the detection electrode.

[0076] According to an embodiment of the present invention, the second sensing unit is disposed on a circuit board, the circuit board being externally connected via at least one threaded connector, wherein the threaded connector is conductive and is further configured to at least partially comprise the detection electrode, such that a designated area can cover an area more than 1 cm away from the battery wireless switch.

[0077] According to an embodiment of the present invention, in a first mode, the first sensing unit is configured to transmit wireless signals, and in a second mode, the first sensing unit is configured to transmit and receive signals.

[0078] According to an embodiment of the present invention, the configuration signal originates from a terminal device; when the control unit detects a first trigger command, it switches from a first mode to a second mode; in the first mode, it switches between a first power consumption mode and a second power consumption mode according to the second signal; in the second mode, it achieves a wireless connection with the terminal device through a direct connection, and configures the first text information through the terminal device; wherein the power consumption of the control unit in the second mode is greater than the power consumption in the first mode.

[0079] According to an embodiment of the present invention, the battery wireless switch further includes an operation unit for operating the control unit; the first sensing unit includes a radio frequency antenna; the control unit is further configured to operate via the operation unit in a first mode to broadcast a wireless signal encoded based on a wireless communication protocol through the radio frequency antenna.

[0080] According to an embodiment of the present invention, the first text information includes at least two different sets of information, which are used to respectively indicate the operation information of the operation unit.

[0081] According to an embodiment of the present invention, at least two different sets of information of the display unit correspond to different operation actions in the same operation area, and / or correspond to the same or different operation actions in different operation areas.

[0082] According to an embodiment of the present invention, the operation unit includes four operation areas, and the display unit is located in the middle area enclosed by the four operation areas, so as to display the four operation areas through four different sets of information.

[0083] To achieve at least one of the above objectives, a wireless battery switch control method is provided, the method comprising:

[0084] Detect the first trigger command;

[0085] In response to the first trigger command, the device switches from the first mode to the second mode, establishes a communication connection with the terminal device, and receives the first index information sent by the terminal device, wherein the power consumption of the battery wireless switch in the first mode is less than the power consumption in the second mode.

[0086] The first text information is determined according to the first index information, and the first text information is displayed on the display section of the battery wireless switch to indicate the operation information of the operation section of the battery wireless switch. When a first trigger event is detected, the communication connection with the terminal device is disconnected, and the system switches from the second mode to the first mode.

[0087] According to an embodiment of the present invention, after determining the corresponding first text information based on the first index information, the first index information is stored; after establishing a communication connection with the terminal device and before receiving the first index information sent by the terminal device, the method further includes:

[0088] The terminal device sends second index information stored in the battery wireless switch. The second index information is used to determine corresponding second text information in the battery wireless switch. The second text information is used to display on the display unit and indicate the operation information of the operation unit, so that the terminal device receives the second index information and displays the text content represented by the second text information. The second index information is stored at a second storage time, the first index information is stored at a first storage time, the second storage time is before the first storage time, and the battery wireless switch does not store other index information between the second storage time and the first storage time.

[0089] According to an embodiment of the present invention, the battery wireless switch is further provided with a memory for storing at least two text messages arranged in a predetermined order.

[0090] According to an embodiment of the present invention, receiving the first index information sent by the terminal device specifically includes: receiving a first configuration message sent by the terminal device, wherein the first configuration message includes first index information of the text to be configured; determining the corresponding first text information according to the first index information and displaying the first text information on the display unit of the battery wireless switch specifically includes:

[0091] The first index information is processed to read the first text information corresponding to the first index information from the memory, wherein the text content represented by the first text information is consistent with the text to be configured;

[0092] The first text information is displayed on the display unit so that the displayed content on the display unit is consistent with the text to be configured, wherein the text to be configured is set by the terminal device, thereby enabling the displayed content on the display unit to be set by the terminal device.

[0093] According to an embodiment of the present invention, the first index information is the first encoding information of the text to be configured, and the first encoding information is obtained by the terminal device based on the text to be configured.

[0094] According to an embodiment of the present invention, the first index information is the second encoding information of the text to be configured, the second encoding information is determined based on the first encoding information of the text to be configured, and the first encoding information is obtained by the terminal device based on the text to be configured.

[0095] According to an embodiment of the present invention, when the text to be configured is a number or a letter, the second encoding information G = G1 + (U - U1), where G1 is the starting encoding of the number or letter in the encoding table corresponding to the second encoding information, U is the first encoding information of the text to be configured, and U1 is the starting encoding of the number or letter in the encoding table corresponding to the first encoding information.

[0096] According to an embodiment of the present invention, when the text to be configured is Chinese characters, the second encoding information is obtained by extracting a specified number of characters after the specified character from a preset string. The preset string is composed of at least two second encoding information arranged in a specified order, such that the arrangement order of the Chinese characters represented by each second encoding information in the preset string is the same as the arrangement order of the Chinese characters represented by each first encoding information arranged in ascending order of encoding. The specified character is the i-th character in the preset string, i = (U-U2)×a, U is the first encoding information of the text to be configured, U2 is the starting encoding of the Chinese character in the encoding table corresponding to the first encoding information, and a is the number of characters in one second encoding information in the preset string. The specified number is the same as a.

[0097] According to an embodiment of the present invention, the processing of the first index information to read the first text information corresponding to the first index information from the memory specifically includes:

[0098] A storage address is calculated based on the second encoding information, wherein the storage address is the starting address at which the first text information is stored in the memory;

[0099] The first text information is obtained by reading data of a specified byte length from the memory starting from the storage address, wherein the specified byte length is the byte length occupied by the first text information.

[0100] According to an embodiment of the present invention, the calculation of a storage address based on the second encoded information specifically satisfies the following formula:

[0101] S=S1+[G-G2-(H1-H2)×160]×b;

[0102] Wherein, S is the calculated storage address, S1 is the starting address of all text information stored in the memory, G is the second encoding information, G2 is the starting encoding related to Chinese characters in the encoding table corresponding to the second encoding information, H1 is the high-order byte of the second encoding information, H2 is the high-order byte of the starting encoding, and b is the byte length occupied by the text information of a Chinese character stored in the memory.

[0103] According to an embodiment of the present invention, the text information stored in the memory is dot matrix data, and the pixels of the dot matrix data are a×b, where a∈[12, 16], b∈[12, 16], a=b, a represents the pixels of the dot matrix data in the horizontal direction, and b represents the pixels of the dot matrix data in the vertical direction.

[0104] According to an embodiment of the present invention, a first configuration message can transmit the dot matrix data of up to one Chinese character, and a first configuration message can transmit the first index information of up to 7, 10, or 15 Chinese characters, thereby enabling a first configuration message to configure multiple Chinese characters.

[0105] According to an embodiment of the present invention, before detecting the first trigger command, the method further includes:

[0106] In response to a second trigger command, a first message is broadcast to enable a terminal device to scan the first message and display the battery wireless switch, wherein the first message includes the identification information of the battery wireless switch;

[0107] The terminal device receives a first connection request message, which is generated and sent by the terminal device after the battery wireless switch is selected.

[0108] In response to the operation unit being subjected to a specified operation, a first confirmation connection message is sent to establish a correspondence with the terminal device and enter the first mode.

[0109] According to an embodiment of the present invention, establishing a communication connection with the terminal device specifically includes:

[0110] In response to the first trigger command, a second message is broadcast to enable a terminal device that has established a correspondence with the battery wireless switch to scan the second message and establish a communication connection with the battery wireless switch, wherein the second message is used to indicate that the battery wireless switch can be connected.

[0111] According to an embodiment of the present invention, after establishing the correspondence with the terminal device, the method further includes:

[0112] The corresponding third text information is determined based on the third index information stored in the battery wireless switch, and the third text information is displayed on the display unit. The third index information is the preset index information of the battery wireless switch, and the third index information is stored at a third storage time. The battery wireless switch has not stored any other index information before the third storage time.

[0113] According to an embodiment of the present invention, the first triggering event includes:

[0114] The terminal device receives a disconnection message, wherein the disconnection message is generated and sent by the terminal device after exiting the first configuration interface, and the first configuration interface is used to configure the display content on the display unit of the battery wireless switch.

[0115] According to an embodiment of the present invention, the first triggering event includes:

[0116] The battery wireless switch was not operated for a first specified time T1, where T1 ∈ [8s, 15s].

[0117] According to an embodiment of the present invention, in the first mode, the battery wireless switch establishes a correspondence with a terminal device; in the second mode, the battery wireless switch establishes a correspondence with a terminal device and establishes a communication connection with the terminal device.

[0118] According to an embodiment of the present invention, in the first mode, the method further includes:

[0119] Detection of a control command;

[0120] The control command is reported so that the target operation corresponding to the control command is executed;

[0121] The operation unit includes at least one button, the display unit displays a first button name for each button, and the second configuration interface of the terminal device displays a second button name for each button. The second configuration interface is used to configure a mapping relationship between at least one control command associated with the button and at least one target operation, so that when the control command is detected, the corresponding target operation is triggered to be executed. The first button name is configured by the terminal device, and the first button name can be configured to be different from the second button name.

[0122] According to an embodiment of the present invention, the reporting of the control command so that the target operation corresponding to the control command is executed specifically includes:

[0123] The control command is sent to a gateway device connected to the wireless battery switch, so that the gateway device receives the control command, determines the first target operation corresponding to the control command according to the stored first mapping rule, and controls the first target operation to be executed by the first target device. The first mapping rule includes a mapping relationship between at least one control command and at least one target operation. The first target operation is one or more executable operations of the first target device, and the first target device is one or more controlled devices connected to the gateway device.

[0124] According to an embodiment of the present invention, the reporting of the control command so that the target operation corresponding to the control command is executed specifically includes:

[0125] The control command is sent to the cloud server by the gateway device connected to the battery wireless switch, so that the cloud server receives the control command, determines the second target operation corresponding to the control command according to the stored second mapping rule, and controls the second target operation to be executed by the second target device. The second mapping rule includes a mapping relationship between at least one control command and at least one target operation. The second target operation is one or more executable operations of the second target device. The second target device is one or more controlled devices that can interact directly or indirectly with the cloud server.

[0126] According to an embodiment of the present invention, the operation unit includes at least two operation areas, and the display unit includes at least two display areas. The at least two display areas are used to display at least two different sets of text information to correspond to the at least two operation areas, so that the at least two operation areas can be distinguished.

[0127] According to an embodiment of the present invention, the first triggering instruction is generated based on a first specified external action applied to any of the operation areas.

[0128] According to an embodiment of the present invention, the operation area is further configured as a button, and the first specified external action may be a pressing action applied to any of the buttons for a second specified time T2, wherein T2 > ta, ta ∈ [3s, 10s].

[0129] According to an embodiment of the present invention, the operation unit further includes at least four operation areas, and the display unit is located in the middle of the at least four operation areas, so that the display unit can intuitively correspond to the at least four operation areas.

[0130] According to an embodiment of the present invention, at least two different sets of text information displayed by the display unit correspond to different operation actions in the same operation area, or correspond to the same or different operation actions in different operation areas.

[0131] According to an embodiment of the present invention, the method further includes:

[0132] When a second trigger event is detected, the operation mode of the battery wireless switch is switched. The operation modes of the battery wireless switch include a first operation mode and a second operation mode. In the first operation mode, the battery wireless switch only reports one press action applied to the operation unit to the gateway device. In the second operation mode, the battery wireless switch can report one press action applied to the operation unit, at least two press actions, and / or a press action lasting for a third specified time T3 to the gateway device, where T3∈[tb, tc], tb∈[0.5s, 1s], and tc≤ta.

[0133] According to an embodiment of the present invention, the second triggering event includes:

[0134] The terminal device receives a switching message, which is generated and sent out by the terminal device after the displayed operating mode is switched.

[0135] According to an embodiment of the present invention, the second triggering event includes:

[0136] Apply a second specified external action to the operating unit.

[0137] According to an embodiment of the present invention, the method further includes:

[0138] In the first operation mode, when a down press action is detected on any of the buttons, the down press action on the button is reported to the gateway device.

[0139] When the duration of the pressing action reaches the second specified time T2, a communication connection is established with the terminal device.

[0140] According to an embodiment of the present invention, the method further includes:

[0141] In response to the second signal, the battery wireless switch exits the first power consumption mode and enters the second power consumption mode so that the display unit can display text information, wherein the power consumption of the battery wireless switch in the first power consumption mode is less than the power consumption in the second power consumption mode.

[0142] After a first preset time interval between entering the second power consumption mode, in response to a first signal, the battery wireless switch enters the first power consumption mode, wherein the first signal is one of two levels, and the second signal is the other of the two levels that is different from the first signal, and the two levels include a low level and a high level.

[0143] According to an embodiment of the present invention, the method further includes:

[0144] After the second signal is maintained for a second preset time, the second signal is controlled to switch to the first signal. In response to the first signal, the battery wireless switch enters the first power consumption mode.

[0145] According to an embodiment of the present invention, the first preset time is carried in a second configuration message sent by the terminal device, wherein the second configuration message is generated and sent out by the terminal device after the displayed time is selected, and the first preset time is set to 3s to 30s.

[0146] According to an embodiment of the present invention, the battery wireless switch is further provided with a temperature and humidity sensor, and the method further includes:

[0147] After the battery wireless switch enters the second power consumption mode, it controls the temperature and / or humidity sensor to obtain the temperature and / or humidity values ​​of the environment where the battery wireless switch is located, and displays the temperature and / or humidity values ​​on the display unit.

[0148] According to an embodiment of the present invention, a smart switch control method is provided. The terminal device includes information representing the specific location of the button and text information displayed by the smart switch. The information representing the specific location of the button remains unchanged, and when configuring the automation process, the information representing the specific location of the button is used for configuration, ensuring that the button is easier to distinguish.

[0149] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. The foregoing inventive concepts can be combined in any way, and these and other objectives of the invention will be fully realized through the following detailed description and accompanying drawings. Attached Figure Description

[0150] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0151] Figure 1 This is a schematic diagram of the overall structure of the first embodiment of the present invention;

[0152] Figure 2 This is an exploded view of the first embodiment of the present invention;

[0153] Figure 3 This is a partially exploded view of the structure of the first embodiment of the present invention;

[0154] Figure 4 This is a partially exploded view of the structure of the first embodiment of the present invention;

[0155] Figure 5 This is a partially exploded view of the structure of the first embodiment of the present invention;

[0156] Figure 6 This is a top view of the first embodiment of the present invention;

[0157] Figure 7 yes Figure 6 Exploded section view at point AA;

[0158] Figure 8 yes Figure 6 Sectional view at point AA;

[0159] Figure 9 yes Figure 6 Sectional view at point BB;

[0160] Figure 10 yes Figure 9 Enlarged view of section C in the image;

[0161] Figure 11 This is a partially exploded view of the structure of the first embodiment of the present invention;

[0162] Figure 12 This is a schematic diagram illustrating the fit between the bottom shell and other structures in the first embodiment of the present invention;

[0163] Figure 13 This is a schematic diagram of the circuit board and moving parts according to the first embodiment of the present invention;

[0164] Figure 14 This is a schematic diagram of the circuit board structure according to the first embodiment of the present invention;

[0165] Figure 15 This is an assembly diagram of the movable component, the middle shell, and the elastic support component according to the first embodiment of the present invention;

[0166] Figure 16 This is a bottom view of the first embodiment of the present invention with the middle shell and bottom shell hidden;

[0167] Figure 17 This is an exploded cross-sectional view of the second embodiment of the present invention;

[0168] Figure 18 This is a schematic diagram of the overall structure of the third embodiment of the present invention;

[0169] Figure 19 This is a schematic diagram showing the positional relationship between the double-sided adhesive and the display screen according to the fourth embodiment of the present invention;

[0170] Figure 20 This is a schematic diagram showing the positional relationship between the double-sided adhesive and the display screen according to the fifth embodiment of the present invention.

[0171] Figure 21 This is a schematic circuit block diagram of a wireless battery switch according to one embodiment of the present invention;

[0172] Figure 22 This is a schematic diagram of a circuit block diagram of a battery wireless switch after incorporating an electronic switch in one embodiment of the present invention;

[0173] Figure 23 This is a schematic diagram of a circuit block diagram of a battery wireless switch after introducing a voltage regulator unit in one embodiment of the present invention;

[0174] Figure 24 This is a schematic diagram of a circuit block diagram of a battery wireless switch after the operation unit is introduced in one embodiment of the present invention;

[0175] Figure 25 This is a schematic diagram of a circuit block diagram of a battery wireless switch after introducing a first sensor in one embodiment of the present invention;

[0176] Figure 26 This is a schematic diagram of a specific implementation circuit of a wireless battery switch according to one embodiment of the present invention.

[0177] Figure 27 This is a schematic diagram of a control system in one embodiment of the present invention. Figure 1 ;

[0178] Figure 28 This is a schematic diagram of a control system in one embodiment of the present invention. Figure 2 ;

[0179] Figure 29 This is a schematic diagram of a control system in one embodiment of the present invention. Figure 3 ;

[0180] Figure 30 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 1 ;

[0181] Figure 31 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 2 ;

[0182] Figure 32a This is a schematic diagram of the structure of a wireless battery switch in one embodiment of the present invention. Figure 1 ;

[0183] Figure 32b This is a schematic diagram of the structure of a wireless battery switch in one embodiment of the present invention. Figure 2 ;

[0184] Figure 33 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 3 ;

[0185] Figure 34 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 4 ;

[0186] Figure 35a This is a schematic diagram of the display content on the display unit after the battery wireless switch is configured with the network, according to one embodiment of the present invention. Figure 1 ;

[0187] Figure 35b This is a schematic diagram of the display content on the display unit after the battery wireless switch is configured with the network, according to one embodiment of the present invention. Figure 2 ;

[0188] Figure 36 This is a schematic diagram of the first configuration interface of a terminal device in one embodiment of the present invention. Figure 1 ;

[0189] Figure 37 This is a schematic diagram of the first configuration interface of a terminal device in one embodiment of the present invention. Figure 2 ;

[0190] Figure 38a This is a schematic diagram of the display content on the display unit after the battery wireless switch is configured in one embodiment of the present invention. Figure 1 ;

[0191] Figure 38b This is a schematic diagram of the display content on the display unit after the battery wireless switch is configured in one embodiment of the present invention. Figure 2 ;

[0192] Figure 39 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 5 ;

[0193] Figure 40 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 6 ;

[0194] Figure 41 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 7 ;

[0195] Figure 42 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 8 ;

[0196] Figure 43 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 9 ;

[0197] Figure 44 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 10 ;

[0198] Figure 45This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 10 one;

[0199] Figure 46 This is a flowchart illustrating the control method in one embodiment of the present invention. Figure 10 two;

[0200] Figure 47a This is a schematic diagram of the interface for displaying the wireless battery switch on a terminal device in one embodiment of the present invention. Figure 1 ;

[0201] Figure 47b This is a schematic diagram of the interface for displaying the wireless battery switch on a terminal device in one embodiment of the present invention. Figure 2 ;

[0202] Figure 48 This is a schematic diagram of the first configuration interface of a terminal device in one embodiment of the present invention. Figure 3 .

[0203] Figure label:

[0204] 100. Wireless switch with display screen; 21. Circuit board; 213. Second sensing unit; 21321. Threaded connector; 21322. Conductive wire; 221. Display screen; 2211. Display area; 2212. First surface; 222. Adhesive piece; 231. Battery; 232. Positive electrode spring; 233. Negative electrode spring; 241. Press panel; 2411. Display unit; 2412. Press mark; 2413. Black area; 25. First sensor; 26. Ribbon cable; 27. Ribbon cable connection terminal; 28. Detection element; 29. ​​Mounting hole; 292. Conductive part;

[0205] 6. Fixing component; 61. Elastic support component; 611. Spring; 62. Middle shell; 621. Limiting part; 622. Connecting column; 623. Limiting screw; 624. Vent hole; 625. Snap-fit ​​part; 626. Pry opening; 627. Second positioning rib; 63. Bottom shell; 631. Trigger platform; 632. Elastic part; 633. Bottom shell buckle; 634. Pry tongue; 635. Anti-slip strip; 64. Insulating sheet;

[0206] 7. Movable component; 71. Movable part; 711. Receiving groove; 7111. First positioning rib; 712. Cable routing port; 713. Connecting hole; 714. First opening; 715. Airflow cavity; 72. Double-sided adhesive; 721. Display through hole; 73. Sealing element;

[0207] 1. Terminal device; 2. Battery wireless switch; 211. Control unit; 212. First sensing unit; 213. Second sensing unit; 2131. Sensing controller; 2132. Detection electrode; 21321. Threaded connector; 21322. Conductive wire; 215. Voltage regulator unit; 216. Electronic switch; 22. Display unit; 23. Battery power supply unit; 24. Operation unit; 25. First sensor;

[0208] 3. Controlled devices; 4. Gateway devices; 5. Cloud servers. Detailed Implementation

[0209] In the description of this invention, the terms "inner", "outer", "horizontal", "vertical", "upper", "lower", "left", "right", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and do not require that this invention must be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.

[0210] In the description of this invention, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0211] In the description of this invention, unless otherwise explicitly specified and limited, the term "connection" and other such terms should be interpreted broadly. For example, it can refer to a fixed connection, a detachable connection, or an integral connection; it can refer to a mechanical connection, an electrical connection, or a connection that allows communication between the components; it can refer to a direct connection or an indirect connection through an intermediate medium; it can refer to the internal communication between two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0212] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the protection scope claimed by the present invention.

[0213] Please see Figures 1-20The present invention specifically describes a wireless switch 100 with a display screen (hereinafter referred to as the battery wireless switch 2). With the increasing variety of smart home appliances, the number of devices that the wireless switch needs to control is also constantly increasing. When the number of buttons on the wireless switch is large, users are prone to confusion about the functions of each button, leading to the wireless switch issuing incorrect control commands. Therefore, the present invention provides a wireless switch 100 with a display screen, such as... Figures 1-5 As shown, the wireless switch 100 with a display screen includes a fixed component 6 and a movable component 7, which is movably connected to the fixed component 6. The movable component 7 includes at least a pressing panel 241 (i.e., an operating unit 24), a display unit 22, and a circuit board 21. The display unit 22 is configured as a display screen 221. The pressing panel 241 receives pressing pressure and, in response to the pressing pressure, moves the movable component 7 in a first direction. The display screen 221 is electrically connected to the circuit board 21. The display screen 221 and the circuit board 21 are directly or indirectly fixedly connected to the pressing panel 241, allowing the display screen 221 and the circuit board 21 to move synchronously with the pressing panel 241. The movable connection can be understood as a connection method capable of mutual movement, including but not limited to sliding connections, rotational connections, and composite connections of sliding and rotation. The electrical connection can be understood as a connection method capable of conduction, including but not limited to soldering, wire connection, ribbon cable connection, pin header / female header connection, and conductive spring pin contact. The display screen 221 can be an LED screen, LCD screen, e-ink screen, etc., preferably an LED screen. The direct or indirect fixed connection can be understood as the display screen 221 and circuit board 21 being directly fixed to the pressing panel 241, or indirectly fixed to the pressing panel 241 through other parts. The first direction can be understood as the pressing direction, and the first direction is already... Figure 7 and Figure 8 As indicated by the label, in a specific embodiment, the first direction is a vertically downward direction.

[0214] The wireless switch 100 with a display screen provided by this invention can display the functions of each button on the display screen 221, and the displayed content can be modified accordingly as the button functions change, thereby solving the problem of confusion caused by the large number of buttons in a wireless switch. Furthermore, since the display screen 221 and the circuit board 21 move synchronously with the pressing panel 241, there is no relative movement between the display screen 221 and the circuit board 21, making the connection between them more stable and preventing damage to the electrical connection. In addition, this invention directly or indirectly fixes the display screen 221 and the circuit board 21 to the pressing panel 241, making the structure more compact and the distance between the display screen 221 and the circuit board 21 closer, resulting in higher connection stability.

[0215] Furthermore, the circuit board 21 is equipped with a battery 231 and a wireless communication module. The circuit board 21 is powered by the battery 231 and receives and / or transmits wireless signals through the wireless communication module (the wireless communication module is the first sensing unit 212 described below).

[0216] Furthermore, such as Figure 2 and Figure 5 As shown, the movable component 7 further includes a movable member 71, which is movably connected to the fixed component 6. The pressing panel 241 and the circuit board 21 are respectively disposed on both sides of the movable member 71, and the display screen 221 is confined between the pressing panel 241 and the movable member 71, so that the display screen 221 displays information externally through the pressing panel 241. The two sides of the movable member 71 can be the upper and lower sides, or the left and right sides. In a specific embodiment, the pressing panel 241 is fixed to the upper side of the movable member 71 by double-sided adhesive 72, and the circuit board 21 is fixed to the lower side of the movable member 71 by screws. This embodiment, by disposing the display screen 221 and the circuit board 21 on both sides of the movable member 71, has the following advantages: 1. It allows the display screen 221 to be closer to the pressing panel 241, resulting in a better display effect; 2. The movable member 71 can provide electrical isolation, preventing static electricity on the circuit board 21 from affecting the display screen 221; 3. It facilitates the placement of the detection element 28 and other electronic components on the circuit board 21. In a specific embodiment, the movable component 71 is preferably a movable bracket. Furthermore, the press panel 241 in this embodiment can not only be pressed, but also display the content of the display screen 221, allowing the content displayed on the display screen 221 to correspond to the positions of each button. This enables the user to intuitively obtain the function information corresponding to each button on the press panel 241, bringing convenience to operation.

[0217] Furthermore, the double-sided adhesive 72 forms a display through-hole 721 at a corresponding position on the display screen 221 to avoid the display area 2211 of the display screen 221. The display screen 221 is confined between the pressing panel 241 and the movable member 71, and the back of the display screen 221 is covered by an adhesive piece 222 (see...). Figure 7 It is attached and fixed to the movable part 71. The pressing panel 241 is provided with a display part 2411 at the corresponding position of the display screen 221. The shape of the display part 2411 is adapted to the display area 2211. The display part 2411 is made of transparent material and can display the content of the display area 2211 to the outside.

[0218] Furthermore, such as Figure 4As shown, the display screen 221 is electrically connected to the circuit board 21 via a ribbon cable 26. The movable component 71 has a ribbon cable passage 712 through which the ribbon cable 26 passes. Further, the movable component 71 has a receiving groove 711 facing the display screen 221, and the display screen 221 is placed within the receiving groove 711. The pressing panel 241 covers the receiving groove 711 and is sealed to the movable component 71. A sealing element 73 is provided between the pressing panel 241 and the receiving groove 711, and the sealing element 73 is positioned corresponding to the ribbon cable passage 712 to seal the receiving groove 711, preventing dust and moisture from entering and causing the inner side of the display section 2411 to become blurry, thus affecting the display effect. The use of a ribbon cable 26 to connect the display screen 221 and the circuit board 21 improves the sealing effect of the receiving groove 711, and the ribbon cable 26 is flexible and not easily damaged. The sealing element 73 is configured as a flexible sealing gasket, including foam gaskets, rubber gaskets, silicone gaskets, etc. In a specific embodiment, the sealing element 73 is a foam gasket, and the upper and lower surfaces of the sealing element 73 are adhesive, respectively attached to the receiving groove 711 and the pressing panel 241; the pressing panel 241 is attached and fixed to the upper surface of the movable part 71 by double-sided adhesive 72 to achieve a sealed connection between the pressing panel 241 and the movable part 71. The width of the sealing element 73 is greater than or equal to the width of the ribbon cable passage 712, resulting in a better sealing effect. The ribbon cable 26 extends to the display screen 221, and the circuit board 21 is provided with a ribbon cable connection terminal 27. The ribbon cable 26 passes through the ribbon cable passage 712 and is snapped into the ribbon cable connection terminal 27. The sidewall of the receiving groove 711 is provided with a first positioning rib 7111, which abuts against the side of the display screen 221 to improve the positioning accuracy of the display screen 221, so that the display screen 221 is directly opposite the display part 2411 of the pressing panel 241. Furthermore, the depth of the receiving groove 711 matches the thickness of the display screen 221, so that the upper surface of the display screen 221 is flush with the upper surface of the movable part 71, thereby making the distance between the display screen 221 and the pressing panel 241 smaller and the display effect better.

[0219] In other embodiments, such as Figure 19 and Figure 20 As shown, with Figure 3The difference in this embodiment is that the sealing is no longer achieved through the sealing member 73, but rather by controlling the size of the display through-hole 721 of the double-sided adhesive 72, so that at least three sides of the upper surface of the display screen 221 are sealed to the pressing panel 241 through the double-sided adhesive 72. Specifically, the display screen 221 includes a first surface 2212 facing the pressing panel 241. In this embodiment, the first surface 2212 is the upper surface of the display screen 221, and the first surface 2212 has a display area 2211, which represents the area where the display screen 221 displays content. The double-sided adhesive 72 has the display through-hole 721 at the corresponding position of the display area 2211, and at least three sides of the display through-hole 721 are attached to the first surface 2212, so that at least three sides of the first surface 2212 are sealed to the pressing panel 241 through the double-sided adhesive 72. Figure 19 As shown in the figure, the dashed lines represent the outer contour of the double-sided adhesive 72 and the outline of the display through-hole 721, respectively, while the solid lines represent the display screen 221 and the ribbon cable 26. At least three sides of the first surface 2212 refer to the side facing the ribbon cable 26 and the two sides adjacent to that side. In this embodiment, at least three sides of the first surface 2212 are sealed to the pressing panel 241 to prevent dust and moisture from entering between the display area 2211 and the pressing panel 241 through the ribbon cable through-hole 712, thus avoiding dust and moisture affecting the display effect. Furthermore, the sealing effect achieved by the double-sided adhesive 72 results in higher assembly efficiency.

[0220] In a preferred embodiment, such as Figure 20 As shown in the figure, the dashed lines represent the outer contour of the double-sided adhesive 72 and the outline of the display through-hole 721, respectively, while the solid lines represent the display screen 221 and the ribbon cable 26. The display through-hole 721 surrounds the display area 2211. The size of the display through-hole 721 is slightly smaller than the size of the first surface 2212. The periphery of the display through-hole 721 is fitted to the first surface 2212, so that the periphery of the first surface 2212 is sealed to the pressing panel 241 by the double-sided adhesive 72. This creates a sealed space between the first surface 2212 and the pressing panel 241, achieving the purpose of dust and water protection for the display area 2211. Furthermore, the size of the display through-hole 721 is larger than the size of the display portion 2411 of the pressing panel 241, so that the double-sided adhesive 72 is not exposed through the display portion 2411.

[0221] Furthermore, such as Figures 7-12As shown, the circuit board 21 is provided with at least one detection element 28 facing the first direction. When the movable component 7 moves in the first direction in response to the pressing pressure, the detection element 28 is triggered by being pressed by the fixed component 6. The detection element 28 can be understood as an electronic component capable of detecting pressing motion, including microswitches, tactile switches, detection switches, membrane switches, Hall switches, etc. In a preferred embodiment, the detection element 28 is a tactile switch. Compared to traditional smart switches that trigger the detection element 28 via a button, this embodiment uses the movement of the circuit board 21 to drive the movement of the detection element 28, thereby triggering the detection element 28. This allows the detection element 28 and the display screen 221 to share a single circuit board 21, making the structure more compact.

[0222] Furthermore, such as Figures 5-10 As shown, the fixed component 6 is provided with an elastic support 61, which is directly or indirectly connected to the movable component 71. This elastic support provides elastic support to the movable component 71 in the opposite direction to the first direction. When the pressing force is removed, the movable component 71 returns to its original position under the action of the elastic support, and the movable component 71 drives the pressing panel 241, circuit board 21, and display screen 221 to return to their original positions. The "direct or indirect connection" can be understood as the elastic support 61 directly abutting against the movable component 71, or indirectly connected to the movable component 71 through other structures. "Returning to its original position" can be understood as returning to the position before pressing. The functions of the elastic support 61 are: 1. To provide a reset force to help the movable component 7 reset; 2. To provide a pre-tightening force so that the movable component 7 does not become loose; 3. To provide support force to prevent the detection element 28 from being falsely triggered. In one specific embodiment, the detection element 28 is configured as a tactile switch, which has its own reset force, and the movable element 71 is reset under the combined action of the elastic support and the reset force of the tactile switch.

[0223] Furthermore, such as Figures 5-12As shown, the fixing component 6 includes a middle shell 62 and a bottom shell 63. The movable member 71 is movably connected to the middle shell 62. The elastic support member 61 is disposed between the middle shell 62 and the movable member 71. There are multiple elastic support members 61, and each elastic support member 61 supports the movable member 71 in a balanced manner. The bottom shell 63 covers the side of the middle shell 62 away from the pressing panel 241. When the movable member 71 drives the detection member 28 to move in the first direction, the detection member 28 abuts against the bottom shell 63 and is triggered by the bottom shell 63. It is worth noting that since the detection element 28 is triggered by the bottom shell 63 and is fixedly connected to the movable element 71, the relative positional accuracy between the bottom shell 63 and the movable element 71 is crucial. In this embodiment, the elastic support element 61 is positioned between the movable element 71 and the middle shell 62 to prevent elasticity between the movable element 71 and the bottom shell 63, thereby ensuring the relative positional accuracy between the bottom shell 63 and the movable element 71. Figure 8 As shown, because the pressing gap of the pressing panel 241 is very small, controlling the positional accuracy between the bottom shell 63 and the movable part 71 can avoid the situation where the idle stroke is too long, causing the detection element 28 to fail to be triggered. In addition, the movable part 71 is balanced by each elastic support member 61, making the elastic force at various points on the pressing panel 241 more even, preventing the detection element 28 from being falsely triggered, and improving the pressing feel. In a specific embodiment, each elastic support member 61 is evenly distributed along the circumference of the movable part 71 to provide balanced support force.

[0224] Furthermore, such as Figure 11 and Figure 7 As shown, the bottom of the base shell 63 is attached with an anti-slip strip 635 for anti-slip purposes, and the anti-slip strip 635 can be replaced with an adhesive strip for attaching the base shell 63 to a wall, door, or window.

[0225] Furthermore, such as Figure 5 and Figure 10 As shown, the middle shell 62 has a limiting part 621 between the movable member 71 and the pressing panel 241. The limiting part 621 is used to limit the extreme position of the movable member 71 moving in a second direction, which is opposite to the first direction. The second direction has already been... Figure 10The limiting part 621 is constructed as a limiting wall extending laterally inward from the side wall of the middle shell 62. The limiting wall abuts against the upper surface of the movable member 71 to limit the extreme position of the upward movement of the movable member 71. The middle shell 62 is set as a rectangle, and the limiting part 621 is located at the four corners of the middle shell 62. In this embodiment, the limiting part 621 is set between the movable member 71 and the pressing panel 241, so that after the pressing panel 241 is installed on the movable member 71, the limiting part 621 is limited between the pressing panel 241 and the movable member 71, thereby improving the matching accuracy between the three, so as to accurately control the pressing stroke of the pressing panel 241 and avoid the detection element 28 from being falsely triggered or not triggered.

[0226] Furthermore, such as Figure 5 , Figure 8 and Figure 10 As shown, the middle shell 62 restricts the extreme positions of the pressing panel 241 moving in the first direction. In a specific embodiment, when the pressing panel 241 moves to its extreme position in the first direction, the edge of the pressing panel 241 abuts against the upper surface of the middle shell 62, preventing the pressing panel 241 from moving further. In this embodiment, both the upper and lower extreme positions of the pressing panel 241 are limited by the middle shell 62 to shorten the dimensional chain of errors, making the pressing stroke of the pressing panel 241 more accurate and avoiding false triggering or non-triggering of the detection element 28.

[0227] Furthermore, such as Figure 15 and Figure 10As shown, the middle shell 62 is provided with a plurality of limiting parts 621 between the movable member 71 and the pressing panel 241. Each limiting part 621 is provided with a connecting post 622 facing the first direction. The movable member 71 is provided with a connecting hole 713 at the corresponding position of the connecting post 622. The connecting hole 713 is sleeved on the connecting post 622 and can slide along the connecting post 622 to realize the movable connection between the movable member 71 and the middle shell 62. A limiting screw 623 is installed at the end of the connecting post 622. The elastic support member 61 is constructed as a spring 611. The spring 611 is sleeved on the connecting post 622. One end of the spring 611 abuts against the movable member 71, and the other end abuts against the nut of the limiting screw 623. The limiting screw 623 compresses the spring 611 so that the spring 611 provides elastic support to the movable member 71. The limiting screw 623 is preferably a flange screw, with its nut having a built-in flange to prevent the spring 611 from disengaging from the limiting screw 623. Both the middle shell 62 and the movable part 71 are rectangular. There are four limiting parts 621, located at the four corners of the middle shell 62. Each of the four limiting parts 621 has a downwardly protruding connecting post 622. Four connecting holes 713 are correspondingly provided, located at the four corners of the movable part 71. The connecting post 622 passes through the connecting hole 713, and its end is threaded for connecting the limiting screw 623. The spring 611 is sleeved on the connecting post 622 and is disposed within the connecting hole 713. A small platform is provided inside the connecting hole 713, and the spring 611 abuts against this small platform, providing an upward elastic force to the movable part 71.

[0228] like Figure 15 As shown, the inner wall of the middle shell 62 is provided with a plurality of second positioning ribs 627. The second positioning ribs 627 abut against the side wall of the movable part 71. The second positioning ribs 627 cooperate with the connecting column 622 to limit the movable part 71, so that the movable part 71 can generate a pressing movement.

[0229] Furthermore, such as Figure 12 and Figure 16 As shown, there are four elastic support members 61 and four detection members 28. The four elastic support members 61 and the four detection members 28 are arranged at intervals along the circumference of the movable member 71. This makes the supporting force at the corresponding positions of each detection member 28 more consistent, resulting in a better pressing feel on the pressing panel 241. It also prevents adjacent detection members 28 from being mistakenly triggered when a certain detection member 28 is pressed. In a specific embodiment, as... Figure 16The image shown is a bottom view of the wireless switch after concealing the middle shell 62 and the bottom shell 63. The pressing panel 241 is square in shape, with four elastic support members 61 located at the corresponding corners of the square. Four detection members 28 are located at the corresponding midpoints of the four sides of the square, ensuring more consistent support force at each detection member 28 and enhancing the ability to prevent accidental touches. Furthermore, placing the elastic support members 61 at the four corners of the movable member 71 saves internal space, resulting in a more compact structure. The "corresponding corners" can be understood as the areas near the four corners of the pressing panel 241, and the "corresponding midpoints" can be understood as the areas near the midpoints of each side of the pressing panel 241, including but not limited to the positions directly opposite the midpoints.

[0230] Furthermore, such as Figure 16 and Figures 8-10 As shown, the pressing panel 241 is constructed as a polygon, which includes multiple sides and multiple corners. The circuit board 21 has multiple detection elements 28 facing the first direction. Each detection element 28 is located at a position corresponding to the midpoint of a side of the polygon, such that: when the pressing panel 241 receives pressure at the corresponding position of the detection element 28, the detection element 28 moves towards the first direction to be triggered; when a corner of the pressing panel 241 receives pressure, the pressing panel 241 abuts against the fixing component 6, and the pressing stroke is insufficient to trigger the detection element 28. The polygon includes triangles, rectangles, pentagons, hexagons, or other polygons. The corners of the polygon can be sharp or rounded. The positions corresponding to the midpoints of each side can be understood as the areas near the midpoints of each side, including but not limited to the positions directly opposite the midpoints. Positioning the detection elements 28 at the corresponding midpoints of each side makes the movement stroke of the detection elements 28 closer to the pressing stroke of the pressing panel 241, thus facilitating the prevention of accidental touches by controlling the pressing stroke. When the pressing panel 241 receives pressure at the position corresponding to the detection element 28, the downward stroke of the pressing panel 241 is very close to the movement stroke of the detection element 28. In this embodiment, the gap between the pressing panel 241 and the middle shell 62 is controlled so that the gap is just sufficient to trigger the detection element 28. When the corner of the pressing panel 241 receives the pressing force, according to the lever principle, the downward stroke of the corner of the pressing panel 241 is greater than the movement stroke of the detection element 28. Since the gap between the pressing panel 241 and the middle shell 62 determines the pressing stroke, the corner of the pressing panel 241 abuts against the middle shell 62, and the pressing stroke is insufficient to trigger the detection switch. The advantage of this design is that when the pressing position is slightly deviated from a certain detection element 28, the detection element 28 adjacent to that detection element 28 will not be accidentally triggered, thus achieving the effect of preventing accidental touch of the detection element 28.

[0231] In a preferred embodiment, such as Figure 16 As shown, the pressing panel 241 is square in shape, including four sides and four corners; there are four detection elements 28, each located at the midpoint of one of the sides of the square, as shown below. Figures 8-10 As shown, where Figure 8 for Figure 6 A sectional view of the AA section. Figure 9 for Figure 6 A sectional view of the BB section. Figure 10 for Figure 9 Enlarged view of part C in the image, by Figure 8 As can be seen, since the position of the detection element 28 on the pressing panel 241 is close to the edge of the pressing panel 241, when the position of the pressing panel 241 corresponding to the detection element 28 receives pressing force, the downward stroke of the pressing panel 241 is very close to the movement stroke of the detection element 28. In this embodiment, the pressing gap is controlled to be close to the trigger stroke of the detection element 28, and this gap is sufficient to trigger the detection element 28. Figure 9 and Figure 10 It can be seen that when the corner of the pressing panel 241 receives the pressing force, according to the lever principle, the downward stroke of the corner of the pressing panel 241 is greater than the movement stroke of the detection element 28. Since the gap between the pressing panel 241 and the middle shell 62 determines the pressing stroke, the corner of the pressing panel 241 abuts against the middle shell 62 at this time, and the pressing stroke is insufficient to trigger the detection switch. This ensures that when the pressing position is slightly deviated from a certain detection element 28, the detection element 28 adjacent to that detection element 28 will not be accidentally triggered, thus achieving the effect of preventing accidental touch of the detection element 28. In a specific embodiment, the trigger stroke of the detection element 28 is set to 1mm, and the gap between the pressing panel 241 and the middle shell 62 is also set to 1mm.

[0232] In addition, in this embodiment, the detection element 28 is positioned near the edge of the circuit board 21 so that the movement stroke of the detection element 28 is closer to the pressing stroke of the pressing panel 241, thereby facilitating the prevention of accidental touches by controlling the pressing stroke.

[0233] Furthermore, such as Figure 12 As shown, the bottom shell 63 has trigger platforms 631 protruding at corresponding positions of each detection element 28. The bottom shell 63 abuts against and triggers the detection element 28 through the trigger platforms 631. The trigger platforms 631 are constructed in a strip shape, and each strip trigger platform 631 faces the center of the bottom shell 63, that is, the orientation of two adjacent trigger platforms 631 is perpendicular to each other. This makes it less likely that when a detection element 28 is triggered, the detection elements 28 adjacent to it will be accidentally triggered by the trigger platform 631, thus achieving the effect of preventing accidental triggering.

[0234] Furthermore, such as Figure 1 and Figure 12As shown, the pressing panel 241 is square in shape, and there are four detection elements 28. The four detection elements 28 are located at the midpoints of the four sides of the square, and the display screen 221 is located at the center of the pressing panel 241, so that the display content of the display screen 221 corresponds to the position of each detection element 28. The display screen 221 can more intuitively indicate the function corresponding to the four detection elements 28. In a specific embodiment, the pressing panel 241 forms four operation areas at the corresponding positions of the four detection elements 28, and the four operation areas surround the display screen 221. The display area 2211 of the display screen 221 is divided into five areas: upper, middle, lower, left, and right. The upper, lower, left, and right areas correspond to the positions of the four detection elements 28 and are used to display the function corresponding to the detection elements 28. The middle area is used to display temperature and humidity.

[0235] In a preferred embodiment, such as Figure 18 As shown, the pressing panel 241 is provided with pressing marks 2412 at corresponding positions of each detection element 28 to indicate the pressing position. A circular black area 2413 is coated around the display part 2411, and the display part 2411 is surrounded by the black area 2413. The color of the black area 2413 is close to the color of the display screen 221, which is used to hide the outline of the display part 2411 to improve aesthetics.

[0236] Furthermore, such as Figure 5 and Figure 8 As shown, a first sensor 25 is provided on the side of the circuit board 21 facing the pressing panel 241. The first sensor 25 is used to detect temperature and / or humidity. The fixing component 6 includes a middle shell 62, and the movable member 71 is movably connected to the middle shell 62. Three ventilation holes 624 are opened on the side wall of the middle shell 62 at the position corresponding to the first sensor 25. The movable member 71 has a first opening 714 at the position corresponding to the first sensor 25. Specifically, the first sensor 25 is a temperature and humidity sensor capable of detecting temperature and humidity. Figure 8 As shown, the vent 624 is located to the left of the first sensor 25, and the first opening 714 is located above the first sensor 25. The vent 624 and the first opening 714 form an airflow passage, as shown. Figure 8 and Figure 13 As shown, the middle shell 62 has an airflow cavity 715 facing the first sensor 25. The airflow cavity 715 surrounds the first sensor 25, and the bottom end of the side wall of the airflow cavity 715 abuts against the upper surface of the circuit board 21 to isolate the heat inside the switch. External air can enter the airflow cavity 715 through the vent 624 or the first opening 714, and the movement of the movable component 7 can accelerate the airflow, making the detection result of the first sensor 25 more accurate.

[0237] Furthermore, such as Figure 12 and Figure 8 As shown, the bottom shell 63 covers the side of the middle shell 62 away from the pressing panel 241 and is detachably connected to the middle shell 62 to facilitate battery 231 replacement. The bottom shell 63 has an elastic portion 632 at the corresponding position of the battery 231. The elastic portion 632 is compressed by the battery 231 and the bottom shell 63, providing elastic support to the battery 231. The detachable connection includes snap-fit ​​connection, screw connection, or other detachable connection methods. The elastic portion 632 can be a foam pad, rubber pad, spring, spring sheet, or other elastic structure. The function of the elastic portion 632 is to provide elastic support to the battery 231, ensuring that the battery 231 receives support during its up-and-down movement with the circuit board 21, preventing the battery 231 from losing electrical connection with the circuit board 21 during movement. Figures 12-14 As shown, the circuit board 21 has two positive electrode springs 232 and one negative electrode spring 233 soldered on it. The two positive electrode springs 232 abut against the side of the battery 231 and are connected to the positive terminal of the battery 231; the negative electrode spring 233 abuts against the upper surface of the battery 231 and is connected to the negative terminal of the battery 231. The battery power supply unit 23 described below includes at least the battery 231, the positive electrode springs 232 and the negative electrode spring 233.

[0238] In other embodiments, the movable member 71 is provided with a battery buckle (not shown in the figure) on the side of the battery 231. The battery buckle snaps the battery 231 in place, so that the battery 231 no longer needs the elastic part 632 to provide support. As a result, the bottom shell 63 is no longer subjected to the downward elastic force of the elastic part 632, ensuring the accuracy of the bottom shell 63 triggering the detection member 28.

[0239] Furthermore, such as Figure 11 As shown, an insulating sheet 64 is inserted between the battery 231 and the negative electrode spring 233 to insulate the negative electrode spring 233 from the battery 231 and prevent the battery 231 from consuming power. The insulating sheet 64 is strip-shaped and extends out of the middle shell 62. When the user first picks up the switch, the insulating sheet 64 can be pulled outward so that the negative electrode spring 233 abuts against the battery 231, and the circuit board 21 and the battery 231 are connected.

[0240] In other embodiments, the insulating sheet 64 is an extended straight line without any bends and has a certain degree of rigidity. This not only makes it easier to pull out, but also allows the insulating sheet to be directly inserted after the battery is installed and the product has been tested without any problems, without having to remove the battery again.

[0241] like Figure 12As shown, the bottom shell 63 is square in shape, and the bottom of the middle shell 62 has an opening that matches the shape of the bottom shell 63. The bottom shell 63 covers the bottom of the middle shell 62. Eight bottom shell clips 633 extend upward from all four sides of the bottom shell 63. The eight bottom shell clips 633 are distributed in pairs on each side of the bottom shell 63. The side wall of the middle shell 62 has eight corresponding engagement positions 625. The bottom shell clips 633 engage with the engagement positions 625 to achieve a detachable connection between the bottom shell 63 and the middle shell 62. The purpose of providing eight bottom shell clips 633 is to improve the connection stability between the bottom shell 63 and the middle shell 62, so as to ensure the accuracy of the trigger detection element 28 of the bottom shell 63 and avoid the situation where the gap between the bottom shell 63 and the middle shell 62 is too large, which would prevent the detection element 28 from being triggered. A pry bar 634 is provided on one side of the bottom shell 63. The pry bar 634 facilitates the user to pry open the bottom shell 63. A pry opening 626 is provided on the middle shell 62 at the corresponding position of the pry bar 634, and the pry bar 634 is accommodated in the pry opening 626. It is worth noting that the bottom shell latches 633 located on the same side as the pry bar 634, and the bottom shell latches 633 on the two sides adjacent to the pry bar 634, are respectively provided with notches facing the pry bar 634, so as to facilitate prying open the bottom shell 63 from the position of the pry bar 634.

[0242] Furthermore, such as Figure 14 As shown, a second sensing unit 213 is provided on the circuit board 21, which can emit a second signal in response to the proximity of a human hand. The second sensing unit 213 is electrically connected to the display screen 221, and the display screen 221 can light up in response to the second signal. That is, after the pressed panel 241 is not operated for a certain period of time, the display screen 221 is off, and when the user's hand approaches the wireless switch, the display screen 221 lights up, thereby reducing power consumption and saving energy. The second sensing unit 213 is specifically a capacitive proximity sensing unit.

[0243] Furthermore, such as Figure 14 As shown, the conductive wire 21322 of the second sensing unit 213 extends out from the second sensing unit 213 and then extends to the left and right directions to improve the sensing range of the second sensing unit. The conductive wire 21322 serves as the sensing component of the second sensing unit. It senses whether a person's hand is close by sensing the change in spatial capacitance formed between the person's hand and the conductive wire 21322.

[0244] Furthermore, such as Figure 14 As shown, the sensing antenna 21222 of the first sensing unit 212 is located at the far end of the same circuit board 21, and is a certain distance away from the second sensing unit, to ensure that the two sensing units do not interfere with each other.

[0245] Furthermore, such as Figure 14 and Figure 13As shown, the circuit board 21 has at least one mounting hole 29, which is fixedly connected to the movable part 71 by a threaded connector 21321. The mounting hole 29 has a conductive portion 292, which connects the mounting hole 29 to the threaded connector 21321. The circuit board 21 has a second sensing unit 213 for sensing the approach of a human hand. The second sensing unit 213 is electrically connected to a conductive wire 21322, which is connected to the mounting hole 29, thus electrically connecting the second sensing unit 213 to both the mounting hole 29 and the threaded connector 21321. This allows the conductive wire 21322, the threaded connector 21321, and the mounting hole 29 to collectively form the detection electrode 2132 of the second sensing unit 213, improving sensing sensitivity and allowing the second sensing unit 213 to reduce power consumption while maintaining sufficient sensitivity, thereby extending the battery 231's lifespan.

[0246] Furthermore, such as Figure 14 and Figure 13 As shown, a metal edging is provided on the inner side of the mounting hole 29, and the metal edging forms the conductive part 292. Furthermore, there are multiple mounting holes 29 distributed along the edge of the circuit board 21, and the conductive lines 21322 connect each mounting hole 29 in pairs, so that the sensing area surrounded by the conductive lines 21322 is wider and the sensing sensitivity is higher.

[0247] In another embodiment, such as Figure 17 As shown, with Figures 1-16 The difference in implementation lies in that, in this embodiment, the spring 611 is no longer provided between the middle shell 62 and the movable part 71, and the middle shell 62 no longer provides elastic support to the movable part 71. Specifically, the bottom shell 63 is provided with the elastic support 61, which is indirectly connected to the movable part 71 and provides elastic support to the movable part 71. In this embodiment, the elastic support 61 is the elastic part 632 mentioned above. The elastic part 632 is disposed between the battery 231 and the bottom shell 63 and is compressed by the battery 231 and the bottom shell 63. The elastic part 632 provides elastic support to the battery 231, and then indirectly provides elastic support to the movable part 71 through the battery 231. The movable part 71 returns to its original position under the supporting force of the elastic part 632 and the self-resetting force of the detection element 28. The elastic part 632 is preferably a foam pad. In this embodiment, the elastic support provided by the elastic part 632 greatly simplifies the structure and improves the processing and assembly efficiency.

[0248] Please refer to Figure 21 The diagram shows a block diagram of a battery wireless switch 2 provided in one embodiment of the present invention; the battery wireless switch 2 has a display unit 22, and the displayed text can be customized.

[0249] In some embodiments, the battery wireless switch 2 includes at least a first sensing unit 212, a second sensing unit 213, a control unit 211, and a battery power supply unit 23; wherein, the first sensing unit 212 is used to acquire a configuration signal; the configuration signal is used to determine first text information; the second sensing unit 213 is used to generate a second signal according to the medium change in a specified space; the control unit 211 is electrically connected to the first sensing unit 212 and the second sensing unit 213 to acquire the configuration signal and the second signal; and can be triggered by the second signal, and after being triggered, displays the first text information through a display unit 22; the battery power supply unit 23 is used to supply power to the control unit 211, the first sensing unit 212, the second sensing unit 213, and the display unit 22.

[0250] The designated space can be understood as any space associated with the usage environment of the battery wireless switch 2 and detectable by the second sensing unit 213, such as the space near the front and sides of the battery wireless switch 2; the change in medium can be understood as a change in the environmental state caused by, for example, a person's hand approaching or water droplets falling in the designated space. Furthermore, it can be understood that a change in the environmental state associated with the usage environment of the battery wireless switch 2 will cause a change in medium, and the second sensing unit 213 will generate a second signal based on this change, so that the control unit 211 can identify the change.

[0251] It is understandable that existing battery wireless switches 2, due to power consumption limitations, generally do not use a screen to display button information. When there are many buttons, users need to memorize the functions of each button, which can easily lead to confusion and inconvenience. Based on this, one embodiment of the present invention provides a battery wireless switch 2 that displays first text information to prompt the user through a display unit 22. Multiple sensing units are used to configure the first text information and sense changes in the environmental state, thereby generating a second signal to trigger the control unit 211 to display the first text information through the display unit 22. That is, the first text information is not displayed before being triggered, thus reducing power consumption. In other words, this embodiment achieves the goal of prompting the user through the display unit 22 while keeping power consumption within an acceptable range.

[0252] In some embodiments, the control unit 211 can switch from a first power consumption mode to a second power consumption mode in response to the second signal; wherein the first text information is displayed through the display unit 22 in the second power consumption mode; the power consumption of the control unit 211 in the first power consumption mode is within 1 / n of the power consumption in the second power consumption mode; where n takes the value [100, 6000]. It is understood that the battery wireless switch 2 will be in the untriggered first power consumption mode most of the time, therefore the power consumption in the first power consumption mode has a crucial impact on the lifespan of the battery wireless switch 2. The lower the power consumption in the first power consumption mode, the longer the lifespan of the battery wireless switch 2. In this embodiment, the power consumption of the first power consumption mode is set to 1 / 100 to 1 / 6000 of the power consumption of the second power consumption mode. Depending on the function of the battery wireless switch 2 in the first power consumption mode, the proportion of its power consumption in the first power consumption mode will be different.

[0253] In this embodiment, the control unit 211 has a low-power first power consumption mode and a second power consumption mode with higher power consumption than the first power consumption mode. In the first power consumption mode, the control unit 211 waits to be triggered, while in the second power consumption mode, the control unit 211 enters a normal display state. Since the battery wireless switch 2 is in a waiting-to-be-triggered state most of the time, based on the technical solution of this embodiment, the battery wireless switch 2 will be in the first power consumption mode without displaying the first text information most of the time. The second power consumption mode, which displays the first text information, only occupies a small portion of the entire usage cycle, thereby achieving the purpose of reducing power consumption while prompting the user with the first text information.

[0254] Furthermore, the control unit 211 is also configured to enter the first power consumption mode if the second signal is received after a first preset time following the entry into the second power consumption mode, thereby further reducing power consumption. In other words, in this embodiment, the control unit 211 is in a sleep state most of the time and does not need to light up the display unit 22 in real time to display information. The display unit 22 will only be triggered and lit up when necessary, thereby greatly reducing power consumption.

[0255] Furthermore, in both the first power consumption mode and the first preset time period, the control unit 211 is in a sleep state. This sleep state can be understood as the control unit 211 retaining only some necessary functions (such as signal monitoring) while disabling most other functions to reduce power consumption. Specifically, in the first power consumption mode, the control unit 211 enters sleep mode and retains only the monitoring function, turning off the power supply to the display unit 22, resulting in a power consumption as low as 3uA in the first power consumption mode. In the second power consumption mode, the power consumption of the control unit 211 transmitting wireless signals and the display unit 22 reaching 16mA, meaning the power consumption in the first power consumption mode is only 3 / 16000 of the power consumption in the second power consumption mode.

[0256] The battery wireless switch 2 also has a storage unit, which has a first storage space and a second storage space, wherein the first text information is stored in the second storage space; the control unit 211 clears the first storage space in the sleep state, and loads the first text information from the second storage space to the first storage space in the second power consumption mode, and further displays it through the display unit 22.

[0257] Furthermore, such as Figure 22 As shown, the control unit 211 is also configured to cut off the power supply to the display unit 22 in the sleep state of the first power consumption mode, so that the current is less than 5uA in the first power consumption mode; and to maintain the power supply to the display unit 22 in the sleep state for a first preset time, so that the display unit 22 continuously displays the first text information for the first preset time.

[0258] Therefore, in this embodiment, when the control unit 211 is in the first power consumption mode waiting to be triggered, the display unit 22 will be completely powered off to significantly reduce the power consumption of the display unit 22 during daily use. After the control unit 211 is triggered, the control unit 211 enters a sleep mode but maintains the display state of the display unit 22 so that the user can view it while partially reducing the power consumption during the first preset time.

[0259] like Figure 23 As shown, to improve the stability of the display state of the display unit 22, the battery wireless switch 2 also has a voltage regulator unit 215, electrically connected between the battery power supply unit 23 and the display unit 22. This unit boosts the supply voltage of the battery power supply unit 23 to a specified range before supplying power to the display unit 22, preventing voltage fluctuations caused by prolonged battery use or during signal transmission and reception by the control unit 211 that could lead to unstable supply voltage to the display unit 22. The voltage regulator unit 215 is controlled by the control unit 211, so that the control unit 211 can enable itself to supply power to the display unit 22 in a second power consumption mode, and disable itself in a first power consumption mode to cut off the power supply to the display unit 22.

[0260] Specifically, such as Figure 22 and Figure 23As shown, the control unit 211 controls the power supply to the enable and input terminals of the voltage regulator unit 215 via an electronic switch 216. When the electronic switch 216 is turned on, the voltage regulator unit 215 is enabled, and its input terminal is connected to the battery power supply unit 23. When the electronic switch 216 is turned off, the voltage regulator unit 215 is disabled, and its input terminal is disconnected from the battery power supply unit 23. It can be understood that when enabled, the voltage regulator unit 215 is connected to power the display unit 22; when disabled, the voltage regulator unit 215 is disconnected to prevent the display unit 22 from consuming power.

[0261] Furthermore, the voltage regulator unit 215 provided in this embodiment has the dual beneficial effects of stabilizing the power supply voltage of the display unit 22 to improve the stability of the display state of the display unit 22, and controlling the power supply of the display unit 22.

[0262] Furthermore, the electronic switch 216 can be, for example, a transistor, a relay, a thyristor, or a combination of components that have switching functions. In a specific example, the electronic switch 216 can be a PMOS transistor.

[0263] In some embodiments, in order to further reduce the power consumption of the second sensing unit 213 during operation, in the first power consumption mode of the control unit 211, the second sensing unit 213 alternately enters a working state and a resting state; in the working state, it senses the medium change in a specified space.

[0264] Specifically, the duration of the rest state is greater than or equal to 50ms, for example, 160ms; the duration of the working state is less than half the duration of the rest state. The specific durations of the working state and the rest state are stored in the second sensing unit 213 by programming.

[0265] The second sensing unit 213 involved in the above embodiments can specifically employ a capacitive proximity sensing module to sense changes in the medium of a designated space. Specifically, the second sensing unit 213 includes at least one sensing controller 2131, at least one detection electrode 2132, and at least one reference ground plane; the detection electrode 2132 can be excited to form a parasitic capacitance with the reference ground plane; the designated space includes an area close to the battery wireless switch 2, and the capacitance value changes according to the changes in the medium within the area close to the battery wireless switch 2; in the working state, the sensing controller 2131 excites the detection electrode 2132 and generates the second signal after the change in the parasitic capacitance exceeds a specified threshold; in the resting state, the sensing controller 2131 stops exciting the detection electrode 2132.

[0266] Specifically, the second sensing unit 213 is used to sense whether someone is approaching the battery wireless switch 2. When someone approaches, it triggers the control unit 211 to make the display unit 22 display the first text information. When no one approaches, it does not trigger the control unit 211 to make the display unit 22 turn off to reduce power consumption. Specifically, before a human body is sensed, the parasitic capacitance value between the detection electrode 2132 and the reference ground plane is at a first value. After a human body approaches the detection electrode 2132 to within b centimeters, the parasitic capacitance value is at a second value. After the sensing controller 2131 detects that the change in parasitic capacitance value exceeds a specified threshold, it outputs the second signal to the control unit 211. The control unit 211 controls the display unit 22 to display the first text information. Before a human body approaches the second sensing unit 213, the current of the second sensing unit 213 is less than 10uA; b∈[1,5].

[0267] Furthermore, such as Figure 13 and Figure 14 As shown, the second sensing unit 213 is disposed on a circuit board 21, which is externally connected through at least one threaded connector 21321. The threaded connector 21321 is conductive and is further configured to at least partially cover the detection electrode 2132, so that the designated area can cover the area more than 1 cm away from the battery wireless switch.

[0268] Specifically, such as Figure 13 and Figure 14 As shown, the detection electrode 2132 includes a conductive line 21322 disposed on the circuit board 21 and a screw (threaded connector 21321) for fixing the circuit board 21. The conductive line 21322 is not surrounded by other lines within 5mm on the circuit board 21 to avoid interference, and the line area can be appropriately increased to increase the sensing sensitivity. In addition, the conductive line is only placed in one layer on the circuit board 21 without leaving any vias to reduce parasitic capacitance.

[0269] Furthermore, in this embodiment, the screws used to fix the circuit board 21 are electrically connected to the wires to jointly form the detection electrode 2132 of the second sensing unit 213, thereby increasing the sensing range.

[0270] In some embodiments, in the first mode, the first sensing unit 212 is configured to transmit wireless signals, and in the second mode, the first sensing unit 212 is configured to both transmit and receive signals (specifically, it can interact with the terminal device 1 in a point-to-point manner). Furthermore, in the first mode, the control unit 211 is only used to transmit wireless signals and does not need to receive external signals, i.e., it does not need to process external signals, thereby reducing power consumption in the first mode. Only in the second mode is it necessary to receive external signals through the first sensing unit 212 to configure the first text information. However, since the battery wireless switch 2 spends most of its lifespan in the first mode, briefly entering the second mode for configuration will not have a significant impact on overall power consumption.

[0271] Furthermore, the configuration signal originates from a terminal device 1; when the control unit 211 detects the first trigger command, it switches from a first mode to a second mode; in the first mode, it switches between a first power consumption mode and a second power consumption mode according to the second signal; in the second mode, it wirelessly connects with the terminal device 1 via a direct connection, and configures the first text information through the terminal device 1; wherein the power consumption of the control unit 211 in the second mode is greater than that in the first mode. The terminal device 1 may be, for example, but not limited to, a smart device such as a mobile phone, computer, or tablet; in other words, the battery wireless switch 2 is in the first mode for part of the daily use, and only enters the second mode when the first text information needs to be configured (for example, when the user wants to modify the corresponding information of a button), to obtain the first text information configured by the user via a direct connection, and then returns to the first mode after the first text information is configured, to prevent the battery from being consumed quickly due to prolonged stay in the second mode.

[0272] In a specific example, the control unit 211 configures the first text information through the terminal device 1. For example, it may detect a first trigger command and, in response to the first trigger command, switch from a first mode to a second mode, establish a communication connection with the terminal device 1, and receive first index information sent by the terminal device 1. Then, based on the first index information, it determines the corresponding first text information and displays the first text information on the display section of the battery wireless switch 2 to indicate the operation information of the operation section of the battery wireless switch 2. When a first trigger event is detected, it disconnects the communication connection with the terminal device 1 and switches from the second mode to the first mode. The first trigger event may be, for example, a disconnection message sent to the control unit 211 after the terminal device 1 exits the corresponding operation interface. The specific interaction method between the control unit 211 and the terminal device 1 in the second mode can be understood by referring to the descriptions of other embodiments.

[0273] Furthermore, such as Figure 24 As shown, it also includes an operation unit 24 for operating the control unit 211; the first sensing unit 212 includes a radio frequency antenna; the control unit 211 is further configured to transmit a wireless signal encoded based on a wireless communication protocol via the radio frequency antenna through the operation unit 24 in a first mode. The operation unit 24 may be any structure or combination of structures capable of operating the control unit 211, such as a button. A detection switch electrically connected to the control unit 211 may be provided on the circuit board 21, and the operation unit 24 triggers the control unit 211 by operating the detection switch.

[0274] In a specific example, the wireless communication protocol can be a short code communication protocol, and the message length of the encoded information in the wireless signal is less than or equal to 30 bytes. The wireless signal can be transmitted outward, for example, by broadcasting. The control unit 211 is only responsible for broadcasting the wireless signal. Legitimate terminal devices 1 within the signal coverage area (e.g., terminal devices 1 that have been previously paired with the battery wireless switch 2, configured with the network, or have established other corresponding relationships) can receive the wireless signal. The control unit 211 is not responsible for the final destination terminal device 1 reached by the wireless signal. In other words, the control unit 211 can enter sleep mode after broadcasting the wireless signal and does not need to attend to subsequent processes to reduce power consumption. In a further example, the wireless communication protocol can be the Bluetooth communication protocol, and the wireless signal is a Bluetooth message encoded based on the Bluetooth communication protocol.

[0275] Furthermore, after being triggered, the control unit 211 also displays the time through the display unit 22, and calibrates the time through the terminal device 1 in the second mode. Specifically, in the second mode, the control unit 211 obtains the network time through the application of the terminal device 1 and compares it with its own device's clock. If the time difference is greater than a specified value (e.g., 1 second), the control unit 211 will correct the local time to match the network time, thus achieving automatic time calibration.

[0276] Furthermore, the first text information includes at least two different sets of information, which are used to respectively indicate the operation information of the operation unit 24.

[0277] The operation unit 24 includes at least two operation areas, and the display unit 22 includes at least two display areas. The at least two display areas are used to display at least two different sets of information to correspond to the at least two operation areas, so that the at least two operation areas can be distinguished.

[0278] Furthermore, at least two different sets of information in the display unit 22 correspond to different operation actions within the same operation area, and / or correspond to the same or different operation actions in different operation areas. The operation action can be understood as the target function that can be triggered after the operation area is operated. For example, if an operation area is clicked, it will trigger the kitchen light to turn on; if it is double-clicked, it will trigger the living room light to turn on. Therefore, double-clicking to turn on the living room light and clicking to turn on the kitchen light constitute two operation actions for that operation area.

[0279] In one example, the operation unit 24 further includes at least three operation areas, and the display unit 22 is located in the middle of the at least three operation areas, so that the display unit 22 can intuitively correspond to the at least three operation areas.

[0280] In another example, in order to reduce the size of the display unit 22 while still being able to display information from multiple operation areas, such as... Figure 32b As shown, the operation unit 24 includes four operation areas, and the display unit 22 is located in the middle area enclosed by the four operation areas, so as to display the four operation areas through four different sets of information.

[0281] Among them, such as Figure 25 As shown, the temperature and humidity are acquired using a first sensor 25. The control unit 211 is electrically connected to the first sensor 25 to acquire the temperature and humidity, and displays the temperature and humidity through the display unit 22 after being triggered. Specifically, the first sensor 25 can be a GXHT30 chip, which communicates with the control unit 211 via an IIC bus. After the control unit 211 is triggered to enter the second power consumption mode, it sends a data acquisition command to the first sensor 25. The first sensor 25 detects the current temperature and humidity based on the data acquisition command and stores the results in a register. The control unit 211 reads the results stored in the register of the first sensor 25 and displays them through the display unit 22.

[0282] like Figure 26 The diagram shows a specific implementation circuit diagram of the battery wireless switch 2; wherein:

[0283] The battery power supply unit 23 is powered by a CR2450 button cell battery VDD.

[0284] The voltage regulator unit 215 uses a DC-DC boost chip DT6104 to boost the 3.1-3.3V supply voltage of CR2450 to a 6.6V output power supply DC_OUT, which is used to power the backlight of the display unit 22.

[0285] The display unit 22 includes a 96×96 resolution OLED screen, powered by DC_OUT, with a built-in ST7567A driver and a four-wire SPI communication interface for communication with the control unit 211. The OLED screen has at least 100 pixels and is used to display temperature and humidity, a real-time clock, and the names of four operating areas. As a further example, the OLED screen has a display area of ​​17.26mm × 17.26mm.

[0286] The first sensor 25 can use a GXHT30 chip to acquire temperature and humidity, and interact with the control unit 211 via the IIC communication bus.

[0287] The control unit 211 and the first sensing unit 212 are integrated and use a TLSR8250 module, which interacts with the outside world using a Bluetooth radio frequency (BLE) antenna. The TLSR8250 module controls the switching of the PMOS (Q1, electronic switch 216) through Power_en to control the power supply DC_OUT of the OLDE, thereby enabling and disabling the chip DT6104.

[0288] The second sensing unit 213 uses an IQS211 capacitive proximity sensor chip, which is connected to the power supply VDD through a 47Ω current-limiting resistor. The VDDHI pin and VREG pin are connected to capacitors of 2.2uF and 4.7uF, respectively. The IQS211 capacitive proximity sensor chip outputs high and low levels to the control unit 211 through an I / O port. The control unit 211 detects whether someone is approaching by detecting the high and low levels.

[0289] The operation unit 24 has four operation areas, each corresponding to one button, and the four operation areas correspond to four buttons. The operations that each button can perform include, for example: single click: press the button and release it within 0.5 seconds, with no subsequent action within 0.4 seconds after the button is pressed; double click: press the button and release it within 0.5 seconds, triggering a click again within 0.4 seconds; long press: press the button and hold it for more than 0.5 seconds, releasing it within 5 seconds.

[0290] Terminal device 1 includes a mobile phone, which interacts with the TLSR8250 module via BLE.

[0291] The working principle is explained as follows:

[0292] At the factory, the TLSR8250 module of the battery wireless switch 2 is in a power-off state, and the OLED screen is off. After a power-on operation (for example, an insulating sheet is placed between the CR2450 button battery and circuit board 21 at the factory; after the user receives the device, the insulating sheet is removed, making the CR2450 button battery and circuit board 21 conductive, thus powering the TLSR8250 module), the TLSR8250 module connects to the CR2450 button battery. The TLSR8250 module controls Q1 to conduct via Power_en, thus powering the OLED screen and lighting it up. The OLED screen displays network configuration information (e.g., "Pending Network Configuration"), allowing the user to perform network configuration operations on the battery wireless switch 2 according to the network configuration information. After network configuration is completed, it enters the first mode, waiting to be triggered. Furthermore, if the user does not perform network configuration in time, the OLED screen displays the network configuration information for a certain period (e.g., 2 minutes) before being powered off and turning off to reduce power consumption.

[0293] In the first mode, the TLSR8250 module operates in either the first power mode or the second power mode. In the first power mode, it enters sleep mode and turns off the OLED screen by controlling Q1 through Power_en, and waits to be woken up by the low level output by the IQS211 chip through the I / O port and / or by one of the four buttons.

[0294] For example, when a user approaches the battery wireless switch 2, the IQS211 chip detects the user's proximity and outputs a low level to wake up the TLSR8250 module. After being woken up, the TLSR8250 module enters the second power mode. In the second power mode, Q1 (e.g., a BLM3401 MOSFET) is turned on via Power_en to enable the DT6104 chip. This causes the DT6104 chip to output a 6.6V power supply DC_OUT to power the OLED screen. Subsequently, the OLED screen lights up and displays the first text information (e.g., button information for the four buttons) to represent the button information of the four buttons. Figure 35b As shown), the TLSR8250 module enters sleep mode and keeps the OLED screen powered to maintain its display state during the first preset time (e.g., 10 seconds). After the timeout, the TLSR8250 module checks the output level of the IQS211 chip again. If the output level is low (second signal), the OLED screen continues to be lit for the first preset time (if a low level is detected again, the IQS211 chip performs self-calibration and performs subsequent proximity sensing detection based on the current environment to prevent the screen from being lit for a long time). If the output level is high, the TLSR8250 module controls Q1 to turn off the DT6104 chip through Power_en, thereby cutting off the power supply to the OLED screen and turning it off. The TLSR8250 module enters the first power consumption mode and waits to be woken up again.

[0295] In the first power consumption mode of the TLSR8250 module, the IQS211 chip periodically enters the working state to detect if someone is approaching. If someone is detected, it outputs a low level (second signal) to trigger the TLSR8250 module. In the first power consumption mode of the TLSR8250 module, the first sensor 25 is in sleep mode with a sleep current of less than 1uA, the control unit 211 itself is in sleep mode, consuming approximately 400nA of current, and the IQS211 chip is in a low-power scanning mode that alternates between working and resting states, consuming 2uA of current. The overall standby power consumption is less than 3uA.

[0296] When the TLSR8250 module is triggered to enter the second mode, it establishes a BLE direct communication with the mobile phone. The user configures the first text information through the app running on the mobile phone to configure the display information of each button on the OLED screen.

[0297] In addition, when the CR2450 button battery voltage drops below a specified level (e.g., below 2.65V), each time the device is woken up and enters the second power consumption mode, the TLSR8250 module controls the OLED screen to display a power level prompt message (e.g., "Low battery, please replace the battery") in the center, and then displays the default content after 1 second.

[0298] Please see Figure 27 The control system includes a terminal device 1 and a wireless battery switch 2, which are communicatively connected. The diagram illustrates one terminal device 1 and one wireless battery switch 2; in a real control system, there can be multiple terminal devices 1 and multiple wireless battery switches 2.

[0299] Terminal device 1 can be any device or combination of devices with data processing and external communication capabilities, such as a mobile phone, computer, tablet, computer, or in-vehicle system. The battery wireless switch 2 can be a switch capable of external communication via wireless communication. The switch can be battery-powered, and the battery can be a button cell battery, a dry cell battery, a rechargeable battery, etc. The wireless communication can be any method such as radio frequency, Bluetooth, Wi-Fi, ZigBee, etc. The following descriptions primarily focus on Bluetooth communication.

[0300] Please see Figure 28 The control system includes a terminal device 1, a wireless battery switch 2, a controlled device 3, a gateway device 4, and a cloud server 5. The number of terminal devices 1, wireless battery switch 2, controlled devices 3, gateway devices 4, and cloud servers 5 is not limited to... Figure 2 As shown, the specific quantity can be multiple.

[0301] The terminal device 1 and the battery wireless switch 2 are as described above.

[0302] The controlled device 3 can be any device that can be controlled by the battery wireless switch 2. In one embodiment, the controlled device 3 can be a device with on / off functionality, or it can be a fan, light fixture, socket, garbage disposal device, or other connected devices. In other embodiments, the controlled device 3 can also include any household, commercial, or industrial device, such as a doorbell, air conditioner, smart curtain, fan, refrigerator, lighting device, wall switch, etc. The controlled device 3 can communicate with the outside world via radio frequency, Bluetooth, Wi-Fi, Zigbee network, mobile network, etc. The controlled device 3 can communicate with the gateway device 4 to be controlled by the gateway device 4.

[0303] The gateway device 4 enables protocol conversion and interoperability between the battery wireless switch 2, cloud server 5, controlled device 3, and terminal device 1. Furthermore, the gateway device 4 can connect to the cloud server 5 to access the internet, thereby exchanging data with other internet-connected devices (such as terminal device 1). Additionally, the gateway device 4 can be a dedicated gateway device or another device with gateway functionality (e.g., a speaker, display, computer, host, etc.). The gateway device 4 can be a gateway, a router, or a device integrating both. Furthermore, the gateway device 4 can be a smart speaker with a Wi-Fi communication module (for communication with the cloud server 5) and an RF or Bluetooth communication module (for communication with the battery wireless switch 2 or controlled device 3), or a dedicated gateway device for data interaction and processing. The gateway device 4 can be configured with a separate Bluetooth communication module, or the Bluetooth and Wi-Fi communication modules can be integrated.

[0304] The cloud server 5 can be any device or combination of devices with data storage and processing capabilities, capable of interacting with the gateway device 4. The cloud server 5 can have the necessary programs deployed on it. The cloud server 5 can also establish a communication connection with the terminal device 1 to exchange data.

[0305] In one optional implementation, both the battery wireless switch 2 and the controlled device 3 can join the Bluetooth network of the gateway device 4 after network configuration and communicate with the gateway device 4. The gateway device 4 can also access the Internet and communicate with other devices connected to the Internet. For example, in this embodiment, both the gateway device 4 and the terminal device 1 can interact with the cloud server 5, thereby displaying the configured battery wireless switch 2 and the controlled device 3 on the terminal device 1 (e.g., a mobile APP). Users can formulate various control strategies for the battery wireless switch 2 on the controlled device 3 on the mobile APP. When the battery wireless switch 2 is controlled, it can send the control information to the gateway device 4, which receives the control information and controls the controlled device 3.

[0306] Please see Figure 29 In addition to including Figure 28 In addition to the functions shown, the cloud server 5 can also interact directly or indirectly with the controlled device 3 to control the controlled device 3.

[0307] In one optional implementation, the battery wireless switch 2 can join the Bluetooth network of the gateway device 4 after network configuration and communicate with the gateway device 4. The gateway device 4 can also access the Internet and communicate with other devices connected to the Internet. For example, in this embodiment, the gateway device 4, terminal device 1, and controlled device 3 can all interact with the cloud server 5. Thus, the battery wireless switch 2 configured for network configuration and the controlled device 3 capable of interacting with the cloud server 5 can be displayed on the terminal device 1 (e.g., a mobile APP). Users can formulate various control strategies for the battery wireless switch 2 on the mobile APP. When the battery wireless switch 2 is controlled, it can send the control information to the cloud server 5 through the gateway device 4. The cloud server 5 receives the control information and controls the controlled device 3 capable of interacting with the cloud server 5.

[0308] It should be noted that, Figure 27 , Figure 28 and Figure 29 The schematic diagram of the control system shown is merely an example. The control system and application scenarios of the wireless battery switch described in this application are intended to more clearly illustrate the technical solutions of this application and do not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of the control system of the wireless battery switch and the emergence of new business scenarios, the technical solutions provided in this application are also applicable to similar technical problems.

[0309] Please see Figure 30 This control method can be applied to the aforementioned wireless battery switch 2, and the control method includes:

[0310] S401, Battery wireless switch detection first trigger command.

[0311] In one alternative implementation, the first trigger command may be generated based on an operation performed on the battery wireless switch. For example, if the battery wireless switch has one or more buttons, the first trigger command may be generated by pressing a button on the battery wireless switch; or, if the battery wireless switch has a touch button, the first trigger command may be generated by touching the touch button on the battery wireless switch.

[0312] S402, the battery wireless switch switches from the first mode to the second mode in response to the first trigger command, establishes a communication connection with the terminal device, and receives the first index information sent by the terminal device, wherein the power consumption of the battery wireless switch in the first mode is less than the power consumption in the second mode.

[0313] In the first mode, the battery wireless switch establishes a correspondence with a terminal device. This correspondence can be generated by the network between the terminal device and the battery wireless switch, but no communication connection is established with the terminal device (this communication connection refers to direct communication without any other device relay, and the battery wireless switch can receive wireless signals). Although the terminal device is actually connected to the battery wireless switch at this time, the connection is established through a gateway, and the battery wireless switch can only transmit wireless signals in one direction and cannot receive wireless signals. In the second mode, the battery wireless switch establishes a correspondence with a terminal device and establishes a communication connection with the terminal device.

[0314] In a specific embodiment, in the first mode, a correspondence is established between the battery wireless switch and a terminal device. The terminal device can interact with a cloud server, and the correspondence between the battery wireless switch and the terminal device can be stored in the cloud. Therefore, the battery wireless switch can be displayed on the terminal device, but at this time the battery wireless switch cannot receive the index information sent by the terminal device.

[0315] In a specific embodiment, in the second mode, the battery wireless switch establishes a correspondence with a terminal device. The terminal device can interact with a cloud server, and the correspondence between the battery wireless switch and the terminal device can be stored in the cloud. Therefore, the battery wireless switch can be displayed on the terminal device, and the battery wireless switch establishes a communication connection with the terminal device. The battery wireless switch can receive index information sent by the terminal device.

[0316] Furthermore, in the first mode, the battery wireless switch does not establish a communication connection with the terminal device, meaning it is not directly connected. In this mode, the battery wireless switch does not need to receive information, only transmitting signals when necessary, resulting in lower power consumption. In the second mode, the battery wireless switch establishes a communication connection with the terminal device, meaning it is directly connected and can receive index information sent by the terminal device. In this mode, the battery wireless switch consumes more power. Therefore, the power consumption of the battery wireless switch in the first mode is less than that in the second mode. For example, when the battery wireless switch communicates externally via Bluetooth without a direct connection, it communicates via broadcast. Power consumption is only consumed when the switch is triggered to transmit signals or when it periodically transmits heartbeat signals, resulting in lower power consumption. With a direct connection, the battery wireless switch communicates directly with the terminal device via Bluetooth, requiring frequent two-way information exchange, thus consuming more power.

[0317] S403. The battery wireless switch determines the corresponding first text information according to the first index information, displays the first text information on the display section of the battery wireless switch to indicate the operation information of the operation section of the battery wireless switch, and disconnects the communication connection with the terminal device when a first trigger event is detected, switching from the second mode to the first mode.

[0318] In a specific embodiment, the wireless battery switch includes a display unit and an operation unit. The display unit is used to display information, and the operation unit is used to control the wireless battery switch. In an optional embodiment, the display unit can be a display screen, such as a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display screen, or an Organic Light Emitting Diode (OLED) display screen, or a touch screen. In an optional embodiment, the operation unit includes one or more buttons that can be pressed.

[0319] After receiving the first index information, the battery wireless switch determines the corresponding first text information based on the first index information and displays the first text information on the display unit of the battery wireless switch. The text content represented by the first text information can indicate the operation information of the operation unit of the battery wireless switch. In an optional embodiment, the operation unit includes at least two buttons, and the display content of the display unit can correspond to each button, indicating the operation information of each button. For example, the operation unit includes two buttons. When the first button is pressed, the corresponding living room light turns on or off, and when the second button is pressed, the corresponding dining room light turns on or off. At this time, the display area near the first button on the display unit displays "living room light," and the display area near the second button on the display unit displays "dining room light." In this way, the display content of the display unit can indicate the operation information corresponding to the two buttons respectively, so that the user can distinguish the button functions when using it. In addition, the first index information is sent to the battery wireless switch by the terminal device, wherein the first index information is determined by the terminal device based on user input. That is to say, the display content on the display unit of the battery wireless switch can be configured by the user through the terminal device.

[0320] Furthermore, when the battery wireless switch detects the first trigger event, it disconnects the communication connection with the terminal device, that is, it disconnects the direct connection with the terminal device. After disconnecting the direct connection, the battery wireless switch cannot receive the index information sent by the terminal device. After switching from the second mode to the first mode, the power consumption of the battery wireless switch decreases. In an optional embodiment, the battery wireless switch can actively disconnect the communication connection with the terminal device. In this case, the first trigger event can be that the battery wireless switch has not been operated for a first specified time, where the first specified time is set to 8s to 15s. Preferably, the first specified time is set to 10s, so when the battery wireless switch has not been operated for more than 10s, the communication connection with the terminal device is disconnected. In another optional embodiment, the battery wireless switch can also passively disconnect the communication connection with the terminal device. In this case, the first trigger event can be receiving a disconnection message sent by the terminal device. Specifically, after exiting the first configuration interface, the terminal device generates a disconnection message and sends it outward. When the battery wireless switch receives the disconnection message, it disconnects the communication connection with the terminal device. The first configuration interface of the terminal device is used to configure the display content on the display of the battery wireless switch.

[0321] As can be seen, in the above embodiments, when the battery wireless switch detects the first trigger command, it switches from the first mode to the second mode, establishes a communication connection with the terminal device, and receives the first index information sent by the terminal device. At this time, the power consumption of the battery wireless switch in the second mode is greater than that in the first mode. The battery wireless switch determines the first text information based on the first index information and displays the first text information on the display unit. The text content represented by the first text information can indicate the operation information of the operation unit, so that the user can distinguish the function of the operation unit when using it. The first index information is determined by the terminal device based on the user input. That is to say, the display content on the display unit of the battery wireless switch can be configured by the user through the terminal device. When the battery wireless switch detects the first trigger event, it disconnects the communication connection with the terminal device and switches from the second mode back to the first mode. At this time, the power consumption of the battery wireless switch decreases. In this way, the power consumption of the battery wireless switch is low in the first mode. When it is necessary to configure the display content on the display unit, the battery wireless switch switches to the second mode and connects directly with the terminal device. At this time, the power consumption is higher. The configuration process can also trigger the disconnection of the direct connection and switch back to the first mode, at which time the power consumption decreases again. Since the switch is powered by a battery, this can reduce the power consumption of the battery wireless switch during use, extend the battery life, and eliminate the need for frequent battery replacements.

[0322] Please see Figure 31 This control method is applicable to the aforementioned wireless battery switch 2, and the control method includes:

[0323] S501, First trigger command for detecting battery wireless switch.

[0324] In a specific embodiment, the battery wireless switch includes a display section and an operation section, wherein the display section is used to display information and the operation section is used to control the battery wireless switch.

[0325] In one optional embodiment, the operating unit of the wireless battery switch includes at least two operating areas, and the display unit of the wireless battery switch includes at least two display areas. The at least two display areas are used to display at least two different sets of text information corresponding to the at least two operating areas, making the at least two operating areas distinguishable. Typically, a switch has at least two operating areas, making it difficult for the user to distinguish the functions corresponding to each area during use. In this embodiment, the wireless battery switch has a display unit that can display at least two different sets of text information, each corresponding to an operating area on the switch. This allows the user to distinguish the operating areas based on the content displayed on the display unit and press the corresponding operating area as needed.

[0326] For example, such as Figure 32aAs shown, the operation unit includes two operation areas, namely operation area one and operation area two, and the display unit includes two display areas, namely display area one and display area two. Display area one and display area two can display different text information. Display area one corresponds to operation area one and can indicate the operation information of operation area one; display area two corresponds to operation area two and can indicate the operation information of operation area two, so that the user can distinguish between operation area one and operation area two based on the displayed content. Furthermore, the display content of display area one and display area two can be configured by the user through the terminal device. Figure 32a The number of operation areas, the number of display areas, the positions of the operation areas, and the positions of the display areas shown are merely examples, and are not limited to specific embodiments. Figure 32a As shown in the image.

[0327] Furthermore, the first trigger command is generated based on a first specified external action applied to any operating area. That is, the first trigger command is generated when the user applies the first specified external action to any operating area. In an optional implementation, the operating area can be a button, and the first specified external action can be a pressing action applied to any button for a second specified time T2, where T2 > ta, ta ∈ [3s, 10s]. For example, if the operating area is a button, preferably, ta is 5s, therefore T2 > 5s. When the user presses any button for more than 5 seconds, the battery wireless switch detects the first trigger command. It should be noted that ta∈[3s, 10s]. When ta is 3s, T2>3s. When the user presses any button for more than 3s, the battery wireless switch detects the first trigger command. The minimum value of ta is set to 3s so that the battery wireless switch can distinguish between a brief button press and a button press for more than a certain time before detecting the first trigger command, thus avoiding the battery wireless switch from mistakenly detecting the first trigger command due to a short button press. When ta is 10s, T2>10s. When the user presses any button for more than 10s, the battery wireless switch detects the first trigger command. The maximum value of ta is set to 10s so that the battery wireless switch can respond promptly to a button press exceeding a certain time and detect the first trigger command in a timely manner, avoiding excessive delay that affects the user experience.

[0328] In another optional embodiment, the operating unit of the wireless battery switch further includes at least four operating areas, and the display unit of the wireless battery switch is located in the center of the at least four operating areas, so that the display unit can intuitively correspond to the at least four operating areas. In this embodiment, when the switch has four operating areas, the four operating areas are respectively arranged around the switch, and the display unit is arranged in the center of the four operating areas. This can make full use of the area of ​​the switch panel, satisfy the aesthetic requirements, and also make the display unit intuitively correspond to the at least four operating areas, so that the user can distinguish the operating areas according to the display content during use and press the corresponding operating area as needed.

[0329] For example, such as Figure 32b As shown, the operation unit includes four operation areas: operation area one, operation area two, operation area three, and operation area four. The display unit includes four display areas: display area one, display area two, display area three, and display area four. The display unit is located in the center of the four operation areas, so that each of the four display areas corresponds to one of the four operation areas. Each of the four display areas can display different text information, allowing the user to distinguish between the four operation areas based on the displayed content. Furthermore, the display content of the four display areas can be configured by the user through the terminal device. Figure 32b The number of operation areas, the number of display areas, the positions of the operation areas, and the positions of the display areas shown are merely examples, and are not limited to specific embodiments. Figure 32b As shown in the image.

[0330] In one optional implementation, at least two different sets of text information displayed on the display unit correspond to different operation actions within the same operation area. For example, the two sets of text information displayed on the display unit are "fan" and "air conditioner." For the same operation area, different operation actions include pressing once, pressing twice, and long pressing. For instance, pressing once on an operation area corresponds to turning on the fan, and pressing twice on the same operation area corresponds to turning on the air conditioner. Thus, one operation area can correspond to multiple functions, saving the number of operation areas, reducing the area of ​​the switch panel, and the content displayed on the display unit can indicate different operation actions within the same operation area, making it easier for the user to distinguish them during use.

[0331] In another alternative implementation, the display unit shows at least two different sets of text information corresponding to the same or different operating actions in different operating areas. For example, the two sets of text information displayed on the display unit are "living room light" and "bedroom light," corresponding to the same or different operating actions in two operating areas. For instance, pressing one operating area once corresponds to turning on the living room light, and pressing the other operating area once corresponds to turning on the bedroom light, or pressing the other operating area twice corresponds to turning on the bedroom light. In this way, the content displayed on the display unit can indicate the same or different operating actions in different operating areas, so that the user can distinguish them during use.

[0332] S502, the battery wireless switch responds to the first trigger command by broadcasting a second message.

[0333] In a specific embodiment, the battery wireless switch can communicate externally via wireless communication, which can be any method such as radio frequency, Bluetooth, Wi-Fi, ZigBee, etc. For example, the battery wireless switch communicates externally via Bluetooth. When a first trigger command is detected, the battery wireless switch responds to the first trigger command by broadcasting a second message via Bluetooth, wherein the second message is used to indicate that the battery wireless switch can be connected.

[0334] S503, The terminal device that establishes a corresponding relationship with the battery wireless switch scans the second message and establishes a communication connection with the battery wireless switch.

[0335] In a specific embodiment, the terminal device scans the second message, where the terminal device is one that has established a correspondence with the battery wireless switch, and the second message indicates that the battery wireless switch can be connected. When in use, the battery wireless switch can establish a correspondence with a terminal device, and this correspondence is stored on a cloud server. The terminal device can interact with the cloud server, allowing it to display the battery wireless switch with which the correspondence has been established. It should be noted that only terminal devices that have established a correspondence with the battery wireless switch can scan its broadcast second message. This ensures that only terminal devices that have established a correspondence with the battery wireless switch can display it and establish a communication connection to configure it, preventing other terminal devices from having configuration permissions and ensuring the security of the battery wireless switch configuration. Furthermore, the terminal device only recognizes the second message of the battery wireless switch when in the configuration interface, avoiding interference from meaningless configuration information on the terminal device in use. Of course, in other embodiments, the corresponding terminal devices can always be in a state where they can recognize the second message. In this way, as long as the battery wireless switch transmits the second message, the terminal device can automatically bring up the interface for configuring the battery wireless switch through the second message, increasing the efficiency of configuration.

[0336] After scanning the second message, the terminal device sends a second connection request message to the battery wireless switch. Upon receiving this message, the battery wireless switch sends a second connection confirmation message to the terminal device. Upon receiving this confirmation message, the terminal device establishes a communication connection with the battery wireless switch. At this point, the battery wireless switch is directly connected to the terminal device and can receive index information sent by the terminal device.

[0337] S504, The battery wireless switch sends the second index information stored in the battery wireless switch to the terminal device.

[0338] After direct connection, the battery wireless switch sends second index information to the terminal device. This second index information is stored in the battery wireless switch and used to determine the corresponding second text information. This second text information is displayed on the display unit and indicates the operation information of the operation unit. The second index information is stored at a second storage time, and the first index information is stored at a first storage time. The second storage time is before the first storage time, and the battery wireless switch does not store any other index information between the second and first storage times.

[0339] In a specific embodiment, the display content on the display unit of the battery wireless switch can be configured by the user via a terminal device. After the terminal device configures the battery wireless switch, the battery wireless switch saves the received index information. Specifically, during a configuration process, the battery wireless switch receives first index information sent by the terminal device and stores the first index information at a first storage time; during a configuration process prior to the above configuration process, the battery wireless switch receives second index information sent by the terminal device and stores the second index information at a second storage time. It is understood that the second storage time is before the first storage time, and the battery wireless switch does not store other index information between the second storage time and the first storage time. That is, the configuration process of receiving the second index information precedes the configuration process of receiving the first index information, and there are no other configuration processes in between the two configuration processes. In addition, after receiving the second index information, the battery wireless switch determines the corresponding second text information based on the second index information and displays the second text information on the display unit to indicate the operation information of the operation unit. That is, before receiving the first index information, the display unit of the battery wireless switch displays the second text information, and the operation information indicated by the second text information is the operation information of the operation unit before reconfiguration. This allows for the display of accurate second text information on different terminals when configuring a wireless battery switch.

[0340] S505, The terminal device receives the second index information and displays the text content represented by the second text information.

[0341] In a specific embodiment, after direct connection, the battery wireless switch sends second index information to the terminal device. The terminal device processes the second index information to obtain text content represented by second text information and displays it. The second text information is obtained based on the second index information and is displayed on the display of the battery wireless switch; that is, the content displayed on the terminal device is consistent with the content displayed on the battery wireless switch's display. For example, after direct connection, before configuration begins, the battery wireless switch sends the second index information stored after the last configuration to the terminal device. After processing, the terminal device displays "Conference Room Light," meaning that the corresponding display on the battery wireless switch's display is also "Conference Room Light," which is stored by the battery wireless switch after the last successful configuration. The user can reconfigure the display content on the battery wireless switch's display through the terminal device, for example, reconfiguring "Conference Room Light" to "Office Light," etc.

[0342] The above embodiments enable the synchronization of the current display content on the display of the battery wireless switch to the terminal device after direct connection, so that even if different terminal devices are used, the current display content on the display of the battery wireless switch can be displayed on the page, which can be used as a reference for the user, for example, when the user reconfigures the display content of the display of the battery wireless switch.

[0343] S506, The battery wireless switch receives a first configuration message sent by the terminal device, wherein the first configuration message includes first index information of the text to be configured.

[0344] In a specific embodiment, after direct connection, the display content on the display unit of the battery wireless switch can be configured by the user through a terminal device. During the configuration process, the user inputs the text to be configured through the terminal device. The terminal device obtains first index information based on this text and then sends the first index information in a first configuration message to the battery wireless switch.

[0345] In one optional implementation, the first index information is the first encoded information of the text to be configured, and the terminal device obtains the first encoded information based on the text to be configured. Specifically, after direct connection, the terminal device generates a first configuration interface, which is used to configure the display content on the display unit of the battery wireless switch. The user can input the text to be configured on the first configuration interface, and then the terminal device obtains the first encoded information of the text to be configured and sends the first encoded information in a first configuration message to the battery wireless switch.

[0346] For example, the first encoding information can be Unicode encoding. After direct connection, the terminal device generates a first configuration interface. The user enters the text to be configured on the first configuration interface, and then the terminal device obtains the Unicode encoding of the text to be configured and sends the Unicode encoding of the text to be configured in the first configuration message to the battery wireless switch.

[0347] In another optional implementation, the first index information is the second encoding information of the text to be configured. The terminal device obtains the first encoding information based on the text to be configured, and then determines the second encoding information based on the first encoding information of the text to be configured. Specifically, after direct connection, the terminal device generates a first configuration interface, which is used to configure the display content on the display unit of the battery wireless switch. The user can input the text to be configured on the first configuration interface. The terminal device obtains the first encoding information of the text to be configured, then determines the second encoding information based on the first encoding information, and sends the second encoding information in the first configuration message to the battery wireless switch.

[0348] For example, the first encoding information can be Unicode encoding, and the second encoding information can be GB2312 encoding. After direct connection, the terminal device generates a first configuration interface. The user enters the text to be configured on the first configuration interface. The terminal device obtains the Unicode encoding of the text to be configured, and then determines the GB2312 encoding of the text to be configured based on the Unicode encoding of the text to be configured. The GB2312 encoding of the text to be configured is then carried in the first configuration message and sent to the battery wireless switch.

[0349] When the first index information is the GB2312 encoding of the text to be configured, the following is a detailed explanation of the specific process by which the terminal device determines the GB2312 encoding of the text to be configured based on the Unicode encoding of the text to be configured.

[0350] In one optional implementation, when the text to be configured is a number or a letter, the second encoding information G = G1 + (U - U1), where G1 is the starting encoding of the number or letter in the encoding table corresponding to the second encoding information, U is the first encoding information of the text to be configured, and U1 is the starting encoding of the number or letter in the encoding table corresponding to the first encoding information.

[0351] Specifically, the first encoding information is Unicode, the second encoding information is GB2312, and the text to be configured is numbers or letters. Numbers include 0-9, and letters include uppercase and lowercase letters. Uppercase letters include A-Z, and lowercase letters include a-z. The encoding values ​​of numbers or letters in the GB2312 encoding table are consecutive, and their encoding values ​​in the Unicode encoding table are also consecutive.

[0352] In the GB2312 encoding table, for numbers 0 to 9, the encoding values ​​for 0, 1, 2, 3, ..., 9 are A3B0, A3B1, A3B2, A3B3, ..., A3B9, respectively. For uppercase letters A to Z, the encoding values ​​for A, B, C, D, ..., Z are A3C1, A3C2, A3C3, A4C4, ..., A3DA, respectively. For lowercase letters a to z, the encoding values ​​for a, b, c, d, ..., z are A3E1, A3E2, A3E3, A4E4, ..., A3FA, respectively. It can be seen that in the GB2312 encoding table, numbers are arranged in ascending order, and the encoding values ​​of numbers are consecutive; uppercase / lowercase letters are arranged in alphabetical order, and the encoding values ​​of uppercase / lowercase letters are also consecutive. It should be noted that the encoding values ​​for the numbers and letters above are in hexadecimal.

[0353] In the Unicode encoding table, the Unicode encoding and ASCII encoding are the same for numbers and letters (including uppercase and lowercase letters). That is, for numbers 0-9, the encoding values ​​for 0, 1, 2, 3, ..., 9 are 30, 31, 32, 33, ..., 39 respectively. For uppercase letters A-Z, the encoding values ​​for A, B, C, D, ..., Z are 41, 42, 43, 44, ..., 5A respectively. For lowercase letters a-z, the encoding values ​​for a, b, c, d, ..., z are 61, 62, 63, 64, ..., 7A respectively. It can be seen that in the Unicode encoding table, numbers are arranged in ascending order, and the encoding values ​​of numbers are consecutive; uppercase / lowercase letters are arranged in alphabetical order, and the encoding values ​​of uppercase / lowercase letters are also consecutive. It should be noted that the encoding values ​​for the numbers and letters above are in hexadecimal.

[0354] When the input text to be configured is numbers or letters, the GB2312 encoding of the text to be configured is G = G1 + (U - U1), where G1 is the starting encoding of numbers or letters in the GB2312 encoding table, U is the Unicode encoding of the input text to be configured, and U1 is the starting encoding of numbers or letters in the Unicode encoding table. Specific explanations are provided below for each case.

[0355] When the input text to be configured is a number, G1 is the starting code of the number in the GB2312 encoding table, which is A3B0, and U1 is the starting code of the number in the Unicode encoding table, which is 30. Therefore, the GB2312 encoding of the text to be configured is G = A3B0 + (U - 30), where U is the Unicode encoding of the input number. For example, if the input number is "2", then U is 32, so G = A3B0 + (32 - 30) = A3B2, that is, the GB2312 encoding of the number "2" is A3B2.

[0356] When the input text to be configured is in uppercase letters, G1 is the starting code for uppercase letters in the GB2312 encoding table, which is A3C1, and U1 is the starting code for uppercase letters in the Unicode encoding table, which is 41. Therefore, the GB2312 encoding of the text to be configured is G = A3C1 + (U - 41), where U is the Unicode encoding of the input uppercase letter. For example, if the input uppercase letter is "D", then U is 44, so G = A3C1 + (44 - 41) = A3C4, meaning the GB2312 encoding of the uppercase letter "D" is A3C4.

[0357] When the input text to be configured is lowercase, G1 is the starting code for lowercase letters in the GB2312 encoding table, which is A3E1, and U1 is the starting code for lowercase letters in the Unicode encoding table, which is 61. Therefore, the GB2312 encoding of the text to be configured is G = A3E1 + (U - 61), where U is the Unicode encoding of the input lowercase letter. For example, if the input lowercase letter is "d", then U is 64, so G = A3E1 + (64 - 61) = A3E4, meaning the GB2312 encoding of the lowercase letter "d" is A3E4.

[0358] In another optional implementation, when the text to be configured is Chinese characters, the second encoding information is obtained by extracting a specified number of characters after a specified character from a preset string. The preset string consists of at least two second encoding information arranged in a specified order, such that the order of the Chinese characters represented by each second encoding information in the preset string is the same as the order of the Chinese characters represented by each first encoding information arranged in ascending order of encoding. The specified character is the i-th character in the preset string, i = (U-U2) × a, where U is the first encoding information of the text to be configured, U2 is the starting encoding of the Chinese character in the encoding table corresponding to the first encoding information, and a is the number of characters in one second encoding information in the preset string. The specified number is the same as a.

[0359] Specifically, the first encoding information is Unicode, the second encoding information is GB2312, and the text to be configured is Chinese characters. The Unicode encoding table includes 20,902 Chinese characters, with the starting encoding of each character being 19968 (decimal). The range of encoding values ​​for all Chinese characters is 19968 to 40869, and the encoding values ​​of Chinese characters in the Unicode encoding table are consecutive. The Unicode encoding values ​​of Chinese characters are shown in Table 1.

[0360] Table 1. Unicode encoding values ​​for Chinese characters

[0361]

[0362] Among them, the Unicode codes of the Chinese characters in Table 1 are all in decimal.

[0363] It should be noted that a total of 6,763 commonly used Chinese characters are included in the GB2312 encoding table, which basically meets the needs of computer processing of Chinese characters. The Chinese characters included in the GB2312 encoding table can meet the usage requirements of most Chinese characters in daily life. On the basis of the GB2312 encoding table, a part of characters (including rare characters such as personal names and ancient Chinese) are added to form the GBK encoding table. Among them, a total of 21,886 Chinese characters and characters are included in the GBK encoding table, and it is completely compatible with the GB2312 encoding table. That is to say, the GBK encoding table contains all the Chinese characters in the GB2312 encoding table, and in the GB2312 encoding table, the GB2312 code of any Chinese character is the same as its GBK code.

[0364] Specifically, the Unicode encoding table includes 20,902 Chinese characters, and these 20,902 Chinese characters all have corresponding GBK codes. The Unicode codes of Chinese characters and the corresponding GBK codes are shown in Table 2.

[0365] Table 2 Corresponding Table of Unicode Codes and GBK Codes of Chinese Characters

[0366]

[0367] Among them, the Unicode codes of the Chinese characters in Table 2 are in decimal, and the GBK codes of the Chinese characters are in hexadecimal.

[0368] When the input text to be configured is a Chinese character, the GBK code of the input Chinese character is obtained by intercepting a specified number of characters after the specified character from a preset string. Among them, the preset string is composed of at least two GBK codes arranged in a specified order, so that the arrangement order of the Chinese characters represented by each GBK code in the preset string is the same as the arrangement order of the Chinese characters represented by each Unicode code arranged from small to large.

[0369] According to Table 2, each Unicode code arranged from small to large is 19968, 19969, 19970, 19971, …, 40868 and 40869, and the Chinese characters represented are 一, 丁, 丂, 七, …, 龤 and 龥 respectively. Therefore, the arrangement order of the Chinese characters represented by each GBK code in the preset string should also be the same as the arrangement order of 一, 丁, 丂, 七, …, 龤 and 龥, so as to determine the arrangement order of each GBK code included in the preset string. Thus, the preset string can be obtained as "D2BBB6A18140C6DF…FD9AFD9B".

[0370] The GBK encoding of the input Chinese character is obtained by intercepting a specified number of characters after a specified character from a preset string. Here, the specified character is the i-th character in the preset string, where i = (U - U2) × a, U is the Unicode encoding of the input Chinese character, U2 is the starting encoding of Chinese characters in the Unicode encoding table, which is 19968; a is the number of characters of a GBK encoding in the preset string, which is 4; the specified number is the same as a, that is, the specified number is also 4. Thus, i = (U - 19968) × 4 can be obtained. That is to say, the GBK encoding of the input Chinese character can be obtained by intercepting 4 characters after the i-th character from the i-th character in the preset string.

[0371] For example, the input Chinese character is "七", at this time U is 19971, and i = (19971 - 19968) × 4 = 12 is obtained. In the preset string "D2BBB6A18140C6DF…FD9AFD9B", 4 characters after the 12th character are intercepted from the 12th character. The 12th character is "0". That is to say, starting from the 12th character "0" in "D2BBB6A18140C6DF…FD9AFD9B", 4 characters "C6DF" after "0" are intercepted, and the GBK encoding of the Chinese character "七" is obtained as C6DF.

[0372] It can be understood that the display content on the display part of the battery wireless switch can be configured by the user through the terminal device. When configuring, the Chinese characters input by the user are usually common Chinese characters. That is to say, the Chinese characters included in the GB2312 encoding table can basically cover the Chinese characters input by the user. The GBK encoding table contains all the Chinese characters in the GB2312 encoding table. And in the GB2312 encoding table, the GB2312 encoding of any Chinese character is the same as the GBK encoding of that Chinese character. To sum up, for the Chinese character input by the user, after obtaining the GBK encoding of the Chinese character, the GB2312 encoding of the Chinese character (the same as the GBK encoding of the Chinese character) can be obtained.

[0373] S507. The battery wireless switch processes the first index information to read the first text information corresponding to the first index information from the memory.

[0374] Specifically, the battery wireless switch is provided with a display part, and the text content represented by the first text information is consistent with the text to be configured input by the user. In this way, after the first text information is displayed on the display part, the display content of the display part is also consistent with the text to be configured input by the user.

[0375] In a specific embodiment, the battery wireless switch also includes an operation unit, which comprises at least two operation areas. The battery wireless switch further includes a memory for storing at least two text messages arranged in a predetermined order. Since the memory stores at least two text messages, for user-inputted configuration text, at least two text messages can be read from the memory and displayed on the display unit, allowing the display unit to show different text messages and thus distinguishing the different operation areas of the battery wireless switch.

[0376] In one optional implementation, the text information stored in the memory is dot matrix data, with the number of pixels being a×b, where a∈[12, 16], b∈[12, 16], a=b, where a represents the number of pixels in the horizontal direction and b represents the number of pixels in the vertical direction. Optionally, a=12, b=12, meaning the number of pixels in the dot matrix data is 12×12, that is, when the dot matrix data is displayed on the display of the battery wireless switch, the number of pixels in the horizontal direction is 12, and the number of pixels in the vertical direction is also 12; preferably, a=16, b=16, meaning the number of pixels in the dot matrix data is 16×16, that is, when the dot matrix data is displayed on the display of the battery wireless switch, the number of pixels in the horizontal direction is 16, and the number of pixels in the vertical direction is also 16.

[0377] It should also be noted that the length of the dot matrix data for a Chinese character is c bytes, where c ∈ [24, 32]. For example, when the pixel size of the dot matrix data is 12×12, the dot matrix data for a Chinese character occupies 24 bytes; and when the pixel size of the dot matrix data is 16×16, the dot matrix data for a Chinese character occupies 32 bytes. Furthermore, the pixel size of the dot matrix data is a×b, where a ∈ [12, 16] and b ∈ [12, 16]. The range of a and b ensures that the displayed content is appropriate after the dot matrix data is displayed on the display unit of the battery wireless switch, avoiding unclear display due to excessively small pixels or insufficient display content due to excessively large pixels.

[0378] Furthermore, in one optional embodiment, 'a' can be set to be equal to 'b'. In this case, the horizontal pixels are the same as the vertical pixels. This ensures that the Chinese characters displayed on the battery wireless switch's display unit have a square and aesthetically pleasing shape. In another optional embodiment, 'a' can be set to be different from 'b'. In this case, the horizontal pixels are different from the vertical pixels. This allows the shape of the Chinese characters displayed on the battery wireless switch's display unit to change according to the values ​​of 'a' and 'b', thus satisfying personalized display requirements.

[0379] During the configuration process of the battery wireless switch, the terminal device sends the first index information of the text to be configured in a first configuration message to the battery wireless switch. The battery wireless switch processes the first index information to read the corresponding dot matrix data from the memory and displays the dot matrix data on the display unit. It can be understood that if the terminal device directly sends the dot matrix data of the text to be configured to the battery wireless switch, when the pixel size of the dot matrix data is 12×12, the dot matrix data of one Chinese character occupies 24 bytes, meaning that configuring one Chinese character requires transmitting 24 bytes; when the pixel size of the dot matrix data is 16×16, the dot matrix data of one Chinese character occupies 32 bytes, meaning that configuring one Chinese character requires transmitting 32 bytes. However, if the terminal device sends the first index information of the text to be configured to the battery wireless switch, when the first index information is Unicode encoded, the Unicode encoding of one Chinese character occupies 2 to 4 bytes, meaning that configuring one Chinese character requires transmitting 2 to 4 bytes; when the first index information is GB2312 encoded, the GB2312 encoding of one Chinese character occupies 2 bytes, meaning that configuring one Chinese character requires transmitting 2 bytes. Therefore, the number of bytes occupied by the index information is less than the number of bytes occupied by the dot matrix data. Consequently, the configuration message required to transmit the index information is also less than the configuration message required to transmit the dot matrix data. In this way, the terminal device can send the index information instead of the dot matrix data to the battery wireless switch, which can save communication resources and power consumption.

[0380] In one optional implementation, the terminal device and the battery wireless switch are directly connected via Bluetooth. In this case, the first configuration message is a Bluetooth message, and a single Bluetooth message can contain a maximum of 31 bytes for data transmission. The dot matrix data of a Chinese character occupies at least 24 bytes; therefore, a single first configuration message can transmit the dot matrix data of at most one Chinese character. The first index information of a Chinese character occupies 2 to 4 bytes. When the first index information occupies 2 bytes, a single first configuration message can transmit up to 15 Chinese characters; when it occupies 3 bytes, it can transmit up to 10 Chinese characters; and when it occupies 4 bytes, it can transmit up to 7 Chinese characters. In summary, a single first configuration message can configure multiple Chinese characters. Thus, the terminal device sends the index information instead of the dot matrix data to the battery wireless switch via Bluetooth messages, saving both communication resources and power consumption.

[0381] The following is a detailed explanation of the process by which the battery wireless switch processes the first index information and reads the first text information corresponding to the first index information from the memory.

[0382] In one optional implementation, the first index information is GB2312 encoding, and the first text information is dot matrix data. That is, the memory of the battery wireless switch stores the dot matrix data of all Chinese characters in the GB2312 encoding table, and all the dot matrix data are arranged in the order of all Chinese characters in the GB2312 encoding table. For example, the encoding of some Chinese characters in the GB2312 encoding table is shown in Table 3.

[0383] Table 3. Encoding table for some Chinese characters in the GB2312 encoding table.

[0384] coding +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F B0A0 ah Ah Angstrom suffer Why well sorrow Ai cancer Ami short Ai hinder like narrow B0B0 saddle ammonia install I according to dark shore amine case dirty hold head high Ang concave Ao boil Soar B0C0 jacket proud profound regret Australia Ba eight dig horn Bar fence eight scar -bar pull Postscript B0D0 target Bundle rake dam Overlord stop dad white cypress Hundred put Bai defeat bye barnyard grass spot B0E0 class move pull Ban Award plate version Dress up mix Accompanied valve Half manage trip state help B0F0 Bang List bladder tie Great pound mussel pound next to slander bud Cell Bag praise peel coding +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F B1A0 Thin hail Save Fort full precious hug Report violence Leopard abalone burst cup monument sad B1B0 humble north generation back cowry barium times Bei Preparation exhausted Baking quilt Run benzene Book fool B1C0 collapse stretch No pump jump burst force nose Compare rustic Pen Him Bi castor shield complete B1D0 shoot Bi currency shelter paralysis close our Disadvantages must Pi wall arm avoid Your Majesty whip side B1E0 Editor derogatory flat Convenient Change Bian Distinguish debate braid all over Standard Biao fat surface turtle hold back B1F0 Don't deflated Bin Bin near coast Guest Exile soldiers ice handle C Bing cake Bing

[0385] The codes in Table 3 are in hexadecimal. In one optional implementation, the pixel size of the dot matrix data is 12×12. The following is a specific explanation using the pixel size of the dot matrix data as an example. The Chinese characters contained in Table 3 and their corresponding dot matrix data (12×12) are shown in Table 4.

[0386] Table 4 shows the correspondence between some Chinese characters and dot matrix data (12×12).

[0387] Chinese character dot matrix data ah FE 02FE 00FE 32CE F8 8A FE 02 00 03 01 03 00 0F 02 01 00 08 0F 00 00 Ah FE 02 32CE 00F2 12F2 02FE 02 00 0F 02 02 01 00 03 01 09 08 0F 00 00 Angstrom 10 10FF 10 48 3C 2A E9 28 2C 18 00 04 04 03 02 09 05 03 01 03 05 09 00 … … praise 12 0A FE 02A2 EF 2A FA 2A 6E A2 00 04 04 02 0E 09 04 01 02 04 0A 08 00 Peel 51 95 15F5 15 9F 50 00FC 00FF 00 04 02 09 0F 01 02 04 00 01 08 0F 00 Thin 4A 92 02 17F2 52FA 57 52FA 12 00 08 04 00 01 03 05 01 09 0F 01 01 00 Hail 8C 45B5 AD A5 AF A5 2D 25E5 0C 00 00 00 07 0A 0A 0A 0B 08 0A 0B 0C 00 Protect 20 10FC 03 40 5E 52F2 52 5E 40 00 00 00 0F 00 04 02 01 0F 01 02 04 00 … … Pancake 08E7 14 0C 80 89FA 88 88FA 89 00 00 0F 04 02 00 08 07 00 00 0F 00 00 Bing 78 00FF 08F6 12 92 7E 92 12F2 00 08 06 01 02 0F 01 00 00 00 09 0F 00

[0388] The dot matrix data in Table 4 is also in hexadecimal, and the pixels of the dot matrix data in Table 4 are 12×12. The dot matrix data of one Chinese character occupies 24 bytes.

[0389] Since the dot matrix data of Chinese characters in the memory of the battery wireless switch are arranged in the order of Chinese characters in the GB2312 encoding table, according to Table 4, the dot matrix data of some Chinese characters in the memory of the battery wireless switch is shown in Table 5.

[0390] Table 5. Dot matrix data (12×12) of some Chinese characters in the memory of the battery wireless switch.

[0391]

[0392]

[0393] The dot matrix data in Table 5 is also in hexadecimal, and Table 5 is intended to show the order of the dot matrix data of Chinese characters in the memory, without limiting the specific storage format of the dot matrix data in the memory.

[0394] As shown in Table 3, in the GB2312 coding table, there are no corresponding Chinese characters for the coding values B0A0, B0FF, B1A0, and B1FF (see the blanks in Table 3). As shown in Table 5, the memory of the battery wireless switch stores the dot matrix data of all Chinese characters in the GB2312 coding table, and corresponding to the blanks in the GB2312 coding table, the data stored in the memory is "FF FFFF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF". For example, in Table 5, the dot matrix data corresponding to the Chinese character "啊" is "FE 02FE 00FE 32CE F8 8A FE 02 00 03 01 03 00 0F 02 01 00 08 0F 00 00". Referring to Table 3, there is a blank before "啊", so the data stored before the dot matrix data of "啊" in Table 5 is "FF…FF". Another example, in Table 5, the dot matrix data corresponding to the Chinese character "剥" is "51 9515F5 15 9F 50 00FC 00FF 00 04 02 09 0F 01 02 0400 01 08 0F 00". Referring to Table 3, there is also a blank after "剥", so the data stored after the dot matrix data of "剥" in Table 5 is also "FF…FF". For other blanks, refer to the above description and will not be elaborated here.

[0395] In a specific implementation manner, the memory of the battery wireless switch stores the dot matrix data of all Chinese characters in the GB2312 coding table, and all the dot matrix data is arranged in the order of all Chinese characters in the GB2312 coding table. The battery wireless switch calculates a storage address based on the received GB2312 coding, where the storage address is the starting address where the dot matrix data corresponding to the input Chinese character is stored in the memory, and then reads data of a specified byte length from the memory starting from this storage address, so as to obtain the dot matrix data corresponding to the input Chinese character, where the specified byte length is the byte length occupied by the dot matrix data of a Chinese character.

[0396] The following specifically describes the process by which the battery wireless switch calculates a storage address based on the received GB2312 coding.

[0397] In an optional implementation, the storage address S calculated according to the received GB2312 encoding satisfies the formula: S = S1 + [G - G2 - (H1 - H2) × 160] × b. Where S1 is the starting address of the dot matrix data of all Chinese characters stored in the memory, G is the received GB2312 encoding, G2 is the starting encoding related to the Chinese character in the GB2312 encoding table, H1 is the high byte of the received GB2312 encoding, H2 is the high byte of the starting encoding related to the Chinese character in the GB2312 encoding table, and b is the byte length occupied by the dot matrix data of a Chinese character stored in the memory.

[0398] Specifically, according to Table 3 and Table 5, the starting encoding of Chinese characters in the GB2312 encoding table is B0A1. There is no corresponding Chinese character for the encoding value B0A0 before B0A1, but the corresponding dot matrix data in the memory of the battery wireless switch is "FF...FF". Therefore, the starting encoding related to the Chinese character is B0A0, that is, G2 is B0A0. For example, if the input Chinese character is "贝", according to Table 3, the GB2312 encoding received by the battery wireless switch is B1B4, and the high byte is B1. For the starting encoding B0A0 related to the Chinese character, the high byte is B0, that is, H2 is B0.

[0399] According to Table 3, there is an interval of A0 between two adjacent areas. For example, the encoding value at the end of the first area (B0A0 - B0F0) is B0FF (the dot matrix data corresponding to B0FF in Table 5 is filled with "FF...FF"), and there is no corresponding Chinese character starting from B100. The encoding value at the start of the second area (B1A0 - B1F0) is B1A0 (the dot matrix data corresponding to B1A0 in Table 5 is filled with "FF...FF"). Therefore, the interval between the first area and the second area is: B1A0 - B100 = A0, that is, there are A0 encoding values that are blank between two adjacent areas.

[0400] The value obtained from (H1 - H2) is the number of zones that the received GB2312 code is different from the first zone in Table 3. For example, if the input Chinese character is "贝", the received GB2312 code is B1B4, B1 - B0 = 1, that is, the number of zones that B1B4 is different from the first zone in Table 3 is 1, so it is determined that B1B4 is in the second zone. Since there are A0 blank code values between two adjacent zones, after determining the number of zones that the received GB2312 code is different from the first zone in Table 3, the number of blank code values between the zone where the received GB2312 code is located and the first zone in Table 3 can be determined, that is, (H1 - H2)×A0. A0 is in hexadecimal, and when converted to decimal, it is 160, that is, (H1 - H2)×160. In addition, b is the byte length occupied by the dot matrix data of a Chinese character. The pixels of the dot matrix data are 12×12, and the dot matrix data of a Chinese character occupies 24 bytes, that is, b is 24.

[0401] After determining that the number of blank code values is (H1 - H2)×160, the position of the dot matrix data corresponding to the received GB2312 code among all the dot matrix data in the memory can be determined, that is, [G - G2 - (H1 - H2)×160]×b, that is, subtract the starting code related to the Chinese character from the received GB2312 code, then subtract the number of blank code values, calculate the product of the difference and the byte length occupied by the dot matrix data of a Chinese character, and finally obtain the position of the dot matrix data corresponding to the received GB2312 code among all the dot matrix data in the memory.

[0402] Since there are other data stored in the memory of the battery wireless switch in addition to the dot matrix data of Chinese characters, after determining the starting address S1 of all the dot matrix data of Chinese characters stored in the memory, the storage address S of the dot matrix data corresponding to the input Chinese character in the memory can be determined as S = S1 + [G - G2 - (H1 - H2)×160]×b. For example, when the pixels of the dot matrix data are 12×12, S = S1 + [G - B0A0 - (H1 - B0)×160]×24. In an optional implementation manner, the starting address S1 of all the dot matrix data of Chinese characters stored in the memory can be 0x40000 (hexadecimal). It should be noted that S1 being 0x40000 is only an example and does not limit the starting address of all the dot matrix data of Chinese characters stored in the memory in practice. All the dot matrix data of Chinese characters can also start to be stored in the memory of the battery wireless switch from other starting addresses.

[0403] For example, the input Chinese character is "彪", and the pixels of the dot matrix data are 12×12. According to Table 3, the GB2312 encoding of "彪" is B1EB, that is, the GB2312 encoding received by the battery wireless switch is B1EB, where the high-order byte is B1. Substituting into the formula S = S1 + [G - B0A0 - (H1 - B0)×160]×24, we can get S = S1 + [B1EB - B0A0 - (B1 - B0)×160]×24, where 160 and 24 are in decimal, and the others are in hexadecimal. According to the calculation, we can get S = S1 + 1008, that is, the position of the dot matrix data corresponding to "彪" among all the dot matrix data in the memory is 1008 (hexadecimal, which can also be expressed as 0x1008). After adding the starting address S1 of all the dot matrix data of Chinese characters stored in the memory to 0x1008, we can get the storage address of the dot matrix data corresponding to "彪" in the memory. For example, if S1 is 0x40000, then S = 0x40000 + 0x1008 = 0x41008, that is, the storage address of the dot matrix data corresponding to "彪" in the memory is 0x41008. After determining the storage address of the dot matrix data corresponding to "彪" in the memory, starting from this storage address, reading 24 bytes of data from the memory of the battery wireless switch can obtain the dot matrix data corresponding to "彪".

[0404] In a preferred embodiment, the pixels of the dot matrix data are 16×16. Hereinafter, taking the pixels of the dot matrix data being 16×16 as an example for specific illustration, the Chinese characters included in Table 3 and their corresponding dot matrix data (16×16) are shown in Table 6.

[0405] Table 6 Corresponding table of some Chinese characters and dot matrix data (16×16)

[0406]

[0407] Among them, the dot matrix data in Table 6 is also in hexadecimal, and the pixels of the dot matrix data in Table 6 are 16×16. The dot matrix data of one Chinese character occupies 32 bytes.

[0408] Since the dot matrix data of Chinese characters in the memory of the battery wireless switch is arranged in the order of Chinese characters in the GB2312 encoding table, according to Table 6, the dot matrix data of some Chinese characters in the memory of the battery wireless switch is shown in Table 7.

[0409] Table 7 Table of dot matrix data (16×16) of some Chinese characters in the memory of the battery wireless switch

[0410] FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00FC 08 08 E8 A8 A8 A8 A8 A8 E8 A8 08 08 28 10 00 0E EA AA AA AA AC AA AA AA EA AA 0C 08 08 08 00FE 08 08E8 28 28 28 28 28E8 28 08 08 28 10 00 7D 44 48 49 51 49 49 45 45 45 69 50 40 40 40 40 80 10 08FC 04 … ​ 04 04 04 24 24A4 24 24 24 24 24 24 04 04 14 08 00 7E 02 3E 02FF 08 09 49 2A 1C 2A C9 09 28 10 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 20FE 20 48FC 40F8 48F8 48F8 48 10FC 10 30 08FF 08 00 27 10 13 82 43 4A 0B 12F0 27 22 21 F8 00FE 02 74 00 70 00F0 10 90 90D0 20 04FC 3F 01 7F 41 9D 01 1D 08 1F 20 5F 10 1F 10 10 0F 00F8 08 08 08F8 40 40FC E0 50 48 44 42 40 40 08 0B 0A 12 12 33 30 50 97 10 11 12 14 18 10 10 … 04 84 88 00FE 88 88 88 88FE 88 88 08 08 08 08 21 20 20 38 4B 50 80 20 20 27 20 20 29 31 22 04 00FE 20 20 20FE 22 22 52 4A 8A 02 02 02 0A 04 10 13 10 14 58 53 52 92 12 12 12 2B 26 42 42 82 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF

[0411] Among them, the dot matrix data in Table 7 is also in hexadecimal, and Table 7 is intended to show the order of the dot matrix data arrangement of Chinese characters in the memory, without limiting the specific storage format of the dot matrix data in the memory.

[0412] As shown in Table 3, in the GB2312 coding table, there are no corresponding Chinese characters for the coding values B0A0, B0FF, B1A0, and B1FF (see the blanks in Table 3). As shown in Table 7, the memory of the battery wireless switch stores the dot matrix data of all Chinese characters in the GB2312 coding table, and corresponding to the blanks in the GB2312 coding table, the data stored in the memory is "FF FFFF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FFFF FF FF FF". For example, in Table 7, the Chinese character corresponding to "00FC 08 08E8 A8 A8 A8 A8 A8 E8 A8 08 08 28 10 00 0EEA AA AA AA AC AA AA AA EA AA 0C 08 08 08" is "啊". Referring to Table 3, there is a blank before "啊", so the data stored before the dot matrix data of "啊" in Table 7 is "FF…FF". Another example, in Table 7, the Chinese character corresponding to "04 0404 24 24A4 24 24 24 24 24 24 04 04 14 08 00 7E 02 3E 02FF 08 09 49 2A 1C 2AC9 09 28 10" is "剥". Referring to Table 3, there is also a blank after "剥", so the data stored after the dot matrix data of "剥" in Table 7 is also "FF…FF". Other blanks can be referred to the above description and will not be elaborated here.

[0413] In a specific embodiment, the memory of the battery wireless switch stores the dot matrix data of all Chinese characters in the GB2312 coding table, and all the dot matrix data is arranged in the order of all Chinese characters in the GB2312 coding table. The battery wireless switch calculates a storage address according to the received GB2312 code. Among them, the storage address is the starting address where the dot matrix data corresponding to the input Chinese character is stored in the memory. Then, starting from this storage address, the battery wireless switch reads data with a specified byte length from the memory to obtain the dot matrix data corresponding to the input Chinese character, where the specified byte length is the byte length occupied by the dot matrix data of a Chinese character.

[0414] Referring to the relevant description where the pixel of the dot matrix data is 12×12, when the pixel of the dot matrix data is 16×16, the storage address S calculated according to the received GB2312 encoding satisfies the following formula: S = S1 + [G - B0A0 - (H1 - B0)×160]×32. In an optional implementation, the starting address S1 of storing the dot matrix data of all Chinese characters in the memory can be 0x40000 (hexadecimal). It should be noted that S1 being 0x40000 is only an example and does not limit the starting address of storing the dot matrix data of all Chinese characters in the memory in practice. The dot matrix data of all Chinese characters can also start from other starting addresses and be stored in the memory of the battery wireless switch.

[0415] For example, the input Chinese character is "彪", and the pixel of the dot matrix data is 16×16. According to Table 3, the GB2312 encoding of "彪" is B1EB, that is, the GB2312 encoding received by the battery wireless switch is B1EB, where the high - order byte is B1. Substituting it into the formula S = S1 + [G - B0A0 - (H1 - B0)×160]×32, we can get S = S1 + [B1EB - B0A0 - (B1 - B0)×160]×32, where 160 and 32 are in decimal, and the others are in hexadecimal. Through calculation, we can get S = S1 + 1560, that is, the position of the dot matrix data corresponding to "彪" among all dot matrix data in the memory is 1560 (hexadecimal, which can also be expressed as 0x1560). After adding the starting address S1 of storing the dot matrix data of all Chinese characters in the memory to 0x1560, the storage address of the dot matrix data corresponding to "彪" in the memory can be obtained. For example, if S1 is 0x40000, then S = 0x40000 + 1560 = 0x41560, that is, the storage address of the dot matrix data corresponding to "彪" in the memory is 0x41560. After determining the storage address of the dot matrix data corresponding to "彪" in the memory, starting from this storage address, reading 32 bytes of data from the memory of the battery wireless switch can obtain the dot matrix data corresponding to "彪".

[0416] S508. The battery wireless switch displays the first text information on the display unit so that the display content on the display unit is consistent with the text to be configured.

[0417] In the specific configuration process, after direct connection, the user inputs the text to be configured through the terminal device. The terminal device obtains the first index information based on the text to be configured, and then sends the first index information to the battery wireless switch. The battery wireless switch processes the first index information, reads the corresponding first text information from the memory, and displays the first text information on the display unit. The text content represented by the first text information is consistent with the text to be configured input by the user. In this way, after the first text information is displayed on the display unit, the display content on the display unit is also consistent with the text to be configured input by the user.

[0418] In an optional embodiment, the text information stored in the memory is dot matrix data. The battery wireless switch processes the received GB2312 encoding, reads the corresponding dot matrix data from the memory, and displays it on the display unit. For example, when the input Chinese character is "彪", the pixels of the dot matrix data in the memory are 12×12. The GB2312 encoding of "彪" is B1EB. The battery wireless switch can calculate the storage address of the dot matrix data corresponding to "彪" in the memory according to B1EB. After determining the storage address, starting from this storage address, 24 bytes of data are read from the memory of the battery wireless switch, and the obtained dot matrix data is "00F8 48 7F AA AA D8 00 24 92 49 00 08 07 08 06 02 06 08 0A 09 08 0C 00", which is the dot matrix data corresponding to "彪". The dot matrix data "00F848 7F AA AA D8 00 24 92 49 00 08 07 08 0602 06 08 0A 09 08 0C 00" is displayed on the display unit. At this time, the character "彪" is displayed on the display unit, which is consistent with the user input. For another example, when the input Chinese character is "彪", the pixels of the dot matrix data in the memory are 16×16. According to the calculation, 32 bytes of data are read from the memory of the battery wireless switch, and the obtained dot matrix data is "00 84 04C8 50 24 84 88 10 24 0408 12 22FE 00 04 07 04 3F 24 27 3C 23 20 2F 29 29 49 51 90 20", which is the dot matrix data corresponding to "彪". The dot matrix data "00 84 04C8 50 24 84 88 10 24 04 08 12 22FE 00 04 07 04 3F24 27 3C 23 20 2F 29 29 49 51 90 20" is displayed on the display unit. At this time, the character "彪" is displayed on the display unit, which is consistent with the user input.

[0419] S509. The battery wireless switch stores the first index information.

[0420] In a specific embodiment, after receiving the first index information sent by the terminal device, the battery wireless switch stores the first index information in the memory and configures the display content on the display unit according to the first index information, so that the display content on the display unit is consistent with the content input by the user on the terminal device. In this way, when the battery wireless switch is powered off and then powered on again, the battery wireless switch can update the display content of the display unit according to the first index information stored in the memory, so that the display content on the display unit shows the latest configured display content by the user, without the user having to reconfigure.

[0421] S510. When the first trigger event is detected, the battery wireless switch disconnects the communication connection with the terminal device.

[0422] In a specific embodiment, when the battery wireless switch detects the first trigger event, it disconnects the communication connection with the terminal device, that is, it disconnects the direct connection with the terminal device. After disconnecting the direct connection, the power consumption of the battery wireless switch is reduced.

[0423] In one optional implementation, the first triggering event includes receiving a disconnection message sent by the terminal device. The disconnection message is generated and sent by the terminal device after exiting the first configuration interface, which is used to configure the display content on the display unit of the battery wireless switch. In this embodiment, the battery wireless switch can passively disconnect its communication connection with the terminal device. In this case, the first triggering event can be receiving a disconnection message sent by the terminal device. Specifically, when the user configures the display content on the display unit of the battery wireless switch through the terminal device, the terminal device generates the first configuration interface for configuring the display content. Then, when the user completes the configuration or interrupts the configuration, the user controls the terminal device to exit the first configuration interface. After exiting the first configuration interface, the terminal device generates a disconnection message and sends it outward. When the battery wireless switch receives this disconnection message, it disconnects its communication connection with the terminal device to save power consumption. In another implementation, the first triggering event includes receiving a disconnection message from the terminal device. This disconnection message is generated and sent by the terminal device after a six-specified time interval following exiting the first configuration interface, during which the user is not immediately induced to re-enter the first configuration interface. This sixth specified time interval is set to 3 to 10 seconds. Specifically, when the user completes configuration or interrupts configuration, and exits the first configuration interface, the terminal device does not immediately generate a disconnection message; that is, the battery wireless switch does not immediately disconnect from the terminal device. If less than the sixth specified time interval has passed since exiting the first configuration interface, and the user needs to re-enter the first configuration interface, the battery wireless switch and the terminal device are still connected. Therefore, the user can directly enter the first configuration interface without needing to operate the battery wireless switch again to re-establish the communication connection. This allows users to quickly reconfigure after completing configuration or quickly resume configuration after an interruption, thus improving the user experience. Preferably, the sixth specified time interval is set to 5 seconds. If the device does not re-enter the first configuration interface after a specified six-hour interval following exiting the first configuration interface, the terminal device will generate a disconnect message and send it out, causing the battery wireless switch to disconnect from the terminal device in order to save power.

[0424] In another optional implementation, the first triggering event includes: the battery wireless switch not being operated for a first specified time T1, where T1 ∈ [8s, 15s]. In this embodiment, the battery wireless switch can actively disconnect from the terminal device. In this case, the first triggering event can be that the battery wireless switch has not been operated for a first specified time, where the first specified time is set to 8s to 15s. This avoids the battery wireless switch disconnecting too quickly due to a short first specified time, causing operational inconvenience, and also avoids the battery wireless switch consuming too much power due to a long first specified time. Preferably, the first specified time is set to 10s, so when the battery wireless switch has not been operated for more than 10s, the communication connection with the terminal device is disconnected.

[0425] Please see Figure 33 This control method is applicable to the aforementioned wireless battery switch 2, and the control method includes:

[0426] S701, Second trigger command for detecting battery wireless switch.

[0427] In one optional implementation, the operation area can be a button, and the third specified external action can be applying two downward presses to any button followed by a downward press lasting for a fourth specified time T4, where T4 ∈ [3s, 10s]. The range of the fourth specified time T4 is set such that applying two downward presses to any button followed by a downward press lasting at least 3 seconds is required for the battery wireless switch to detect the second trigger command. This allows the battery wireless switch to distinguish between pressing the button three times and pressing the button twice followed by a third press that exceeds a certain time before detecting the second trigger command, thus preventing the battery wireless switch from mistakenly detecting the second trigger command when the user presses the button three times. Furthermore, the range of T4 also allows the battery wireless switch to respond promptly to the user pressing the button twice followed by a third press that exceeds a certain time, detecting the second trigger command in a timely manner and avoiding excessive delay that affects the user experience. Preferably, T4 can be 5s, meaning that the battery wireless switch detects the second trigger command when the time for the third press after the user presses the button twice reaches 5 seconds.

[0428] S702, the battery wireless switch responds to the second trigger command and broadcasts the first message.

[0429] In a specific embodiment, the first message is a network configuration message for the battery wireless switch. The first message includes the identification information of the battery wireless switch, which is used to uniquely identify the battery wireless switch. When the battery wireless switch detects the second trigger command, it broadcasts the first message, enabling a terminal device to scan the first message.

[0430] S703, the terminal device scans the first message and displays the battery wireless switch.

[0431] In a specific embodiment, after the terminal device scans the first message, it displays the battery wireless switch that broadcast the first message on the interface.

[0432] S704. After the displayed battery wireless switch is selected, the terminal device generates and sends a first connection request message.

[0433] In a specific embodiment, after the battery wireless switch is displayed on the terminal device, when the user selects the battery wireless switch, the terminal device generates a first connection request message and sends it out. The first connection request message is a message in which the terminal device requests network configuration for the battery wireless switch.

[0434] S705, the battery wireless switch receives the first connection request message sent by the terminal device.

[0435] S706, the battery wireless switch sends a first confirmation connection message after the operation unit is subjected to a specified operation, in order to establish a correspondence with the terminal device.

[0436] In a specific embodiment, when a user applies a specified operation to the operating unit of the battery wireless switch, the battery wireless switch sends a first connection confirmation message, wherein the first connection confirmation message is a message from the battery wireless switch confirming network configuration. In an optional embodiment, the operating unit of the battery wireless switch includes one or more buttons, and the specified operation can be a pressing action applied to any button. For example, when the user presses any button, the battery wireless switch sends a first connection confirmation message.

[0437] After the battery wireless switch sends its first connection confirmation message, it establishes a correspondence with the terminal device, signifying successful network configuration. It can be seen that the correspondence is established and network configuration is successful only after the battery wireless switch sends its first connection confirmation message. This allows the terminal device to identify the specific battery wireless switch being configured when multiple battery wireless switches are configuring simultaneously, through user-defined operations on the switch's operating unit. The correspondence between the battery wireless switches and the terminal device is stored on a cloud server. The terminal device can interact with the cloud server, allowing it to display the battery wireless switches with established correspondences.

[0438] After the battery wireless switch establishes a correspondence with the terminal device, it enters the first mode. The first mode refers to the mode in which the battery wireless switch has established a correspondence with a terminal device. In the first mode, the battery wireless switch is not directly connected to the terminal device, and the power consumption is less than that in the second mode. The second mode refers to the mode in which the battery wireless switch has established a correspondence with a terminal device and is directly connected to that terminal device.

[0439] Furthermore, after being configured in the network, the battery wireless switch can join the gateway device's network and communicate with it. The gateway device can also communicate with other controlled devices. Terminal devices (such as mobile apps) can display the battery wireless switches and other controlled devices in the network. Users can set various control strategies for the battery wireless switches on the mobile app. When a battery wireless switch is manipulated, it can send the control information to the gateway device. The gateway device receives the control information and controls the controlled device, thus realizing the intelligent operation of the battery wireless switch.

[0440] Please see Figure 34 This control method is applicable to the aforementioned wireless battery switch 2, and the control method includes:

[0441] S801, Second trigger command for detecting battery wireless switch.

[0442] S802, the battery wireless switch responds to the second trigger command and broadcasts the first message.

[0443] S803, the terminal device scans the first message and displays the battery wireless switch.

[0444] S804. After the displayed battery wireless switch is selected, the terminal device generates and sends a first connection request message.

[0445] S805, the battery wireless switch receives the first connection request message sent by the terminal device.

[0446] S806, the battery wireless switch sends a first confirmation connection message after the operation unit is subjected to a specified operation, in order to establish a correspondence with the terminal device.

[0447] For a detailed explanation of steps S801-S806, please refer to the relevant explanations of steps S701-S706 above, which will not be repeated here.

[0448] S807, the battery wireless switch determines the corresponding third text information based on the stored third index information.

[0449] In a specific embodiment, after the battery wireless switch establishes a correspondence with a terminal device, that is, after the battery wireless switch is connected to the network, it reads the stored third index information. The third index information is the preset index information of the battery wireless switch, which is stored at the third storage time. The battery wireless switch does not store any other index information before the third storage time. In other words, the third index information is the default index information set by the battery wireless switch at the factory.

[0450] After reading the third index information, the battery wireless switch determines the corresponding third text information based on the third index information, wherein the third text information is used to display on the display section of the battery wireless switch.

[0451] S808, the battery wireless switch displays third-party text information on the display unit.

[0452] In a specific embodiment, the battery wireless switch displays third text information on the display unit, so that the displayed content is the default display content set at the factory for the battery wireless switch. After the battery wireless switch is configured for network pairing (initial network pairing or network reset), the displayed content on the display unit remains the default content. For example, the battery wireless switch includes four buttons, and the default display content set at the factory is "Button 1", "Button 2", "Button 3", and "Button 4". In another implementation, the default display content set at the factory is "Button 1", "Button 2", "Button 3", and "Button 4", which correspond to the four buttons respectively when displayed on the display unit. Specifically, after the battery wireless switch is configured for network pairing for the first time or network reset, the displayed content on the display unit is the default display content set at the factory. This can indicate multiple buttons on the battery wireless switch, making it easier for the user to distinguish between multiple buttons, and can also provide a reference for the user to reconfigure the names of each button on the display unit.

[0453] like Figure 35a As shown, the battery wireless switch has four buttons and a display unit. The display unit shows default content, including "Button 1", "Button 2", "Button 3", and "Button 4", corresponding to the four buttons respectively. For another implementation, please refer to... Figure 35b , Figure 35b This is a schematic diagram of the display content on the display unit after the battery wireless switch is configured with the network, according to one embodiment of the present invention. Figure 2 .like Figure 35b As shown, in addition to displaying the default "Key 1", "Key 2", "Key 3" and "Key 4", the display also shows the time (e.g., 12:00), temperature (e.g., 29°C) and humidity (e.g., 39%).

[0454] Furthermore, after the battery wireless switch is directly connected to the terminal device, the battery wireless switch sends the stored third index information to the terminal device. The terminal device receives the third index information and synchronizes the default display content on the battery wireless switch's display to the terminal device for user reference, allowing the user to reconfigure the names of the buttons on the display. Based on Figure 35a or Figure 35b When the battery wireless switch is directly connected to the terminal device, the first configuration interface displayed on the terminal device is as follows: Figure 36 As shown. Figure 36As shown, the first configuration interface is used to configure the display content on the display section of the battery wireless switch. Specifically, it can be used for text configuration of button 1, button 2, button 3, and button 4. For example, when selecting the text configuration of button 1, the default display of "Button 1" can be configured as "Restaurant Light". After saving, the display content corresponding to button 1 on the display section of the battery wireless switch will be displayed synchronously as "Restaurant Light".

[0455] Furthermore, when the user configures the display content on the display unit of the battery wireless switch through the terminal device, the first configuration interface displayed by the terminal device is as follows: Figure 37 As shown. Please refer to [the original text]. Figure 37 The text configuration for button 1 is "Dining Room Light", button 2 is "Bedroom Light", button 3 is "Kitchen Light", and button 4 is "Living Room Light". After saving, the display on the battery wireless switch will synchronously display "Living Room Light" as the text corresponding to button 4.

[0456] based on Figure 37 After configuration, the display on the battery wireless switch will show the following content: Figure 38a As shown. Please refer to [the original text]. Figure 38a The display shows the user-configured settings, including "Dining Room Light," "Bedroom Light," "Kitchen Light," and "Living Room Light," each corresponding to one of the four buttons. For another implementation, please refer to [link / reference]. Figure 38b In addition to displaying the user-configured "dining room light," "bedroom light," "kitchen light," and "living room light," the display also shows the time (e.g., 12:00), temperature (e.g., 29°C), and humidity (e.g., 39%). After configuration, the text displayed on the battery wireless switch represents the functions of buttons 1, 2, 3, and 4. When configuring the automation process on the terminal device, buttons 1, 2, 3, and 4 are still used for configuration, making the specific functions of the buttons easier to distinguish. In other words, the information representing the specific location of the buttons on the terminal device also includes the text information displayed by the battery wireless switch, and the information representing the specific location of the buttons remains unchanged. Furthermore, when configuring the automation process, the information representing the specific location of the buttons is used to ensure that the buttons are easily distinguishable. Those skilled in the art will understand that this method is applicable not only to battery-powered wireless switches but also to wireless switches that are constantly powered; that is, any smart switch is suitable for this method. The automated configuration process here refers to setting up the linkage function corresponding to the button on the terminal (operating APP), such as using the button to control the air conditioner, the TV, and adjust the air conditioner, TV, or control the lights or multiple devices to change their status at the same time.

[0457] In one optional implementation, after the battery wireless switch is network-configured, it can be upgraded via an application (APP) on the terminal device. Specifically, after selecting to upgrade the battery wireless switch in the application, the application generates a prompt message prompting the user to press any button for more than 5 seconds to establish a direct connection between the battery wireless switch and the terminal device. After direct connection, the battery wireless switch receives a third message sent by the terminal device, which is used to obtain the current version information of the battery wireless switch. In response to the third message, the battery wireless switch sends a fourth message to the terminal device, which carries the current version information of the battery wireless switch. After obtaining the current version information of the battery wireless switch, the application compares the current version information with the configured latest version information. If the current version information is not the latest version information, the application generates a prompt message, which the user can use to choose whether to upgrade. If the user clicks to confirm the upgrade, the application sends data to the battery wireless switch to upgrade it. In one implementation, after a successful upgrade, the battery wireless switch restarts and displays the default content.

[0458] Please see Figure 39 This control method is applicable to the aforementioned wireless battery switch 2, and the control method includes:

[0459] S1301, Battery Wireless Switch Detection and Control Command.

[0460] In this mode, the battery wireless switch is in the first mode. In the first mode, the battery wireless switch establishes a corresponding relationship with a terminal device, but does not establish a communication connection with the terminal device.

[0461] In a specific embodiment, the wireless battery switch includes an operation unit for controlling the wireless battery switch. In an optional embodiment, the operation unit includes one or more operation areas, and control commands are generated based on a fourth specified external action applied to any operation area. The operation area can be a button, and the fourth specified external action includes a single press, at least two presses, and / or a press lasting a third specified time T3, where T3 ∈ [tb, tc], tb ∈ [0.5s, 1s], and tc ≤ ta. For example, the fourth specified external action includes a single press (single click), two presses (double click), and a press lasting a third specified time T3 (long press). When the user clicks any button, the wireless battery switch detects a control command; similarly, when the user double-clicks or long-presses any button, the wireless battery switch can also detect another control command.

[0462] As can be seen from the above embodiments, when the user presses any button for more than ta, the battery wireless switch detects the first trigger command. The battery wireless switch is directly connected to the terminal device, where ta ∈ [3s, 10s]. To distinguish between the first trigger command and the control command, tc is set to be no greater than ta. Therefore, when the user presses any button for no more than ta, the battery wireless switch detects the control command; when the user presses any button for more than ta, the battery wireless switch detects the first trigger command. That is, setting tc ≤ ta helps the battery wireless switch distinguish between the first trigger command and the control command, avoiding false detection. Additionally, T3 is not less than tb, tb ∈ [0.5s, 1s]. The minimum value of tb is set to 0.5s, which facilitates the battery wireless switch in recognizing single clicks and long presses. For example, when tb is 0.5s, T3 ∈ [0.5s, tc], meaning that the user must press any button for at least 0.5s to be recognized as a long press. Preferably, tb is 0.5s, ta is 5s, and tc is also 5s. At this time, T3∈[0.5s, 5s], which means that when the user presses any button for 0.5s and no more than 5s, it is recognized as a long press, and the battery wireless switch detects the control command.

[0463] For example, the operating unit of the wireless battery switch includes four buttons: button 1, button 2, button 3, and button 4. The fourth designated external action includes single-click, double-click, and long-press. Therefore, when the user single-clicks, double-clicks, or long-presses button 1, the wireless battery switch can detect the control command. Similarly, when the user single-clicks, double-clicks, or long-presses buttons 2 / 3 / 4, the wireless battery switch can also detect the control command.

[0464] In one alternative implementation, a user pressing any button and releasing it within 0.5 seconds, and not pressing the button again for at least 0.4 seconds after releasing it, is identified as a single click; a user pressing any button and releasing it within 0.5 seconds, and pressing the button again for 0.4 seconds after releasing it, is identified as a double click; a user pressing any button and holding it for at least 0.5 seconds, and releasing it for no more than 5 seconds, is identified as a long press.

[0465] In another optional implementation, when the user clicks any button, the display content corresponding to that button on the display of the battery wireless switch flashes once and then returns to normal display; when the user double-clicks any button, the display content corresponding to that button flashes twice and then returns to normal display; when the user presses and holds any button, the display content corresponding to that button flashes once and then returns to normal display.

[0466] S1302, The battery wireless switch reports the control command so that the target operation corresponding to the control command is executed.

[0467] In a specific embodiment, the operation unit of the battery wireless switch includes at least one button, and the display unit of the battery wireless switch displays the first button name of each button. As can be seen from the above embodiment, the content displayed on the display unit of the battery wireless switch can be configured by the user through a terminal device. For example, the display unit displays the user-configured "Dining Room Light," "Bedroom Light," "Kitchen Light," and "Living Room Light," which correspond to the four buttons respectively; that is, the first button name of each button is "Dining Room Light," "Bedroom Light," "Kitchen Light," and "Living Room Light," respectively.

[0468] The second configuration interface of the terminal device displays the second button name of each button. This second configuration interface is used to configure the mapping relationship between at least one control command associated with a button and at least one target operation, so that when a control command is detected, the corresponding target operation is triggered and executed. Specifically, the terminal device can display the battery wireless switch and other controlled devices in the distribution network. Users can formulate the control strategy of the battery wireless switch for the controlled devices on the terminal device, that is, configure the mapping relationship between control commands and target operations, where the target operation is executed by the controlled device. During configuration, the terminal device generates the second configuration interface, which displays the second button name of each button, for example, the second button names of each button are "Button 1", "Button 2", "Button 3", and "Button 4". Users can configure the mapping relationship between at least one control command associated with a button and at least one target operation on the second configuration interface, so that when the battery wireless switch detects a control command, the corresponding target operation is triggered and executed, thereby realizing the intelligent and automated control of the battery wireless switch. For example, the configured control command is "click button 1", and the configured target operation is "turn on / off the restaurant light". That is, when the user clicks button 1 on the battery wireless switch, the battery wireless switch detects the control command "click button 1" and triggers the restaurant light to turn on / off.

[0469] Furthermore, in an optional implementation, the first button name can be configured to be different from the second button name. For example, on the display unit, the first button names for each button are "Dining Room Light," "Bedroom Light," "Kitchen Light," and "Living Room Light," respectively; on the second configuration interface of the terminal device, the second button names for each button are "Button 1," "Button 2," "Button 3," and "Button 4," respectively. In this case, the first button name is configured to be different from the second button name to distinguish the function and attribute of the button. The function of the button is reflected in the first button name, which is used to indicate the operation information of each button, and the attribute of the button is reflected in the second button name, specifically as Button 1, Button 2, Button 3, and Button 4.

[0470] In another optional implementation, on the second configuration interface of the terminal device, a target operation can correspond to at least two control commands, such that when the battery wireless switch detects any one of the at least two control commands, the corresponding target operation is triggered to be executed. For example, the configured control commands include "single click on button 1", "double click on button 1", and "long press on button 1", and the configured target operation is "turn on / off the dining room light". That is, when the user clicks, double clicks, or long presses button 1 on the battery wireless switch, the dining room light will be turned on / off. In this way, for users of all ages (including the elderly and children), clicking, double clicking, or long pressing button 1 will trigger the dining room light to turn on / off, reducing the learning cost of the button functions on the battery wireless switch and making it easier for users of all ages to use.

[0471] In another optional implementation, the second configuration interface of the terminal device is further used to configure a fifth specified time corresponding to the mapping relationship, so that when the battery wireless switch detects a control command within the fifth specified time, the corresponding target operation is triggered and executed. The fifth specified time includes all times within a specified time unit or at least one time period within a specified time unit. Specifically, the user can configure the mapping relationship between control commands and target operations on the second configuration interface, and can also configure the fifth specified time corresponding to the mapping relationship. This fifth specified time is the valid time of the mapping relationship; that is, the corresponding target operation will only be triggered and executed when a control command is detected within this valid time. In this way, the user can customize the valid time configuration, enriching the intelligent control function of the battery wireless switch. Furthermore, the specified time unit includes year, month, and day. For example, if the specified time is in days, the fifth specified time can be all times within a day, or one or more specified time periods within a day. For example, the configured control command is "click button 2", the target operation is "turn on / off bedroom light", and the configured fifth specified time is 18:00-10:00. That is, the bedroom light will only be triggered to turn on / off when button 2 is clicked during the period from 6 pm to 10 am. This can prevent users from accidentally clicking button 2 and causing the bedroom light to stay on during the daytime when there is sufficient light, thereby effectively reducing power consumption.

[0472] Please see Figure 40 This control method can also be applied to the aforementioned wireless battery switch 2, and the control method includes:

[0473] S1401, Battery Wireless Switch Detection and Control Command.

[0474] For a detailed explanation of step S1401, please refer to the relevant explanation of step S1301 above, which will not be repeated here.

[0475] S1402, The battery wireless switch sends control commands to the connected gateway device.

[0476] In a specific embodiment, after being configured with the network, the battery wireless switch can join the gateway device's network and communicate with it. For example, if the battery wireless switch communicates externally via Bluetooth, it can join the gateway device's Bluetooth network after configuration and send control commands to the gateway device via Bluetooth.

[0477] S1403. The gateway device determines the first target operation corresponding to the control command based on the stored first mapping rule.

[0478] In a specific embodiment, the first mapping rule is set by the terminal device and sent to the gateway device. The user can configure the mapping relationship between control commands and target operations on the second configuration interface of the terminal device. After configuration, the terminal device sends the mapping relationship between control commands and target operations to the gateway device. The first mapping rule stored by the gateway device includes a mapping relationship between at least one control command and at least one target operation.

[0479] After receiving the control command sent by the battery wireless switch, the gateway device determines the first target operation corresponding to the control command according to the stored first mapping rule. For example, the user configures the control command on the terminal device as "double-click button 3", with the corresponding target operation being "turn on / off the TV", and configures the control command as "double-click button 4", with the corresponding target operation being "turn on / off the air conditioner". After configuration, the mapping relationship is sent to the gateway device. The first mapping rule stored by the gateway device includes the mapping relationship between "double-click button 3" and "turn on / off the TV" and the mapping relationship between "double-click button 4" and "turn on / off the air conditioner". When the battery wireless switch detects the control command "double-click button 4", it sends the control command to the gateway device. The gateway device can then determine the first target operation corresponding to "double-click button 4" as "turn on / off the air conditioner" according to the stored first mapping rule.

[0480] S1404, The gateway device controls the first target operation to be executed by the first target device.

[0481] In a specific embodiment, the first target device is one or more controlled devices connected to the gateway device, and the first target operation is one or more executable operations of the first target device. After determining the first target operation, the gateway device controls the execution of the first target operation by the first target device. For example, when a user configures a movie-watching mode, the control command is, for example, "long press button 2," and the corresponding target operations are, for example, "turn on the TV" and "turn off the living room lights." When the battery wireless switch detects the control command "long press button 2," it sends the control command to the gateway device, which can then determine that the corresponding first target operations include "turn on the TV" and "turn off the living room lights." The gateway device controls the execution of the first target operation by the first target device. At this time, the first target device includes the TV and the living room lights; that is, the gateway device controls the TV to turn on and the living room lights to turn off, facilitating the user's movie-watching experience. In this way, one control command can control multiple controlled devices, eliminating the need for users to individually operate each controlled device, thus improving the convenience of people's daily work and life.

[0482] As can be seen from the above embodiments, both the battery wireless switch and the first target device can join the gateway device's Bluetooth network after network configuration and communicate with the gateway device. Both the gateway device and the terminal device can interact with the cloud server, allowing the terminal device to display the configured battery wireless switch and the first target device. Users can configure mapping rules on the terminal device to control the first target device by manipulating the battery wireless switch. When the battery wireless switch is manipulated, it can send control commands to the gateway device, which receives the commands and controls the first target device. Thus, by manipulating the battery wireless switch, controlled devices belonging to the same Bluetooth network can be controlled, achieving local control of the battery wireless switch.

[0483] Please see Figure 41 This control method can also be applied to the aforementioned wireless battery switch 2, and the control method includes:

[0484] S1501, Battery Wireless Switch Detection and Control Command.

[0485] For a detailed explanation of S1501, please refer to the explanation of S1301 above, which will not be repeated here.

[0486] S1502, the battery wireless switch sends control commands to the cloud server through the connected gateway device.

[0487] In a specific embodiment, after being configured with the network, the battery wireless switch can join the gateway device's network and communicate with it. The gateway device can also interact with a cloud server. For example, if the battery wireless switch communicates externally via Bluetooth, it can join the gateway device's Bluetooth network after configuration. When a control command is detected, the battery wireless switch sends the command to the gateway device via Bluetooth. After receiving the control command, the gateway device sends it to the cloud server.

[0488] S1503, The cloud server determines the second target operation corresponding to the control command based on the stored second mapping rule.

[0489] In a specific embodiment, the second mapping rule is set by the terminal device and sent to the cloud server. The user can configure the mapping relationship between control commands and target operations on the second configuration interface of the terminal device. After configuration, the terminal device sends the mapping relationship between control commands and target operations to the cloud server. The second mapping rule stored on the cloud server includes a mapping relationship between at least one control command and at least one target operation.

[0490] After receiving the control command, the cloud server determines the corresponding second target operation based on the stored second mapping rules. For example, a user configures the control command on the terminal device as "double-click button 4," with the corresponding target operation being "turn on the living room air conditioner," where "living room air conditioner" refers to the air conditioner in the user's living room. After configuration, the terminal device sends the mapping relationship to the cloud server. The cloud server stores the second mapping rules, which include the mapping relationship between "double-click button 4" and "turn on the living room air conditioner." When the user operates the battery wireless switch in the office, and the battery wireless switch detects the control command "double-click button 4," it sends the control command to the gateway device, which then forwards it to the cloud server. The cloud server, based on the stored second mapping rules, determines that the second target operation corresponding to the control command "double-click button 4" is "turn on the living room air conditioner."

[0491] S1504, The cloud server controls the second target operation to be executed by the second target device.

[0492] In a specific embodiment, the second target device is one or more controlled devices capable of directly or indirectly interacting with the cloud server, and the second target operation is one or more executable operations of the second target device. After determining the second target operation, the cloud server controls the second target operation to be executed by the second target device. For example, when a user double-clicks button 4 on a battery wireless switch in the office, the battery wireless switch detects the control command of "double-clicking button 4" and sends the control command to the gateway device. The gateway device then sends the control command to the cloud server, which determines the corresponding second target operation as "turn on the living room air conditioner." The cloud server can interact with the air conditioner in the user's living room, meaning it can control the living room air conditioner to turn on. In this way, users can remotely control the air conditioner in their living room while at work, and feel a comfortable temperature when they return home, improving the convenience of their daily work and life.

[0493] As can be seen in the above embodiments, the battery wireless switch can join the gateway device's Bluetooth network after network configuration and communicate with the gateway device. The gateway device, terminal device, and second target device can all interact with the cloud server. Therefore, the battery wireless switch and the second target device can be displayed on the terminal device. Users can configure mapping rules on the terminal device to control the second target device by manipulating the battery wireless switch. When the battery wireless switch is manipulated, it can send control commands to the cloud server through the gateway device. The cloud server receives the control commands and controls the second target device. Thus, by manipulating the battery wireless switch, a controlled device that can interact with the cloud server can be controlled, realizing remote control of the battery wireless switch.

[0494] Please see Figure 42 This control method can also be applied to the aforementioned wireless battery switch 2, and the control method includes:

[0495] S1601, Battery wireless switch detection second trigger event.

[0496] In a specific embodiment, the battery wireless switch detects a second trigger event, which is used to trigger the battery wireless switch to switch operating modes. The battery wireless switch has one or more buttons, and the operating mode of the battery wireless switch refers to the button operating mode. Specifically, the second trigger event can be triggered by either the terminal device or the battery wireless switch itself.

[0497] In one optional implementation, the second triggering event can be a switching message sent by the receiving terminal device. This switching message is generated and sent by the terminal device after the displayed operating mode has been switched. Specifically, after direct connection, the terminal device generates a first configuration interface for configuring the display content on the battery wireless switch's display unit. The user can input text to be configured on the first configuration interface. Additionally, the first configuration interface also displays a button operation mode. After the user switches the operation mode, the terminal device generates a switching message and sends it outward. The battery wireless switch receives the switching message from the terminal device and then switches its operating mode.

[0498] In another optional implementation, the second triggering event can be applying a second designated external action to the operating unit. Specifically, the battery wireless switch has multiple buttons, and the second designated external action can be applied to any one of the buttons. For example, the second designated external action is to press any button three times consecutively to trigger the battery wireless switch to switch operating modes. As another example, among the multiple buttons on the battery wireless switch, in addition to the buttons used to control other devices, there is a designated button for controlling the switching of button operating modes. In this case, the second designated external action can be pressing this designated button to trigger the battery wireless switch to switch operating modes. It should be noted that the above description of the second designated external action is only an example and does not specifically limit the second designated external action. The second designated external action can also be other actions applied to the operating unit.

[0499] S1602, Battery wireless switch switching operation mode.

[0500] In a specific embodiment, when a second trigger event is detected, the battery wireless switch switches its operating mode. Here, the operating mode of the battery wireless switch refers to the button's operating mode.

[0501] In one optional implementation, the operating modes include a first operating mode and a second operating mode. In the first operating mode, the battery wireless switch reports only one press action applied to the operating unit to the gateway device. In the second operating mode, the battery wireless switch may report one press action applied to the operating unit, at least two press actions, and / or a press action lasting for a third specified time T3 to the gateway device.

[0502] Specifically, as described in the above embodiments, the battery wireless switch can detect and report control commands. For example, when a user clicks, double-clicks, or long-presses any button, the battery wireless switch can detect and report the corresponding control command. In the first operating mode, the battery wireless switch only reports one press action applied to the operating unit, that is, only a single click operation applied to the button. For example, when a user clicks a button, the battery wireless switch reports one single click operation applied to that button; as another example, when a user double-clicks a button, the battery wireless switch reports two single click operations applied to that button; and as yet another example, when a user long-presses a button, the battery wireless switch also reports one single click operation applied to that button. It can be seen that, regardless of whether it is a single click, double-click, or long press, as long as the battery wireless switch detects the user's action of pressing the button, it reports a single click operation. It does not need to detect the time the button is pressed, nor does it need to determine whether it is a single click, double-click, or long press. It can quickly respond to the user's single button operation and control the corresponding device to perform the operation. In this way, the control latency of the battery wireless switch is low, improving the automation response speed and meeting the user's need for rapid response.

[0503] In the second operating mode, the battery wireless switch can report a single press, at least two presses, and / or a press lasting a third specified time T3 applied to the operating unit. This means it can report single-click, double-click, and / or long-press operations applied to the buttons. Where T3 ∈ [tb, tc], tb ∈ [0.5s, 1s], and tc ≤ ta. As shown in the above embodiment, when the user presses any button for more than ta, the battery wireless switch detects a first trigger command, and the battery wireless switch is directly connected to the terminal device. To distinguish between the first trigger command and a long-press operation, tc is set to be no greater than ta. Therefore, when the user presses any button for less than ta, the battery wireless switch detects a long-press operation; when the user presses any button for more than ta, the battery wireless switch detects a first trigger command. In other words, setting tc ≤ ta helps the battery wireless switch distinguish between the first trigger command and a long-press operation, avoiding false detections. Additionally, T3 is not less than tb, where tb ∈ [0.5s, 1s]. The minimum value of tb is set to 0.5s. This facilitates the battery wireless switch's recognition of single clicks and long presses. For example, when tb is 0.5s, T3 ∈ [0.5s, tc], meaning that the user must press any button for at least 0.5s to be recognized as a long press. For instance, if tb is 1s, ta is 5s, and tc is also 5s, then T3 ∈ [1s, 5s]. This means that the user must press any button for at least 1 second, but no more than 5 seconds, to be recognized as a long press. To improve the response speed of long presses, it can also be recognized as a long press immediately after the user's button press time reaches 0.5s.

[0504] When a button is triggered, it typically outputs a high or low level. The high / low level of a button can be identified through timing or by triggering an interrupt based on the rising or falling edge of the high / low level. For example, a high level is output when the button is pressed, and a low level is output when the button is not pressed. The low-to-high transition after a button press represents the start time of button detection. A timer is then used to determine the button press duration, for example, a 20ms timer to periodically read the button's output. When a low level is read, it indicates the button is released. The button press duration can be calculated based on the number of timer reads. In the first operation mode, a timer is not needed; a button press is sufficient to report a single click operation. Therefore, the button reporting time is very fast. After a button is pressed, the program immediately reports a single click operation. If transmitting a wireless signal, the program can immediately start transmitting the wireless signal after detecting a button press, without waiting for a timer to detect whether the button is released.

[0505] As can be seen from the above embodiments, users can switch the button operation mode according to their needs. When only single-click automation needs to be configured, the battery wireless switch can be controlled to switch to the first operation mode, which can quickly respond to the user's single-click operation, improve the automation response speed, and meet the user's need for rapid response. When single-click, double-click, and / or long-press automation needs to be configured, the battery wireless switch can be controlled to switch to the second operation mode.

[0506] Please see Figure 43 This control method can also be applied to the aforementioned wireless battery switch 2, and the control method includes:

[0507] S1701, Battery wireless switch detection second trigger event.

[0508] S1702, Battery wireless switch switching operation mode.

[0509] For a detailed explanation of steps S1701 and S1702, please refer to the relevant explanations of steps S1601 and S1602 above, which will not be repeated here.

[0510] S1703 In the first operating mode, when a down press action is detected on any button, the battery wireless switch reports the down press action on the button to the gateway device.

[0511] In a specific embodiment, in the first operating mode, the battery wireless switch only reports a single press action applied to the operating unit, that is, only a single click operation applied to the button. For example, when the user clicks a button, the battery wireless switch reports a single click operation applied to that button; as another example, when the user double-clicks a button, the battery wireless switch reports two click operations applied to that button; and as yet another example, when the user long-presses a button, the battery wireless switch also reports a single click operation applied to that button. Therefore, when the user long-presses any button, causing the battery wireless switch to directly connect to a terminal device, the battery wireless switch, upon detecting a press action applied to the button, immediately reports a single click operation applied to that button to the gateway device. It can be seen that regardless of whether it is a single click, double click, or long press, as long as the battery wireless switch detects a press action applied to any button, it reports a single click operation applied to that button to the gateway device. It does not need to detect the time the button is pressed, nor does it need to determine whether it is a single click, double click, or long press. It can quickly respond to the user's button click operation and control the corresponding device to perform the operation. Thus, the control latency of the battery wireless switch is low, improving the automation response speed and meeting the user's need for rapid response.

[0512] S1704. When the duration of the pressing action reaches the second specified time T2, the battery wireless switch establishes a communication connection with the terminal device.

[0513] In a specific embodiment, when the user presses any button for a second specified time T2, the battery wireless switch is directly connected to the terminal device, where T2 > ta, ta ∈ [3s, 10s]. For example, if ta is 5s, then T2 > 5s, meaning that the battery wireless switch is directly connected to the terminal device after the user presses any button for more than 5 seconds. In the first operation mode, when the user presses and holds any button, causing the battery wireless switch to be directly connected to a terminal device, the battery wireless switch, upon detecting a downward press action applied to the button, reports the single-click operation applied to the button to the gateway device. Further, when the duration of the detected downward press action reaches T2, the battery wireless switch detects a first trigger command, and the battery wireless switch is directly connected to the terminal device.

[0514] As can be seen from the above embodiments, users can switch the button operation mode according to their needs. When only the automation of single-click operations needs to be configured, the battery wireless switch can be controlled to switch to the first operation mode. This allows for a quick response to the user's single-click operation, improving the automation response speed and meeting the user's need for rapid response. Furthermore, in the first operation mode, the user can also long-press any button to directly connect the battery wireless switch to a terminal device. That is, the battery wireless switch first reports the single-click operation applied to the button to the gateway device, and then directly connects to the terminal device. When the automation of single-click, double-click, and / or long-press operations needs to be configured, the battery wireless switch can be controlled to switch to the second operation mode.

[0515] Please see Figure 44 This control method can also be applied to the aforementioned wireless battery switch 2, and the control method includes:

[0516] S1801, In response to the second signal, the battery wireless switch exits the first power consumption mode and enters the second power consumption mode so that the display unit can display text information.

[0517] In a specific embodiment, the battery wireless switch also includes a sensing unit for proximity-based wake-up. When a hand approaches, the sensing unit outputs a second signal, causing the battery wireless switch to respond to the second signal, exiting the first power consumption mode and entering the second power consumption mode. In other words, the battery wireless switch exits sleep mode and enters normal operation, at which point its power consumption is higher. It is understood that the power consumption of the battery wireless switch in the first power consumption mode is less than that in the second power consumption mode.

[0518] After the battery wireless switch enters the second power consumption mode, it controls the display unit to show text information. For example, the display unit is a screen. In the second power consumption mode, the battery wireless switch controls the screen to turn on, and the screen can display text information. For example, after the screen turns on, it can display the default display content set by the battery wireless switch at the factory (such as the default names of each button), or display the display content configured by the user through the terminal device (such as the first button name of each button); in another implementation, it can also display time, temperature value and / or humidity value, etc.

[0519] In one optional implementation, the battery wireless switch controls the display screen to light up when a person approaches. If the battery voltage used to power the battery wireless switch is lower than a preset voltage value, the display screen will first show a prompt message to remind the user that the battery power is too low so that the user can replace the battery in time. The preset voltage value can be set to 2V to 3V, preferably 2.65V. After the prompt message is displayed for a seventh specified time, the default display content or the user-configured display content will be displayed. The seventh specified time can be set to 1s to 3s, preferably 2s.

[0520] S1802. After a first preset time interval between entering the second power consumption mode, in response to the first signal, the battery wireless switch enters the first power consumption mode.

[0521] In one optional implementation, after a first preset time interval has elapsed since the battery wireless switch entered the second power consumption mode, the battery wireless switch acquires the signal output by the sensing unit. If the hand has left at this time, the sensing unit outputs a first signal, and the battery wireless switch acquires the first signal and, in response to the first signal, enters the first power consumption mode.

[0522] In another optional implementation, after the wireless battery switch enters the second power consumption mode, the sensing unit outputs a first signal or a second signal according to a first specified period. The wireless battery switch receives the signal output by the sensing unit but does not process it. Only after a first preset time interval does the wireless battery switch process the signal output by the sensing unit. If a hand has left at this time, the sensing unit outputs the first signal, and the wireless battery switch responds to the first signal and enters the first power consumption mode.

[0523] In another optional implementation, after the battery wireless switch enters the second power consumption mode, if the sensing unit detects that a person's hand has been on the switch without moving or changing position, the battery wireless switch will enter the first power consumption mode after a preset time.

[0524] After the battery wireless switch enters the first power consumption mode, it controls the display unit to reduce power consumption. For example, if the display unit is a screen, in the first power consumption mode, the battery wireless switch controls the screen to turn off, and no text information is displayed on the screen.

[0525] The first signal is one of two voltage levels, and the second signal is the other of the two voltage levels, which is different from the first signal. The two voltage levels include low voltage and high voltage. For example, when the first signal is low voltage, the second signal is high voltage; when the first signal is high voltage, the second signal is low voltage.

[0526] The following explanation uses the example of the first signal being high and the second signal being low. In this case, proximity-based wake-up is set to low-level trigger.

[0527] When a hand approaches, the sensor outputs a low level, waking the battery wireless switch and causing it to exit the first power consumption mode and enter the second power consumption mode. In the second power consumption mode, the battery wireless switch controls the display screen to light up, enabling it to display the names of the buttons. In another implementation, it can also display time, temperature, and / or humidity values, in which case the battery wireless switch consumes more power.

[0528] After a first preset time interval between entering the second power consumption mode, the battery wireless switch responds with a high level and enters the first power consumption mode. In the first power consumption mode, the battery wireless switch controls the display screen to turn off, and no text information is displayed on the screen. At this time, the power consumption of the battery wireless switch is low.

[0529] When a hand approaches, the sensor outputs a second signal, causing the wireless battery switch to respond to the second signal, exiting the first power consumption mode and entering the second power consumption mode. As can be seen in the above embodiment, when a hand approaches, the wireless battery switch is awakened from its sleep state, controlling the display screen to light up, allowing the user to view the names, time, and / or temperature and humidity of the buttons displayed on the screen. The screen remains on for a period of time, allowing the user to continue viewing the display even after removing their hand. After a certain interval in the second power consumption mode, if no hand approaches during this time, the wireless battery switch controls the display screen to turn off, thereby reducing power consumption. The wireless battery switch is battery-powered. Since the power consumption of the wireless battery switch is relatively high when the display screen is on, the proximity sensing wake-up function is implemented through the sensor, enabling the wireless battery switch to control the display screen to turn on or off, thereby extending battery life.

[0530] Please see Figure 45 This control method can also be applied to the aforementioned wireless battery switch 2, and the control method includes:

[0531] S1901, In response to the second signal, the battery wireless switch exits the first power consumption mode and enters the second power consumption mode so that the display unit can display text information.

[0532] The relevant explanation of step S1901 can be found in the relevant explanation of step S1801 above, and will not be repeated here.

[0533] S1902. After a first preset time interval between entering the second power consumption mode, in response to the first signal, the battery wireless switch enters the first power consumption mode.

[0534] In one optional implementation, the first preset time is carried in a second configuration message sent by the terminal device. The second configuration message is generated and sent by the terminal device based on the selected display time. The first preset time is set to 3s to 30s. Specifically, after direct connection, the terminal device generates a first configuration interface for configuring the display content on the display unit of the battery wireless switch. The first configuration interface also displays the operation mode, which the user can select to switch. In this embodiment, the first configuration interface also displays the screen-on time. The user can set the first preset time based on the displayed time. After setting, the terminal device generates and sends a second configuration message, which includes the user-set first preset time. Alternatively, if the user does not set a first preset time, it is a default value; preferably, the default value is 10s. When a hand approaches, the battery wireless switch is activated. If the hand leaves and the battery wireless switch is not operated, the battery wireless switch automatically turns off after 10s.

[0535] For example, the screen-on time displayed on the terminal device's first configuration interface ranges from 3 seconds to 30 seconds, meaning the user can select the screen-on time of the battery wireless switch's display. For instance, the user might set a first preset time of 5 seconds based on the displayed screen-on time, meaning the battery wireless switch's display will be on for 5 seconds. When a hand approaches, the battery wireless switch is activated; if the hand leaves and the battery wireless switch is not operated, the screen will automatically turn off after 5 seconds.

[0536] In addition, other explanations for step S1902 can be found in the relevant explanations for step S1802 above, and will not be repeated here.

[0537] S1903 After the second signal is maintained for a second preset time, the second signal is controlled to switch to the first signal. In response to the first signal, the battery wireless switch enters the first power consumption mode.

[0538] In a specific embodiment, when a hand approaches, in response to a second signal, the wireless battery switch enters a second power consumption mode, controlling the display screen to light up so that the user can view the button names, time, and / or temperature and humidity displayed on the screen. If the hand remains near after approaching, the sensing unit will continue to output the second signal. After the second signal is maintained for a second preset time, the second signal is switched to a first signal, causing the wireless battery switch to enter a first power consumption mode in response to the first signal, thereby reducing power consumption. The second preset time can be set to be the same as or different from the first preset time.

[0539] For example, the first preset time is set to 10 seconds, and the second preset time is also set to 10 seconds. When a hand approaches, the battery wireless switch is activated, controlling the display screen to light up. If the hand leaves and the battery wireless switch is not activated, the screen will automatically turn off after 10 seconds. If the hand remains in the area and the battery wireless switch is not activated, the screen will also turn off after 10 seconds.

[0540] As can be seen in the above embodiments, when a hand approaches, the battery wireless switch controls the display screen to light up so that the user can view the button names, time, and / or temperature and humidity. The screen remains lit for a period of time, allowing the user to continue viewing the display even after removing their hand. After entering the second power consumption mode, if the hand remains on for a certain period, the display screen is also turned off. This avoids the high power consumption caused by the display screen remaining constantly lit due to the user continuously touching the battery wireless switch, thus reducing power consumption. The battery wireless switch is battery-powered. Since the power consumption of the battery wireless switch is relatively high when the display screen is lit, a proximity sensing wake-up function is implemented through a sensing element, enabling the battery wireless switch to control the display screen to turn on or off, thereby extending battery life.

[0541] Please see Figure 46 This control method can also be applied to the aforementioned wireless battery switch 2, and the control method includes:

[0542] S2001. In response to the second signal, the battery wireless switch exits the first power consumption mode and enters the second power consumption mode so that the display unit can display text information.

[0543] For a detailed explanation of step S2001, please refer to the relevant explanation of step S1801 above, which will not be repeated here.

[0544] S2002, the battery wireless switch controls the temperature and / or humidity sensor to obtain the temperature and / or humidity values ​​of the surrounding environment.

[0545] In a specific embodiment, the battery wireless switch is also equipped with a temperature and humidity sensor. After the battery wireless switch enters the second power consumption mode, that is, after the battery wireless switch exits sleep mode and enters normal operation, the temperature and humidity sensor is controlled to obtain the temperature and / or humidity values ​​of the environment where the battery wireless switch is located.

[0546] S2003, the battery wireless switch displays temperature and / or humidity values ​​on the display unit.

[0547] In a specific embodiment, the battery wireless switch controls the temperature and / or humidity sensor to acquire the temperature and / or humidity values ​​of the environment, and then displays the temperature and / or humidity values ​​on the display unit for the user to view.

[0548] In one alternative implementation, in the first power consumption mode, the battery wireless switch controls the display screen to be off, and keeps the temperature and humidity sensor in sleep mode. When a hand approaches, the battery wireless switch is triggered to wake up. After waking up, the battery wireless switch controls the temperature and / or humidity sensor to read the current ambient temperature and / or humidity values, and controls the display screen to turn on, displaying the temperature and / or humidity values ​​on the screen. Additionally, the display screen also displays button names; in another implementation, the display screen also displays the time.

[0549] As can be seen in the above embodiments, when a person approaches, the proximity sensor wakes up the battery wireless switch, controls the temperature and humidity sensor to read the current temperature and humidity values ​​of the environment, controls the display screen to light up, and displays the temperature and humidity values ​​on the display screen so that the user can view the temperature and humidity values ​​displayed on the display screen and adjust the environment to make the temperature and humidity suitable.

[0550] Please see Figure 47a The terminal device (such as a mobile app) can display the battery wireless switch for network configuration. After the user selects the battery wireless switch, they can enter the detailed interface, such as... Figure 47aAs shown. The battery wireless switch is equipped with a temperature and humidity sensor that acquires and reports the current ambient temperature and humidity values ​​at a second specified interval. For example, if the second specified interval is set to 30 seconds, the temperature and humidity values ​​are acquired and reported every 30 seconds. Additionally, the battery wireless switch also acquires and reports the current battery level at a third specified interval. For example, if the third specified interval is set to 50 minutes, the battery level is acquired and reported every 50 minutes. Figure 47a In the example, the terminal device's interface displays a temperature of 27.6℃, indicating a suitable temperature; a humidity of 42.0%, also indicating a suitable humidity; and a battery level of 100%, meaning the wireless battery switch has sufficient power. Because the wireless battery switch periodically acquires and reports the current ambient temperature and humidity values, the terminal device's interface also displays temperature and humidity records. In the temperature record, the horizontal axis represents time, and the vertical axis represents temperature, with the corresponding temperature values ​​at different times forming a curve. For example, the temperature at 23:00 corresponds to 27.6℃. Similarly, in the humidity record, the horizontal axis represents time, and the vertical axis represents humidity, with the corresponding humidity values ​​at different times also forming a curve. For example, the humidity at 23:00 corresponds to 42.0%. Figure 47a As shown, the current interface of the terminal device can be swiped upwards. After the user swipes upwards, the detailed interface of the wireless battery switch on the terminal device will appear as follows. Figure 47b As shown.

[0551] Please see Figure 47b The terminal device's interface displays temperature and humidity records, both for the current day. For records by month or year, the user can click "View More" on the interface. This generates an interface to display the temperature and humidity records for the current month or year. Additionally, the terminal device's interface displays "Smart Scenes." Clicking "Smart Scenes" generates a second configuration interface, where the user can configure the mapping between control commands and target operations. This ensures that when a control command is detected, the corresponding target operation is executed, achieving automation. The terminal device's interface also displays "More Functions." Clicking "More Functions" prompts the user to press and hold any button on the battery wireless switch for 5 seconds. After this 5-second press, the battery wireless switch directly connects to the terminal device, and the terminal device generates a first configuration interface for user configuration. Figure 47b As shown, the current interface of the terminal device can be swiped down. After the user swipes down, the detailed interface of the battery wireless switch on the terminal device returns to normal. Figure 47a As shown.

[0552] Please see Figure 48 After the user clicks "More Functions" and the battery wireless switch is directly connected to the terminal device, the user can configure the battery wireless switch on the first configuration interface generated and displayed on the terminal device. For example, the text for button 1 can be configured as "Dining Room Light," button 2 as "Bedroom Light," button 3 as "Kitchen Light," and button 4 as "Living Room Light." It can be seen that the first configuration interface also displays the screen wake-up time, which the user can choose to set from 5 seconds to 30 seconds. Additionally, the first configuration interface displays a Fahrenheit switch; when the user selects to switch the device to Fahrenheit, the temperature value displayed on the battery wireless switch switches to Fahrenheit. The first configuration interface also displays a button operation mode switch. Specifically, the button operation modes displayed on the first configuration interface include a high-speed mode and a normal mode, where the high-speed mode is the first operation mode mentioned above, and the normal mode is the second operation mode mentioned above. Figure 22 The current button operation mode is the high-speed mode, which means that the button operation mode on the battery wireless switch is the first operation mode.

[0553] In the description of this specification, references to terms such as "some embodiments," "a specific implementation," "a specific implementation process," "an example," and "furthermore" indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms correspond to specific features, structures, materials, or characteristics that can be combined in any suitable manner in one or more embodiments or examples.

[0554] It should also be noted that the above embodiments can be combined with each other. For the same or similar concepts or processes, they may not be described again in some embodiments. That is, the technical solutions disclosed in the later (in the order of the text) embodiments should include the technical solutions described in this embodiment and the technical solutions described in all embodiments before this embodiment. Moreover, the solutions disclosed in the later embodiments can also be referenced by the earlier embodiments. For example, some later embodiments disclose more detailed technical solutions, which can be referenced by the earlier embodiments and can also be used to explain the earlier embodiments.

[0555] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A smart switch, wherein, include: Fixed components; The active component is movably connected to the fixed component; The movable component includes at least a pressing panel, a display screen, and a circuit board. The pressing panel is used to receive pressing force and, in response to the pressing force, drives the movable component to move in a first direction. The display screen is electrically connected to the circuit board, and the display screen and the circuit board are directly or indirectly fixedly connected to the pressing panel, so that the display screen and the circuit board can move synchronously with the pressing panel. The circuit board is provided with at least one detection element facing the first direction. When the movable component moves in the first direction in response to the pressing pressure, the detection element is triggered by being pressed by the fixed component.

2. The intelligent switch according to claim 1, wherein, The movable component further includes a movable part, which is movably connected to the fixed component. The pressing panel and the circuit board are respectively disposed on both sides of the movable part. The fixed component is provided with an elastic support member, which is directly or indirectly connected to the movable component and is used to provide elastic support to the movable component in the opposite direction to the first direction. When the pressing pressure is removed, the movable component returns to its original position under the action of the elastic support.

3. The intelligent switch according to claim 2, wherein, The pressing panel has a display part at the corresponding position of the display screen. The shape of the display part is adapted to the display area, and the display area represents the area where the display screen displays content. The display part is made of transparent material, which can display the content of the display area to the outside.

4. The intelligent switch according to claim 3, wherein, The display is surrounded by a circular black area, which is used to hide the outline of the display.

5. The intelligent switch according to claim 3, wherein, The pressing panel is attached to the upper side of the movable part with double-sided adhesive, and the circuit board is fixed to the lower side of the movable part with screws. The movable component has a receiving groove facing the display screen, the display screen is placed in the receiving groove, and the pressing panel is covered by the receiving groove; The display screen includes a first surface facing the pressing panel, the first surface having the display area, and the double-sided adhesive having a display through hole at a corresponding position of the display area.

6. The intelligent switch according to claim 5, wherein, The display through hole is attached to the first surface, so that the edges of the first surface are sealed to the pressing panel by the double-sided adhesive, thereby forming a sealed space between the first surface and the pressing panel.

7. The intelligent switch according to claim 2, wherein, The fixed component includes a middle shell and a bottom shell. The movable part is movably connected to the middle shell. The elastic support is disposed between the middle shell and the movable part. There are multiple elastic supports. Each elastic support supports the movable part in a balanced manner. The middle shell restricts the extreme position of the pressing panel moving toward the first direction. The bottom shell is located on the side of the middle shell away from the pressing panel and is detachably connected to the middle shell.

8. The intelligent switch according to claim 7, wherein, The middle shell has a limiting part between the movable member and the pressing panel. The limiting part is used to limit the extreme position of the movable member moving in a second direction, which is opposite to the first direction.

9. The intelligent switch according to claim 8, wherein, The limiting part is constructed as a limiting wall extending laterally inward from the side wall of the middle shell, the middle shell is set as a rectangle, and the limiting part is located at the four corners of the middle shell.

10. The intelligent switch according to claim 7, wherein, There are four elastic support members, four detection members, and the pressing panel is square in shape. The four elastic support members are located at the four corners of the square, respectively. The display screen is located at the center of the pressing panel. The pressing panel forms four operating areas at the corresponding positions of the four detection elements, and the four operating areas surround the display screen.

11. The smart switch according to any one of claims 1-10, wherein, The circuit board is provided with a second sensing unit, which can emit a second signal in response to the approach of a human hand. The second sensing unit is electrically connected to the display screen, and the display screen can light up in response to the second signal.