Wireless router power supply control management method and device and wireless router
By setting up the battery module in the wireless router and isolating the battery power supply path during the initialization stage, and enabling the battery module to provide backup power after initialization of the AC adapter, the network interruption and hardware damage problems of traditional wireless routers during power outages are solved, and seamless switching and high-efficiency energy consumption management are achieved.
Patent Information
- Application Number
- CN202510434805.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2025-07-08
AI Technical Summary
Traditional wireless routers can easily cause network connection interruption when the power grid is suddenly powered off or voltage abnormal, and existing solutions such as UPS have problems such as large size, uncontrollable switching delay and low energy efficiency, resulting in router startup failure and hardware damage.
Set up the battery module in the wireless router, isolate the battery power supply path in the initialization stage through the hardware switching circuit, initialize the main control board with the AC adapter, and enable the battery module to provide backup power after the initialization is completed, achieving seamless switching.
It avoids wireless router startup failure and amplifier chip damage, ensures network sustainability, reduces energy waste, and achieves switching delays of less than 10ms to meet the network sustainability needs of smart devices.
Smart Images

Figure CN120281065A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless router control, and particularly relates to a method and device for power control and management of a wireless router, and a wireless router. Background Art
[0002] In the field of wireless communication, the communication between communication terminals and the outside is usually realized based on a wireless router. Traditional wireless routers basically rely on an external AC power supply (AC adapter) for power supply.
[0003] The power supply architecture of traditional wireless routers has an inherent defect of service interruption during power outages. Specifically, when the power grid suddenly loses power or the voltage fluctuates abnormally, the router immediately stops working, resulting in network connection interruption and data transmission loss (such as an unfinished firmware upgrade operation), and manual intervention is required to restart the device. According to statistics, the average annual number of router service interruptions caused by short-term power outages for household users reaches 3.2 times, and it takes more than 120 seconds on average to complete system restart and network reconnection after power restoration, which cannot meet the demand for network persistence of smart home devices (such as security cameras, smart door locks, mobile terminals, etc.).
[0004] To address the problem of service interruption during power outages, an uninterruptible power supply (UPS) can be used to handle power outages. Although the UPS can provide backup power, it has significant defects in the router scenario: First, the UPS is bulky, and the volume of the smallest UPS device (500VA) is 5 - 8 times that of the router and cannot be integrated into the chassis of a home router; second, the switching delay is uncontrollable. After the mains power is interrupted, it takes 50 - 100 ms to switch to battery power supply, resulting in a short power outage reset of the router and a short interruption of the routing service. Specific resets include, for example, DHCP lease expiration and VPN tunnel reconstruction; third, the UPS causes energy waste. The UPS continuously operates the inverter circuit, and the energy efficiency ratio is lower than 85%, while the router is in a normal mains power state 99% of the time, resulting in redundant energy waste.
[0005] After research by the applicant, it is found that if the battery power supply scheme of a mobile terminal is directly transplanted into a wireless router, it will bring problems of startup timing contradiction and hardware damage. Specifically, a mobile terminal is default powered on by the battery; while the router needs to first complete complex initialization through the AC power supply (such as PPPoE dial-up authentication and radio frequency module calibration). If the battery power supply is directly introduced, it will cause power competition between the AC and the battery ("power jitter"), resulting in router startup failure; under the battery voltage fluctuation, the radio frequency module (such as the 6GHz band of Wi-Fi 6E) is prone to generate harmonic interference, leading to an increase in the damage rate of the power amplifier chip (MTBF reduction).
[0006] Therefore, on the premise of avoiding the failure of the wireless router to start up and reducing the damage rate of the power amplifier chip, how to avoid the interruption of the wireless router's power-off service has become a technical problem to be solved urgently. Summary of the Invention
[0007] Based on the above situation, the main object of the present invention is to provide a power control and management method, device and wireless router for a wireless router, so as to avoid the interruption of the wireless router's power-off service on the premise of avoiding the failure of the wireless router to start up and reducing the damage rate of the power amplifier chip.
[0008] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0009] In the first aspect, an embodiment of the present invention discloses a power control and management method for a wireless router. A battery module is provided in the wireless router for providing a backup power supply to the main control board. The power control and management method includes:
[0010] Step S100, in response to the power supply provided by the AC adapter, entering the initialization phase from the shutdown state;
[0011] Step S200, in the initialization phase, cutting off the power supply path from the battery module to the main control board through the hardware switch circuit to physically isolate the power supply path of the battery module;
[0012] Step S300, using the power supply provided by the AC adapter to initialize the main control chip and peripheral interfaces on the main control board, and initializing the system;
[0013] Step S400, after the initialization phase ends, connecting the power supply path and enabling the battery module so that when the AC adapter is powered off, the battery module can provide a backup power supply to the main control board.
[0014] Optionally, in step S400, after a preset duration when the AC adapter starts to provide power, the above-mentioned initialization phase ends.
[0015] Optionally, after step S400, it further includes:
[0016] Controlling the AC adapter to provide a charging power supply to the battery module to charge the battery module.
[0017] Optionally, it further includes:
[0018] Step S500, in response to detecting a power-off trigger signal for the AC adapter to disconnect the power supply, driving the battery module to provide a backup power supply to the main control board and entering the battery mode;
[0019] Step S600, in the battery mode, if a stable output voltage is detected continuously twice, turning off the CATV module as a non-core load.
[0020] Optionally, the non-core load further includes USB peripheral services, guest services, and a network protocol stack;
[0021] Step S500 further includes: sequentially turning off the non-core load based on the dynamic power consumption model formula according to a preset priority, where:
[0022] The dynamic power consumption model formula is to calculate the allowable upper limit of system power consumption Padjust based on the real-time battery voltage Vreal and temperature T. Specifically:
[0023]
[0024] In the formula, Padjust is the allowable upper limit of system power consumption, Pbase is the initial power consumption reference value of the system, Vnominal is the nominal battery voltage, Vreal is the real-time battery voltage, T0 is the ambient reference temperature, T is the ambient temperature, and k1 represents the power consumption reduction coefficient;
[0025] When the real-time system power consumption exceeds the system power consumption upper limit Padjust, a non-core load hierarchical shutdown process is triggered.
[0026] In a second aspect, an embodiment of the present invention discloses a power control and management device for a wireless router. A battery module is provided in the wireless router to provide backup power for the main control board. The power control and management device includes:
[0027] An initialization response module, configured to enter the initialization stage from the shutdown state in response to the power provided by the AC adapter;
[0028] A power supply cut-off module, configured to cut off the power supply path from the battery module to the main control board through a hardware switch circuit during the initialization stage to physically isolate the power supply path of the battery module;
[0029] An initialization operation module, configured to initialize the main control chip and peripheral interfaces on the main control board and initialize the system by using the power provided by the AC adapter;
[0030] A power supply connection module, configured to connect the power supply path and enable the battery module after the initialization stage ends, so that when the AC adapter is powered off, the battery module can provide backup power to the main control board.
[0031] Optionally, it further includes:
[0032] A charging module, configured to control the AC adapter to provide charging power to the battery module to charge the battery module.
[0033] Optionally, it further includes:
[0034] A non-core control module, which is configured to drive a battery module to provide backup power to a main control board and enter a battery mode when detecting a power-off trigger signal indicating that the AC adapter is disconnected from the power supply;
[0035] A non-core load shutdown module, which is configured to shut down a CATV module serving as a non-core load when detecting stable output voltage twice consecutively in the battery mode.
[0036] In a third aspect, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored. The computer program stored in the storage medium is used to be executed by a processor to implement the method disclosed in the first aspect above.
[0037] In a fourth aspect, an embodiment of the present invention discloses a wireless router, including:
[0038] A main control board;
[0039] A battery module, built in the wireless router, which is configured to provide backup power to the main control board;
[0040] A processor, which is configured to execute a program to implement the method disclosed in the first aspect above.
[0041] Beneficial effects:
[0042] According to a wireless router power control and management method, device and wireless router disclosed in an embodiment of the present invention, a battery module configured to provide backup power to a main control board is provided inside the wireless router. After the AC adapter provides power, the wireless router enters an initialization phase from a shutdown state; in the initialization phase, the power supply path from the battery module to the main control board is cut off through a hardware switch circuit to physically isolate the power supply path of the battery module, and the wireless router is initialized using the power provided by the AC adapter; then, the power supply path is connected to enable the battery module, so that when the AC adapter is powered off, the battery module can provide backup power to the main control board. It can be seen that:
[0043] On the one hand, through the collaborative design of "physically isolating battery power supply through a hardware switch circuit" and "exclusive AC power initialization" in an embodiment of the present invention, not only power jitter is eliminated, but also hardware damage protection is achieved. Specifically, in the router initialization phase (when key processes such as PPPoE dialing and radio frequency calibration are running), the battery power supply path is completely blocked to avoid the startup failure of the wireless router caused by voltage competition between the AC and the battery; before the radio frequency module initialization is completed, the battery voltage fluctuation is isolated (especially for the 6GHz high-frequency band of Wi-Fi 6E), which improves the MTBF (Mean Time Between Failures) of the power amplifier chip and significantly reduces the risk of hardware damage caused by harmonic interference.
[0044] On the other hand, seamless switching ensures zero network interruption. Specifically, after the initialization phase ends, the power supply path is connected to enable the battery module. When the AC power supply is abnormal, the connected battery power supply path can achieve a switching delay of less than 10 ms (the traditional UPS solution is 50 - 100 ms), completely eliminating network service interruption phenomena such as DHCP lease expiration and VPN tunnel reconstruction. Moreover, after all initializations are completed through the AC power supply, the battery backup power supply is enabled to ensure that key services such as the main Wi-Fi signal, IPv4 protocol stack, and NAT forwarding remain 100% online after a power outage, meeting the stringent requirements for network persistence of devices such as smart door locks and security cameras.
[0045] In summary, the solution of the embodiment of the present invention realizes avoiding the interruption of the power-off service of the wireless router on the premise of avoiding the startup failure of the wireless router and reducing the damage rate of the power amplifier chip.
[0046] In addition, directly powering the main control board through the battery module (such as 3.7V lithium battery) without the AC-DC-AC double conversion of the traditional UPS can improve the energy efficiency ratio and reduce energy waste.
[0047] Other beneficial effects of the present invention will be elaborated through the introduction of specific technical features and technical solutions in the specific implementation manner. Those skilled in the art should be able to understand the beneficial technical effects brought by the technical features and technical solutions through the introduction of these technical features and technical solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The embodiments of the present invention will be described below with reference to the drawings. In the drawings:
[0049] Figure 1 is a schematic diagram of the principle of a wireless router disclosed in this embodiment;
[0050] Figure 2 is a flowchart of a power control and management method for a wireless router disclosed in this embodiment;
[0051] Figure 3 is a schematic diagram of the structure of a power control and management device for a wireless router disclosed in this embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0052] The present invention will be described below based on the embodiments, but the present invention is not limited to these embodiments. In the following detailed description of the present invention, some specific details are described in detail. In order to avoid obscuring the essence of the present invention, well-known methods, processes, procedures, and components are not described in detail.
[0053] In addition, those of ordinary skill in the art should understand that the drawings provided here are for illustrative purposes only, and the drawings are not necessarily drawn to scale.
[0054] Unless the context clearly requires otherwise, the words "comprising", "including" and similar words throughout the specification and claims shall be construed in an inclusive sense rather than an exclusive or exhaustive sense; that is, the meaning of "including but not limited to".
[0055] In the description of the present invention, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be construed as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, the meaning of "a plurality" is two or more.
[0056] In order to avoid the interruption of the power-off service of the wireless router on the premise of avoiding the failure of the wireless router to start up and reducing the damage rate of the power amplifier chip, this embodiment discloses a power control and management method for a wireless router. In this embodiment, a battery module is provided in the wireless router to provide a backup power supply for the main control board. Please refer to Figure 1 , Figure 1 which is a schematic diagram of the principle of a wireless router disclosed in this embodiment. The wireless router includes: a main control board 10, a battery module 20, and an AC / DC conversion module 30. Among them, the AC / DC conversion module 30 is used to provide power to the main control board 10, and the battery module 20 is connected to the main control board through an FPC flexible circuit board. In the specific implementation process, the AC / DC conversion module 30, the main control chip 11, and the radio frequency circuit 12 can be partially or fully integrated onto the main control board 10, or can be separately provided from the main control board 10.
[0057] Please refer to Figure 2 , Figure 2 which is a flowchart of a power control and management method for a wireless router disclosed in this embodiment. The power control and management method is executed on the main control chip 11. The power control and management method includes: step S100, step S200, step S300, and step S400, where:
[0058] Step S100, in response to the power provided by the AC adapter, enter the initialization phase from the shutdown state. The AC adapter refers to an adapter that provides working power for the wireless router and can usually be implemented by an AC / DC module.
[0059] In this embodiment, entering the initialization phase from the shutdown state means that when the AC adapter starts to supply power, the system confirms the validity of the power through multi-dimensional verification, so as to safely enter the initialization process. In the specific implementation process, the system confirms the availability of the AC power through the following hardware / software cooperation mechanism. Specifically, it can be confirmed through voltage threshold detection and current load verification:
[0060] During the voltage threshold detection process, the voltage monitoring chip on the main control board continuously samples the output voltage of the AC adapter. When the detected voltage value is greater than or equal to the preset value and remains stable for a preset duration, a power valid signal is generated.
[0061] This can avoid false triggering caused by transient voltage fluctuations (such as plugging and unplugging jitters) and improve the triggering reliability.
[0062] During the current load verification process, after the power valid signal is generated, the system reads the data of the current sensor (such as INA219) through the I 2 C bus to confirm the input current threshold to exclude the no-load or abnormal short-circuit state.
[0063] After the voltage threshold detection and current load verification are passed, the state machine migration control can be performed according to the power valid signal, migrating from the initial state to the initialization stage. In the initial state, the wireless router is in a completely powered-off state (shutdown state), and all power supply paths (including AC and battery) are physically isolated; in the initialization stage, the main control chip, peripheral interfaces, and the system can be initialized.
[0064] Step S200, in the initialization stage, the power supply path from the battery module to the main control board is cut off through the hardware switch circuit to physically isolate the power supply path of the battery module. In this embodiment, the hardware-level power supply isolation mechanism ensures that the initialization process is completed exclusively by the AC power supply. Specifically, during the entire system initialization cycle (from Bootloader loading to system service readiness), the battery power supply path is completely cut off through the physical switch circuit to eliminate the power competition risk between the AC and the battery. In one embodiment, the hardware switch circuit can be implemented through a MOS transistor array; in another embodiment, it can be implemented through a battery charging management chip.
[0065] In one embodiment, the switching of the power supply path is realized by a main control switch and an isolation switch group composed of a MOS transistor array. Specifically, the main control switch is connected in series in the AC power supply circuit and is directly controlled by the power valid signal (conducts when the signal is high level); the isolation switch group (the first transistor and the second transistor) is connected in parallel in the battery power supply circuit and adopts a back-to-back NMOS structure to form a two-way block.
[0066] In the specific control process: in the initialization stage, the gate voltage of the isolation switch group (the first transistor and the second transistor) is locked at 0V (forced turn-off); interlock protection: the drive signals of the main control switch and the isolation switch group (the first transistor and the second transistor) are interlocked through a hardware logic gate to ensure that the two do not conduct simultaneously, thus realizing interlock protection.
[0067] In this embodiment, bidirectional blocking of the battery path is achieved through a MOS tube array, which can eliminate power supply competition from a physical level, and ensure the real-time isolation action based on direct hardware signal connection.
[0068] In another embodiment, the switching of the power supply path is realized by a battery charging management chip. Specifically, the AC power supply is connected to the power input terminal of the battery charging management chip, and the system power receiving terminal and the battery power receiving terminal are respectively connected to the power output terminal of the battery charging management chip, and then, for example, I 2 C is used to provide a control timing for the battery charging management chip, thereby controlling the battery charging management chip to connect / disconnect the path between the power output terminal and the system power receiving terminal and / or the path between the power output terminal and the battery power receiving terminal.
[0069] In this embodiment, the bidirectional blocking of the battery path is achieved by using a battery charging management chip, which can simplify the circuit structure, and the connection / disconnection is controlled based on the control timing, which can ensure the timeliness of the connection / disconnection.
[0070] In this embodiment, through the deep coordination of step S200 and step S100, a security baseline for wireless router power management is constructed, fundamentally solving the startup conflict and hardware damage problems caused by battery integration.
[0071] Step S300, using the power provided by the AC adapter to initialize the main control chip and peripheral interfaces on the main control board, and to initialize the system. This step uses the exclusive nature of the AC power supply to complete system initialization under the premise that the battery power supply path is hardware isolated, that is, to complete system initialization in an environment where battery power supply interference is completely eliminated. The initialization of the main control chip includes hard reset, memory initialization, etc.
[0072] In an optional embodiment, a phased, interruptible initialization strategy can be used to achieve rapid readiness of key services and rapid isolation of faults. Specifically, the reset sequence control can be used to sequentially initialize the main control chip, peripheral interface, and system. The details are as follows:
[0073] In a pure environment where the battery power supply path is physically isolated, the system initialization is divided into three progressive stages. Each stage implements an interruptible and recoverable initialization process through logical isolation and dynamic scheduling:
[0074] In the first stage, a minimized hardware operating environment is established. In this stage, the main control chip is first awakened, the core function reset signal is released, and the CPU basic instruction execution capability is activated; then, the preset memory parameters (timing, frequency) are loaded to complete the physical address mapping; again, the main clock frequency is locked to generate the reference clock signal for each subsystem.
[0075] In the second stage, critical peripherals are started in the order of priority, with network connectivity being given top priority. In this stage, first, drivers are loaded, a physical layer connection is established, PPPoE dialing is triggered, and radio frequency parameters are calibrated, available channels are scanned, and SSID broadcasting is initialized to ensure that the network interface is quickly ready and the connectivity of Ethernet and wireless networks is guaranteed first. Second, historical network configurations (IP addresses, routing tables) are reused to skip repeated negotiations, thus achieving pre-connection of the protocol stack. For non-critical peripherals such as USB and Bluetooth modules, they can be marked, for example, marked as "delayable" and initialized only when the system is idle;
[0076] In the third stage, value-added services are started while ensuring the stability of core functions. Specifically, value-added services are loaded as needed. Traffic statistics and remote management are loaded under low load; only basic functions are maintained under high load.
[0077] In this embodiment, through the division of interruptible tasks and degradable services, refined control of the initialization process is achieved. Through the structured design of the logic layer, step S300 realizes highly reliable and efficient system initialization on the premise of completely avoiding dependence on hardware details, and together with step S200, constructs a complete technical closed-loop for the power management of the wireless router.
[0078] In step S400, after the initialization stage is completed, the power supply path is connected and the battery module is enabled so that when the AC adapter is powered off, the battery module can provide backup power to the main control board. In this embodiment, after the system initialization is completed (step S300), seamless connection from AC power to battery power supply is achieved through controlled power supply path switching and battery management strategies. Thus, when the AC adapter is powered off, the battery module can still provide backup power to the main control board, and then network interruption is avoided.
[0079] As an application scenario for home users, when the mains power suddenly interrupts (such as a trip caused by lightning weather) and the AC adapter power supply stops suddenly, the system seamlessly switches to battery power supply within 10 ms. Mobile terminals such as mobile phones and tablets used by family members have no sense of lag in real-time services such as video calls and online classes (packet loss rate < 0.01%), and IoT devices with built-in batteries such as children's smart watches and home security cameras can remain online continuously to prevent the risk of security chain interruption.
[0080] As a scenario for small and micro enterprises, when power outages suddenly occur in scenarios such as convenience stores and cafes, the wireless router disclosed in this embodiment can maintain: continuous operation of the mobile payment system (ensuring that Alipay / WeChat payment transactions are not interrupted), real-time update of the electronic price tag management system (maintaining communication through 2.4GHz Wi-Fi), automatic synchronization of cloud POS machine transaction records (zero loss of business data during power outages), etc.
[0081] Of course, after connecting the power supply path and enabling the battery module, the AC adapter can also be used to supply power to the battery module to charge the battery module and ensure the power reserve of the battery module.
[0082] In an alternative embodiment, in step S400, after a preset duration when the AC adapter starts to supply power, the above-mentioned initialization phase ends. Specifically, the preset duration of the default initialization is set according to the system complexity (typical value: 10 seconds) to ensure that the wireless router can complete the initialization and enter the stable working state.
[0083] To ensure the power reserve of the battery module, in an alternative embodiment, after step S400, it further includes: controlling the AC adapter to supply charging power to the battery module to charge the battery module. In the specific implementation process, the registers of the battery management chip (address 0x6B) can be configured through the I2C bus, and key parameters such as the preset charging voltage and current (such as registers 0x00 - 0x0C) are set to ensure that the charging process meets the safety threshold. In the specific implementation process, by configuring the above parameters, the battery module is in the low-power standby state when not enabled, avoiding self-discharge or voltage fluctuations from affecting the system stability.
[0084] To achieve dynamic adjustment of the charging state of the battery module and charging safety protection, in an alternative embodiment, the charging current can be dynamically adjusted according to the real-time battery voltage (such as reading registers 0x21 / 0x2C). When the battery is at low power, a large current is used for fast charging (constant current mode), and when it is close to full charge, it switches to a small current trickle charging (constant voltage mode) to improve the charging efficiency and extend the battery life. During the charging process, parameters such as the battery voltage and temperature are monitored in real time. If overvoltage, undervoltage, or over-temperature (the threshold is preset through the register) is detected, the charging is immediately terminated and the hardware protection mechanism is triggered.
[0085] Specifically, the constant current - constant voltage switching logic is as follows: when the battery voltage is lower than the first threshold (for example, 11.9V), the constant current mode is used for fast charging; when the voltage reaches the second threshold (for example, 12.3V), it switches to the constant voltage mode and gradually reduces the current to the cut-off threshold to prevent overcharging; the charging current is corrected in real time according to the battery temperature (read through the 0x2C register). For example, the current is reduced by 20% in a high-temperature environment to protect the battery cells.
[0086] The logic of real-time monitoring and feedback is as follows: Read the battery registers 0x21 (voltage value) and 0x2C (charge status flag bit) periodically (e.g., every 10 seconds) to obtain real-time data; Parse the 7-bit status of register 0x21 to determine whether the battery is in the charging (bit 7 = 1) or discharging (bit 7 = 0) mode. When the battery is fully charged (≥12.3V), the DSL indicator is always on; When the battery is charging (10.8V - 12.3V), the DSL indicator flashes slowly (frequency 1Hz); When there is an abnormal state (such as overheating), trigger the ALARM red light to be always on and send a system alarm event. Thus, the visualization of the battery charging progress is achieved.
[0087] In this embodiment, by controlling the AC adapter to provide charging power to the battery module, not only can the power reserve of the battery module be guaranteed, but also, in a further solution, the charging efficiency can be optimized by dynamically adjusting the charging mode.
[0088] In addition, through the register parameterization design, it is possible to support the plug-and-play adaptation of different capacity battery modules (such as 2000mAh / 3000mAh), that is, the compatibility of the system is improved.
[0089] To reduce the system power consumption and improve the battery life of the wireless router in the power-off state, in an optional embodiment, the power control and management method of the wireless router further includes: Step S500, when a power-off trigger signal indicating that the AC adapter is disconnected from the power supply is detected, drive the battery module to provide backup power to the main control board and enter the battery mode; Step S600, in the battery mode, if a stable output voltage is detected continuously twice, turn off the CATV module, which is a non-core load. Specifically, the CATV module usually provides TV signals for users. In the case of a power outage of the mains power, obviously users cannot watch TV either. Therefore, the CATV module can be directly turned off. In the specific implementation process, the CATV module can be set to the disabled state through, for example, the MIB interface to stop the video signal modulation and RF output. Release the hardware resources related to the CATV (such as the tuner clock, DAC channel), and disconnect the independent power supply circuit of the CATV module, thereby reducing the static power consumption.
[0090] It should be noted that in the specific implementation process, a core load retention mechanism should be adopted, such as an optical module (BoB), a Wi-Fi main access point, and a voice module (VoIP), etc. Through the optical module (BoB), the optical signal reception and PON protocol processing can be maintained to ensure the uplink connectivity; the Wi-Fi main access point maintains full-power transmission (20 dBm) in the 2.4 GHz band and reduces the frequency to 80 MHz bandwidth in the 5 GHz band to reduce power consumption; the voice module (VoIP) retains the SIP registration status and turns off unnecessary DSP functions such as echo cancellation to save computing power. That is, the core loads (Wi-Fi, optical module, voice) remain 100% functional available in the battery mode, thereby reducing the interruption rate of user services.
[0091] To ensure the reliability of the load shutdown operation, in a specific embodiment, a two consecutive detection mechanism is adopted in step S600. Specifically, for the first detection (t = 0 s), the battery output voltage V1 is read. If V1 is greater than or equal to 10.8 V and the fluctuation amplitude is less than ±0.2 V, it is marked as "stable state 1". For the second detection (t = 20 s), the battery output voltage V2 is read again. If |V2 - V1| ≤ 0.1 V, it is determined as a stable voltage, and the non-core load shutdown operation is triggered.
[0092] In this embodiment, false triggering is avoided through two voltage detections, ensuring the reliability of the load shutdown operation and reducing the false shutdown rate of the non-core load.
[0093] In an alternative embodiment, if the voltage detected for the first time < 10.8 V or the fluctuation exceeds the limit, a low battery alarm is immediately triggered (for example, the ALARM red light is always on), and the non-core load is directly shut down by skipping the second detection. This can ensure the continuous operation of the core load under low battery conditions and reduce the interruption rate of user services.
[0094] To achieve dynamic power management of the system, in an alternative embodiment, the non-core load further includes USB peripheral services, guest services, and network protocol stacks; step S500 further includes: turning off the non-core load in sequence based on the dynamic power consumption model formula according to a preset priority, where:
[0095] The dynamic power consumption model formula calculates the allowable upper limit of the system power consumption Padjust according to the real-time battery voltage Vreal and temperature T. Specifically:
[0096]
[0097] Wherein, Padjust is the upper limit of the allowable system power consumption, Pbase is the initial power consumption reference value of the system, Vnominal is the nominal voltage of the battery, Vreal is the real-time voltage of the battery, T0 is the ambient reference temperature, T is the ambient temperature, and k1 represents the power consumption reduction coefficient; when the real-time system power consumption exceeds the system power consumption upper limit Padjust, the non-core load hierarchical shutdown process is triggered.
[0098] As an example, in a specific embodiment, the initial power consumption reference value Pbase can be set to, for example, 11.8w; the nominal voltage of the battery Vnominal is, for example, 11.1V; the ambient reference temperature T0 is 25 °C; the power consumption reduction coefficient k1 is, for example, 0.015 / °C, which means that for every 1 °C increase in temperature, the allowable power consumption is reduced by 1.5% to offset the internal resistance loss and prevent the battery from overheating.
[0099] In this formula, is the voltage correction term, thereby realizing the linear compensation of voltage for power. Specifically, the actual output voltage (Vreal) of the battery will gradually decrease during the discharge process. When Vreal < Vnominal (nominal voltage, for example, 11.1V), the system needs to reduce the load power consumption to avoid current overload. Specifically, according to the formula I = P / V, when the voltage V decreases and the power P remains unchanged, the current I will increase. Through the voltage correction term, the adaptation of the battery discharge curve is realized. Specifically, the discharge platform of the lithium-ion battery is not completely flat. This correction term scales the base power consumption (Pbase) proportionally to make the load power consumption dynamically match the current actual power supply capacity of the battery. As an example, if the nominal voltage Vnominal = 11.1V and the actual voltage Vreal = 10.8V, the correction coefficient is 10.8 / 11.1 ≈ 0.973, and the system needs to reduce the power consumption by about 2.7%.
[0100] In this formula, 1 - k1(T - T0) is the temperature correction term, which realizes the compensation of the battery internal resistance by temperature. Specifically, the battery internal resistance increases with the increase of temperature (especially when T > 25 °C), resulting in a reduction in available energy. The coefficient 0.015 / °C means that for every 1 °C increase in temperature, the allowable power consumption is reduced by 1.5% to offset the internal resistance loss and prevent the battery from overheating.
[0101] It can be seen that through this formula, dynamic load regulation can be achieved. One is the voltage-dominated power consumption baseline, that is, the upper limit of the current power supply capacity is determined through the voltage correction term. The other is the temperature-driven derating adjustment. When the temperature influence is superimposed, the power consumption is further restricted to ensure the battery life and system stability.
[0102] Application scenario: Implement Wi-Fi power adjustment. When the formula output P adjust decreases, the system automatically reduces the radio frequency bandwidth (e.g., from 80 MHz to 40 MHz for 5 GHz) or reduces the transmission power (from 20 dBm to 17 dBm). Implement optical module energy saving by turning off redundant optical channels (such as standby PON ports) and only maintaining the activation of necessary links.
[0103] During the process of triggering the non-core load hierarchical shutdown process, the following non-core loads can be shut down according to the priority:
[0104] Turn off the USB peripheral service and cut off the power supply to the storage device. Specifically, the USB Host controller can be suspended and the connected storage device can be unmounted; or, the power management chip can be controlled to disconnect the independent power supply circuit of the storage device;
[0105] Disable the guest wireless access point while maintaining the transmission power of the main wireless access point in the 2.4 GHz / 5 GHz dual bands. For example, stop broadcasting the guest SSID and keep the main wireless access point operating at full bandwidth (80 MHz channel reserved) in the 2.4 GHz band (20 dBm transmission power) and 5 GHz band (18 dBm transmission power);
[0106] Deactivate the IPv6 protocol processing thread and keep the IPv4 protocol stack operating at full function. Specifically, suspend the NDP neighbor discovery and DHCPv6 services of the IPv6 protocol stack to ensure that the ARP resolution, NAT forwarding, and DHCPv4 services of the IPv4 protocol are not affected, and the packet processing delay ≤ 5 ms.
[0107] In this embodiment, through the dual-factor correction of voltage and temperature, the error of traditional remaining battery power estimation is avoided, and the accuracy of triggering the shutdown operation is improved.
[0108] This embodiment also discloses a power control and management device for a wireless router. A battery module is provided in the wireless router to provide backup power for the main control board. Please refer to Figure 3 , Figure 3 is a schematic structural diagram of a power control and management device for a wireless router disclosed in this embodiment. The power control and management device includes: an initialization response module 100, a power supply cut-off module 200, an initialization operation module 300, and a power supply connection module 400, where:
[0109] The initialization response module 100 is used to enter the initialization stage from the shutdown state in response to the power provided by the AC adapter;
[0110] The power supply cut-off module 200 is used to cut off the power supply path from the battery module to the main control board through a hardware switch circuit during the initialization stage to physically isolate the power supply path of the battery module;
[0111] The initialization operation module 300 is used to initialize the main control chip and peripheral interfaces on the main control board with the power provided by the AC adapter, and initialize the system;
[0112] The power supply connection module 400 is used to connect the power supply path and enable the battery module after the initialization stage ends, so that when the AC adapter is powered off, the battery module can provide backup power to the main control board.
[0113] In an optional embodiment, it further includes:
[0114] A charging module, which is used to control the AC adapter to provide charging power to the battery module to charge the battery module.
[0115] In an optional embodiment, it further includes: a non-core control module 500 and a non-core load shutdown module 600, where:
[0116] The non-core control module 500 is used to drive the battery module to provide backup power to the main control board and enter the battery mode in response to detecting a power-off trigger signal for the AC adapter disconnecting the power supply;
[0117] The non-core load shutdown module 600 is used to shut down the CATV module as a non-core load if a stable output voltage is detected twice continuously in the battery mode.
[0118] This embodiment also discloses a wireless router, including: a main control board, a battery module, and a processor, where:
[0119] The battery module is built into the wireless router and is used to provide backup power to the main control board;
[0120] The processor is used to execute a program to implement the method disclosed in the above embodiment.
[0121] According to a wireless router power control and management method, device, and wireless router disclosed in an embodiment of the present invention, a battery module for providing backup power to the main control board is provided in the wireless router. After the AC adapter provides power, it enters the initialization stage from the shutdown state; in the initialization stage, the power supply path from the battery module to the main control board is cut off through a hardware switch circuit to physically isolate the power supply path of the battery module, and the wireless router is initialized with the power provided by the AC adapter; then, the power supply path is connected to enable the battery module, so that when the AC adapter is powered off, the battery module can provide backup power to the main control board. It can be seen that:
[0122] On the one hand, through the collaborative design of "physically isolating battery power supply by a hardware switch circuit" and "exclusive AC power initialization" in the embodiments of the present invention, not only power jitter is eliminated, but also hardware damage protection is achieved. Specifically, during the router initialization stage (when key processes such as PPPoE dialing and radio frequency calibration are running), the battery power supply path is completely blocked to avoid the failure of the wireless router to start caused by the voltage competition between AC and the battery; before the initialization of the radio frequency module is completed, the battery voltage fluctuation is isolated (especially for the 6GHz high frequency band of Wi-Fi 6E), which improves the MTBF (Mean Time Between Failures) of the power amplifier chip and significantly reduces the risk of hardware damage caused by harmonic interference.
[0123] On the other hand, seamless switching ensures zero network interruption. Specifically, after the initialization stage ends, the power supply path is connected to enable the battery module. When the AC power is abnormal, the connected battery power supply path can achieve a switching delay of less than 10ms (the traditional UPS solution is 50 - 100ms), completely eliminating network service interruption phenomena such as DHCP lease expiration and VPN tunnel reconstruction; moreover, after all initializations are completed through the AC power, the battery backup power supply is enabled to ensure that key services such as the main Wi-Fi signal, IPv4 protocol stack, and NAT forwarding remain 100% online after a power outage, meeting the stringent requirements of devices such as smart door locks and security cameras for network persistence.
[0124] In summary, the solution of the embodiments of the present invention realizes avoiding service interruption of the wireless router during power outage on the premise of avoiding the failure of the wireless router to start and reducing the damage rate of the power amplifier chip.
[0125] In addition, directly powering the main control board through the battery module (such as a 3.7V lithium battery) without the AC - DC - AC double conversion of the traditional UPS can improve the energy efficiency ratio and reduce energy waste.
[0126] In addition, the present invention also provides a computer - readable storage medium, such as a chip, an optical disc, etc. An execution program is stored on the computer - readable storage medium, and when the execution program is executed, the method described in any one of the above is implemented.
[0127] It should be noted that the computer-readable storage medium described in the embodiments of the present disclosure is not limited to the above-given embodiments. For example, it can also be an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiments of the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0128] Those skilled in the art can understand that, on the premise of no conflict, the above preferred solutions can be freely combined and superimposed. Among them, the flowcharts and block diagrams in the drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and this module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions. The numbers assigned to the steps in this article are only for convenience of description and reference, and are not used to limit the order before and after. The specific execution order is determined by the technology itself, and those skilled in the art can determine various allowed and reasonable orders according to the technology itself.
[0129] It should be noted that in the present invention, step numbers (letter or number numbers) are used to refer to certain specific method steps only for the purpose of convenient description and conciseness, and by no means to limit the order of these method steps by letters or numbers. Those skilled in the art can understand that the order of the relevant method steps should be determined by the technology itself and should not be unduly restricted by the existence of the step numbers. Those skilled in the art can determine various allowed and reasonable step orders according to the technology itself.
[0130] Those skilled in the art can understand that, on the premise of no conflict, the above preferred solutions can be freely combined and superimposed.
[0131] It should be understood that the above embodiments are merely exemplary and not restrictive. Without departing from the basic principles of the present invention, various obvious or equivalent modifications or substitutions that those skilled in the art can make to the above details will be included within the scope of the claims of the present invention.
Claims
1. A power control and management method for a wireless router, characterized in that, A battery module is provided inside the wireless router for providing a backup power supply to the main control board. The power control management method includes: Step S100, in response to the power supply provided by the AC adapter, entering the initialization phase from the shutdown state; Step S200, in the initialization phase, cutting off the power supply path from the battery module to the main control board through a hardware switch circuit to physically isolate the power supply path of the battery module; Step S300, initializing the main control chip and peripheral interfaces on the main control board, and initializing the system by using the power supply provided by the AC adapter; Step S400, after the initialization phase ends, connecting the power supply path and enabling the battery module so that when the AC adapter loses power, the battery module can provide a backup power supply to the main control board.
2. The power control and management method of the wireless router according to claim 1, characterized in that, In step S400, after a preset duration when the AC adapter starts to provide power, the initialization phase ends.
3. The wireless router power control and management method according to claim 1, wherein After step S400, it further includes: Controlling the AC adapter to provide a charging power supply to the battery module to charge the battery module.
4. The wireless router power control and management method according to claim 3, characterized in that, It further includes: Step S500, in response to detecting a power-off trigger signal that the AC adapter disconnects the power supply, driving the battery module to provide a backup power supply to the main control board and entering the battery mode; Step S600, in the battery mode, if a stable output voltage is detected twice continuously, turning off the CATV module as a non-core load.
5. The wireless router power control and management method according to claim 4, characterized in that, The non-core load further includes USB peripheral services, guest services, and network protocol stack; Step S500 further includes: sequentially turning off non-core loads according to a preset priority based on a dynamic power consumption model formula, where: The dynamic power consumption model formula is to calculate the allowable upper limit of system power consumption Padjust according to the real-time voltage Vreal and temperature T of the battery. Specifically: In the formula, Padjust is the allowable upper limit of system power consumption, Pbase is the system initial power consumption reference value, Vnominal is the nominal voltage of the battery, Vreal is the real-time voltage of the battery, T_ is the ambient reference temperature, T is the ambient temperature, and k1 represents the power consumption reduction coefficient; When the real-time system power consumption exceeds the system power consumption upper limit Padjust, triggering a non-core load hierarchical shutdown process.
6. A power control and management device for a wireless router, characterized in that, A battery module is provided inside the wireless router for providing a backup power supply to the main control board. The power control management device includes: An initialization response module (100) for entering the initialization phase in response to the power supply provided by the AC adapter from the shutdown state; A power supply cut-off module (200) for cutting off the power supply path from the battery module to the main control board through a hardware switch circuit in the initialization phase to physically isolate the power supply path of the battery module; An initialization operation module (300) for initializing the main control chip and peripheral interfaces on the main control board, and initializing the system by using the power supply provided by the AC adapter; A power supply connection module (400) is configured to connect the power supply path and enable the battery module after the initialization phase ends, so that when the AC adapter is powered off, the battery module can provide backup power to the main control board.
7. The wireless router power control and management device according to claim 6, characterized in that, It further includes: A charging module is configured to control the AC adapter to provide charging power to the battery module to charge the battery module.
8. The wireless router power control and management device according to claim 7, characterized in that, It further includes: A non-core control module (500) is configured to drive the battery module to provide backup power to the main control board and enter the battery mode in response to a power-off trigger signal detected when the AC adapter disconnects the power supply; A non-core load shutdown module (600) is configured to shut down the CATV module, which is a non-core load, when the output voltage is stably detected twice in the battery mode.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer program stored in the storage medium is used to be executed by a processor to implement the method according to any one of claims 1-5.
10. A wireless router, characterized in that, It includes: A main control board; A battery module, built into the wireless router, is configured to provide backup power to the main control board; A processor is configured to execute a program to implement the method according to any one of claims 1-5.