A control method of an intelligent switch connected with a router and the intelligent switch
By introducing an on-state power supply module, an off-state power supply module, and a charging current limiting module into the single-wire switch, combined with a low-power charging strategy, the power failure and restart problem when the single-wire switch is connected to a router is solved, improving stability and reducing costs.
Patent Information
- Application Number
- CN202310133903.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-07
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-02-07
AI Technical Summary
The single-fire switch has the problem of power failure and restart when connected to a router due to high instantaneous power consumption. Existing solutions have problems such as poor user experience, high cost, and large size.
The system employs an on-state power-taking module and an off-state power-taking module to draw power when the switch module is turned on and off, respectively. Combined with a charging current-limiting module to store electrical energy, it powers the communication module. Furthermore, it switches to a low-power mode for charging before each stage of the router connection process to compensate for power consumption.
This effectively avoids the power failure and restart problem when a single-fire switch is connected to a router, ensuring the stability and reliability of the switch during normal operation, and reducing the requirements for capacitor capacity and cost.
Smart Images

Figure CN116054347B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart switch technology, and in particular to a control method for connecting a smart switch to a router, as well as the smart switch itself. Background Technology
[0002] With the increasing popularity of smart switch devices, users have more and more demand for smart switches. The emergence of smart switches makes it more convenient for everyone to control home appliances, lights and other devices. Users can remotely operate smart switches through mobile APP clients, such as remotely controlling the lights to turn on and off.
[0003] Currently, the most common smart switches are neutral-live switches, which require two wires—a neutral wire and a live wire—to form a power circuit. However, most user-side switches only have one live wire. Installing a neutral-live switch would require an additional neutral wire, which is limiting installation options. Therefore, smart switches, or "single-live switches," have emerged. These only require one live wire to form a power circuit through their internal circuitry. They are convenient to install in situations with only one live wire, as they do not require an external neutral wire. However, single-live switches require the device to power their internal control module. Excessive current supply can cause the controlled device to malfunction and restart. Conversely, excessive current limiting can cause the control module to power down and restart during high-power operation due to insufficient power. When a single-live switch is connected to a router, the switch's instantaneous power consumption is high, leading to power-down and restart issues.
[0004] To address the current problems with single-fire switches, there are generally two solutions: 1) Using a non-current-limiting power supply. Although this solution can achieve stable operation of the control module, the large current during high-power operation of the control module can cause the controlled device to start erroneously, resulting in a poor user experience; 2) Using a current-limiting power supply, adding a supercapacitor to provide reverse power when the control module is operating at high power, and charging the capacitor when power is low. However, this solution requires a high capacitor capacity and imposes significant limitations on the size and cost of the switch. Summary of the Invention
[0005] In view of this, the purpose of the present invention is to provide a control method for connecting a smart switch to a router and a smart switch, so as to ensure that the smart switch will not have a power failure and restart problem when connected to the router, thereby ensuring a more stable operation of the smart switch.
[0006] To achieve the above objectives, the present invention provides a control method for connecting a smart switch to a router. The smart switch includes a switch module, an on-state power-taking module, an off-state power-taking module, a charging current-limiting module, and a communication module. The switch module is connected in series with the element to be controlled. The on-state power-taking module draws power from AC power when the switch module is in a conducting state, and the off-state power-taking module draws power from AC power when the switch module is in a disconnected state. The charging current-limiting module draws and stores power from both the on-state and off-state power-taking modules, supplies power to the communication module using the stored power, and limits the current supplied to the communication module. The method includes:
[0007] The process of connecting the smart switch to the router includes at least a first stage and a second stage. After the first stage is completed and before the second stage is executed, the smart switch is switched to a low-power mode and the energy storage power supply is charged for a preset charging time to compensate for the power consumption of the communication module in the first stage.
[0008] Furthermore, the process of the smart switch connecting to the router includes a scanning phase, an authentication phase, an association phase, a handshake phase, and an IP acquisition phase. After each phase is completed and before the next phase is executed, the smart switch is switched to a low-power mode and the energy storage power supply is charged for a preset charging time to compensate for the power consumption of the communication module in the previous phase.
[0009] Furthermore, the charging time settings include:
[0010] The energy storage power supply is charged from a preset voltage threshold to the normal voltage. The first charging time required for this charging process is obtained. The normal voltage is set to the voltage required by the smart switch under full power consumption. The voltage threshold is less than the normal voltage.
[0011] The first discharge time required for the energy storage power supply to discharge from normal voltage to voltage threshold is obtained.
[0012] The ratio of the first charging time to the first discharging time is set as the charging time.
[0013] Furthermore, the method includes a charging control method during the scanning phase, the steps of which include:
[0014] S11. When the smart switch triggers the connection to the router but has not entered the scanning phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S12; otherwise, proceed to step S13.
[0015] S12. Control the smart switch to switch to low power mode, charge the energy storage power supply to the voltage threshold, and execute step S13.
[0016] S13. Control the smart switch to switch to low power mode to charge the energy storage power supply during the charging time.
[0017] S14. After the energy storage power supply is fully charged, the control smart switch switches to normal mode and enters the scanning phase.
[0018] Furthermore, the method includes a charging control method during the certification phase, the steps of which include:
[0019] S21. When the smart switch finishes the scanning phase and has not entered the authentication phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S22; otherwise, proceed to step S23.
[0020] S22. The smart switch switches to low power mode and charges the energy storage power supply to the voltage threshold. Then, step S23 is executed.
[0021] S23. Control the smart switch to switch to low power mode to charge the energy storage power supply during the charging time.
[0022] S24. After the energy storage power supply is fully charged, the control smart switch switches to normal mode, and the smart switch enters the authentication stage.
[0023] Furthermore, the method includes a charging control method for the associated phase, the steps of which include:
[0024] S31. When the smart switch has finished the authentication stage and has not entered the association stage, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If so, proceed to step S32; otherwise, proceed to step S33.
[0025] S32. The smart switch switches to low power mode and charges the energy storage power supply to the voltage threshold. Then, step S33 is executed.
[0026] S33. Determine whether the time difference between the authentication request data packet sent by the smart switch and the authentication response data packet received is greater than a preset time threshold. If yes, proceed to step S34; otherwise, proceed to step S35.
[0027] S34. Control the smart switch to switch to low power mode to charge the energy storage power supply during the charging time, and execute step S35.
[0028] S35. Control the smart switch to switch to normal mode, and the smart switch enters the association stage.
[0029] Furthermore, the method includes a charging control method during the handshake phase, the steps of which include:
[0030] S41. During the handshake phase, control the smart switch to switch to normal mode;
[0031] S42. Calculate the time consumed by the smart switch from the authentication stage to the handshake stage, and determine whether the consumed time is greater than a preset timeout. If so, proceed to step S43; otherwise, proceed to step S44.
[0032] S43. The smart switch exits the handshake phase and restarts the connection to the router;
[0033] S44. The smart switch is ready to enter the IP acquisition phase.
[0034] Furthermore, the timeout period is set based on the ratio of the first charging time to the first discharging time.
[0035] Furthermore, the method includes a charging control method during the IP acquisition phase, the steps of which include:
[0036] S51. When the smart switch ends the handshake phase and has not entered the IP acquisition phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S52; otherwise, proceed to step S53.
[0037] S52. The smart switch switches to low power mode and charges the energy storage power supply to the voltage threshold. Then, step S53 is executed.
[0038] S53, control the smart switch to switch to low power mode to charge the energy storage power supply during the charging time;
[0039] S54. When the energy storage power supply is fully charged, control the smart switch to switch to normal mode, and the smart switch enters the IP acquisition stage.
[0040] To achieve the above objectives, the present invention provides an intelligent switch, comprising:
[0041] The switch module is connected in series with the element to be controlled;
[0042] The communication module controls the switching module to turn on and off.
[0043] The on-state power supply module draws power from the AC power source when the switching module is in the on state;
[0044] The off-state power supply module draws power from the AC power source when the switch module is in the off state;
[0045] The charging current limiting module draws and stores power from the open-state power supply module and the closed-state power supply module respectively, and uses the stored energy to power the communication module and limits the power supply current to the communication module.
[0046] The process of the control module and the smart switch connecting to the router includes at least a first stage and a second stage. After the first stage is completed and before the second stage is executed, the control module switches the smart switch to a low-power mode and charges the energy storage power supply for a preset charging time to compensate for the power consumption of the communication module in the first stage.
[0047] This invention solves the technical problem of power failure and restart during router connection by controlling the smart switch to a low-power state and charging the energy storage power supply in the smart switch before each stage of the smart switch connection process to compensate for the power consumption of the previous stage. This ensures that the switch can operate more stably during normal operation. Attached Figure Description
[0048] Figure 1 This is a schematic diagram of a smart switch according to the present invention;
[0049] Figure 2 This is a flowchart illustrating the control method for connecting a smart switch to a router according to the present invention;
[0050] Figure 3 This is a flowchart illustrating the control method for connecting a smart switch to a router according to the present invention;
[0051] Figure 4 This is a flowchart illustrating the control method for connecting a smart switch to a router according to the present invention;
[0052] Figure 5 This is a flowchart illustrating the control method for connecting a smart switch to a router according to the present invention;
[0053] Figure 6 This is a flowchart illustrating the control method for connecting a smart switch to a router according to the present invention. Detailed Implementation
[0054] The present invention will be described in detail below with reference to the specific embodiments shown in the accompanying drawings. However, these embodiments do not limit the present invention. Any structural, methodological, or functional modifications made by those skilled in the art based on these embodiments are included within the scope of protection of the present invention.
[0055] In one embodiment of this application, such as Figure 1As shown, this application provides a smart switch, including an on-state power supply module 11, an off-state power supply module 12, a charging current limiting module 13, a switch module 14, a communication module 15, and a control module 16. The switch module 15 is connected in series with the element to be controlled. The communication module 15 controls the on and off states of the switch module 14. The on-state power supply module 11 draws power from AC power when the switch module 15 is on, to power the charging current limiting module 13. The off-state power supply module 12 draws power from AC power when the switch module 14 is off, to power the charging current limiting module 13. The charging current limiting module 13 draws power from both the on-state and off-state power supply modules 11 and 12 respectively, stores the stored energy, powers the communication module 15, and limits the supply current to the communication module 15. The communication module 15 integrates a microprocessor and an antenna to establish a communication connection between the smart switch 100 and a router, and controls the on and off states of the switch module 14 via control signals. The process of connecting the smart switch to the router includes at least a first stage and a second stage. After the first stage is completed and before the second stage is executed, the control module 16 switches the smart switch to a low-power mode and charges the energy storage power supply for a preset charging time to compensate for the power consumption consumed by the communication module in the first stage. This ensures that the switch will not experience a power failure and restart when it is connected to the router, even under the premise that the instantaneous power consumption of the smart switch is large, thus greatly improving the stability of the switch.
[0056] As an optional implementation, the process of a smart switch connecting to a router sequentially includes a scanning phase, an authentication phase, an association phase, a handshake phase, and an IP acquisition phase. After each phase is completed and before the next phase begins, the control module 16 switches the smart switch to a low-power mode and charges the energy storage power supply for a preset charging time to compensate for the power consumption consumed by the communication module in the previous phase. By controlling the smart switch to a low-power state and charging its energy storage power supply at each stage of the smart switch's router connection process to compensate for the power consumption consumed in the previous phase, the technical problem of power failure and restart during router connection is solved, ensuring more stable operation of the switch during normal operation.
[0057] In one embodiment of this application, a control method for connecting a smart switch to a router is provided. The method includes: the process of connecting the smart switch to the router includes at least a first stage and a second stage in sequence; after the first stage is completed and before the second stage is executed, the smart switch is switched to a low-power mode and the energy storage power supply is charged for a preset charging time to compensate for the power consumption consumed by the communication module in the first stage, so as to ensure that the switch does not have a power failure and restart problem when connected to the router, so as to ensure that the operation of the smart switch is more stable.
[0058] As an optional implementation, the process of a smart switch connecting to a router includes the following phases: scanning, authentication, association, handshake, and IP acquisition. Before each phase, the smart switch is switched to a low-power mode and the energy storage power supply is charged for a preset charging time to compensate for the power consumption of the communication module in the previous phase. The process of a smart switch connecting to a router generally includes five phases: scanning, authentication, association, handshake, and IP acquisition. The scanning phase is the process of the switch discovering the router; the authentication phase is the link authentication process; the association phase is the association process; the handshake phase is the four-way handshake process; and the IP acquisition phase is the process of the switch dynamically acquiring an IP address. During the switch's connection to the router, in each stage of the process—scanning, authentication, association, handshake, and IP acquisition—the switch is controlled into a low-power mode, entering a sleep state to charge its internal energy storage. This compensates for the power consumption of the previous stage. Once charging is complete, the functions required for each stage are executed. This sleep-charging process extends the switch's connection time with the router, preventing power outages and restarts caused by rapid discharge of the energy storage due to high instantaneous power consumption. This ensures the switch operates stably during normal operation without power outages or restarts.
[0059] As an optional implementation, the charging time setting includes: charging the energy storage power source from a preset voltage threshold to the normal voltage, obtaining the first charging time required for this charging process, where the normal voltage is set to the voltage required by the smart switch at full power consumption, and the voltage threshold is less than the normal voltage; discharging the energy storage power source from the normal voltage to the voltage threshold, obtaining the first discharging time required for this discharging process, and setting the ratio of the first charging time to the first discharging time as the charging time. Users can set the charging time according to their actual needs.
[0060] As an optional implementation method, such as Figure 2 As shown, the steps of the charging control method during the scanning phase include:
[0061] S11. When the smart switch triggers the connection to the router but has not entered the scanning phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S12; otherwise, proceed to step S13.
[0062] S12. Control the smart switch to switch to low power mode, charge the energy storage power supply to the voltage threshold, and execute step S13.
[0063] S13. Control the smart switch to switch to low power mode to charge the energy storage power supply during the charging time.
[0064] S14. After the energy storage power supply is fully charged, the control smart switch switches to normal mode and enters the scanning phase.
[0065] When the smart switch triggers a connection to the router but has not yet entered the scanning phase, it checks if the energy storage power supply's voltage is low, specifically if the voltage is below a preset threshold. If low, the energy storage power supply needs to be charged until the voltage reaches the threshold. Once the voltage is within the normal range, the switch switches to low-power mode, putting it into sleep mode and charging the energy storage power supply for the preset time. If the energy storage power supply's voltage is not low, the switch switches to low-power mode again, putting it into sleep mode and charging the energy storage power supply for the preset time. During this process, the switch remains in sleep mode while the energy storage power supply is charged to compensate for the power consumed during the previous router connection. Once charging is complete, the smart switch switches back to normal mode and enters the scanning phase to perform the scanning operations.
[0066] As an optional implementation method, such as Figure 3 As shown, the steps of the charging control method during the certification phase include:
[0067] S21. When the smart switch finishes the scanning phase and has not entered the authentication phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S22; otherwise, proceed to step S23.
[0068] S22. Control the smart switch to switch to low power mode, charge the energy storage power supply to the voltage threshold, and execute step S23.
[0069] S23. Control the smart switch to switch to low power mode to charge the energy storage power supply during the charging time.
[0070] S24. After the energy storage power supply is fully charged, the control smart switch switches to normal mode, and the smart switch enters the authentication stage.
[0071] During the process of connecting the smart switch to the router, when the scanning phase ends but before entering the authentication phase, it checks whether the voltage of the energy storage power supply is undervoltage, i.e., whether the voltage of the energy storage power supply is lower than a preset voltage threshold. If undervoltage is detected, the energy storage power supply needs to be charged first until the voltage threshold is reached. Once the voltage of the energy storage power supply is at a normal value, the switch is controlled to switch to low-power mode, putting the switch into sleep mode and charging the energy storage power supply for the preset charging time. If the voltage of the energy storage power supply is not undervoltage, the switch is controlled to switch to low-power mode, putting the switch into sleep mode and charging the energy storage power supply for the preset charging time. During this process, by controlling the switch to sleep mode and charging the energy storage power supply, the power consumption consumed during the scanning phase is compensated. After charging is complete, the smart switch is controlled to switch back to normal mode and enter the authentication phase to perform the authentication operations.
[0072] As an optional implementation method, such as Figure 4 As shown, the steps of the charging control method in the associated stage include:
[0073] S31. When the smart switch has finished the authentication stage and has not entered the association stage, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If so, proceed to step S32; otherwise, proceed to step S33.
[0074] S32. The smart switch switches to low power mode and charges the energy storage power supply to the voltage threshold. Then, step S33 is executed.
[0075] S33. Determine whether the time difference between the authentication request data packet sent by the smart switch and the authentication response data packet received is greater than a preset time threshold. If yes, proceed to step S34; otherwise, proceed to step S35.
[0076] S34. Control the smart switch to switch to low power mode to charge the energy storage power supply during the charging time.
[0077] S35. Control the smart switch to switch to normal mode, and the smart switch enters the association stage.
[0078] During the process of connecting the smart switch to the router, when the authentication phase ends but before entering the association phase, it checks whether the voltage of the energy storage power supply is undervoltage, i.e., whether the voltage of the energy storage power supply is lower than a preset voltage threshold. If undervoltage is detected, the energy storage power supply needs to be charged until the voltage threshold is reached. Once the voltage of the energy storage power supply is at a normal value, it checks whether the time difference between the authentication request data packet sent by the smart switch and the authentication response data packet received is greater than a preset time threshold. If the voltage of the energy storage power supply is not undervoltage, it checks whether the time difference between the authentication request data packet sent by the smart switch and the authentication response data packet received is greater than the preset time threshold. If the time difference is greater than the preset time threshold, the switch is controlled to switch to low-power mode, putting the switch into sleep mode to charge the energy storage power supply for a preset charging time. After charging is complete, the smart switch is controlled to switch back to normal mode and enter the association phase to perform the authentication phase operations. If the time difference is less than or equal to the preset time threshold, the smart switch is controlled to switch back to normal mode and enter the association phase to perform the authentication phase operations. The time threshold can be set to 500ms. During this process, the control switch is put into sleep mode and the energy storage power is charged to compensate for the power consumption consumed during the certification phase.
[0079] As an optional implementation, the charging control method in the association phase includes the following steps: if the voltage of the energy storage power supply is higher than the voltage threshold and the time difference is less than the time threshold, the smart switch is controlled to switch to normal mode, and the smart switch enters the association phase.
[0080] As an optional implementation method, such as Figure 5 As shown, the steps of the charging control method during the handshake phase include:
[0081] S41. During the handshake phase, control the smart switch to switch to normal mode;
[0082] S42. Calculate the time consumed by the smart switch from the authentication stage to the handshake stage, and determine whether the consumed time is greater than a preset timeout. If so, proceed to step S43; otherwise, proceed to step S44.
[0083] S43. The smart switch exits the handshake phase and restarts the connection to the router;
[0084] S44. The smart switch is ready to enter the IP acquisition phase.
[0085] Since the handshake protocol data packets between the switch and the router are initiated by the switch itself during the handshake phase, the switch cannot be in sleep mode during this phase. It needs to be in normal mode to ensure the switch can actively send handshake protocol data packets. A timeout period is preset, based on the ratio of the first charging time to the first discharging time. The time consumed by the smart switch from the authentication phase to the handshake phase is calculated, and it is determined whether the consumed time exceeds the preset timeout period. If the consumed time exceeds the timeout period, the smart switch exits the handshake phase, terminates the switch connection to the router, restarts the connection, and waits for the next connection attempt. If the consumed time is less than or equal to the timeout period, the smart switch prepares to enter the IP acquisition phase and executes the operations for this phase. By setting the timeout period, the communication module is prevented from powering off and restarting, ensuring the switch can connect to the router normally.
[0086] As an optional implementation method, such as Figure 6 As shown, the steps of the charging control method during the IP acquisition phase include:
[0087] S51. When the smart switch ends the handshake phase and has not entered the IP acquisition phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S52; otherwise, proceed to step S53.
[0088] S52. The smart switch switches to low power mode and charges the energy storage power supply to the voltage threshold. Then, step S53 is executed.
[0089] S53, control the smart switch to switch to low power mode to charge the energy storage power supply during the charging time;
[0090] S54. When the energy storage power supply is fully charged, control the smart switch to switch to normal mode, and the smart switch enters the IP acquisition stage.
[0091] During the process of connecting the smart switch to the router, before entering the IP acquisition phase after the handshake phase, it checks whether the energy storage power supply voltage is low, i.e., whether the energy storage power supply voltage is lower than a preset voltage threshold. If it is low, the energy storage power supply needs to be charged first until the voltage threshold is reached. Once the energy storage power supply voltage is at a normal value, the switch is controlled to switch to low-power mode, putting the switch into sleep mode and charging the energy storage power supply for a preset charging time. If the energy storage power supply voltage is not low, the switch is controlled to switch to low-power mode, putting the switch into sleep mode and charging the energy storage power supply for a preset charging time. During this process, by controlling the switch to sleep mode and charging the energy storage power supply, the power consumption consumed during the handshake phase is compensated. After charging is complete, the smart switch switches back to normal mode and enters the IP acquisition phase to perform the operations of the IP acquisition phase.
[0092] In summary, during the scanning, authentication, association, handshake, and IP acquisition phases of the smart switch connecting to the router, the switch is controlled to a low-power mode before each phase, essentially putting it into sleep mode to charge its internal energy storage. This compensates for the power consumption of the previous phase. Once charging is complete, the functions required for each phase are executed. This minimizes the power consumption at each stage, preventing power outages and restarts caused by excessively rapid discharge of the energy storage due to high instantaneous power consumption. This ensures the switch remains stable during normal operation and prevents power outages and restarts when connected to the router.
[0093] Although preferred embodiments of the invention have been disclosed for illustrative purposes, those skilled in the art will recognize that various modifications, additions, and substitutions are possible without departing from the scope and spirit of the invention as disclosed in the appended claims.
Claims
1. A control method for connecting a smart switch to a router, the smart switch comprising a switch module, an on-state power-taking module, an off-state power-taking module, a charging current-limiting module, and a communication module, wherein the switch module is connected in series with the element to be controlled, the on-state power-taking module is used to draw power from AC power when the switch module is in a conducting state, the off-state power-taking module is used to draw power from AC power when the switch module is in a disconnected state, the charging current-limiting module is used to draw power from the on-state power-taking module and the off-state power-taking module respectively for storage, and to supply power to the communication module, and to limit the power supply current of the communication module, characterized in that... The method includes: The process of the smart switch connecting to the router includes at least a first stage and a second stage in sequence. Before the second stage is executed, the smart switch is switched to a low-power mode and the energy storage power is charged for a preset charging time to compensate for the power consumption of the communication module in the first stage. in, The process of the smart switch connecting to the router includes a scanning phase, an authentication phase, an association phase, a handshake phase, and an IP acquisition phase. After each phase is completed and before the next phase is executed, the smart switch is switched to a low-power mode and the energy storage power supply is charged for a preset charging time to compensate for the power consumption of the communication module in the previous phase. The method includes a charging control method during the scanning phase, the steps of which include: S11. When the smart switch triggers the connection to the router but has not entered the scanning phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S12; otherwise, proceed to step S13. S12. Control the smart switch to switch to low power mode, charge the energy storage power supply to the voltage threshold, and execute step S13. S13. Control the smart switch to switch to low power mode, and charge the energy storage power supply for the charging time. S14. After the energy storage power supply is fully charged, control the smart switch to switch to normal mode, and the smart switch enters the scanning phase.
2. The control method for connecting a smart switch to a router as described in claim 1, characterized in that, The method includes a charging control method for the certification phase, the steps of which include: S21. When the smart switch ends the scanning phase but does not enter the authentication phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S22; otherwise, proceed to step S23. S22. The smart switch switches to low power mode and charges the energy storage power supply to the voltage threshold. Then, step S23 is executed. S23. Control the smart switch to switch to low power mode, and charge the energy storage power supply for the charging time. S24. After the energy storage power supply has finished charging, control the smart switch to switch to normal mode, and the smart switch enters the authentication stage.
3. The control method for connecting a smart switch to a router as described in claim 2, characterized in that, The method includes a charging control method for the associated phase, the steps of which include: S31. When the smart switch ends the authentication stage but does not enter the association stage, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S32; otherwise, proceed to step S33. S32. The smart switch switches to low power mode and charges the energy storage power supply to the voltage threshold. Step S33 is then executed. S33. Determine whether the time difference between the authentication request data packet sent by the smart switch and the authentication response data packet received is greater than a preset time threshold. If yes, proceed to step S34; otherwise, proceed to step S35. S34. Control the smart switch to switch to low power mode, and charge the energy storage power supply for the charging time, and execute step S35. S35. Control the smart switch to switch to normal mode, and the smart switch enters the association stage.
4. The control method for connecting a smart switch to a router as described in claim 2, characterized in that, The method includes a charging control method for the handshake phase, the steps of which include: S41. During the handshake phase, control the smart switch to switch to normal mode; S42. Calculate the time consumed by the smart switch from the authentication stage to the handshake stage, and determine whether the consumed time is greater than a preset timeout. If so, proceed to step S43; otherwise, proceed to step S44. S43. The smart switch exits the handshake phase and restarts the connection to the router; S44. The smart switch is ready to enter the IP acquisition phase.
5. The control method for connecting a smart switch to a router as described in claim 4, characterized in that, The timeout period is set according to the ratio of the first charging time to the first discharging time.
6. The control method for connecting a smart switch to a router as described in claim 2, characterized in that, The method includes a charging control method for the IP acquisition phase, the steps of which include: S51. When the smart switch ends the handshake phase but does not enter the IP acquisition phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S52; otherwise, proceed to step S53. S52. The smart switch switches to low power mode and charges the energy storage power supply to the voltage threshold. Then, step S53 is executed. S53. Control the smart switch to switch to low power mode, and charge the energy storage power supply for the charging time. S54. After the energy storage power supply is fully charged, control the smart switch to switch to normal mode, and the smart switch enters the IP acquisition stage.
7. A smart switch, characterized in that, include: The switch module is connected in series with the element to be controlled; The communication module controls the switching module to be turned on and off; The on-state power supply module draws power from the AC power source when the switch module is in the on state. The off-state power supply module draws power from AC power when the switch module is in the off state; The charging current limiting module draws and stores power from the open-state power supply module and the closed-state power supply module respectively, supplies power to the communication module with the stored energy, and limits the power supply current of the communication module. The control module, the process of the smart switch connecting to the router includes at least a first stage and a second stage in sequence. Before the first stage is completed and before the second stage is executed, the control module switches the smart switch to a low power mode and charges the energy storage power supply for a preset charging time to compensate for the power consumption consumed by the communication module in the first stage. in, The process of the smart switch connecting to the router includes a scanning phase, an authentication phase, an association phase, a handshake phase, and an IP acquisition phase. After each phase is completed and before the next phase is executed, the smart switch is switched to a low-power mode and the energy storage power supply is charged for a preset charging time to compensate for the power consumption of the communication module in the previous phase. The control module is specifically used to: execute the charging control steps during the scanning phase, the steps of which include: S11. When the smart switch triggers the connection to the router but has not entered the scanning phase, determine whether the voltage of the energy storage power supply is lower than the voltage threshold. If yes, proceed to step S12; otherwise, proceed to step S13. S12. Control the smart switch to switch to low power mode, charge the energy storage power supply to the voltage threshold, and execute step S13. S13. Control the smart switch to switch to low power mode, and charge the energy storage power supply for the charging time. S14. After the energy storage power supply is fully charged, control the smart switch to switch to normal mode, and the smart switch enters the scanning phase.
Citation Information
Patent Citations
Automatic production line mobile robot energy management method and management device
CN114744705A
Single-live-wire switch circuit and single-live-wire switch
CN211580263U
Intelligent switch
CN219202167U
