Home gateway and processing method thereof
Technical field
The present invention relates to networking technology area, especially a kind of home gateway and processing method thereof.
Background technology
When utilizing home gateway to realize that media push is professional, be that server is pushed to home gateway with various media informations (short message, picture and text, audio frequency and video), the processing that home gateway is correlated with according to media information again is as showing short message, graph text information, playing audio-video Media Stream.The user can order the content of media information by modes such as note, Web, and server can the active push content arrive family's gateway when the user network resource is idle, so that the user obtains the content of the media information of order.For making the home gateway media information of reception server active push at any time, the in running order always pushed information that sends over waiting for server at any time of present home gateway, and home gateway will remain in operating state, will there be power supply to be the home gateway power supply always, because when home gateway is in running order, main processing block in the home gateway also is in running order always, so that the media information that pushes of reception server at any time, and these media informations are handled accordingly.Because the function complexity of main processing block, element is more, therefore main processing block in working order the time power consumption bigger, this just requires power supply to be in complete power supply state, even main processing block does not have processing server to push the media information of coming, and only is when waiting for media information, still require power supply to power fully so that main processing block is in running order, the waste that this can cause resource undoubtedly makes power consumption huge.
Summary of the invention
The objective of the invention is to solve the huge problem of present home gateway power consumption, realize reducing the power consumption of home gateway.
For achieving the above object, the invention provides a kind of home gateway and processing method thereof, this home gateway comprises: main processing block, main power source module, trigger module and triggering power module; Described triggering power module is powered to described trigger module, makes described trigger module normality in running order; Described trigger module produces triggering command after receiving pushed information; Described main power source module is powered to described main processing block, makes described main processing block normality be in resting state; Described main processing block enters operating state from resting state after receiving described triggering command, handle the pushed information that described trigger module receives.
Described trigger module comprises receiver module and memory module, described receiver module is used to receive pushed information and produces triggering command, described memory module is used to store the pushed information that described trigger module receives, described main processing block is after receiving described triggering command, obtain the pushed information of storage to described memory module, the PUSH message of described storage is handled.
In running order main processing block enters resting state from operating state after satisfying preset condition.
This home gateway processing method comprises:
Receive pushed information, and send triggering command;
Make main processing block enter operating state according to described triggering command, handle described PUSH message from resting state.
Can also comprise: the pushed information that storage receives; After main processing block receives triggering command, obtain the pushed information of storage, and described pushed information is handled.
Can also comprise: after satisfying default dormancy condition, described main processing block enters resting state from operating state.
As shown from the above technical solution, the present invention is in resting state by making main processing block waiting to bide one's time, and increase a trigger module, make information to be pushed such as trigger module, after receiving pushed information, wakes trigger module main processing block up, main processing block is handled pushed information, is had following beneficial effect:
1, because main processing block is in resting state waiting to bide one's time, can avoid the big problem of the in running order always power consumption that causes of main processing block in the prior art.
2, increase trigger module, can wait for the reception pushed information at any time, avoid causing losing of pushed information, simultaneously, trigger module enters operating state with main processing block from resting state after receiving pushed information, can make main processing block handle the pushed information that receives in time; And because trigger module just carries out simple message pick-up and transmission, function is simple, and power consumption is little.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the structural representation of home gateway embodiment one of the present invention;
Fig. 2 is the structural representation of home gateway embodiment two of the present invention;
Fig. 3 is the flow chart of home gateway processing method embodiment of the present invention.
Embodiment
Fig. 1 is the structural representation of home gateway embodiment of the present invention, and this embodiment comprises: trigger module 11, main processing block 12, triggering power module 13 and main power source module 14.
Wherein, trigger module 11 is in running order always, promptly always by triggering power module 13 power supplies, so that the pushed information that at any time can the reception server side sends avoids losing pushed information.And main processing block 12 is by main power source module 14 power supplies, it is in resting state at ordinary times, promptly when not having pushed information, be in resting state, only after receiving triggering command, (show pushed information is arranged) and enter operating state, the pushed information that trigger module is received is handled accordingly afterwards, as showing short message, playing audio-video etc.
Fig. 2 compares with embodiment one for the structural representation of home gateway embodiment two of the present invention, and the trigger module of this embodiment comprises receiver module 111 and memory module 112; Receiver module 111 is used to receive promotion information and produces triggering command after receiving pushed information; Memory module 112 is used to store the pushed information that receiver module 111 receives.Because trigger module 11 does not possess the ability of handling pushed information, processing to pushed information also needs main processing block 12 to carry out, and main processing block 12 has only in running order could pushed information the processing, therefore after receiver module 111 receives pushed information, this pushed information can be stored in the memory module 112, and wake main processing block 12 up by triggering command simultaneously, after main processing block 12 is waken up, after main processing block 12 is waken up, no longer mutual with receiver module 111, but in this memory module 112, obtain pushed information, and the pushed information of obtaining is carried out the processing of corresponding subsequent, as showing short message, playing audio-video etc.
The foregoing description is by increasing trigger module, make trigger module in running order always to wait information to be pushed, and make main processing block when no pushed information, be in resting state, substitute in the prior art in running order always to wait mode of information to be pushed by main processing block, because main processing block function complexity, the element that comprises is many, therefore, if main processing block is in running order always, the meeting power consumption is huge, but, because trigger module just receives transmission information, function is simple, so even in running order always its power consumption of trigger module is also less, can just can guarantee its operate as normal by feed or battery, thereby reach purpose of power saving.Simultaneously, main processing block can directly obtain PUSH message from trigger module, perhaps obtains the PUSH message of trigger module storage in memory module, makes obtain manner more flexible.
Fig. 3 is the flow chart of home gateway processing method embodiment of the present invention, and this embodiment comprises:
Step 21: each module of initialization, promptly make trigger module in running order by feed or battery, make main processing block be in resting state.
Step 22: trigger module is waited for the pushed information that sends from server, judges whether to receive pushed information, if, execution in step 23, otherwise, continue to wait for.
Step 23: trigger module sends triggering command to main processing block, and the notice main processing block has pushed information to send to.
For preserving pushed information by the mode of storage, can store the pushed information that receives in the memory module into simultaneously this moment.
Step 24: main processing block enters operating state from resting state after receiving triggering command.
Step 25: main processing block obtains pushed information by trigger module, and carries out corresponding subsequent processing according to pushed information, as showing short message or playing audio-video etc.
Wherein, main processing block can directly obtain the pushed information that trigger module receives, and perhaps can obtain the pushed information of having stored in memory module.
Step 26: main processing block judges whether to satisfy default dormancy condition after handling pushed information, reaches certain threshold value as the non-processor time, as satisfying, and execution in step 27, otherwise wait for.
Step 27: main processing block enters resting state by operating state, begins new above-mentioned circulation process.
Present embodiment is only in running order when needs are handled pushed information by main processing block, is in resting state when waiting information to be pushed, can improve system effectiveness, reaches purpose of power saving.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.