wall switch
By optimizing the mapping relationship between current segment and detection distance and dynamically adjusting the infrared signal radiation intensity, the problems of misjudgment and response delay of wall switches in narrow environments are solved, achieving accurate and stable infrared detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- WUHAN LINPTECH
- Filing Date
- 2025-05-22
- Publication Date
- 2026-05-29
AI Technical Summary
Existing wall switches with infrared detection cannot achieve fine adjustment in narrow environments, leading to misjudgments or response delays, and cannot adapt to complex environments with strong background reflection.
By coordinating the micro-variable segment group and the abrupt change segment group, the mapping relationship between the current segment and the detection distance is optimized, allowing users to dynamically fine-tune the infrared signal radiation intensity. The active energy supply unit independently controls the radiation intensity of the infrared emitting tube, avoiding reliance on resistor adjustment.
It achieves precise and stable infrared detection adjustment in complex environments, avoiding misjudgment and response delay, and ensuring flexible and reliable detection in different spatial environments.
Smart Images

Figure CN224305753U_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of smart home technology, and in particular to a wall switch. Background Technology
[0002] The background technology disclosed herein is the applicant's prior patent 2023117435391.
[0003] The wall switch provided in patent 2023117435391 uses resistance adjustment to control the infrared sensing distance. This method has limited adjustment range and precision, typically supporting only 2-3 levels of coarse adjustment, and the detection distance difference between each level is large, which cannot meet the needs of fine adjustment. Utility Model Content
[0004] Typical installation scenarios for wall switches can be broadly categorized into two types: open environments and confined environments. Open environments include living rooms and bedrooms, while confined environments include corridors, entryways, and narrow passageways. Due to these environmental differences, the interference levels for infrared detection differ significantly between these two environments.
[0005] Specifically, in open environments, the effective detection distance of a wall switch's infrared sensor is typically based on the reflection from the object being detected. For example, when the object being detected is a human body in an open environment, background interference is minimal, and the transmission and reception of the infrared signal primarily rely on the reflection from the human body. Furthermore, the angles of the infrared transmitter and receiver have a relatively small impact on the detection distance. Figure 1 As shown, in the absence of strong background interference, infrared signals are primarily transmitted through reflection from the human body. Therefore, in such environments, the effective distance for infrared detection can be roughly equivalent to the physical distance between the human body and the wall switch. Since the background environment is relatively simple and the interference from background reflection is minimal, determining the effective distance for infrared detection based on the actual distance between the human body and the wall switch is feasible in open environments.
[0006] However, when wall switches are installed in confined environments, such as hallways, entryways, or narrow passages, the distance adjustment for infrared detection can no longer simply rely on the reflection of the detected object. For example... Figure 2 As shown, a corridor is a typical narrow environment. Wall switches are usually installed on one wall, while the opposite wall is typically made of highly reflective materials such as white latex paint or ceramic tiles. These materials significantly enhance infrared reflection. In this narrow environment, background interference is severe, especially when there are infrared emission and reception angles. Strong reflection interference can easily lead to false infrared detection (e.g., ...). Figure 2(The interference reflection path formed by the dashed arrow in the image) can be mistakenly interpreted as "the user is always present." In this case, the effective distance of infrared detection is usually less than the actual physical distance between the human body and the wall switch. Therefore, the infrared detection distance adjustment method based on the actual distance of the human body is no longer applicable. That is, in narrow environments such as corridors, the infrared detection distance cannot simply rely on the physical distance between the human body and the wall switch. For example, although the actual physical distance may be 80cm, if the infrared detection distance is set to 80cm, the strong wall reflection signal may be received by the receiver, leading to the mistaken impression that the user is always close. Therefore, the effective distance of infrared detection needs to be finely adjusted step by step according to environmental conditions, for example, it needs to be gradually adjusted from 80cm to 76cm, 72cm, 68cm, ... until an optimal point is found that can accurately detect the human body without being interfered with by the background.
[0007] However, the wall switch provided in patent 2023117435391 uses a resistor adjustment method to control the infrared sensing distance. This method has limited adjustment range and precision, typically supporting only 2-3 coarse adjustments, with a significant difference in detection distance between each level (usually over 30cm). While this coarse adjustment method achieves good infrared distance adjustment in open environments, it leads to problems in narrow spaces with strong background reflection, such as corridors. If the detection distance is set too long, the infrared signal will continuously be reflected by the opposite wall and received by the receiver, causing a misinterpretation that the user is constantly approaching. If the detection distance is set too short, the infrared sensor cannot detect the user's proximity to the corridor wall in time, resulting in delayed interaction response or failure to trigger the switch.
[0008] Therefore, the resistance current limiting adjustment method provided in patent 2023117435391 cannot effectively cope with the complex environment in narrow spaces with significant directional characteristics, such as corridors, cannot meet the needs of fine adjustment, and cannot achieve reliable infrared detection in such environments.
[0009] Based on this, the present disclosure aims to provide a wall switch that allows users to dynamically fine-tune the radiation intensity of the infrared signal according to actual conditions in order to compensate for interference factors in the external environment (such as false detection caused by strongly reflective objects), thereby effectively dealing with the effects of angle and interference sources.
[0010] Another objective of this disclosure is to provide a wall switch in which the mapping relationship between current level and detection distance is optimized through the cooperation of a micro-variable level group and a jump level group, thereby achieving precise and stable infrared detection adjustment in complex environments. The micro-variable level group is used to smoothly adjust the detection distance, while the jump level group is used to handle scenarios requiring a larger range of adjustments. The cooperation between the two ensures the stability and flexibility of the wall switch at different current levels.
[0011] Another objective of this disclosure is to provide a wall switch in which the high-level percentage is strictly greater than 50% and less than 90% within each cycle T, so that when the number of supported current segments is greater than or equal to 20, the detection distance exhibits strict non-decreasing property as the current segment gradually increases throughout the entire current segment range.
[0012] Another objective of this disclosure is to provide a wall switch in which the infrared detection of the wall switch has a flexible sensing distance adjustment capability through a single power supply path of the target current, effectively avoiding the limited range problem of resistance adjustment in the prior art.
[0013] Another object of this disclosure is to provide a wall switch in which the emission power control of the infrared emitting tube is directly determined by the active energy supply unit, and the output behavior of the current output terminal of the output control circuit does not depend on the changes in the terminal voltage of the infrared emitting tube 121, the circuit supply voltage, or the loop impedance during the driving process.
[0014] To achieve at least one of the above objectives, according to a first aspect of this disclosure, a wall switch is provided, comprising: an operation panel configured to receive user operation; an infrared emitting circuit configured to radiate an infrared signal at a first emission angle; an infrared receiving circuit configured to receive the reflected infrared signal at a second receiving angle; wherein the infrared emitting tube of the infrared emitting circuit and the infrared receiving tube of the infrared receiving circuit are disposed on the same side of the operation panel so that the infrared signal is received after reflection within a set distance, thereby realizing human proximity detection; and an environmental compensation circuit electrically connected to the infrared emitting circuit, and including an output control circuit that, after being connected to a power source, outputs a target current that is adjustable within a preset range, and supports output at least twenty different current levels.
[0015] According to embodiments of this disclosure, there is one or more of the following combinations of current segments between the current segment n∈[1,N] and the detection distance D(n):
[0016] Slightly variable segment group: ∃a,b∈[1,N], such that when n∈[a,b], D(n+1)-D(n)≤ε;
[0017] Transition segment group: ∃c,d∈[1,N], such that when n∈[c,d], D(n+1)-D(n)≥δ;
[0018] Among them, the micro-variable segment group and the abrupt change segment group cooperate with each other so that when N≥20, the mapping relationship between the current segment n and the corresponding detection distance D(n) satisfies:
[0019] ∀n∈[1,N−1] , D(n+1)−D(n)≥0;
[0020] Where ε and δ are preset thresholds, and δ > ε ≥ 0.
[0021] According to an embodiment of this disclosure, the processing circuit drives the environmental compensation circuit through a data signal with a period T between [16us, 33us], wherein the pulse width τ of the data signal satisfies T / 2 ≤ τ < 0.9T.
[0022] According to an embodiment of this disclosure, the infrared emitting circuit receives the target current through the output terminal of the output control circuit, forming a unique power supply path for the infrared emitting tube. This allows the radiation intensity of the infrared emitting tube to change when the current segment of the target current is adjusted, thereby adjusting the radiation intensity of the infrared emitting tube according to the different ambient reflection intensities to compensate for the environment.
[0023] According to an embodiment of this disclosure, the infrared emitting diode 121 is connected in series with the current output terminal of the output control circuit to form the only power supply path for the infrared emitting diode 121, and the only power supply path does not include a variable resistor element.
[0024] According to an embodiment of this disclosure, the output control circuit includes an active energy supply unit that establishes an active energy supply relationship with the infrared emitting diode. The target current output by the active energy supply unit is independent of the electrical characteristic changes of the infrared emitting diode and forms a closed-loop current path during the operation of the infrared emitting diode.
[0025] According to an embodiment of this disclosure, the anode of the infrared emitting diode is electrically connected to the output terminal of the active energy supply unit, and the cathode of the infrared emitting diode is electrically connected to ground through a unique path to form the unique power supply path.
[0026] According to an embodiment of this disclosure, a processing circuit is also included; the processing circuit is electrically connected to the active power supply unit via an IIC bus, and configures the current segment of the target current output by the active power supply unit based on IIC protocol control commands.
[0027] According to an embodiment of this disclosure, the infrared signal transmission mechanism of the infrared transmitting circuit is based on a time period T1 to achieve periodic active transmission; T1∈[100ms,1s].
[0028] According to an embodiment of this disclosure, the wall switch further includes a screen and / or buttons, the screen having display content for identifying the buttons.
[0029] According to embodiments of this disclosure, there are multiple buttons, and the screen is correspondingly provided with multiple buttons, each corresponding to one of the buttons.
[0030] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. The foregoing inventive descriptions can be combined in any way, and these and other objectives of this disclosure will be fully realized through the following detailed description and accompanying drawings.
[0031] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. These drawings are incorporated in and constitute a part of this specification, illustrating embodiments consistent with this application and serving together with the specification to explain the principles of this application. Obviously, the drawings described below are merely some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0033] Figure 1 This is a schematic diagram illustrating the application of wall switches in an open environment;
[0034] Figure 2 This is a schematic diagram illustrating the application of wall switches in narrow environments (corridors);
[0035] Figure 3 This is a block diagram illustrating the structure of a wall switch according to one embodiment of the present disclosure. Figure 1 ;
[0036] Figure 4 This is a block diagram illustrating the structure of a wall switch according to one embodiment of the present disclosure. Figure 2 ;
[0037] Figure 5 This is a block diagram illustrating the structure of a wall switch according to one embodiment of the present disclosure. Figure 3 ;
[0038] Figure 6 This is based on one embodiment of the present disclosure. Figure 4 and Figure 5 A detailed circuit structure diagram;
[0039] Figure 7 This is a schematic flowchart of an environmental compensation method according to an embodiment of the present disclosure;
[0040] Figure 8 This is a schematic diagram of the user interface in one embodiment of this disclosure. Detailed Implementation
[0041] The embodiments of this disclosure 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 disclosure, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.
[0042] It should be understood that in the description of all embodiments of this disclosure, the terms "upper," "lower," "left," "right," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this disclosure and for 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. Therefore, they should not be construed as limitations on this disclosure. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. Terms such as "coupled" and "connected" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection, an electrical connection, or a connection that allows communication; they can refer to a direct connection or an indirect connection through an intermediate medium to form a linkage relationship; they can refer to 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 disclosure can be understood according to the specific circumstances.
[0043] In the various embodiments of this disclosure, the symbol " / " indicates that it has two functions simultaneously. The symbol "A and / or B" indicates that the combination of the preceding and following objects connected by the symbol includes three cases: "A", "B", and "A and B".
[0044] Furthermore, the technical features involved in the various embodiments of this disclosure described below can be combined with each other as long as they do not conflict with each other.
[0045] Traditional wall switches are typically used for simple on / off control, but with the application of smart technology, wall switches have begun to integrate more advanced functions, such as infrared detection technology. Through infrared detection, wall switches can detect whether a user is approaching, thereby enabling the automatic lighting or turning off of the screen.
[0046] However, unlike traditional infrared applications (such as remote controls), infrared detection in wall switches requires both the transmitter and receiver to be at a certain angle for the infrared signal to be successfully received. Because the installation environment of wall switches is more complex, this angle requirement can introduce interference problems. For example, the wall switch may be installed facing different objects (such as walls, coat racks, furniture, etc.), and the reflective properties of these objects, when the infrared transmission and reception are at a certain angle, may interfere with the detection.
[0047] In certain typical installation scenarios for wall switches, such as corridors, entryways, and narrow passageways, the spatial structure exhibits significant directional characteristics. Taking corridors as an example, wall switches are particularly common in corridors, but they are also one of the typical environments with severe infrared detection interference. On the one hand, corridor spaces are typically long and narrow with limited width, generally between 80cm and 150cm, and wall switches are often installed on one side of the wall. On the other hand, the opposite wall of the corridor is likely to be finished with white latex paint or ceramic tiles, which have strong infrared reflectivity. When there is an angle between infrared emission and reception, continuous reflection interference is easily caused, leading to a misjudgment of "the user's continued presence."
[0048] It is evident that in such an environment, if the infrared radiation intensity cannot be precisely controlled, it is extremely difficult to find a suitable detection point. This is because, in a corridor environment, users often need to precisely adjust the ideal sensing distance based on reflection interference (e.g., from an ideal sensing distance of 80cm, gradually adjusting to 76cm, 72cm, or even 68cm, etc.) to avoid interference. This requirement clearly cannot be met by the existing resistor-based method with only 2-3 levels of coarse adjustment. In prior patent 2023117435391, the infrared detection of the wall switch adjusts the sensing distance by adjusting the resistor. This method has limited adjustment range and precision, typically only offering two or three levels of adjustment. Furthermore, to achieve level-based distance adjustment, the detection distance difference between levels is relatively large (usually over 30cm). This results in the following: if the detection distance is too long, the infrared signal will always be reflected by the opposite white wall and received by the receiver, causing continuous false alarms of "someone approaching"; if the detection distance is too short, the infrared sensor may not be able to detect the user approaching the corridor wall in time, causing interaction delays or response failures. Therefore, the wall switch provided in prior patent 2023117435391 is not suitable for long, narrow spaces with significant directional characteristics, such as corridors.
[0049] Based on this, this disclosure provides a wall switch with environmental compensation capability, allowing users to dynamically fine-tune the radiation intensity of the infrared signal according to actual conditions to compensate for interference factors in the external environment (such as false detection caused by strongly reflective objects), thereby effectively dealing with the effects of angle and interference sources.
[0050] like Figure 3The diagram shown is a block diagram of a wall switch 10 provided in this disclosure. It can be seen that the wall switch 10 includes at least an operation panel 11, an infrared emitting circuit 12, an infrared receiving circuit 13, and an environmental compensation circuit 14.
[0051] The operation panel 11 is configured to receive user operations to trigger the wall switch 10 to perform corresponding functions.
[0052] The operation panel 11 includes user interaction components on the wall switch 10, including at least one input device such as a button 111 and a screen 112. For a wall switch 10 with a display function, the operation panel 11 may also include at least one screen 112 for displaying the status of the wall switch 10 or the function of the button 111, and may also be used to display the working status of the device controlled by the wall switch 10.
[0053] The operation panel 11 provides an interface for users to execute control commands. Users perform operations on the operation panel 11, such as pressing buttons 111, touching the screen 112, and sliding the touchpad. These operations trigger the control circuit to generate commands, enabling the wall switch 10 to perform functions such as, but not limited to, executing a specific function, such as adjusting the brightness and color temperature of the light fixture controlled by the wall switch 10. Alternatively, the wall switch 10 may have a relay controlled by the processing circuit and used to connect to the power circuit of an external controlled device, switching the on / off state of the relay to turn the power to the controlled device on or off. For wall switches 10 with intelligent detection functions, user operations may also include detecting a human body approaching via an infrared sensor.
[0054] The infrared emitting circuit 12 is configured to have a first emission angle and is adapted to radiate infrared signals at the first emission angle, which is used to determine the coverage range of the infrared signals. The infrared receiving circuit 13 is configured to have a second receiving angle and is adapted to receive reflected infrared signals at the second receiving angle, which is used to determine the reception range of the received signals.
[0055] The infrared emitting tube 121 of the infrared emitting circuit 12 and the infrared receiving tube 131 of the infrared receiving circuit 13 are located on the same side of the operation panel 11 so that the infrared signal is received after being reflected within a set distance, thereby realizing the detection of human proximity.
[0056] The environmental compensation circuit 14 is electrically connected to the infrared emitting circuit 12 and includes an output control circuit. This output control circuit is adjustable; after being connected to a power source, it outputs a target current that is segmentally adjustable within a preset range and supports at least twenty different current segments. In this embodiment, the current segments can be understood as different intervals or levels of the target current output. Each current segment represents a specific current value range or point. Through segmented control, the target current can be switched between at least twenty current levels to achieve near-infinitely adjustable infrared radiation intensity. This means that when the current segment of the target current is adjusted, the radiation intensity of the infrared emitting tube 121 changes accordingly, thus adjusting the radiation intensity of the infrared emitting tube 121 based on different environmental reflection intensities to compensate for the environment.
[0057] Furthermore, it allows users to dynamically fine-tune the radiation intensity of the infrared signal according to actual conditions to compensate for interference factors in the external environment (such as false detections caused by highly reflective objects). For example, in installation environments with significant directional characteristics in structural spaces such as corridors, entrances, and narrow passages, users can finely adjust the effective distance of infrared detection to avoid the signal touching the opposite white wall while retaining the ability to sense actual users.
[0058] The following uses a corridor as a specific application scenario to further illustrate this:
[0059] like Figure 2 The diagram illustrates a scenario where a wall switch is used in a corridor. Corridors are typically narrow environments, and wall switches are usually installed on one wall, while the opposite wall is often made of highly reflective materials such as white latex paint or ceramic tiles. These materials significantly enhance infrared reflection. In this confined environment, background interference is significant, especially when there are differences in infrared emission and reception angles. Strong reflection interference can easily lead to misjudgments in infrared detection (e.g., ...). Figure 2 (The interference reflection path formed by the dashed arrow in the image) can be mistakenly interpreted as "the user is always present." In this case, the effective distance of infrared detection is usually less than the actual physical distance between the human body and the wall switch. Therefore, the infrared detection distance adjustment method based on the actual distance of the human body is no longer applicable. That is, in narrow environments such as corridors, the infrared detection distance cannot simply rely on the physical distance between the human body and the wall switch. For example, although the actual physical distance may be 80cm, if the infrared detection distance is set to 80cm, the strong wall reflection signal may be received by the receiver, leading to the mistaken impression that the user is always close. Therefore, the effective distance of infrared detection needs to be finely adjusted step by step according to environmental conditions, for example, it needs to be gradually adjusted from 80cm to 76cm, 72cm, 68cm, ... until an optimal point is found that can accurately detect the human body without being interfered with by the background.
[0060] Clearly, traditional resistance adjustment methods cannot achieve such fine-tuning. Due to hardware limitations, their adjustment range and precision are limited, typically supporting only 2-3 coarse adjustment levels, with significant differences between each level (usually over 30cm). This coarse adjustment method may achieve good infrared distance adjustment in open environments, but it is prone to misjudgment when used in narrow spaces with strong background reflection, such as corridors. For example, if the detection distance is set too long, the infrared signal will be continuously reflected by the opposite wall and received by the receiver, leading to a misjudgment that the user is constantly approaching; if the detection distance is set too short, the infrared sensor cannot detect the user's proximity to the wall in time, resulting in delayed interaction response or failure to trigger.
[0061] Therefore, this disclosure provides a wall switch that allows users to dynamically fine-tune the intensity of infrared signal radiation, which can effectively solve this environmental interference problem and ensure accurate detection and interactive response in different spatial environments.
[0062] It is worth mentioning that the infrared emitting tube 121 is one of the core components of the infrared emitting circuit 12, responsible for emitting infrared signals. It emits infrared signals outward through infrared light waves of a certain frequency and power. The infrared emitting tube 121 cooperates with other necessary circuits in the infrared emitting circuit 12 to periodically or on-demand emit infrared signals according to specific control logic. In some embodiments, the infrared signal emission mechanism of the infrared emitting circuit 12 is based on a time period T1, achieving periodic active emission; T1∈[100ms, 1s]. Specifically, the infrared signal is periodically actively emitted based on a certain time period T1. This mechanism allows the infrared signal to be continuously emitted during device operation without relying on external operation or triggering. The value range of the infrared signal emission period T1 is 100ms to 1s. This range ensures that the infrared signal emission frequency avoids unnecessary power consumption or signal conflicts caused by excessively frequent signal emission, while also ensuring a sufficiently high detection frequency to promptly capture the approach of a human body. For example, in relatively static environments (such as corridors or entryways), setting a longer period (such as 1 second) helps save energy; while in environments requiring higher precision detection (such as hallways or near light fixtures), the period can be set to 100 ms to provide a higher response frequency and sensitivity. In a preferred embodiment, T1 can be set to 200 ms, meaning that 5 infrared detections will be performed per second.
[0063] Infrared receiver 131 is responsible for receiving infrared signals reflected from the outside. When a person approaches the wall switch 10, infrared receiver 131 receives the infrared signals emitted by infrared emitter 121 and reflected back by the person. Infrared receiver 131 converts these reflected signals into electrical signals and transmits them to processing circuit 15 for analysis.
[0064] In this embodiment, the infrared emitter 121 and the infrared receiver 131 are mounted on the same side. The wall switch 10 actively and periodically emits and receives infrared signals through its built-in infrared emitter 121 and infrared receiver 131. This emission method does not rely on the user's button 111 operation, but rather detects the proximity of a human body based on the reflection and reception of infrared signals. This active detection mode allows the wall switch 10 to automatically sense environmental changes without user intervention. For example, it can automatically light up the screen 112 before the user touches the wall switch to provide corresponding instructions for the user's subsequent operations.
[0065] In this embodiment of the present disclosure, the first emission angle of the infrared emitting tube 121 and the second receiving angle of the infrared receiving tube 131 are matched (for example, matched geometrically), so that the emitted infrared signal can be effectively received by the infrared receiving tube 131 after being reflected within a set distance, thereby realizing the human body detection function.
[0066] In a specific example, the sum of the first emission angle and the second receiving angle is configured to be between 30° and 90°, so that the emitted infrared signal can be reflected within a set distance within a range of 1.2 meters and can be effectively received by the infrared receiver tube 131 with a high probability, thereby realizing the detection of human proximity within a range of 1.2m to the wall switch.
[0067] In a further example, the first emission angle can be determined based on the medium material used to protect the infrared emitting tube 121, while the second receiving angle is adaptively set based on the setting of the first emission angle. For example, the wall switch 10 has an acrylic partition at the position corresponding to the infrared emitting tube 121, that is, the infrared emitting tube 121 radiates infrared signals outward through the acrylic partition. The acrylic partition can be a partition with a certain degree of transparency (e.g., completely transparent or semi-transparent) to facilitate the passage of infrared signals. Based on this, the first emission angle is set to be less than or equal to 20° (e.g., 15°). A smaller first emission angle allows the infrared signal to radiate further through the acrylic partition.
[0068] For example, the wall switch 10 has a glass partition corresponding to the infrared emitting tube 121, meaning the infrared emitting tube 121 radiates infrared signals outward through the glass partition. Based on this, the first emission angle is set to be greater than 20° (e.g., 30°), and this larger first emission angle can limit the distance the infrared signal can radiate through the glass layer to a certain extent. Exemplarily, the second receiving angle is set to 20°~60° (e.g., 45°).
[0069] In some embodiments, there is one or more of the following combinations of current segments between the current segment n∈[1,N] and the detection distance D(n):
[0070] Slightly variable segment group: ∃a,b∈[1,N], such that when n∈[a,b], D(n+1)-D(n)≤ε.
[0071] Transition segment group: ∃c,d∈[1,N], such that when n∈[c,d], D(n+1)-D(n)≥δ.
[0072] The micro-variable segment group and the abrupt change segment group work together to ensure that when N≥20, the mapping relationship between the current segment n and the corresponding detection distance D(n) satisfies: ∀n∈[1,N−1] , D(n+1)−D(n)≥0. Here, ε and δ are preset thresholds, and δ > ε ≥ 0.
[0073] In this embodiment, the current segment n ranges from [1, N], where N is the maximum number of current segments. For each current segment n, there is a corresponding detection distance D(n), and the changes between these current segments and the detection distance can exhibit different behavioral patterns to form different combinations of current segments.
[0074] In the micro-variation segment group, when the current segment n is within a certain interval [a, b], the change in detection distance D(n) is small, satisfying D(n+1) - D(n) ≤ ε. Here, ε is a preset threshold value, indicating that the change in detection distance cannot exceed this small value when the current segment increases. The purpose of this setting is to ensure that the change in detection distance is very gradual within certain segment ranges, avoiding unstable response due to excessively drastic changes, or ensuring finer adjustment in some special environments (such as spaces with less interference). Specifically, ε might be between 1cm and 5cm. This "micro-variation" method allows for fine adjustment of the detection distance within a small range, ensuring that the change in detection distance does not suddenly become too large when the current segment increases. For example, in some scenarios, it may be necessary to adjust the infrared sensing range very carefully to avoid false triggering or misdetection.
[0075] In contrast to the micro-variable segment group, the abrupt change segment group refers to a situation where, when the current segment n is within the interval [c, d], the change in detection distance is significant, satisfying D(n+1) - D(n) ≥ δ. Here, δ is a preset threshold greater than ε (i.e., δ > ε ≥ 0). When the current segment increases from n to n+1, the change in detection distance is greater than or equal to δ, i.e., a "jump" change occurs. This "jump" method aims to address the need for a wide range of infrared sensing distance adjustments in certain scenarios. For example, in some cases, to adapt to long-distance detection, the detection distance must be rapidly increased to ensure the ability to sense distant objects or users. Therefore, in the abrupt change segment group, the detection distance is adjusted in larger increments to quickly respond to environmental changes. In specific examples, the value of δ can be between 5cm and 10cm.
[0076] Based on the current output characteristics of the output control circuit, the micro-segment group and the abrupt segment group work together to achieve flexible control of the relationship between the current segment and the detection distance. In particular, when the maximum number of current segments N≥20, the detection distance is always increasing throughout the entire current segment range. That is, as the current segment increases, the detection distance will not decrease (it will increase or at least remain unchanged), thus avoiding unpredictable backsliding.
[0077] For example, if the output control circuit has the characteristic that the current output changes significantly when the current level is relatively low (e.g., when n < 10) and the current output changes relatively small when the current level is relatively high (e.g., when n ≥ 10), then a small-variation level group can be used at the first current level, and a jump level group can be used at the high current level. By reasonably setting ε and δ, the relationship between the current level and the detection distance can be precisely controlled, ensuring that the detection distance always increases throughout the entire current level range, so that sufficient stability can be maintained at different levels, and the needs of environmental changes can be met.
[0078] Furthermore, this embodiment aims to optimize the mapping relationship between current level and detection distance through the cooperation of micro-variable level group and abrupt change level group, thereby achieving precise and stable infrared detection adjustment in complex environments. The micro-variable level group is used to smoothly adjust the detection distance, while the abrupt change level group is used to handle scenarios requiring a larger range of adjustments. The cooperation between the two ensures the stability and flexibility of the wall switch at different current levels.
[0079] Furthermore, in some embodiments, a feasible scheme for setting the total number S of current segments is also provided. Specifically, the output control circuit is configured as follows:
[0080] Based on the distance domain of infrared detection, the preset range of the target current is divided into N sub-intervals {[L0,L1),[L1,L2),...,[L... n-1 ,Ln ]};where: L0 represents the target current corresponding to the lower limit of the distance domain, L n Characterizes the target current corresponding to the upper limit of the distance domain; each sub-interval [Lᵢ -1 The correlation partition coefficient kᵢ∈{k1,k2,...,k) m};∃j,l∈{1,2,...,n}, such that kⱼ≠k l The total number of current segments S satisfies: S = ; where ⌈·⌉ represents the floor function.
[0081] Furthermore, the output control circuit is configured to divide the preset range into multiple sub-intervals based on the distance domain of infrared detection. Each sub-interval corresponds to an independent division coefficient k, and at least two sub-intervals have different k values. Each sub-interval is divided into current segments based on its corresponding k value, and the sum of the number of current segments in all sub-intervals constitutes S.
[0082] In a specific example, each sub-interval is equally divided using a corresponding dividing coefficient k. For instance, if the infrared detection range is [5cm, 1.5m], then the preset range of the target current can be divided into three sub-intervals {[L0, L1), [L1, L2]} based on this range. L0 represents the target current corresponding to the lower limit of the range at 5cm, for example, 1mA; L3 represents the target current corresponding to the upper limit of the range at 1.5m, for example, 50mA; and L1 represents the target current corresponding to a distance of 1m, for example, 30mA. The dividing coefficient k1 associated with sub-interval [L0, L1) is ∈ {k1, k2}, for example, 1mA, while the dividing coefficient k2 associated with sub-interval [L1, L2] is ∈ {k1, k2}, for example, 5mA. The total number of current segments S then satisfies: S = =34. At this time, the first 30 current segments can be understood as the micro-variable segment group, that is, satisfying ∃a,b∈[1,34], such that when n∈[a,b], D(n+1)-D(n)≤4cm; the last 4 current segments can be understood as the abrupt change segment group, that is, satisfying ∃c,d∈[1,34], such that when n∈[c,d], D(n+1)-D(n)≥12cm.
[0083] In some embodiments, a processing circuit 15 is also included, such as... Figure 4As shown, the processing circuit 15 drives the environmental compensation circuit through a data signal with a period T between [16us, 33us]. The pulse width τ of the data signal satisfies T / 2 ≤ τ < 0.9T, so that the proportion of high level in each period T is strictly greater than or equal to 50% and less than 90%. This ensures that when the number of supported current segments is greater than or equal to 20, the detection distance exhibits strict non-decreasing property as the current segment gradually increases throughout the entire current segment range.
[0084] It is worth noting that, in this embodiment, the data signal from the processing circuit 15 does not directly drive the infrared emitting diode, but is indirectly driven by the environmental compensation circuit. The environmental compensation circuit may amplify and adjust the data signal appropriately, leading to a certain degree of signal distortion. Therefore, in this context, the design of the pulse width τ is crucial, as it directly affects the response characteristics of the compensation circuit. Especially during current segment adjustment, an appropriate high-level duration is needed to achieve effective detection distance compensation. In this embodiment, τ≥T / 2 ensures that the duration of the high-level portion within each cycle is long enough, thus guaranteeing sufficient "action time" for the signal to drive the environmental compensation circuit. τ<0.9T ensures that the duration of the low-level portion is sufficient for the infrared receiving circuit to recognize. Furthermore, by setting T / 2≤τ<0.9T, when the number of supported current segments is greater than or equal to 20, the abnormal phenomenon of signal distortion causing the infrared receiving circuit to be unable to effectively recognize the infrared signal, resulting in a decrease in detection distance despite an increase in current segment, is prevented. This ensures that the detection distance exhibits strict non-subtractiveness as the current segment gradually increases.
[0085] Preferably, 0.6T ≤ τ ≤ 0.8T is set; for example, when the period T is approximately 26 microseconds, the high-level percentage can be controlled at around 80%. This setting optimizes the high-level duration, making signal driving more efficient. Controlling the high-level percentage at 80% can further improve detection accuracy and ensure that the detection distance always meets the non-subtractive requirement as the current level gradually increases across all current segments.
[0086] Furthermore, the infrared signal is modulated based on at least half of the data in the unique device identifier.
[0087] The unique device identifier can be understood as each wall switch 10 having a unique identifier throughout its lifecycle to distinguish different wall switches 10. This identifier is typically a combination of numbers, letters, or a coded sequence to ensure that it is not duplicated among multiple devices. Examples include device serial number (a unique number assigned to the device at the factory), MAC address, etc.
[0088] In this embodiment, each wall switch 10 is assigned a unique device identifier, and a portion of the data in this unique device identifier is used as identification information to modulate the infrared signal, thereby distinguishing the infrared signals of different wall switches 10 and avoiding signal interference between different devices. The data signal is formed by superimposing (modulating) the identification information on a reference signal, and then driving the infrared emitting tube to emit the infrared signal through an environmental compensation circuit. That is, at least half of the data in the unique device identifier (e.g., the last six bits of the MAC address or part of the serial number) is used to modulate the infrared signal. By embedding this identification information into the infrared signal, it is ensured that the infrared signal emitted by each wall switch 10 has a different encoding method from the infrared signals emitted by other wall switches 10 or other infrared devices, so that the infrared receiving circuit 13 can identify the "source" of these signals.
[0089] For example, in a home or office environment, there may be multiple wall switches 10, each of which needs to emit infrared signals. If the infrared signals of these wall switches 10 are indistinguishable, their signals will interfere, especially when multiple wall switches 10 are close together and emitting signals simultaneously. To avoid this interference, the last six bits of the MAC address are used to modulate the infrared signal, so that the signal emitted by each wall switch 10 has a unique identification code. Since the MAC address is unique, the wall switch 10 device uses a portion of the MAC address data (e.g., the last six bits) to modulate the infrared signal, which improves the distinguishability of the infrared signal of each wall switch 10. In this case, even if multiple wall switches 10 are located in the same location and operate simultaneously, the receiving end can distinguish the infrared signals of different wall switches 10, thereby avoiding signal collisions and interference.
[0090] The following uses MAC addresses as an example to further explain the specific implementation process of the above embodiments:
[0091] Each wall switch 10 is assigned a unique MAC address (unique device identifier) during production, such as "00:1A:2B:3C:4D:5E". The last six digits (i.e., "3C:4D:5E") can be used as the identification information of the wall switch 10.
[0092] The infrared emitting circuit 12 modulates the reference signal based on the extracted last six bits of data. The modulation method can be bitwise modulation (mapping the value of each byte to different states of the modulated signal). For example, "3C:4D:5E" can be converted into a specific binary code and then modulated bitwise onto the reference signal.
[0093] The modulated reference signal is sent to the infrared transmitter 121 to emit an infrared signal. At this time, the emitted infrared signal not only carries standard control commands, but also contains identification information modulated according to the last six bits of the MAC address.
[0094] After receiving the infrared signal through the infrared receiver tube 131, the infrared receiving circuit 13 analyzes the signal based on the modulation data and determines the source of the infrared signal through the identification information. This effectively avoids misreceiving infrared signals from other wall switches 10 and ensures that the infrared signal of each wall switch 10 is accurately identified.
[0095] In some embodiments, the infrared emitting circuit 12 receives the target current through the output terminal of the output control circuit, forming a unique power supply path for the infrared emitting tube 121. This allows the radiation intensity of the infrared emitting tube to change accordingly when the current segment of the target current is adjusted, thereby compensating for environmental variations by adjusting the radiation intensity of the infrared emitting tube. Specifically, the target current is transmitted to the infrared emitting circuit 12 through the output terminal of the output control circuit, providing a unique energy input to the infrared emitting tube 121. The target current at the output terminal can be finely controlled, causing the infrared emitting tube 121 to radiate the required infrared band under the drive of target current intensity adjustment, adapting to changes in environmental reflection characteristics and effectively transmitting infrared signals within a set distance.
[0096] Furthermore, by employing a single power supply path for the target current, the infrared detection of the wall switch 10 possesses flexible sensing distance adjustment capabilities, effectively avoiding the limited range problem of resistance adjustment in the prior art. Compared to the prior art, this disclosure provides a radiation power adjustment capability similar to stepless adjustment, allowing users to freely select appropriate radiation power or detection distance according to the installation environment of the wall switch 10, thereby adjusting the radiation intensity of the infrared emitting tube 121 according to different environmental reflection intensities to compensate for environmental interference.
[0097] Furthermore, the infrared emitting diode 121 is connected in series with the current output terminal of the output control circuit to form the only power supply path for the infrared emitting diode 121, and the only power supply path does not include the variable resistor element.
[0098] Specifically, the so-called unique power supply path can be understood as a single current transmission path from the output terminal of the output control circuit through the infrared emitting diode 121 to ground. It is supplied solely by the output control circuit and does not involve any variable resistor elements. High-precision current control can be achieved by directly adjusting the target current output, thereby precisely adjusting the radiation intensity of the infrared emitting diode 121. Since there are no variable resistor elements, the unique power supply path is not affected by temperature changes or aging during long-term use, thus ensuring the stability and reliability of the current.
[0099] Furthermore, the output control circuit includes an active energy supply unit 141, which establishes an active energy supply relationship with the infrared emitting diode 121. The target current output by the active energy supply unit 141 is independent of the changes in the electrical characteristics of the infrared emitting diode 121, and forms a closed-loop current path during the operation of the infrared emitting diode 121. This allows the emission power control of the infrared emitting diode 121 to be directly determined by the active energy supply unit 141. The output behavior of the current output terminal of the output control circuit does not depend on the changes in the terminal voltage of the infrared emitting diode 121, the circuit supply voltage, or the loop impedance during the driving process.
[0100] In this embodiment, the active power supply unit 141 can be understood as a circuit or module specifically designed to provide a stable current to the infrared emitting circuit 12. The function of this unit is to ensure that the infrared emitting diode 121 receives a precise current during operation to drive the emission of the infrared signal. By precisely adjusting the current, the active power supply unit 141 can regulate the intensity of the infrared signal to compensate for environmental interference (such as changes in reflection intensity) based on user-initiated adjustments. This unit is independent of changes in the electrical characteristics of the infrared emitting diode 121.
[0101] Furthermore, the active power supply unit 141 can use at least one of the following, such as a constant current source module or a programmable current control chip, to precisely control the current output, thereby driving the infrared emitting diode 121. This design avoids the current fluctuations and instabilities of traditional resistor regulation methods, ensuring that the radiation intensity of the infrared emitting diode 121 can be precisely adjusted.
[0102] For example, such as Figure 6As shown, the active energy supply unit 141 includes at least a microprocessor (MCU) and a constant current source. The MCU stores a pre-set mapping model, which is used to map the corresponding target current according to external instructions. The MCU receives external instructions, which are user-defined instructions for adjusting the radiation power. After determining the corresponding adjustment parameters according to the instructions, the MCU matches the target current corresponding to the adjustment parameters according to the mapping model and controls the current source to output the target current. One end of the current source is connected to the power supply, and the output end is directly electrically connected to the anode of the infrared emitting tube 121, forming the unique power supply path to drive the infrared emitting tube 121.
[0103] In this way, the target current I output by the active energy providing unit 141 can support at least twenty distinguishable output states (current segments) within a preset range (e.g., 10mA~100mA) (preferably up to 100 distinguishable output states), enabling infrared detection to adapt to more complex installation environments and interference conditions. Especially in high-reflection, space-constrained scenarios such as corridors, it significantly improves the user's ability to control the detection distance and achieves more accurate and flexible compensation for artificial interference.
[0104] Furthermore, this disclosure achieves high-precision independent control of the transmission power by using the infrared emitting component as the direct load of the active power supply unit 141, employing an independent current source to output current to drive the load, and not relying on changes in loop impedance characteristics during the driving process.
[0105] In specific circuits, such as Figure 6 As shown, the anode of the infrared emitting tube 121 is electrically connected to the output terminal of the active energy supply unit 141, and the cathode of the infrared emitting tube 121 is electrically connected to ground through a single path to form the single power supply path.
[0106] The anode of the infrared emitting diode 121 is electrically connected to the output terminal of the active power supply unit 141, and the cathode is electrically connected to ground through a single current path. In this way, the current supply path of the infrared emitting diode 121 is unique, ensuring that the driving current of the infrared emitting diode 121 is directly controlled by the active power supply unit 141.
[0107] Furthermore, through this connection method, the operating current of the infrared emitting diode 121 is precisely adjusted by the active power supply unit 141, thereby achieving a stable infrared signal. This ensures the singularity of the current path and avoids instability or malfunction caused by current loop interference.
[0108] In some embodiments, the processing circuit 15 is electrically connected to the infrared receiving circuit 13 and performs human proximity detection based on the electrical signal fed back by the infrared receiving circuit 13. The processing circuit 15 can be understood as an electronic circuit or module that performs a specific control task, and may include, for example, a microprocessor, a microcontroller, or a specific functional module. The infrared receiving circuit 13 receives infrared signals, converts them into electrical signals, and provides them to the processing circuit 15. Figure 6 An exemplary circuit structure diagram of the infrared receiving circuit 13 is also provided. The processing circuit 15 analyzes and processes the feedback signals provided by the infrared receiving circuit 13, determines whether a user is near the wall switch 10 based on changes in these electrical signals, and responds accordingly, for example, by generating appropriate control commands to control the operating state of the wall switch 10. Furthermore, the processing circuit 15 is electrically connected to the active energy supply unit via an IIC bus and configures the target current segment output by the active energy supply unit based on IIC protocol control commands.
[0109] In addition, such as Figure 5 As shown, the wall switch 10 also includes a communication circuit 16 for external communication to receive external commands; the processing circuit 15 and the communication circuit 16 can be integrated, such as... Figure 6 As shown, the communication circuit 16 and the processing circuit 15 are implemented using a Bluetooth module 151 that integrates communication and processing functions. The Bluetooth module 151 and the MCU of the active power supply unit 141 communicate via the IIC bus to transmit user-defined commands.
[0110] In this embodiment, the processing circuit 15 determines whether a human body is approaching based on the feedback signal from the infrared receiving circuit 13, and configures the current segment of the infrared emitting tube 121 according to user requirements to achieve interference compensation. Specifically, the processing circuit 15 configures the current segment of the output control circuit through IIC bus protocol control commands, for example, by setting and adjusting the level or range of the target current output by the active power supply unit 141 via IIC. In this disclosure, the processing circuit 15 selects and adjusts the required current segment according to the IIC protocol control commands, thereby controlling the emission power of the infrared emitting tube 121. The data signal is transmitted through the I / O port to drive the active power supply unit.
[0111] In a specific example, the AW36410 chip is used as a major component of the active power supply unit 141. Through IIC bus control, the microcontroller in the processing circuit 15 can send commands to the AW36410 chip via IIC to adjust its output target current. This target current output directly drives the infrared emitting diode 121, controlling its radiation intensity, thereby automatically compensating for signal strength based on the detection environment (e.g., highly reflective objects such as white walls or metal surfaces) to avoid false detections.
[0112] In some embodiments, such as Figure 6 As shown, the wall switch 10 also includes a screen 112. The processing circuit 15 drives the screen 112 to turn on / off based on the human proximity detection result through the screen driving circuit.
[0113] In this embodiment, the processing circuit 15 drives the screen 112 to turn on / off based on the human proximity detection result, thus combining infrared sensing and display functions. Specifically, when the infrared detector senses a human approaching, the processing circuit 15 determines and controls the on / off state of the screen 112. The screen 112 driving circuit drives the screen 112 to display content according to the control signal from the processing circuit 15, thereby realizing visual control of the state of the wall switch 10.
[0114] In some embodiments, such as Figure 6 As shown, the wall switch 10 includes a button 111, and the screen 112 displays content to identify the button 111. Furthermore, the introduction of the button 111's function allows the screen 112 to display the corresponding content when the screen is lit, such as indicating the button 111's function or status. In this way, the user can see real-time feedback or function indications through the screen 112.
[0115] In some embodiments, the wall switch 10 may include both a screen 112 and buttons 111. Accordingly, when there are multiple buttons 111, there are correspondingly multiple screens 112, each corresponding to one button 111. In other words, if the wall switch 10 has multiple buttons 111, each button 111 can be mapped to a corresponding area on the screen 112, displaying information or status related to that button 111. In this way, the screen 112 displays information that matches the function of the buttons 111, allowing users to easily identify the specific function of each button 111 through the screen 112.
[0116] like Figure 7 As shown, one embodiment of this disclosure also provides an environmental compensation method 40, which is applied to the wall switch 10 provided in the above embodiment to realize the environmental compensation capability of the wall switch 10.
[0117] Specifically, the wall switch 10 has infrared detection capability, and its environmental compensation capability is mainly used to compensate for environmental interference in infrared detection. Through direct and precise adjustment of the drive current, flexible control of the infrared emission intensity is achieved. For example... Figure 7 The method includes at least steps S41 to S43.
[0118] In step S41, a user-defined instruction is received, which is used to adjust the infrared radiation intensity.
[0119] Specifically, in this embodiment, the wall switch 10 includes a communication circuit 16 to enable external communication and receive user-defined commands (e.g., commands issued via a mobile app). The wall switch 10 receives external commands through the integrated communication circuit 16. Taking a command issued via a mobile app as an example, the communication circuit 16 enables the wall switch 10 to communicate with the mobile phone and receive setting commands to adjust the infrared radiation intensity. The communication circuit 16 enables external communication in at least one of the following ways:
[0120] Wi-Fi Module: The communication circuit 16 of the wall switch 10 can integrate a Wi-Fi module, enabling the processing circuit 15 to communicate with a router in the local area network via the Wi-Fi module and receive commands from a mobile app. The mobile app and the wall switch 10 can communicate via the same Wi-Fi network.
[0121] Bluetooth Module: The wall switch 10 can integrate a Bluetooth module to communicate directly with a mobile app via Bluetooth Low Energy (BLE), or connect to a Bluetooth gateway via a Bluetooth mesh network, and then communicate with a router in the local area network through the Bluetooth gateway to receive commands from the mobile app.
[0122] Zigbee / Z-Wave Module: The communication circuit 16 of the wall switch 10 can also use wireless communication protocols such as Zigbee or Z-Wave to receive commands from mobile phones or other smart devices.
[0123] Taking a mobile app as an example, users set the infrared radiation intensity through interface interaction. Users can adjust the infrared signal intensity using sliders, buttons, or selection boxes within the app. Specific commands may include the following forms:
[0124] Slider: Users can adjust the intensity of infrared radiation using the slider in the app, for example, by dragging the slider from the minimum value (low radiation intensity) to the maximum value (high radiation intensity). Each value corresponds to a target current segment, which is used to limit the target current and thus control the radiation intensity of the infrared emitting tube 121;
[0125] Numeric input box: If precise adjustment is required, users can directly input values related to radiation intensity through the numeric input box in the APP to precisely control the infrared radiation intensity.
[0126] On the terminal interface, the radiation intensity adjustment indicators can be set as needed, such as current adjustment indicators, power adjustment indicators, or distance adjustment indicators. Figure 8 As shown, taking a slider as an example: Assume the user opens the control interface of the wall switch 10, and a slider is displayed on the screen 112. This slider is based on the distance adjustment indicator. The leftmost end of the slider represents the minimum radiation intensity (e.g., 10mA current), at which point the detection distance is closest, and the rightmost end represents the maximum radiation intensity (e.g., 100mA current), at which point the detection distance is furthest. When the user slides the slider to the desired position, the APP generates a command based on the current slider position (e.g., 80cm) and sends it to the wall switch 10.
[0127] In step S42, the target current is determined in at least twenty different current segments based on the instruction.
[0128] In step S43, the infrared emitting tube 121 of the infrared emitting circuit 12 is uniquely driven by the target current and radiates an infrared signal at a first emission angle. When the target current is adjusted, the radiation intensity of the infrared emitting tube 121 changes accordingly, thereby adjusting the radiation intensity of the infrared emitting tube 121 according to the different environmental reflection intensities to compensate for the environment.
[0129] In step S44, the infrared receiving circuit 13 receives the reflected infrared signal at the second receiving angle so that the infrared signal is received after being reflected within a set distance, thereby realizing human proximity detection.
[0130] The current segments can be understood as different ranges or levels of the target current output. Each current segment represents a specific current value range or point. Through segmented control, the target current can be switched between at least twenty current levels to achieve near-stepless adjustment of infrared radiation intensity. This means that when the current segment of the target current is adjusted, the radiation intensity of the infrared emitting tube 121 changes accordingly, thus adjusting the radiation intensity of the infrared emitting tube 121 based on different environmental reflection intensities to compensate for environmental factors.
[0131] Furthermore, in this embodiment of the disclosure, the user is allowed to dynamically fine-tune the radiation intensity of the infrared signal according to the actual situation to compensate for interference factors in the external environment (such as false detection caused by strongly reflective objects). For example, for installation environments with significant directional characteristics in structural spaces such as corridors, entrances, and narrow passages, the user can finely reduce the effective distance of the infrared detection to avoid the signal touching the opposite white wall while retaining the ability to sense the actual user.
[0132] The environmental compensation method provided in this embodiment of the present disclosure, based on the user's setting instructions, allows the wall switch 10 to precisely control the target current to change the radiation intensity of the infrared emitting tube 121, thereby compensating for signal misjudgment caused by wall reflection or other interference sources.
[0133] In some embodiments, there is one or more of the following combinations of current segments between the current segment n∈[1,N] and the detection distance D(n):
[0134] Slightly variable segment group: ∃a,b∈[1,N], such that when n∈[a,b], D(n+1)-D(n)≤ε;
[0135] Transition segment group: ∃c,d∈[1,N], such that when n∈[c,d], D(n+1)-D(n)≥δ;
[0136] Among them, by cooperating with the micro-variable segment group and the abrupt change segment group, when N≥20, the mapping relationship between the current segment n and the corresponding detection distance D(n) satisfies:
[0137] ∀n∈[1,N−1] , D(n+1)−D(n)≥0;
[0138] Where ε and δ are preset thresholds, and δ > ε ≥ 0.
[0139] In this embodiment, the current segment n ranges from [1, N], where N is the maximum number of current segments. For each current segment n, there is a corresponding detection distance D(n), and the changes between these current segments and the detection distance can exhibit different behavioral patterns to form different combinations of current segments.
[0140] In the micro-variation segment group, when the current segment n is within a certain interval [a, b], the change in detection distance D(n) is small, satisfying D(n+1) - D(n) ≤ ε. Here, ε is a preset threshold value, indicating that the change in detection distance cannot exceed this small value when the current segment increases. The purpose of this setting is to ensure that the change in detection distance is very gradual within certain segment ranges, avoiding unstable response due to excessively drastic changes, or ensuring finer adjustment in some special environments (such as spaces with less interference). Specifically, ε might be between 1cm and 5cm. This "micro-variation" method allows for fine adjustment of the detection distance within a small range, ensuring that the change in detection distance does not suddenly become too large when the current segment increases. For example, in some scenarios, it may be necessary to adjust the infrared sensing range very carefully to avoid false triggering or misdetection.
[0141] In contrast to the micro-variable segment group, the abrupt change segment group refers to a situation where, when the current segment n is within the interval [c, d], the change in detection distance is significant, satisfying D(n+1) - D(n) ≥ δ. Here, δ is a preset threshold greater than ε (i.e., δ > ε ≥ 0). When the current segment increases from n to n+1, the change in detection distance is greater than or equal to δ, i.e., a "jump" change occurs. This "jump" method aims to address the need for a wide range of infrared sensing distance adjustments in certain scenarios. For example, in some cases, to adapt to long-distance detection, the detection distance must be rapidly increased to ensure the ability to sense distant objects or users. Therefore, in the abrupt change segment group, the detection distance is adjusted in larger increments to quickly respond to environmental changes. In specific examples, the value of δ can be between 5cm and 10cm.
[0142] Based on the current output characteristics of the output control circuit, the micro-segment group and the abrupt segment group work together to achieve flexible control of the relationship between the current segment and the detection distance. In particular, when the maximum number of current segments N≥20, the detection distance is always increasing throughout the entire current segment range. That is, as the current segment increases, the detection distance will not decrease (it will increase or at least remain unchanged), thus avoiding unpredictable backsliding.
[0143] In some embodiments, the wall switch includes a processing circuit 15 and an environmental compensation circuit 14, which are electrically connected. The method further includes: the processing circuit 15 drives the environmental compensation circuit 14 with a data signal with a period T between [16us, 33us], wherein the pulse width τ of the data signal satisfies T / 2 ≤ τ < 0.9T, so that the proportion of high level in each period T is strictly greater than or equal to 50% and less than 90%, so that when the number of supported current segments is greater than or equal to 20, the detection distance exhibits strict non-decreasing property as the current segment gradually increases throughout the entire current segment range.
[0144] In some embodiments, the environmental compensation circuit 14 includes an output control circuit. Through the output terminal of the output control circuit, the infrared emitting circuit 12 receives the target current, forming the only power supply path for the infrared emitting tube 121.
[0145] The method further includes: configuring the unique power supply path to generate a target output electrical characteristic based on the target current, and directly applying the output electrical characteristic to the infrared emitting tube 121; wherein the output electrical characteristic is used to determine the radiation intensity of the infrared emitting tube 121.
[0146] In this embodiment of the disclosure, the method further includes configuring a unique power supply path, namely, generating a target output electrical characteristic based on the target current and directly applying the output electrical characteristic to the infrared emitting diode 121. During this process, the target current value is converted into specific electrical characteristics, which refer to at least one parameter such as current intensity, waveform, and frequency, and directly control the operating state of the infrared emitting diode 121. Specifically, the output electrical characteristics determine the radiation intensity of the infrared emitting diode 121, including the signal power output and signal coverage range.
[0147] Furthermore, by directly applying the output electrical characteristics to the infrared emitting tube 121, the wall switch 10 can adjust the radiation intensity of the infrared emitting tube 121 according to the set target current, thereby adapting to user needs and ensuring that the working state of the infrared emitting tube 121 remains stable and accurate under different environmental conditions.
[0148] In some embodiments, the wall switch 10 includes a processing circuit 15 and an environmental compensation circuit 14, which are electrically connected; in step S42, the target current is determined based on the instruction; specifically, steps S421 to S423 are included.
[0149] In step S421, the processing circuit 15 receives the instruction set by the user and determines the corresponding adjustment parameters.
[0150] Users input adjustment commands via a mobile app, physical button 111, or other means. These commands may include adjusting the value, mode, or other parameters of the infrared radiation intensity. The processing circuit 15 is responsible for receiving these commands and determining the corresponding adjustment parameters based on the command content. The adjustment parameters here can be understood as identifier parameters representing the corresponding current segment. For example, the current segment of 1mA to 5mA is the first current segment, and its adjustment parameter is 001.
[0151] In step S422, the processing circuit 15 sends the adjustment parameter to the environmental compensation circuit 14.
[0152] In step S423, the environmental compensation circuit 14 maps the received adjustment parameters into a target current through the active energy supply unit 141 according to the preset mapping model.
[0153] Specifically, once the processing circuit 15 determines the adjustment parameters, it sends these parameters to the environmental compensation circuit 14. The environmental compensation circuit 14 receives and processes these parameters to adjust the radiation intensity of the infrared signal according to specific needs.
[0154] The mapping model is typically a mathematical model used to match the adjustment parameters with the actual output target current (or the current segment in which the target current is located). In a specific example, the matching relationship between the adjustment parameters and the target current is non-linear. In some schemes, the mapping model can also be used to match the adjustment parameters with the target current segment, or to match the target current segment (in which case the adjustment parameters represent the target current segment) with the actual output target current.
[0155] The environmental compensation circuit 14, based on the received adjustment parameters and referring to a preset mapping model, controls the active energy supply unit 141 (such as a constant current source or other current regulation module) to convert the adjustment parameters into a target current that matches the target current segment. The magnitude of the target current directly determines the radiation intensity of the infrared emitting tube 121, thereby affecting the coverage range of the infrared signal.
[0156] In some embodiments, the environmental compensation circuit 14 maps the received adjustment parameters to a target current through the active energy supply unit 141 according to a preset mapping model; including: the environmental compensation circuit 14 matches the target current segment corresponding to the adjustment parameters according to the adjustment parameters and the preset mapping model, and outputs a target current adapted to the target current segment through the active energy supply unit 141 to achieve target current regulation.
[0157] Specifically, the preset model pre-sets at least twenty different current segments, each with corresponding adjustment parameters. The active energy supply unit 141 adopts a constant current control mechanism and a single power supply path, enabling it to support no fewer than 20 (preferably more than 80 but less than 100) distinguishable target current output states (i.e., current segments) within a preset current range (e.g., 10mA to 100mA), thus forming an almost stepless radiation intensity adjustment capability.
[0158] This solution allows users to accurately avoid reflection interference zones on opposite walls in typical environments with severe reflection interference, such as corridors, by finely adjusting the settings step by step. For example, if a user wants a sensing distance of 30cm, but the reflection from the opposite white wall causes a false trigger, the user can adjust the sensing distance step by step to 25cm, 20cm, or even 15cm to achieve a state that can both detect real approaching actions and avoid reflection interference.
[0159] Unlike "adjusting distance for the sake of adjusting distance", the core purpose of the multi-current segment adjustment mechanism disclosed herein is to manually achieve environmental interference compensation, especially to adapt to typical spaces with high interference and low fault tolerance, such as corridors, and to solve the problem of false detection that cannot be avoided by existing technologies.
[0160] Furthermore, the embodiments disclosed herein provide an adjustment granularity far exceeding that of existing technologies, significantly improving the adaptability and accuracy of infrared detection, and realizing artificial interference compensation capabilities based on spatial structure. Users can actively adjust according to the actual reflection environment. In typical high-reflection scenarios such as corridors, it effectively solves the problem of continuous misjudgment caused by white wall reflections.
[0161] In some embodiments, the infrared emitting diode 121 is connected in series with the current output terminal of the output control circuit to form the only power supply path for the infrared emitting diode 121, and the only power supply path does not include the variable resistor element.
[0162] Specifically, the so-called unique power supply path can be understood as a single current transmission path from the output terminal of the output control circuit through the infrared emitting diode 121 to ground. It is supplied solely by the output control circuit and does not involve any variable resistor elements. High-precision current control can be achieved by directly adjusting the target current output, thereby precisely adjusting the radiation intensity of the infrared emitting diode 121. Since there are no variable resistor elements, the unique power supply path is not affected by temperature changes or aging during long-term use, thus ensuring the stability and reliability of the current.
[0163] Furthermore, the radiated power of the infrared signal is directly determined by the target current of the output control circuit, and higher current control accuracy and power output stability are achieved through load decoupling.
[0164] Furthermore, the anode of the infrared emitting tube 121 is electrically connected to the output terminal of the output control circuit, and the cathode of the infrared emitting tube 121 is electrically connected to ground through a unique path to form the unique power supply path.
[0165] In this disclosure, the anode of the infrared emitting diode 121 is electrically connected to the output terminal of the output control circuit, and the cathode is electrically connected to ground through a single current path. This ensures that the current supply path for the infrared emitting diode 121 is unique, guaranteeing that the drive current of the infrared emitting diode 121 is directly controlled by the output control circuit.
[0166] Furthermore, through this connection method, the operating current of the infrared emitting diode 121 is precisely adjusted by the output control circuit, thereby achieving a stable infrared signal. This ensures the singularity of the current path and avoids instability or malfunction caused by current loop interference.
[0167] In some embodiments, the output control circuit includes an active energy supply unit 141, which establishes an active energy supply relationship with the infrared emitting diode 121. The target current output by the active energy supply unit 141 is independent of the changes in the electrical characteristics of the infrared emitting diode 121, and forms a closed-loop current path during the operation of the infrared emitting diode 121. This allows the emission power control of the infrared emitting diode 121 to be directly determined by the active energy supply unit 141. The output behavior of the current output terminal of the output control circuit does not depend on the changes in the terminal voltage of the infrared emitting diode 121, the circuit supply voltage, or the loop impedance during the driving process.
[0168] In this embodiment, the active power supply unit 141 can be understood as a circuit or module specifically designed to provide a stable current to the infrared emitting circuit 12. The function of this unit is to ensure that the infrared emitting diode 121 receives a precise current during operation to drive the emission of the infrared signal. By precisely adjusting the current, the active power supply unit 141 can regulate the intensity of the infrared signal to compensate for environmental interference (such as changes in reflection intensity) based on user-initiated adjustments. This unit is independent of changes in the electrical characteristics of the infrared emitting diode 121.
[0169] Furthermore, this disclosure achieves high-precision independent control of the transmission power by using the infrared emitting component as the direct load of the active current supply system, employing an independent current source to output current to drive the load, and not relying on changes in loop impedance characteristics during the driving process.
[0170] In some embodiments, the environmental compensation circuit 14 further includes a processing circuit 15; the processing circuit 15 is electrically connected to the active power supply unit via an IIC bus, and configures the current segment of the target current output by the active power supply unit based on IIC protocol control commands.
[0171] The processing circuit 15 can be understood as an electronic circuit or module that performs a specific control task, and may include, for example, a microprocessor, a microcontroller, or a specific functional module. The infrared receiving circuit 13 receives infrared signals and converts them into electrical signals, which are then provided to the processing circuit 15. The processing circuit 15 analyzes and processes the feedback signals provided by the infrared receiving circuit 13, determines whether a user is near the wall switch 10 based on changes in these electrical signals, and responds accordingly, for example, by generating appropriate control commands to control the operating state of the wall switch 10.
[0172] In this embodiment, the processing circuit 15 determines whether a human body is approaching based on the feedback signal from the infrared receiving circuit 13, and configures the current segment of the infrared emitting tube 121 according to user requirements to achieve interference compensation. Specifically, the processing circuit 15 configures the current segment of the output control circuit through IIC bus protocol control commands, for example, by setting and adjusting the level or range of the target current output by the active power supply unit 141 via IIC. In this disclosure, the processing circuit 15 selects and adjusts the required current segment according to IIC protocol control commands, thereby controlling the emission power of the infrared emitting tube 121.
[0173] In some embodiments, the infrared signal transmission mechanism of the infrared transmitting circuit 12 is based on a time period T1 to achieve periodic active transmission; T1∈[100ms,1s].
[0174] Specifically, in this embodiment of the disclosure, the infrared signal is periodically and actively emitted based on a certain time period T1. This mechanism enables the infrared signal to be continuously emitted during device operation without relying on external operation or triggering.
[0175] The infrared signal transmission period T1 ranges from 100ms to 1s. This range ensures that the infrared signal transmission frequency avoids unnecessary power consumption or signal conflicts caused by excessively frequent signal transmissions, while also ensuring a sufficiently high detection frequency to promptly detect human approach. For example, in relatively static environments (such as corridors or entryways), setting a longer period (such as 1s) helps save energy; while in environments requiring higher precision detection (such as hallways or near light fixtures), the period can be set to 100ms to provide a higher response frequency and sensitivity. In a preferred embodiment, T1 can be set to 200ms, meaning that 5 infrared detections will be performed per second.
[0176] In some embodiments, the infrared signal is modulated based on at least half of the data in the unique device identifier.
[0177] The unique device identifier can be understood as each wall switch 10 having a unique identifier throughout its lifecycle to distinguish different wall switches 10. This identifier is typically a combination of numbers, letters, or a coded sequence to ensure that it is not duplicated among multiple devices. Examples include device serial number (a unique number assigned to the device at the factory), MAC address, etc.
[0178] In this embodiment, each wall switch 10 is assigned a unique device identifier, and a portion of the data in this unique device identifier is used as identification information to modulate the infrared signal, thereby distinguishing the infrared signals of different wall switches 10 and avoiding signal interference between different devices. The infrared signal is formed by superimposing the identification information onto a carrier wave (e.g., a fixed frequency such as 38kHz). At least half of the data in the unique device identifier (e.g., the last six bits of the MAC address or a portion of the serial number) is used to modulate the infrared signal. By embedding this identification information into the infrared signal, it is ensured that the infrared signal emitted by each wall switch 10 has a differentiated encoding method from the infrared signals emitted by other wall switches 10 or other infrared devices, enabling the infrared receiving circuit 13 to identify the "source" of these signals.
[0179] In some embodiments, the wall switch 10 further includes a screen 112, the processing circuit 15 is electrically connected to the infrared receiving circuit 13, and performs human proximity detection based on the electrical signal fed back by the infrared receiving circuit 13, and drives the screen 112 to turn on / off based on the human proximity detection result through the screen 112 driving circuit; and / or, the wall switch 10 includes a button 111, and the screen 112 has display content for identifying the button 111.
[0180] In some embodiments, when there are multiple buttons 111, the screen 112 is correspondingly provided with multiple buttons 111, one-to-one with each button 111.
[0181] In the description of this specification, the references to terms such as "some embodiments," "a specific implementation," "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 this disclosure. In this specification, the illustrative expressions of the above terms corresponding to the described specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0182] 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.
[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure 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 disclosure.
Claims
1. A wall switch, characterized in that, include: The operation panel is designed to receive user input. An infrared emitting circuit is configured to radiate infrared signals at a first emission angle. The infrared receiving circuit is configured to receive the reflected infrared signal at a second receiving angle; wherein the infrared emitting tube of the infrared emitting circuit and the infrared receiving tube of the infrared receiving circuit are set on the same side of the operation panel so that the infrared signal is received after being reflected within a set distance, thereby realizing human body proximity detection. An environmental compensation circuit is electrically connected to the infrared emitting circuit and includes an output control circuit. After being connected to a power source, the circuit outputs a target current that can be adjusted within a preset range and supports at least twenty different current levels.
2. The wall switch according to claim 1, wherein, There is one or more of the following combinations of current segments between the current segment n∈[1,N] and the detection distance D(n): Slightly variable segment group: ∃a,b∈[1,N], such that when n∈[a,b], D(n+1)-D(n)≤ε; Transition segment group: ∃c,d∈[1,N], such that when n∈[c,d], D(n+1)-D(n)≥δ; Among them, the micro-variable segment group and the abrupt change segment group cooperate with each other so that when N≥20, the mapping relationship between the current segment n and the corresponding detection distance D(n) satisfies: ∀ n ∈[1, N −1] , D ( n +1)− D ( n )≥0; Where ε and δ are preset thresholds, and δ > ε ≥ 0.
3. The wall switch according to claim 1, wherein, It also includes a processing circuit that drives an environmental compensation circuit with a data signal with a period T between [16us, 33us], wherein the pulse width τ of the data signal satisfies T / 2 ≤ τ < 0.9T.
4. The wall switch according to claim 1, wherein, The infrared emitting circuit receives the target current through the output terminal of the output control circuit, forming the only power supply path for the infrared emitting tube. This allows the radiation intensity of the infrared emitting tube to change when the current segment of the target current is adjusted, thereby adjusting the radiation intensity of the infrared emitting tube according to the different environmental reflection intensities to compensate for the environment.
5. The wall switch according to claim 1, characterized in that, The infrared emitting diode is connected in series with the current output terminal of the output control circuit, forming the only power supply path for the infrared emitting diode, and the only power supply path does not include the variable resistor element.
6. The wall switch according to claim 4 or 5, characterized in that, The output control circuit includes an active energy supply unit that establishes an active energy supply relationship with the infrared emitting diode. The target current output by the active energy supply unit is independent of the electrical characteristics of the infrared emitting diode and forms a closed-loop current path during the operation of the infrared emitting diode.
7. The wall switch according to claim 6, characterized in that, The anode of the infrared emitting tube is electrically connected to the output terminal of the active energy supply unit, and the cathode of the infrared emitting tube is electrically connected to ground through a single path to form the single power supply path.
8. The wall switch according to claim 7, characterized in that, It also includes a processing circuit; the processing circuit is electrically connected to the active power supply unit via the IIC bus, and configures the current segment of the target current output by the active power supply unit based on the IIC protocol control instructions.
9. The wall switch according to any one of claims 1 to 5, 7, and 8, characterized in that, The infrared signal transmission mechanism of the infrared transmitting circuit is based on a time period T1 to achieve periodic active transmission; T1∈[100ms,1s].
10. The wall switch according to any one of claims 1 to 5, 7, and 8, characterized in that, The wall switch also includes a screen and / or buttons, the screen having display content for identifying the buttons.
11. The wall switch according to claim 10, characterized in that, There are multiple buttons, and the screen is correspondingly equipped with multiple buttons, each corresponding to one of the buttons.