Intelligent wall switch

By directly driving the display screen and infrared detection device through the communication module and optimizing the circuit layout, the problems of large thickness of smart wall switch panels and complex driving circuits have been solved, realizing the thinning of the switch panel and improving the user operation experience.

CN224217223UActive Publication Date: 2026-05-08WUHAN LINPTECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
WUHAN LINPTECH
Filing Date
2023-12-26
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing smart wall switches with screens use dedicated driver chips to drive the screen, resulting in complex and cumbersome display driving circuits, and the smart wall switch panels are also quite thick.

Method used

The display screen is directly driven by a communication module. Combined with RAM memory and infrared detection device, the circuit layout is optimized, the space occupied by the circuit board is reduced, and the display screen and buttons are arranged side by side. A thin design is adopted.

Benefits of technology

The display driving circuit has been simplified, the thickness of the switch panel has been reduced, and the user experience and the space utilization efficiency of the circuit board have been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224217223U_ABST
    Figure CN224217223U_ABST
Patent Text Reader

Abstract

The utility model provides an intelligent wall switch. The intelligent wall switch comprises a bottom shell; the circuit carrier is arranged on the bottom shell; the display screen is arranged on the opening side of the bottom shell, so that when the intelligent wall switch is installed in a wall based on the bottom shell, the display screen can face outwards for operation; wherein the circuit carrier at least bears a communication module; the display screen is a color screen, pixels are set to be larger than or equal to 12000 pixels, and the communication module has a communication function and is suitable for being connected to a third-party platform; the communication module is directly and electrically connected with the display screen so as to directly drive the display screen, the communication module directly drives the touch function of the display screen, and the communication module is further externally connected with at least one RAM (Random Access Memory).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of switch technology, and in particular to an intelligent wall switch. Background Technology

[0002] With the development of smart homes, smart wall switches are gradually replacing traditional wall switches. As a triggering device for smart homes, smart wall switches play a crucial role in the entire system.

[0003] A wall switch, as the name suggests, is a switching device that can be embedded in a wall for use, such as a wall switch that fits into the commonly used 86-type junction box in China. Wall switches come in various forms, such as touch-sensitive wall switches and mechanical button wall switches. Utility Model Content

[0004] Due to the high cost of driving the screen, existing smart wall switches with screens primarily use dedicated driver chips, resulting in complex and cumbersome display driving circuits. Therefore, overcoming the shortcomings of this existing technology is a pressing issue in this field.

[0005] Specifically, according to a first aspect of the present invention, a smart wall switch is provided, comprising:

[0006] Bottom shell;

[0007] A circuit carrier, wherein the circuit carrier is disposed on the bottom shell;

[0008] The display screen is disposed on the opening side of the bottom shell so that when the smart wall switch is installed in the wall based on the bottom shell, the display screen can face outward for operation;

[0009] The circuit carrier mentioned above carries at least a communication module;

[0010] The display screen is a color screen with a pixel count of 12,000 or more. The communication module has communication functions and is suitable for accessing a third-party platform.

[0011] The communication module is directly electrically connected to the display screen to directly drive the display screen, and the communication module directly drives the touch function of the display screen. The communication module is further externally connected to at least one RAM memory.

[0012] According to an embodiment of this utility model, the size of the RAM memory is 2MB to 8MB.

[0013] According to an embodiment of the present invention, the pixel size of the display screen is set to be less than or equal to 240×320.

[0014] According to an embodiment of the present invention, the communication module includes a WIFI module; the WIFI module is electrically connected to the display screen via an SPI bus to drive the display screen, and is electrically connected to the display screen via an IIC bus to detect touch operations on the display screen.

[0015] According to an embodiment of the present invention, the communication module is provided with a buffer area; the buffer area is used to store data used to refresh the display screen;

[0016] The size of the buffer is a, and the data size required for the display screen to refresh completely once is b;

[0017] Then we have: b / 10 <a<b / 2。

[0018] According to an embodiment of this utility model, the smart wall switch further includes an infrared detection device for emitting detection waves to form a designated detection area, and includes multiple selectable drive circuits for driving the outward emission of the detection waves; wherein the drive resistance of each drive circuit is different, so that the range of the designated detection area corresponding to each drive circuit is different; the communication module can change the selected drive circuit to adjust the detection range; wherein the resistance difference between any two drive circuits is greater than 10Ω.

[0019] According to an embodiment of the present invention, the driving circuit includes a first driving circuit and a second driving circuit, wherein the resistance difference between the driving resistor of the first driving circuit and the driving resistor of the second driving circuit is greater than or equal to 50Ω.

[0020] According to an embodiment of this utility model, the infrared emitting unit has an infrared light-emitting tube, the infrared receiving unit has an infrared receiving head, and the smart wall switch covers the infrared light-emitting tube, the infrared receiving head, and the display screen through a transparent cover plate. The transparent cover plate has a first light-transmitting hole at the corresponding position of the infrared receiving unit and the infrared receiving head, and a black IR layer is sprayed at the corresponding position of the first light-transmitting hole, so that the transmittance of the detection wave corresponding to the infrared light through the first light-transmitting hole is greater than 70%, and the transmittance of natural light through the first light-transmitting hole is less than 30%.

[0021] According to an embodiment of the present invention, the driving resistance of the first driving circuit is set to be greater than or equal to 47Ω, and the driving resistance of the second driving circuit is set to be greater than or less than 100Ω.

[0022] According to an embodiment of the present invention, the bottom shell is provided with a first receiving groove; the smart wall switch further includes a supporting housing, which covers the bottom shell, and the supporting housing is provided with a second receiving groove at a position corresponding to the first receiving groove, the second receiving groove being at least partially received in the first receiving groove; the circuit carrier includes a first circuit board, which is disposed on the side of the supporting housing away from the bottom shell, the second receiving groove is open toward the first circuit board, and the first circuit board covers the second receiving groove; the first circuit board has a first surface facing the supporting housing, and a communication module disposed on the first surface is received in the second receiving groove.

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

[0024] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit the present invention. Attached Figure Description

[0025] To more clearly illustrate the technical solutions in the embodiments of this utility model or the prior art, the 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 utility model. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0026] Figure 1 This is a schematic diagram of the intelligent control system structure in one embodiment of the present invention;

[0027] Figure 2 This is a schematic diagram of the overall structure of an embodiment of the present utility model;

[0028] Figure 3 This is an exploded view of the overall structure of an embodiment of the present invention;

[0029] Figure 4 This is an assembly diagram of the panel housing, the supporting housing, and the bottom housing according to an embodiment of the present utility model;

[0030] Figure 5 This is a cross-sectional view of the panel housing and bottom housing after disassembly according to an embodiment of the present invention;

[0031] Figure 6This is a cross-sectional view of the overall structure of an embodiment of the present invention;

[0032] Figure 7 This is an assembly diagram of the panel housing, the supporting housing, and the first circuit board according to an embodiment of the present invention;

[0033] Figure 8 This is a schematic diagram of the assembly of the support housing and the first circuit board according to an embodiment of the present invention;

[0034] Figure 9 yes Figure 8 Enlarged view of section C in the image;

[0035] Figure 10 This is a top view of the first circuit board mounted on the supporting housing according to an embodiment of the present invention;

[0036] Figure 11 This is a cross-sectional view of the panel housing, buttons, first circuit board, and supporting housing according to an embodiment of the present utility model;

[0037] Figure 12 yes Figure 11 Enlarged view of part D in the image;

[0038] Figure 13 This is an assembly diagram of the panel housing, the supporting housing, and the first circuit board according to an embodiment of the present invention;

[0039] Figure 14 This is an exploded view of the panel housing, display screen, and transparent cover plate according to an embodiment of the present invention;

[0040] Figure 15 This is a schematic diagram of the structure of a transparent cover plate according to an embodiment of the present invention;

[0041] Figure 16 This is a cross-sectional view of the panel housing, the first circuit board, and the supporting housing in one embodiment of the present invention at the location of the infrared detection device;

[0042] Figure 17 This is a bottom view of the first circuit board according to an embodiment of the present invention;

[0043] Figure 18 This is a bottom view of the first circuit board according to an embodiment of the present invention;

[0044] Figure 19 This is an assembly diagram of the panel housing, buttons, and elastic support member according to an embodiment of the present invention;

[0045] Figure 20 yes Figure 11 Enlarged view of part E in the image;

[0046] Figure 21This is a partially enlarged cross-sectional view of the location of the first hook in an embodiment of this utility model;

[0047] Figure 22 This is a simplified structural diagram of the button, elastic support member, and panel housing according to an embodiment of the present invention;

[0048] Figure 23 This is an exploded view of the bottom shell, the second circuit board, and the isolation shell according to an embodiment of the present invention;

[0049] Figure 24 This is a block diagram of an embodiment of the present invention: a smart wall switch.

[0050] Figure 25 This is a schematic diagram illustrating the DIY interface of the smart wall switch when using a mobile phone as the terminal device according to an embodiment of the present invention.

[0051] Figure 26 According to the above, this is an embodiment of the present utility model. Figures 2-23 A schematic diagram of the interface display on the smart wall switch side, as described in the embodiment of the corresponding structural implementation method;

[0052] Figure 27 This is a schematic diagram illustrating the configuration of the function of the first button of the smart wall switch when a mobile phone is used as the terminal device according to an embodiment of the present invention;

[0053] Figure 28 This is a schematic diagram illustrating how a user enters a specific configuration interface after clicking a button with no configured function, according to an embodiment of this utility model.

[0054] Figure 29 In one embodiment of this utility model, user-defined interfaces are displayed in the screen layout interface diagram.

[0055] Figure 30 This is a schematic diagram of the switching sequence of each screen interface on the display screen of the smart wall switch side before the adjustment sequence according to an embodiment of the present invention.

[0056] Figure 31 This is a schematic diagram showing the switching order of the various screen interfaces on the display screen of the smart wall switch after the order is adjusted according to an embodiment of this utility model.

[0057] Figure 32 This is a schematic diagram illustrating the definition of a control interface for a third-party device according to an embodiment of this utility model;

[0058] Figure 33 This is a schematic diagram of the control interface of a wall switch according to an embodiment of the present invention;

[0059] Figure 34This is a schematic diagram of the configuration interface of the theme square by a user clicking the theme square option according to an embodiment of the present invention;

[0060] Figure 35 This is a schematic flowchart of a configuration method for an intelligent wall switch according to an embodiment of the present invention;

[0061] Figure 36 This is a schematic diagram showing the specific connection relationship between the WIFI module and the display screen according to an embodiment of this utility model;

[0062] Figure 37 This is a structural schematic diagram of an embodiment of the present invention: a smart wall switch;

[0063] Figure 38 This is an embodiment of the present invention. Figure 37 A schematic diagram of the structure based on the introduction of external memory;

[0064] Figure 39 This is a schematic diagram of the structure of an intelligent wall switch incorporating an infrared detection device according to an embodiment of the present invention;

[0065] Figure 40 This is a detailed schematic diagram of an infrared detection device according to an embodiment of the present invention;

[0066] Figure 41 This is a schematic diagram of the detection distance configuration of an intelligent wall switch according to an embodiment of the present invention;

[0067] Figure 42 This is an embodiment of the present utility model. Figure 40 Further detailed schematic diagram;

[0068] Figure 43 This is a schematic diagram of the specific circuit of an infrared detection device according to an embodiment of the present invention;

[0069] Figure 44 This is a schematic diagram of the overall circuit block of an embodiment of the present invention: a smart wall switch.

[0070] Figure 45 This is a schematic diagram of the specific circuit of a photosensitive sensor according to an embodiment of the present invention. Detailed Implementation

[0071] The embodiments of this utility model will now be described in detail. When the description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Obviously, the described embodiments are only a part of the embodiments of this utility model, and not all of them. Based on the embodiments of this utility model, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this utility model.

[0072] It should be understood that in the description of all embodiments of this utility model, the terms "upper," "lower," "left," "right," etc., indicating the orientation or positional relationship are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this utility model and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this utility model. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first" and "second" may explicitly or implicitly include one or more of that feature. Terms such as "coupled" and "connected" should be interpreted broadly, for example, it can be a fixed connection, a detachable connection, or an integral part; it can be a mechanical connection, an electrical connection, or a connection that can communicate with each other; it can be a direct connection or an indirect connection through an intermediate medium to form a linkage relationship; it can be the internal communication of two elements or the interaction relationship between two elements. For those skilled in the art, the specific meaning of the above terms in this utility model can be understood according to the specific circumstances.

[0073] In various embodiments of this utility model, the symbol " / " indicates that it has two functions simultaneously. The symbol "A and / or B" indicates that the combination between the preceding and following objects connected by the symbol includes three cases: "A", "B", and "A and B".

[0074] Please refer to Figure 1 The intelligent control system provided in this embodiment of the present invention may include an intelligent wall switch 100, a terminal device 200, and a cloud 300. The figure shows one intelligent wall switch 100 and one terminal device 200. In the actual intelligent control system, there may be multiple intelligent wall switches 100 and terminal devices 200. At the same time, the intelligent wall switch 100 and the terminal device 200 can directly transmit wireless signals (e.g., Bluetooth direct connection and hotspot connection during network configuration), or they can indirectly communicate wirelessly through the cloud 300. The wireless signal may be, for example, Bluetooth, radio frequency, WIFI, etc.

[0075] The terminal device 200 may be, for example, a mobile phone, tablet computer, laptop computer, handheld computer, netbook, wearable terminal, television, virtual reality device, or other device with display and interactive functions. The specific form of the terminal device 200 is not specifically limited in this embodiment. For ease of explanation, subsequent embodiments will typically use a mobile phone as an example for detailed description.

[0076] The smart wall switch 100 is used to implement the configuration method of the smart wall switch 100 described below. Therefore, the description of the configuration method of the smart wall switch 100 described below can be understood as a description of the working process, function and specific implementation of the software and / or hardware in the smart wall switch 100.

[0077] The smart wall switch 100 includes a display screen, which can be understood as a component or combination of components that can be driven to display content. It can be a display screen with only display function and no touch function, or it can be a display screen with both display and touch functions; this embodiment does not impose specific limitations. Of course, in subsequent related embodiments, to suit specific solutions, the display screen can be limited to a display screen with both display and touch functions.

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

[0079] Please see Figures 2-23 The present invention provides a smart wall switch 100 with recessed electronic components (hereinafter referred to as smart wall switch 100), which is specifically illustrated. For example... Figures 2-6 As shown, the smart wall switch 100 includes: a base shell 1, a first circuit board 4, and a second circuit board 2. The base shell 1 is used for mounting on a wall. The second circuit board 2 is disposed inside the base shell 1. The first circuit board 4 is configured as a high-voltage board, and the second circuit board 2 is configured as a low-voltage board. The first circuit board 4 is electrically connected to the second circuit board 2. The second circuit board 2 is connected to an external conductor and is equipped with an AC-DC power module for converting alternating current into direct current, thereby providing power to the first circuit board 4. In addition, the second circuit board 2 is also equipped with a relay 21, and the first circuit board 4 can control the relay 21 to switch on and off in response to external operation. The smart wall switch 100 provided by this utility model can be a push-button switch, a touch switch, a touch display switch, etc., and the external operation can be a pressing operation, a touch operation, etc.

[0080] Existing smart wall switches have a large number of electronic components on their control circuit boards, such as communication modules, capacitors, and resistors, resulting in a large space occupied by the control circuit board and a thick switch panel located on the outside of the wall. To solve this problem, in this embodiment of the invention, such as... Figures 4-6 and Figure 8As shown, the bottom shell 1 is provided with a first receiving groove 11, and a supporting shell 3 is covered on the bottom shell 1. The supporting shell 3 is provided with a second receiving groove 31 at a corresponding position to the first receiving groove 11, and the second receiving groove 31 is at least partially received in the first receiving groove 11. The first circuit board 4 is disposed on the side of the supporting shell 3 away from the bottom shell 1, and the second receiving groove 31 is open towards the first circuit board 4, with the first circuit board 4 covering the second receiving groove 31. The first circuit board 4 has a first surface 42 facing the supporting shell 3, and electronic components 41 disposed on the first surface 42 are at least partially received in the second receiving groove 31. The electronic components 41 disposed on the first surface 42 can be entirely received in the second receiving groove 31, or only a portion thereof. The electronic components 41 can be individually packaged parts or modules composed of multiple parts, for example, such as... Figure 8 As shown, the electronic component 41 includes a communication module 411, a pin header 424, an infrared emitting unit 481, an infrared receiving unit 482, capacitors, resistors, diodes, etc.

[0081] The smart wall switch 100 provided by this utility model, since the second receiving groove 31 is at least partially accommodated in the first receiving groove 11, allows the electronic components 41 disposed on the first surface 42 to be indirectly submerged in the first receiving groove 11 of the bottom shell 1 through the second receiving groove 31. The first receiving groove 11 is installed inside the wall, thereby making the first circuit board 4 closer to the wall, reducing the thickness of the switch panel occupied by the first circuit board 4, and making the switch panel thinner. Furthermore, since only the electronic components 41 of the first circuit board 4 are accommodated in the second receiving groove 31, rather than the entire second circuit board 2 being placed in the second receiving groove 31, the area of ​​the second circuit board 2 is not limited by the second receiving groove 31, and can cover most of the switch panel area. Consequently, the electronic components 41 on the upper surface of the second circuit board 2 can be positioned near the edge of the switch panel, leaving space in the middle of the switch panel for electronic components such as the display screen 5. The switch panel can be understood as the panel component of the smart wall switch 100 disposed on the outside of the wall. In one embodiment, a display screen 5 is provided in the middle of the switch panel and a button 7 is provided at the edge. The user can trigger the detection element 44 on the second circuit board 2 by operating the button 7, thereby realizing an ultra-thin switch panel structure in which the physical button and the display screen 5 are arranged side by side.

[0082] In one embodiment, such as Figure 4 , Figure 5 and Figure 8As shown, the supporting housing 3 is constructed in a plate-like structure. The lower surface of the supporting housing 3 protrudes downward to form a supporting protrusion 32. The supporting protrusion 32 is accommodated in the first receiving groove 11 of the bottom shell 1. The supporting protrusion 32 provides recessed space for the second receiving groove 31. The upper surface of the supporting housing 3 is recessed downward at the corresponding position of the supporting protrusion 32 to form the second receiving groove 31. The shape of the supporting protrusion 32 matches the shape of the first receiving groove 11 to maximize the area of ​​the supporting protrusion 32, thereby increasing the space of the second receiving groove 31 and allowing the second receiving groove 31 to accommodate more electronic components 41.

[0083] In one embodiment, such as Figure 5 and Figure 8 As shown, the first circuit board 4 is equipped with a communication module 411 for sending and / or receiving wireless signals. Users can remotely control the smart wall switch 100 via a mobile phone or wireless switch. Due to the relatively large size of the communication module 411, in this embodiment, the communication module 411 is placed on the first surface 42 of the first circuit board 4, and is housed in the second receiving slot 31, thereby reducing the space occupied by the electronic components 41 on the upper surface of the first circuit board 4, and further thinning the switch panel. Additionally, in this embodiment, the communication module 411 is placed on the side of the first circuit board 4 opposite to the display screen 5, which can mitigate the impact of heat generated by the display screen 5 during operation on the communication module 411. Furthermore, as... Figure 8 As shown, the second receiving slot 31 is provided with a capacity-enhancing recess 311 at the corresponding position of the communication module 411. The capacity-enhancing recess 311 is used to increase the depth of the second receiving slot 31 so that the second receiving slot 31 has enough space to place the communication module 411.

[0084] In some embodiments, such as Figure 7 and Figure 10As shown, the first circuit board 4 has a second surface 43 facing away from the supporting housing 3. A detection element 44 is disposed on the second surface 43. The detection element 44 can be triggered in response to an operation. The detection element 44 projects onto the second surface 43 to form a first projection pattern. The detection element 44 can be a tactile switch, micro switch, detection switch, membrane switch, Hall effect switch, touch sensing module, etc. The operation can be a pressing operation, a touch operation, etc. In an exemplary embodiment, the detection element 44 is configured as a tactile switch, which can be triggered in response to a pressing operation. The smart wall switch 100 also includes a display screen 5, which is electrically connected to the first circuit board 4. The electrical connection can be understood as a conductive connection, including ribbon cable 51 connection, wire connection, pin header 424 and nut header 22 connection, and abutment conductivity, etc. The display screen 5 projects onto the second surface 43 to form a seventh projection pattern. The first projection pattern is outside the seventh projection pattern, so that the display screen 5 and the detection element 44 can be arranged side-by-side to avoid stacking, thereby reducing the thickness of the switch panel. Further, as... Figure 10 As shown, the second receiving groove 31 is projected onto the second surface 43 to form a second projected pattern 432, wherein the outline of the second projected pattern 432 is already visible. Figure 10 The first projected graphic is not included in the second projected graphic 432, as indicated by the dashed line. That is, the detection element 44 is set outside the projected graphic of the second receiving groove 31, so that the button 7 and the display screen 5 can be arranged side by side on the switch panel, reducing the thickness of the switch panel.

[0085] In some embodiments, the first circuit board 4 is entirely placed within the second receiving groove 31 to further reduce the thickness of the switch panel. However, the first circuit board 4 will be limited by the second receiving groove 31, resulting in a relatively small area and preventing the electronic components 41 on the first circuit board 4 from being positioned at the edge of the switch panel. Compared to placing the first circuit board 4 entirely within the second receiving groove 31, this embodiment of the invention only accommodates the electronic components 41 of the first circuit board 4 within the second receiving groove 31. This allows the size of the second circuit board 2 to be unconstrained by the second receiving groove 31, enabling the second circuit board 2 to cover most of the switch panel area. This allows the detection element 44 to be positioned near the edge of the switch panel, placing it alongside the display and reducing the thickness of the switch panel. Furthermore, since the detection element 44 is positioned near the edge of the switch panel, the switch panel has sufficient space to design the button 7 structure, resulting in a better tactile feel for the button 7.

[0086] In some embodiments, such as Figure 17 and Figure 5 As shown, the second receiving groove 31 projects onto the first surface 42 to form a sixth projection pattern 421, wherein the outline of the sixth projection pattern 421 is already visible. Figure 17 The area outside the sixth projected pattern 421 of the first surface 42, marked with dashed lines, is designated as the first region. No electronic components 41 are soldered within this first region of the first surface 42; that is, electronic components 41 are only soldered to the area corresponding to the second receiving groove 31 on the first surface 42 of the first circuit board 4. Consequently, the first surface 42 is a flat surface within this first region, ensuring that the gap between the first surface 42 and the supporting housing 3 is less than 1 mm, thereby reducing the thickness of the switch panel. In one embodiment, as... Figure 5 As shown, the first surface 42 is attached to the support housing 3, and all the electronic components 41 disposed on the first surface 42 are accommodated in the second receiving groove 31.

[0087] In some embodiments, such as Figures 2-5 As shown, the smart wall switch 100 also includes a panel housing 6, detachably connected to the bottom shell 1. A support housing 3 is fixedly connected to the panel housing 6. The first circuit board 4 is clamped between the panel housing 6 and the support housing 3, allowing the panel housing 6, the first circuit board 4, and the support housing 3 to be detached and reassembled as a whole on the bottom shell 1. When the panel housing 6 is removed from the bottom shell 1, the first circuit board 4 is protected by the support housing 3 and the panel housing 6, preventing damage to the first circuit board 4. The detachable connection can be a snap-fit ​​connection, a screw connection, etc. In one embodiment, such as... Figure 4 As shown, the upper edge of the first receiving groove 11 of the bottom shell 1 extends horizontally to the surrounding area to form a mounting eave 12. The panel shell 6 covers the bottom shell 1, and the mounting eave 12 is contained within the panel shell 6. The inner walls at both ends of the panel shell 6 are respectively provided with second buckles 611. The side wall of the mounting eave 12 is provided with a second snap-fit ​​position 121 that is adapted to the second buckle 611. The second buckle 611 snaps into the second snap-fit ​​position 121 to realize the detachable connection between the panel shell 6 and the bottom shell 1.

[0088] like Figure 8 , Figure 9 and Figure 12 As shown, the side of the supporting housing 3 facing the panel housing 6 is provided with a positioning boss 33. The first circuit board 4 has a first positioning hole 451 adapted to the positioning boss 33. The positioning boss 33 is inserted into the first positioning hole 451 to realize the positioning of the first circuit board 4 and the supporting housing 3; Figure 12As shown, the side of the supporting housing 3 facing the bottom shell 1 has a countersunk hole 331 at the corresponding position of the positioning boss 33, so that the countersunk hole 331 can reduce the wall thickness of the positioning boss 33; a connecting screw 332 passes through the countersunk hole 331 and is connected to the panel housing 6 to fix the supporting housing 3 to the panel housing 6. The nut of the connecting screw 332 is accommodated in the countersunk hole 331, that is, the nut of the connecting screw 332 is accommodated inside the positioning boss 33, so as to avoid the nut occupying additional thickness of the supporting housing 3, thereby reducing the thickness of the switch panel. Further, the panel housing 6 is provided with a threaded connecting post 627 adapted to the connecting screw 332, and the connecting screw 332 passes through the countersunk hole 331 and is connected to the threaded connecting post 627.

[0089] Furthermore, such as Figure 7 As shown, the first circuit board 4 has two third positioning holes 452. The panel housing 6 has a positioning pin 628 protruding at the corresponding position of the third positioning hole 452. The positioning pin 628 is inserted into the third positioning hole 452 to achieve horizontal positioning between the first circuit board 4 and the panel housing 6.

[0090] Furthermore, such as Figure 7 and Figure 13 As shown, the side wall of the panel housing 6 is provided with a third buckle 612, and the side of the supporting housing 3 is provided with a third snap-fit ​​position 34 adapted to the third buckle 612. The third buckle 612 snaps into the third snap-fit ​​position 34, so that the supporting housing 3 is first pre-fixed to the panel housing 6 by the third buckle 612, and then fixed to the panel housing 6 by the connecting screw 332. Further, the side of the supporting housing 3 is provided with a buckle clearance position 35 for the second buckle 611 to pass through, so that the second buckle 611 can pass through the buckle clearance position 35 and snap into the mounting eaves 12.

[0091] Furthermore, such as Figure 9 , Figure 12 and Figure 20As shown, there are multiple positioning bosses 33. The supporting housing 3 has supporting steps 333 surrounding each positioning boss 33, and these supporting steps 333 abut against the first surface 42 of the first circuit board 4. A supporting platform 36 protrudes from the corresponding position of the detection element 44 on the supporting housing 3, and this supporting platform 36 abuts against the first surface 42 of the first circuit board 4. Since the upper surface area of ​​the supporting housing 3 is large and its flatness is difficult to control, compared to directly abutting against the first circuit board 4 through the upper surface of the supporting housing 3, this embodiment uses supporting steps 333 and supporting platforms 36 to abut against the first circuit board 4. This improves the vertical positioning accuracy of the first circuit board 4 and avoids poor vertical accuracy caused by unevenness on the upper surface of the supporting housing 3. The support step 333 and the support platform 36 have the same height, both being 0.1mm. Correspondingly, since the first circuit board 4 is attached to the support step 333 and the support platform 36, there is a gap of 0.1mm between the first circuit board 4 and the bearing housing 3. This gap is used to accommodate the flatness error of the upper surface of the bearing housing 3.

[0092] In some embodiments, such as Figure 18 and Figure 8 As shown, the communication module 411 includes an onboard antenna 4111. The first circuit board 4 has a signal through-hole 46 at a position corresponding to the onboard antenna 4111 to prevent the signal from being blocked by the first circuit board 4. The panel housing 6 is provided with a display screen 5. The display screen 5 projects a fourth projection pattern 422 onto the first surface 42. The fourth projection pattern 422 has been... Figure 18 The onboard antenna 4111, indicated by dashed lines, projects onto the first surface 42 to form a fifth projection pattern. This fifth projection pattern is at least partially located outside the fourth projection pattern 422 to reduce signal obstruction by the display screen 5. In one embodiment, the fifth projection pattern is entirely located outside the fourth projection pattern 422 to further reduce signal obstruction by the display screen 5. In another embodiment, the communication module 411 includes a small PCB board, with the onboard antenna 4111 meandering along the side of the PCB board facing the bottom shell.

[0093] In some embodiments, such as Figure 14 and Figure 5 As shown, the panel housing 6 is provided with a display screen mounting slot 613 at the corresponding position of the display screen 5. The display screen 5 is placed in the display screen mounting slot 613. The panel housing 6 is covered with a transparent cover plate 63. The display screen 5 is confined between the transparent cover plate 63 and the display screen mounting slot 613. The display screen 5 displays content to the outside through the transparent cover plate 63.

[0094] Furthermore, the display screen 5 and the first circuit board 4 are respectively disposed on the upper and lower sides of the panel housing 6. The panel housing 6 has a ribbon cable through hole 615, and the second surface 43 of the first circuit board 4 is provided with a ribbon cable connection terminal 47. The ribbon cable 51 of the display screen 5 passes through the ribbon cable through hole 615 and is connected to the ribbon cable connection terminal 47. The ribbon cable through hole 615 is located at the end of the display screen mounting groove 613, and the ribbon cable connection terminal 47 is located in the middle of the first circuit board 4. Furthermore, the panel housing 6 has a clearance hole 616 at the corresponding position of the ribbon cable connection terminal 47. The ribbon cable connection terminal 47 is at least partially accommodated in the clearance hole 616 to reduce the thickness occupied by the ribbon cable connection terminal 47 in the vertical direction, thereby reducing the thickness of the switch panel.

[0095] In existing smart wall switches, the buttons are generally pivotally connected to the panel housing. Each button includes a pivot end and a pressing end away from the pivot. Users need to press the pressing end to get a good tactile feel; pressing the pivot end will not activate the button. When the button area is small, users have difficulty accurately pressing the pressing end, resulting in a poor tactile feel. In this embodiment of the invention, the display screen 5 and buttons 7 are arranged side-by-side. The buttons 7 are small and numerous. If a traditional pivot connection method is used, the button 7 will have a poor tactile feel. To solve this problem, in some embodiments, such as... Figures 19-22 As shown, the smart wall switch 100 also includes a button 7 and an elastic support 71. The button 7 is located at the corresponding position of the detection element 44 and is used to trigger the detection element 44. The button 7 has multiple movable latching structures 72 facing the panel housing 6. The movable latching structures 72 are latched onto the panel housing 6, and each of the movable latching structures 72 can move toward the panel housing 6 with each other as fulcrums, so that all parts of the button 7 can be pressed and move toward the panel housing 6, thereby triggering the detection element 44. That is, the upper surface of the button 7 can be fully pressed to trigger the detection element 44, thereby improving the pressing feel. The movable latching structure 72 can be understood as a latching structure that can move relatively, such as a movable hook.

[0096] Furthermore, traditional smart wall switches typically have a spring at the pressing end of the button to provide a restoring force. However, this method provides a relatively singular restoring force, which cannot adapt to the full pressing of button 7 in this embodiment. Therefore, the elastic support member 71 of this embodiment is disposed between the button 7 and the panel housing 6 to provide elastic support force. The elastic support member 71 is surrounded by each of the movable latching structures 72, and the elastic support member 71 surrounds the triggering part of the detection element 44, so that when different parts of the button 7 are pressed, the elastic support member 71 provides a relatively balanced support force. The elastic support member 71 can be understood as an elastic component, such as foam, rubber, silicone, spring, spring sheet, elastic arm, etc. The relatively balanced support force means that when the user presses different parts of the button 7, the difference in elastic force provided by the elastic support member 71 is small. Figure 19 As shown, since the elastic support 71 is surrounded by each movable snap-fit ​​structure 72 and the elastic support 71 surrounds the trigger part of the detection element 44, the compression of the elastic support 71 on the pressed side is greater than the compression on the unpressed side. That is, most of the elastic force of the elastic support 71 is distributed to the pressed side. Since the button 7 can be fully pressed, the elastic force distribution of the elastic support 71 changes with the pressing position. The button 7 can be supported more stably by the elastic support 71, thereby improving the pressing feel.

[0097] Specifically, such as Figure 22 The diagram shown is a simplified structural schematic of button 7 and elastic support 71. Figure 22The document includes three diagrams. The first diagram shows the structure of the detection element 44 when it is not pressed. The second diagram shows the structure of the button 7 when the center is pressed to the detection element 44 in the triggered position. The third diagram shows the structure of the button 7 when the edge is pressed to the detection element 44 in the triggered position. As shown in the first figure, when button 7 is not pressed, the elastic support 71 abuts against the lower surface of button 7, and the movable latching structures 72 at both ends of button 7 latch onto the panel housing 6 to limit the upper limit of button 7's movement. At this time, the detection element 44 is in an uncompressed state. As shown in the second figure, when the center of button 7 is pressed, button 7 moves downward in parallel. The movement stroke of button 7 is equal to the compression stroke of detection element 44. Correspondingly, the compression amount of elastic support 71 is equal to the compression stroke of detection element 44. As shown in the third figure, when the left end of button 7 is pressed, button 7 pivots based on the movable latching structure 72 at the right end. Button 7 tilts against detection element 44 and elastic support 71. Although the compression amount on the left side of elastic support 71 is greater than that on the right side, the average value of the compression amounts on both sides is equal to the compression stroke of detection element 44. Therefore, the average value of the compression amount of elastic support 71 is equal to the compression amount of elastic support 71 in the second figure. Since the supporting force provided by the elastic support member 71 is proportional to the amount of compression, that is, regardless of whether the center or the edge of the button 7 is pressed, as long as the compression stroke of the detection member 44 remains unchanged, the amount of compression of the elastic support member 71 is approximately equal, and the supporting force provided by the elastic support member 71 is also approximately equal. This ensures that when different parts of the button 7 are pressed, the elastic support member 71 can provide balanced supporting force, thereby improving the pressing feel.

[0098] In some embodiments, such as Figure 19 and Figure 20 As shown, the elastic support 71 has a third surface that abuts against the button 7 and a fourth surface that abuts against the panel housing 6. The third surface is parallel to the fourth surface, so that when the button 7 is not pressed, the elastic support 71 provides a balanced supporting force. The third surface is the upper surface of the elastic support 71 in the figure, and the fourth surface is the lower surface of the elastic support 71. Since the button 7 can be fully pressed, this embodiment sets the upper and lower surfaces of the elastic support 71 parallel, making the elastic force provided by the elastic support 71 more balanced to accommodate the full pressing of the button 7.

[0099] In some embodiments, such as Figure 19 and Figure 20As shown, the elastic support 71 is constructed as a ring-shaped foam 711. The trigger portion of the detection element 44 is positioned directly opposite the hollow portion of the ring-shaped foam 711, so that the support force provided by the elastic support 71 is more balanced when different parts of the button 7 are pressed. In this embodiment, the ring-shaped foam 711 surrounds the trigger portion of the detection element 44. When any position of the button 7 is pressed, the compression of the ring-shaped foam 711 on the pressed side is greater than that on the unpressed side, causing the elastic force distribution of the ring-shaped foam 711 to change with the pressing position. The button 7 is more stably supported by the ring-shaped foam 711, improving the pressing feel. Furthermore, compared to a spring, foam has a slow rebound characteristic, which slows down the rebound speed of the button 7, preventing the button 7 from rebounding too close to the user's finger, thus reducing the stickiness of the button 7.

[0100] Furthermore, such as Figure 19 and Figure 20 As shown, the button 7 has a trigger post 73 protruding towards the detection element 44. The trigger post 73 passes through the hollow portion of the annular foam 711 and abuts against the trigger portion of the detection element 44, so that pressing any part of the button 7 can trigger the detection element 44. Further, the panel housing 6 is provided with a foam mounting groove 617, in which the annular foam 711 is mounted. The foam mounting groove 617 is constructed as a circular groove with a diameter slightly larger than the outer diameter of the annular foam 711. The foam mounting groove 617 positions the annular foam 711 horizontally, and the bottom surface of the annular foam 711 is adhered to the foam mounting groove 617 with double-sided adhesive. The detection element 44 is located on the side of the panel housing 6 opposite to the foam. The panel housing 6 has a trigger hole, through which the trigger portion of the detection element 44 is exposed in the hollow portion of the annular foam 711.

[0101] In some embodiments, such as Figure 19 , Figure 21 and Figure 22 As shown, the movable latching structure 72 is constructed as a first latch 721 extending from the button 7. The panel housing 6 has a first latching position 618 corresponding to the first latch 721. The first latch 721 latches into the first latching position 618. The first latching position 618 has reserved space for movement, allowing the first latch 721 to move along the latching direction. The first latching position 618 limits the first latch 721's movement away from the panel housing 6 to its extreme position, so that each of the first latches 721 can move towards the panel housing 6 with each other as fulcrums. Figure 22As shown, when the left end of button 7 is pressed, the movable latching structure 72 at the left end pivots toward the panel housing 6 with the movable latching structure 72 at the right end as the fulcrum, thereby realizing that the first latches 721 move toward the panel housing 6 with each other as fulcrums. In one embodiment, the pressing surface of button 7 is constructed as a quadrilateral, and the number of the first latches 721 is set to 4. The 4 first latches 721 are set at the four corners of the pressing surface, and the 4 first latches 721 are arranged in pairs opposite each other; the button 7 extends downward from the first latches 721, and the first latches 721 engage downward with the first latching position 618. The first latching position 618 has a reserved space below it, so that the first latches 721 can move up and down within the space.

[0102] In some embodiments, such as Figure 19 and Figure 21 As shown, the number of buttons 7 is set to multiple, and each button 7 is arranged side by side along a first direction. Each button 7 is provided with two first positioning posts 74 arranged along a second direction, which is perpendicular to the first direction. The first positioning posts 74 extend towards the panel housing 6 based on the button 7. The panel housing 6 is provided with a second positioning hole 619 at the corresponding position of the first positioning post 74. The first positioning post 74 is inserted into the second positioning hole 619 to achieve positioning between the button 7 and the panel housing 6. When the button 7 moves towards the panel housing 6, the first positioning post 74 moves in the second positioning hole 619. The function of the two first positioning posts 74 is to position the button 7 in the horizontal direction to limit the displacement and rotation of the button 7 in the horizontal direction and reduce the horizontal wobble of the button 7. In addition, since the arrangement direction of the two first positioning posts 74 is perpendicular to the arrangement direction of the button 7, the arrangement of the button 7 is more uniform, and the spacing between each button 7 is consistent. Furthermore, the first positioning posts 74 also have a pressing guide function, making the button 7 easier to press.

[0103] Furthermore, the panel housing 6 is provided with a limiting structure 621 at the position corresponding to the button 7. The limiting structure 621 is used to abut against the button 7 to limit the extreme position of the button 7's movement toward the panel housing 6, thereby preventing the detection element 44 from being excessively compressed by the button 7 and causing damage to the detection element 44. Specifically, the limiting structure 621 is a limiting surface provided on the panel housing 6 toward the button 7. When the button 7 is pressed to the lower limit position, the limiting surface abuts against the lower surface of the button 7 to limit the button 7 from continuing to move downward.

[0104] Furthermore, such as Figure 2As shown, the upper surface of the button 7 is flush with the upper surface of the transparent cover plate 63. The side of the transparent cover plate 63 near the button 7 is a curved edge that protrudes outward, and the side of the button 7 facing the transparent cover plate 63 is recessed inward to fit the curved edge of the transparent cover plate 63.

[0105] In some embodiments, such as Figure 10 and Figure 13 As shown, an infrared detection device 48 is provided on the second surface 43 of the first circuit board 4. The infrared detection device 48 projects onto the second surface 43 to form a third projection pattern, which is not included in the second projection pattern 432. The infrared detection device 48 can be understood as an infrared distance sensor. Thanks to this embodiment of the invention, the electronic components 41 of the first surface 42 are housed in the second receiving groove 31, making the area of ​​the first circuit board 4 larger than the second receiving groove 31. The first circuit board 4 can cover the edge of the switch panel. This embodiment places the infrared detection device 48 at the edge of the switch panel, allowing the infrared detection device 48 and the display screen 5 to be arranged side-by-side, thus reducing the thickness of the switch panel. Simultaneously, placing the infrared detection device 48 at the edge of the switch panel provides more space for the display screen 5, allowing for a larger display screen area.

[0106] Furthermore, the infrared detection device 48 is disposed at the end of the second surface 43, so that the bezel of the display screen 5 is narrower and the screen ratio is higher.

[0107] In some embodiments, such as Figure 13 and Figure 16As shown, the infrared detection device 48 includes an infrared emitting unit 481 and an infrared receiving unit 482. The infrared emitting unit 481 emits a detection wave, which is reflected by an external object and transmitted to the infrared receiving unit 482, thus triggering the infrared detection device 48. The detection wave can be an infrared wave, etc. In an exemplary embodiment, the infrared emitting unit 481 is an infrared LED capable of emitting infrared waves, and the infrared receiving unit 482 is an infrared receiver capable of receiving the infrared waves emitted by the infrared LED. The infrared emitting unit 481 and the infrared receiving unit 482 are separately arranged. The panel housing 6 is provided with a first isolation barrier 622 and a second isolation barrier 623 facing the first circuit board 4. The first isolation barrier 622, the panel housing 6 and the first circuit board 4 surround the infrared emitting unit 481, and the second isolation barrier 623 surrounds the infrared receiving unit 482, so as to block the detection wave emitted by the infrared emitting unit 481 from being transmitted to the infrared receiving unit 482 inside the panel housing 6, thereby preventing the infrared detection device 48 from being falsely triggered. In one embodiment, the first isolation barrier 622 and the second isolation barrier 623 are respectively configured as ribs extending from the panel housing 6. The first isolation barrier 622 and the side wall of the panel housing 6 together surround the side of the infrared emitting unit 481, and the second isolation barrier 623 and the side wall of the panel housing 6 together surround the side of the infrared receiving unit 482. The bottom of the first isolation barrier 622 and the bottom of the second isolation barrier 623 both abut against the first circuit board 4 to prevent the detection wave from passing through the gap between the isolation barrier and the first circuit board 4.

[0108] Furthermore, the distance between the infrared emitting unit 481 and the infrared receiving unit 482 is greater than 20mm to prevent the detection wave emitted by the infrared emitting unit 481 from propagating through the first isolation barrier 622 and the second isolation barrier to the infrared receiving unit 482, causing the infrared detection device 48 to be falsely triggered. Furthermore, the distance between the infrared emitting unit 481 and the infrared receiving unit 482 is less than 75mm to prevent the infrared receiving unit 482 from not receiving the reflected detection wave when a human body is too close to the smart wall switch 100, thus preventing the infrared detection device 48 from being triggered. In one embodiment, the distance between the infrared emitting unit 481 and the infrared receiving unit 482 is 44mm.

[0109] In one embodiment, as a user approaches the smart wall switch 100, infrared waves are reflected by the user's body and propagate to the infrared receiving unit 482. When the user is within a certain range of the smart wall switch 100 (the "range" here can be understood as the "detection distance" in subsequent embodiments), the infrared detection device 48 is triggered, and the display screen 5 lights up. Thus, when the user reaches the smart wall switch 100, the display screen 5 is already lit, allowing the user to operate the switch directly without needing to deliberately turn on the screen, making operation faster. When the infrared detection device 48 is not triggered, the display screen 5 is off, thus avoiding light pollution caused by the display screen 5 remaining constantly lit.

[0110] Furthermore, the display screen 5 is configured as a touch display screen, specifically a TFT-LCD display screen.

[0111] Furthermore, such as Figure 14 , Figure 15 and Figure 16 As shown, a transparent cover plate 63 is provided on the side of the panel housing 6 away from the first circuit board 4. The transparent cover plate 63 is made of glass and is covered with a light-shielding layer 631, which can block natural light and infrared light from passing through; Figure 15 As shown, the light-shielding layer 631 has first light-transmitting holes 632 at corresponding positions of the infrared emitting unit 481 and the infrared receiving unit 482. Infrared waves emitted by the infrared emitting unit 481 pass through the first light-transmitting holes 632 and are emitted outwards, thus limiting the detection angle of the infrared detection device 48 by the first light-transmitting holes 632. Specifically, as... Figure 16 As shown, the infrared emitting unit 481 and the infrared receiving unit 482 are soldered to the first circuit board 4 and are positioned facing the transparent cover plate 63. The smaller the size of the first light-transmitting hole 632, the smaller the infrared wave emission angle, and the smaller the detection angle of the infrared detection device 48. When the size of the first light-transmitting hole 632 is constant, the larger the distance between the first circuit board 4 and the transparent cover plate 63, the smaller the infrared wave emission angle, and the smaller the detection angle of the infrared detection device 48. By controlling the size of the first light-transmitting hole 632 and the distance between the first circuit board 4 and the transparent cover plate 63, the detection angle of the infrared detection device 48 can be accurately controlled.

[0112] Furthermore, the detection angle of the infrared detection device 48 is limited to less than 60° by the first light-transmitting hole 632. When the detection angle of the infrared detection device 48 is too large, it is easily triggered falsely; when the detection angle of the infrared detection device 48 is too small, the smart wall switch 100 may not trigger when the user approaches it from the side. Therefore, through experimental verification, the inventors have controlled the detection angle of the infrared detection device 48 to 30°-60° to achieve a suitable triggering range.

[0113] In one embodiment, such as Figure 10 and Figure 13 As shown, the infrared emitting unit 481 includes an ellipsoidal lens, which is disposed at the top of the infrared emitting unit 481. The ellipsoidal hemisphere can be understood as an ellipsoid divided in half along the plane containing its major axis, with one half being the ellipsoidal hemisphere. When the smart wall switch 100 is installed on the wall, the major axis of the ellipsoidal hemisphere is horizontal and the minor axis is vertical. The infrared wave emitted by the infrared emitting unit 481 is elliptical in shape on the plane directly opposite the switch panel, making the detection angle of the infrared detection device 48 in the horizontal direction greater than that in the vertical direction. This prevents animals on the ground from being detected by the infrared detection device 48, thus avoiding false triggering. In one embodiment, the infrared wave emitted by the infrared emitting unit 481 has a vertical emission angle of 25° and a horizontal emission angle of 66°. In addition, after the infrared wave is emitted from the infrared emitting unit 481, it is confined by the first light-transmitting hole 632, thus limiting the horizontal emission angle of the infrared wave to less than 60°.

[0114] Furthermore, the light-shielding layer 631 is specifically a black coating, printed on the back of the transparent cover 63 by screen printing. A black IR layer is sprayed onto the transparent cover 63 at the position corresponding to the first light-transmitting hole 632, resulting in an infrared light transmittance greater than 70% and a natural light transmittance less than 30%. When the transparent cover 63 is installed on the smart wall switch 100, only a very small amount of visible light passes through the first light-transmitting hole 632, appearing black and thus matching the color of the light-shielding layer 631, thereby concealing the first light-transmitting hole 632 visually. In one embodiment, the transmittance of 550nm wavelength visible light through the transparent cover 63 is 15% ± 5%, and the transmittance of 940nm wavelength infrared light through the transparent cover 63 is ≥ 80%. Specifically, the IR layer can be made by ink spraying, and the ink ratio can be adjusted according to the infrared / visible light transmittance.

[0115] In some embodiments, such as Figure 13 and Figure 16As shown, a photosensitive sensor 49 is disposed between the infrared emitting unit 481 and the infrared receiving unit 482 on the first circuit board 4. The photosensitive sensor 49 is used to detect the illuminance of ambient light. A third light-transmitting hole 633 is opened at the corresponding position of the photosensitive sensor 49 on the light-shielding layer 631, and ambient light passes through the third light-transmitting hole 633 to illuminate the photosensitive sensor 49. The transparent cover plate 63 is also coated with the black IR layer at the corresponding position of the third light-transmitting hole 633, so that the third light-transmitting hole 633 appears black, thereby hiding the third light-transmitting hole 633 from the appearance. A third isolation barrier 624 is disposed on the panel housing 6 facing the first circuit board 4. The third isolation barrier 624, the panel housing 6, and the first circuit board 4 surround the photosensitive sensor 49. The display screen 5 can automatically adjust its brightness according to the illuminance detected by the photosensitive sensor 49. In addition, the communication module 411 can also transmit the illuminance to the outside. In one embodiment, the photosensitive sensor 49 is a photoresistor, and the third isolation barrier 624 is constructed as a rib extending from the panel housing 6. The third isolation barrier 624 and the sidewall of the panel housing 6 together surround the side of the photosensitive sensor 49, and the bottom of the third isolation barrier 624 abuts against the first circuit board 4 to prevent infrared waves from passing through the gap between the third isolation barrier 624 and the first circuit board 4. It is worth noting that placing the photosensitive sensor 49 between the infrared emitting unit 481 and the infrared receiving unit 482 can further block the infrared waves emitted by the infrared emitting unit 481 from being transmitted to the infrared receiving unit 482 inside the panel housing 6, thus preventing the infrared detection device 48 from being falsely triggered.

[0116] Furthermore, such as Figure 14 As shown, the panel housing 6 has a second light-transmitting hole 625 at the corresponding positions of the infrared emitting unit 481, the infrared receiving unit 482 and the photosensitive sensor 49, and the aperture of the second light-transmitting hole 625 is larger than the aperture of the first light-transmitting hole 632.

[0117] Because the photosensitive sensor 49 is located deep inside the second light-transmitting hole 625, when ambient light shines obliquely into the second light-transmitting hole 625, the second light-transmitting hole 625 easily blocks the ambient light, preventing the oblique ambient light from reaching the photosensitive sensor 49. This results in the photosensitive sensor 49 being in a low-light environment, affecting its detection sensitivity and accuracy. Therefore, in one embodiment, as... Figure 16 and Figure 13As shown, a light guide 626 is disposed between the transparent cover plate 63 and the photosensitive sensor 49. The light guide 626 is made of a light-transmitting material and is used to guide both oblique ambient light and directly facing ambient light into the photosensitive sensor 49 to improve the detection sensitivity and accuracy of the photosensitive sensor 49. In one embodiment, the light guide 626 is injection molded from acrylic material.

[0118] Furthermore, such as Figure 15 As shown, the transparent cover 63 has a display area 634 positioned directly opposite the display screen 5. The light-shielding layer 631 does not cover the display area 634, and the display screen 5 displays content externally through the display area 634. The side of the display area 634 closest to the button 7 is curved, while the four sides of the display screen 5 are straight. The shape of the display screen 5 displayed externally is limited by the display area 634.

[0119] In some embodiments, such as Figure 23 and Figure 5 As shown, the bottom shell 1 is provided with a second circuit board 2 and an isolation shell 8. The second circuit board 2 is a high-voltage circuit board. The isolation shell 8 is detachably connected to the bottom shell 1, and it isolates the second circuit board 2 inside the first receiving groove 11, so that when the panel shell 6 is removed from the bottom shell 1, the second circuit board 2 will not be exposed, thus preventing electric shock to the user. The isolation shell 8 has snap-fit ​​fasteners on all four sides for engaging with the side walls of the first receiving groove 11, achieving a detachable connection between the isolation shell 8 and the bottom shell 1. Furthermore, the first receiving groove 11 has circuit board support ribs that abut against the lower surface of the second circuit board 2, and the isolation shell 8 abuts against the upper surface of the second circuit board 2, thus clamping and fixing the second circuit board 2 between the isolation shell 8 and the support ribs. Furthermore, one side of the isolation shell 8 has a pry opening 81, allowing the user to use a flathead screwdriver to insert into the pry opening 81 to remove the isolation shell 8.

[0120] Furthermore, such as Figure 4 , Figure 8 and Figure 23As shown, the second circuit board 2 has a header 22 facing the first circuit board 4. The isolation housing 8 has a header through hole 82 at the corresponding position of the header 22, through which the header 22 is exposed to the isolation housing 8. The first circuit board 4 has a header pin 424 adapted to the header 22. The supporting housing 3 has a header pin through hole 37 at the corresponding position of the header pin 424, through which the header pin 424 is inserted into the header 22, so that the second circuit board 2 is connected to the first circuit board 4. The second circuit board 2 has an AC-DC power module for converting alternating current to direct current to provide power to the first circuit board 4 through the header pin 424 and header 22. The lower surface of the second circuit board 2 has a plurality of terminals 23 for connecting external wires.

[0121] Furthermore, such as Figure 23 As shown, the mounting eaves 12 are integrally formed on the bottom shell 1. The mounting eaves 12 have two first mounting holes 122 and four second mounting holes 123. The two first mounting holes 122 are located on both sides of the first receiving groove 11 and are connected to the junction box by screws. A dividing slit 124 is provided between the first mounting holes 122 and the first receiving groove 11 on the mounting eaves 12. The dividing slit 124 is used to isolate the deformation of the first mounting holes 122, preventing excessive deformation of the first mounting holes 122 during installation, which could cause significant deformation of the first receiving groove 11 and damage to the second circuit board 2. The four second mounting holes 123 are located at the four corners of the mounting eaves 12 and can be externally mounted using screws.

[0122] In addition, the functions of existing smart wall switches 100 are relatively fixed, generally used to control the on and off of the circuit through relay 21. The so-called "smart" is only limited to wireless control of relay 21 and remote monitoring, which makes it difficult for existing smart wall switches 100 to meet the increasingly complex user needs of the smart home market. As users' personalized customization needs increase, there is an urgent need in the market for a smart wall switch 100 that supports users to configure it freely.

[0123] Therefore, in this embodiment of the present invention, a smart wall switch 100 is provided to solve the above problems.

[0124] It is worth noting that this embodiment focuses on the software and hardware of the smart wall switch 100. The corresponding implementation of the structure of the smart wall switch 100 in this embodiment can be achieved by referring to the corresponding structural design and implementation principles provided in the previous embodiments. In this embodiment of the present invention, a smart wall switch 100 will be specifically described as follows.

[0125] See Figure 24 The diagram shown is a block diagram of a smart wall switch 100 according to an embodiment of the present invention; it can be seen that the smart wall switch 100 includes at least a communication module 411 and a display screen 5.

[0126] The display screen 5 is electrically connected to the communication module 411, which is configured to: before network configuration, join a specified network in response to a specified operation to establish a correspondence with a terminal device 200, so that after network configuration, it can receive a first configuration instruction from the specified network; the first configuration instruction carries interface element information; and in response to the interface element information, instruct the display screen 5 to generate a corresponding interface; wherein at least some of the interface elements in the interface element information are defined by the user on the terminal device 200.

[0127] Specifically, the communication module 411 has a network configuration function and can enter a network configuration mode in response to a specified operation. The network configuration mode can be understood as a mode in which the communication module 411 is adapted to configure itself with a specified network, thereby joining the specified network. In the network configuration mode, the messages sent by the communication module 411 due to the pressing of a physical button or the triggering of a control on the interface can be network configuration messages. In contrast, in a different operating mode, the messages sent by the communication module 411 due to the pressing of a physical button or the triggering of a control on the interface can be control messages. Network configuration messages and control messages can be sent directly to the terminal device 200, or forwarded to the terminal device 200 via the cloud 300 in the specified network.

[0128] In the network configuration mode, the communication module 411 can be detected by the terminal device 200 and instructed by the terminal device 200 to join the designated network to complete the network configuration operation. Specifically, the communication module 411 may be a dual-mode communication module supporting both Wi-Fi and Bluetooth, where Bluetooth communication is used only for network configuration. Taking a mobile phone as the terminal device 200 as an example, the module joining the designated network in response to a specified operation may be as follows:

[0129] The system detects the "Reset Network" button displayed by the user on the display screen 5. If the user triggers the button, the system clears the existing network configuration information (such as WIFI account and password) and restarts to enter the network configuration mode.

[0130] Specifically, the system prioritizes entering Bluetooth network configuration mode. In this mode, a pre-defined configuration message is broadcast so that nearby terminal devices 200 (e.g., mobile phones) can obtain it. This message carries basic information about the smart wall switch 100 (e.g., its appearance image, type, etc.). The terminal device 200 (e.g., mobile phone) can then display the smart wall switch 100 to allow the user to confirm whether it is the desired smart wall switch 100 for network configuration. After the user confirms the configuration (e.g., the user clicks on the displayed smart wall switch 100 to confirm configuration), the terminal device 200 sends the configuration information (e.g., Wi-Fi account and corresponding password) to the module via Bluetooth. The module then connects to the router based on the obtained Wi-Fi account and password to access the designated network, completing the configuration operation.

[0131] If Bluetooth pairing mode fails (e.g., the terminal device's Bluetooth function is damaged or the user has turned off Bluetooth, causing Bluetooth to be unable to connect), then the system will switch to Wi-Fi hotspot pairing mode, specifically:

[0132] In WIFI hotspot network configuration mode, the module switches to AP mode so that the terminal device 200 (e.g., a mobile phone) can find the hotspot of the smart wall switch 100 and display the smart wall switch 100. After the user confirms the network configuration operation (e.g., the user clicks on the displayed smart wall switch 100 to confirm the network configuration), the user is prompted to enter the network configuration information (e.g., WIFI and password). After the user enters the information, the user is prompted to turn the WIFI on and off once. After the user turns the WIFI on and off once, the terminal device 200 will connect to the hotspot of the smart wall switch 100 and send the network configuration information to the module. The module connects to the router based on the obtained WIFI account and password to access the designated network and complete the network configuration operation.

[0133] After the network configuration is completed, the smart wall switch 100 can access the cloud 300 through the designated network, or communicate with the terminal device 200 through the cloud 300.

[0134] In this embodiment, Bluetooth pairing mode is preferred to facilitate quick pairing of the smart wall switch 100 with the network. Only when Bluetooth pairing mode fails will Wi-Fi hotspot pairing mode be selected to improve the pairing success rate and prevent terminal devices 200 without Bluetooth functionality from failing to pair with the network. Furthermore, when the smart wall switch 100 is first activated, it has not undergone pairing; therefore, it will automatically enter pairing mode upon power-up.

[0135] The interface elements can be, for example, background images, buttons, and layouts. Users can freely define at least some of these interface elements on the terminal device 200. Furthermore, unlike existing online linkage or projection methods, the communication module 411 in this embodiment stores the user-defined configuration locally, allowing it to be displayed independently of the terminal device 200 after the user has defined it. In other words, the smart wall switch 100 only relies on the terminal device 200 during the configuration phase; after configuration, it can operate independently of the terminal device 200.

[0136] Furthermore, based on the solutions provided in the above embodiments, the smart wall switch 100 provided by this utility model supports users to freely DIY (Do It Yourself) the smart wall switch 100. Specifically, the smart wall switch 100 provided in this embodiment has a display screen 5, and the communication module 411 has a networking function. Users can establish a connection with the terminal device 200 through the network configuration of the communication module 411, and then freely define the interface elements on each display interface of the display screen 5 through the terminal device 200. The defined interface elements are sent to the communication module 411 through a designated network, so that the communication module 411 instructs the display screen 5 to generate the display interface desired by the user. Based on this, the smart wall switch 100 provided in this embodiment has more playability than traditional smart wall switches, supports rich personalized customization needs of users, and users can define each display interface through terminal devices such as mobile phones and computers 200, which is convenient and quick.

[0137] In some embodiments, the first configuration instruction includes a first instruction, wherein the interface element information carried in the first instruction is obtained by the user selecting one of at least two preset interfaces on the terminal device 200, wherein both preset interfaces include buttons, and the buttons in the two preset interfaces differ in at least one of the following: number, layout, or function.

[0138] Furthermore, based on this embodiment, users can select from multiple existing preset interfaces on the terminal device 200. The interface elements on each preset interface are not entirely the same, such as the number, layout, and functions of buttons. After the user selects the corresponding preset interface, that preset interface can be set on the smart wall switch 100. This allows users to easily select preset interfaces on the terminal device 200 to adjust the various display interfaces on the display screen 5 of the smart wall switch 100, enabling convenient DIY operation of each interface of the smart wall switch 100.

[0139] In one exemplary use case, such as Figure 25The diagram shown illustrates the configuration of the interface of the smart wall switch 100 when a mobile phone is used as the terminal device 200 in this embodiment.

[0140] The mobile phone has an application (such as the Mi Home app of Xiaomi Technology Co., Ltd.) pre-installed with the corresponding application for the smart wall switch 100. Users can control the smart wall switch 100 and configure the smart wall switch 100 through the application.

[0141] Reference Figure 25 In the mobile application's interactive interface, enter the "Screen Layout" interface, click the "Add Screen" button to enter the Add Screen interface. This Add Screen interface provides multiple preset screens for the user to choose from. The number and layout of buttons vary among the preset screens. For example, some preset screens have a single button located near the bottom of the screen, some have two buttons side by side at the bottom, some have three buttons, and some have four buttons. The specific number and layout of buttons in other preset screens can be found in [reference needed]. Figure 25 As shown. In summary, based on multiple pre-designed preset interfaces, users can select the corresponding preset interface on their mobile phones according to their desired display effect for the smart wall switch 100, thereby achieving the goal of conveniently configuring the display interface of the smart wall switch 100.

[0142] For example Figure 25 When a preset interface with two buttons arranged side-by-side at the bottom of the screen is selected, the corresponding configuration data for that preset interface is packaged into a first instruction and sent via the cloud 300 to the communication module 411 of the smart wall switch 100. Upon receiving the first instruction, the communication module 411 parses the configuration data (which includes at least the interface elements representing the buttons in the preset interface, such as the number and position of each button) to generate a display interface corresponding to the preset interface on the smart wall switch 100. For example... Figure 26 In, according to the above Figures 2-23 The corresponding structural embodiment describes a schematic diagram of the display interface of the smart wall switch 100. In this example, Figure 25 The "Main Screen" under the screen layout page serves as the inherent main screen interface of the smart wall switch 100, while the preset interface selected by the user is set as the second screen interface of the display screen 5 of the smart wall switch 100. Switching between the various screen interfaces of the smart wall switch 100 can be, for example... Figure 26As shown. All interfaces in the screen layout interface are user-defined interfaces. If the user needs to define more interfaces, they can click the "Add Screen" button again to enter the add screen interface. Up to seven screens can be defined. Including the original main interface, the smart wall switch 100 will have eight interfaces. The predefined interfaces in the screen layout interface can be repeated. For example, the seven custom interfaces can all be preset interfaces with only one button.

[0143] Furthermore, the icon elements on the main screen interface can themselves be set as triggerable buttons, for example... Figure 26 The circular and oval icons can each be set as two buttons; their function settings can be found in the example below. Figure 28 The function settings of the buttons shown are explained here, but will not be elaborated upon.

[0144] In addition, the main screen of the smart wall switch 100 will also display the names of the physical buttons, such as Figure 26 The three physical buttons in the system correspond one-to-one with the three button names displayed on the main screen. Users can customize the specific text of the three button names to modify the names corresponding to each physical button.

[0145] Furthermore, the communication module 411 is also configured to: receive a function setting instruction, and in response to the function setting instruction, set the function of a first button among the buttons on the interface formed by the first instruction; the function setting instruction is generated directly or indirectly by the user defining the function of the first button on the terminal device 200.

[0146] In one exemplary use case, such as Figure 27 The diagram shown illustrates the configuration of the function of the first button of the smart wall switch 100 when a mobile phone is used as the terminal device 200 in this embodiment.

[0147] Reference Figure 27 In the example shown, within the interactive interface provided by the mobile application, the user enters the screen layout interface and clicks on the predefined second interface (i.e., the preset interface with the two buttons arranged side-by-side at the bottom of the screen in the example above). This leads to the screen button configuration interface of the second interface. Initially, the functions of each button on the second interface are not configured, and the location of each button will prompt the user to click to start configuration (e.g., displaying the text "Not configured, click to start configuration" to guide the user's operation). The user can trigger the corresponding configuration function by clicking the corresponding button.

[0148] Furthermore, based on the solution provided in this embodiment, users can not only customize the number and layout of buttons on each interface, but also customize the specific functions of each button to achieve further personalized configuration needs.

[0149] In some embodiments, the smart wall switch 100 further includes a relay 21 for electrically connecting a circuit, so that the communication module 411 can control the circuit via the relay 21. For example, when the smart wall switch 100 is used to control a light fixture, the circuit may be, for example, the power supply circuit of the light fixture, and the relay 21 is connected in series in the power supply circuit so as to control the power supply and de-energization of the light fixture's power supply circuit by opening and closing the relay 21.

[0150] After the network configuration is completed, the communication module 411 can communicate with the cloud 300; the functions include a first function and a second function;

[0151] Wherein, if the first button is set to a first function, the communication module 411 is further configured to switch the on / off state of the relay 21 in response to the operation of the first button to control the circuit; if the first button is set to a second function, the communication module 411 is further configured to send a trigger command to the cloud 300 in response to the operation of the first button, the trigger command representing the event currently being operated by the first button, so that the cloud 300 controls the trigger result defined by the target scenario to be executed according to the trigger command and the target scenario matching the trigger command; wherein the target scenario is generated by the user freely defining the mapping relationship between the trigger command and at least one trigger result on the terminal device 200, each trigger command representing an event of the first button set to a second function being operated, and each trigger result being at least one executable function of at least one controlled device belonging to the user of the smart wall switch.

[0152] Specifically, each user has a unique account and password on the corresponding application of the terminal device 200. After logging into the application with this account and password, they can add smart devices. These smart devices can be controlled devices (such as lamps) or controlled devices (such as the smart wall switch 100). Adding a smart device to the account can be understood as adding the user's device. Furthermore, after network configuration, the smart wall switch 100 is added to the user's account, and the communication module 411 after network configuration has network connectivity, enabling communication with the cloud 300. This allows indirect communication between the cloud 300 and the terminal device 200, enabling remote control and configuration.

[0153] In one exemplary use case, such as Figure 28 As shown, after the user clicks the button for unconfigured functions, they enter the specific configuration interface, which provides multiple configuration options for the user to choose from.

[0154] Reference Figure 28These configuration options include an associated button / scene option, which allows users to configure the button's function. Specifically, users can select the button or scene associated with that button, where the button includes physical buttons and preset wireless switches; where:

[0155] If the user selects a physical button, for example Figure 28 If button 1 (where the smart wall switch 100 has multiple physical buttons, which are numbered 1 to N in the mobile application and used to control the corresponding relay 21) is selected, then the first button is configured as the first function. When the user clicks the first button on the display screen 5, the first physical button will be triggered (e.g., ...). Figure 26 The physical buttons in the diagram correspond to the on / off state of relay 21.

[0156] If the user selects a wireless switch, for example Figure 28 In the case of wireless switch 1, the first button is configured as the second function. After the user clicks the first button on the display screen 5, the corresponding target scene will be triggered. This target scene is defined by the user on the mobile phone and uploaded to the cloud 300. For example, if the user defines a target scene where wireless switch 1 triggers a light to turn on, after the user clicks the first button on the display screen 5, the communication module 411 will upload the corresponding trigger command to the cloud 300. The cloud 300 matches the target scene according to the trigger command and controls the light to turn on according to the trigger result of turning on the light pointed to by the target scene.

[0157] In this embodiment, the wireless switch is virtual and multiple switches can be set. This allows users to freely define the number of buttons on each interface and associate them with the corresponding wireless switches to obtain multiple wireless switch trigger buttons. Users can also freely add or remove buttons on each interface via their mobile phones to adjust the number of wireless switch trigger buttons.

[0158] In addition, such as Figure 28 As shown, these configuration options also include button / scene name options, icon selection options, background color options, and background texture options. In the button / scene name option, the user can define the name corresponding to the button; in the icon selection, background color, and background texture options, the user can select the corresponding icon, background color, and background texture for the button.

[0159] After the user has defined all the configurations for the buttons, the mobile phone packages the corresponding configuration data and sends it to the communication module 411 via the cloud 300, so that the communication module 411 can set the buttons on the corresponding interface and achieve synchronization.

[0160] Furthermore, based on this embodiment, the functions of the buttons on the interface are fully open to the user, including their trigger functions, names, icons, background colors, and textures, to increase the user's freedom in configuring the buttons.

[0161] Furthermore, the first configuration instruction also carries interface switching order information, and the communication module 411 is further used to adjust the switching order of multiple display interfaces of the display screen 5 through the interface switching order information; the interface switching order information is obtained directly or indirectly by the user after performing at least one of the following operations:

[0162] The arrangement order of multiple interfaces defined on the smart wall switch is adjusted on the terminal device 200;

[0163] On the terminal device 200, several defined interfaces are deleted;

[0164] Define a new interface on the terminal device 200.

[0165] Furthermore, in this embodiment, users can adjust the switching order of each interface on the smart wall switch 100 by simply dragging and dropping on the terminal device 200. When operations such as deleting or adding defined interfaces are performed, the switching order of each interface on the smart wall switch 100 can be automatically adjusted, thus enabling convenient configuration of the interface switching order.

[0166] In one exemplary use case, such as Figure 29 As shown, in the interactive interface provided by the application, the selected preset interface will appear in the screen layout interface. Users can then see all the predefined interfaces on the screen layout page and adjust the order of multiple interfaces in the screen layout interface by dragging and dropping, or by deleting or adding a newly defined interface, thereby changing the switching order of the interfaces on display screen 5. Specifically, after the user finishes the dragging, deleting, or adding operations, the mobile application will send the configuration data corresponding to each interface in the screen layout to the cloud 300 in sequence, which will then be sent to the communication module 411. The communication module 411 generates the corresponding interface based on the configuration data and sets the switching order of the interfaces on display screen 5 according to the order of the interfaces reflected in the configuration data.

[0167] For example Figure 29 As shown, by dragging the second interface to the third interface in the direction indicated by the arrow, the user can swap the positions of the second and third interfaces. Before adjusting the order, the switching order of the various screens on the display screen 5 on the side of the smart wall switch 100 can be, for example... Figure 30 As shown, after adjusting the order, for example... Figure 31As shown.

[0168] In some embodiments, the first configuration instruction includes a second instruction, the second instruction carrying control interface information of at least one third-party device; wherein, the control interface information of the third-party device is generated after the user binds at least one of the third-party devices under the user to whom the smart wall switch belongs on the terminal device 200;

[0169] The communication module 411 is used to display the control interface of the third-party device through the display screen 5 according to the control interface information of the third-party device, so that the user can remotely control the third-party device according to the control interface provided by the smart wall switch.

[0170] The binding can be understood as establishing an association between the third-party device and the corresponding control interface of the smart wall switch 100, and storing this association in the cloud 300. This allows the cloud 300 to control the third-party device to perform the corresponding function when the user reports the trigger command generated by operating the control interface to the cloud 300.

[0171] The third-party device can be understood as any controlled or controlling device added to the user's account other than the smart wall switch 100, such as a wall switch, electronic doorbell, light, automatic curtains, fan, etc. The control it receives may include, but is not limited to:

[0172] Entering a certain state; for example, turning a wall switch on or off, turning a light on or off, ringing a doorbell, controlling a fan to start or stop rotating, automatically opening or closing curtains, turning a specified function on or off the receiver, etc.

[0173] Switch between two states; for example, flip (switch) the on / off state of a wall switch, flip (switch) the on / off state of a light, flip (switch) the on / off state of a fan, flip (switch) the on / off state of an automatic curtain, flip (switch) the on / off state of a function specified by the receiver, etc.

[0174] Change the operating parameters; for example, adjust the brightness of the lights, adjust the fan speed, adjust the degree of opening of the curtains, etc.

[0175] Depending on the application field of the bound third-party device, the specific content of the control interface of the smart wall switch 100 and the specific content of the third-party device being controlled can be changed arbitrarily, without departing from the scope of this utility model embodiment.

[0176] Specifically, after the network configuration is completed, the smart wall switch is added to a user and can communicate with the cloud 300; the communication module 411 remotely controls a third-party device based on the operation applied to the control interface, specifically, for example, in response to the operation on the control interface, it sends a remote control command to the cloud 300, so that the cloud 300 controls the third-party device to perform a corresponding function according to the remote control command and the control result matching the remote control command; wherein the correspondence between the remote control command and the control result is pre-stored in the cloud 300.

[0177] Based on this embodiment, a user can configure a certain display interface of the smart wall switch 100's display screen 5 as a remote control interface for a third-party device via the terminal device 200, so that a certain interface of the smart wall switch 100 presents the operation interface of the third-party device's remote control. Subsequently, the user can conveniently control the third-party device without the remote control of the third-party device and the mobile phone, solely through the operation interface of the smart wall switch 100. Furthermore, in this embodiment, multiple third-party devices can be bound to a mobile phone, so that multiple display interfaces of the smart wall switch 100 correspond to the remote control interfaces of multiple third-party devices respectively. Thus, the smart wall switch 100 becomes an integrated control terminal that integrates the remote control functions of multiple third-party devices, allowing the user to quickly switch between the remote control interfaces of different third-party devices by switching between the various display interfaces.

[0178] In one exemplary use case, such as Figure 32 The diagram shown is a schematic representation of the control interface for a third-party device defined in this embodiment. (Refer to...) Figure 32 In the interactive interface provided by the mobile application, enter the screen layout interface, click the "Add Screen" button to enter the Add Screen interface. In addition to providing eight preset interfaces for users to choose from, the Add Screen interface also provides the "Bind Third-Party Device" option for users to choose. After selecting this option, users will enter the third-party device selection interface, which lists multiple third-party devices belonging to the user. Users can click on the third-party device they want to bind to complete the corresponding binding, thereby generating the corresponding control interface on the smart wall switch 100.

[0179] For example, the user clicked on... Figure 32 If a wall switch is selected, a corresponding binding relationship will be established. The mobile application will send the corresponding information of the wall switch to the communication module 411 via the cloud 300, causing the communication module 411 to instruct the display screen 5 to generate a control interface corresponding to the wall switch. For example... Figure 33 As shown, the control interface displays the three switch buttons of the three relays 21 of the smart wall switch 100. Users can then directly trigger the three switch buttons through the control interface to switch the corresponding relays 21 on / off.

[0180] In some embodiments, the communication module 411 is further configured to:

[0181] After network configuration, a second configuration instruction is received from the designated network; in response to the second configuration instruction, corresponding image information is obtained from the designated network, and the display screen 5 is instructed to update the background image of the corresponding interface based on the image information; wherein the second configuration instruction is obtained directly or indirectly by the user after freely selecting the image information on the terminal device 200.

[0182] Furthermore, users can freely define the background of each interface of the smart wall switch 100 through the terminal device 200 to easily switch between different background themes. Specifically, the smart wall switch 100 has a fixed main screen interface, for example... Figure 26 The "Main Screen" under the screen layout page is the inherent main screen interface of the smart wall switch 100. Users cannot delete the "Main Screen", but they can change the background image of the main screen interface through the "Theme Background" option provided by the application of the terminal device 200, so as to realize the free configuration of the main screen interface.

[0183] Furthermore, to conserve local storage space in the communication module 411, image information corresponding to multiple different themes is stored on a remote server. The user selects multiple themes on the interactive interface provided by the application on the terminal device 200. The application sends the address information (e.g., URL address) corresponding to the selected theme to the communication module 411 via the cloud 300. The communication module 411 then sends a request (e.g., an HTTP download request) to the remote server based on this address information to download the image information corresponding to the selected theme from the remote server. The communication module 411 stores the acquired image information locally and uses it as the background image of the main screen interface. It is understandable that image data is generally large (e.g., over 1KB). If all of it were stored locally in the communication module 411, it would occupy too much local storage space. Since the communication module 411 itself has limited storage space, excessive storage space usage could affect the processing of other tasks. Therefore, the communication module 411 based on this embodiment does not need to store the image information corresponding to multiple themes locally. It only needs to download the corresponding image information from the remote server according to the address information after the user selects the corresponding theme. In this way, it can take into account the selection of multiple themes while saving the local memory of the communication module 411.

[0184] Furthermore, the remote server can be a different server from the cloud 300. Specifically, the remote server can be used solely for data storage (such as the image information mentioned above), while the cloud 300 is used for instruction processing and forwarding, as well as a third-party platform for the coordinated management of different devices. For example, the remote server may use a Kingsoft Cloud storage server, while the cloud 300 may use a Xiaomi Cloud server. This separation of functions between the two servers improves the overall system efficiency. The third-party platform in subsequent embodiments can also be understood in the same way.

[0185] Furthermore, based on the above solution, this embodiment can further connect the display screen 5 directly to the communication module 411, so that the display screen 5 can be directly driven by the communication module 411 without the aid of a dedicated driver chip, making the hardware driving circuit of the display screen 5 simpler and the circuit stability better.

[0186] In a further example, the communication module 411 can be a WIFI module, which integrates WIFI communication functions and an operating system. Since the image data corresponding to multiple themes does not need to be stored locally, the display screen 5 can be directly driven by the WIFI module. Specifically, the WIFI module can transmit display data via the SPI bus and touch data via the IIC bus. The operating frequency of the communication module 411 is set to be at least twice the SPI serial clock frequency of the display screen 5. For example, the WIFI module can be an ESP-WROOM-32D wireless MCU module, which supports WIFI and Bluetooth dual-mode communication and has a maximum operating frequency of 240MHz. The display screen 5 uses a TFT-LCD screen, and in this embodiment, its operating frequency is set to 160MHz, and the SPI serial clock frequency of the display screen 5 is set to 80MHz. The ESP-WROOM-32D wireless MCU module can be used to directly drive the display screen 5 without the need for a font library. Taking the display screen 5 showing text as an example, the specific working process of the ESP-WROOM-32D wireless MCU module is explained as follows: First, the font is preprocessed by converting it into binary code, adding encoding indexes, width and height information to form an array, and then compressing and storing the array in flash memory. After the device is powered on, it is decompressed into RAM (such as the external memory involved in subsequent embodiments). When displaying text, the binary code corresponding to the array is located according to the Unicode encoding index of the text, and then drawn onto the display screen 5. In this embodiment, the default font is Source Han Sans Regular. In addition, for the display of date, time, and temperature, this embodiment uses the Roboto Regular font.

[0187] In a further example, to improve data transmission efficiency, the image information obtained from the remote server may be compressed. After obtaining the image information, the communication module 411 decompresses it and then instructs the display screen 5 to generate the corresponding interface.

[0188] In one exemplary use case, such as Figure 34 As shown, users can access the theme plaza configuration interface by clicking the theme plaza option. This interface offers multiple themes to choose from, such as... Figure 34 Themes such as Obsidian, Bright Moon, and Ocean Waves are available. By selecting a corresponding theme, users can change the background image of the main screen interface of the display screen 5 on the side of the smart wall switch 100, as well as the background of other interfaces.

[0189] In addition, the main screen of the smart wall switch 100 and other defined interfaces will also display other information such as time, temperature and / or location. The so-called theme switching can be more than just changing the background image of the interface, but can also include changing the layout of the interface elements of each interface. As the theme changes, the position and display format of this information on each interface will also change accordingly.

[0190] Furthermore, the communication module 411 is also used to: keep at least some interface elements of at least some interfaces formed based on the first configuration instruction the same before and after updating the background image of the corresponding interface based on the second configuration instruction.

[0191] Furthermore, the interface elements of each interface of the display screen 5 defined based on the first configuration instruction are at least partially shared with the interface elements of each interface of the display screen 5 defined based on the second configuration instruction, so that users can share some interface configurations when defining the two separately.

[0192] Specifically, the first configuration instruction is mainly used to configure the number, layout, and functions of buttons on each interface, while the second configuration instruction is mainly used to configure the theme background of each interface. Combined, these two instructions can basically meet the personalized customization needs of most users for the smart wall switch 100. In this embodiment, the configuration data corresponding to both the first and second configuration instructions are stored locally in the communication module 411, ensuring that the theme background configuration and the interface layout configuration are shared. That is, when a user switches the theme background, the already defined interface layout will not disappear. Similarly, when a user switches between interface layouts (e.g., adding or removing interfaces, modifying the button functions of a certain interface), the already defined theme background will not disappear due to the change in interface layout. Therefore, the settings for interface layout and theme background are independent and do not affect each other, facilitating user configuration.

[0193] In some embodiments, the smart wall switch further includes an infrared detection device 48 for emitting detection waves to form a designated detection area, and includes multiple selectable drive circuits for driving the outward emission of the detection waves; wherein the drive resistance of each drive circuit is different, so that the range of the designated detection area corresponding to each drive circuit is different.

[0194] The communication module 411 is also used to: acquire the detection result of the infrared detection device 48, and switch the working state of the display screen 5 according to the detection result; the working state includes at least an off state and a screen-on state; and to change the selected driving circuit to adjust the detection distance.

[0195] Specifically, the drive circuit that selects the change is used for:

[0196] The infrared detection device 48 is turned off according to the first selection signal;

[0197] The first drive circuit in the multiplex drive circuit is selected according to the second selection signal; or...

[0198] The second drive circuit in the multiplex drive circuit is selected according to the third selection signal;

[0199] The difference in resistance between the driving resistor of the first driving circuit and the driving resistor of the second driving circuit is greater than or equal to 50Ω; the first selection signal is generated after the first of a plurality of distance positions preset on the terminal device 200 is selected, the second selection signal is generated after the second of the plurality of positions is selected, and the third selection signal is generated after the third of the plurality of positions is selected.

[0200] The specific implementation method and implementation principle of the infrared detection device 48 involved in this embodiment will be described in detail in subsequent embodiments, and will not be elaborated here.

[0201] In addition to providing a smart wall switch 100 as described in the above embodiments, another embodiment of this utility model also provides a configuration method for the smart wall switch 100. This configuration method is applicable to the smart wall switch 100 described in the above embodiments. Therefore, correspondingly, in the application environment of the configuration method described in this utility model embodiment, refer to... Figure 1 and Figure 24 As shown, the system includes a smart wall switch 100, a cloud platform 300, and a terminal device 200. The smart wall switch 100 includes a communication module 411, a display screen 5, and a relay 21. Figure 35 As shown, the configuration method of the smart wall switch 100 specifically includes:

[0202] S1. Receive a first configuration instruction; the first configuration instruction carries interface element information;

[0203] S2. In response to the interface element information, the display screen 5 of the smart wall switch 100 is instructed to generate a corresponding interface;

[0204] At least some of the interface elements in the interface element information are defined by the user on a terminal device 200 that has pre-established communication with the smart wall switch 100.

[0205] Furthermore, based on the solutions provided in the above embodiments, the smart wall switch 100 provided by this utility model supports users to freely customize the smart wall switch 100. Specifically, the smart wall switch 100 provided in this embodiment allows the terminal device 200 to freely define the interface elements on each display interface of the display screen 5. The defined interface elements are sent to the smart wall switch 100 through a designated network, so that the smart wall switch 100 can instruct the display screen 5 to generate the display interface desired by the user. Based on this, the smart wall switch 100 provided in this embodiment has more playability than traditional smart wall switches, supports rich personalized customization needs of users, and users can define each display interface through terminal devices 200 such as mobile phones and computers, which is convenient and quick.

[0206] Furthermore, in some embodiments, before receiving the first configuration instruction, the following steps are also included:

[0207] S0. In response to a specified operation, join a specified network to establish a correspondence with a terminal device 200 to complete network configuration, and then establish communication with the terminal device 200.

[0208] Furthermore, after network configuration, it can receive a first configuration command from the designated network.

[0209] In some embodiments, the first configuration instruction includes a first instruction.

[0210] Furthermore, step S1 further includes S11, obtaining the first instruction.

[0211] Step S2 further includes S21, forming a corresponding interface based on the interface element information carried in the first instruction. The interface element information carried in the first instruction is obtained by the user selecting one of at least two preset interfaces on the terminal device 200. Both preset interfaces include buttons, and the buttons in the two preset interfaces differ in at least one of the following: number, layout, or function.

[0212] Furthermore, step S1 further includes S12, receiving a function setting instruction.

[0213] Step S2 further includes S22, in response to the function setting instruction, setting the function of the first button among the buttons on the interface formed by the first instruction.

[0214] The function setting instructions are generated directly or indirectly by the user after defining the function of the first button on the terminal device 200.

[0215] Furthermore, step S22 further includes:

[0216] S221. If the first button is set to a first function, the on / off state of the relay 21 of the smart wall switch 100 is switched in response to the operation of the first button; and,

[0217] S222. If the first button is set to a second function, a trigger instruction is sent to the cloud 300 in response to the operation of the first button. The trigger instruction represents the event that the currently triggered first button is currently being operated, so that the cloud 300 controls the execution of the trigger result defined by the target scenario according to the trigger instruction and the target scenario that matches the trigger instruction. The target scenario is generated by the user freely defining the mapping relationship between the trigger instruction and at least one trigger result on the terminal device 200. Each trigger instruction represents an event that the first button set to a second function is operated, and each trigger result is at least one executable function of at least one controlled device belonging to the user of the smart wall switch.

[0218] In some embodiments, the first configuration instruction also carries interface switching order information.

[0219] Step S2 further includes:

[0220] S23. Adjust the sequential switching order of multiple display interfaces on the display screen 5 using the interface switching order information.

[0221] The interface switching sequence information is obtained directly or indirectly by the user after performing at least one of the following operations (1) to (3):

[0222] (1) Adjust the arrangement order of multiple interfaces defined on the smart wall switch on the terminal device 200;

[0223] (2) On the terminal device 200, delete or reduce the number of defined interfaces;

[0224] (3) Define a new interface on the terminal device 200.

[0225] In some embodiments, the first configuration instruction includes a second instruction, the second instruction carrying control interface information of at least one third-party device; wherein, the control interface information of the third-party device is generated after the user binds at least one of the third-party devices under the user to whom the smart wall switch belongs on the terminal device 200.

[0226] Step S1 further includes S13, obtaining the second instruction.

[0227] Step S2 further includes S24, displaying the control interface of the third-party device through the display screen 5 according to the control interface information of the third-party device carried in the second instruction, so that the user can remotely control the third-party device according to the control interface provided by the smart wall switch.

[0228] Furthermore, after network configuration is completed, the smart wall switch is added to a user account and can communicate with the cloud via 300. Then, after configuration is completed on the control interface of the third-party device, the configuration method further includes:

[0229] S3. In response to the operation of the control interface, a remote control command is sent to the cloud 300, so that the cloud 300 controls the third-party device to perform the corresponding function according to the remote control command and the control result matching the remote control command; wherein the correspondence between the remote control command and the control result is pre-stored in the cloud 300.

[0230] In some embodiments, the configuration method further includes:

[0231] S4. Receive a second configuration command;

[0232] S5. In response to the second configuration instruction, obtain the corresponding image information from the specified network;

[0233] S6. Based on the image information, instruct the display screen 5 to update the background image of the corresponding interface;

[0234] The image information is obtained directly or indirectly by the user after freely selecting it on the terminal device 200.

[0235] Furthermore, the configuration method also includes S7, maintaining at least some interface elements in at least some interfaces formed based on the first configuration instruction the same before and after updating the background image of the corresponding interface based on the second configuration instruction.

[0236] Furthermore, existing smart wall switches with screens primarily use dedicated driver chips to drive the screens, resulting in complex and cumbersome display drive circuitry. (Refer to [reference needed]) Figure 1 , Figure 24As shown, one embodiment of this utility model also provides an intelligent wall switch 100, wherein the display screen 5 is directly driven by the communication module 411.

[0237] It is worth noting that this embodiment focuses on the description of the software and hardware supporting the smart wall switch 100. For the structural implementation of the smart wall switch 100 in this embodiment, the design and implementation principles of the corresponding structural schemes in the aforementioned embodiments can be referred to. For the same parts in this embodiment and the aforementioned embodiments of the smart wall switch 100, the accompanying drawings can be used, and the corresponding embodiments can be understood by referring to them. Some features, implementation methods, and implementation principles are not described in detail in this embodiment. In this utility model embodiment, a smart wall switch 100 is described in detail as follows.

[0238] Reference Figure 24 The smart wall switch 100 includes at least a communication module 411 and a display screen 5.

[0239] The communication module 411 is directly electrically connected to the display screen 5 to directly drive the display screen 5, and is used to: obtain configuration data from the cloud 300, the configuration data carrying interface element information; and instruct the display screen 5 to generate a corresponding interface based on the interface element information.

[0240] Furthermore, based on the above solution, in the smart wall switch 100 provided in this embodiment, the configuration data required by the communication module 411 to configure the display screen 5 is not stored locally, so that the communication module 411 does not need a large storage space locally, so that the display screen 5 can be directly electrically connected through the communication module 411, so that the display screen 5 can be directly driven through the communication module 411 without the aid of a dedicated driver chip, making the hardware driving circuit of the display screen 5 simpler and the circuit stability better.

[0241] Furthermore, the communication module 411 is also used for:

[0242] Before network distribution, it responds to a specified operation to join a specified network in order to establish a correspondence with a terminal device 200;

[0243] After the network configuration is completed, the communication module 411 can communicate with the cloud 300 to receive a second configuration command from the designated network after the network configuration; in response to the second configuration command, it obtains the corresponding configuration data from the designated network; wherein the second configuration command is obtained directly or indirectly by the user after freely selecting on the terminal device 200.

[0244] Furthermore, the smart wall switch 100 provided in this embodiment has a display screen 5 and a communication module 411 with a networking function. Users can establish a connection with the terminal device 200 through the network configuration of the communication module 411, and then freely define the interface elements on each display interface of the display screen 5 through the terminal device 200. The defined interface elements are sent to the communication module 411 through a specified network so that the communication module 411 can instruct the display screen 5 to generate the display interface desired by the user.

[0245] Furthermore, the configuration data is greater than or equal to 1KB.

[0246] Furthermore, the configuration data includes at least one image data, and thus the interface element information includes at least one image information.

[0247] Furthermore, the second configuration instruction includes address information, which indicates the storage location of the configuration data and is obtained directly or indirectly by the user after freely selecting the image information on the terminal device 200;

[0248] The communication module 411 is specifically used to download corresponding image data from the designated network according to the address information; and to instruct the display screen 5 to update the background image of the corresponding interface based on the image data.

[0249] Furthermore, users can freely define the background of each interface of the smart wall switch 100 through the terminal device 200 to easily switch between different background themes. Specifically, the smart wall switch 100 has a fixed main screen interface, for example... Figure 26 The "Main Screen" under the screen layout page is the inherent main screen interface of the smart wall switch 100. Users cannot delete the "Main Screen", but they can change the background image of the main screen interface through the "Theme Background" option provided by the application of the terminal device 200, so as to realize the free configuration of the main screen interface.

[0250] In a specific example, to save local storage space of the communication module 411, image information corresponding to multiple different themes is stored on a remote server. The user selects multiple themes on the interactive interface provided by the application of the terminal device 200. The application sends the address information (e.g., URL address) corresponding to the selected theme to the communication module 411 through the cloud 300. The communication module 411 sends a request (e.g., HTTP download request) to the remote server based on the address information to download the image information corresponding to the selected theme from the remote server. The communication module 411 stores the acquired image information locally and uses it as the background image of the corresponding interface.

[0251] It is understandable that image data is generally large (e.g., 1KB or more). If all of it were stored locally on the communication module 411, it would occupy too much local storage space. Since the communication module 411 itself has limited storage space, excessive storage space usage could affect the processing of other tasks. Therefore, in this embodiment, the communication module 411 does not need to store image information corresponding to multiple themes locally. It only needs to download the corresponding image information from a remote server based on the address information after the user selects the theme. This allows for the selection of multiple themes while saving local memory on the communication module 411.

[0252] Furthermore, the remote server can be a different server from the cloud 300. Specifically, the remote server can be used solely for data storage (such as the image information mentioned above), while the cloud 300 is used for instruction processing and forwarding, as well as a third-party platform for the coordinated management of different devices. For example, the remote server may use a Kingsoft Cloud storage server, while the cloud 300 may use a Xiaomi Cloud server from Mijia. This separation of functions between the two servers improves the overall efficiency of the system. The third-party platform in subsequent embodiments can also be understood in the same way.

[0253] In a further example, the communication module 411 can be a WIFI module, which integrates WIFI communication functions and an operating system. Since the image data corresponding to multiple themes does not need to be stored locally, the display screen 5 can be directly driven by the WIFI module. Specifically, the WIFI module can transmit display data via the SPI bus and touch data via the IIC bus. The operating frequency of the communication module 411 is set to be at least twice the SPI serial clock frequency of the display screen 5. For example, the WIFI module can be an ESP-WROOM-32D wireless MCU module, which supports WIFI and Bluetooth dual-mode communication and has a maximum operating frequency of 240MHz. The display screen 5 uses a TFT-LCD screen, and in this embodiment, its operating frequency is set to 160MHz, and the SPI serial clock frequency of the display screen 5 is set to 80MHz. The ESP-WROOM-32D wireless MCU module can be used to directly drive the display screen 5 without the need for a font library. Taking the display screen 5 showing text as an example, the specific working process of the ESP-WROOM-32D wireless MCU module is explained as follows: First, the font is preprocessed by converting it into binary code, adding encoding indexes, width and height information to form an array, and then compressing and storing the array in flash memory. After the device is powered on, it is decompressed into RAM (such as the external memory involved in subsequent embodiments). When displaying text, the binary code corresponding to the array is located according to the Unicode encoding index of the text, and then drawn onto the display screen 5. In this embodiment, the default font is Source Han Sans Regular. In addition, for the display of date, time, and temperature, this embodiment uses the Roboto Regular font.

[0254] In a further example, to improve data transmission efficiency, the image information obtained from the remote server may be compressed. After obtaining the image information, the communication module 411 decompresses it and then instructs the display screen 5 to generate the corresponding interface.

[0255] In one exemplary use case, such as Figure 34 As shown, users can access the theme plaza configuration interface by clicking the theme plaza option. This interface offers multiple themes to choose from, such as... Figure 34 Themes such as Obsidian, Bright Moon, and Ocean Waves are available. By selecting a corresponding theme, users can change the background image of the main screen interface of the display screen 5 on the side of the smart wall switch 100, as well as the background of other interfaces.

[0256] In addition, the main screen of the smart wall switch 100 and other defined interfaces will also display other information such as time, temperature and / or location. The so-called theme switching can be more than just changing the background image of the interface, but can also include changing the layout of the interface elements of each interface. As the theme changes, the position and display format of this information on each interface will also change accordingly.

[0257] In some embodiments, the communication module 411 is provided with a buffer; the buffer is used to store the data used for interface refresh;

[0258] The size of the cache is a, and the amount of data required for a complete interface refresh is b.

[0259] Then we have: 10 / b <a<b / 2;

[0260] The communication module 411 is also used for:

[0261] The interface is refreshed at least twice during the switching between the two interfaces.

[0262] Furthermore, the communication module 411 refreshes the display screen 5 in at least two separate processes each time, in order to reduce the space required for the buffer area to refresh the display screen 5.

[0263] In a specific example, a = b / 3, meaning that the communication module 411 refreshes the display screen 5 in at least three steps each time. Specifically, the amount of data stored in the buffer of the communication module 411 is sufficient to refresh one-third of the interface of the display screen 5. Therefore, during the refresh, the interface of the display screen 5 is divided into three parts from top to bottom, and the communication module 411 refreshes the interface three times from top to bottom.

[0264] Furthermore, the communication module 411 is also used for:

[0265] During interface switching, the screen is turned off for 50ms to 100ms to mask the discontinuity of the screen refresh process and improve the user's sensory experience.

[0266] Furthermore, such as Figure 36 As shown, the communication module 411 includes a WIFI module; the WIFI module is electrically connected to the display screen 5 via an SPI bus to drive the display screen 5 to display the corresponding interface, and is also electrically connected to the display screen 5 via an IIC bus to detect touch screen operations on the display screen 5. Furthermore, separating the touch data and display data transmission routes improves data transmission and processing efficiency and enhances the stability of the WIFI module driving the display screen 5.

[0267] Furthermore, the operating frequency of the WIFI module is greater than or equal to twice the serial clock frequency of the SPI bus of the display screen 5 to ensure the display effect of the display screen 5. In a specific example, the operating frequency of the WIFI module can be set to 160MHz, and the serial clock frequency of the SPI bus of the display screen 5 can be set to 80MHz.

[0268] In some embodiments, the smart wall switch 100 further includes an infrared detection device 48 for emitting a detection wave to form a designated detection area, and includes multiple selectable drive circuits for driving the outward emission of the detection wave; wherein the drive resistance of each drive circuit is different, so that the range of the designated detection area corresponding to each drive circuit is different.

[0269] The communication module 411 is used to acquire the detection result of the infrared detection device 48 and switch the working state of the display screen 5 according to the detection result; the working state includes at least an off state and a screen-on state;

[0270] The communication module 411 can change the selected driving circuit to adjust the detection distance.

[0271] Furthermore, the communication module 411 can turn off the infrared detection device 48 according to the first selection signal, the communication module 411 can select the first driving circuit in the multiple driving circuit according to the second selection signal, and the communication module 411 can select the second driving circuit in the multiple driving circuit according to the third selection signal; wherein the difference between the driving resistance of the first driving circuit and the driving resistance of the second driving circuit is greater than or equal to 50Ω.

[0272] The first selection signal is generated after the first of a plurality of preset distance settings on the terminal device 200 is selected; the second selection signal is generated after the second of the plurality of settings is selected; and the third selection signal is generated after the third of the plurality of settings is selected.

[0273] Furthermore, the infrared emitting unit has an infrared LED, the infrared receiving unit has an infrared receiving head, and the smart wall switch covers the infrared LED, the infrared receiving head, and the display screen with a transparent cover. The transparent cover has a first light-transmitting hole at the corresponding position of the infrared receiving unit and the infrared receiving head, and a black IR layer is sprayed at the corresponding position of the first light-transmitting hole, so that the transmittance of the detection wave corresponding to the infrared light through the first light-transmitting hole is greater than 70%, and the transmittance of natural light through the first light-transmitting hole is less than 30%. The driving resistance of the first driving circuit is set to be greater than or equal to 47Ω, and the driving resistance of the second driving circuit is set to be greater than or less than 100Ω.

[0274] The specific implementation method and implementation principle of the infrared detection device 48 involved in this embodiment will be described in detail in subsequent embodiments, and will not be elaborated here.

[0275] In addition, see Figure 1 , Figure 24 , Figure 37 As shown, one embodiment of this utility model also provides a smart wall switch 100. (Refer to...) Figure 37 The smart wall switch 100 is adapted to be connected to a circuit and used to control the circuit.

[0276] It is worth noting that this embodiment focuses on describing some of the structure and hardware supporting the smart wall switch 100. For the complete structural implementation of the smart wall switch 100 and other software and hardware implementations in this embodiment, the corresponding structural design, software design, hardware design, and implementation principles in the aforementioned embodiments can be referenced. The corresponding embodiments can be understood by referring to them. Some features, implementation methods, and implementation principles are not described in detail in this embodiment. In this utility model embodiment, a smart wall switch 100 is described in detail as follows.

[0277] Due to the high cost of driving the screen, existing smart wall switches with screens primarily use dedicated driver chips, resulting in complex and cumbersome display driving circuits. Therefore, overcoming the shortcomings of this existing technology is a pressing issue in this field.

[0278] Specifically, the smart wall switch 100 includes a housing 1, a circuit carrier, a display screen 5, and a communication module 411.

[0279] The circuit carrier is disposed on the bottom shell 1, and the display screen 5 is disposed on the open side of the bottom shell 1 so that when the smart wall switch 100 is installed in the wall based on the bottom shell 1, the display screen 5 can face outward for operation. The circuit carrier carries at least a communication module 411. The communication module 411 and the display screen 5 are directly electrically connected to directly drive the display screen 5.

[0280] Furthermore, the display screen 5 is a color screen, and the pixel count is set to be greater than or equal to 12,000 pixels to ensure display quality;

[0281] The communication module 411 has communication functions and is suitable for accessing a third-party platform. The third-party platform can be understood as an IoT platform with linkage functions and management capabilities, such as Mijia, HarmonyOS, and Tuya. Because the business model of such IoT platforms determines that they must provide merchants who access the platform with a communication module 411 that can access the platform, so that merchants can develop products with platform access capabilities based on the communication module 411 provided by the platform.

[0282] Based on this, the present invention further connects the communication module 411 directly to the display screen 5 to directly drive the display screen 5, and the communication module 411 directly drives the touch function of the display screen 5. The communication module 411 is further connected to at least one external memory, so that the smart wall switch 100 provided by the present invention can directly drive the display screen 5 through the communication module 411 without relying on a dedicated driver chip, while having the ability to access third-party platforms and a good display effect. This makes the hardware driving circuit of the display screen 5 simpler and the circuit stability better.

[0283] In some embodiments, the external storage includes a RAM memory of 2MB to 8MB in size to ensure data response speed during screen driving. Specifically, a PSRAM memory of model ESP-PSRAM16H can be used, which has 2MB of storage space available for the communication module 411 to access.

[0284] Specifically, as described in the above embodiments, the circuit carrier may include a first circuit board 4 for carrying low-voltage circuits and a second circuit board for carrying high-voltage circuits, with the communication module 411 disposed on the first circuit board 4. The implementation method and principle of the bottom shell 1 and the structural relationship between the bottom shell 1 and the display screen 5 can be understood by referring to the description of the embodiments corresponding to the above structural scheme, and will not be repeated here. "Outward" can be understood as facing the side that the user can operate. Furthermore, it is worth noting that the display screen 5 may have its own processing chip for processing the data sent by the communication module 411 for display; therefore, the direct electrical connection between the communication module 411 and the display screen 5 should include an electrical connection through the processing chip integrated into the display screen 5.

[0285] In some embodiments, the pixel count of the display screen is set to be less than or equal to 240×320.

[0286] In some embodiments, such as Figure 36 As shown, the communication module 411 includes a WIFI module; the WIFI module is electrically connected to the display screen 5 via an SPI bus to drive the display screen 5, and is electrically connected to the display screen 5 via an IIC bus to detect touch operations on the display screen 5.

[0287] Specifically, if the first position of the display screen 5 is detected to be touched, and the touch is maintained for a period of time and then moves to the second position, and the distance between the first position and the second position exceeds a specified threshold, it is determined to be a sliding operation.

[0288] Furthermore, the WIFI module can transmit display data via the SPI bus and touch data via the IIC bus. The operating frequency of the communication module 411 is set to be at least twice the SPI serial clock frequency of the display screen 5. For example, the WIFI module uses the ESP-WROOM-32D wireless MCU module, which supports dual-mode WIFI and Bluetooth communication and has a maximum operating frequency of 240MHz. The display screen 5 uses a TFT-LCD screen, and in this embodiment, its operating frequency is set to 160MHz, and the SPI serial clock frequency of the display screen 5 is set to 80MHz. The ESP-WROOM-32D wireless MCU module can be used to directly drive the display screen 5 without using a font library. Taking the display screen 5 displaying text as an example, the specific working process of the ESP-WROOM-32D wireless MCU module is explained as follows: First, the font is preprocessed, converted into binary code, and some encoding index, length and width information are added to form an array. Then, the array is compressed and stored in flash memory. After the device is powered on, it is decompressed into RAM (such as the external memory involved in subsequent embodiments). When displaying text, the binary code corresponding to the array is indexed according to the Unicode encoding of the text, and then drawn onto the display screen 5. In this embodiment, the default font is Source Han Sans Regular. In addition, the Roboto Regular font is used for displaying the date, time, and temperature.

[0289] In some embodiments, the communication module 411 is provided with a buffer area; the buffer area is used to store data used to refresh the display screen 5;

[0290] The size of the buffer is a, and the data size required for the display screen 5 to refresh completely once is b;

[0291] Then we have: b / 10 <a<b / 2。

[0292] Therefore, the communication module 411 refreshes the display screen 5 in at least two separate processes to reduce the size of the buffer required for refreshing the display screen 5. Specifically, in the example where a = b / 3, the communication module 411 refreshes the display screen 5 in at least three separate processes. Specifically, if the amount of data stored in the buffer of the communication module 411 is sufficient to refresh one-third of the display screen 5's interface, then during the refresh, the display screen 5's interface is divided into three parts from top to bottom, and the communication module 411 refreshes the interface three times from top to bottom.

[0293] Furthermore, such as Figure 38 As shown, the external memory (e.g., RAM memory) is electrically connected to the WIFI module so that the WIFI module can call it when driving the display screen 5, thereby improving the driving effect of the display screen.

[0294] In some embodiments, the smart wall switch further includes an infrared detection device 48 for emitting detection waves to form a designated detection area, and includes multiple selectable drive circuits for driving the outward emission of the detection waves; wherein the drive resistance of each drive circuit is different, so that the range of the designated detection area corresponding to each drive circuit is different; the communication module can change the selected drive circuit to adjust the detection range, wherein the resistance difference between any two drive circuits is greater than 10Ω.

[0295] Furthermore, the driving circuit includes a first driving circuit and a second driving circuit, wherein the resistance difference between the driving resistor of the first driving circuit and the driving resistor of the second driving circuit is greater than or equal to 50Ω.

[0296] Furthermore, the infrared emitting unit has an infrared light-emitting tube, the infrared receiving unit has an infrared receiving head, and the smart wall switch covers the infrared light-emitting tube, the infrared receiving head, and the display screen through a transparent cover plate. The transparent cover plate has a first light-transmitting hole at the corresponding position of the infrared receiving unit and the infrared receiving head, and a black IR layer is sprayed at the corresponding position of the first light-transmitting hole, so that the transmittance of the detection wave corresponding to the infrared light through the first light-transmitting hole is greater than 70%, and the transmittance of natural light through the first light-transmitting hole is less than 30%.

[0297] Furthermore, the driving resistance of the first driving circuit is set to be greater than or equal to 47Ω, and the driving resistance of the second driving circuit is set to be greater than or less than 100Ω.

[0298] Furthermore, a 100Ω driving resistor is connected in series on the first driving circuit, and a 499Ω driving resistor is connected in series on the second driving circuit, so that when the first driving circuit is selected, there is a detection distance A, and when the second driving circuit is selected, there is a detection distance B; wherein the value of A ranges from 80cm to 100cm, and the value of B ranges from 20cm to 30cm.

[0299] In some embodiments, the bottom shell is provided with a first receiving groove; the smart wall switch further includes a carrier housing that covers the bottom shell, the carrier housing having a second receiving groove at a position corresponding to the first receiving groove, the second receiving groove being at least partially received in the first receiving groove; the circuit carrier includes a first circuit board disposed on the side of the carrier housing facing away from the bottom shell, the second receiving groove being open toward the first circuit board, the first circuit board covering the second receiving groove; the first circuit board having a first surface facing the carrier housing, a communication module disposed on the first surface being received in the second receiving groove.

[0300] The specific implementation method and implementation principle of the infrared detection device 48 involved in this embodiment will be described in detail in subsequent embodiments, and will not be elaborated here.

[0301] In some embodiments, such as Figures 4-6 and Figure 8 As shown, the bottom shell 1 is provided with a first receiving groove 11; the smart wall switch 100 also includes a supporting shell 3, which covers the bottom shell 1, and the supporting shell 3 is provided with a second receiving groove 31 at a position corresponding to the first receiving groove 11, the second receiving groove 31 being at least partially accommodated in the first receiving groove 11; the circuit carrier includes a first circuit board 4, which is disposed on the side of the supporting shell 3 away from the bottom shell 1, the second receiving groove 31 is open toward the first circuit board 4, and the first circuit board 4 covers the second receiving groove 31; the first circuit board 4 has a first surface 42 facing the supporting shell 3, and the communication module 411 disposed on the first surface 42 is accommodated in the second receiving groove 31.

[0302] The features in this embodiment are mainly a description of the structural scheme, which is intended to express the relevant design of the structure that helps the communication module 411 to directly drive the display screen 5. The specific implementation and principle of the structural features such as the bearing housing 3, the first circuit board 4, the first receiving groove 11, and the second receiving groove 31 can be understood by referring to the description in the foregoing embodiment.

[0303] Furthermore, based on this embodiment, the communication module 411 is disposed on the side of the first circuit board 4 facing away from the display screen 5, so as to improve the impact of the heat generated by the display screen 5 during operation on the communication module 411, so that the temperature of the communication module 411 is within a suitable range to maintain a better working state, thereby making it more convenient for the communication module 411 to directly drive the display screen 5.

[0304] In this embodiment of the present invention, an implementation method is provided for the infrared detection device 48 involved in the above embodiments, and the solution provided in this embodiment can be applied to any of the above embodiments.

[0305] Understandably, wall-mounted smart wall switches 100 are generally placed in locations easily accessible to human hands, making their usage environment quite complex. Since infrared detection technology relies on the active transmission and reception of infrared waves for external detection, any object reflecting these waves could trigger the detection of approaching individuals. Therefore, the industry generally believes that infrared detection technology is unsuitable for the complex usage scenarios of smart wall switches 100, resulting in its exclusion from wall-mounted smart wall switches 100 to date. Instead, other proximity sensing technologies with strong anti-interference capabilities, such as infrared pyroelectric and microwave radar, have been adopted. However, infrared pyroelectric requires Fresnel lenses, affecting the overall appearance and structure of the smart wall switch 100, while microwave radar is expensive. For some low-cost smart wall switches 100, controlling manufacturing costs hinders their large-scale market application.

[0306] Based on this, the smart wall switch 100 provided in this embodiment uses infrared detection technology for proximity sensing, and the proximity sensing distance can be freely defined by the user to improve the interference caused by the complexity of the smart wall switch 100.

[0307] Specifically, the display screen 5 has at least two operating states: screen off and screen on; the infrared detection device 48 is used to emit detection waves to form a designated detection area, and includes multiple selectable drive circuits 4811 for driving the outward emission of the detection waves; wherein the drive resistance of each drive circuit 4811 is different (e.g., Figure 40 As shown in the figure, this makes the range of the designated detection area corresponding to each drive circuit 4811 different.

[0308] The communication module 411 is connected to the display screen 5 and the infrared detection device 48, respectively, and is used to acquire the detection results of the infrared detection device 48 and switch the working state of the display screen 5 according to the detection results. The communication module 411 can change the selected driving circuit 4811 to change the detection distance. The detection distance can be understood as the range of the specified detection area, that is, the range that the detection wave can reach and be reflected. The communication module 411 can select at most one driving circuit 4811 at any time, so that the range of the specified detection area is selectively specified.

[0309] In a specific example, the communication module 411 detects the current state of the smart wall switch 100 through the infrared detection device 48. The current state indicates whether someone is approaching the designated detection area of ​​the smart wall switch 100. The display screen 5 is controlled by the communication module 411 to switch between a screen-off state and a screen-on state. The driving resistor is used to limit the driving capability of the selected driving circuit 4811. Multiple driving circuits 4811 are connected to the same power supply. Under a fixed power supply, the larger the driving resistor, the smaller the current of the corresponding driving circuit 4811, that is, the weaker the driving capability and the shorter the detection distance; the smaller the driving resistor, the larger the current of the corresponding driving circuit 4811, that is, the stronger the driving capability and the longer the detection distance. It is understood that the infrared detection device 48 detects external objects based on infrared waveband detection. Therefore, any object that can reflect the detection wave may trigger the infrared detection device 48. Thus, the "person" in "someone is approaching" described in this embodiment should be interpreted broadly, that is, any person, animal, or other object that can reflect the detection wave and trigger the infrared detection device 48.

[0310] Furthermore, based on the above solution, the smart wall switch 100 provided in this embodiment overcomes the industry's common misconception that infrared detection technology is unsuitable for application scenarios of smart wall switches 100. It adopts a low-cost infrared detection device 48 for proximity sensing detection, and uses multiple drive circuits 4811 with different drive resistors to selectively drive the infrared detection device 48. As a result, the detection distance can change with the selected drive circuit 4811, so that the smart wall switch 100 has the ability to adjust the detection distance. Users can adjust the detection distance according to the actual applicable environment of the smart wall switch 100 to improve interference problems.

[0311] Furthermore, to differentiate the detection distances corresponding to the two drive circuits 4811 as much as possible, the resistance difference between any two drive circuits 4811 is set to be greater than 10Ω. This ensures that the change in detection distance when switching between any two drive circuits 4811 can be clearly distinguished. In actual testing, when the resistance difference between the two drive circuits 4811 is set to 10Ω, the detection distance can be differentiated by at least 5cm for some models of infrared LEDs 4812.

[0312] Furthermore, in order to allow users to freely set the proximity sensing distance of the smart wall switch 100, the communication module 411 is also used to receive an external selection signal, which is used to switch the selected drive circuit 4811.

[0313] Specifically, users can set the detection distance through the terminal device 200, so that the application of the terminal device 200 can send the selection signal. For example, after the user connects the smart wall switch 100 to the network, they establish a communication relationship with the smart wall switch 100 through their mobile phone, and then adjust the detection distance through the operation interface of the application (app) corresponding to the smart wall switch 100 installed on the mobile phone (e.g., Figure 41 As shown in the figure, the application then sends the corresponding selection signal directly or indirectly to the smart wall switch 100 to adjust the detection distance.

[0314] In conjunction with the above embodiment where the resistance difference between any two drive circuits 4811 is greater than 10Ω, when the user switches between the drive circuits 4811 of the smart wall switch 100 based on the terminal device 200, a clear distinction in the detection distance can be formed, so that the change in detection distance can be intuitively felt by the user with each switch of a drive circuit 4811, so that the user can adjust the detection distance according to actual needs.

[0315] Further, the selection signal includes a first selection signal, a second selection signal, and a third selection signal; wherein the communication module 411 can turn off the infrared detection device 48 according to the first selection signal, the communication module 411 can select the first driving circuit 48111 in the multiplexing driving circuit 4811 according to the second selection signal, and the communication module 411 can select the second driving circuit 48112 in the multiplexing driving circuit 4811 according to the third selection signal.

[0316] The first selection signal is generated after the first of a plurality of preset distance levels on the smart terminal device 200 is selected; the second selection signal is generated after the second of the plurality of levels is selected; and the third selection signal is generated after the third of the plurality of levels is selected (e.g., ...). Figure 41 (As shown).

[0317] Therefore, the first, second, and third gears respectively form three detection distance adjustment gears for the smart wall switch 100. In the first gear, the infrared detection device 48 is turned off, that is, the detection distance of the smart wall switch 100 is 0. The second and third gears represent two different detection distances. Users can conveniently switch between the first and third gears through the terminal device 200 to freely select the detection distance of the smart wall switch 100.

[0318] Furthermore, the resistance difference between the driving resistor of the first driving circuit 48111 and the driving resistor of the second driving circuit 48112 is greater than or equal to 50Ω, so that there is at least a distance difference of 20cm between the second gear and the third gear.

[0319] Furthermore, the infrared emitting unit 481 has an infrared light-emitting tube 4812, and the infrared receiving unit 482 has an infrared receiving head. The smart wall switch 100 covers the infrared light-emitting tube 4812, the infrared receiving head, and the display screen 5 through a transparent cover plate 63. The transparent cover plate 63 has a first light-transmitting hole 632 at the corresponding position of the infrared receiving unit 482 and the infrared receiving head, and a black IR layer (infrared layer) is sprayed at the corresponding position of the first light-transmitting hole 632, so that the transmittance of the detection wave corresponding to the infrared light through the first light-transmitting hole 632 is greater than 70%, and the transmittance of natural light through the first light-transmitting hole 632 is less than 30%.

[0320] The transparent cover 63 here can refer to the above embodiment as shown. Figure 15 The contents of the description are explained below. When the transparent cover 63 is installed on the smart wall switch 100, only a small amount of visible light passes through the first light-transmitting hole 632, which appears blackish in appearance, so as to shield the internal components without affecting the light transmission of the detection wave.

[0321] Furthermore, when the transmittance of the first light-transmitting aperture 632 to the detection wave is greater than 70%, the driving resistance of the first driving circuit 48111 is set to be greater than or equal to 47Ω, and the driving resistance of the second driving circuit 48112 is set to be greater than or less than 100Ω.

[0322] Ω limits the detection distance to within 3 meters.

[0323] For specific examples, such as Figure 42 As shown, a 100Ω driving resistor is connected in series with the first driving circuit 48111, and a 499Ω driving resistor is connected in series with the second driving circuit 48112. Based on this, the transmittance of the first light-transmitting aperture 632 for visible light (e.g., visible light with a wavelength of 550nm) is set to 15% ± 5%, and the transmittance for a detection wave with a wavelength of 940nm is greater than or equal to 80%. This ensures that when the first driving circuit 48111 is selected, there is a detection distance A, and when the second driving circuit 48112 is selected, there is a detection distance B. The value of A ranges from 80cm to 100cm, and the value of B ranges from 20cm to 30cm. In this example, the difference between the driving resistor of the first driving circuit 48111 and the driving resistor of the second driving circuit 48112 is 399Ω, allowing a detection distance difference of more than 50cm to be formed between the second and third settings.

[0324] It should be noted that the detection distance of 80cm to 100cm can be understood as a specific point or segment within the range of 80cm to 100cm. For example, when the detection distance is 80cm, the designated detection area formed by the smart wall switch 100 in the second position will cover a detection distance of 0cm to 80cm. When someone is approximately 80cm away from the front of the smart wall switch 100, the display device will be triggered to light up the screen. When the detection distance is in the range of 80cm to 90cm, the designated detection area formed by the smart wall switch 100 in the second position will cover the nearest detection distance of 0cm and the farthest detection distance of [80cm, 90cm]. In this case, the farthest detection distance in the second position fluctuates within a range and is not a fixed value. Similarly, the 20cm to 30cm range can be understood in the same way. When the detection distance is 30cm, the display device will be triggered to light up the screen when someone is approximately 30cm away from the front of the smart wall switch 100.

[0325] In one possible usage scenario, the smart wall switch 100 is installed in the entryway. It's understood that entryways are typically around 100cm wide, and in some smaller apartments, the entryway width may be even narrower. Furthermore, the actual space in the entryway may be further reduced due to the accumulation of items, shoe cabinets, or wardrobes. If the detection distance of the smart wall switch 100 is uncontrolled, the emitted detection wave may be directly reflected by objects or walls opposite the smart wall switch 100, causing the infrared detection device 48 to remain in an triggered state, rendering the proximity sensor ineffective. In this usage scenario, based on the solution of this embodiment, the user can switch the proximity sensor of the smart wall switch 100 to the third level to shorten the maximum detection distance. This ensures that the designated detection area does not cover the wall or objects opposite the smart wall switch 100; that is, the detection wave has a limited distance and cannot reach the opposite wall. However, when a person passes through the entryway, the detection wave can be reflected back, triggering the infrared detection device 48, thus effectively avoiding interference.

[0326] In another possible use case, the smart wall switch 100 is installed in the living room, where the surrounding area is relatively open. In this case, in order to improve the screen sensitivity of the smart wall switch 100, the user can set the smart wall switch 100 to the second setting. As a result, the user can trigger the smart wall switch 100 from a greater distance, thus improving the user experience.

[0327] The installation environment of the smart wall switch 100 differs in the two usage scenarios described above, resulting in different required proximity sensing detection distances. The solution provided in this embodiment enables the smart wall switch 100 to freely switch the detection distance based on the user's actual needs, increasing the applicability and flexibility of infrared detection technology in the usage scenarios of products like the smart wall switch 100.

[0328] Specifically, such as Figure 43 As shown, the first driving circuit 48111 consists of Q2, resistors R24, R13 and R14. The collector of Q2 is electrically connected to the cathode of LED1 (infrared light-emitting diode 4812) through R24. The emitter of Q2 is grounded. The base of Q2 is connected to the communication module 411 through R13 as the controlled terminal so that it can be switched between on and off by the communication module 411. R14 is electrically connected between the base and emitter of Q2. In addition, one end of R13 connected to the communication module 411 is also grounded through a Zener diode D2 to form a voltage regulation protection function.

[0329] The second driving circuit 48112 consists of Q3, resistors R21, R30, and R31. The collector of Q3 is electrically connected to the cathode of LED1 through R21, the emitter of Q3 is grounded, and the base of Q3 is electrically connected to the communication module 411 through R30 to switch between on and off under the control of the communication module 411. R31 is electrically connected between the base and emitter of Q3. In addition, one end of R30 connected to the communication module 411 is also grounded through a Zener diode D5 to form a voltage regulation protection function.

[0330] When the driving resistor is 499Ω, the actual operating current is (3.3V-1.3V) / 499Ω≈4mA. The emission power of LED1 is 1.3V×4mA=5.2mW. When the current-limiting resistor is 100Ω, the actual operating current is (3.3V-1.3V) / 100Ω≈20mA. The emission power of LED1 is 1.3V×20mA=26mW.

[0331] like Figure 43 As shown, the infrared LED1 can specifically be a surface-mount infrared LED of Xinyongcheng, model XYC-IRA4335A65-X4. It is a low-power diode with a 4335 package, which has the advantages of strong emission power and uniform light reception angle. Its emission wavelength is 940nm, the maximum continuous operating current is 100mA, and the maximum power consumption is 150mW.

[0332] Furthermore, the emission angle of the infrared LED1 is limited to: [63°, 73°] on the X-axis and [22°, 28°] on the Y-axis. For example, a surface-mount infrared LED of model XYC-IRA4335A65-X4 can be used, which has an emission angle of 66 degrees on the X-axis (±33 degrees) and 25 degrees on the Y-axis. The eccentricity angle is a maximum of +5 degrees and a minimum of -5 degrees on both the X-axis and Y-axis.

[0333] Furthermore, the larger lateral emission angle (X-axis emission angle) makes the infrared LED 4812 suitable for use scenarios where the smart wall switch 100 requires a large lateral detection range.

[0334] In some embodiments, the communication module 411 is further configured to control the infrared emitting unit 481 of the infrared detection device 48 to operate in a periodically alternating emission state and a pause state. In the emission state, the infrared emitting unit 481 emits the detection wave to the outside, and in the pause state, the infrared emitting unit 481 stops emitting the detection wave.

[0335] Therefore, in this embodiment, in order to reduce the burden on the communication module 411 so that the communication module 411 can directly drive the display screen, the infrared emitting unit 481 of the infrared detection device 48 is not in a continuous emitting state, but alternately switches between the emitting state and the pause state. In the pause state, the infrared emitting unit 481 of the infrared detection device 48 is in a rest mode and does not emit detection waves to the outside, so as to reduce the load on the communication module 411.

[0336] In addition, in order to ensure that the detection capability of the infrared detection device 48 is stable before and after the display screen 5 is lit, in this embodiment, the duration of the emission state is set to be the same before and after the display screen 5 is lit, and the difference in the duration of the pause state is less than or equal to 100ms.

[0337] Furthermore, this embodiment ensures the stability of the duration of the emission state of the infrared emitting unit 481, and allows the duration of the pause state of the infrared emitting unit 481 to fluctuate within a certain range. In other words, if the duration of each emission state of the infrared emitting unit 481 before the display screen 5 is lit is defined as a first time, and the duration of each emission state of the infrared emitting unit 481 after the display screen 5 is lit is defined as a second time, then in this embodiment, the first time and the second time are set to be the same. If the duration of each pause state of the infrared emitting unit 481 before the display screen 5 is lit is defined as a third time, and the duration of each pause state of the infrared emitting unit 481 after the display screen 5 is lit is defined as a fourth time, then in this embodiment, the difference between the third time and the fourth time is set to be less than or equal to 100ms. Experimental verification shows that fluctuations in the difference between the third time and the fourth time within the range of 100ms do not significantly affect the detection performance of the infrared detection device 48.

[0338] Furthermore, before the display screen 5 is illuminated, the ratio of the duration of the transmission state to the working cycle is set to be greater than or equal to 10%. The working cycle is the sum of the duration of the transmission state and the duration of the pause state.

[0339] In one example, before the display screen 5 is lit, the duration of the transmission state is set to approximately 56 ms, while the duration of a complete working cycle of a transmission state and a pause time is set to 100 ms.

[0340] In another example, before the display screen 5 is lit, the duration of the transmission state is set to approximately 56 ms, while the duration of a complete work cycle of a transmission state and pause time is set to 200 ms.

[0341] In general, when the ratio of the duration of the transmission state to the working cycle is set to be greater than or equal to 10%, the working cycle consisting of the sum of the duration of the transmission state and the duration of the pause state is set between 10ms and 100ms or between 100ms and 200ms. This can reduce the workload of the communication module 411 to a certain extent while achieving good infrared detection results, so that the communication module 411 can directly drive the display screen.

[0342] In a further example, the duration of the pause state is set to be the same before and after the display screen 5 is turned on. In other words, the operating state of the infrared emitting unit 481 remains unchanged before and after the display screen 5 is turned on, so as to ensure the stability of the infrared detection performance.

[0343] In another variation, after the display screen 5 is lit, the duration of the pause state is increased by 100ms compared to before the display screen 5 is lit, so that after the display screen 5 is lit, the infrared emitting unit 481 emits detection waves at a lower frequency, and after the display screen 5 is turned off, the frequency of the infrared emitting unit 481 emitting detection waves is restored, thus not affecting the sensitivity and response speed of human proximity sensing in the screen-off state, and the frequency reduction during the period when the display screen 5 is lit can further reduce the workload of the communication module 411.

[0344] In some embodiments, such as Figure 44 As shown, the smart wall switch 100 also includes relays 21. The communication module 411 drives the relays 21 to switch on and off via a relay 21 drive circuit. Each relay 21 controls a circuit that supplies power to an electrical device. When a relay 21 is connected, the electrical device connected to its controlled circuit is powered; when a relay 21 is disconnected, the electrical device connected to its circuit is de-energized. Each relay 21 forms a control channel, and multiple relays 21 can form multiple control channels. The switching of the relays 21 on and off corresponds to the switching of the power supply / power off operating state of the corresponding control channel.

[0345] like Figure 44 As shown, the smart wall switch 100 also includes a power supply circuit, which comprises a first power conversion circuit and a second power conversion circuit. The first power conversion circuit rectifies and converts the mains AC power (e.g., 220V, 50Hz AC mains power) into a first power source. The second power conversion circuit is electrically connected to the first power source to convert the first power source into a second power source. The first power source powers the relay 21 and the display screen 5 (e.g., 5V), and the second power source powers the communication module 411, external memory, display screen 5, and button circuit (e.g., 3.3V). The first power conversion circuit can be an AC-DC transformer, such as a BUCK circuit, and the second power source can be an LDO power supply, such as a BL1117-33CX power chip.

[0346] Furthermore, the infrared detection device 48 also includes an infrared receiving unit 482, which is used to receive the detection wave emitted by the infrared transmitting unit 481. Specifically, the infrared receiver head of the infrared receiving unit 482 can be a DY-IRMHF384-T05-2.5KB infrared receiver head, which integrates amplification and filtering circuits to achieve long-distance infrared reception and has strong anti-interference capabilities. For its specific working principle, please refer to [reference needed]. Figure 43 The circuit shown will be explained in detail here.

[0347] In some embodiments, the smart wall switch 100 further includes a photosensor 49. The communication module 411 is electrically connected to the photosensor 49 to obtain the ambient light intensity and adjust the display screen 5 according to the light intensity, for example, by automatically adjusting the brightness of the display screen 5.

[0348] Furthermore, the smart wall switch 100 covers the photosensitive sensor 49 with a transparent cover plate 63, and the transparent cover plate 63 is provided with a second light-transmitting hole 633 at the corresponding position of the photosensitive sensor 49, and a black IR layer is sprayed at the corresponding position of the second light-transmitting hole 633, so that the transmittance of natural light through the second light-transmitting hole 633 is less than 30%. When the transparent cover plate 63 is installed on the smart wall switch 100, only a small amount of visible light can pass through the second light-transmitting hole 633, which appears black to shield the internal components.

[0349] Furthermore, since the photosensitive sensor 49 detects light intensity only through the second light-transmitting hole 633, the amount of light it can receive is limited, resulting in it operating in low-light environments. Therefore, this embodiment provides a photosensitive detection circuit suitable for use in low-light environments to improve photosensitive detection sensitivity.

[0350] Specifically, such as Figure 45 As shown. The photosensitive detection circuit is composed of the photosensitive sensor 49 as its core component. (Refer to...) Figure 45 The photosensitive sensor 49 can be a photoresistor U11, whose input terminal is electrically connected to a power supply VCC, and whose output terminal is grounded through a detection resistor R27. The output terminal is also electrically connected to the ADC detection port of the communication module 411 through a protection resistor R28. The working principle is roughly as follows: when light of different intensities shines on the photoresistor U11, it changes the photocurrent passing through the photoresistor U11. This photocurrent generates a voltage through R27, which is transmitted to the ADC detection port of the communication module 411. The communication module 411 calculates the current light intensity based on this voltage value. To adapt to low-light environments, the resistance of the detection resistor R27 is set to 10kΩ to 1MΩ, so that a small change in the current of the photoresistor U11 caused by a small change in light intensity can cause a considerable fluctuation in the voltage across the detection resistor R27, facilitating detection by the communication module 411.

[0351] In a specific example, the photoresistor has a photocurrent of approximately 70uA, 300uA, and 400uA under illumination conditions of VCC=5V, 10Lux, 50Lux, and 100Lux, respectively.

[0352] Reference Figure 45The power supply VCC is 3.3V, the photoresistor U11 is an SMD3528C-50 photoresistor, the detection resistor E27 is set to 100kΩ, and the protection resistor R28 is set to 100Ω. In addition, the photosensitive detection circuit also includes a filter capacitor C23 for filtering and a transient suppression diode D3 for protection.

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

[0354] It should also be noted that the above embodiments can be combined with each other. For the same or similar concepts or processes, they may not be described again in some embodiments. That is, the technical solutions disclosed in the later (in the order of the text) embodiments should include the technical solutions described in this embodiment and the technical solutions described in all embodiments before this embodiment.

[0355] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this utility model, and are not intended to limit it. Although the utility model has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this utility model.

Claims

1. A smart wall switch, characterized in that, include: Bottom shell; A circuit carrier, wherein the circuit carrier is disposed on the bottom shell; The display screen is disposed on the opening side of the bottom shell so that when the smart wall switch is installed in the wall based on the bottom shell, the display screen can face outward for operation; The circuit carrier mentioned above carries at least a communication module; The display screen is a color screen with a pixel count of 12,000 or more. The communication module has communication functions and is suitable for accessing a third-party platform. The communication module is directly electrically connected to the display screen to directly drive the display screen, and the communication module directly drives the touch function of the display screen. The communication module is further externally connected to at least one RAM memory.

2. The smart wall switch according to claim 1, characterized in that, The RAM memory size is 2MB to 8MB.

3. The smart wall switch according to claim 1, characterized in that, The display screen's pixel count is set to less than or equal to 240×320.

4. The smart wall switch according to claim 1, characterized in that, The communication module includes a WIFI module; the WIFI module is electrically connected to the display screen via an SPI bus to drive the display screen, and is electrically connected to the display screen via an IIC bus to detect touch operations on the display screen.

5. The smart wall switch according to any one of claims 1 to 4, characterized in that, The communication module includes a buffer area; the buffer area is used to store data used to refresh the display screen. The size of the buffer is a, and the amount of data required for the display screen to refresh completely once is b. Then we have: b / 10 <a< b / 2。 6. The smart wall switch according to any one of claims 1 to 4, characterized in that... The smart wall switch also includes an infrared detection device for emitting detection waves to form a designated detection area, and includes multiple selectable drive circuits for driving the outward emission of the detection waves; wherein the drive resistance of each drive circuit is different, so that the range of the designated detection area corresponding to each drive circuit is different; the communication module can change the selected drive circuit to adjust the detection range; wherein the resistance difference between any two drive circuits is greater than 10Ω.

7. The smart wall switch according to claim 6, characterized in that... The driving circuit includes a first driving circuit and a second driving circuit, wherein the difference in resistance between the driving resistor of the first driving circuit and the driving resistor of the second driving circuit is greater than or equal to 50Ω.

8. The smart wall switch according to claim 7, characterized in that, The infrared detection device includes an infrared emitting unit and an infrared receiving unit; the infrared emitting unit has an infrared light-emitting tube, and the infrared receiving unit has an infrared receiving head. The smart wall switch covers the infrared light-emitting tube, the infrared receiving head, and the display screen through a transparent cover plate. The transparent cover plate has a first light-transmitting hole at the corresponding position of the infrared receiving unit and the infrared receiving head, and a black IR layer is sprayed at the corresponding position of the first light-transmitting hole, so that the transmittance of the detection wave corresponding to the infrared light through the first light-transmitting hole is greater than 70%, and the transmittance of natural light through the first light-transmitting hole is less than 30%.

9. The smart wall switch according to claim 8, characterized in that... The driving resistance of the first driving circuit is set to be greater than or equal to 47Ω, and the driving resistance of the second driving circuit is set to be greater than or less than 100Ω.

10. The smart wall switch according to any one of claims 1 to 4, characterized in that... The bottom shell is provided with a first receiving groove; the smart wall switch also includes a supporting shell, which covers the bottom shell, and the supporting shell is provided with a second receiving groove at a position corresponding to the first receiving groove, the second receiving groove being at least partially accommodated in the first receiving groove; the circuit carrier includes a first circuit board, which is disposed on the side of the supporting shell away from the bottom shell, the second receiving groove is open toward the first circuit board, and the first circuit board covers the second receiving groove; the first circuit board has a first surface facing the supporting shell, and a communication module disposed on the first surface is accommodated in the second receiving groove.