Processing method and device for effectively reducing zigbee single-live-wire switch network distribution and network access power consumption, processor and storage medium

By intermittently scanning channels and adjusting sleep time, combined with SecureRejoin and InsecureRejoin, the problem of high power consumption during the zigbee single-fire switch distribution and network entry process is solved, and the network is distributed or network entry is achieved when the light is on, and the risk of small power load flickering is reduced.

CN119882506APending Publication Date: 2025-04-25SIMON ELECTRIC CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311818935.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-10-23
Filing Date
2023-12-27
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

The existing zigbee single fire switches consume high power during distribution and network access, resulting in insufficient power withdrawal capacity of the power board, which may cause the MCU to restart and cannot distribute the network while the light is turned on, and the small power load is prone to flash.

Method used

By intermittently scanning 16 channels and entering sleep timing wake-up mode according to the detected voltage, adjusting the sleep duration to reduce power consumption. During the distribution and network access process, SecureRejoin and InsecureRejoin scan channels alternately to ensure stable MCU power supply.

Benefits of technology

It effectively reduces the average power consumption during the distribution and access process of zigbee single fire switch, so that the single fire switch can be distributed or accessed when the light is on, avoiding the problem of insufficient power supply board power supply, and solving the problem of flickering small power loads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119882506A_ABST
    Figure CN119882506A_ABST
Patent Text Reader

Abstract

The invention relates to a processing method for effectively reducing zigbee single fire switch network distribution and network access power consumption. The processing method comprises a zigbee single fire switch network distribution process and a network access process through Rejoin. The invention further relates to a processing device, a processor and a storage medium for effectively reducing the zigbee single fire switch network distribution and network access power consumption. By adopting the processing method and device for effectively reducing the power consumption of the zigbee single-live-wire switch network distribution and network access, the processor and the computer readable storage medium thereof, a scheme for reducing the average power consumption of the zigbee single-live-wire switch network distribution and network access process is provided, so that the single-live-wire switch is subjected to network distribution or network access in a light-on state, and the power consumption of the zigbee single-live-wire switch network distribution and network access is reduced. And restarting caused by insufficient power taking capability of the power panel is avoided. The defect that the lamp must be turned off when the single-live-wire switch is in network distribution or network access at present is overcome, and meanwhile the problem that the small-power load lamp is prone to flicker when the single-live-wire switch is in network distribution or network access is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home control, in particular to the field of ZigBee single-fire switch, and specifically refers to a processing method, device, processor and computer-readable storage medium thereof for effectively reducing the power consumption of network distribution and access of ZigBee single-fire switch. Background Art

[0002] In recent years, smart home systems have been used more and more widely in hotels, residences, offices and other places, and Zigbee has played an important role in wireless smart home systems. Single-fire switch products belong to Zigbee sleepy end devices, or ZSEDs, in Zigbee networks. Single-fire switches have high requirements for low power consumption, which is a challenge to the power consumption of Zigbee devices when they are connected to the network.

[0003] At present, the single-fire switch in the industry has two different power supply circuits for the light-on and light-off states. When the single-fire panel is on, the power supply capacity of the power board is weak. If the MCU power consumption is high during the network distribution process, it will lead to insufficient power supply capacity, voltage being pulled down, and MCU restarting; when the single-fire switch is off, if the MCU power consumption is high during the network distribution process, it will cause the load below 3W to flicker, reducing the overall user experience. In order to prevent the MCU from restarting and not working properly, the relay needs to be turned off when the single-fire switch is networked, and the network is connected in the light-off state. Every time the single-fire switch is powered on, it needs to rejoin to rejoin the network. At this time, the power consumption is also relatively high. In order to prevent the MCU from restarting due to insufficient power supply, all relays will be turned off when the single-fire switch is powered on, and rejoining will be performed in the light-off state. There are several disadvantages in the above network distribution and access methods: 1. The single-fire panel cannot be networked when the light is on; 2. All relays need to be turned off each time the power is turned on, and the power-off memory function cannot be realized; 3. Even when the network is connected or connected in the light-off state, the load below 3W will flicker. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a processing method, device, processor and computer-readable storage medium thereof that are simple to operate, low in power consumption and have a wide range of applications for effectively reducing the power consumption of zigbee single fire switch network distribution and access.

[0005] In order to achieve the above-mentioned purpose, the processing method, device, processor and computer-readable storage medium of the present invention for effectively reducing the power consumption of the zigbee single fire switch network distribution and access are as follows: The method for effectively reducing the power consumption of zigbee single fire switch network distribution and network access is mainly characterized in that the method includes the process of zigbee single fire switch network distribution and the process of network access through Rejoin. The specific process of the zigbee single fire switch network distribution is as follows: The Zigbee single fire switch scans 16 channels intermittently during the network distribution process, and enters the sleep timer wake-up mode according to the detected voltage during the scanning and monitoring process; The process of joining the network through Rejoin is specifically as follows: Scan the channel n times by SecureRejoin. If the rejoin is still not successful, scan by SecureRejoin and InsecureRejoin alternately. During the scanning and monitoring process, enter the sleep timer wake-up mode according to the detected voltage.

[0006] Preferably, the process of the zigbee single fire switch network distribution specifically includes the following steps: (1-1) The ZigBee single fire switch scans a channel during the network distribution process and detects the power supply voltage of the MCU during the scanning and monitoring process; (1-2) If the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring; (1-3) After waking up at a scheduled time, continue to monitor the current channel; (1-4) If no response is received after the monitoring timer expires, the device will continue to scan the next channel after waiting for the default channel scan interval until all channels have been scanned.

[0007] Preferably, in the step (1-2), the sleep duration is adjusted as follows: Adjust the sleep duration according to the following formula: Sleep duration = (default monitoring time / actual duration of this monitoring) × default sleep time.

[0008] Preferably, the network access through Rejoin specifically includes the following steps: (2-1) Use SecureRejoin to send a Rejoin Request to the current channel and listen for a short period of time for a Rejoin Response. (2-2) If no Rejoin Response is received, wait for the default SecureRejoin interval and continue with step (2-1); (2-3) Scan through SecureRejoin for n consecutive times. If the network rejoin fails, scan using SecureRejoin and InsecureRejoin alternately. (2-4) During the Rejoin scan monitoring process, the MCU power supply voltage is detected. If the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring; (2-5) After the scheduled wake-up, continue to monitor the current channel; (2-6) If no response is received after the monitoring timer expires, continue the Rejoin network access process.

[0009] Preferably, the sleep duration is adjusted in the steps (2-4), specifically: Adjust the sleep duration according to the following formula: Sleep duration = (Rejoin default listening time / actual duration of this listening) × default sleeping time.

[0010] Preferably, in the step (2-3), when scanning using the InsecureRejoin method, the 11th channel to the 26th channel are scanned in sequence, and only one channel is scanned each time.

[0011] Preferably, the zigbee single fire switch network configuration process also includes a network configuration process, which specifically includes the following steps: (3-1) After the single-fire panel starts the network distribution, set the channel number of the scanning channel to 11; (3-2) Send beacon request, scan and listen for 507ms and wait for beacon response; (3-3) During the scanning and monitoring process, the power supply voltage of the MCU is detected to determine whether the detected power supply voltage of the MCU is lower than the threshold close to the power exhaustion point. If so, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring, and the step (3-4) is continued; otherwise, the step (3-5) is continued; (3-4) After the scheduled wake-up, continue to monitor the current channel; (3-5) Determine whether a beacon response is received within 507ms. If yes, continue with the subsequent network configuration process; otherwise, continue with step (3-6); (3-6) Determine whether the channel number of the scanned channel is less than 26. If so, proceed to step (3-7); otherwise, proceed to step (3-8); (3-7) Increase the scanned channel number by 1, wait for 1 second each time a channel is scanned, and then scan the next channel until the channel number is 26, and continue with step (3-2); (3-8) Determine whether the network configuration time has ended. If so, the network configuration is ended; otherwise, continue with step (3-2).

[0012] Preferably, in step (3-3), the sleep duration is adjusted as follows: Adjust the sleep duration according to the following formula: Sleep duration = (default monitoring time / actual duration of this monitoring) × default sleep time.

[0013] Preferably, the process of joining the network through Rejoin also includes a rejoining process, which specifically includes the following steps: (4-1) Use SecureRejoin to send a Rejoin Request to the current channel and listen for a short period of time for a Rejoin Response. (4-2) During the Rejoin scan monitoring process, the MCU power supply voltage is detected. If the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring, and the step (4-3) is continued; otherwise, the step (4-4) is continued; (4-3) After the scheduled wake-up, continue to monitor the current channel and continue with step (4-4); (4-4) Determine whether a Rejoin Response is received within 160ms. If so, the network access is successful and proceed to step (4-5); otherwise, proceed to step (4-6); (4-5) The single fire switch sends a Device Announce message to inform other devices that it has returned to the network, and the steps are completed; (4-6) Determine whether the number of SecureRejoin executions is greater than 10 times. If so, proceed to step (4-7); otherwise, delay and wait for the default SecureRejoin interval time and proceed to step (4-1); (4-7) Use SecureRejoin and InsecureRejoin methods alternately to scan.

[0014] Preferably, the steps (4-7) specifically include the following steps: (4-7.1) Set the InsecureRejoin scan channel number to 11; (4-7.2) Delay and wait for a period of time; (4-7.3) Use the InsecureRejoin method to send a Rejoin Request that is not encrypted by the network key on the scanning channel and start monitoring. If the MCU voltage is detected to be pulled down to the threshold during the monitoring process, the monitoring is suspended and the system goes to sleep. (4-7.4) Continue to listen after the scheduled wake-up to determine whether a Rejoin Response is received. If so, continue to receive the network key and proceed to step (4-7.8); otherwise, proceed to step (4-7.5); (4-7.5) Delay waiting for the default SecureRejoin interval, use SecureRejoin to send Rejoin Response on the current channel, and start monitoring. If the MCU voltage is detected to be lowered to the threshold during the monitoring process, the monitoring is suspended and the system goes to sleep. (4-7.6) Determine whether a Rejoin Response is received. If so, proceed to step (4-7.8); otherwise, proceed to step (4-7.7); (4-7.7) Determine whether the channel number of the InsecureRejoin scan channel is less than 26. If so, set the InsecureRejoin scan channel number plus 1 and continue with step (4-7.2); otherwise, continue with step (4-7.1); (4-7.8) Send Device Announce to notify other devices that you have returned to the network, and the process ends.

[0015] Preferably, the step (4-2) of adjusting the sleep duration is specifically as follows: Adjust the sleep duration according to the following formula: Sleep duration = (Rejoin default listening time / actual duration of this listening) × default sleeping time.

[0016] The device for effectively reducing the power consumption of the zigbee single fire switch network distribution and access is mainly characterized in that the device comprises: a processor configured to execute computer-executable instructions; The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned processing method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access are implemented.

[0017] The processor for realizing the processing of effectively reducing the power consumption of the zigbee single fire switch network distribution and network access has the main feature that the processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the various steps of the above-mentioned processing method for realizing effectively reducing the power consumption of the zigbee single fire switch network distribution and network access are realized.

[0018] The computer-readable storage medium has the main feature of storing a computer program thereon, and the computer program can be executed by a processor to implement the various steps of the above-mentioned processing method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access.

[0019] The processing method, device, processor and computer-readable storage medium of the present invention for effectively reducing the power consumption of the zigbee single fire switch during network connection and network access are adopted to provide a solution for reducing the average power consumption of the zigbee single fire switch during network connection and network access, so that the single fire switch can be connected to the network or network when the light is on, and the power board will not be restarted due to insufficient power supply. This makes up for the current deficiency that the light must be turned off when the single fire switch is connected to the network or network, and solves the problem that the small power load light is easy to flicker when the single fire switch is connected to the network or network. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1a The present invention is a flowchart of the high average power consumption of the zigbee single fire switch network distribution without intermittent scanning, which realizes the processing method of effectively reducing the power consumption of the zigbee single fire switch network distribution and network access.

[0021] Figure 1b The present invention provides a flowchart of the low average power consumption of the intermittent scanning of the zigbee single fire switch network distribution, which is a processing method for realizing effective reduction of the power consumption of the zigbee single fire switch network distribution and access.

[0022] Figure 2 The present invention provides a flowchart of a processing method for realizing effective reduction of power consumption of zigbee single fire switch network distribution and access through rejoining.

[0023] Figure 3a The present invention provides a flowchart of the InsecureRejoin continuous scanning of 16 channels during the network configuration process of the processing method for effectively reducing the network configuration and network access power consumption of a ZigBee single fire switch.

[0024] Figure 3b The present invention provides a flow chart of Rejoin intermittent scanning during the network distribution process of a processing method for realizing effective reduction of network distribution and network access power consumption of a ZigBee single fire switch.

[0025] Figure 4a The present invention is a flowchart of the re-entry process of the processing method for effectively reducing the network distribution and network access power consumption of a ZigBee single fire switch.

[0026] Figure 4b The present invention is a flowchart of the method for realizing the effective reduction of the power consumption of the zigbee single fire switch network distribution and network access by performing InsecureRejoin and SecureRejoin in turn. Implementation

[0027] In order to more clearly describe the technical content of the present invention, further description is given below in conjunction with specific embodiments.

[0028] The present invention realizes a processing method for effectively reducing the power consumption of zigbee single fire switch network configuration and network access, which includes the process of zigbee single fire switch network configuration and the process of network access through Rejoin. The specific process of the zigbee single fire switch network distribution is as follows: The Zigbee single fire switch scans 16 channels intermittently during the network distribution process, and enters the sleep timer wake-up mode according to the detected voltage during the scanning and monitoring process; The process of joining the network through Rejoin is specifically as follows: Scan the channel n times by SecureRejoin. If the rejoin is still not successful, scan by SecureRejoin and InsecureRejoin alternately. During the scanning and monitoring process, enter the sleep timer wake-up mode according to the detected voltage.

[0029] As a preferred embodiment of the present invention, the process of the zigbee single fire switch network distribution specifically includes the following steps: (1-1) The ZigBee single fire switch scans a channel during the network distribution process and detects the power supply voltage of the MCU during the scanning and monitoring process; (1-2) If the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring; (1-3) After waking up at a scheduled time, continue to monitor the current channel; (1-4) If no response is received after the monitoring timer expires, the device will continue to scan the next channel after waiting for the default channel scan interval until all channels have been scanned.

[0030] As a preferred embodiment of the present invention, the sleep duration is adjusted in step (1-2), specifically: Adjust the sleep duration according to the following formula: Sleep duration = (default monitoring time / actual duration of this monitoring) × default sleep time.

[0031] Preferably, the network access through Rejoin specifically includes the following steps: (2-1) Use SecureRejoin to send a Rejoin Request to the current channel and listen for a short period of time for a Rejoin Response. (2-2) If no Rejoin Response is received, wait for the default SecureRejoin interval and continue with step (2-1); (2-3) Scan through SecureRejoin for n consecutive times. If the network rejoin fails, scan using SecureRejoin and InsecureRejoin alternately. (2-4) During the Rejoin scan monitoring process, the MCU power supply voltage is detected. If the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring; (2-5) After the scheduled wake-up, continue to monitor the current channel; (2-6) If no response is received after the monitoring timer expires, continue the Rejoin network access process.

[0032] As a preferred embodiment of the present invention, the sleep duration is adjusted in the steps (2-4), specifically: Adjust the sleep duration according to the following formula: Sleep duration = (Rejoin default listening time / actual duration of this listening) × default sleeping time.

[0033] As a preferred implementation of the present invention, in the step (2-3), when scanning using the InsecureRejoin method, the 11th channel to the 26th channel are scanned in sequence, and only one channel is scanned each time.

[0034] As a preferred embodiment of the present invention, the zigbee single fire switch network distribution process also includes a network distribution process, which specifically includes the following steps: (3-1) After the single-fire panel starts the network distribution, set the channel number of the scanning channel to 11; (3-2) Send beacon request, scan and listen for 507ms and wait for beacon response; (3-3) During the scanning and monitoring process, the power supply voltage of the MCU is detected to determine whether the detected power supply voltage of the MCU is lower than the threshold close to the power exhaustion point. If so, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring, and the step (3-4) is continued; otherwise, the step (3-5) is continued; (3-4) After the scheduled wake-up, continue to monitor the current channel; (3-5) Determine whether a beacon response is received within 507ms. If yes, continue with the subsequent network configuration process; otherwise, continue with step (3-6); (3-6) Determine whether the channel number of the scanned channel is less than 26. If so, proceed to step (3-7); otherwise, proceed to step (3-8); (3-7) Increase the scanned channel number by 1, wait for 1 second each time a channel is scanned, and then scan the next channel until the channel number is 26, and continue with step (3-2); (3-8) Determine whether the network configuration time has ended. If so, the network configuration is ended; otherwise, continue with step (3-2).

[0035] As a preferred embodiment of the present invention, the sleep duration is adjusted in step (3-3), specifically: Adjust the sleep duration according to the following formula: Sleep duration = (default monitoring time / actual duration of this monitoring) × default sleep time.

[0036] As a preferred embodiment of the present invention, the process of joining the network through Rejoin also includes a rejoining process, which specifically includes the following steps: (4-1) Use SecureRejoin to send a Rejoin Request to the current channel and listen for a short period of time for a Rejoin Response. (4-2) During the Rejoin scan monitoring process, the MCU power supply voltage is detected. If the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring, and the step (4-3) is continued; otherwise, the step (4-4) is continued; (4-3) After the scheduled wake-up, continue to monitor the current channel and continue with step (4-4); (4-4) Determine whether a Rejoin Response is received within 160ms. If so, the network access is successful and proceed to step (4-5); otherwise, proceed to step (4-6); (4-5) The single fire switch sends a Device Announce message to inform other devices that it has returned to the network, and the steps are completed; (4-6) Determine whether the number of SecureRejoin executions is greater than 10 times. If so, proceed to step (4-7); otherwise, delay and wait for the default SecureRejoin interval time and proceed to step (4-1); (4-7) Use SecureRejoin and InsecureRejoin methods alternately to scan.

[0037] As a preferred embodiment of the present invention, the steps (4-7) specifically include the following steps: (4-7.1) Set the InsecureRejoin scan channel number to 11; (4-7.2) Delay and wait for a period of time; (4-7.3) Use the InsecureRejoin method to send a Rejoin Request that is not encrypted by the network key on the scanning channel and start monitoring. If the MCU voltage is detected to be pulled down to the threshold during the monitoring process, the monitoring is suspended and the system goes to sleep. (4-7.4) Continue to listen after the scheduled wake-up to determine whether a Rejoin Response is received. If so, continue to receive the network key and proceed to step (4-7.8); otherwise, proceed to step (4-7.5); (4-7.5) Delay waiting for the default SecureRejoin interval, use SecureRejoin to send Rejoin Response on the current channel, and start monitoring. If the MCU voltage is detected to be lowered to the threshold during the monitoring process, the monitoring is suspended and the system goes to sleep. (4-7.6) Determine whether a Rejoin Response is received. If so, proceed to step (4-7.8); otherwise, proceed to step (4-7.7); (4-7.7) Determine whether the channel number of the InsecureRejoin scan channel is less than 26. If so, set the InsecureRejoin scan channel number plus 1 and continue with step (4-7.2); otherwise, continue with step (4-7.1); (4-7.8) Send Device Announce to notify other devices that you have returned to the network, and the process ends.

[0038] As a preferred embodiment of the present invention, the sleep duration is adjusted in step (4-2), specifically: Adjust the sleep duration according to the following formula: Sleep duration = (Rejoin default listening time / actual duration of this listening) × default sleeping time.

[0039] The device of the present invention is used to realize the processing of effectively reducing the power consumption of the zigbee single fire switch network distribution and access, wherein the device comprises: a processor configured to execute computer-executable instructions; The memory stores one or more computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned processing method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access are implemented.

[0040] The processor of the present invention is used to realize the processing of effectively reducing the power consumption of the zigbee single fire switch network distribution and network access, wherein the processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the various steps of the above-mentioned processing method for effectively reducing the power consumption of the zigbee single fire switch network distribution and network access are realized.

[0041] The computer-readable storage medium of the present invention stores a computer program thereon, and the computer program can be executed by a processor to implement the various steps of the above-mentioned processing method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access.

[0042] In a specific embodiment of the present invention, a solution is provided to reduce the power consumption of a zigbee single-fire switch when connecting to the network. The relay does not need to be turned off during network connection, and the single-fire switch can connect to the network with the light on. The relay does not need to be turned off when powering on to connect to the network, and the power-off memory function can be realized. When connecting to the network or connecting to the network with the light off, the power consumption is low, and the 3W load will not flicker.

[0043] As shown in Figure 1, the Zigbee single-fire switch will scan 16 channels from 11 to 26 when configuring the network. When the Zigbee single-fire switch is scanning the channels, it sends a beacon request on each channel, and then switches to the receiving state to listen for a beacon packet reply. Most of the time when the device is scanning the channels is the listening time.

[0044] EmberZnet defaults to a monitoring time of 507ms per channel, and scans 16 channels continuously. This network configuration method will cause the average power consumption of the zigbee sleepy end device, such as the zigbee single-fire switch, to be high in a short period of time, resulting in insufficient power supply capacity, and the voltage being pulled down and restarting.

[0045] In order to reduce the average power consumption in a short period of time during the network configuration process, this solution scans the next channel after waiting for the default channel scanning interval after scanning a channel. During the scanning and monitoring process, the power supply voltage of the MCU is detected. When the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered. The sleep duration is adjusted according to the actual duration of this monitoring, and the formula is: (default monitoring time / actual duration of this monitoring) × default sleep time. After the timed wake-up, continue to monitor the current channel. If no response is received after the monitoring timer ends, continue to scan the next channel. By adjusting the default sleep time, the average current during the network configuration process is reduced, and the channel scan is performed as frequently as possible to ensure the efficiency of the network configuration. As shown in Figure 1, the effect of the device continuously scanning 16 channels and scanning 16 channels at the intermittent default channel scanning interval is compared. Scanning 16 channels at the intermittent default channel scanning interval can effectively reduce the average power consumption during network configuration.

[0046] There are two ways for Zibee sleepy end device to rejoin the network: one is SecureRejoin and the other is InsecureRejoin. In SecureRejoin, the device has the Network Key of the current network. The Rejoin Request command sent needs to be encrypted with the Network Key, and the corresponding Rejoin Response command also needs network layer encryption. SecureRejoin only scans the channel where the current network is located. In the InsecureRejoin method, both the RejoinRequest and Rejoin Response are not encrypted with the Network key. The InsecureRejoin method scans all 16 channels. When the Truster Center in the network switches channels, updates the Network Key, and changes the PANID, the single fire switch can return to the network through InsecureRejoin.

[0047] As shown in Figure 3, regarding the method of rejoining the network, EmberZnet will SecureRejoin the current channel by default, and scan all channels by InsecureRejoin after a few seconds. In the process of scanning all channels, the average power consumption is high in a short period of time, and the device restarts due to insufficient power supply. When the device rejoins the network after powering on, in order to restore the network before power failure as soon as possible, this solution sends a Rejoin Request to the current channel in the SecureRejoin mode, listens for a short period of time (the default listening time for rejoin is about 160ms) to wait for the Rejoin Response. If no Rejoin Response is received, wait for 1 second (the default SecureRejoin interval time), and then start SecureRejoin again, and scan for SecureRejoin continuously for n times. If rejoin is still not successful after n times, SecureRejoin and InsecureRejoin are used alternately to scan, where InsecureRejoin will scan channels 11 to 26 in sequence, and only scan one channel each time. During the rejoin scanning and monitoring process, the power supply voltage of the MCU is detected. When the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered. The sleep duration is adjusted according to the actual duration of this monitoring, and the formula is: (rejoin default monitoring time / actual duration of this monitoring) × default sleep time. After the scheduled wake-up, continue to monitor on the current channel. If no response is received after the monitoring timer ends, continue the rejoin process.

[0048] like Figure 2 As shown in the figure, it is the network configuration process. After the single-fire panel starts the network configuration, it will first send a beacon request on channel 11, then scan and listen for 507ms, wait for the beacon response, and detect the power supply voltage of the MCU during the scanning and listening process. When the voltage is detected to be lower than the threshold close to the power exhaustion point, it will immediately enter the sleep timer wake-up mode. The sleep duration is adjusted according to the actual duration of this monitoring, and the formula is: (default monitoring time / actual duration of this monitoring) × default sleep time. After the timed wake-up, continue to monitor on the current channel. If a beacon response is received before the timeout, the subsequent network configuration process will continue. If no beacon response is received, the channel number will be increased by one. In order to reduce the average power consumption during the network configuration process, each time a channel is scanned, it will wait for 1 second before scanning the next channel. Scan from channel 11 to channel 26, a total of 16 channels. If the network configuration time has not ended, after the scanning of 16 channels is completed, restart the scanning from channel 11. If the network configuration time ends and the beacon response is still not received, the network configuration fails.

[0049] As shown in Figure 4, this is the re-entry process. After the single-fire panel is powered on, in order to restore the network before power failure as soon as possible, a Rejoin Request is sent to the current channel in the SecureRejoin mode, and a short period of time (about 160ms) is monitored to wait for the Rejoin Response response. During the rejoin scanning and monitoring process, the MCU's power supply voltage is detected. When the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered. The sleep duration is adjusted according to the actual duration of this monitoring, and the formula is: (rejoin default monitoring time / this monitoring actual duration) × default sleep time. After the timed wake-up, continue to monitor on the current channel. If a Rejoin Response is received, it means that the network is successfully joined, and then the single-fire switch will send a Device Announce to inform other devices that it has returned to the network. If a Rejoin Response is not received, wait for 1 second (default SecureRejoin interval time), and then start SecureRejoin again, and scan for SecureRejoin n times continuously. If rejoin is still unsuccessful after n times, SecureRejoin and InsecureRejoin will be used alternately to scan. InsecureRejoin will scan channels 11 to 26 in sequence, scanning only one channel at a time. InsecureRejoin sends a rejoinRequest without network key encryption on the scanning channel, and then monitors on the scanning channel. During the monitoring process, if the MCU voltage is detected to be pulled down to the threshold, the monitoring will also be suspended, and the device will enter sleep mode. After waking up at a fixed time, the device will continue to monitor. If a rejoin Response is received, the device will continue to receive the network key and send a Device Announce to inform other devices that the device has returned to the network. If a Rejoin Response is not received, the device will wait for 1 second (the default interval before SecureRejoin) and then scan the current channel with SecureRejoin.

[0050] For example, after SecureRejoin finishes scanning the current channel, wait for six seconds (the default interval before InsecureRejoin), and start InsecureRejoin to scan channel 11. After InsecureRejoin finishes, wait for one second (the default interval before SecureRejoin), and start SecureRejoin to scan the current channel. After SecureRejoin finishes scanning the current channel, wait for six seconds (the default interval before InsecureRejoin), and start InsecureRejoin to scan channel 12. Rejoin is performed in sequence until the network is successfully joined.

[0051] The specific implementation scheme of this embodiment can refer to the relevant description in the above embodiment, which will not be repeated here.

[0052] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0053] It should be noted that, in the description of the present invention, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "plurality" refers to at least two.

[0054] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0055] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution device. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0056] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the corresponding program may be stored in a computer-readable storage medium, which, when executed, includes one of the steps of the method embodiment or a combination thereof.

[0057] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0058] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.

[0059] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0060] The processing method, device, processor and computer-readable storage medium of the present invention for effectively reducing the power consumption of the zigbee single fire switch during network connection and network access are adopted to provide a solution for reducing the average power consumption of the zigbee single fire switch during network connection and network access, so that the single fire switch can be connected to the network or network when the light is on, and the power board will not be restarted due to insufficient power supply. This makes up for the current deficiency that the light must be turned off when the single fire switch is connected to the network or network, and solves the problem that the small power load light is easy to flicker when the single fire switch is connected to the network or network.

[0061] In this specification, the present invention has been described with reference to specific embodiments thereof. However, it is apparent that various modifications and variations may be made without departing from the spirit and scope of the present invention. Therefore, the specification and drawings should be regarded as illustrative rather than restrictive.

Claims

1. A method for effectively reducing the power consumption of zigbee single fire switch network distribution and access, characterized in that: The method includes the process of zigbee single fire switch network configuration and the process of network access through Rejoin. The specific process of the zigbee single fire switch network distribution is as follows: The Zigbee single fire switch scans 16 channels intermittently during the network distribution process, and enters the sleep timer wake-up mode according to the detected voltage during the scanning and monitoring process; The process of joining the network through Rejoin is specifically as follows: Scan the channel n times by SecureRejoin. If the rejoin is still not successful, scan by SecureRejoin and InsecureRejoin alternately. During the scanning and monitoring process, enter the sleep timer wake-up mode according to the detected voltage.

2. The method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access according to claim 1 is characterized in that: The process of the zigbee single fire switch network distribution specifically includes the following steps: (1-1) The ZigBee single fire switch scans a channel during the network distribution process and detects the power supply voltage of the MCU during the scanning and monitoring process; (1-2) If the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring; (1-3) After waking up at a scheduled time, continue to monitor the current channel; (1-4) If no response is received after the monitoring timer expires, the device will continue to scan the next channel after waiting for the default channel scan interval until all channels have been scanned.

3. The method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access according to claim 2 is characterized in that: In the steps (1-2), the sleep duration is adjusted as follows: Adjust the sleep duration according to the following formula: Sleep duration = (default monitoring time / actual duration of this monitoring) × default sleep time.

4. According to claim 1, the method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access is characterized in that: The network access through Rejoin specifically includes the following steps: (2-1) Use SecureRejoin to send a Rejoin Request to the current channel and listen for a short period of time for a Rejoin Response. (2-2) If no Rejoin Response is received, wait for the default SecureRejoin interval and continue with step (2-1); (2-3) Scan through SecureRejoin for n consecutive times. If the network rejoin fails, scan using SecureRejoin and InsecureRejoin alternately. (2-4) During the Rejoin scan monitoring process, the MCU power supply voltage is detected. If the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring; (2-5) After the scheduled wake-up, continue to monitor the current channel; (2-6) If no response is received after the monitoring timer expires, continue the Rejoin network access process.

5. The method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access according to claim 4 is characterized in that: In the steps (2-4), the sleep duration is adjusted as follows: Adjust the sleep duration according to the following formula: Sleep duration = (Rejoin default listening time / actual duration of this listening) × default sleeping time.

6. The method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access according to claim 4 is characterized in that: In the step (2-3), when scanning using the InsecureRejoin method, the 11th channel to the 26th channel are scanned in sequence, and only one channel is scanned each time.

7. The method for effectively reducing the power consumption of zigbee single fire switch network distribution and access according to claim 1 is characterized in that: The zigbee single fire switch network configuration process also includes a network configuration process, which specifically includes the following steps: (3-1) After the single-fire panel starts the network distribution, set the channel number of the scanning channel to 11; (3-2) Send beacon request, scan and listen for 507ms and wait for beacon response; (3-3) During the scanning and monitoring process, the power supply voltage of the MCU is detected to determine whether the detected power supply voltage of the MCU is lower than the threshold close to the power exhaustion point. If so, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring, and the step (3-4) is continued; otherwise, the step (3-5) is continued; (3-4) After the scheduled wake-up, continue to monitor the current channel; (3-5) Determine whether a beacon response is received within 507ms. If yes, continue with the subsequent network configuration process; otherwise, continue with step (3-6); (3-6) Determine whether the channel number of the scanned channel is less than 26. If so, proceed to step (3-7); otherwise, proceed to step (3-8); (3-7) Increase the scanned channel number by 1, wait for 1 second each time a channel is scanned, and then scan the next channel until the channel number is 26, and continue with step (3-2); (3-8) Determine whether the network configuration time has ended. If so, the network configuration is ended; otherwise, continue with step (3-2).

8. The method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access according to claim 7 is characterized in that: In the step (3-3), the sleep duration is adjusted as follows: Adjust the sleep duration according to the following formula: Sleep duration = (default monitoring time / actual duration of this monitoring) × default sleep time.

9. The method for effectively reducing the power consumption of a zigbee single fire switch network distribution and access according to claim 1 is characterized in that: The process of joining the network through Rejoin also includes a rejoining process, which specifically includes the following steps: (4-1) Use SecureRejoin to send a Rejoin Request to the current channel and listen for a short period of time for a Rejoin Response. (4-2) During the Rejoin scan monitoring process, the MCU power supply voltage is detected. If the voltage is detected to be lower than the threshold close to the power exhaustion point, the sleep timer wake-up mode is immediately entered, and the sleep duration is adjusted according to the actual duration of this monitoring, and the step (4-3) is continued; otherwise, the step (4-4) is continued; (4-3) After the scheduled wake-up, continue to monitor the current channel and continue with step (4-4); (4-4) Determine whether a Rejoin Response is received within 160ms. If so, the network access is successful and proceed to step (4-5); otherwise, proceed to step (4-6); (4-5) The single fire switch sends a Device Announce message to inform other devices that it has returned to the network, and the steps are completed; (4-6) Determine whether the number of SecureRejoin executions is greater than 10 times. If so, proceed to step (4-7); otherwise, delay and wait for the default SecureRejoin interval time and proceed to step (4-1); (4-7) Use SecureRejoin and InsecureRejoin methods alternately to scan.

10. The method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access according to claim 9 is characterized in that: The steps (4-7) specifically include the following steps: (4-7.1) Set the InsecureRejoin scan channel number to 11; (4-7.2) Delay and wait for a period of time; (4-7.3) Use the InsecureRejoin method to send a Rejoin Request that is not encrypted by the network key on the scanning channel and start monitoring. If the MCU voltage is detected to be pulled down to the threshold during the monitoring process, the monitoring is suspended and the system goes to sleep. (4-7.4) Continue to listen after the scheduled wake-up to determine whether a Rejoin Response is received. If so, continue to receive the network key and proceed to step (4-7.8); otherwise, proceed to step (4-7.5); (4-7.5) Delay waiting for the default SecureRejoin interval, use SecureRejoin to send Rejoin Response on the current channel, and start monitoring. If the MCU voltage is detected to be lowered to the threshold during the monitoring process, the monitoring is suspended and the system goes to sleep. (4-7.6) Determine whether a Rejoin Response is received. If so, proceed to step (4-7.8); otherwise, proceed to step (4-7.7); (4-7.7) Determine whether the channel number of the InsecureRejoin scan channel is less than 26. If so, set the InsecureRejoin scan channel number plus 1 and continue with step (4-7.2); otherwise, continue with step (4-7.1); (4-7.8) Send Device Announce to notify other devices that you have returned to the network, and the process ends.

11. The method for effectively reducing the power consumption of zigbee single fire switch network distribution and access according to claim 9, characterized in that: In the step (4-2), the sleep duration is adjusted as follows: Adjust the sleep duration according to the following formula: Sleep duration = (Rejoin default listening time / actual duration of this listening) × default sleeping time.

12. A device for effectively reducing the power consumption of a zigbee single fire switch when distributing and accessing the network, characterized in that: The device comprises: a processor configured to execute computer executable instructions; A memory storing one or more computer executable instructions, wherein when the computer executable instructions are executed by the processor, the steps of the processing method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access are implemented as described in any one of claims 1 to 11.

13. A processor for effectively reducing the power consumption of a zigbee single fire switch when distributing and accessing the network, characterized in that: The processor is configured to execute computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the processing method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access are implemented as described in any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the various steps of the processing method for effectively reducing the power consumption of the zigbee single fire switch network distribution and access as described in any one of claims 1 to 11.