Smart wall switch and control method thereof

By using the control method of smart wall switches, users can flexibly adjust the detection strategy to enable or disable long-distance and short-distance detection, which solves the problem that the fixed detection strategy in the existing technology cannot adapt to personalized needs, and improves user experience and interaction efficiency.

CN122339879APending Publication Date: 2026-07-03WUHAN LINPTECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
WUHAN LINPTECH
Filing Date
2026-04-03
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

Existing smart wall switches typically employ fixed detection strategies that cannot adapt to individual user needs. They cannot flexibly enable or disable long-range and short-range detection, leading to false triggers or failure to meet the personalized needs of different users and scenarios.

Method used

A smart wall switch and its control method are provided, which allows users to dynamically adjust the detection strategy through terminal devices, supports enabling or disabling long-distance and short-distance detection, and combines infrared signal distance testing and successive approach method to realize hierarchical identification of user approach distance, and automatically switches the screen display interface according to different distance states.

Benefits of technology

It enables personalized proximity sensing functionality, simplifies the configuration process, reduces user learning costs, enhances product usability and interactive experience, and supports diverse usage needs and fine-grained control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122339879A_ABST
    Figure CN122339879A_ABST
Patent Text Reader

Abstract

This disclosure relates to a smart wall switch and its control method. The control method includes at least the following steps: performing human body detection in a predetermined state of the screen; and controlling the screen to switch to the corresponding user interface based on the detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of smart home technology, and in particular to a smart wall switch and its control method. Background Technology

[0002] With the rapid development of smart home technology, smart wall switches with displays are gradually becoming an important interactive entry point for home intelligent control.

[0003] To meet users' personalized display needs, these devices typically support multiple interface display contents, and with the rapid development of smart home technology, smart wall switches with proximity sensing functions are gradually being applied in home and office scenarios.

[0004] Therefore, it is necessary to provide a detection solution suitable for smart wall switches. Summary of the Invention

[0005] The purpose of this disclosure is to provide a smart wall switch and its control method, wherein a smart wall switch control method with configurable detection strategy is provided, enabling users to flexibly choose to enable or disable detection functions at different distances according to their own needs.

[0006] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein users can freely choose to enable or disable long-distance detection and short-distance detection according to actual usage scenarios and personal preferences, thereby defining personalized detection strategies and realizing personalized proximity sensing functions to meet diverse usage needs.

[0007] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein users can flexibly select the most suitable detection strategy according to actual usage scenarios and personal preferences to achieve a personalized proximity sensing experience.

[0008] Another objective of this disclosure is to provide an intelligent wall switch and its control method, in which the user can accurately obtain the actual distance between the wall switch and the user's position without using external measuring tools such as a tape measure, simplifying the configuration process. The process is simple and intuitive, reducing the user's learning cost and operating threshold, and improving the ease of use of the product.

[0009] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein an infrared signal distance testing scheme is adopted, which utilizes the monotonic relationship between infrared emission current and detection distance to quickly determine the distance value of the user's current location through successive approximations.

[0010] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein a hierarchical identification of the user's approach distance is achieved through two levels of detection signals with different detection distances, and the screen display of the corresponding user interface is automatically switched according to the different distances the user approaches.

[0011] Another objective of this disclosure is to provide a smart wall switch and its control method, which enables graded interface feedback based on the user's proximity distance and allows users to personalize the displayed interface content through terminal devices, thereby achieving a personalized interactive experience.

[0012] Another objective of this disclosure is to provide an intelligent wall switch and its control method, wherein in a multi-display configuration, the configuration of each display screen is independent of each other to meet refined control requirements.

[0013] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein the specific content displayed on each display screen can be configured independently. Users can use a terminal device (such as a mobile app) to set the primary display interface for each display screen in a long-distance state and the secondary display interface in a short-distance state.

[0014] Another object of this disclosure is to provide a smart wall switch and a control method thereof, wherein text is dynamically displayed on the screen via events.

[0015] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein when a user is detected by a local proximity sensor, or when a control command is received from an external device, the screen displays corresponding text according to preset rules.

[0016] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein the same text can be invoked by different triggering events, thereby achieving flexible decoupling between text content and display scene.

[0017] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein the linkage rules are uniformly managed and control commands are generated through a control platform, thereby achieving decoupled linkage between external devices and the smart wall switch. Users do not need to configure a smart wall switch for each external device separately; they only need to define linkage rules on the control platform, which greatly simplifies the configuration process. At the same time, it supports both cloud and local deployment modes, taking into account the needs of remote control and local rapid response.

[0018] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein a user can configure display text for local proximity sensing triggering and external device linkage triggering via a terminal device.

[0019] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein the provided "last configuration overwrites first configuration" synchronization mechanism ensures that the final configuration result is consistent with the user's last operation intention. Figure 1 This reduces the learning cost and operational burden for users.

[0020] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein the provided prior-modification synchronization mechanism enables the smart wall switch to automatically optimize its configuration according to the user's actual usage scenario, reducing the burden of manual adjustment for the user.

[0021] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein in a multi-display configuration, each display screen independently undertakes its corresponding display and interactive feedback functions.

[0022] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein when a user configures the smart wall switch on the settings interface of a terminal device, the user can see the effect related to the actual display content of the switch on the configuration interface diagram in real time, and can intuitively perceive the configuration result without repeatedly checking the switch screen, thereby greatly improving configuration efficiency and user experience.

[0023] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein users can intuitively modify button label information in a first setting interface and see a display effect consistent with the actual switch screen on the configuration interface diagram in real time, thus realizing the "what you see is what you get" of button label configuration.

[0024] Another objective of this disclosure is to provide an intelligent wall switch and its control method, wherein by distinguishing data types and using different communication paths, real-time performance can be guaranteed while ensuring the reliability of data transmission, thereby optimizing the communication efficiency of the configuration process.

[0025] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein the "synchronization upon exit" method can reduce the number of communications, reduce device power consumption, and avoid interface flickering or response delay caused by frequent switch updates triggered by the user during editing.

[0026] Another objective of this disclosure is to provide a smart wall switch and its control method, which combines "synchronization upon exit" with "real-time update of local patterns" to ensure the consistency of data between the smart wall switch and the terminal device, while avoiding frequent communication overhead and achieving a seamless synchronization experience.

[0027] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein by setting a touch simulation area, users can experience and familiarize themselves with the touch interaction logic of the smart wall switch in advance on a terminal device without having to operate the actual switch, thereby further improving the convenience and intuitiveness of configuration.

[0028] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein by pre-setting a first type of interface style scheme based on a static data source and a second type of interface style scheme based on an updatable data source in the same smart wall switch, a balance between response speed and expansion flexibility in interface style management is achieved.

[0029] Another objective of this disclosure is to provide a smart wall switch and its control method. The first type of interface style scheme, because its data is fixed locally and does not interact with the outside, can ensure a smooth experience of instant switching of basic commonly used styles. The second type of interface style scheme, through the "pre-acquisition and local storage" mechanism, maintains the response speed of subsequent switching while supporting the dynamic expansion and updating of the style library. This not only meets the personalized needs of users, but also optimizes the utilization of storage resources and reduces network dependence, thereby significantly improving the overall user experience of the smart wall switch.

[0030] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein by distinguishing between local operation and remote operation command sources, the technical solution of the present invention can adapt to the needs of different usage scenarios and provide users with diversified interaction methods.

[0031] Another objective of this disclosure is to provide a smart wall switch and its control method, wherein the local preview function allows users to fully understand the visual effects of each interface style scheme before switching, avoiding unsatisfactory experiences caused by blind switching, and improving the certainty of interaction and user satisfaction.

[0032] Another objective of this disclosure is to provide a smart wall switch and its control method. Through this "data transmission first, command sending later" mechanism, although the second type of interface style scheme requires a data download process during initial application, once the data is stored locally, subsequent switching can be completed quickly. This mechanism ensures both the richness and scalability of styles while avoiding reliance on network transmission for each switch, significantly improving the user experience.

[0033] Another objective of this disclosure is to provide a smart wall switch and its control method. Through a post-application reporting mechanism, the technical solution of this invention achieves real-time synchronization between local operation and cloud status, ensuring that users can accurately know the real status of the device at the remote end, thereby improving consistency and reliability.

[0034] Another objective of this disclosure is to provide a smart wall switch in which the user can adjust the display position to adapt to different installation locations and usage habits, thereby improving the user experience.

[0035] Another objective of this disclosure is to provide a smart wall switch in which users can flexibly adjust the display method according to their visual habits or wall installation location (e.g., the switch is installed at different heights or angles) to make the button label information easier to identify.

[0036] Another objective of this disclosure is to provide a smart wall switch in which the contrast between the outline and the fill can be clearly distinguished without color, and since the icon outline remains unchanged, there is no flickering or jumping sensation when switching, so this solution is suitable for smart wall switches with black and white screens.

[0037] Another objective of this disclosure is to provide a smart wall switch, wherein a first type of button is responsible for high-voltage control; when a user presses a mechanical button, the processor toggles the state of the relay. A second type of button is responsible for switching the screen interface; when a user touches a touch button, the processor switches the content displayed on the screen to the next set.

[0038] Another objective of this disclosure is to provide a smart wall switch in which, when a user touches a second type of button, the processor not only switches the content displayed on the screen but also changes the overall operating mode of the switch.

[0039] Another objective of this disclosure is to provide a smart wall switch in which the brightness of the screen and indicator lights is kept consistent, resulting in a visually harmonious effect.

[0040] Another objective of this disclosure is to provide a smart wall switch in which the area where the screen and the second type of buttons are located appears as a single flat display cover without any protruding buttons, resulting in a strong visual integration. At the same time, the location of the touch buttons can be indicated by backlighting, thus balancing aesthetics and practicality.

[0041] Another objective of this disclosure is to provide a smart wall switch in which the front layout of the switch is very clear: screens on both sides are responsible for display, touch buttons in the middle are responsible for mode switching, mechanical buttons on the top and bottom are responsible for performing specific control, and the display cover integrates the touch buttons and screens into a whole.

[0042] Another objective of this disclosure is to provide a smart wall switch in which, when multiple smart wall switches are arranged side by side, the above-described solution can achieve a continuous dynamic display effect across devices.

[0043] Another objective of this disclosure is to provide a smart wall switch in which multiple smart wall switches interact with the external device through their respective display states to transfer the display state between different smart wall switches, thereby forming a continuous display effect across devices.

[0044] Another objective of this disclosure is to provide a smart wall switch in which a coherent and interesting cross-device dynamic display effect is formed in a scenario where multiple switches are arranged side by side.

[0045] Another objective of this disclosure is to provide a smart wall switch, wherein by monitoring the dynamic change process of the object displayed on the screen and reporting the status information when a preset state is reached, external devices can trigger other smart wall switches to perform corresponding dynamic changes according to linkage rules, thereby achieving a continuous dynamic display effect across devices.

[0046] To achieve at least one of the above objectives, according to a first aspect of this disclosure, a control method is provided for use in a smart wall switch, the control method comprising at least the steps of: performing human body detection in a predetermined state of the screen; and controlling the screen to switch to the corresponding user interface based on the detection result.

[0047] According to embodiments of this disclosure, the smart wall switch is capable of communicating with a terminal device, the smart wall switch is installed in a power line and can be used to control high-voltage loads, and the smart wall switch has at least one screen; the method further includes: receiving a strategy configuration instruction; the strategy configuration instruction is determined based on the user's selection of the activation state of a first detection signal or a second detection signal received by the terminal device, and is used to indicate the activation state of the first detection signal and the second detection signal; configuring a detection strategy according to the activation state of the first detection signal and the second detection signal indicated by the strategy configuration instruction; and performing detection to determine whether a human body exists near the smart wall switch according to the configured detection strategy; wherein different activation states of the first detection signal and the second detection signal correspond to different detection strategies, the detection strategy defines the composition of the detection signal emitted when the screen is in a predetermined state, and the control logic executed on the screen display interface when the received feedback signal indicates the presence of a user; the detection signal is used to detect a human body.

[0048] According to embodiments of this disclosure, configuring the detection strategy based on the enabling status of the first detection signal and the second detection signal indicated by the strategy configuration instruction includes: configuring the detection strategy as a first detection strategy when the strategy configuration instruction indicates that both the first detection signal and the second detection signal are enabled; configuring the detection strategy as a second detection strategy when the strategy configuration instruction indicates that the first detection signal is disabled and the second detection signal is enabled; or configuring the detection strategy as a third detection strategy when the strategy configuration instruction indicates that the first detection signal is enabled and the second detection signal is disabled.

[0049] According to embodiments of this disclosure, the detection of whether a human body exists near the smart wall switch is performed according to the configured detection strategy, including: if the detection strategy is configured as a second detection strategy, then when the screen is in a predetermined state, only the second detection signal is emitted, and the user's proximity distance and the display state of the screen are determined based on whether a second feedback signal corresponding to the second detection signal is received; or, if the detection strategy is configured as a third detection strategy, then when the screen is in a predetermined state, the first detection signal is emitted, and after receiving a first feedback signal corresponding to the first detection signal, the second detection signal is not emitted, and the display state of the screen is directly controlled based on the first feedback signal.

[0050] According to embodiments of this disclosure, the detection of whether a human body exists near the smart wall switch is performed according to the configured detection strategy, including: if the detection strategy is configured as a first detection strategy, then: in a predetermined state of the screen, a detection signal is emitted according to the predetermined first detection strategy; under the first detection strategy, the detection signal includes at least a first detection signal; wherein, the first detection strategy further includes conditionally emitting a second detection signal; the second detection signal has different characteristic parameters from the first detection signal, and the different characteristic parameters cause the detection distance of the first detection signal to be greater than the detection distance of the second detection signal; determining the proximity distance state between the user and the smart wall switch based on whether the received feedback signal includes a first feedback signal corresponding to the first detection signal and / or a second feedback signal corresponding to the second detection signal; if it is determined that a user exists, controlling the screen to switch to the user interface corresponding to the proximity distance state according to the determined proximity distance state; wherein, the user interface corresponding to the proximity distance state is determined according to the user interface configuration instruction; the user interface configuration instruction is determined by the terminal device in response to the user's operation of selecting target interface content from multiple selectable interface content.

[0051] According to embodiments of this disclosure, determining the proximity state between a user and the smart wall switch specifically includes: if a first feedback signal is received but a second feedback signal is not received, it is determined to be a first-level distance state; the first-level distance state corresponds to the user being within the detection range of the first detection signal and outside the detection range of the second detection signal; if a second feedback signal is received, it is determined to be a second-level distance state; the second-level distance state corresponds to the user being within the detection range of the second detection signal.

[0052] According to embodiments of this disclosure, controlling the screen to switch to a user interface corresponding to a determined proximity distance state includes: if the proximity distance state is determined to be a first-level proximity state, controlling the screen to display a first-level display interface; if the proximity distance state is determined to be a second-level proximity state, controlling the screen to display a second-level display interface; wherein the first-level display interface and / or the second-level display interface are determined according to a user interface configuration instruction; the user interface configuration instruction is determined by the terminal device in response to the user's operation of selecting target interface content from a plurality of selectable interface content.

[0053] According to an embodiment of this disclosure, the detection signal is an infrared signal, and the first detection signal and the second detection signal are distinguished by different modulation codes; the control method further includes: when emitting an infrared signal, setting a variable time interval between continuously emitted infrared signals, wherein the variable time interval varies in a non-fixed manner.

[0054] According to embodiments of this disclosure, the control method further includes: receiving a first distance configuration instruction, the first distance configuration instruction carrying a first distance value selected by a user through the terminal device; setting the detection range of the first detection signal according to the first distance configuration instruction; and / or receiving a second distance configuration instruction, the second distance configuration instruction carrying a second distance value selected by a user through the terminal device; setting the detection range of the second detection signal according to the second distance configuration instruction.

[0055] According to an embodiment of this disclosure, the first distance value is greater than the second distance value, and the difference between the first distance value and the second distance value is at least 5 centimeters.

[0056] According to embodiments of this disclosure, the control method further includes: receiving a distance setting activation command from a terminal device; responding to the distance setting activation command, controlling the gradual adjustment of the transmission parameters of the detection signal to transmit the detection signal in a manner that increases the detection distance sequentially; monitoring whether a valid feedback signal corresponding to the transmitted detection signal is received after each transmission; when the valid feedback signal is received, determining the corresponding distance value based on the current transmission parameters; and transmitting the distance value outward so that the terminal device obtains the distance value for reference by the user when setting the detection range of the first detection signal or the detection range of the second detection signal.

[0057] According to an embodiment of this disclosure, the detection signal is an infrared detection signal; the step of gradually adjusting the transmission parameters of the detection signal to transmit the detection signal in a manner that increases the detection distance step by step includes: controlling the infrared transmission current to increase step by step from an initial value to increase the transmission power of the infrared detection signal step by step, thereby increasing the effective detection distance of the infrared detection signal step by step; the step of determining the corresponding test distance value based on the current transmission parameters includes: determining the distance value corresponding to the current value based on the current infrared transmission current value.

[0058] To achieve at least one of the above objectives, according to a second aspect of this disclosure, a smart wall switch is provided, comprising: a memory for storing interface data corresponding to an interface style scheme; a communication processing module for communicating with a mobile terminal; a screen for displaying data; and a processor electrically connected to the memory, the communication processing module, and the screen, wherein the processor is configured to execute the control method as described in the first aspect above.

[0059] 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 this disclosure. The foregoing inventive descriptions can be combined in any way, and these and other objectives of this disclosure will be fully realized through the following detailed description and accompanying drawings.

[0060] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0061] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. These drawings are incorporated in and constitute a part of this specification, illustrating embodiments consistent with this application and serving together with the specification to explain the principles of this application. Obviously, the drawings described below are merely some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0062] Figure 1 This is a schematic diagram of the working environment system of a smart wall switch according to an embodiment of the present disclosure;

[0063] Figure 2 This is a flowchart illustrating a control method according to an embodiment of the present disclosure;

[0064] Figure 3 This is a schematic diagram of the detection strategy configuration interface in one embodiment of this disclosure;

[0065] Figure 4 This is a schematic diagram of the automatic distance setting process in one embodiment of the present disclosure;

[0066] Figure 5 This is a schematic diagram of a custom interface process in one embodiment of this disclosure;

[0067] Figure 6 This is a schematic diagram of the intelligent control module configuration process in one embodiment of this disclosure;

[0068] Figure 7 This is a schematic diagram of the smart wall interface display after the smart control module in the custom interface is configured to display the weather in one embodiment of this disclosure;

[0069] Figure 8 This is a schematic diagram of the smart wall interface display after the smart control module in the custom interface is configured to display the time in one embodiment of this disclosure;

[0070] Figure 9 This is a schematic diagram of the configuration process of a secondary display interface of a smart wall switch according to an embodiment of the present disclosure;

[0071] Figure 10 In one embodiment of this disclosure, and Figure 9 A schematic diagram of the display interface of the corresponding smart wall switch;

[0072] Figure 11 This is a schematic diagram of the configuration process of the primary display interface of another smart wall switch in one embodiment of this disclosure;

[0073] Figure 12 In one embodiment of this disclosure, and Figure 11 A schematic diagram of the display interface of the corresponding smart wall switch;

[0074] Figure 13 This is a schematic diagram of the configuration process of the primary display interface of another smart wall switch in one embodiment of the present disclosure;

[0075] Figure 14 In one embodiment of this disclosure, and Figure 13 A schematic diagram of the display interface of the corresponding smart wall switch;

[0076] Figure 15 This is a schematic diagram of the operation process for configuring and selecting custom text content of a smart wall switch according to an embodiment of the present disclosure;

[0077] Figure 16 In one embodiment of this disclosure, and Figure 15 A schematic diagram of the display interface of the corresponding smart wall switch;

[0078] Figure 17 This is a schematic diagram of the operation process for configuring and selecting custom text content for another smart wall switch in one embodiment of this disclosure;

[0079] Figure 18 In one embodiment of this disclosure, and Figure 17 A schematic diagram of the display interface of the corresponding smart wall switch;

[0080] Figure 19 This is a schematic diagram of a screensaver type selection interface in one embodiment of this disclosure;

[0081] Figure 20 This is a schematic diagram of the interface of another smart wall switch displaying a second specified text under a minimalist screensaver in one embodiment of this disclosure;

[0082] Figure 21 This is a schematic diagram of the operation flow of the first setting interface of a smart wall switch according to an embodiment of the present disclosure;

[0083] Figure 22 In one embodiment of this disclosure, and Figure 21 A schematic diagram of the interface display of the corresponding smart wall switch;

[0084] Figure 23 This is a schematic diagram of the operation flow of the first setting interface of another smart wall switch in one embodiment of the present disclosure;

[0085] Figure 24 This is a schematic diagram of the operation process for modifying the first type of button identification information in one embodiment of this disclosure;

[0086] Figure 25 This is a schematic diagram of the operation process for modifying the second type of button identification information in one embodiment of this disclosure;

[0087] Figure 26 This is a schematic diagram of the operation flow of the second setting interface of a smart wall switch according to an embodiment of the present disclosure;

[0088] Figure 27 In one embodiment of this disclosure, and Figure 26 A schematic diagram of the interface display of the corresponding smart wall switch;

[0089] Figure 28This is a schematic diagram of the operation flow of the second setting interface of another smart wall switch in one embodiment of this disclosure;

[0090] Figure 29 In one embodiment of this disclosure, and Figure 28 A schematic diagram of the interface display of the corresponding smart wall switch;

[0091] Figure 30 This is a schematic diagram of a local interface style switching scheme in one embodiment of the present disclosure;

[0092] Figure 31 This is a schematic diagram of the interface style switching scheme on a terminal device in one embodiment of the present disclosure;

[0093] Figure 32 This is a schematic diagram showing the interface style of a smart wall switch according to an embodiment of the present disclosure;

[0094] Figure 33 This is a schematic diagram of the custom wallpaper operation process in one embodiment of this disclosure;

[0095] Figure 34 This is a schematic diagram of a wallpaper effect preview operation in one embodiment of the present disclosure;

[0096] Figure 35 This is a schematic diagram of the module composition of a smart wall switch provided in one embodiment of the present disclosure;

[0097] Figure 36 This is a schematic block diagram of the module composition of a smart wall switch according to an embodiment of the present disclosure;

[0098] Figure 37 This is a schematic diagram of the display position selection operation process in one embodiment of the present disclosure;

[0099] Figure 38 This is a schematic diagram illustrating the dynamic response of button icons to button operations in one embodiment of this disclosure;

[0100] Figure 39 This is a schematic diagram of the operation process for customizing button icons in one embodiment of this disclosure;

[0101] Figure 40 This is a front view of a four-button smart wall switch according to an embodiment of the present disclosure;

[0102] Figure 41 This is a schematic diagram of the parallel installation of a single-button smart wall switch, a double-button smart wall switch, and a triple-button smart wall switch according to an embodiment of this disclosure;

[0103] Figure 42 This is a front view of a four-button smart wall switch according to an embodiment of the present disclosure;

[0104] Figure 43 This is a schematic diagram of the parallel installation of a single-button smart wall switch, a double-button smart wall switch, a three-button smart wall switch and a four-button smart wall switch according to an embodiment of this disclosure;

[0105] Figure 44 This is a schematic diagram of the parallel installation of a single-button smart wall switch, a double-button smart wall switch, and a triple-button smart wall switch according to an embodiment of this disclosure;

[0106] Figure 45 This is a front view of a four-button smart wall switch according to an embodiment of the present disclosure;

[0107] Figure 46 This is a schematic block diagram of the module composition of a smart wall switch according to an embodiment of the present disclosure;

[0108] Figure 47 This is a schematic diagram illustrating the screen linkage effect when a smart wall switch is installed in a row according to one embodiment of this disclosure;

[0109] Figure 48 This is a schematic diagram illustrating the screen linkage effect when another smart wall switch is installed in a row according to one embodiment of this disclosure;

[0110] Figure 49 This is a schematic circuit block diagram of a smart wall switch according to an embodiment of the present invention;

[0111] Figure 50 This is a circuit diagram of the power supply module of a smart wall switch in one embodiment of the present invention;

[0112] Figure 51 This is a circuit diagram of the protection module of a smart wall switch in one embodiment of the present invention;

[0113] Figure 52 This is a circuit diagram of the adjustment module of the smart wall switch in one embodiment of the present invention;

[0114] Figure 53 This is a circuit diagram of the zero-crossing detection circuit of a smart wall switch in one embodiment of the present invention;

[0115] Figure 54 This is a circuit diagram of a smart wall switch relay driving circuit in one embodiment of the present invention;

[0116] Figure 55 This is a circuit diagram of a temperature detection circuit for an intelligent wall switch according to an embodiment of the present invention;

[0117] Figure 56 This is a block diagram of a smart wall switch according to an embodiment of the present invention;

[0118] Figure 57This is a circuit diagram of the human body sensing module of the smart wall switch in one embodiment of the present invention;

[0119] Figure 58 This is a circuit diagram of the character chip of a smart wall switch in one embodiment of the present invention;

[0120] Figure 59 This is a block diagram of a smart wall switch according to another embodiment of the present invention;

[0121] Figure 60 This is a circuit diagram of the touch button detection circuit of a smart wall switch in one embodiment of the present invention;

[0122] Figure 61 This is a block diagram of a smart wall switch according to another embodiment of the present invention;

[0123] Figure 62 This is a circuit diagram of the brightness detection circuit of a smart wall switch in one embodiment of the present invention;

[0124] Figure 63 This is a schematic diagram of a three-button smart wall switch structure according to an embodiment of the present invention;

[0125] Figure 64 This is a schematic diagram of the assembly of the button and the middle shell according to an embodiment of the present invention;

[0126] Figure 65 This is a top view of a smart wall switch according to an embodiment of the present invention;

[0127] Figure 66 yes Figure 65 Sectional view of section AA;

[0128] Figure 67 yes Figure 66 Enlarged view of section K in the middle;

[0129] Figure 68 This is a schematic diagram of an elastic guide arm structure according to an embodiment of the present invention;

[0130] Figure 69 This is a schematic diagram of the structure of the middle shell according to an embodiment of the present invention;

[0131] Figure 70 This is a schematic diagram of the structure of the back of a button according to an embodiment of the present invention;

[0132] Figure 71 This is a cross-sectional view of the buttons, middle shell, display cover, and screen in the BB section according to an embodiment of the present invention;

[0133] Figure 72 This is a cross-sectional view of the buttons, middle shell, display cover, and screen in the CC section according to an embodiment of the present invention;

[0134] Figure 73 This is a cross-sectional view of the buttons, middle shell, display cover, and screen in the DD and EE portions according to an embodiment of the present invention;

[0135] Figure 74 This is an assembly diagram of the keypad and key bracket according to an embodiment of the present invention;

[0136] Figure 75 This is a schematic diagram of the structure of the back of a button according to an embodiment of the present invention;

[0137] Figure 76 This is an assembly diagram of a display cover, double-sided adhesive, screen, and middle shell according to an embodiment of the present invention;

[0138] Figure 77 This is a top view of a smart wall switch with the display cover hidden according to an embodiment of the present invention;

[0139] Figure 78 This is a schematic diagram of the structure of the back of the display cover according to an embodiment of the present invention;

[0140] Figure 79 yes Figure 65 Sectional view of the middle FF section;

[0141] Figure 80 This is a schematic diagram of the circuit board and electronic components according to an embodiment of the present invention;

[0142] Figure 81 This is a schematic diagram of the structure of the shell, circuit board, and electronic components according to an embodiment of the present invention;

[0143] Figure 82 This is a schematic diagram of the assembly of the middle shell and the circuit board according to an embodiment of the present invention;

[0144] Figure 83 This is a schematic diagram of the bottom shell structure according to an embodiment of the present invention;

[0145] Figure 84 This is a cross-sectional view of the GG section of a smart wall switch installed in a junction box according to an embodiment of the present invention;

[0146] Figure 85 This is a schematic diagram of a single-button smart wall switch structure according to an embodiment of the present invention;

[0147] Figure 86 This is an assembly diagram of the components of a single-button smart wall switch according to an embodiment of the present invention.

[0148] Figure 87 This is an assembly diagram of the keypad and key bracket according to an embodiment of the present invention;

[0149] Figure 88This is a schematic diagram of a dual-button smart wall switch structure according to an embodiment of the present invention;

[0150] Figure 89 This is an assembly diagram of the components of a dual-button smart wall switch according to an embodiment of the present invention.

[0151] Figure 90 This is an assembly diagram of the keypad and key bracket according to an embodiment of the present invention;

[0152] Figure 91 This is a schematic diagram of the structure of the back of a button according to an embodiment of the present invention. Detailed Implementation

[0153] The embodiments of this disclosure will now be described in detail.

[0154] Furthermore, the technical features involved in the various embodiments of this disclosure described below can be combined with each other as long as they do not conflict with each other.

[0155] The following is combined Figure 1 The working environment system of the intelligent wall switch involved in this invention is described. This system provides the operating environment and implementation basis for the various control methods of the intelligent wall switch.

[0156] like Figure 1 As shown, the system includes: smart wall switches, terminal devices, relay devices, and cloud servers.

[0157] The smart wall switch is capable of communicating with the terminal device. It is suitable for installation in power lines and can be used to control high-voltage loads. The smart wall switch has at least one screen for display. Furthermore, it has the ability to control the on / off state or adjust high-voltage loads (such as lights, fans, and motorized curtains) via relays or SCRs. The smart wall switch can establish a communication connection with the user's terminal device to receive instructions or data from the terminal device.

[0158] Specifically, the smart wall switch described in this disclosure is an electrical control device that integrates display and interactive functions. It is installed in a standard wall box (e.g., type 86 or similar) and positioned between the mains power line and the high-voltage load. In some embodiments, a smart wall switch is also provided, which internally includes at least a memory, a communication processing module, a screen, and a processor.

[0159] The memory, such as a Flash memory, is used to store various data required in subsequent control methods.

[0160] The communication processing module, such as a Bluetooth module, is used to communicate with terminal devices (such as mobile terminals) and relay devices.

[0161] The screen, such as a display (e.g., LCD, OLED, or e-ink screen), is used to present the user interface.

[0162] The processor, such as a microcontroller (MCU) or application processor, is electrically connected to the memory, the communication processing module, and the screen, and is used to execute the control methods provided in subsequent embodiments.

[0163] Specifically, the processor can be, for example, a microcontroller (MCU) running firmware. The processor detects changes in the button's state and executes corresponding logic based on the type of button press, such as controlling the engagement or disengagement of a relay or refreshing the screen display. Simultaneously, the processor also communicates with terminal devices (such as mobile apps), receiving configuration commands and updating local parameters.

[0164] In this embodiment of the disclosure, the terminal device may be, for example, a user's smartphone, tablet, or other mobile terminal with computing and communication capabilities. The terminal device has a dedicated application (App) installed, through which the user can browse, select, or manage the interface style scheme of the smart wall switch and / or personalize the user interface of the smart wall switch.

[0165] The cloud server refers to a server system deployed in the Internet cloud for storing and managing interface style scheme data, processing terminal device requests, and interacting with relay devices.

[0166] The relay device refers to a device deployed in the user's local network environment that can realize communication forwarding between the cloud server and the smart wall switch, such as a smart home gateway, router, etc.

[0167] Taking the relay device as the gateway device as an example, the smart wall switch and the gateway device establish a connection using short-range wireless communication protocols (such as Zigbee and Bluetooth Mesh) for transmitting detection status, receiving commands, and reporting event information. The gateway device and the cloud server connect to the internet via a home router, using IoT protocols such as MQTT, HTTP, or CoAP for bidirectional communication, enabling data uploading and command distribution. The terminal device and the cloud server connect to the internet via a mobile network or Wi-Fi, using secure protocols such as HTTPS for data interaction. Users can perform corresponding operations on the application, and data is synchronized to the gateway device and the smart wall switch via the cloud server. In a local area network environment, the terminal device can also communicate directly with the gateway device via local network protocols to achieve local control of the smart wall switch, reducing cloud dependence and improving response speed.

[0168] In some solutions, the communication between the smart wall switch and the terminal device can take at least one of two paths: a remote control path and a local direct connection path.

[0169] The remote control path involves the terminal device connecting to a cloud server via the internet, and the cloud server forwarding instructions to the smart wall switch via a relay device (such as a home smart gateway).

[0170] The local direct connection path involves establishing a point-to-point wireless communication connection (such as Bluetooth direct connection) between the terminal device and the smart wall switch. This path avoids multiple forwardings of data through cloud servers and gateway devices, improving transmission efficiency and reliability.

[0171] In some solutions, the smart wall switch also has human body sensing capabilities, which can detect whether there is a human body within the detection range and then execute corresponding control logic.

[0172] It should be noted that the above system is only an exemplary implementation method, and can be adapted to meet product requirements and network environment in practical applications. Any modifications and substitutions that do not depart from the concept of this invention should fall within the protection scope of this invention.

[0173] In some embodiments, a control method is provided, applied to the above-mentioned smart wall switch, or, as... Figure 1 The operating environment system shown relates to the smart wall switch. Specifically, the control method includes at least the following steps:

[0174] Human body detection is performed in a predetermined state of the screen; specifically, a detection signal is emitted outward in a predetermined state of the screen; the detection signal is used to detect whether there is a human body within a specified range of the smart wall switch;

[0175] Based on the detection results, the control screen switches to the corresponding user interface. Specifically, if a valid feedback signal is received, it is determined that a human body is present, and the control screen switches to the corresponding user interface.

[0176] Understandably, in existing proximity sensing solutions for smart wall switches, the detection strategies are usually pre-set and fixed, which cannot adapt to personalized usage needs.

[0177] For example, some products only support single-range detection, triggering the screen display as soon as the user approaches, which can easily lead to accidental triggering due to non-operational intentions such as passing by. Other products support tiered detection at different distances, but both detection functions are always enabled simultaneously, making it impossible to enable or disable them individually according to the user's actual needs. This "one-size-fits-all" design fails to meet the personalized needs of different users in different scenarios. For example, in a bedroom scenario, users may not want frequent screen activation due to long-range detection; while in a living room scenario, users may want to retain a complete, progressive interactive experience.

[0178] Therefore, one embodiment of this disclosure provides a smart wall switch control method with configurable detection strategies, enabling users to flexibly choose to enable or disable detection functions at different distances according to their own needs. Specifically, as... Figure 2 The diagram shows a flowchart illustrating a control method for determining a detection strategy according to an embodiment of this disclosure. This control method can be applied to the smart wall switch provided in the above embodiment, allowing users to dynamically adjust their detection strategy through a terminal device according to actual usage needs, thereby achieving personalized proximity sensing functionality.

[0179] The control method includes at least steps S1 to S3.

[0180] In step S1, the smart wall switch receives a policy configuration instruction; the policy configuration instruction is determined based on the user's selection of the activation status of the first detection signal and / or the second detection signal received by the terminal device, and is used to indicate the activation status of the first detection signal and / or the second detection signal.

[0181] Specifically, the smart wall switch establishes a communication connection with the terminal device and is able to receive policy configuration instructions from the terminal device. These policy configuration instructions are generated by the terminal device in response to the user's selection of the enable / disable status of a first detection signal (long-range detection) and / or a second detection signal (near-range detection) on the application interface.

[0182] In step S2, the smart wall switch configures a detection strategy according to the activation status of the first detection signal and the second detection signal indicated by the strategy configuration instruction.

[0183] The different activation states of the first detection signal and the second detection signal correspond to different detection strategies. The detection strategy defines the composition of the detection signal emitted when the screen is in a predetermined state, and the control logic executed on the screen display interface when the received feedback signal indicates the presence of a user. The detection signal is used to detect the human body.

[0184] In step S3, the smart wall switch performs detection to determine if a human body is present near it, according to the configured detection strategy. Specifically, the smart wall switch emits corresponding detection signals (a first detection signal and / or a second detection signal) based on the detection signal composition defined in the detection strategy, and monitors the received feedback signals in real time. When the feedback signal indicates the presence of a user, the screen display interface is controlled accordingly (e.g., waking up the screen, switching interfaces, etc.) according to the control logic defined in the detection strategy.

[0185] For example, such as Figure 3 As shown, the app's configuration page offers two independent toggle options, corresponding to the first and second detection signals respectively. Users can enable or disable these two options as needed. For example, if a user wants the screen to wake up only at extremely close range, they can disable the first detection signal and keep only the second detection signal enabled; if a user wants to view information only at a distance without triggering the close-range operation interface, they can disable the second detection signal and keep only the first detection signal enabled; if a user wants a complete progressive interaction experience, they can enable both options.

[0186] After the user completes the selection, the APP encapsulates the user's configuration information into policy configuration instructions and sends them to the smart wall switch through the cloud server and gateway device.

[0187] Furthermore, the solution provided by the above embodiments allows users to freely choose to enable or disable long-range detection and short-range detection according to actual usage scenarios and personal preferences, thereby defining personalized detection strategies and realizing personalized proximity sensing functions to meet diverse usage needs.

[0188] Further, configuring the detection strategy according to the activation status of the first detection signal and the second detection signal indicated by the strategy configuration instruction includes:

[0189] When the strategy configuration instruction indicates that both the first detection signal and the second detection signal are enabled, the detection strategy is configured as the first detection strategy;

[0190] When the policy configuration instruction indicates that the first detection signal is disabled and the second detection signal is enabled, the detection policy is configured as the second detection policy; or...

[0191] When the policy configuration instruction indicates that the first detection signal is enabled and the second detection signal is disabled, the detection policy is configured as a third detection policy.

[0192] Specifically, at least one of the first and second detection signals can be selectively disabled by the user. When the user selects the enable / disable status of the first and second detection signals via the terminal device, the policy configuration instruction received by the smart wall switch carries the enable / disable status of the two detection signals: if both the first and second detection signals are enabled simultaneously, the detection policy will be configured as the first detection policy. If only the second detection signal is enabled, the detection policy will be configured as the second detection policy. If only the first detection signal is enabled, the detection policy will be configured as the third detection policy. If both the first and second detection signals are disabled simultaneously, the proximity sensing function is completely turned off, and the detection policy will be configured as a no-detection mode (which can be considered a fourth detection policy). Under this fourth detection policy, the smart wall switch does not emit any detection signals. The screen can remain in a predetermined state, and the proximity sensing function is completely turned off.

[0193] Furthermore, through the above configuration mechanism, users can flexibly choose the most suitable detection strategy according to the actual usage scenario and personal preferences, so as to achieve a personalized proximity sensing experience.

[0194] Furthermore, according to the configured detection strategy, the detection of whether a human body exists near the smart wall switch is performed, including: if the detection strategy is configured as a second detection strategy, then when the screen is in a predetermined state, only the second detection signal is emitted, and the user's proximity distance and the display state of the screen are determined based on whether a second feedback signal corresponding to the second detection signal is received; or, if the detection strategy is configured as a third detection strategy, then when the screen is in a predetermined state, the first detection signal is emitted, and after receiving a first feedback signal corresponding to the first detection signal, the second detection signal is not emitted, and the display state of the screen is directly controlled based on the first feedback signal.

[0195] Specifically, when the detection strategy is configured as the second detection strategy (near-range detection mode only), the smart wall switch directly emits the second detection signal without emitting the first detection signal when the screen is in a predetermined state. When the user enters the near-range detection range, the screen lights up and directly displays the secondary display interface. This strategy is suitable for scenarios where users want to activate the screen only when they are very close to the wall switch, such as in a bedroom or hallway, to avoid accidental triggering due to passing by. The proximity sensing logic of the smart wall switch is as follows: when the screen is in a predetermined state (such as screen off or screensaver), only the second detection signal is emitted, and the first detection signal is no longer emitted. The second detection signal corresponds to the near-range detection range, for example, 0cm to 50cm. The second detection signal is emitted periodically, and the system continuously monitors whether the corresponding second feedback signal is received. If the second feedback signal is received, it indicates that the user has entered the near-range area, and the screen lights up and directly switches to the secondary display interface (such as a detailed control panel); if the second feedback signal is not received, it indicates that the user is not within the detection range, and the screen remains in the predetermined state. In this mode, since the first detection signal is not emitted, it is impossible to detect the approach of a user at a distance, and therefore, no far-range wake-up will occur.

[0196] When the detection strategy is configured as the third detection strategy (long-distance detection mode only), the smart wall switch only emits the first detection signal when the screen is in the predetermined state. When a user is detected entering the long-distance area, the screen lights up and displays the primary display interface, but no longer emits the second detection signal for close-distance monitoring. The primary display interface is maintained regardless of whether the user moves closer. This strategy is suitable for scenarios where users want to view information only from a distance without performing close-distance operations, such as in a living room or study. Users may want to view the time, weather, or device status from a distance without needing fine-grained control of the devices. The proximity sensing logic of the smart wall switch is as follows:

[0197] When the screen is in the predetermined state, only the first detection signal is emitted, and the second detection signal is not emitted. The first detection signal corresponds to a long-distance detection range, such as 0cm to 110cm. The first detection signal is emitted periodically, and the system continuously monitors whether the corresponding first feedback signal is received. If the first feedback signal is received, it indicates that the user has entered the long-distance area, and the screen is controlled to light up and switch to the primary display interface. Thereafter, since the second detection signal has been disabled in the detection strategy, it is no longer emitted for close-range monitoring. Regardless of whether the user moves closer, the screen maintains the primary display interface and will not switch to the secondary display interface. When the user leaves the long-distance detection range, the disappearance of the feedback signal is detected, and the screen is controlled to return to the predetermined state.

[0198] In some embodiments, the control method further includes: receiving a first distance configuration instruction, the first distance configuration instruction carrying a first distance value selected by a user through the terminal device; setting the detection range of the first detection signal according to the first distance configuration instruction; and / or receiving a second distance configuration instruction, the second distance configuration instruction carrying a second distance value selected by a user through the terminal device; setting the detection range of the second detection signal according to the second distance configuration instruction.

[0199] Specifically, the primary display interface is associated with the first proximity distance range (the detection range of the first detection signal) corresponding to the first detection signal, and the secondary display interface is associated with the second proximity distance range (the detection range of the second detection signal) corresponding to the second detection signal; wherein, the first proximity distance range and / or the second proximity distance range can be configured independently by the user.

[0200] For example, a configuration method for the first proximity distance range and the second proximity distance range is as follows: a preset total physical detection range is linearly mapped to an adjustable percentage range from 0% to 100%; this adjustable percentage range is visualized through the application interface of the terminal device; the terminal device receives user operations through the visualized adjustable percentage range, and the user defines the far-end threshold of the first proximity distance range by setting a first percentage value, and / or defines the far-end threshold of the second proximity distance range by setting a second percentage value; the terminal device determines the first distance value based on the far-end threshold of the first proximity distance range, and / or determines the second distance value based on the far-end threshold of the second proximity distance range.

[0201] The terminal device sends out the determined first distance value and / or second distance value, so that the smart wall switch receives the first distance value and / or second distance value and uses it to set the detection range of the first detection signal and / or the detection range of the second detection signal.

[0202] Furthermore, the difference between the first percentage value and the second percentage value is constrained to be no less than 10% to ensure that a preset minimum interval is maintained between the first approach distance range and the second approach distance range.

[0203] For example, another configuration of the first proximity range and the second proximity range is as follows:

[0204] like Figure 3As shown, the terminal device directly displays the distance value of the total physical detection range (e.g., 20cm~110cm). The user selects the far-end threshold of the first proximity distance range and / or the far-end threshold of the second proximity distance range by dragging the distance value setting slider. The terminal device determines the first distance value based on the far-end threshold of the first proximity distance range, and / or determines the second distance value based on the far-end threshold of the second proximity distance range. The terminal device sends the determined first distance value and / or second distance value outward, so that the smart wall switch receives the first distance value and / or second distance value and uses it to set the detection range of the first detection signal and / or the detection range of the second detection signal.

[0205] Furthermore, the first distance value is greater than the second distance value, and the difference between the first distance value and the second distance value is at least 5 centimeters. Preferably, it is 10 centimeters, meaning the first distance value must always be 10 centimeters greater than the second distance value. For example, if the user first sets the first distance value to 50 centimeters, then the second distance value can only be set within 40 centimeters. If the user first sets the second distance value to 50 centimeters, then the first distance value can only be set above 60 centimeters.

[0206] In some embodiments, the control method further includes an automatic calibration of the detection range, used to assist the user in setting the detection range of the first detection signal or the detection range of the second detection signal. This distance testing function guides the user to conduct actual measurements in a real-world environment to obtain accurate proximity distance values, thereby helping the user to more precisely configure the sensing distance parameters. Specifically, the control method further includes:

[0207] The smart wall switch receives a distance-set activation command from the terminal device;

[0208] In response to the distance-set activation command, the smart wall switch controls and gradually adjusts the transmission parameters of the detection signal to transmit the detection signal by progressively increasing the detection distance.

[0209] The smart wall switch monitors whether it receives a valid feedback signal corresponding to the transmitted detection signal after each transmission.

[0210] When the valid feedback signal is received, the corresponding distance value is determined based on the current transmission parameters;

[0211] The smart wall switch sends the distance value outward, enabling the terminal device to acquire the distance value for the user to refer to when setting the detection range of the first detection signal or the detection range of the second detection signal.

[0212] Specifically, when users wish to personalize the detection range of a smart wall switch via a terminal device, they can first activate the distance self-calibration function. For example... Figure 4 As shown, after clicking the automatic distance setting item on the page provided by the APP, the user enters the automatic distance setting page. This page provides some operation steps for the user to view. The user stands at the desired distance position (e.g., if you want to set the close-range detection range to 30cm, stand about 30cm away from the wall switch). After clicking the "Start Setting" control, the terminal device responds to the operation and sends a distance setting start command to the smart wall switch.

[0213] After receiving the distance setting activation command, the smart wall switch initiates an automatic detection range calibration process: the smart wall switch controls the gradual adjustment of the detection signal transmission parameters to transmit the detection signal by progressively increasing the detection distance.

[0214] The phrase "gradually increasing the detection range" here can be understood as starting from the minimum detection range and gradually increasing the transmission power or adjusting other parameters to increase the detection range from near to far. After each transmission, it is monitored whether a valid feedback signal corresponding to the transmitted detection signal is received.

[0215] When a valid feedback signal is received for the first time, the transmission parameters are stopped from being increased sequentially, and the corresponding distance value is determined based on the current transmission parameters.

[0216] For example, if the current transmission current is a certain value, and this current value corresponds to a preset detection distance (this correspondence is obtained through factory calibration), then this distance value is used as the test result. This distance value is sent to the terminal device, and the terminal device displays this distance value to the user on the application interface (e.g., ...). Figure 4 As shown, the current detection distance is 100cm. Users can refer to this measured distance value in the subsequent detection range setting interface, for example, by directly using the distance value as the detection range of the first detection signal or the detection range of the second detection signal.

[0217] As can be seen, with the above solution, users can accurately obtain the actual distance between the wall switch and the user's location without using external measuring tools such as a tape measure. This simplifies the configuration process, making it simple and intuitive, reducing the user's learning cost and operating threshold, and improving the product's ease of use.

[0218] In some embodiments, the detection signal is a radar signal, and the step of gradually adjusting the transmission parameters of the detection signal to increase the detection range successively includes: controlling the radar transmission module to gradually adjust the transmission power, pulse width, or gain parameters to increase the effective detection range of the radar signal successively.

[0219] Specifically, radar sensors (such as millimeter-wave radar and ultra-wideband radar) typically have adjustable transmission parameters. In distance testing mode, the smart wall switch starts with the minimum transmission power and gradually increases the transmission power (or pulse width, receiver gain, etc.) in preset steps. For example, starting from the lowest transmission power, it increases by 1 dBm each time, transmitting radar signals sequentially. As the transmission power increases, the effective detection range of the radar signal also increases accordingly. When a user stands at a specific distance, a valid reflected signal will be received for the first time when the transmission power reaches a certain threshold. At this point, the current transmission power value is recorded, and the corresponding distance value is calculated using a pre-calibrated power-distance mapping relationship. This mapping relationship can be obtained by testing standard reflectors at different distances at the factory, forming a lookup table or fitting function.

[0220] Furthermore, the distance testing scheme using radar signals can achieve accurate distance measurement by utilizing the parameter adjustment capability of the radar sensor itself, without the need for additional hardware. Moreover, radar signals have advantages such as strong penetration and resistance to ambient light interference, making them suitable for scenarios requiring high-precision detection.

[0221] In some embodiments, the detection signal is an infrared detection signal; the stepwise adjustment of the transmission parameters of the detection signal to transmit the detection signal in a manner that gradually increases the detection distance includes: controlling the infrared transmission current to gradually increase from an initial value to gradually increase the transmission power of the infrared detection signal, thereby gradually increasing the effective detection distance of the infrared detection signal.

[0222] The step of determining the corresponding test distance value based on the current emission parameters includes: determining the distance value corresponding to the current infrared emission current value based on the current infrared emission current value.

[0223] Specifically, infrared detection modules typically control the emission power by adjusting the drive current of the infrared LED. A higher drive current results in stronger infrared light and a longer effective detection distance. For example, a smart wall switch starts with an initial current value (e.g., 10mA) and gradually increases the infrared LED's emission current in preset steps (e.g., 5mA). After each increase, it emits an infrared detection signal and monitors whether a valid reflected signal is received. The detection distance corresponding to the initial current value is usually set to the minimum (e.g., 5cm), and the detection distance corresponding to the maximum current value is set to the maximum sensing distance supported by the product (e.g., 110cm). When a user stands at a specific distance, a reflected signal will be received for the first time when the emission current reaches a certain threshold; at this point, the current emission current value is recorded.

[0224] The correspondence between current value and detection distance can be obtained through factory calibration and stored in the local memory of the smart wall switch. During calibration, in an environment without reflection interference, a standard reflector is placed at different distances, and the minimum emission current that can stably detect the reflected signal is measured, thereby establishing a current-distance mapping table. During subsequent user operation, the smart wall switch can determine the corresponding distance value by looking up this mapping table based on the current emission current value.

[0225] Furthermore, an infrared signal distance testing scheme is adopted, which utilizes the monotonic relationship between infrared emission current and detection distance to quickly determine the distance value of the user's current location through successive approximations.

[0226] In some embodiments, the corresponding user interface is selected by the user in advance from a plurality of optional interface contents via a terminal device.

[0227] Furthermore, when the smart wall switch emits a detection signal, it emits the signal according to a predetermined detection strategy to achieve richer screen display operations.

[0228] Specifically, the control method further includes:

[0229] When the smart wall switch is in a predetermined state with the screen open, it emits a detection signal according to a predetermined first detection strategy. Under the first detection strategy, the detection signal includes at least a first detection signal. The first detection strategy further includes conditionally emitting a second detection signal; the second detection signal has different characteristic parameters than the first detection signal, and the different characteristic parameters cause the detection range of the first detection signal to be greater than the detection range of the second detection signal.

[0230] The smart wall switch determines the proximity status between the user and the smart wall switch based on whether the received feedback signal contains a first feedback signal corresponding to the first detection signal and / or a second feedback signal corresponding to the second detection signal.

[0231] When the smart wall switch determines that a user is present, it controls the screen to switch to the user interface corresponding to the determined proximity distance state. The user interface corresponding to the proximity distance state is determined according to the user interface configuration instruction. The user interface configuration instruction is determined by the terminal device in response to the user's operation of selecting the target interface content from multiple optional interface contents.

[0232] In this embodiment of the disclosure, the predetermined state includes an inactive display state where the screen is off, on but with the screen saver on, or in a standby interface. In the predetermined state, the smart wall switch still runs its detection function in the background to respond to the user's approach at any time.

[0233] In this embodiment of the disclosure, when the screen of the smart wall switch is in an inactive display state, such as being off, on but with the screen content saved, or in a standby interface, the human body sensing module inside the wall switch starts to work and emits a detection signal according to a preset first detection strategy.

[0234] Under the first detection strategy, the emitted detection signal includes at least a first detection signal. The first detection signal corresponds to a longer detection distance and is used to detect whether the user has entered the long-distance sensing area (such as the range of 0cm-110cm from the wall switch).

[0235] In addition, the first detection strategy also includes conditionally transmitting a second detection signal. This can be understood as the timing and method of transmitting the second detection signal being flexibly adjusted according to the specific detection strategy and different modes under the specific detection strategy (such as the sequential transmission mode, composite detection mode, power differentiation mode, etc. provided in subsequent embodiments).

[0236] In this embodiment, the signal reflected back to the smart wall switch after the detection signal encounters the user's body is the feedback signal. For ease of distinction, in this embodiment, the feedback signal corresponding to the first detection signal is defined as the first feedback signal, and the feedback signal corresponding to the second detection signal is defined as the second feedback signal. The smart wall switch determines the presence of a user and the user's proximity status by analyzing whether a feedback signal is received and what kind of feedback signal is received. The proximity status can be understood as user distance information determined based on the feedback signal, including at least different distance states when a user is present (e.g., long distance state, short distance state) and a state without a user.

[0237] In this embodiment, when a user is detected, the smart wall switch wakes up the screen (if the screen is off) and switches the screen display to the user interface corresponding to the current proximity distance. The user can select from multiple preset optional interface contents on the terminal device. The terminal device generates a user interface configuration instruction based on the user's selection, and the smart wall switch updates the corresponding user interface according to the user interface configuration instruction.

[0238] Based on this, the control method provided in this embodiment achieves graded identification of user approach distance through two levels of detection signals with different detection distances, and automatically switches the screen display to show the corresponding user interface according to the different user approach distances. This enables graded interface feedback based on user approach distance and allows users to personalize the displayed interface content through their terminal devices, achieving a personalized interactive experience.

[0239] In some embodiments, the control method further includes: when the smart wall switch determines that no user is present, controlling the screen to remain or return to the predetermined state, and resuming the transmission of the detection signal containing at least the first detection signal.

[0240] Specifically, when the smart wall switch determines that the user has left the detection range based on the received feedback signal (i.e., no valid feedback signal corresponding to the first or second detection signal is detected within a preset time window), a reset operation is performed. This reset operation includes two aspects:

[0241] First, the control screen returns from the currently displayed interface (such as the primary display interface or the secondary display interface) to a power-saving inactive display state, i.e., the predetermined state.

[0242] Secondly, resume the transmission of a detection signal that includes at least the first detection signal.

[0243] This reset operation ensures that the smart wall switch screen displays a state consistent with the actual situation of the user.

[0244] It should be noted that in some embodiments, to avoid frequent screen off or switching when the user moves at the boundary between near and far distances, the reset operation is not executed immediately upon the disappearance of the feedback signal, but rather after a brief delay (e.g., 1-5 seconds) confirming the user's departure. This ensures both timely response and avoids unnecessary state jitter.

[0245] It is worth noting that the detection signal involved in the above embodiments can be understood as a signal used to detect the presence of a user, and can be at least one of the following: infrared signal, ultrasonic signal, millimeter-wave radar signal, laser signal, etc. The first detection signal and the second detection signal have different characteristic parameters. These different characteristic parameters can also be used to distinguish the physical characteristics of different detection signals, including but not limited to: signal encoding, modulation frequency, transmission power, pulse width, waveform, etc. By setting different characteristic parameters, the first detection signal and the second detection signal can have different detection distances.

[0246] In some embodiments, the detection signal is an infrared signal, and the first detection signal and the second detection signal are distinguished by different modulation codes. Based on this, when the smart wall switch emits an infrared signal (mainly controlled by the processor of the smart wall switch), the control method further includes: setting a variable time interval between consecutively emitted infrared signals, wherein the variable time interval varies in a non-fixed manner.

[0247] Specifically, when the smart wall switch periodically transmits detection signals according to the first detection strategy, the time interval between two adjacent detection signals is not fixed, but rather variable. This variable interval can be achieved in various ways: for example, by using a random number generator to generate a random interval, by using a pseudo-random sequence to generate a pseudo-random interval, or by adaptively adjusting the interval according to the ambient noise level. Regardless of the specific implementation method used, its core characteristic is that the transmission interval is uncertain, that is, it "changes in a non-fixed manner".

[0248] In practical applications, when multiple smart wall switches are deployed in a smart home environment, introducing a variable transmission interval can effectively avoid signal conflicts between the smart wall switches. For example, after the first detection signal is transmitted, the next signal is transmitted after a random duration (such as 87 milliseconds), which is generated in real time by the random number generator inside the processor; the interval for the next transmission may be another random value (such as 132 milliseconds), thus making the transmission timing unpredictable.

[0249] It is evident that the variable transmission interval design can significantly enhance anti-interference capabilities, effectively avoid signal collisions in environments with multiple devices, and improve the reliability and accuracy of proximity sensing.

[0250] Furthermore, the time interval varies randomly between 50 milliseconds and 150 milliseconds.

[0251] Specifically, as a preferred implementation of the variable transmission interval, this embodiment sets the time interval between adjacent detection signals to vary randomly within the range of 50 milliseconds to 150 milliseconds. Within this range, each time a detection signal is transmitted, a random integer between 50 and 150 is generated using a random number generation algorithm as the waiting time after this transmission. For example, the waiting time is 73 milliseconds after the first transmission, 128 milliseconds after the second transmission, 91 milliseconds after the third transmission, and so on. This random distribution makes the transmission interval uniformly distributed on the time axis, effectively avoiding periodic synchronization with other devices.

[0252] In some embodiments, the smart wall switch determines the proximity status between the user and the smart wall switch, specifically including:

[0253] If a first feedback signal is received but a second feedback signal is not received, the system is determined to be in a first-level distance state; the first-level distance state corresponds to the user being within the detection range of the first detection signal but outside the detection range of the second detection signal. Conversely, if a second feedback signal is received, the system is determined to be in a second-level distance state; the second-level distance state corresponds to the user being within the detection range of the second detection signal.

[0254] Specifically, the proximity state includes at least a first-level distance state and a second-level distance state. If a first feedback signal is received but a second feedback signal is not received (this could be because the smart wall switch did not emit a second detection signal and therefore did not receive a second feedback signal, or it could be because the smart wall switch emitted a second detection signal and therefore did not receive a second feedback signal), then it is determined to be a first-level distance state (long distance). The first-level distance state corresponds to the user being within the detection range of the first detection signal but outside the detection range of the second detection signal.

[0255] If a second feedback signal is received (regardless of whether a first feedback signal is received), the system is determined to be in a secondary distance state. This secondary distance state (near distance) corresponds to the user being within the detection range of the second detection signal. It is possible that the first feedback signal is also received when the second feedback signal is received (e.g., a smart wall switch also transmits a first detection signal when transmitting the second detection signal), or the first feedback signal may not be received (e.g., the smart wall switch stops transmitting the first detection signal when transmitting the second detection signal).

[0256] Further, based on the determined proximity distance state, controlling the screen to switch to the user interface corresponding to that proximity distance state includes: if it is determined to be a level one proximity state, controlling the screen to display a level one display interface; if it is determined to be a level two proximity state, controlling the screen to display a level two display interface. Wherein, the level one display interface and / or the level two display interface are determined according to user interface configuration instructions; the user interface configuration instructions are determined by the terminal device in response to the user's operation of selecting target interface content from multiple selectable interface contents.

[0257] Specifically, users can personalize the displayed content through a terminal device (such as a mobile app) paired with the smart wall switch. The terminal device has multiple preset interface options, such as: time and weather interface, clock interface, calendar interface, control panel, scene selection panel, and button label information interface. For example, after a user browses and selects the desired content in the terminal device's app, the app generates a corresponding user interface configuration command and sends this command to the smart wall switch via a cloud server and gateway. Upon receiving the command, the smart wall switch associates and stores the corresponding display content with the primary or secondary distance status, and subsequently displays the user-configured content in the corresponding status.

[0258] In some embodiments, at least some of the optional interface content is user-configurable. That is, in addition to preset fixed interfaces (such as time and weather interfaces, button label information interfaces, etc.), users can create fully customized interfaces according to their personal needs, achieving a higher degree of personalization. Specifically, the control method further includes:

[0259] The smart wall-mounted switch receives custom interface configuration commands; these commands are generated by the user after configuring an interface through the terminal device.

[0260] The smart wall switch generates and displays the corresponding interface based on the received custom interface configuration instructions.

[0261] In this embodiment, the user can configure multiple custom interfaces via a terminal device. Each configured custom interface is encapsulated as an interface data packet and sent to the smart wall switch with a custom interface configuration command. The smart wall switch receives and stores these interface data packets, generates the corresponding custom interface, and allows the user to select it when configuring the primary or secondary display interface. When the user selects a custom interface for a certain detection state (primary distance state or secondary distance state), the wall switch can display the content of the custom interface sequentially in the corresponding state.

[0262] For example, such as Figure 5 As shown, users can access the page editing interface on their terminal device (such as a mobile app) by clicking the "Pages and Control Cards" option. In this interface, users can add a custom page by clicking "Add Page." Clicking on the custom page then leads to the "Page Module Configuration" interface, where users can configure the custom page's attributes, such as renaming it and adding smart control modules. There are various types of smart control modules, each with different parameters (such as size and shape).

[0263] Each intelligent control module has adjustable parameters, such as size (width, height), shape (rectangle, circle, rounded rectangle), position coordinates, background color, transparency, font size, etc.

[0264] In some solutions, users can freely adjust the layout of modules using gestures such as dragging, scaling, and rotating to achieve a WYSIWYG interface design.

[0265] Furthermore, each intelligent control module on the custom interface also supports user self-configuration. That is, after an intelligent control module is added to the custom interface, its initial state is an empty module, and the specific parameters of the intelligent control module can be set by the user according to their needs. Specifically, the control method further includes:

[0266] The smart wall switch receives module attribute configuration data; this module attribute configuration data is generated after the user customizes the attribute parameters of a smart control module added on a custom interface.

[0267] The smart wall switch configures the attribute parameters of the corresponding smart control module on the corresponding custom interface according to the module attribute configuration data.

[0268] Furthermore, users can configure the attribute parameters of the intelligent control module by associating it with specific objects on the terminal device.

[0269] For example, if a user needs to display specific content through a smart control module, they can associate it with a specific data source object. For instance... Figure 6 As shown, by associating a smart control module with the weather service, this module becomes the weather display window, showing the current weather conditions and temperature in real time. Figure 7 As shown (schematic diagram of smart wall switch screen display). Of course, a smart control module can also be associated with a clock, thus becoming a digital clock display, such as... Figure 8 As shown.

[0270] In some embodiments, if it is necessary to control other devices through an intelligent control module, the user can associate it with a switch object. The switch objects can be of various types (at least one or all of the first type of switch, second type of switch, and third type of switch), and the ability to control the object and / or provide feedback on the status of the controlled device differs between different types of switch objects.

[0271] Furthermore, the various types of switch objects include the first type of switch. The first type of switch is used to control the on / off state of local relay channels.

[0272] Furthermore, the control method further includes: the smart wall switch acquiring the trigger operation of the smart control module, and if it is determined that the triggered smart control module is associated with a switch object, executing the corresponding control operation according to the type of the associated switch object. Specifically, when the associated switch object is a first-type switch, a local relay control operation is executed.

[0273] Specifically, if the intelligent control module is associated with the first type of switch, then the intelligent control module is used to control the on / off state of the local relay channel of the smart wall switch.

[0274] like Figure 6 As shown, the smart wall switch has three Class I switches, such as... Figure 6 The system uses local switches, each corresponding to a relay channel. For example, if a user associates the smart control module with local switch 1, the user can trigger the on / off state switching of the relay channel corresponding to local switch 1 through the smart control module.

[0275] Furthermore, various types of switch objects include second-class switches (such as...) Figure 6 Wireless switches) and third-class switches (such as wireless switches) Figure 6(Virtual switches in the context). The second and third types of switches differ in their ability to provide feedback on the status of the controlled device.

[0276] Specifically, the second type of switch lacks the ability to provide feedback on the status of the controlled device, while the third type of switch does have the ability to provide feedback on the status of the controlled device. The control method further includes:

[0277] When the switch object associated with the intelligent control module is a second type of switch, the first feedback operation is executed in response to the trigger of the intelligent control module. The first feedback operation does not reflect the state of the controlled device.

[0278] When the switch associated with the intelligent control module is a third-type switch, a second feedback operation is executed in response to the triggering of that switch. This second feedback operation includes changing the status indicator of the intelligent control module, and the changed status indicator is correlated with the current status of the controlled device. The status indicator includes whether the background of the intelligent control module is highlighted or turned off.

[0279] Furthermore, if the intelligent control module is associated with a second type of switch, the module, when triggered, will send out a wireless signal carrying event information indicating that it has been triggered. This wireless signal is transmitted to a relay device and / or a cloud server, allowing the relay device and / or cloud server to trigger the corresponding execution scenario based on stored trigger relationships. These trigger relationships are predefined by the user, defining a mapping between at least one intelligent control module defined as a second type of switch and at least one execution scenario.

[0280] For example, Figure 6 As shown, if through as Figure 6 The operation process shown involves associating a smart control module with a wireless switch 1 (a second type of switch) and setting the wireless switch 1 to execute the "one-click leave home" scenario. Users can then trigger the execution of the "one-click leave home" scenario by activating the smart control module.

[0281] If the intelligent control module is associated with a third-type switch, the module, when triggered, will send a wireless signal carrying event information indicating that it has been triggered. This signal is transmitted to a relay device and / or a cloud server, allowing the relay device and / or cloud server to trigger the corresponding controlled device based on a stored triggering relationship. This triggering relationship is predefined by the user, defining a mapping between at least one intelligent control module defined as a third-type switch and at least one executable function of at least one controlled device.

[0282] For example, Figure 6 As shown, if through as Figure 6The illustrated operation flow involves associating a smart control module with virtual switch 1 (a third-type switch). The module is set to turn on the living room light when clicked, and simultaneously highlight the module's background when it receives a signal indicating the light is on. While the background is highlighted, clicking the module turns off the living room light, and simultaneously turning off the module's background when it receives a signal indicating the light is off. After configuration, users can trigger the living room light's on / off state through this smart control module and view the light's current status via the module's background.

[0283] Furthermore, the names (a type of attribute parameter) of each intelligent control module can also be customized by the user. For example, a user can name one intelligent control module "Home Mode" and another intelligent control module "Away Mode".

[0284] Furthermore, different intelligent control modules can also come with differentiated module backgrounds (a type of attribute parameter). For example, the weather module can have a cloud background, and the time module can have a simple scale background, enhancing visual recognition and aesthetics.

[0285] After editing the custom interface, the user can name and save it. The terminal device sends a configuration file containing the layout information, module attributes, module relationships, and other interface data of the custom interface to the outside world. The wall switch stores this configuration file and uses it as a displayable custom interface. This custom interface also appears in the subsequent primary / secondary display interface configuration list. The user can select this custom interface for either long-distance or short-distance operation as needed.

[0286] In summary, the embodiments of this disclosure not only provide multiple preset optional interface contents, but also support deep user customization of the interface. Furthermore, the intelligent control modules on each customized interface can be independently configured with attributes and associated trigger relationships, greatly enhancing the personalization of the product and meeting the diverse functional needs of different users. Through modular design, users can easily create feature-rich interactive interfaces without programming knowledge. The customized interface, as part of the optional content list, can be switched and modified by users at any time, offering flexibility and convenience.

[0287] In some embodiments: the secondary display interface is determined according to the user interface configuration instructions and is used to display frequently used interfaces. The primary display interface is used to display a screen saver interface. In this embodiment, when the user approaches from a distance, the screen displays a screen saver interface, which is determined according to the interface style scheme applied by the user. When the user approaches at close range, the screen switches to a frequently used interface configured by the user.

[0288] In some embodiments, the primary display interface is determined according to the user interface configuration instructions and is used to display the saver interface; the secondary display interface is used to display the button identification information of the smart wall switch.

[0289] The button identification information is used to indicate the buttons of the smart wall switch (e.g., first type of button, i.e., mechanical button).

[0290] Button labeling information can be understood as the text, symbols, icons, and / or graphics used to identify each button on a smart wall switch. Users can customize the labeling information for each button, such as renaming a button to "Living Room Light" or "Bedroom Light," or setting a personalized icon for the button.

[0291] For example, the button identification information includes a button name and / or a button icon. The button name is in text form, and the button icon can be an icon from a preset icon library or a user-uploaded image.

[0292] In this embodiment, when a user approaches from a distance, the screen displays a user-configured interface, such as a screensaver. The screensaver content can be switched by the user (e.g., basic information like time, date, and weather). When the user approaches at close range, the screen switches to a button identification information interface, clearly indicating the device or scene corresponding to each button. Furthermore, the button identification information can be modified, allowing the user to change the button names or icons of the smart wall switch via a terminal device.

[0293] In some embodiments, the primary display interface is determined according to a primary display interface configuration instruction, which is determined by the terminal device in response to a user's operation of selecting target interface content from a plurality of first optional interface contents; the secondary display interface is determined according to a secondary display interface configuration instruction, which is determined by the terminal device in response to a user's operation of selecting target interface content from a plurality of second optional interface contents; wherein the plurality of first optional interface contents and the plurality of second optional interface contents are not completely identical.

[0294] In this embodiment, users can independently select the interface content to display for both long-distance and short-distance viewing, with the two configuration processes operating independently. The design of the two content option pools can also differ. This design provides maximum flexibility, meeting users' dual needs for both long-distance previewing and short-distance operation.

[0295] In some embodiments, the screen includes a display screen (e.g., a color screen (preferably an LCD screen) or a monochrome screen (preferably an OLED screen)). The surface of the smart wall switch button for receiving operation and the display surface of the display screen are both located on the upper surface of the smart wall switch, so that when the user operates the button, the feedback can be seen intuitively from the display screen.

[0296] In some embodiments, there is only one display screen and multiple buttons, with button identification information for all buttons displayed on the same display screen. The secondary display interface is determined according to the user interface configuration instructions, and the primary display interface is used to display the content of the display saver.

[0297] The buttons include a first type of button (mechanical button) and a second type of button (touch button). The first type of button is configured to generate displacement in response to a pressing operation to trigger a mechanical switch signal; the second type of button is configured to generate a touch switch signal in response to a sensing operation.

[0298] Furthermore, in this embodiment of the disclosure, the smart wall switch adopts a single-screen, multi-button layout. For example, three mechanical buttons are provided on the right side of a 3.52-inch display screen. When a user approaches from a distance, the screen displays saver content (such as time and weather); when the user approaches at close range, the screen switches to a secondary display interface, which is determined according to the user interface configuration instructions.

[0299] like Figure 9 and Figure 10 As shown, in a specific example, the smart wall switch has three mechanical buttons and one screen. The specific operation process for setting the secondary display interface based on the terminal device's application can be as follows: After the user opens the APP, they enter the "Screen Display Settings" interface and select the "Common Interface Configuration" option. This option provides several selectable interfaces, including the default "Home" interface, and user-customizable pages 1-11, as well as "Last Operation Interface" and "None". If the user selects "Home", the secondary display interface will display the home interface. If the user selects any of pages 1-11, the secondary display interface will display the user-customized interface. If the user selects "Last Operation Interface", the secondary display interface will display the interface from the user's last operation. If the user selects "None", the second detection signal will be disabled. For example, if the user selects page 1, where page 1 is user-customized... Figure 8 The page shown has a smart control module added, and this module is linked to time. Therefore, the display status of the smart wall switch can be, for example... Figure 10 As shown.

[0300] In some embodiments, the smart wall switch has multiple displays. The control method further includes: independently determining the primary display interface and / or secondary display interface corresponding to each display screen according to user interface configuration instructions.

[0301] Specifically, in a multi-display configuration, each display independently handles the information display and interactive feedback functions for its corresponding buttons. Users can independently configure the primary and / or secondary display interfaces for each display via a terminal device. The configuration of each display is independent, meeting refined control requirements. It accommodates the functional differences of different buttons and user customization needs; multiple screens can operate in parallel without interference.

[0302] Furthermore, the control method also includes: when the smart wall switch performs screen switching based on the user's proximity, the multiple displays synchronously switch to their respective primary display interface or secondary display interface.

[0303] Specifically, the smart wall switch is equipped with only one human body sensing module (such as an infrared sensor (composed of an infrared emitting unit and an infrared receiving unit), a radar sensor, etc.). This human body sensing module is used to uniformly detect the proximity distance between the user and the wall switch. When the user is detected to be at a first-level or second-level distance, the smart wall switch, based on the unique distance status judgment result, synchronously sends a switching command to all displays.

[0304] All displays respond to the same proximity changes by uniformly switching from their current display content to the display content type corresponding to that proximity state (primary display interface or secondary display interface). In other words, there is no situation where one display is in the primary display interface while another display is in the secondary display interface; all displays always display the same type of content (either both in the primary display interface or both in the secondary display interface).

[0305] However, although the switching is synchronous, the specific content displayed on each screen can be configured independently. Users can use a terminal device (such as a mobile app) to set the primary display interface for each screen when viewed from a distance, and the secondary display interface when viewed from a close distance. The content displayed on different screens can be the same or different, entirely up to the user.

[0306] For example, the button includes a mechanical button. The pressing surface of the mechanical button and the display surface of the screen are both located on the upper surface of the smart wall switch, so that when the user presses the mechanical button, they can intuitively see the feedback on the display screen.

[0307] There is a one-to-one correspondence between the display screen and the mechanical buttons. The primary display interface is determined according to the user interface configuration instructions, and the secondary display interface is used to display the button identification information of the smart wall switch.

[0308] Taking a two-button smart wall switch as an example, the device has two mechanical buttons and two displays, with each display located above the corresponding mechanical button. Users can independently configure a primary display interface for each mechanical button via a terminal device. For example, the primary display interface for the left mechanical button can be configured as "Weather" (displaying weather information), and the primary display interface for the right mechanical button can be configured as "Time" (displaying time information). When the user approaches from a distance, the two displays show their respective configured weather and time; when the user approaches closely, the two displays switch to a secondary display interface, i.e., button identification information, such as "Living Room Light" and "Curtains," respectively, helping the user identify the controlled device corresponding to the currently selected mechanical button.

[0309] The principle is the same for three-button mechanical buttons: each button has its own dedicated display screen, independently switches interfaces, and has its own configured display content. This allows for a dedicated display area for each mechanical button.

[0310] like Figure 11 and Figure 12 As shown in the example, in a specific instance, the smart wall switch has three buttons. The primary display interface is used to display the screen saver. The specific operation process for setting the primary display interface based on the terminal device's application can be as follows: After the user opens the APP and enters the screen display device page, they select the "Screen Saver Display Content" option. This page provides screen saver display content settings for the left, middle, and right buttons. The user can independently set the screen saver display content (i.e., the primary display interface) for the screen corresponding to these three buttons. For example, if the user selects the weather for the left button, the time for the middle button, and the date for the right button, then after the APP generates and issues the configuration command, the smart wall switch will configure the primary display interface for each display screen according to the user's settings. Figure 12 As shown.

[0311] In some embodiments, the smart wall switch includes multiple mechanical buttons. The number of displays is less than the number of mechanical buttons. The primary display interface is determined according to the user interface configuration instructions, and the secondary display interface is used to display the button identification information of the smart wall switch.

[0312] Taking a four-button wall switch with two displays as an example, the two displays can be located in the middle area between the two upper mechanical buttons and the two lower mechanical buttons, respectively. Each display simultaneously serves the two mechanical buttons adjacent to it. When the user approaches from a distance, the two displays show the primary display interface of their respective areas. For example, the left display shows "Weather," and the right display shows "Time." When the user approaches closely, the two displays switch to the secondary display interface, namely the button identification information. Each display shows the button identification information of the two mechanical buttons in a vertical column format. For example, the left display shows "Living Room Light | Dining Room Light," and the right display shows "Curtains | Air Conditioner."

[0313] like Figure 13 and Figure 14 As shown in the example, the smart wall switch has four buttons and two screens. The primary display interface is used to display the screen saver. The specific operation process for setting the primary display interface based on the terminal device's application can be as follows: After the user opens the APP and enters the screen display device page, they select the "Screen Saver Display Content" option. This page provides screen saver display content settings for the left and right screens. The user can independently set the screen saver display content (i.e., the primary display interface) for these two screens. For example, if the user selects the weather as the screen saver for the left screen and the time for the right screen, after the APP generates and sends the configuration command, the smart wall switch will configure the primary display interface for each screen according to the user's settings. Figure 14 As shown.

[0314] In some embodiments, the conditional transmission of the second detection signal specifically includes: transmitting the second detection signal after receiving the first feedback signal.

[0315] Specifically, the first detection strategy adopts a sequential mode, and the second detection signal is conditional upon receiving the first feedback signal. That is, the first detection signal and the second detection signal are transmitted in a sequential order and have different detection distances.

[0316] Furthermore, after transmitting the second detection signal, the control method further includes: determining the display content of the screen based on whether a second feedback signal corresponding to the second detection signal is received within a specified time. Specifically: if the second feedback signal corresponding to the second detection signal is received within the specified time, the screen is controlled to switch to the secondary display interface; otherwise, the screen is controlled to switch to the primary display interface.

[0317] Specifically, when the smart wall switch screen is in a predetermined state (e.g., screen off), the smart wall switch emits a detection signal according to a first detection strategy. Initially, only the first detection signal (corresponding to long-distance detection) is emitted. The detection range of the first detection signal is configured to be relatively far. The smart wall switch continuously monitors whether it receives a first feedback signal corresponding to the first detection signal. When the user enters the detection range of the first detection signal, the smart wall switch receives the first feedback signal, indicating that the user has entered a long-distance area. At this time, the smart wall switch does not immediately perform the first control operation of screen lighting and interface display, but first performs a quick confirmation at close range: during the confirmation period, the smart wall switch emits a second detection signal, the detection range of which is configured to be relatively close, and simultaneously starts a quick confirmation window (specified time). Within this quick confirmation window, it quickly detects whether it receives a second feedback signal corresponding to the second detection signal.

[0318] Scenario 1: A second feedback signal is received within a specified time.

[0319] If a second feedback signal is received within the specified time, it indicates that the user is already in the near-field area while entering the far-field area (e.g., the user is rapidly approaching). At this point, the first control operation is executed:

[0320] The control screen lights up and directly displays the secondary display interface (close-up interface).

[0321] This process skips the display of the far-field interface, avoiding the flickering phenomenon of "displaying the far-field interface first and then immediately switching to the near-field interface", thus achieving a seamless and fast-response experience.

[0322] Scenario 2: No second feedback signal is received within the specified time.

[0323] If no second feedback signal is received within the specified time, it indicates that the user is currently only in the far-field area and has not yet entered the near-field area. In this case, execute the first control operation:

[0324] Control the screen to light up and display the primary display interface (long-distance interface).

[0325] It is worth noting that in this embodiment of the disclosure, the specified time is set to an extremely short duration, such as less than 50ms. Taking a specified time of 10ms as an example, the specific process can be as follows:

[0326] When a user enters the detection range of the first detection signal (e.g., 0~110cm), the smart wall switch receives the first feedback signal and then performs a rapid close-range confirmation: it emits a second detection signal (the detection distance is configured to a closer range, e.g., 0cm to 50cm). Within a 10ms time window, it quickly detects whether a second feedback signal corresponding to the second detection signal has been received.

[0327] If a second feedback signal is received within 10 milliseconds, the secondary display interface is displayed directly; otherwise, the primary display interface is displayed.

[0328] Furthermore, the control method also includes: if the smart wall switch does not receive the second feedback signal corresponding to the second detection signal within a specified time, it will switch the transmitted detection signal to contain only the second detection signal.

[0329] Specifically, if no second feedback signal is received within a specified time, it indicates that the user is currently only in the distant area and has not yet entered the nearby area. At this time, the first control operation is executed: the control screen lights up and displays the primary display interface. Subsequently, the second detection signal continues to be emitted and the second feedback signal is continuously monitored to determine whether there is anyone in the nearby area.

[0330] Furthermore, the control method further includes: switching the transmitted detection signal to contain only the second detection signal; if the second feedback signal is received within a specified timeout period, controlling the screen to switch to the secondary display interface; otherwise, restoring the transmitted detection signal to contain only the first detection signal. The timeout period is less than the specified time.

[0331] Specifically, after switching the transmitted detection signal to include only the second detection signal, a monitoring timer is started. If the second feedback signal is received before the monitoring timer expires, the screen is switched to the secondary display interface; if the second feedback signal is not received before the monitoring timer expires, the transmitted detection signal is restored to include only the first detection signal; wherein the timeout duration of the monitoring timer is less than the specified time.

[0332] In this embodiment of the disclosure, a monitoring timer is used to monitor the timeout of near-field detection: after switching to transmitting the second detection signal, the smart wall switch continuously monitors whether a second feedback signal corresponding to the second detection signal is received within the time window set by the monitoring timer. If the second feedback signal is received before the monitoring timer expires, it indicates that the user has entered the near-field area. If the second feedback signal is not received before the monitoring timer expires, it indicates that the user has left after staying in the far-field area (e.g., the user only passed by without intending to operate), or the user stayed in the far-field area but did not approach further. At this time, a reset control operation is performed, for example: stopping the transmission of the second detection signal; reverting the transmission strategy to transmitting only the first detection signal, and restarting the monitoring of far-field approach.

[0333] It is worth noting that in this embodiment, the timeout duration is one of the key parameters. This timeout duration is set to be less than or equal to 5 minutes and / or the shortest time interval required for the screen to automatically enter screensaver mode due to no user operation after being activated. For example, if the minimum selectable value for the time it takes for the screen to automatically enter screensaver mode after being turned on due to no user operation is 1 minute, then the maximum value of the monitoring timer can be set to 1 minute. The purpose of this design is to ensure that the reset operation can be completed before the screen automatically turns off if no close proximity is detected.

[0334] It is worth noting that in sequential detection mode, because the first and second detection signals use different codes (such as code A and code B), the wall switch can accurately distinguish which type of detection signal the received feedback signal comes from. When only a reflected signal of code A is received, it is determined to be a long-distance state; when a reflected signal of code B is received, it is determined to be a short-distance state (at this time, the user must have already entered the range of the first detection signal, so there is no need to judge the signal of code A again). This mode effectively avoids signal confusion and improves the reliability of detection.

[0335] In some embodiments, when no near-field signal is detected within the quick confirmation window, instead of switching to transmitting only the second detection signal, a composite detection phase is entered, dynamically determining the display content and transmission strategy based on the feedback combination of each subsequent cycle. Specifically: if the smart wall switch does not receive the second feedback signal corresponding to the second detection signal within a specified time, it controls the screen to switch to the first-level display interface before, after, or simultaneously, and switches the transmitted detection signal to alternately or sequentially transmit the first detection signal and the second detection signal in each detection cycle, and determines the screen display interface and / or subsequent signal transmission strategy based on the feedback signal combination received in each detection cycle.

[0336] In this embodiment, if no second feedback signal is received within a specified time, it indicates that the user is currently only in a distant area and has not yet entered a near-distance area. At this time, the transmission strategy is switched from transmitting only the second detection signal to a composite detection mode, that is, the first and second detection signals are transmitted alternately or sequentially within each detection cycle. In this composite detection mode, the smart wall switch enters a continuous dynamic monitoring phase, determining the screen display content and subsequent signal transmission strategy in real time based on the combination of feedback signals received within each detection cycle.

[0337] Furthermore, the step of determining the subsequent signal transmission strategy based on the combination of feedback signals received in each detection cycle includes: if a first feedback signal corresponding to a first detection signal is received but a second feedback signal corresponding to a second detection signal is not received, then the first detection signal and the second detection signal are transmitted alternately or sequentially in each detection cycle; if a second feedback signal corresponding to a second detection signal is received, then the transmitted detection signal is switched to contain only the second detection signal; if no feedback signal is received, then the transmitted detection signal is switched to contain only the first detection signal.

[0338] Specifically, the smart wall switch determines the screen display content and subsequent signal transmission strategy in real time based on the combination of feedback signals received within each detection cycle. The specific judgment logic is as follows:

[0339] Sub-case A: Only the first feedback signal is received, and the second feedback signal is not received.

[0340] If, within a detection cycle, only the first feedback signal corresponding to the first detection signal is received, but the second feedback signal corresponding to the second detection signal is not received, it indicates that the user is still in the far-range area and has not yet entered the near-range area. In this case, maintain the current state: continue to alternately or sequentially transmit the first and second detection signals within each detection cycle, and maintain the primary display interface (far-range interface) on the screen. Continue monitoring in subsequent detection cycles, waiting for the user to approach further.

[0341] Sub-case B: Receive the second feedback signal

[0342] If a second feedback signal corresponding to the second detection signal is received within one detection cycle, it indicates that the user has entered the near-field area. At this time, a second control operation is executed: the control screen switches from the primary display interface to the secondary display interface (near-field interface), and the transmission strategy is switched from the composite detection mode to "transmit only the second detection signal". Subsequently, it enters the pure near-field monitoring mode, transmitting only the second detection signal to continuously monitor whether the user remains in the near-field area.

[0343] Sub-case C: No feedback signal received

[0344] If no valid feedback signal is received within a detection cycle (neither the first nor the second feedback signal), it indicates that the user has left the detection range. In this case, a reset operation is performed: the transmission strategy is switched to "transmit only the first detection signal", and the screen is restored to a predetermined state (such as screen off or screen saver), restarting the monitoring of approaching objects at a distance.

[0345] Furthermore, in sub-case B, after switching the transmitted detection signal to include only the second detection signal, the method further includes:

[0346] If the second feedback signal corresponding to the second detection signal is not received, the transmitted detection signal will be switched to alternately or sequentially transmit the first detection signal and the second detection signal in each detection cycle.

[0347] After the smart wall switch has switched its transmission strategy to transmit only the second detection signal (i.e., pure near-field monitoring mode), if no second feedback signal corresponding to the second detection signal is received in subsequent monitoring (e.g., the user leaves the near-field area), it will resume transmitting the first and second detection signals alternately or sequentially in each detection cycle, i.e., re-enter the composite detection mode. This fallback mechanism ensures that the smart wall switch can adapt to various user behavior patterns: when the user leaves the near-field area but remains in the far-field area, it can re-enter the composite detection mode and wait for the user to approach again or leave completely; if the user completely leaves the detection range, it will eventually reset to the initial state of transmitting only the first detection signal.

[0348] In some embodiments, the conditional transmission of the second detection signal includes:

[0349] When the screen is in a predetermined state, the detection signal emitted by the smart wall switch contains only the first detection signal;

[0350] In response to receiving the first feedback signal, the smart wall switch controls the screen to switch to the first-level display interface and switches the emitted detection signal to contain only the second detection signal;

[0351] In response to receiving the second feedback signal, the smart wall switch controls the screen to switch to the secondary display interface.

[0352] As can be seen, in the sequential detection mode of this embodiment, when the screen of the smart wall switch is in a predetermined state (such as screen off or screen saver), the smart wall switch only transmits a first detection signal (corresponding to long-distance detection). This first detection signal uses a first code (such as code A) and is transmitted with a preset transmission power. The detection distance of the first detection signal is configured to a relatively long range, for example, 0cm to 110cm, to detect whether the user has entered the long-distance sensing area.

[0353] When a user enters the detection range of the first detection signal, the smart wall switch receives a first feedback signal corresponding to the first detection signal. In response to the feedback signal, the smart wall switch performs a first control operation, such as turning on the control screen and switching to the first-level display interface (long-distance interface).

[0354] The transmission strategy is switched from transmitting only the first detection signal to transmitting only the second detection signal. The second detection signal uses a different code (such as code B) than the first detection signal. Its transmission power or coding characteristics enable a shorter detection range, for example, 0cm to 80cm, to detect whether the user is moving further into the close-range area.

[0355] If a second feedback signal is received, it indicates that the user has entered the proximity area. At this time, a second control operation is executed, such as switching the control screen from the primary display interface to the secondary display interface (proximity interface).

[0356] In some embodiments, the conditional transmission of the second detection signal includes:

[0357] The smart wall switch alternately or sequentially transmits the first detection signal and the second detection signal in each detection cycle;

[0358] The smart wall switch determines the current proximity distance status based on the combination of feedback signals received in each detection cycle.

[0359] In this embodiment of the disclosure, the first detection strategy employs a composite detection mode when conditionally transmitting the second detection signal. The main difference between this composite detection mode and the aforementioned sequential detection mode is that it does not wait until the user enters a distant area before transmitting the second detection signal. Instead, it transmits the first and second detection signals alternately or sequentially within each initial detection cycle, and determines the user's distance status in real time based on the combination of received feedback signals, thereby achieving a more flexible response strategy.

[0360] Based on the combination of feedback signals received in each detection cycle, the current proximity state is determined: if both the first feedback signal and the second feedback signal are received simultaneously in a detection cycle, the user is determined to be in the secondary proximity state, and the screen is controlled to switch to the secondary display interface; if only the first feedback signal is received in a detection cycle and the second feedback signal is not received, the user is determined to be in the primary proximity state, and the screen is controlled to maintain the primary display interface; if no feedback signal is received in a detection cycle, no user is determined to be present, and the screen is controlled to maintain or return to the predetermined state.

[0361] As can be seen, in the embodiments of this disclosure, in the composite detection mode, when the screen of the smart wall switch is in a predetermined state (such as screen off or screen saver), the emitted detection signal includes a first detection signal (corresponding to long-distance detection) and a second detection signal (corresponding to short-distance detection).

[0362] In this system, the first detection signal uses a first code (e.g., code A), and its detection range is configured to be relatively long, for example, 0cm to 110cm. Unlike the sequential detection mode, the composite detection mode simultaneously transmits the second detection signal in the initial stage. That is, each detection cycle includes two transmissions: one transmission of the first detection signal (code A) and one transmission of the second detection signal (code B). The time interval between the two transmissions is extremely short (e.g., milliseconds) to ensure that a complete detection cycle is completed when the user's position does not change significantly. Because the first and second detection signals have different characteristic parameters (e.g., different codes), the smart wall switch can accurately distinguish whether the received feedback signal comes from the first or second detection signal. Based on the combination of feedback signals received within a detection cycle, the user's current distance status can be determined.

[0363] As can be seen, in the composite detection mode, the smart wall switch can accurately identify the user's distance status within a single detection cycle without relying on timeout waiting.

[0364] In some embodiments, when conditionally transmitting the second detection signal, a power differentiation mode is employed. The key difference between this power differentiation mode and the aforementioned sequential and composite detection modes is that the first and second detection signals use the same signal encoding, but differentiate detection distances through different transmission powers. This design saves encoding resources while still achieving graded proximity detection functionality.

[0365] Specifically, the power differentiation mode includes: when the screen is in a predetermined state, the detection signal emitted by the smart wall switch only includes the first detection signal transmitted at a first transmission power.

[0366] In response to receiving a first feedback signal corresponding to the first detection signal, the smart wall switch controls the screen to switch to the first-level display interface and switches the transmitted detection signal to include only the first detection signal transmitted at the second transmission power; the first transmission power is different from the second transmission power, and the different characteristic parameters include the difference in transmission power, the difference in transmission power makes the detection distance of the first detection signal transmitted at the first transmission power greater than the detection distance of the first detection signal transmitted at the second transmission power;

[0367] In response to receiving a feedback signal corresponding to the first detection signal transmitted at a second transmission power, the smart wall switch controls the screen to switch to the secondary display interface.

[0368] As can be seen, in the embodiments of this disclosure, in the power differentiation mode, when the screen of the smart wall switch is in a predetermined state (such as screen off or screen saver), it only transmits the first detection signal at the first transmission power P1. The first detection signal adopts a specific code (such as code A), and because the transmission power is relatively high, its effective detection distance is configured to be a long range, for example, 0cm to 110cm.

[0369] When a user enters the detection range corresponding to the first detection signal, the smart wall switch receives the first feedback signal corresponding to the first detection signal, and in response to the feedback signal, performs the first control operation, such as controlling the screen to light up and switching to the first-level display interface (long-distance interface).

[0370] Subsequently, the transmission strategy is switched from transmitting the first detection signal only at the first transmission power P1 to transmitting the first detection signal only at the second transmission power P2. The second transmission power P2 is less than the first transmission power P1, resulting in a shorter detection range (e.g., 0cm to 50cm) for the same coded signal transmitted at P2. In other words, although the signal encoding is the same, the detection signal can propagate a shorter distance due to the reduced transmission power. If a corresponding feedback signal is received, it indicates that the user has entered the close-range area. At this time, a second control operation is executed, such as switching the control screen from the primary display interface to the secondary display interface (close-range interface).

[0371] Furthermore, the control method further includes: after switching the transmitted detection signal to include only the first detection signal transmitted at a second transmission power, a monitoring timer is started; if a feedback signal corresponding to the first detection signal transmitted at a second transmission power is received before the monitoring timer expires, the screen is controlled to switch to the secondary display interface; if no feedback signal corresponding to the first detection signal transmitted at a second transmission power is received before the monitoring timer expires, the transmitted detection signal is restored to include only the first detection signal transmitted at a first transmission power; wherein, the timeout duration of the monitoring timer is less than the shortest time interval required for the screen to automatically enter the predetermined state from being activated due to no user operation.

[0372] Specifically, in this embodiment of the disclosure, when the transmission strategy is switched from transmitting the first detection signal only at the first transmission power P1 to transmitting the first detection signal only at the second transmission power P2, a monitoring timer is started to monitor for timeouts in near-range detection. After switching to transmitting the first detection signal only at the second transmission power P2, the smart wall switch continuously monitors whether a corresponding feedback signal is received within the time window set by the monitoring timer. If a feedback signal is received before the monitoring timer expires, it indicates that the user has entered the near-range area. At this time, the second control operation is executed. If no feedback signal is received before the monitoring timer expires, it indicates that the user has left after staying in the far-range area (e.g., the user only passed by without intending to operate), or the user stayed in the far-range area but did not approach further. At this time, a reset control operation is executed, for example: stopping the transmission of the first detection signal at the second transmission power P2; reverting the transmission strategy to transmitting the first detection signal only at the first transmission power P1, and restarting the monitoring of near-range approach.

[0373] In some embodiments, custom text content may be displayed in the user interface of the screen.

[0374] Specifically, the control method further includes:

[0375] The smart wall switch acquires custom text content; the custom text content includes at least one pre-edited text, which has no fixed binding relationship with the button of the smart wall switch;

[0376] The smart wall switch responds to a first trigger event by controlling the screen to display a first specified text from the custom text content; wherein the first trigger event includes the smart wall switch detecting the presence of a user; and / or, responds to a second trigger event by controlling the screen to display a second specified text from the custom text content; wherein the second trigger event includes receiving a control command from a control platform, the control command being generated by the control platform based on external device status change information and user-preset linkage rules.

[0377] In other words, the custom text content does not exist as an identifier for a specific button, but as independent display content, the display of which can be driven by a triggering event.

[0378] In this embodiment, the control platform can be understood as a device or system capable of receiving information about changes in the status of external devices, generating control commands according to user-preset linkage rules, and sending the control commands to the smart wall switch. The control platform can be a remote server deployed in the cloud, a local gateway, smart home hub, or edge computing node deployed in a home LAN, or a hybrid architecture system where the cloud and local systems work together. Regardless of the specific implementation of the control platform, as long as it performs the functions of "receiving external events, matching linkage rules, and issuing control commands," it falls within the protection scope of this disclosure.

[0379] As can be seen, in the above embodiments, when the local proximity sensor detects the presence of a user, or when a control command is received from an external device, the screen displays the corresponding text according to preset rules. This approach allows the same text to be invoked by different triggering events, achieving flexible decoupling between text content and display scene.

[0380] In some embodiments, the linkage rule includes at least one condition-action pair, wherein the condition-action pair is triggered by at least one changeable state of at least one external device connected to the control platform (e.g., "when the human body sensor detects someone moving"), and the execution action is to control at least one screen of the smart wall switch to display at least one text in the custom text content (e.g., displaying text 1: Someone entered the living room); the control instruction is issued by the control platform after determining the matching condition-action pair based on the received state change information, according to the execution action defined by the matching condition-action pair, for causing the smart wall switch to display the text pointed to by the execution action as the second specified text.

[0381] Specifically, users pre-create automated linkage rules via terminal devices (such as mobile apps) and store these rules in the control platform. Each text is edited by the user beforehand and saved locally to the smart wall switch via the terminal device.

[0382] The control platform continuously monitors the status of various external devices belonging to the same smart home platform account as the smart wall switch. When the status of an external device changes, the control platform receives the status change information and performs a matching query in its locally stored linkage rule library. If a matching linkage rule exists, the control platform determines the text to be displayed based on that rule and generates the corresponding control command.

[0383] The control platform sends the generated control commands to the smart wall switch. After receiving the control commands, the smart wall switch parses them and controls the screen to display the corresponding text.

[0384] For example, a user creates a linkage rule: "When the door / window sensor detects that the door / window is open, the smart wall switch screen in the living room will display 'Doors / windows are open'." This linkage rule is stored on a cloud server (one implementation of the control platform). When the door / window sensor changes its state from closed to open, the state change information is reported to the cloud server. The cloud server matches the above linkage rule, generates a control command, and sends it to the smart wall switch in the living room. After receiving the command, the smart wall switch in the living room displays the text "Doors / windows are open" on its screen.

[0385] In another implementation, the control platform can be a local gateway deployed within the home LAN. Status changes from external devices are reported to the gateway via the local network. The gateway then executes linkage rule matching locally and generates control commands, which are directly sent to the smart wall switches. This localized solution does not rely on an internet connection, offering lower latency and higher reliability.

[0386] As can be seen, in this embodiment of the disclosure, by uniformly managing the linkage rules and generating control commands through the control platform, the decoupled linkage between external devices and smart wall switches is realized. Users do not need to configure smart wall switches separately for each external device; they only need to define linkage rules on the control platform, which greatly simplifies the configuration process. At the same time, it supports both cloud and local deployment modes, taking into account the needs of remote control and local rapid response.

[0387] In some embodiments, the control method further includes:

[0388] Receive user interface configuration instructions; the user interface configuration instructions are generated by the terminal device in response to the user selecting the target text from the custom text content from a plurality of selectable interface content;

[0389] According to the user interface configuration instructions, the target text is determined as the first specified text displayed on the screen when the first triggering event is triggered.

[0390] In this embodiment, the user accesses the display content configuration page of the wall switch via a terminal device (such as a mobile app). The page displays multiple optional interface contents, including at least one piece of custom text content, which is pre-created by the user.

[0391] For example Figure 15 As shown, on the page provided by the APP, after opening the APP, the user enters the screen display device page and selects the "Screen Saver Display Content" option. This page offers screen saver display content settings, with three editable text options (Text 1, Text 2, and Text 3). For example, the user can edit these three texts to "Good Morning," "Good Noon," and "Good Evening," respectively. The user selects one text (e.g., "Good Morning") and clicks "Confirm." The terminal device then generates a user interface configuration command and sends it to the smart wall switch. Upon receiving the command, the smart wall switch associates and stores the text with the first trigger event (local proximity sensing detects the user's presence). Subsequently, when the user approaches the smart wall switch, the screen displays the text "Good Morning," as shown below. Figure 16 As shown.

[0392] Furthermore, the custom text content includes multiple texts (such as...) Figure 15 As shown, three editable texts are provided. When the first specified text and the second specified text are configured to point to different texts, the texts pointed to by the first specified text and the second specified text are synchronized according to a preset synchronization rule, so that the first specified text and the second specified text point to the same text.

[0393] In this embodiment, the user can configure the displayed text for local proximity sensing triggers (first trigger event) and external device linkage triggers (second trigger event) via the terminal device. The first and second specified texts can point to the same text, and when the user configures the two trigger events to point to different texts, they will automatically establish a synchronization relationship. This synchronization mechanism simplifies the user's configuration operation, avoids inconsistencies in text display caused by manual asynchrony settings, and improves configuration efficiency and user experience.

[0394] For example, according to preset synchronization rules, synchronizing the text pointed to by the first specified text and the second specified text includes:

[0395] Based on the order in which the first specified text and the second specified text are configured, the text pointed to by the specified text configured later is determined as the synchronization target, and the text pointed to by the specified text configured earlier is replaced with the synchronization target.

[0396] In this embodiment, the preset synchronization rule adopts the "later configuration priority" principle.

[0397] For example, a user first sets the text displayed when the local proximity sensor is triggered (the first specified text) to text 1 via a terminal device, and then sets the text displayed when an external device is linked to trigger the sensor (the second specified text) to text 2 (different from text 1). Because the second specified text is configured later, the smart wall switch will automatically synchronize the first specified text to text 2, meaning that both trigger scenarios will ultimately display text 2. Conversely, if the user configures the second specified text first and then the first specified text, the configuration result of the first specified text will overwrite the second specified text, and both will ultimately display the content pointed to by the first specified text.

[0398] As can be seen, the "last configuration overwrites first configuration" synchronization mechanism provided in this embodiment ensures that the final configuration result matches the user's last operation intention. Figure 1 This reduces the learning cost and operational burden for users.

[0399] For example, according to preset synchronization rules, synchronizing the text pointed to by the first specified text and the second specified text includes:

[0400] When the first specified text and the second specified text point to different texts, if the first trigger event is received before the smart wall switch receives the second trigger event, then in response to the first trigger event, the screen is controlled to display the text pointed to by the first specified text;

[0401] After the smart wall switch receives the second trigger event for the first time, it modifies the text pointed to by the first specified text to the text pointed to by the second specified text. Thereafter, if the first trigger event is received, it controls the screen to display the modified text pointed to by the first specified text in response to the first trigger event.

[0402] In this embodiment, the preset synchronization rule adopts the "event-triggered synchronization" principle.

[0403] For example, a user might set the text displayed when the local proximity sensor is triggered (the first designated text) to text 1, and the text displayed when the external human body sensor is triggered (the second designated text) to text 2 (different from text 1). Before the human body sensor is triggered, when the user approaches the wall switch, the screen displays text 1. When the human body sensor first detects someone and triggers the linkage, the wall switch receives the second trigger event, the screen displays text 2, and the smart wall switch automatically modifies the associated text of the first designated text to text 2. Thereafter, regardless of whether the user approaches via the local proximity sensor or is triggered by the human body sensor, the screen will display text 2.

[0404] As can be seen, the "test first, modify later" synchronization mechanism provided in this embodiment enables the smart wall switch to automatically optimize its configuration according to the user's actual usage scenario, reducing the burden of manual adjustment for the user.

[0405] In some embodiments, when the first specified text and the second specified text point to different texts: the screen is selectively controlled to display the text corresponding to the triggering event based on the type of the triggering event; wherein, in response to the first triggering event, the screen is controlled to display the text pointed to by the first specified text; and in response to the second triggering event, the screen is controlled to display the text pointed to by the second specified text.

[0406] In this embodiment, the user can configure different display texts for two different types of trigger events. For example, the text corresponding to a local proximity sensor trigger (the first trigger event) can be set to text 1, and the text corresponding to an external human body sensor trigger (the second trigger event) can be set to text 2. When a user approaches the smart wall switch, the trigger source is identified as local proximity sensing, and text 1 is displayed; when the external human body sensor detects someone, the trigger source is identified as external device linkage, and text 2 is displayed. The two display contents are automatically distinguished according to the type of trigger event and do not interfere with each other, realizing a dynamic information prompt function that adapts to the situation.

[0407] In some embodiments, the screen includes a display screen, and the smart wall switch has multiple display screens; the control method further includes: independently determining a first specified text corresponding to each display screen according to user interface configuration instructions.

[0408] Specifically, in a multi-display configuration, each display independently handles its corresponding display and interactive feedback functions. Users can independently set the first designated text for each display via their terminal device. The configuration of each display is independent, meeting the needs for refined control. It accommodates the functional differences of different buttons and the personalized needs of users; multiple screens can work in parallel without interference, improving overall interaction efficiency and user experience.

[0409] For example Figure 17 and Figure 18As shown, the smart wall switch has three buttons and three independent displays, each located above its corresponding button. On the APP-provided page, after opening the APP, the user enters the screen display device page and selects the "Screen Saver Display Content" option. This page provides screen saver display content settings, with options for each of the three buttons. The available options for each button's screen saver display content settings are identical. For example, the user edits three texts as "Good Morning," "Good Noon," and "Good Evening." The user selects "Good Morning" as the display content for the left button's screen, "Good Noon" for the middle button's screen, and "Good Evening" for the right button's screen. After clicking "Confirm," the terminal device generates a user interface configuration command and sends it to the smart wall switch. Upon receiving the command, the smart wall switch associates each text with the first trigger event (local proximity sensing detects the user's presence) and stores it. Subsequently, when the user approaches the smart wall switch, the three screens display the text "Good Morning," "Good Noon," and "Good Evening," respectively. Figure 18 As shown.

[0410] In some embodiments, the control method further includes: the smart wall switch receiving a screen saver type configuration instruction from a terminal device, the screen saver type configuration instruction being used to specify the screen saver type of the smart wall switch. When preset conditions are met, the smart wall switch controls the screen to enter a screen saver state, and determines the display style of the screen saver interface according to the screen saver type specified by the screen saver type configuration instruction. Specifically, when the screen saver type belongs to a first preset category, the second specified text is displayed on the screen saver interface; when the screen saver type belongs to a second preset category, the second specified text is not displayed on the screen saver interface.

[0411] Specifically, the smart wall switch receives screen saver type configuration instructions from the terminal device. Users can select one from various screen saver types via a mobile app, for example... Figure 19 As shown, the app offers screensaver types such as default, minimalist, digital, and clock. The terminal device generates a screensaver type configuration command based on the user's selection and sends it to the smart wall switch. The smart wall switch receives and stores this screensaver type configuration command, using it as the basis for subsequent screensaver display settings.

[0412] When preset conditions are met (e.g., no user is detected within a certain time), the smart wall switch controls the screen to enter screensaver mode. At this time, the smart wall switch determines the display style of the screensaver interface according to the screensaver type specified in the previously received screensaver type configuration instruction.

[0413] Different screensaver types have different display styles, including but not limited to differences in at least one visual element such as font, font size, color, layout, or background pattern.

[0414] Specifically, different screensaver types have different display styles, resulting in visual differences. For example, the default type displays the time and background. The minimalist type does not display the time, only the background image. The numeric type uses a large, bold font to display the time, which can occupy more than one-third of the screen height, with the time numbers presented prominently. The clock type displays an analog clock face.

[0415] The differentiated display styles of different screensaver types allow users to choose the most suitable screensaver type based on their personal preferences and usage scenarios.

[0416] In this embodiment, the smart wall switch determines whether to display a second specified text (i.e., the text displayed when an external device triggers a linkage rule) on the screensaver interface based on the category to which the screensaver type belongs. Specifically, when the screensaver type specified by the user belongs to a first preset category, the screensaver interface will display the second specified text; when it belongs to a second preset category, the screensaver interface will not display the second specified text.

[0417] For example, the first preset category may include a default type and a minimalist type, and the second preset category may include a numeric type and a clock type. When the user selects the default type or the minimalist type, the screensaver will display basic information such as the time and date, and will also display the currently valid second specified text in a designated location on the screen (such as a preset area at the bottom, middle, or top). Figure 20 The image shown illustrates a simplified screensaver interface where the second specified text ("I am a prompt text") is displayed. When the user selects a number or clock type, the screensaver does not display the second specified text.

[0418] The display method of the second specified text on the screensaver interface can be preset or user-defined. For example, the display method can include two types: static display and dynamic display. Static display means that the text is presented in a fixed state in a specified area of ​​the screen (such as bottom center, top left corner, or bottom right corner). Dynamic display means that the text is presented in a scrolling, flashing, fading, or carousel manner. The display area can be adapted to the layout of the screensaver type.

[0419] As can be seen, in this embodiment of the disclosure, by classifying screen saver types, the smart wall switch can automatically adapt to the user's display preferences (i.e., whether to display the second specified text) based on the screen saver type selected by the user, without requiring manual settings by the user. In other words, the user can select the screen saver type according to their own needs, and the smart wall switch automatically determines whether to integrate the second specified text linked to external devices into the screen saver interface based on the selected type.

[0420] Furthermore, when the user selects a screensaver type in the first preset category, the second specified text is displayed immediately after the second trigger event occurs, and when the smart wall switch enters screensaver mode, the second specified text does not disappear, but continues to be displayed in the manner defined by the screensaver type.

[0421] In some embodiments, the screensaver type further includes a third preset category.

[0422] Furthermore, the action of responding to the second triggering event and controlling the screen to display the second specified text in the custom text content specifically includes: controlling the screen to enter a third preset category of screensaver state and displaying the second specified text on the screensaver interface.

[0423] Specifically, the third preset category can be understood as a set of screensaver types that require displaying the second specified text on the screensaver interface and employ a specific display method. For example, the pure black background type is one implementation of the third preset category, which uses a pure black background and illuminates the pixels required to display the second specified text. Users can select the specific screensaver type under the third preset category according to their usage scenario.

[0424] In some embodiments, the screen includes a display screen, and the smart wall switch has multiple display screens; the step of controlling the screen to display the second specified text in the custom text content in response to a second trigger event includes: controlling multiple screens to display their respective corresponding second specified text. The second specified text corresponding to each screen is independently determined according to one or more linkage rules: determined separately according to multiple linkage rules, each linkage rule being used to determine the second specified text displayed on one screen; or determined uniformly according to a single linkage rule, the linkage rule defining the second specified text displayed on each of the multiple screens.

[0425] In this embodiment, the smart wall switch has multiple displays (for example, a two-button smart wall switch is equipped with two independent displays (left and right screens)). Users can configure linkage rules through terminal devices to achieve differentiated text display on each display screen under a second trigger event.

[0426] For example:

[0427] Create linkage rule 1: When the human body sensor in the living room detects someone, the left screen of the smart wall switch in the living room will display text 1 (e.g., "Someone is here").

[0428] Create linkage rule 2: When the bedroom door and window sensor detects that the door and window are open, the right screen will display text 2 (e.g., "Bedroom door and window are not closed").

[0429] When two external devices are triggered simultaneously (the human body sensor in the living room detects someone, and the door and window sensor in the bedroom opens), the two screens will display "Someone is here" and "Bedroom door and window not closed" respectively.

[0430] For example:

[0431] Create linkage rule 3: When the temperature or humidity reported by the temperature and humidity sensor changes compared to the last reported data, the left and right screens of the smart wall switch will display text 1 ("Temperature has changed") and text 2 ("Humidity has changed"), respectively.

[0432] When the temperature or humidity in the room changes, the temperature and humidity sensors report the changed temperature or humidity to the cloud server. The cloud server matches the corresponding linkage rule three and sends control commands, instructing the left and right screens of the smart wall switch to display "Temperature changed" and "Humidity changed," respectively. As you can see, a single linkage rule can control the display content of all screens simultaneously, simplifying configuration.

[0433] Furthermore, the multi-screen independent control mechanism provided in this embodiment of the present disclosure enables the wall switch to become a multifunctional information hub, with different screens playing different information prompting roles, thus meeting the information display needs in complex scenarios.

[0434] In some embodiments, obtaining custom text content includes: receiving at least one pre-edited text from a terminal device before the first trigger event or the second trigger event occurs, and storing the text locally in the smart wall switch; or, immediately obtaining at least one pre-edited text upon receiving the first trigger event or the second trigger event.

[0435] In this embodiment of the disclosure, the acquisition of text content can be customized in one of the following two ways:

[0436] The first method: Pre-acquire and store

[0437] Before the first triggering event or the second triggering event occurs, receiving at least one pre-edited text from a terminal device includes: receiving a text configuration instruction from the terminal device, the text configuration instruction carrying text edited by the user through the terminal device; storing the custom text content in a local memory, so that in response to the user's configuration operation on the primary display interface or the secondary display interface, when the text content is set on the primary display interface or the secondary display interface, controlling the screen to display a specified text in the custom text content.

[0438] Specifically, users can access the text editing interface on a mobile app or other terminal device and freely input multiple texts to form the customized text content. In a preferred embodiment, each text can hold up to 10 Chinese characters to ensure complete and clear display on the small screen of the wall switch.

[0439] After the user completes the text input and saves it, the APP encapsulates the user's input text content into a text configuration command and sends it to the smart wall switch.

[0440] After receiving a text configuration command, the smart wall switch parses and extracts the text content, storing it in local non-volatile memory (such as the processor's Flash memory). This local storage design ensures that the text display is independent of a network connection; even when the network is down, the wall switch can still display user-defined text content correctly, improving reliability and response speed.

[0441] For example, a smart wall switch establishes a connection with a terminal device via short-range communication methods such as Bluetooth, enabling the terminal device to receive user-created custom text content and send it to the smart wall switch, which then stores it in local non-volatile memory (e.g., in the FLASH memory of the screen driver chip).

[0442] Subsequently, when the first or second trigger event occurs, the wall switch directly reads the corresponding text from local memory and displays it. This solution does not rely on a network connection and has the advantages of fast response speed and high reliability.

[0443] The second method: instant access

[0444] Upon receiving the second trigger event, immediately acquire at least one pre-edited text; including: upon receiving the control instruction, parse the text from the control instruction.

[0445] For example, a smart wall switch connects to the home network via Wi-Fi. When a second trigger event occurs, the control platform (such as a cloud server or local gateway) sends a control command containing corresponding text to the smart wall switch. Upon receiving the control command, the smart wall switch directly parses the text and displays it, without needing to store it beforehand.

[0446] This solution reduces the local storage requirements of smart wall switches, and text updates take effect in real time, allowing users to make dynamic adjustments.

[0447] In some embodiments, the plurality of optional interface contents include at least one custom text content. The custom text content includes at least one user-edited text.

[0448] The method of responding to a first trigger event by controlling the screen to display a first specified text from the custom text content includes: determining the proximity state between the user and the smart wall switch; if the distance is determined to be at level one, controlling the screen to display a level one display interface; if the distance is determined to be at level two, controlling the screen to display a level two display interface; wherein the level one display interface and / or the level two display interface are determined according to user interface configuration instructions; the user interface configuration instructions are generated by the terminal device in response to the user selecting target text from multiple selectable interface contents, and are used to determine the target text as the first specified text displayed by the level one display interface and / or the level two display interface when the first trigger event is triggered.

[0449] like Figure 15 and Figure 17 As shown in the example, users can edit three texts (e.g., text 1, text 2, and text 3), and the list of selectable interface content includes weather, time, date, text 1, text 2, and text 3. Users can then select any content from this list to associate when configuring the primary display interface (far-view interface) or the secondary display interface (near-view interface).

[0450] The smart wall switch responds to user configuration operations on the primary or secondary display interface, setting the text selected by the user as the display content for the corresponding state. For example, a user accesses the smart wall switch's display content configuration page on a mobile app, browses and selects previously created text (such as "Good Morning") from the list of available interface content, and then chooses to set this text as the primary display interface (far-field interface) or the secondary display interface (near-field interface). The app generates a corresponding configuration command and sends it to the smart wall switch. After receiving the command, the smart wall switch associates and stores the selected text with the corresponding distance state. Subsequently, when the user is in that distance state, the screen displays the text "Good Morning".

[0451] In some embodiments, a control method is also provided for use with a smart wall switch. The control method includes:

[0452] The smart wall switch establishes a communication connection with the terminal device;

[0453] The smart wall switch receives configuration instructions. These instructions are generated and sent by the terminal device in response to a configuration operation; the configuration operation is the user's configuration of the smart wall switch displayed on the settings interface after the terminal device establishes a communication connection with the smart wall switch.

[0454] The smart wall switch updates its screen display content according to configuration instructions. The updated display content is associated with an updated configuration interface pattern; the configuration interface pattern is the configuration interface pattern of the smart wall switch's screen in the settings interface, and the update of the configuration interface pattern is performed by the terminal device according to configuration operations.

[0455] Specifically, a communication connection needs to be established between the terminal device and the smart wall switch to facilitate the subsequent transmission of configuration commands. This communication connection can be of various types. For example, establishing a communication connection with the terminal device includes at least one of the following:

[0456] The smart wall switch establishes a point-to-point direct communication connection with the terminal device. Point-to-point direct communication refers to a communication link established directly between the terminal device and the smart wall switch without going through a relay device (such as a router or cloud server), such as Bluetooth Direct or Zigbee Direct.

[0457] The smart wall switch establishes a network communication connection with the terminal device through a cloud server and gateway device. In this way, the terminal device sends configuration commands to the cloud server, and the cloud server forwards the commands to the smart wall switch through a gateway device (such as a smart home gateway, router, etc.). This method enables remote configuration.

[0458] In this embodiment, the settings interface is a user interface provided by the terminal device for configuring a smart wall switch. After receiving configuration operations from the user on the settings interface, the terminal device generates corresponding configuration instructions. Configuration operations can be understood as user actions to set or modify parameters such as the display content, button functions, and operating modes of the smart wall switch. These operations may include, but are not limited to, clicking, long-pressing, swiping, inputting text, selecting options, and uploading images. The specific type of configuration operation depends on the type of parameters being configured.

[0459] In this embodiment, the configuration interface graphic is embedded in the settings interface, serving as a visual feedback area for user configuration operations. The configuration interface graphic can be understood as a graphical area displayed in the settings interface of the terminal device, illustrating the content displayed on the smart wall switch screen. This configuration interface graphic is not a real-time screenshot or exact mirror of the smart wall switch screen, but rather a schematic graphical representation. Its layout and style maintain visual consistency with the actual screen of the smart wall switch, allowing users to intuitively understand the impact of configuration operations on the switch screen's display effect.

[0460] After the user completes the configuration operation, the terminal device generates a corresponding configuration instruction based on the operation. This instruction contains the parameter information that needs to be updated (such as button names, icons, display content types, etc.). The terminal device sends the configuration instruction to the smart wall switch through the established communication connection. After receiving the instruction, the smart wall switch parses and executes the instruction, updating the display content on the screen.

[0461] Simultaneously, the terminal device updates the configuration interface pattern according to the configuration operation, wherein the updated configuration interface pattern is associated with the updated display content of the smart wall switch. In other words, when the user performs a configuration operation on the settings interface, the terminal device not only sends a configuration command to the smart wall switch to update its actual screen display content, but also synchronously updates the configuration interface pattern in the settings interface, so that there is a correlation between the updated pattern and the updated display content of the switch.

[0462] Furthermore, the updated display content is associated with the updated configuration interface graphic, which can be understood as a preset association between the updated configuration interface graphic and the updated display content of the smart wall switch. This association includes, but is not limited to:

[0463] Both are updated synchronously based on the same configuration operation;

[0464] The configuration interface uses the same or similar layout and visual elements as the actual switch screen; or,

[0465] The configuration interface diagram reflects some of the configuration information in the actual display content of the switch in a simplified and schematic way.

[0466] The "association" as defined in this disclosure does not require that the configuration interface pattern and the actual display content of the switch be visually identical or form a strict one-to-one correspondence. Rather, it allows for differences in their display forms, as long as there is an association between them that can be perceived by the user.

[0467] Furthermore, through the above steps, when users configure the smart wall switch on the terminal device's settings interface, they can see the effect related to the actual display content of the switch on the configuration interface diagram in real time. They can intuitively perceive the configuration result without repeatedly checking the switch screen, thereby greatly improving configuration efficiency and user experience.

[0468] In some embodiments, the configuration interface pattern includes a first type of configuration interface pattern, and the settings interface includes a first settings interface corresponding to the first type of configuration interface pattern.

[0469] Based on this, in step S3, the screen display content is updated according to the configuration instructions, including:

[0470] According to the configuration instruction, the button identification information displayed on the screen is updated; the configuration instruction is generated by the terminal device based on the user's configuration operation on the button identification information of at least one button of the smart wall switch in the first setting interface; wherein, the button identification information presented in the updated first type of configuration interface pattern is consistent with the button identification information displayed on the screen of the smart wall switch after the update; the button identification information in the first type of configuration interface pattern is updated by the terminal device in response to the configuration operation.

[0471] Specifically, the first settings interface is mainly used to configure the button identification information of the smart wall switch (e.g., Figure 21 The smart wall switch shown has three buttons. Figure 21 This shows a schematic diagram of the first setup interface operation process of the smart wall switch.

[0472] For example, the configuration operation of button identification information can be performed as follows: Figure 21 As shown: Click on the settings item corresponding to a button, and modify the button name in the pop-up input box; click on the icon selection area to select or upload a new icon from the icon library; long press on the button image to enter edit mode, etc.

[0473] When a user modifies the button label information of a button in the first settings interface (such as...), Figure 21 After changing the button name from "Left Light" to "Living Room Main Light," the terminal device generates a configuration command and sends it to the smart wall switch. This causes the corresponding button's display on the smart wall switch screen to be updated to "Living Room Main Light." The terminal device then immediately updates the first type of configuration interface pattern, displaying the button's corresponding position in the pattern as "Living Room Main Light," and the button icon is simultaneously updated to a downlight icon. Figure 22 As shown. On the other hand, the terminal device immediately updates the first type of configuration interface pattern, displaying the button in the corresponding position in the pattern as "living room main light", and updating the icon to a downlight icon, as shown. Figure 21As shown in the diagram, the button label information presented in the updated first type of configuration interface is identical or substantially the same as the button label information actually displayed on the smart wall switch screen, for example, the text content and icons are the same. Since button label information is usually user-defined static information, requiring the two to be consistent helps users accurately preview the configuration results.

[0474] Furthermore, through this embodiment, users can intuitively modify the button label information in the first settings interface and see the same display effect as the actual power on / off screen on the configuration interface in real time, realizing the "what you see is what you get" of button label configuration.

[0475] Furthermore, the button identification information includes the button name and the button icon.

[0476] Based on this, in step S2, receiving configuration instructions includes: receiving a configuration instruction for updating the button name through the point-to-point direct communication connection; and receiving a configuration instruction for updating the button icon through the network communication connection.

[0477] Furthermore, by differentiating data types and using different communication paths, it is possible to ensure real-time performance while maintaining the reliability of data transmission, thereby optimizing the communication efficiency of the configuration process.

[0478] Of course, in other embodiments, other communication paths may be selected according to the actual situation, such as sending all through network communication or sending all through point-to-point direct communication. This disclosure does not limit this.

[0479] Further, in step S2, the smart wall switch receives a configuration instruction, which further includes:

[0480] After the smart wall switch receiving terminal device detects that the user has exited the button identification information modification interface, it generates a configuration command corresponding to the modified button identification information; the user's exit from the button identification information modification interface is used to trigger the terminal device to update the first type of configuration interface pattern, so that the updated first type of configuration interface pattern displays the modified button identification information.

[0481] The button identification information modification interface is a further display made by the terminal device in response to the user's configuration operation of the button identification information on the first settings interface;

[0482] Update the button label information on the screen according to the configuration instructions.

[0483] In this embodiment of the disclosure, the terminal device provides a dedicated modification interface (such as...). Figure 21The second interactive interface (shown in the diagram) is for users to edit centrally. Only when the user finishes editing and actively exits the modification interface (e.g., by clicking the "Back" or "Done" button) does the terminal device generate configuration commands for all modified button labels at once and send them to the smart wall switch. This "synchronization upon exit" method reduces the number of communications, lowers device power consumption, and avoids interface flickering or response delays caused by frequent switch updates triggered by the user during editing.

[0484] In addition, when the user exits the modification interface, the terminal device not only sends configuration instructions, but also updates the first type of configuration interface pattern simultaneously, so that the button label information displayed in the pattern is consistent with the content modified by the user.

[0485] Furthermore, by combining "synchronization upon exit" with "instant local pattern updates," the consistency of data between the smart wall switch and the terminal device is ensured, while avoiding frequent communication overhead, thus achieving a seamless synchronization experience.

[0486] In some embodiments, the configuration interface pattern includes a second type of configuration interface pattern, and the settings interface includes a second settings interface corresponding to the second type of configuration interface pattern.

[0487] Furthermore, the smart wall switch updates the screen display content according to configuration instructions, including:

[0488] The smart wall switch updates the user interface displayed on the screen according to the user interface configuration instruction; wherein, the user interface configuration instruction is generated by the terminal device in response to the user's operation of selecting target interface content from multiple optional interface contents; the operation of selecting target interface content is used to cause the terminal device to update the display content presented in the second type of configuration interface pattern to the target interface content, so that the updated user interface is associated with the updated display content presented in the second type of configuration interface pattern.

[0489] Specifically, the second setting interface is mainly used to configure the user interface displayed on the smart wall switch screen. The user interface is the interface that the smart wall switch switches to under specific conditions, corresponding to the content of the target interface. This includes the smart wall switch controlling the screen to switch to the user interface corresponding to the determined proximity distance state when it detects the presence of a user. Further, this user interface includes a primary display interface and / or a secondary display interface. The specific conditions can be understood as follows: if the distance is determined to be primary, the screen displays the primary display interface; if the distance is determined to be secondary, the screen displays the secondary display interface. More detailed solutions related to the primary and secondary distance states, the primary display interface, and the secondary display interface can be understood by referring to the subsequent control method embodiments on the smart wall switch side, and will not be elaborated here.

[0490] In this embodiment of the disclosure, unlike the requirement for consistency in the first type of configuration interface pattern, for the user interface (primary display interface and / or secondary display interface), this disclosure allows for differences between the second type of configuration interface pattern and the actual content displayed by the switch, as long as the two are related. This avoids requiring the terminal device to simulate a dynamic effect completely identical to the switch in the configuration interface pattern. Therefore, an illustrative approach can be used to reduce implementation complexity while still providing users with an intuitive configuration reference.

[0491] Furthermore, the optional interface content includes a first type of optional interface content and / or a second type of optional interface content; wherein: when the target interface content is selected from the first type of optional interface content, the displayed content presented in the updated second type of configuration interface pattern differs in display format from the user interface actually displayed on the screen of the smart wall switch after the update. This difference in display format allows the second type of configuration interface pattern to differ from the actual displayed content values, but maintains a correlation in type and layout.

[0492] When the target interface content is selected from the second type of optional interface content, the displayed content in the updated second type of configuration interface pattern is consistent in display form with the user interface actually displayed on the screen of the smart wall switch after the update. In other words, for the second type of optional interface content, the displayed content in the second type of configuration interface pattern of the terminal device and the displayed content actually displayed on the screen of the smart wall switch maintain the same or highly similar visual appearance perceptible to the user, and the consistency between the two is reflected in one or more of the following aspects:

[0493] Content consistency: The text content displayed in the second type of configuration interface is exactly the same as the text content displayed on the switch screen. For example, the user-edited custom text "Welcome home" will be displayed as "Welcome home" in both the second type of configuration interface and the switch screen.

[0494] Layout consistency: The layout features of the text in the second type of configuration interface pattern, such as display position, alignment, and number of lines, are the same as or basically consistent with the layout features of the corresponding area on the switch screen.

[0495] Style consistency: The font, font size, color, bolding, italics and other style attributes of the text in the second type of configuration interface pattern are the same as or basically consistent with the style displayed on the switch screen.

[0496] It should be noted that "consistency in display format" does not require the second type of configuration interface image to be completely identical to the smart wall switch screen in every pixel-level detail. Due to potential differences in screen size, resolution, and rendering engine between the terminal device and the smart wall switch, minor differences in display effect that do not affect user recognition are permissible (e.g., edge cropping due to different screen ratios, slight differences in stroke thickness due to differences in font rendering, etc.). As long as the user can intuitively recognize that the content presented in the second type of configuration interface image corresponds visually to the content actually displayed on the smart wall switch and has no substantial difference, they can be considered consistent in display format.

[0497] Furthermore, there are differences in the display format, including: the second type of configuration interface pattern uses a preset static placeholder value to display the target interface content, while the smart wall switch screen uses a dynamic real-time value to display the user interface.

[0498] In this embodiment of the disclosure, the static placeholder value can be understood as a preset, fixed, and non-real-time exemplary content used in the second type of configuration interface pattern of the terminal device to schematically display the target interface content. This value does not dynamically update with changes in actual time, actual weather, or other external factors; its purpose is to intuitively indicate to the user "the type of information to be displayed in this area," rather than precisely presenting the current real-time value of that information. For example... Figure 26 As shown, when a user configures the smart wall switch's screen display to "Time," the second configuration interface pattern can display "18:00" as a static placeholder value. Furthermore, when configured to "Weather," the pattern can display "Sleet" as a static placeholder value; and when configured to "Date," the pattern can display "10-10 Friday" as a static placeholder value. Static placeholder values ​​can be preset default values ​​or user-defined illustrative content, as long as they allow the user to identify the type of information being configured. The use of static placeholder values ​​allows the terminal device to present the configuration effect in the pattern without acquiring real-time data, reducing implementation complexity while still providing users with sufficient configuration references.

[0499] Dynamic real-time values ​​can be understood as the actual content displayed on the smart wall switch's screen during the user interface display, which is acquired and updated in real time. After determining the type of information to be displayed based on configuration instructions, the smart wall switch automatically retrieves real-time data such as the current time, weather, and date from a cloud server via a network (such as the internet) and dynamically updates the display. For example, Figure 27As shown, when the switch is configured to display the time, its screen displays the current time (e.g., "09:15") and refreshes in real time as the time changes; when configured to display the weather, its screen displays the current actual weather conditions (e.g., "Cloudy"); when configured to display the date, its screen displays the current actual date (e.g., "Thursday, April 2nd").

[0500] It should be noted that static placeholder values ​​are only used for illustrative previews in the terminal device configuration interface, while dynamic real-time values ​​are the actual content displayed to the user when the switch is running. The two values ​​may differ, but they remain related in terms of information type and layout structure. This ensures both the intuitiveness of the configuration preview and avoids the complex communication overhead caused by real-time data synchronization between the terminal device and the switch.

[0501] Furthermore, the specific examples of static placeholder values ​​mentioned above are merely illustrative and not intended to limit the scope of protection of this disclosure. Those skilled in the art can select other suitable static placeholder values ​​based on actual product design; as long as they can indicate the corresponding information type, they fall within the scope of "static placeholder values" as referred to in this disclosure. Similarly, the specific representation of dynamic real-time values ​​(such as time formats, weather icons, etc.) can also be adjusted according to actual needs.

[0502] Furthermore, such as Figure 28 As shown, the first type of optional interface content includes time information, weather information, and / or date information. It is evident that the first type of optional interface content in the user interface is dynamically changing or requires real-time acquisition of data. For this type of information, the smart wall switch actually displays real-time values ​​(such as the current time "14:30" and today's weather "Sunny"), while the second type of configuration interface pattern on the terminal device can use preset static placeholder values ​​to illustrate the information type to be displayed in that area, without needing to precisely simulate real-time values.

[0503] Furthermore, establishing a communication connection with the terminal device includes at least one of the following: establishing a point-to-point direct communication connection with the terminal device; or establishing a network communication connection with the terminal device through a cloud server and gateway device.

[0504] The smart wall switch receives the configuration instruction, including: when the target interface content is selected from the first type of selectable interface content, the smart wall switch receives the corresponding user interface configuration instruction through the network communication connection, so as to obtain the dynamic information to be displayed through the network according to the user interface configuration instruction.

[0505] Specifically, when a user configures the first type of optional interface content (such as setting the screen display to "time"), the terminal device sends a configuration command to the smart wall switch via the cloud server and gateway device. Upon receiving the configuration command, the smart wall switch automatically obtains and displays dynamic information such as the current time and weather via a network (such as the internet). Because the smart wall switch needs to acquire real-time data independently, the configuration command only needs to tell the smart wall switch what type of information to display, without needing to include specific numerical values.

[0506] In some embodiments, the second type of optional interface content includes custom text content; the custom text content includes at least one pre-edited text. For example... Figure 28 As shown, the text is not fixedly bound to the buttons of the smart wall switch.

[0507] When the target interface content is selected from the second type of optional interface content, the displayed content presented in the updated second type of configuration interface pattern is consistent with the user interface actually displayed on the screen of the smart wall switch after the update in terms of display form, specifically, in terms of display content.

[0508] For example, a smart wall switch has two screens. The user edits and stores two texts: Text 1 is "The sun sets beyond the mountains, the Yellow River flows into the sea," and Text 2 is "To see a thousand miles further, climb one more story." The left screen is set to display Text 1, and the right screen is set to display Text 2. Then, the second type of configuration interface will display as follows: Figure 28 As shown, a schematic diagram of the actual user interface on the screen of the smart wall switch is as follows. Figure 29 As shown, the two are consistent in their presentation format.

[0509] Furthermore, the smart wall switch receives the configuration instruction, including: when the configuration operation is an editing operation on the text content, the smart wall switch receives the corresponding configuration instruction through the point-to-point direct communication connection to store the edited optional text locally on the smart wall switch.

[0510] Specifically, custom text content refers to text information that users can freely input or edit, such as "Welcome home" or "The weather is nice today." This text is not fixed to physical buttons and can be displayed as screensaver information or notifications. When a user edits the text content (such as modifying, adding, or deleting text), the terminal device sends the edited text content directly to the smart wall switch's local storage via point-to-point direct communication.

[0511] Furthermore, the smart wall switch receiving the configuration instruction also includes: when the configuration operation is a switching operation on the user interface of the smart wall switch, the smart wall switch receives the corresponding configuration instruction through the network communication connection; wherein, the switching operation includes at least one of the following: switching the user interface from one text in the second type of optional interface content to another text, or switching the user interface from one text in the second type of optional interface content to any one of any optional interface content in the first type of optional interface content.

[0512] Specifically, switching operations differ from editing operations: editing operations involve adding, deleting, or modifying text content, requiring the modified content to be stored locally on the smart wall switch; while switching operations only change the screen display (e.g., from "Text 1" to "Text 2," or from "Time" to "Text 1"). The smart wall switch already stores all the text locally, and the configuration command only needs to tell the smart wall switch "which content to display," without transmitting specific data. Switching operations send configuration commands via network communication between the cloud server and the gateway device. After receiving the configuration command, the smart wall switch retrieves the corresponding custom text content (e.g., a specific text) from local storage and displays it, or obtains corresponding information (e.g., time, weather, date) from the network and displays it.

[0513] In some embodiments, the control method further includes:

[0514] Upon detecting entry into the settings interface, or simultaneously, a point-to-point direct communication is established with the smart wall switch.

[0515] Furthermore, establishing a point-to-point direct communication connection with the smart wall switch includes:

[0516] In response to the operation of entering the settings interface, establish a point-to-point direct communication with the smart wall switch; and / or, in response to the operation of exiting the settings interface, immediately or after a delay, disconnect the point-to-point direct communication with the smart wall switch.

[0517] Furthermore, establishing a network communication connection with the smart wall switch through a cloud server and gateway device includes:

[0518] Obtain the distribution network message transmitted by the smart wall switch that has entered the distribution network state, wherein the smart wall switch is triggered to enter the distribution network state by a specific distribution network operation, and the distribution network message carries the identification information of the smart wall switch.

[0519] Based on the identification information, the smart wall switch is added to the smart home platform account of the user to which the smart wall switch belongs, in order to complete the network configuration.

[0520] In some embodiments, after establishing a point-to-point direct communication connection with the smart wall switch, the method further includes:

[0521] The latest button identification information is automatically synchronized to the smart wall switch, wherein the latest button identification information includes button name and / or button icon.

[0522] Corresponding to at least some of the above embodiments, one embodiment of this disclosure also provides a control method applied to a terminal device.

[0523] The control method includes at least:

[0524] The terminal device establishes a communication connection with the smart wall switch;

[0525] The terminal device displays a settings interface, which includes a configuration interface diagram of the smart wall switch screen;

[0526] The terminal device receives configuration operations from the user on the settings interface for the smart wall switch;

[0527] In response to the configuration operation, the terminal device generates a corresponding configuration instruction and sends the configuration instruction so that the smart wall switch updates the display content of its screen according to the configuration instruction;

[0528] The terminal device updates the configuration interface pattern according to the configuration operation, wherein the updated configuration interface pattern is associated with the updated display content of the smart wall switch.

[0529] Specifically, a communication connection needs to be established between the terminal device and the smart wall switch for subsequent transmission of configuration commands. This communication connection can be of various types. For example, the terminal device establishing a communication connection with the smart wall switch includes at least one of the following:

[0530] The terminal device establishes a point-to-point direct communication connection with the smart wall switch. Point-to-point direct communication refers to a communication link established directly between the terminal device and the smart wall switch without going through a relay device (such as a router or cloud server), such as Bluetooth Direct or Zigbee Direct.

[0531] The terminal device establishes a network communication connection with the smart wall switch through a cloud server and a gateway device. In this method, the terminal device sends configuration commands to the cloud server, and the cloud server forwards the commands to the smart wall switch through a gateway device (such as a smart home gateway, router, etc.). This method enables remote configuration.

[0532] In this embodiment of the disclosure, the settings interface is a user interaction interface provided by the terminal device for configuring the smart wall switch. The configuration interface pattern is embedded in the settings interface as a visual feedback area for user configuration operations.

[0533] The configuration interface diagram can be understood as a graphical area displayed in the settings interface of the terminal device to illustrate the content displayed on the smart wall switch screen. This configuration interface diagram is not a real-time screenshot or exact mirror of the smart wall switch screen, but a schematic graphical representation. Its layout and style can maintain visual relevance to the actual screen of the smart wall switch so that users can intuitively understand the impact of configuration operations on the display effect of the switch screen.

[0534] In this embodiment, configuration operations can be understood as user actions to set or modify parameters such as the display content, button functions, and operating modes of a smart wall switch. These may include, but are not limited to, interactive operations such as clicking, long-pressing, swiping, entering text, selecting options, and uploading images. The specific type of configuration operation depends on the type of parameters being configured.

[0535] In this embodiment, after the user completes the configuration operation, the terminal device generates a corresponding configuration instruction based on the operation. This instruction contains parameter information that needs to be updated (such as button name, icon, display content type, etc.). The terminal device sends the configuration instruction to the smart wall switch through the established communication connection. After receiving the instruction, the smart wall switch parses and executes the instruction, updating the display content on its screen.

[0536] In this embodiment of the disclosure, when a user performs a configuration operation on the settings interface, the terminal device not only sends a configuration command to the smart wall switch to update its actual screen display content, but also synchronously updates the configuration interface pattern in the settings interface, so that there is a correlation between the updated pattern and the updated display content of the switch. Exemplarily, this correlation includes, but is not limited to: both being updated synchronously based on the same configuration operation; the configuration interface pattern adopting the same or similar layout structure and visual elements as the actual screen of the switch; or, the configuration interface pattern reflecting some configuration information in the actual display content of the switch in a simplified and schematic manner.

[0537] Furthermore, through the above steps, when users configure the smart wall switch on the terminal device's settings interface, they can see the effect related to the actual display content of the switch on the configuration interface diagram in real time. They can intuitively perceive the configuration result without repeatedly checking the switch screen, thereby greatly improving configuration efficiency and user experience.

[0538] In some embodiments, the configuration interface pattern includes a first type of configuration interface pattern, and the settings interface includes a first settings interface corresponding to the first type of configuration interface pattern.

[0539] Based on this, the terminal device receives configuration operations from the user on the settings interface for the smart wall switch, including: the terminal device receiving configuration operations from the user on the first settings interface for the button identification information of at least one button of the smart wall switch.

[0540] Specifically, the first settings interface is mainly used to configure the button identification information of the smart wall switch (e.g., Figure 21 The smart wall switch shown has three buttons. Figure 21 This shows a schematic diagram of the first setup interface operation process of the smart wall switch.

[0541] For example, the configuration operation of button identification information can be performed as follows: Figure 21 As shown: Click on the settings item corresponding to a button, and modify the button name in the pop-up input box; click on the icon selection area to select or upload a new icon from the icon library.

[0542] In some embodiments, the terminal device updates the configuration interface pattern according to the configuration operation, including: the terminal device updates the first type of configuration interface pattern in response to the configuration operation, wherein the button identification information presented in the updated first type of configuration interface pattern is consistent with the button identification information displayed on the screen of the smart wall switch after the update.

[0543] Specifically, when a user modifies the label information of a button in the first settings interface (such as...), Figure 21 As shown, after changing the button name from "Left Button" to "Living Room Main Light" and the button icon to a downlight icon, the terminal device generates a configuration command and sends it to the smart wall switch. This causes the corresponding button's display on the smart wall switch screen to be updated to "Living Room Main Light," and the button icon to be updated to a downlight icon. Figure 22 As shown; on the other hand, the terminal device immediately updates the first type of configuration interface pattern, displaying the corresponding position of the button in the pattern as "living room main light", and updating the icon to a downlight icon, as shown. Figure 21 As shown. Here, the button label information presented in the updated first type of configuration interface is the same as or basically the same as the button label information actually displayed on the smart wall switch screen, that is, the text content is the same and the icons are the same.

[0544] Furthermore, through this embodiment, users can intuitively modify the button label information in the first settings interface and see the same display effect as the actual power on / off screen on the configuration interface in real time, realizing the "what you see is what you get" of button label configuration.

[0545] Furthermore, the button identification information includes a button name and a button icon. Based on this, the terminal device sends the configuration command, including: the terminal device sending a configuration command to update the button name via the point-to-point direct communication connection; and the terminal device sending a configuration command to update the button icon via the network communication connection.

[0546] Furthermore, by differentiating data types and using different communication paths, it is possible to ensure real-time performance while maintaining the reliability of data transmission, thereby optimizing the communication efficiency of the configuration process.

[0547] Further, in response to the configuration operation, the terminal device generates a corresponding configuration instruction and sends the configuration instruction, including the following steps:

[0548] The terminal device responds to the user's configuration operation on the first settings interface by displaying a button identification information modification interface;

[0549] The terminal device receives user requests to modify the button identification information of at least one button in the button identification information modification interface;

[0550] In response to detecting that the user has exited the button identification information modification interface, the terminal device generates a configuration instruction corresponding to the modified button identification information and sends the configuration instruction to the smart wall switch, so that the smart wall switch updates the corresponding button identification information displayed on its screen according to the configuration instruction.

[0551] In this embodiment of the disclosure, the terminal device provides a dedicated modification interface (such as...). Figure 21 The second interactive interface (shown in the diagram) is for users to edit centrally. Only when the user finishes editing and actively exits the modification interface (e.g., by clicking the "Back" or "Done" button) does the terminal device generate configuration commands for all modified button labels at once and send them to the smart wall switch. This "synchronization upon exit" method reduces the number of communications, lowers device power consumption, and avoids interface flickering or response delays caused by frequent switch updates triggered by the user during editing.

[0552] Furthermore, in response to the configuration operation, the terminal device updates the first type of configuration interface pattern, including: the terminal device updates the first type of configuration interface pattern so that the updated first type of configuration interface pattern displays the modified button identification information.

[0553] Specifically, when the user exits the modification interface, the terminal device not only sends a configuration command, but also updates the first type of configuration interface pattern simultaneously, so that the button label information displayed in the first type of configuration interface pattern is consistent with the user's modification.

[0554] Furthermore, by combining "synchronization upon exit" with "instant local pattern updates," the consistency of data between the smart wall switch and the terminal device is ensured, while avoiding frequent communication overhead, thus achieving a seamless synchronization experience.

[0555] In some embodiments, the smart wall switch includes a first screen, a second screen, and an operating area disposed between the first screen and the second screen.

[0556] The first type of configuration interface pattern in the first settings interface includes a first pattern area corresponding to the first screen, a second pattern area corresponding to the second screen, and an operation simulation area corresponding to the operation area.

[0557] The operation simulation area is an interactive control in the terminal device settings interface used to simulate the physical operation area of ​​a smart wall switch. User actions in this simulation area can be used to preview the impact of these actions on the screen display.

[0558] In some embodiments, the operating area of ​​the smart wall switch may be, for example, at least one touch area.

[0559] Furthermore, such as Figure 23 As shown, the first type of configuration interface pattern in the first settings interface includes a touch simulation area corresponding to the touch area.

[0560] Specifically, the touch simulation area is an interactive control in the terminal device's settings interface used to simulate the physical touch area on a smart wall switch. The appearance and position of the touch simulation area correspond to the actual touch area on the smart wall switch, allowing users to intuitively understand the operation. In other words, touch operations performed by the user on this touch simulation area can be used to preview the effect of the touch area on the screen display content.

[0561] Furthermore, the terminal device receiving configuration operations from the user on the settings interface for the smart wall switch also includes:

[0562] The terminal device receives touch operations from the user on the touch simulation area;

[0563] In response to the touch operation, the terminal device switches the configuration content displayed in the first pattern area and / or the second pattern area.

[0564] Specifically, when the user touches the simulated area (such as...) Figures 23-25 When a finger touches the area where the paperclip is located (e.g., swipe left, swipe right, tap, etc.), the terminal device will respond to the touch operation by switching the first pattern area (e.g., ...). Figures 23-25In the first type of configuration interface pattern, the area where buttons 1 and 3 are located) and / or the second pattern area (such as... Figures 23-25 The configuration content is displayed in the area where buttons 2 and 4 are located in the first type of configuration interface diagram.

[0565] For example, such as Figure 23 As shown, when a user clicks on the simulated touch area, the content in the first and second pattern areas may simultaneously switch to another set of preset display content, thereby simulating the display effect when operating on the actual touch area of ​​the smart wall switch.

[0566] Furthermore, by setting up a touch simulation area, users can experience and familiarize themselves with the touch interaction logic of the smart wall switch on their terminal devices in advance, without having to operate the actual switch, which further enhances the convenience and intuitiveness of configuration.

[0567] In some embodiments, the smart wall switch has a first operating mode and a second operating mode, wherein in the first operating mode, the button of the smart wall switch is used to control a relay; and in the second operating mode, the button of the smart wall switch is used to trigger a preset linkage operation.

[0568] For example, a smart wall switch may have one or more mechanical buttons. When multiple mechanical buttons are present, in a first operating mode, all mechanical buttons are used to control relays (e.g., to control the on / off state of electrical equipment such as lights and sockets). In a second operating mode, all mechanical buttons are used to trigger preset linkage operations (e.g., to execute "away mode" or "movie mode" scenarios with one click, which can control multiple smart devices simultaneously). Switching between operating modes can be achieved by the user operating the touch area of ​​the actual switch, and / or by being set by the terminal device.

[0569] Based on this, the terminal device, in response to the touch operation, switches the configuration content displayed in the first graphic area and / or the second graphic area, including: the terminal device, in response to the touch operation, switches the display of a first type of button identification information corresponding to the first operating mode or a second type of button identification information corresponding to the second operating mode in the first graphic area and / or the second graphic area. Wherein, the first type of button identification information includes the button name of the smart wall switch in the first operating mode, and the second type of button identification information includes the button name of the smart wall switch in the second operating mode.

[0570] Specifically, a user's touch operation on the touch simulation area will switch the type of button identification information displayed in the first pattern area, or switch the type of button identification information displayed in the second pattern area, or switch the type of button identification information displayed in both the first and second pattern areas simultaneously.

[0571] When the first type of button identification information (such as...) is displayed in the pattern (first pattern area and / or second pattern area) Figure 23 When "Button 1, Button 2, Button 3, and Button 4" are displayed, it shows the button names of each button on the smart wall switch in the first working mode; when the second type of button identification information (such as...) is displayed in the pattern (first pattern area and / or second pattern area)... Figure 23 When "Button 5, Button 6, Button 7 and Button 8" are displayed, what is shown is the button name of each button of the smart wall switch in the second working mode.

[0572] In some embodiments, the user switches the displayed content on the first type of configuration interface pattern by touching a simulated area. This is only for previewing the display effect of the smart wall switch screen under different working modes and does not actually change the working mode of the smart wall switch. The actual working mode of the smart wall switch is determined by its own state or set by the user through other configuration operations. Of course, in some embodiments, the actual working mode of the smart wall switch can also be switched by the touch simulated area in the first type of configuration interface pattern.

[0573] Furthermore, by touching the simulated area, users can intuitively preview the button label display effect of the smart wall switch in different working modes, making configuration easier.

[0574] In some embodiments, the terminal device receives a user's configuration operation on the button identification information of at least one button of the smart wall switch in a first setting interface, including: the terminal device responding to the user's configuration operation on the first type of button identification information enters the button identification information modification interface to receive the user's modification operation on the first type of button identification information; the terminal device responding to the user's configuration operation on the second type of button identification information directly receives the user's modification operation on the second type of button identification information in the first setting interface.

[0575] Specifically, such as Figure 24 As shown, when the user displays the first type of button identification information (i.e., the button name in the first working mode) in the pattern (the first pattern area and / or the second pattern area), if the user clicks on a button setting item, the terminal device will enter a special button identification information modification interface. In this modification interface, the user can modify the button name or icon of each button one by one.

[0576] like Figure 25 As shown, when the user displays the second type of button identification information (i.e. the button name in the second working mode) in the pattern (the first pattern area and / or the second pattern area), if the user clicks on a button setting item, the terminal device will directly pop up an editing box or provide editing options in the first setting interface, and the user can complete the modification without entering the next level interface.

[0577] In some embodiments, the control method further includes: the terminal device receiving a touch operation from a user on the touch simulation area; the terminal device responding to the touch operation by switching the display of a first type of button identification information corresponding to the first working mode or a second type of button identification information corresponding to the second working mode in the first pattern area and / or the second pattern area, while also simultaneously switching the button setting items displayed in the first setting interface.

[0578] Specifically, such as Figure 24 As shown, when the first type of button identification information is displayed in the first pattern area and / or the second pattern area, the first setting interface displays the button setting items corresponding to the first working mode (such as...). Figure 24 (These are the four button settings from button 1 to button 4 in the text). Figure 25 As shown, when the second type of button identification information is displayed in the first pattern area and / or the second pattern area, the first setting interface displays the button setting items corresponding to the second working mode (such as...). Figure 25 (Key settings for buttons 5 through 8).

[0579] It is worth noting that, by setting a first operating mode and a second operating mode, the smart wall switch provided in this disclosure can expand the button functions through software without changing the number of physical buttons. Specifically, each physical button of the smart wall switch performs one function in the first operating mode (such as controlling a relay) and another function in the second operating mode (such as triggering a preset linkage operation). Users can switch between different operating modes via a touch area. Based on this principle, N physical buttons can be expanded to 2N actual button functions, thereby significantly improving the control capability and application scenario adaptability of the smart wall switch without increasing hardware costs.

[0580] For example, for a smart wall switch with four physical buttons, in its first working mode, the four buttons are respectively used to control four different relays (such as the living room light, bedroom light, dining room light, balcony light); when the user switches the switch to the second working mode through the touch area, the same four physical buttons are respectively used to trigger four preset linkage operations (such as leaving home mode, returning home mode, movie-watching mode, sleep mode). That is, the four physical buttons achieve eight actual button functions, and the user can flexibly switch according to the usage scenario without separately configuring physical buttons for each function.

[0581] It can be seen that through the division of working modes and the touch switching mechanism, the present disclosure not only provides a more flexible control method for users, but also enables the smart wall switch to carry richer functions under limited hardware resources. In addition, those skilled in the art can understand that the above first working mode and second working mode are only exemplary divisions. In specific implementations, they can be further extended to three or more working modes to achieve a greater multiple of function expansion, as long as their core mechanisms are based on the working mode division and switching scheme proposed in the present disclosure, they all fall within the protection scope of the present disclosure.

[0582] In the embodiment of the present disclosure, the button setting item can be understood as a set of interactive controls for configuring parameters related to the buttons of the smart wall switch in the first setting interface. Specifically, the content of the button setting item is associated with the working mode currently previewed by the smart wall switch. The button setting item includes but is not limited to: the button name edit box for each button, the button icon selection area, the relay identifier controlled by the button, and / or the enable / disable state of the button, etc. When the first type of button identifier information is displayed in the first pattern area and / or the second pattern area of the first setting interface, the user can configure the function identifier and / or control object of each button in the first working mode through these setting items. When the second type of button identifier information is displayed in the first pattern area and / or the second pattern area of the first setting interface, the user can configure the linkage operation, icon, and / or identifier information triggered by each button in the second working mode through these setting items.

[0583] In other words, the button setting items in the first setting interface are dynamically changed, and the specific configuration options presented depend on the specific type of button identifier information selected by the user through the touch simulation area. Through this linkage design, when the user previews the button identifier information of a certain working mode in the pattern area, the setting interface synchronously provides a detailed configuration entry for the buttons in this working mode, achieving the consistency between the preview content and the configuration content, and improving the intuitiveness and efficiency of the configuration operation.

[0584] It should be noted that the specific contents of the button settings listed above are only illustrative examples. In actual product implementation, the type and number of settings can be added, reduced or adjusted according to the functional design of the smart wall switch. As long as its core function is to configure the relevant parameters of each button in the corresponding working mode, it falls within the scope of the "button settings" referred to in this disclosure.

[0585] In some embodiments, the configuration interface pattern includes a second type of configuration interface pattern, and the settings interface includes a second settings interface corresponding to the second type of configuration interface pattern.

[0586] Furthermore, the terminal device receives configuration operations from the user on the settings interface for the smart wall switch, including: the terminal device receives configuration operations from the user on the user interface displayed on the screen of the smart wall switch on the second settings interface.

[0587] In this embodiment of the disclosure, the terminal device, in response to the configuration operation, generates a corresponding configuration instruction, including:

[0588] A user interface configuration instruction is generated in response to a user selecting a target interface content from multiple optional interface content; the user interface configuration instruction is used to cause the smart wall switch to switch the screen's user interface to correspond to the target interface content under certain circumstances.

[0589] Specifically, the second settings interface is mainly used to configure the user interface displayed on the smart wall switch screen. This user interface includes the smart wall switch controlling the screen to switch to the user interface corresponding to the determined proximity distance state when it detects the presence of a user. The user interface corresponding to this proximity distance state is determined according to user interface configuration instructions. Further, this user interface includes a primary display interface and / or a secondary display interface. The specific situation can be understood as follows: if the proximity distance state is determined to be primary, the screen displays the primary display interface; if the proximity distance state is determined to be secondary, the screen displays the secondary display interface. More detailed solutions related to the primary and secondary proximity distance states, the primary display interface, and the secondary display interface can be understood by referring to the descriptions of other embodiments, and will not be repeated here.

[0590] The terminal device updates the configuration interface pattern according to the configuration operation, including:

[0591] In response to a user's selection of a target interface from multiple selectable interface options, the terminal device updates the displayed content in the second type of configuration interface pattern to the target interface content. The updated displayed content in the second type of configuration interface pattern is associated with the user interface actually displayed on the smart wall switch's screen after the update.

[0592] In this embodiment of the disclosure, unlike the requirement for consistency in the first type of configuration interface pattern, for the user interface (primary display interface and / or secondary display interface), this disclosure allows for differences between the second type of configuration interface pattern and the actual content displayed by the switch, as long as the two are related. This avoids requiring the terminal device to simulate a dynamic effect completely identical to the switch in the configuration interface pattern. Therefore, an illustrative approach can be used to reduce implementation complexity while still providing users with an intuitive configuration reference.

[0593] In some embodiments, the optional interface content includes a first type of optional interface content and / or a second type of optional interface content; wherein:

[0594] When the target interface content is selected from the first type of selectable interface content, the displayed content in the updated second type of configuration interface pattern differs in presentation from the user interface actually displayed on the screen of the smart wall switch after the update. This difference in presentation allows the second type of configuration interface pattern to differ from the actual displayed content values, but maintains a correlation in type and layout.

[0595] When the target interface content is selected from the second type of optional interface content, the displayed content in the updated second type of configuration interface pattern is consistent in display form with the user interface actually displayed on the screen of the smart wall switch after the update. In other words, for the second type of optional interface content, the displayed content in the second type of configuration interface pattern of the terminal device and the displayed content actually displayed on the screen of the smart wall switch maintain the same or highly similar visual appearance perceptible to the user, and the consistency between the two is reflected in one or more of the following aspects:

[0596] Content consistency: The text content displayed in the second type of configuration interface is exactly the same as the text content displayed on the switch screen. For example, the user-edited custom text "Welcome home" will be displayed as "Welcome home" in both the second type of configuration interface and the switch screen.

[0597] Layout consistency: The layout features of the text in the second type of configuration interface pattern, such as display position, alignment, and number of lines, are the same as or basically consistent with the layout features of the corresponding area on the switch screen.

[0598] Style consistency: The font, font size, color, bolding, italics and other style attributes of the text in the second type of configuration interface pattern are the same as or basically consistent with the style displayed on the switch screen.

[0599] It should be noted that "consistency in display format" does not require the second type of configuration interface image to be completely identical to the smart wall switch screen in every pixel-level detail. Due to potential differences in screen size, resolution, and rendering engine between the terminal device and the smart wall switch, minor differences in display effect that do not affect user recognition are permissible (e.g., edge cropping due to different screen ratios, slight differences in stroke thickness due to differences in font rendering, etc.). As long as the user can intuitively recognize that the content presented in the second type of configuration interface image corresponds visually to the content actually displayed on the smart wall switch and has no substantial difference, they can be considered consistent in display format.

[0600] Furthermore, there are differences in the display format, including: the second type of configuration interface pattern uses a preset static placeholder value to display the target interface content, while the smart wall switch screen uses a dynamic real-time value to display the user interface.

[0601] In this embodiment of the disclosure, the static placeholder value can be understood as a preset, fixed, and non-real-time exemplary content used in the second type of configuration interface pattern of the terminal device to schematically display the target interface content. This value does not dynamically update with changes in actual time, actual weather, or other external factors; its purpose is to intuitively indicate to the user "the type of information to be displayed in this area," rather than precisely presenting the current real-time value of that information. For example... Figure 26 As shown, when a user configures the smart wall switch's screen display to "Time," the second configuration interface pattern can display "18:00" as a static placeholder value. Furthermore, when configured to "Weather," the pattern can display "Sleet" as a static placeholder value; and when configured to "Date," the pattern can display "10-10 Friday" as a static placeholder value. Static placeholder values ​​can be preset default values ​​or user-defined illustrative content, as long as they allow the user to identify the type of information being configured. The use of static placeholder values ​​allows the terminal device to present the configuration effect in the pattern without acquiring real-time data, reducing implementation complexity while still providing users with sufficient configuration references.

[0602] Dynamic real-time values ​​can be understood as the actual content displayed on the smart wall switch's screen during the user interface display, which is acquired and updated in real time. After determining the type of information to be displayed based on configuration instructions, the smart wall switch automatically retrieves real-time data such as the current time, weather, and date from a cloud server via a network (such as the internet) and dynamically updates the display. For example, Figure 27As shown, when the switch is configured to display the time, its screen displays the current time (e.g., "09:15") and refreshes in real time as the time changes; when configured to display the weather, its screen displays the current actual weather conditions (e.g., "Cloudy"); when configured to display the date, its screen displays the current actual date (e.g., "Thursday, April 2nd").

[0603] It should be noted that static placeholder values ​​are only used for illustrative previews in the terminal device configuration interface, while dynamic real-time values ​​are the actual content displayed to the user when the switch is running. The two values ​​may differ, but they remain related in terms of information type and layout structure. This ensures both the intuitiveness of the configuration preview and avoids the complex communication overhead caused by real-time data synchronization between the terminal device and the switch.

[0604] Furthermore, the specific examples of static placeholder values ​​mentioned above are merely illustrative and not intended to limit the scope of protection of this disclosure. Those skilled in the art can select other suitable static placeholder values ​​based on actual product design; as long as they can indicate the corresponding information type, they fall within the scope of "static placeholder values" as referred to in this disclosure. Similarly, the specific representation of dynamic real-time values ​​(such as time formats, weather icons, etc.) can also be adjusted according to actual needs.

[0605] Furthermore, such as Figure 28 As shown, the first type of optional interface content includes time information, weather information, and / or date information. It is evident that the first type of optional interface content in the user interface is dynamically changing or requires real-time acquisition of data. For this type of information, the smart wall switch actually displays real-time values ​​(such as the current time "14:30" and today's weather "Sunny"), while the second type of configuration interface pattern on the terminal device can use preset static placeholder values ​​to illustrate the information type to be displayed in that area, without needing to precisely simulate real-time values.

[0606] In some embodiments, the terminal device sends the configuration command, including:

[0607] When the target interface content is selected from the first type of selectable interface content, the terminal device sends the corresponding user interface configuration instruction through the network communication connection, so that the smart wall switch can obtain the dynamic information to be displayed through the network according to the user interface configuration instruction.

[0608] Specifically, when a user configures the first type of optional interface content (such as setting the screen display to "time"), the terminal device sends a configuration command to the smart wall switch via the cloud server and gateway device. Upon receiving the configuration command, the smart wall switch automatically obtains and displays dynamic information such as the current time and weather via a network (such as the internet). Because the smart wall switch needs to acquire real-time data independently, the configuration command only needs to tell the smart wall switch what type of information to display, without needing to include specific numerical values.

[0609] In some embodiments, the second type of optional interface content includes custom text content; such as Figure 28 As shown, the custom text content includes at least one pre-edited text, which is not fixedly bound to the button of the smart wall switch.

[0610] When the target interface content is selected from the second type of optional interface content, the displayed content presented in the updated second type of configuration interface pattern is consistent with the user interface actually displayed on the screen of the smart wall switch after the update in terms of display form, specifically, in terms of display content.

[0611] For example, a smart wall switch has two screens. The user edits and stores two texts: Text 1 is "The sun sets beyond the mountains, the Yellow River flows into the sea," and Text 2 is "To see a thousand miles further, climb one more story." The left screen is set to display Text 1, and the right screen is set to display Text 2. Then, the second type of configuration interface will display as follows: Figure 28 As shown, a schematic diagram of the actual user interface on the screen of the smart wall switch is as follows. Figure 29 As shown, the two are consistent in their presentation format.

[0612] Furthermore, the terminal device sends the configuration command, including: when the configuration operation is an editing operation on the text content, the terminal device sends the corresponding configuration command through the point-to-point direct communication connection to store the edited text locally on the smart wall switch.

[0613] Specifically, custom text content refers to text information that users can freely input or edit, such as "Welcome home" or "The weather is nice today." This text is not fixed to physical buttons and can be displayed as screensaver information or notifications. When a user edits the text content (such as modifying, adding, or deleting text), the terminal device sends the edited text content directly to the smart wall switch's local storage via point-to-point direct communication.

[0614] In some embodiments, when the terminal device sends the configuration instruction, it further includes: when the configuration operation is a switching operation on the content displayed on the smart wall switch screen, the terminal device sends a corresponding configuration instruction through the network communication connection; wherein, the switching operation includes at least one of the following: switching the user interface from one text in the second type of optional interface content to another text, or switching the user interface from one text in the second type of optional interface content to any one of the first type of optional interface content.

[0615] Specifically, switching operations differ from editing operations: editing operations involve adding, deleting, or modifying text content, requiring the modified content to be stored locally on the smart wall switch; while switching operations only change the screen display (e.g., from "Text 1" to "Text 2," or from "Time" to "Text 1"). The smart wall switch already stores all the text locally, and the configuration command only needs to tell the smart wall switch "which content to display," without transmitting specific data. Switching operations send configuration commands via network communication between the cloud server and the gateway device. After receiving the configuration command, the smart wall switch retrieves the corresponding custom text content (e.g., a specific text) from local storage and displays it, or obtains corresponding information (e.g., time, weather, date) from the network and displays it.

[0616] In some embodiments, the control method further includes: when the device detects that it has entered the settings interface, or at the same time, the terminal device establishes a point-to-point direct communication with the smart wall switch.

[0617] Specifically, when a user opens the settings interface on the terminal device (whether it's the first or second settings interface), the terminal device automatically triggers a point-to-point direct communication connection with the smart wall switch, eliminating the need for manual pairing or connection by the user. This automated connection mechanism reduces user steps and improves the ease of configuration.

[0618] Furthermore, the terminal device establishes a point-to-point direct communication connection with the smart wall switch, including: the terminal device establishing a point-to-point direct communication connection with the smart wall switch in response to the operation of entering the settings interface; and / or, the terminal device immediately or after a delay disconnecting the point-to-point direct communication connection with the smart wall switch in response to the operation of exiting the settings interface.

[0619] Furthermore, by adopting the strategy of "establishing connection upon entry and disconnecting upon exit", the connection can be maintained when the user needs to configure and the connection resources can be released in a timely manner after the user exits the configuration, thereby saving power consumption of terminal devices and smart wall switches.

[0620] Furthermore, the terminal device establishes a network communication connection with the smart wall switch through a cloud server and gateway device, including:

[0621] The terminal device obtains the distribution network message transmitted by the smart wall switch that has entered the distribution network state. The smart wall switch is triggered to enter the distribution network state by a specific distribution network operation. The distribution network message carries the identification information of the smart wall switch.

[0622] The terminal device adds the smart wall switch to the smart home platform account of the user to which the smart wall switch belongs, based on the identification information, in order to complete the network configuration.

[0623] Specifically, when a smart wall switch is used for the first time or needs to be reconfigured, the user can enter the configuration state by double-clicking and pressing a specific button on the smart wall switch. The smart wall switch then transmits a configuration message (such as a Wi-Fi Beacon or Bluetooth broadcast) containing its own identification information (such as device ID and MAC address). After scanning the message, the terminal device adds the switch to the user's smart home platform account based on the identification information, completing the configuration. Afterward, the terminal device can communicate with the smart wall switch via the cloud server and gateway device.

[0624] In some embodiments, after the terminal device establishes a point-to-point direct communication connection with the smart wall switch, the method further includes: the terminal device automatically synchronizing the latest button identification information to the smart wall switch, wherein the latest button identification information includes button name and / or button icon.

[0625] Specifically, once the point-to-point direct connection is established, the terminal device can proactively synchronize the latest button identification information (i.e., the button names and / or button icons most recently configured by the user) to the smart wall switch. This "seamless synchronization" mechanism ensures that the data at the smart wall switch and the terminal device remain consistent, avoiding repeated configuration by the user. This synchronization can be performed automatically after the connection is established, without user intervention.

[0626] It should be noted that the specific implementation methods of point-to-point direct communication listed above (such as Bluetooth direct connection) are merely illustrative examples and are not intended to limit the scope of protection of this disclosure. Those skilled in the art can select appropriate point-to-point direct communication technologies based on actual product design, hardware support, and application scenario requirements. As long as it can achieve direct data transmission between the terminal device and the smart wall switch, it falls within the scope of "point-to-point direct communication" as referred to in this disclosure.

[0627] In some embodiments, a control method for an interface style scheme is also provided. The control method includes: the smart wall switch receiving an interface style configuration instruction; the smart wall switch calling corresponding interface data according to the interface style configuration instruction to present the target interface style scheme on the screen.

[0628] In this embodiment of the disclosure, the interface style configuration instruction can be understood as a command to instruct the smart wall switch to switch to a certain target interface style scheme. This interface style configuration instruction carries at least the identification information of the target interface style scheme, so that the smart wall switch can accurately identify the target interface style scheme to be loaded.

[0629] Specifically, after receiving an interface style configuration command, the smart wall switch parses the target interface style scheme identifier carried in the command and retrieves and loads the corresponding interface data from its local memory based on this identifier. The loaded interface data includes various resources required for rendering the user interface on the display screen, such as icons, colors, layout parameters, and animation effects. After loading the interface data, the smart wall switch presents the corresponding interface style scheme on its screen, allowing users to intuitively see the display effect of the target interface style scheme.

[0630] The smart wall switch is pre-configured with at least two types of interface style schemes, including a first type of interface style scheme based on a static data source and a second type of interface style scheme based on an updatable data source. The interface data of the first type of interface style scheme is not exchanged with external devices during normal operation of the device, while the interface data of the second type of interface style scheme needs to be dynamically acquired according to external needs and stored locally before it can be called.

[0631] In this embodiment of the disclosure, the interface style scheme defines a set of parameters for the visual presentation effect of the user interface on the smart wall switch display screen, including at least one of the following: visual style configuration of basic interactive controls; display configuration of interface background; shape configuration of icon elements; structural configuration of interface layout; and presentation configuration of dynamic effects.

[0632] The basic interactive controls include at least one of a switch button, a mode indicator, a brightness adjustment slider, and a color temperature adjustment slider. The visual style configuration includes at least one of the following attributes: color, shape, size, transparency, and shadow effect of the control.

[0633] The first type of interface style scheme includes at least one default interface style scheme preset when the smart wall switch leaves the factory.

[0634] The first type of interface style scheme also includes interface style schemes that are embedded in the device's basic operating environment through firmware upgrades.

[0635] The interface data corresponding to each interface style scheme is stored in the local memory of the smart wall switch (such as the FLASH of the screen driver chip) in the form of independent configuration files or resource packages. Each interface style scheme is independent of each other and can be loaded separately.

[0636] As can be seen, the interface style scheme can be understood as a set of loadable and switchable configuration data that defines the visual presentation effect of the user interface on the smart wall switch display screen. This scheme covers all the technical elements of the "theme" or "skin" perceived by the user.

[0637] In this embodiment of the disclosure, the first type of interface style scheme based on a static data source can be understood as follows: the interface data of the first type of interface style scheme has the following characteristics during the normal operating cycle of the smart wall switch:

[0638] Independence: The interface data of this first type of interface style scheme does not exchange data with external devices during normal operation of the device, that is, it does not need to be downloaded from the cloud or obtained from the terminal device.

[0639] Direct availability: The interface data of this first type of interface style scheme is always available locally and can be directly called when switching without waiting for external data transmission.

[0640] In other words, the interface data of this first type of interface style scheme is pre-installed in the local memory when the smart wall switch leaves the factory, or is solidified in the basic operating environment of the device through system-level maintenance operations such as firmware upgrades.

[0641] For example, the first type of interface style scheme includes:

[0642] The default interface style schemes, such as classic style and minimalist style, are preset when the smart wall switch is shipped from the factory;

[0643] Themes added and fixed through firmware upgrades, such as limited-edition holiday themes;

[0644] A day / night mode theme that automatically switches based on local time or simple rules.

[0645] It is worth noting that since the interface data of the first type of interface style scheme is fixed locally, no external interaction is required when switching, so it has an extremely fast response speed and can provide users with an instant feedback experience.

[0646] In this embodiment of the disclosure, the second type of interface style scheme based on an updatable data source can be understood as follows: the interface data of the second type of interface style scheme has the following characteristics:

[0647] Dynamic acquisition: The interface data for this second type of interface style scheme needs to be dynamically acquired from the cloud server based on the user's selection or other external requirements;

[0648] Updability: The interface data of this second type of interface style scheme can be stored locally after being acquired and can be updated or replaced in the future;

[0649] In other words, the interface data of this second type of interface style scheme can only be invoked after it has been dynamically acquired and stored locally; before it has been acquired, the device cannot invoke this type of scheme locally.

[0650] For example, the second type of interface style scheme includes:

[0651] Users can download various themes from the cloud-based theme store, such as natural scenery, artwork, and holiday themes.

[0652] Dynamic themes that interact with external data, such as weather themes that change based on real-time weather information;

[0653] Personalized themes are customized and generated by users through their terminal devices.

[0654] It's worth noting that because the interface data for the second type of interface style scheme needs to be retrieved from the cloud, it requires a data download process upon first application. However, once the data is stored locally, subsequent switching can also be completed quickly. This mechanism ensures both the richness and scalability of the styles, while avoiding reliance on network transmission for each switch through local storage.

[0655] Furthermore, the amount of data in the interface data of the first type of interface style scheme is greater than the amount of data in the interface data of the second type of interface style scheme.

[0656] For example, the interface data of the first type of interface style scheme includes at least one of high-resolution image resources, multi-frame animation resources, and multiple font resources, while the interface data of the second type of interface style scheme includes at least one of lightweight configuration files, vector graphics descriptions, and color parameter sets.

[0657] Furthermore, the amount of data in the interface data of the first type of interface style scheme is at least twice the amount of data in the interface data of the second type of interface style scheme.

[0658] For example, the data size of the interface data in the first type of interface style scheme is greater than 1MB (e.g., 1MB~10MB), and the data size of the interface data in the second type of interface style scheme is less than 500KB (e.g., 200KB~300KB).

[0659] In this embodiment of the disclosure, when the target scheme is a first type of interface style scheme, the interface data called is static data that can be directly used locally by the smart wall switch; when the target scheme is a second type of interface style scheme, the interface data called is dynamic data that has been pre-acquired and stored locally by the smart wall switch according to external requirements.

[0660] As can be seen, for the second type of interface style scheme, the interface data is not acquired temporarily upon receiving the interface style configuration instruction, but rather "acquired in advance" and stored locally. Here, "acquired in advance" means that before the interface style configuration instruction arrives, the interface data of the target scheme has already been transmitted and saved to the local memory of the smart wall switch in some way.

[0661] The interface data corresponding to the first type of interface style scheme and the interface data corresponding to the second type of interface style scheme are each stored in the local memory of the smart wall switch (such as the FLASH of the screen driver chip) in the form of independent configuration files or resource packages. They are independent of each other and can be loaded separately. During the dynamic update of the interface data of the second type of interface style scheme, the interface data of the first type of interface style scheme will not be affected.

[0662] Understandably, with the rapid development of smart home technology, smart wall switches with screens are gradually becoming an important interactive entry point for home intelligent control. To meet users' personalized aesthetic needs, these devices typically support switching between multiple interface display styles, such as different color schemes, icon shapes, and control layouts. Current technologies often employ a single technical path to handle all style switching needs, failing to balance switching response speed and style richness, resulting in a poor user experience.

[0663] Based on this, the present disclosure provides a control method for a smart wall switch. The solution provided by the present disclosure achieves a balance between response speed and expansion flexibility in interface style management by pre-setting a first type of interface style scheme based on a static data source and a second type of interface style scheme based on an updatable data source in the same smart wall switch.

[0664] It is worth noting that the first type of interface style scheme, because its data is fixed locally and does not interact with the outside, can ensure a smooth experience of instant switching of basic and commonly used styles; the second type of interface style scheme, through the "pre-acquisition and local storage" mechanism, maintains the response speed of subsequent switching while supporting the dynamic expansion and updating of the style library. This not only meets the personalized needs of users, but also optimizes the utilization of storage resources and reduces network dependence, thereby significantly improving the overall user experience of smart wall switches.

[0665] In some embodiments, receiving the interface style configuration instruction includes: the smart wall switch receiving the interface style configuration instruction in response to a user's local operation; or, the user generates the interface style configuration instruction through a selection operation triggered by a terminal device, and after being forwarded via a cloud server and a relay device, the smart wall switch receives the interface style configuration instruction.

[0666] In this embodiment of the disclosure, the interface style configuration instruction carries at least the identification information of the target interface style scheme, such as the ID of the target interface style scheme. This identification information is used to uniquely determine the interface style scheme to be loaded so that the smart wall switch can accurately call the corresponding interface data from the local memory.

[0667] Specifically, in this embodiment, the interface style configuration instruction for the smart wall switch can originate from two different trigger paths: The first path is that the user operates directly on the smart wall switch, for example, by selecting a target interface style scheme through buttons or a touch screen on the device. In this case, the interface style configuration instruction is generated and processed by the smart wall switch itself. The second path is that the user selects a target interface style scheme through an application on a terminal device such as a mobile phone or tablet. This selection operation triggers the terminal device to generate an interface style configuration instruction, which is then forwarded through a cloud server and a relay device before being received and executed by the smart wall switch. This two-path design allows users to perform quick operations independently locally or control the switching of interface styles through a terminal device. For example, when the interface style configuration instruction is forwarded through a cloud server and a relay device, the relay device is a gateway device. The interface style configuration instruction is sent from the terminal device to the cloud server, then distributed by the cloud server to the gateway device, and finally wirelessly transmitted by the gateway device to the smart wall switch.

[0668] As can be seen, by distinguishing between local and remote operation command sources, the technical solution of the present invention can adapt to the needs of different usage scenarios and provide users with diverse interaction methods.

[0669] Furthermore, the local operation includes button operation and / or screen touch operation.

[0670] Specifically, button operations can include users pressing mechanical buttons or touch buttons on the smart wall switch. For example, users can enter the settings menu by short-pressing or long-pressing the physical button, and then switch between different interface style schemes by pressing multiple times. Touchscreen operations refer to users directly interacting with the smart wall switch's touchscreen display by tapping, swiping, and long-pressing. For example, users can enter the theme switching interface by clicking the "Settings" icon on the screen, then swipe to browse different style schemes and click to select the desired scheme. Touchscreen operations are more intuitive and convenient, consistent with the interaction habits of smartphones and other terminal devices, reducing the learning curve for users.

[0671] As can be seen, by supporting multiple local operation methods, the smart wall switch of the present invention can adapt to the interaction preferences of different users and provide a flexible and intuitive operating experience.

[0672] Furthermore, in response to the user's local operation, the interface style configuration instruction is received; specifically, in response to the user's preview trigger operation, the smart wall switch displays at least one preview effect of an interface style scheme that can be switched locally on the display screen of the smart wall switch; wherein, the interface style scheme that can be switched locally includes all or part of the first type of interface style scheme, and the second type of interface style scheme that has been dynamically acquired and stored locally through an external device.

[0673] The external devices here can be understood as the user's terminal devices (such as mobile phones), gateways, and / or cloud servers. Taking the external device as a terminal device as an example, the terminal device transmits the interface data packets of the dynamically acquired second type of interface style scheme to the smart wall switch through a point-to-point communication connection and stores them locally.

[0674] Furthermore, the smart wall switch obtains interface style configuration instructions based on the user's action of selecting a target interface style scheme from the previewed interface style schemes.

[0675] Specifically, the smart wall switch supports previewing all available interface style schemes on the screen, allowing users to intuitively understand the visual effects of each scheme before switching. The preview trigger operation includes at least one of button operation, screen tap operation, and swipe operation. For example, users can enter preview mode by pressing the physical "preview" button on the smart wall switch or by swiping down on the screen. The preview effect includes at least one of the background image, visual style of basic interactive controls, color scheme, and icon shape under the target interface style scheme. For example, the preview interface can display the color and shape of the switch button, the style of the brightness slider, background patterns, etc., giving users an intuitive feel for the overall style of the scheme.

[0676] In one example, the locally switchable interface style scheme includes all of the first type of interface style schemes and the second type of interface style schemes that have been dynamically acquired and stored locally via an external device. Specifically, the interface style scheme is implemented as the screen display theme of the smart wall switch, such as... Figure 30 As shown, users can access the settings interface by swiping down on the screen. Clicking the "Theme Switching" control in the settings interface will take them to the theme switching screen. After selecting a target theme (e.g., ...), ... Figure 30 In the example, the user selects the target theme name "Kapibala". Clicking the "Confirm Switch" control sends an interface style configuration instruction to the smart wall switch, which instructs the current theme to be switched to "Kapibala". The smart wall switch then retrieves the corresponding interface data and applies the "Kapibala" theme to the screen, completing the switch. Throughout the process, the user can see a real-time preview of each option, ensuring that the final selected option matches their personal aesthetic preferences.

[0677] As can be seen, the local preview function allows users to fully understand the visual effects of each interface style scheme before switching, avoiding unsatisfactory experiences caused by blindly switching, and improving the certainty of interaction and user satisfaction.

[0678] Furthermore, the user generates an interface style configuration instruction through a remote selection operation triggered by the terminal device. After being forwarded by the cloud server and relay device, the smart wall switch receives the interface style configuration instruction. This includes: when the target interface style scheme selected by the user through the application interface of the terminal device has been stored in the local memory of the smart wall switch, receiving the interface style configuration instruction sent by the terminal device and forwarded by the cloud server and relay device.

[0679] Furthermore, when the target interface style scheme selected by the user through the application interface of the terminal device is not stored in the local memory of the smart wall switch, a dynamic data packet from the terminal device has been pre-received and stored via a point-to-point communication connection before receiving the interface style configuration instruction. Specifically, the dynamic data packet is a dynamic data packet corresponding to the target interface style scheme selected by the user, which is obtained by the terminal device from the cloud server in response to the user's selection operation of the target interface style scheme through the terminal device. Here, the dynamic data packet refers to a resource package obtained from the cloud server that contains complete visual presentation data of the second type of interface style scheme. Its data volume is usually large and contains rich elements such as images and animations.

[0680] The interface style configuration instruction is sent by the terminal device after completing the dynamic data packet transmission, and is forwarded to the smart wall switch via the cloud server and relay device.

[0681] In this embodiment, the smart wall switch receives the interface style configuration instruction. The interface style configuration instruction is sent by the terminal device via a cloud server and a relay device, carrying an identifier of the target interface style scheme, after the terminal device responds to the user's operation of selecting a target interface style scheme in a specific application interface, and determines that the selected target interface style scheme is stored in the smart wall switch; or, the interface style configuration instruction is sent by the terminal device via a cloud server and a relay device, carrying an identifier of the target interface style scheme, after the terminal device responds to the user's operation of selecting a target interface style scheme in a specific application interface, and determines that the selected target interface style scheme is not stored in the smart wall switch, first obtaining the data corresponding to the target interface style scheme from the cloud server and sending it to the smart wall switch via a point-to-point communication connection; wherein, the point-to-point communication connection is actively established by the terminal device with the smart wall switch after the user enters the specific application interface.

[0682] As can be seen, through this "transmit data first, then send instructions" mechanism, although the second type of interface style scheme requires a data download process during its initial application, once the data is stored locally, subsequent switching can be completed quickly. This mechanism ensures both the richness and scalability of styles while avoiding reliance on network transmission for every switch, significantly improving the user experience.

[0683] It is worth mentioning that in this embodiment, once the user enters a specific application interface, a point-to-point communication connection between the smart wall switch and the terminal device is established. If the point-to-point communication connection is not successfully established, neither the first nor the second type of interface style scheme is supported; the application interface only allows the user to preview each interface style scheme. Subsequently, when the target interface style scheme selected by the user through the terminal device's application interface is already stored in the smart wall switch's local memory, the corresponding interface style configuration command is still sent by the terminal device and forwarded to the smart wall switch via the cloud server and relay device, and is not sent through the point-to-point communication connection. When the target interface style scheme selected by the user through the terminal device's application interface is not stored in the smart wall switch's local memory, the terminal device will first send the interface data corresponding to the target interface style scheme to the smart wall switch through the point-to-point communication connection, and then send the interface style configuration command. In this case, the interface style configuration command is still not sent through the point-to-point communication connection, but is sent by the terminal device and forwarded to the smart wall switch via the cloud server and relay device. As can be seen, point-to-point communication connections are specifically designed for transmitting large amounts of dynamic data packets, while interface style configuration commands are always transmitted via the cloud and relay paths. This division of labor optimizes bidirectional transmission efficiency: on the one hand, dynamic data packets are transmitted quickly through direct channels, avoiding the delays caused by multi-level forwarding via the cloud and relays; on the other hand, after the interface style configuration commands are transmitted via the cloud and relay paths, the smart wall switch completing the switching means that the cloud has recorded this switching operation, eliminating the need for additional status synchronization, thus simplifying the interaction process and further improving overall efficiency.

[0684] For example, the point-to-point communication connection includes Bluetooth Direct.

[0685] In a further example, the interface style scheme is specifically implemented as the screen display theme of the smart wall switch. In the interaction between the smart wall switch (which acts as a relay device in conjunction with a cloud server) and the mobile phone (terminal device), the generation and transmission process of the interface style configuration instructions can be, for example:

[0686] like Figure 31As shown, users access the "Screen Display Settings" interface through the "Screen Display Settings" item in the mobile application. This interface provides a "Current Theme" option, which leads to the "Theme Plaza" interface. This interface allows users to preview all themes (i.e., users can preview all interface style schemes on their terminal device, including all first-type and all second-type interface style schemes). When a user browses and selects a theme called "Shiba Inu Philosophy," the mobile application detects that this theme has not yet been downloaded to the smart wall switch. Therefore, it first transmits the data packet corresponding to the "Shiba Inu Philosophy" theme to the smart wall switch via an established Bluetooth direct connection and stores it. After the transmission is complete, the mobile application sends an interface style configuration command carrying the "Shiba Inu Philosophy" identifier to the cloud server. This command is then sent from the cloud server to the Bluetooth gateway, which forwards it to the smart wall switch via Bluetooth broadcast or directed connection. Upon receiving the interface style configuration command, the smart wall switch retrieves the stored "Shiba Inu Philosophy" data packet from its local storage, loads and displays the theme, resulting in the final display effect as shown. Figure 32 As shown.

[0687] In some embodiments, when the interface style configuration instructions are forwarded via a cloud server and a relay device, the relay device is a gateway device.

[0688] After applying the target interface style scheme, the control method further includes: if the interface style configuration instruction is triggered by a user's local operation on the smart wall switch, the smart wall switch reports the identifier of the currently applied target interface style scheme to the gateway device for synchronization to the cloud server, so that the user can view the currently applied interface style scheme of the smart wall switch from the cloud server through the terminal device.

[0689] Specifically, when a user directly switches the interface style scheme on the smart wall switch locally, the cloud server cannot know the current scheme status of the smart wall switch because this operation does not go through the cloud path. To solve this problem, after completing the local switch, the smart wall switch proactively reports the identifier information of the target interface style scheme of the current application to the gateway device. The gateway device synchronizes this information to the cloud server, and the cloud server updates the corresponding current scheme record of the smart wall switch in its database. In this way, when the user subsequently checks the status of the smart wall switch through the application on the terminal device, the application can obtain the latest applied interface style scheme information of the smart wall switch from the cloud server, ensuring that the remote display is consistent with the actual status of the smart wall switch.

[0690] For example, when a user switches from "Kapibala" to "Shiba Inu Philosophy" on the smart wall switch, the smart wall switch immediately reports the "Shiba Inu Philosophy" scheme ID to the Bluetooth gateway via Bluetooth after the switch is completed. The Bluetooth gateway then uploads the information to the cloud server, which updates the record. Subsequently, the user opens the mobile application to view the device details. The application retrieves the current scheme as "Shiba Inu Philosophy" from the cloud and displays it correctly on the interface.

[0691] As can be seen, by using the post-application reporting mechanism, the technical solution of this invention achieves real-time synchronization between local operation and cloud status, ensuring that users can accurately know the real status of the device at the remote end, thus improving consistency and reliability.

[0692] In some embodiments, the FLASH memory of the driver chip of the smart wall switch has 15-20MB of storage space for storing interface data, with more than half of the space used to store interface data for the first type of interface style scheme. Specifically, five first type interface style schemes are stored locally, each with interface data size of 1-3MB. Only one second type interface style scheme is stored locally. The interface data (200k-300k) in the storage location of the second type interface style scheme changes dynamically according to user selection. When the user selects a new second type interface style scheme, the interface data of the second type interface style scheme originally stored in the smart wall switch will be replaced.

[0693] In some embodiments, the control method further includes: the smart wall switch receiving wallpaper data from a terminal device via a point-to-point communication connection, wherein the wallpaper data is the homepage wallpaper and / or screensaver wallpaper corresponding to the target interface style scheme customized by the user through the application of the terminal device on a specific page.

[0694] The wallpaper data is configured on the terminal device side to clear the wallpaper data set when the user exits the specific page, in order to protect user privacy.

[0695] Specifically, in this embodiment of the disclosure, users are also allowed to customize wallpapers through terminal devices and apply the customized wallpapers to the homepage wallpaper and / or screensaver wallpaper of the current interface style scheme. The homepage wallpaper includes the display image of the background area in the target interface style scheme, and the screensaver wallpaper includes the image displayed when the smart wall switch enters the screensaver state. The two can be set separately.

[0696] For example, such as Figure 33As shown, users can access a specific custom wallpaper settings page through an application (App) installed on their terminal device (such as a smartphone). On this page, users can select images from their local photo album or take photos as wallpaper content. After the user confirms the selection, the terminal device sends the selected wallpaper data to the smart wall switch via a pre-established point-to-point communication connection (such as Bluetooth Direct). After receiving the wallpaper data, the smart wall switch stores it locally and applies the wallpaper data to the corresponding area of ​​the current interface style scheme (target interface style scheme).

[0697] It is worth noting that when a user exits the specific page, regardless of whether the wallpaper data has been successfully transmitted to the smart wall switch, the terminal device's application will proactively clear all wallpaper data generated during the setup process (such as temporarily cached image files, image data in memory, etc.). This mechanism of clearing data upon user exit effectively protects user privacy and security.

[0698] It's worth noting that wallpaper data successfully transferred to the smart wall switch will remain locally on the switch for continued use. Users can change or remove the wallpaper by re-entering the custom wallpaper settings page.

[0699] In addition, users can preview the selected wallpaper on a specific page, which will display a simulation of the wallpaper being applied to the smart wall switch (e.g., ...). Figure 34 (As shown), for user reference.

[0700] like Figure 35 As shown, one embodiment of this disclosure also provides a smart wall switch corresponding to the above-described control method. The smart wall switch is capable of communicating with a terminal device, is installed in a power line and can be used to control high-voltage loads, and has at least one screen. The smart wall switch includes a second communication module, a second strategy configuration module, and a second detection module.

[0701] The second communication module is used to receive a policy configuration instruction; the policy configuration instruction is determined based on the user's selection of the activation status of the first detection signal or the second detection signal received by the terminal device, and is used to indicate the activation status of the first detection signal and the second detection signal.

[0702] The second strategy configuration module is used to configure a detection strategy according to the activation status of the first detection signal and the second detection signal indicated by the strategy configuration instruction.

[0703] The second detection module is used to detect whether there is a human body near the smart wall switch according to the configured detection strategy.

[0704] The different activation states of the first detection signal and the second detection signal correspond to different detection strategies. The detection strategy defines the composition of the detection signal emitted when the screen is in a predetermined state, and the control logic executed on the screen display interface when the received feedback signal indicates the presence of a user. The detection signal is used to detect the human body.

[0705] In some embodiments, the second strategy configuration module configures the detection strategy according to the enabling status of the first detection signal and the second detection signal indicated by the strategy configuration instruction. Specifically, it is configured as a first detection strategy when the strategy configuration instruction indicates that both the first detection signal and the second detection signal are enabled; as a second detection strategy when the strategy configuration instruction indicates that the first detection signal is disabled and the second detection signal is enabled; or as a third detection strategy when the strategy configuration instruction indicates that the first detection signal is enabled and the second detection signal is disabled.

[0706] In some embodiments, the second detection module performs detection of whether a human body exists near the smart wall switch according to the configured detection strategy. Specifically, if the detection strategy is configured as the second detection strategy, then when the screen is in a predetermined state, only the second detection signal is emitted, and the user's proximity distance and the display state of the screen are determined based on whether a second feedback signal corresponding to the second detection signal is received; or, if the detection strategy is configured as the third detection strategy, then when the screen is in a predetermined state, the first detection signal is emitted, and after receiving a first feedback signal corresponding to the first detection signal, the second detection signal is not emitted, and the display state of the screen is directly controlled based on the first feedback signal.

[0707] In some embodiments, the second detection module performs detection of whether a human body exists near the smart wall switch according to the configured detection strategy. Specifically, if the detection strategy is configured as a first detection strategy, then: in a predetermined state of the screen, a detection signal is emitted according to the predetermined first detection strategy; under the first detection strategy, the detection signal includes at least a first detection signal; wherein, the first detection strategy further includes conditionally emitting a second detection signal; the second detection signal and the first detection signal have different characteristic parameters, and the different characteristic parameters make the detection distance of the first detection signal greater than the detection distance of the second detection signal; determining the proximity distance state between the user and the smart wall switch based on whether the received feedback signal includes a first feedback signal corresponding to the first detection signal and / or a second feedback signal corresponding to the second detection signal; if it is determined that a user exists, controlling the screen to switch to the user interface corresponding to the proximity distance state according to the determined proximity distance state; wherein, the user interface corresponding to the proximity distance state is determined according to the user interface configuration instruction; the user interface configuration instruction is determined by the terminal device in response to the user's operation of selecting target interface content from multiple selectable interface content.

[0708] In some embodiments, the second detection module determines the proximity distance between the user and the smart wall switch, specifically for: if a first feedback signal is received but a second feedback signal is not received, then it is determined to be a first-level distance state; the first-level distance state corresponds to the user being within the detection range of the first detection signal and outside the detection range of the second detection signal; if a second feedback signal is received, then it is determined to be a second-level distance state; the second-level distance state corresponds to the user being within the detection range of the second detection signal.

[0709] In some embodiments, the second detection module controls the screen to switch to the user interface corresponding to the determined proximity distance state, specifically: if the proximity distance state is determined to be a first-level distance state, the screen is controlled to display a first-level display interface; if the proximity distance state is determined to be a second-level distance state, the screen is controlled to display a second-level display interface; wherein the first-level display interface and / or the second-level display interface are determined according to a user interface configuration instruction; the user interface configuration instruction is determined by the terminal device in response to the user's operation of selecting target interface content from multiple selectable interface contents.

[0710] In some embodiments, the detection signal is an infrared signal, and the first detection signal and the second detection signal are distinguished by different modulation codes; the second detection module is further configured to: when emitting an infrared signal, set a variable time interval between continuously emitted infrared signals, wherein the variable time interval varies in a non-fixed manner.

[0711] In some embodiments, the second communication module is further configured to: receive a first distance configuration instruction, the first distance configuration instruction carrying a first distance value selected by the user through the terminal device; set the detection range of the first detection signal according to the first distance configuration instruction; and / or receive a second distance configuration instruction, the second distance configuration instruction carrying a second distance value selected by the user through the terminal device; and set the detection range of the second detection signal according to the second distance configuration instruction.

[0712] In some embodiments, the first distance value is greater than the second distance value, and the difference between the first distance value and the second distance value is at least 5 centimeters.

[0713] In some embodiments, the second communication module is further configured to: receive a distance setting enable command from a terminal device; respond to the distance setting enable command by controlling the gradual adjustment of the transmission parameters of the detection signal to transmit the detection signal in a manner that increases the detection distance sequentially; monitor whether a valid feedback signal corresponding to the transmitted detection signal is received after each transmission; when the valid feedback signal is received, determine the corresponding distance value based on the current transmission parameters; and transmit the distance value outward so that the terminal device obtains the distance value for the user to refer to when setting the detection range of the first detection signal or the detection range of the second detection signal.

[0714] In some embodiments, the detection signal is an infrared detection signal; the stepwise adjustment of the transmission parameters of the detection signal to transmit the detection signal in a manner that gradually increases the detection distance is specifically used to: control the infrared transmission current to gradually increase from an initial value to gradually increase the transmission power of the infrared detection signal, thereby gradually increasing the effective detection distance of the infrared detection signal; the step of determining the corresponding test distance value according to the current transmission parameters includes: determining the distance value corresponding to the current value based on the current infrared transmission current value.

[0715] like Figure 36 As shown, one embodiment of this disclosure also provides a smart wall switch. Figure 36 A block diagram of a smart wall switch according to an embodiment of this disclosure is provided. As can be seen, the smart wall switch includes at least a button, a screen, an on / off module, and a processor.

[0716] The buttons are used to receive control input. Users can operate the buttons by pressing, touching, or other means. Types of control include, but are not limited to, short presses, long presses, double-clicks, and swipes (for touch buttons). Different control types can trigger different functional responses; for example, a short press controls load on / off, while a long press enters network distribution mode.

[0717] The screen is used to display button identification information; the button identification information is used to indicate the button. The button identification information can be text, an icon, or a combination of both, used to tell the user what function the current button corresponds to. For example, displaying the text "Living Room Light" or a light bulb icon next to the button allows the user to immediately understand that the button controls the living room light.

[0718] The switching module is used to connect to a power line and can be controlled to be switched on or off to control the on / off state of the high-voltage load in the power line. The switching module is a component inside the smart wall switch responsible for actually switching on or off the high-voltage line. Exemplarily, the switching module includes at least one of a relay, a silicon controlled rectifier (SCR), or a solid-state relay.

[0719] Taking a relay as an example: A relay has a coil and contacts. When the coil is energized, the contacts close, and the circuit is connected; when the coil is de-energized, the contacts release, and the circuit is disconnected. Smart wall switches are usually connected in series with the live wire. The two ends of the relay contacts are connected to the incoming and outgoing wires, respectively. When the user presses the button, the processor controls the relay coil to be energized or de-energized, thereby realizing the switching control of high-voltage loads such as lights and fans.

[0720] The processor is electrically connected to the screen, the on / off module, and the button, and is configured to control the on / off module to be turned on or off when the button is operated.

[0721] In some embodiments, the processor can directly drive the screen. In this approach, the processor's GPIO pins or a dedicated LCD interface are directly connected to the screen's driver pins, sending display data via software simulation or hardware SPI / I2C timing. For example, when using an OLED screen, which typically has a built-in driver chip (such as the SSD1306), the processor can control the screen's display content by sending commands and display data to this driver chip via the I2C or SPI bus. This method is simple in circuitry and low in cost.

[0722] In some embodiments, the processor can drive the screen using a dedicated screen driver chip. For example, when the screen is an LCD screen, the screen driver chip (such as an LCD controller) can independently handle the video memory management and refresh tasks, separate from the processor. The processor only needs to send the content to be displayed to the screen driver chip through a parallel interface or SPI, and the screen driver chip automatically processes the timing and drives the screen display.

[0723] In some embodiments, the processor is further configured to: receive a location configuration instruction; the location configuration instruction is generated by the terminal device in response to the selection of one of a plurality of preset display positions, based on the selected preset display position; and in response to the location configuration instruction, adjust the display position of the button identification information on the screen so that it is located at the preset display position.

[0724] Understandably, small screens (e.g., screens smaller than 3 inches) are suitable for wall-mounted devices requiring a compact design, such as smart wall switches. In this case, button labels will occupy most of the screen, directly impacting the visual experience. If the button labels are always displayed to the left while the switch is on the user's right, it might feel awkward; conversely, the opposite is also true. Therefore, allowing users to adjust the display position accommodates different installation locations and usage habits, improving the user experience.

[0725] For example, the preset display position includes at least one of a left-side display position, a center-side display position, or a right-side display position. The screen uses a 0.96-inch OLED screen, such as... Figure 37 As shown, the mobile app offers two options: "Left Alignment" and "Center Alignment". When the user selects "Left Alignment", the button names and icons are aligned to the left; when the user selects "Center Alignment", all content is displayed in the center of the screen.

[0726] In some embodiments, the button identification information includes a button icon and / or a button name. The button icon is a small image or symbol, such as a light bulb, fan, or socket; the button name is text, such as "living room light" or "bedroom light." In some solutions, users can choose to display only the button icon, only the button name, or both, according to their preferences and usage habits.

[0727] Furthermore, the processor is also con...

Claims

1. A control method applied to a smart wall switch, characterized in that, The control method includes at least the following steps: Human body detection is performed under the predetermined state of the screen; Based on the detection results, the control screen switches to the corresponding user interface.

2. The intelligent wall switch of claim 1, wherein, The smart wall switch is capable of communicating with a terminal device, is installed in a power line and can be used to control high-voltage loads, and has at least one screen; the method further includes: Receive policy configuration instructions; the policy configuration instructions are determined based on the user's selection of the activation status of the first detection signal or the second detection signal received by the terminal device, and are used to indicate the activation status of the first detection signal and the second detection signal; Configure a detection strategy according to the activation status of the first detection signal and the second detection signal as indicated by the strategy configuration instruction; According to the configured detection strategy, the system will detect whether there is a human body near the smart wall switch. The different activation states of the first detection signal and the second detection signal correspond to different detection strategies. The detection strategy defines the composition of the detection signal emitted when the screen is in a predetermined state, and the control logic executed on the screen display interface when the received feedback signal indicates the presence of a user. The detection signal is used to detect the human body.

3. The control method according to claim 1, characterized in that, The step of configuring the detection strategy according to the activation status of the first detection signal and the second detection signal indicated by the strategy configuration instruction includes: When the strategy configuration instruction indicates that both the first detection signal and the second detection signal are enabled, the detection strategy is configured as the first detection strategy; When the policy configuration instruction indicates that the first detection signal is disabled and the second detection signal is enabled, the detection policy is configured as the second detection policy; or... When the policy configuration instruction indicates that the first detection signal is enabled and the second detection signal is disabled, the detection policy is configured as a third detection policy.

4. The control method according to claim 3, characterized in that, According to the configured detection strategy, the system performs detection to determine whether a human body is present near the smart wall switch, including: If the detection strategy is configured as the second detection strategy, then when the screen is in a predetermined state, only the second detection signal is emitted, and the user's proximity status and the display status of the screen are determined based on whether a second feedback signal corresponding to the second detection signal is received; or, If the detection strategy is configured as a third detection strategy, then when the screen is in a predetermined state, the first detection signal is emitted, and after receiving the first feedback signal corresponding to the first detection signal, the second detection signal is not emitted, and the display state of the screen is directly controlled according to the first feedback signal.

5. The control method according to claim 3, characterized in that, According to the configured detection strategy, the system performs detection to determine whether a human body is present near the smart wall switch, including: If the detection strategy is configured as the first detection strategy, then: In a predetermined state of the screen, a detection signal is emitted according to a predetermined first detection strategy; under the first detection strategy, the detection signal includes at least a first detection signal; wherein, the first detection strategy further includes conditionally emitting a second detection signal; the second detection signal has different characteristic parameters from the first detection signal, and the different characteristic parameters cause the detection distance of the first detection signal to be greater than the detection distance of the second detection signal; The proximity status between the user and the smart wall switch is determined based on whether the received feedback signal contains a first feedback signal corresponding to the first detection signal and / or a second feedback signal corresponding to the second detection signal. When a user is confirmed to be present, the screen is controlled to switch to the user interface corresponding to the determined proximity distance state; wherein, the user interface corresponding to the proximity distance state is determined according to the user interface configuration instruction; the user interface configuration instruction is determined by the terminal device in response to the user's operation of selecting target interface content from multiple selectable interface content.

6. The control method according to claim 5, characterized in that, Determining the proximity status between the user and the smart wall switch specifically includes: If a first feedback signal is received but a second feedback signal is not received, the system is determined to be in a first-level distance state; the first-level distance state corresponds to the user being within the detection range of the first detection signal but outside the detection range of the second detection signal. If a second feedback signal is received, it is determined to be a level 2 distance state; the level 2 distance state corresponds to the user being within the detection range of the second detection signal.

7. The control method according to claim 6, characterized in that, Based on the determined proximity distance state, controlling the screen to switch to the user interface corresponding to that proximity distance state includes: If the distance is determined to be at level one, then control the screen to display the level one display interface; If the distance is determined to be at level two, then control the screen to display the level two display interface; The primary display interface and / or the secondary display interface are determined according to user interface configuration instructions; the user interface configuration instructions are determined by the terminal device in response to the user's operation of selecting target interface content from multiple selectable interface contents.

8. The control method according to claim 5, characterized in that, The detection signal is an infrared signal, and the first detection signal and the second detection signal are distinguished by different modulation codes; The control method further includes: When emitting infrared signals, a variable time interval is set between consecutively emitted infrared signals, and the variable time interval varies in a non-fixed manner.

9. The control method according to any one of claims 1 to 8, characterized in that, The control method further includes: Receive a first distance configuration instruction, the first distance configuration instruction carrying a first distance value selected by the user through the terminal device; set the detection range of the first detection signal according to the first distance configuration instruction; and / or, Receive a second distance configuration instruction, the second distance configuration instruction carrying a second distance value selected by the user through the terminal device; set the detection range of the second detection signal according to the second distance configuration instruction.

10. The control method according to claim 9, characterized in that, The first distance value is greater than the second distance value, and the difference between the first distance value and the second distance value is at least 5 centimeters.

11. The control method according to claim 9, characterized in that, The control method further includes: Receive a distance setting activation command from the terminal device; In response to the distance setting activation command, the transmission parameters of the detection signal are gradually adjusted to transmit the detection signal in a manner that increases the detection distance step by step; After each transmission, monitor whether a valid feedback signal corresponding to the transmitted detection signal is received; When the valid feedback signal is received, the corresponding distance value is determined based on the current transmission parameters; The distance value is sent outward so that the terminal device can obtain the distance value for the user to refer to when setting the detection range of the first detection signal or the detection range of the second detection signal.

12. The control method according to claim 11, characterized in that, The detection signal is an infrared detection signal; the step-by-step adjustment of the transmission parameters of the detection signal to gradually increase the detection distance includes: The infrared emission current is controlled to increase gradually from the initial value to gradually increase the emission power of the infrared detection signal, thereby gradually increasing the effective detection range of the infrared detection signal. The step of determining the corresponding test distance value based on the current emission parameters includes: determining the distance value corresponding to the current infrared emission current value based on the current infrared emission current value.

13. A smart wall switch, characterized in that, include: The memory is used to store the interface data corresponding to the interface style scheme. A communication processing module for communicating with the mobile terminal; A screen is used for displaying information. A processor electrically connected to the memory, the communication processing module, and the screen, the processor being configured to perform the control method as described in any one of claims 1 to 12.