A kind of device that reduces sensor node dormancy power consumption
Technical field
The utility model relates to embedded system, relates in particular to a kind of device that reduces the sensor node power consumption.
Background technology
Wireless sensor network combines multiple advanced technologies such as microelectric technique, embedded computing technique, modern computer network technologies and wireless communication technique, distributed information processing, wireless sensor node in the network can be monitored mutually collaboratively in real time, the information of various environment or monitoring target in perception and the collection network overlay area, and it is handled, information after the processing sends by wireless mode, and sends the observer in the mode of organizing multi-hop certainly.Wireless sensor network merges into one information world in logic with objective physical world, thereby realizes physical world, the connection of calculating the world and the human society ternary world.
Wireless sensor network combines multi-disciplinary cutting edge technology as a brand-new research direction of current information and computer realm, has been subjected to the extensive concern of academia and industrial quarters now.A lot of scientific research institutions and university research mechanism have all dropped into the research that a large amount of research and development strengths and energy are engaged in the wireless sensor network software and hardware system one after another.Aspect the realization of wireless sensor network hardware platform, the development of the Smart Dust (SMART DUST) of the most representative is exactly Berkeley (Berkeley) university and the Mica series node of Crossbow company.
The design of wireless sensor network node need be considered multiple factors such as microminiaturization, low-power consumption, autgmentability, stability, fail safe.Its implementation has number of ways, a kind of approach can adopt very large scale integration technology, mode with SOC (system on a chip), information acquisition module, message processing module and wireless communication module etc. are integrated on a slice chip, but because the application specific aim of wireless sensor network is very strong, different networks needs different sensor nodes, and the flexibility of this kind method is relatively poor, early investment cost height.Another kind of approach is to realize the each several part module of sensor node with commercial integrated circuit and separating component, all adopted such implementation such as " SMART DUST (Smart Dust) " and node systems such as " drawing pin (Pushpin) ", its system realizes flexibly, can realize needed sensor node comparatively easily at concrete application.
Sensor node generally adopts powered battery, because the zone that node is placed on danger or is difficult for arriving, it almost is impossible changing battery, therefore the energy-conservation key technology that becomes design.How prolonging systems life cycle in wireless sensor network, is a challenging problem, and the solution of one of them is that sensor node is in resting state when not having incident to take place, thereby reduces the energy consumption of sensor node.In present sensor node implementation, sensor node comprises processing module CPU, sensing module, radio-frequency module and power module usually, CPU and radio-frequency module all possess multiple park mode mostly, with Mica2 is example, employed CPU is ATmega128, under power down (power down) pattern, the electric current during with 3.3 volts of power voltage supplies is less than 0.5 microampere; Under power saving (power save) pattern, the electric current during with 3.3 volts of power voltage supplies is approximately 10 microamperes.But when the sensor node cycle gather to send data, CPU can not be in power down (power down) state, otherwise the clock of CPU will quit work, thereby can't calculate the execution cycle.The method of taking at present is to make CPU be in power saving (powersave) pattern, but this moment dormancy power consumption to compare power-down state much bigger.Therefore, be necessary to provide a kind of device of the energy consumption when reducing the sensor node periodic duty.
Summary of the invention
The technical problems to be solved in the utility model provides a kind of device that reduces sensor node dormancy power consumption, solves the existing bigger problem of sensor node dormancy power consumption.
In order to solve the problems of the technologies described above, the utility model provides a kind of device that reduces sensor node dormancy power consumption, comprises sensor node, also comprises the external clock module, link to each other with described sensor node, wherein,
Described sensor node is used for before entering resting state, transmits control signal to described external clock module, also is used to receive the interrupt signal of described external clock module, enters operating state;
Described external clock module after being used to receive the control signal of sensor node, picks up counting, and arrives the back at timing and sends interrupt signal to described sensor node.
Further, said apparatus also can have following characteristics, and described sensor node further comprises timing the unit is set, the zero clearing unit, and wakeup unit, wherein:
Described timing is provided with the unit, is used to be provided with the timing of external clock module;
Described zero clearing unit is used for before sensor node enters resting state, transmits control signal to described external clock module;
Described wakeup unit after being used to receive the interrupt signal of described external clock module, is waken sensor node up and is entered operating state.
Further, said apparatus also can have following characteristics, and described external clock module further comprises counter and interrupt signal transmitting element, wherein:
Described counter is used to preserve the timing that sensor node is provided with, and after receiving the control signal of sensor node, zero clearing also begins counting, when count value arrives described timing, sends a triggering signal to the interrupt signal transmitting element;
Described interrupt signal transmitting element links to each other with described counter, after being used to receive the triggering signal of described counter, sends an interrupt signal to described sensor node.
The device of the reduction sensor node dormancy power consumption that the utility model is related has the following advantages: 1, compatible strong, the utility model is realized by add the external clock module on the existing sensors network node, change less to the original system hardware components, and control interface is simple, and is very little for original software alteration.2, realize that cost is low, add the clock module of single-chip on original sensor node, this clock module is with low cost, and is little to the cost impact of original sensor node.3, effect is obvious, adds the external clock module, can obviously reduce the power consumption of sensor node dormancy, is example with MICA2, and after adding the external clock module, under the situation that does not influence its function, quiescent current can be reduced to 2 microamperes by 10 microamperes.
Description of drawings
Fig. 1 is that the hardware of sensor node is realized block diagram after the adding external clock module;
Fig. 2 is the concrete structure block diagram of sensor node and external clock module.
Embodiment
Main thought of the present utility model is to add external clock module RTC (Real Time Clock, real-time clock), for example PCF8563 of PHILIPS on the basis of existing sensors node.This external clock module has extremely low operating current, has only 0.25 microampere, and this external clock module has the function of cycle output interrupt signal able to programme, the pin that the external clock module can be produced interrupt signal is received on the interrupt pin of CPU of sensor node, even like this when CPU is in power-down state, the cycle interruption signal that produces by the external clock module also can trigger CPU, makes it to enter operating state.
Specific implementation is: the CPU of sensor node is provided with the external clock module when initial timing is the cycle of sensor node periodic duty, before CPU enters resting state, outside clock module counter is carried out zero clearing, when the cycle arrives, the external clock module produces interrupt signal automatically, send to CPU, thereby wake CPU up, sensor node enters operating state, after hours, sensor node CPU reenters resting state, before entering resting state, with the counter O reset of external clock module, wait for being waken up once more again.Sensor node when being in resting state (CPU is in power-down state) in the time of idle, can keep low-down power consumption state when the periodic duty state like this.
The device of the reduction dormancy power consumption that the utility model proposes as shown in Figure 2, comprises sensor node and external clock module, wherein:
Sensor node is used for before entering resting state, transmits control signal to described external clock module, also is used to receive the interrupt signal of described external clock module, enters operating state;
The external clock module after being used to receive the control signal of sensor node, picks up counting, and sends interrupt signal to described sensor node behind timing.
Sensor node further comprises timing the unit is set, zero clearing unit, wakeup unit;
Timing is provided with the unit, is used to be provided with the timing of external clock module, and the timing that the external clock module for example is set is identical with the cycle of sensor node periodic duty;
The zero clearing unit is used for before sensor node enters resting state, transmits control signal to the external clock module, is used to indicate external clock module sensors node to enter resting state, requires the counter O reset of external clock module, begins counting;
Wakeup unit after being used to receive the interrupt signal of external clock module, is waken sensor node up and is entered operating state.
The external clock module further comprises counter and interrupt signal transmitting element, wherein:
Counter is used to preserve the timing that sensor node is provided with, and after receiving the control signal of sensor node, zero clearing also begins counting, when count value arrives described timing, sends a triggering signal to the interrupt signal transmitting element;
The interrupt signal transmitting element links to each other with counter, after being used to receive the triggering signal of counter, sends an interrupt signal to sensor node.
Its workflow of device of the reduction wireless sensor node power consumption that the utility model proposes is as follows:
301, the CPU of sensor node is provided with the cycle that the external clock module produces interrupt signal by control signal;
Wherein, by outside clock module internal register is provided with, be set the cycle that the external clock module produces interrupt signal.
302, before entering resting state, the CPU of sensor node is provided with the external clock module by control signal, makes the counter O reset of external clock module;
303, sensor node enters resting state;
Sensor node when the needs periodic duty, the resting state that enters power-down mode.
This moment, the external clock module was in running order.
304, when the Counter Value of external clock module equals to produce the cycle of interrupt signal, when promptly counter overflows, produce interrupt signal and give sensor node;
305, after sensor node was received interrupt signal, its CPU was waken up, and sensor node enters normal operating conditions, gathered and send data, after hours, prepared to enter resting state, returned step 302.
By said method, sensor node can periodic duty, and sensor node can enter the resting state of power-down mode when not working, thereby saves power consumption.
In addition, because clock module can be regularly, in principle as long as know in advance when sensor node needs to be waken up, can use the device that the utility model proposes, even not being periodic the collection, sensor node do not send data, also can enter the resting state of power-down mode,, wake the purpose that sensor node reaches the saving power consumption up by clock module thereby arrive the back at timing by the timing of clock module is set.Be the power consumption that the utility model not only can be saved the sensor node periodic duty, save power consumption in the time of also can being used for aperiodicity work.
The device of the reduction sensor network nodes dormancy power consumption that the utility model proposes in periodic workplace, can make CPU be in power-down state, and by the external clock module CPU is waken up and enter operating state, thus the power consumption of greatly reducing.In addition, the dormancy power consumption in the time of also can reducing aperiodicity work.