A kind of method for managing power supply of cross-platform Internet of Things embedded system
Technical field
The present invention relates to the technical field of power management of Internet of Things radio communication product, is a kind of cross-platform specifically
The method for managing power supply of Internet of Things embedded system.
Background technology
With the continuous development of the communication technology, the energy storaging product that communicates with being widely popularized, and the energy storaging product that communicates
It is most of using Li-ion batteries piles, since Li-ion batteries piles are overcharging protection, Cross prevention, overcurrent protection, mistake
The extreme case lower service lifes such as warm protection, short-circuit protection easily shorten and damage.Particularly, come for Internet of Things embedded system
Say, Internet of Things is related to multiple fields, and power consumption there are certain requirements, and it requires that each Internet of product has been required for a set of ratio
More perfect power-supply management system, perfect can solve current drain state when product switches between various patterns, by changing
Power supply energy consumption in kind product work-mode switching process, so as to meet the needs of power-supply system low-power consumption.
The content of the invention
The purpose of the present invention is for deficiency of the prior art, there is provided a kind of electricity of cross-platform Internet of Things embedded system
Power supply management method, the electrical source consumption state of Internet of things system is changed according to the operating mode of Internet of product in time, saves battery
Energy consumption, effectively reduces Internet of things system operating cost, extends the battery life in Internet of things system.
To achieve the above object, the present invention adopts the technical scheme that:A kind of electricity of cross-platform Internet of Things embedded system
Power supply management method, it is characterised in that include the following steps:
Step 01. judges the current operating mode of Internet of Things embedded system, current according to Internet of Things embedded system
Operating mode carries out Event trigger detection;
Step 02. adjusts the power supply state of system power supply according to Event trigger testing result, power control processor,
Switch the operating mode of power supply unit;
Whether step 03. interrupt signal triggers;
Step 04. according to interrupt signal trigger as a result, switching Internet of Things embedded system operating mode.
Further, the operating mode includes:Normal mode of operation, standby mode and silent mode.
Further, step 01 further includes:
If the current operating mode of Internet of Things embedded system is normal mode of operation, standby signal detection is carried out, if
Standby signal is not detected by, then continues to keep normal mode of operation, if detecting standby signal, enters step 02;
If the current operating mode of Internet of Things embedded system is standby mode, carried out in the stand-by time of systemic presupposition
Detection is interrupted, 02 is entered step according to testing result.
Further, the power supply state of power control processor adjustment system power supply includes described in step 02:
The startup of power control processor control power supply logics interface or closed mode;
Power control processor control power supply unit enable or closed mode;
Power control processor control communications network interface enable or closed mode.
Further, step 02 further includes operating mode of the power control processor according to Internet of Things embedded system, adjusts
The whole processor operating mode of itself.
Further, the operating mode of the power control processor includes:Start-up mode and sleep mode.
Further, Internet of Things embedded system detects interrupt signal, and the operating mode of power control processor is immediately
Switch start-up mode;During Internet of Things embedded system is completed after operating mode switches and is not detected by interrupt signal triggering,
The operating mode of power control processor is sleep mode.
Further, step 04 includes:
To there is interruption, power control processor wakes up and starts Internet of Things embedded system interrupt signal triggering result, is
System switches to normal mode of operation;
Interrupt signal triggering result is no interruption, then continues interrupt signal detection trigger, does not switch Internet of Things insertion
The operating mode of formula system.
Further, after detecting standby signal, power supply unit switches to standby mode, in systemic presupposition under the pattern
Interrupt signal triggering is not detected by stand-by time, then power control processor control power-supply device enters deep-sleep, at this time
Internet of Things embedded system enters silent mode.
Further, it is Transportation Model that the Internet of Things embedded system, which is first entered before operating mode, Transportation Model
Under, power control processor control power supply logics interface is closed, controls power supply unit to be closed, controlling and lead to
Communication network interface is closed, and power control processor enters sleep mode.
The invention has the advantages that:
The present invention controls the working status of power-supply device according to the different working modes of Internet of Things embedded system, reduces
The consumption of system battery under off-duty state, has saved the power supply use cost of Internet of Things operation cost and Internet of product,
The service wear of battery is also improved at the same time, extends the service life of battery.
Brief description of the drawings
For that can become apparent from understanding purpose, feature and advantage of the present invention, the preferable reality below with reference to attached drawing to the present invention
Example is applied to be described in detail, wherein:
Fig. 1 is the method for the present invention flow diagram;
Fig. 2 is the flow diagram that Internet of Things embedded system is switched to standby mode by normal mode of operation;
Fig. 3 is the flow diagram that Internet of Things embedded system carries out other pattern switchings in stand-by mode
Fig. 4 is the embedded power control processor workflow schematic diagram in the transit mode of Internet of Things.
Embodiment
Internet of Things embedded system from the plant produced stage to powering on using entering working stage, include factory mode,
Transportation Model, normal mode of operation, standby mode and silent mode.As shown in Figure 1, Internet of Things embedded system is into work
After making the stage, power control processor can be according to the power supply state of the working state control power supply of system, so as to fulfill system
Automatically switch between normal mode of operation, standby mode and silent mode, achieve the purpose that to reduce power consumption.
Since part Internet of product carries internal battery, product can carry out battery charging and discharging detection under factory mode,
Cause battery in running order, to prevent internal battery from continuing power consumption after dispatching from the factory, it is necessary to increase the Transportation Model that dispatches from the factory.This mould
Re-powered under formula after system platform installation, system can just initially enter normal operating conditions.The electromechanical stream in Transportation Model ShiShimonoseki
For 0mA, the internal battery service life ensure that.Internet of Things embedded system will carry out feature detection and battery in the plant produced stage
Charge and discharge electro-detection, detection various functions whether can normal use, therefore can enter plant produced in plant produced stage system
Pattern, system power supply normal power supply is used for system detectio under the pattern.For detecting qualified Internet of Things embedded system device,
Transportation Model will be entered.As shown in Figure 4, Internet of Things embedded system is entered after detection is qualified by plant produced pattern
Power control processor workflow under Transportation Model:Internet of Things embedded system detection under plant produced pattern is qualified
Afterwards, it is first shut off external power supply to power and switch to internal battery power supply, for detecting the use state and function of reserve battery
Detection.The off signal instruction to be received such as power control processor at this time, if without shutdown signal instruction, internal battery persistently supplies
Electricity, if all detection finishes systemic-function and Function detection is normal, off signal and instruction are sent to power supply control
Processor, power control processor close the power supply of interrupt logic circuit, and system can no longer receive interrupt signal at this time.
Following power control processor closes internal voltage raising and reducing circuit, and external power supply switch circuit is blocked in system, only internal
Power supply is powered.Finally, power control processor closes internal battery power supply circuit, Internet of Things embedded system shutdown holding system
Electric current is 0mA, i.e., into Transportation Model, thus is avoided that under Transportation Model because the meaningless energy of battery drain generation is lossy.
The Internet of Things embedded system of Transportation Model is completed, normal work mould can be entered by completing to be re-energised after installing
Formula, Internet of Things embedded system can normally carry out network communication between other platform of internet of things under the pattern, for example CAN leads to
Wireless telecommunications, UART, RS-485, RS-232, the LIN such as news, USB communications etc., Ethernet, 2G/3G/4G/WIFI/BT/BLE are total
Line, K lines, the various interface communications such as PCI-E, PCI.The average power consumption of Internet of Things embedded system under this mode state is
1W-10W。
Referring to the drawings 2, during beginning, judge that the current operating mode of Internet of Things embedded system is normal mode of operation, should
The operating mode of power control processor is start-up mode under pattern.System carries out standby signal detection at this time, if being at this time
Standby signal is not detected by system, then Internet of Things embedded system continues to keep normal mode of operation, if detecting standby letter
Number, power control processor closes partial power equipment and interface power supply logics, and control relevant portion equipment is treated into low-power consumption
Machine pattern, so far Internet of Things embedded system enter standby mode, power control processor itself enters sleep mode.Standby
The circuit such as the communication network of Internet of Things embedded system, interface communication fully enters standby mode under pattern, only partial power and
Middle circuit network is in normal operating conditions.System can receive various interruptions set in advance, ensure system energy normal wakeup.This
Average power consumption under mode state is 40mW-100mW, fully meets Internet of Things low-power consumption demand.Under standby mode, system
Detect that interrupt signal triggers, power control processor controls line related equipment to open again by sleep mode into start-up mode
With wake-up Internet of Things embedded system re-enters into normal mode of operation.
System such as (exceedes the stand-by time of systemic presupposition without communication for a long time after standby mode is entered for a period of time
T0), also waken up without any interrupt source, to reduce the further power consumption of system, system can enter silent mode.Referring to the drawings 3,
In stand-by mode, systemic presupposition has stand-by time T0 to Internet of Things embedded system, in the stand-by time T0 of systemic presupposition, thing
Networking embedded system once detects that interruption can be waken up into normal mode of operation, if exceeding systemic presupposition stand-by time
T0 does not have interrupt signal all the time, and power control processor will be triggered into start-up mode, actively closes power-supply device interface, closes
Close the power supply circuit of all power supply logics such as communications network interface.Further, power control processor closes internal system battery
Power-supplying circuit, closing system main power source power supply circuit make system depth dormancy, and so far Internet of Things embedded system switches to
Silent mode.Internet of Things embedded system under silent mode, its power control processor control mobile communication network and its
His interface circuit is completely in closed mode, and only interrupt processing source is in normal operating conditions.System enter silent mode after,
Average power consumption is 1mW-3mW.Greatly reduce system power dissipation.Internet of Things embedded system under silent mode, its interrupt processing
Source is in normal operating conditions, and systems stay carries out the detection trigger of interrupt signal, after down trigger, power control processor by
Sleep mode controls line related equipment to enable again into start-up mode, wakes up Internet of Things embedded system and re-enters into just
Normal operating mode.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
Member, on the premise of the method for the present invention is not departed from, can also make some improvement and supplement, these are improved and supplement also should be regarded as
Protection scope of the present invention.