Summary of the invention
To the deficiency of prior art, the technical problem that the present invention solves provides a kind of STB, and this STB can be opened or wake up during through access to netwoks the user automatically; It is a kind of through access to netwoks start or wake the method for STB up that the present invention also provides.
For solving the problems of the technologies described above, technical scheme of the present invention is achieved in that
A kind of Auto Power On or wake STB up; Wherein, Said Auto Power On or wake STB up and comprise network start or wake module; Start of said network or wake module comprise that one is used for said STB is resolved said visiting from outside data network protocol information under abnormal operating state procotol parsing module, and one and the communication unit of said network service.
Further; Said procotol parsing module comprises that one stores procotol and start or the predetermined condition memory cell, waken up is called the said procotol bag in the said memory cell, realizes network layer, transport layer and the processing unit of the parsing of high-level protocol more.
Said procotol is an ICP/IP protocol.
Said ICP/IP protocol comprises TCP, the UDP of the IP agreement and the transport layer of network layer, and the UPnP agreement.
Again further, said predetermined condition is visit data or the particular form packet that detects certain port of clean culture, IP and TCP; Said predetermined condition or be visit data or the packet of particular form of certain port of detecting clean culture, IP and UDP; Said predetermined condition is perhaps for detecting the AD HOC visit data of UPnP.
Technical scheme of the present invention can also be realized by following method:
A kind of Auto Power On or wake the start or the awakening method of STB up is characterized in that said start or awakening method may further comprise the steps:
The first step, main control terminal are sent visit data to this STB;
Second step, procotol is carried out protocol analysis through network start or wake module;
The 3rd goes on foot, judges whether to meet the predetermined condition that start perhaps wakes up;
If the 4th step was judged as " being ", then open or wake up said STB.
Further, in the said first step and further comprising the steps of between second step:
At first, arrive from nearest router or the gateway of this STB behind the some routers of said visit data process;
Secondly, judge whether said STB is in normal operating conditions;
At last, if be judged as " denying ", then network start or wake module replace the said visit data of set-top box processes.
Further, said the 4th step comprises:
At first, if be judged as " being ", then said visit data is cached in said network start or the wake module;
Secondly, open or wake up said STB, and the visit data of forwarding cache to said STB.
Again further, said procotol is an ICP/IP protocol.
Further, said ICP/IP protocol comprises TCP, the UDP of the IP agreement and the transport layer of network layer, and more senior UPnP agreement.
Compared with prior art, the invention has the beneficial effects as follows: cost is lower, save energy resource consumption, prolong STB useful life, and realizes more accurately Auto Power On or wake up.
Embodiment
Now, will describe embodiment of the present invention in detail with reference to accompanying drawing.
Be illustrated in figure 1 as the network start or the waken system sketch map of best mode for carrying out the invention; Said network start or waken system comprisemain control terminal 10, STB 20, and wherein, saidmain control terminal 10 is application apparatuss of network-connectable (like the Internet, mobile network, local area network (LAN) etc.); As; Desktop computer, notebook, net book, mobile phone etc., and thismain control terminal 10 is connected with power supply; This power supply provides electric power for thismain control terminal 10, like normal domestic use power supply or battery etc.Saidmain control terminal 10 can be through the said STB 20 of access to netwoks.Comprised network start or wake module 201 in the said STB 20, this network start or wake module 201 are used to resolve and handle the visit of automatic network, to determine whether to open or wake up said STB 20.
Thismain control terminal 10 can initiatively be sent visit data to saidSTB 20 through C/S mode (main control terminal is opened client software junctor top box) or B/S mode (main control terminal is keyed in set-top box addresses junctor top box through browser).If this moment,STB 20 was in shutdown or resting state; Then this visit data is after getting into said network start or wake module 201; Be stored in said network start or wake module 201; And the start of being set by the user of storage or wake-up condition will be carried out the condition authentication behind the network protocol analysis to this visit data in start of this network or the wake module 201; If this visit data has passed through the condition authentication after this procotol authentication, then said network start or wake module 201 will be sent start or waken up and instruct to STB 20.Said procotol comprises TCP/IP, APPLETALK, IPX/SPX etc., and is preferred, in the present invention, employing be normally used ICP/IP protocol.STB 20 is receiving this start or is waking the instruction back up and realize starting shooting or waking up, and after theseSTB 20 starts or waking up, said network start or wake module 201 are sent to saidSTB 20 with the visit data of storage.
What deserves to be mentioned is: theSTB 20 of self can only started shooting or wake up to network start or wakemodule 20 in theSTB 20 of the present invention; Can start shooting or wake up many again and be in the compatible network equipment of same local area network (LAN), as long as these network equipments all are connected with power supply with this STB 20.Said start promptly is to connect the main circuit that will be inSTB 20 power supplys of off-mode or start said STB 20; Said waking up promptly is when said STB 20 is in resting state, and said STB 20 is returned to normal operating conditions.
This network start or wake module 201 are controllers of being responsible for response, handlingmain control terminal 10 accesss to netwoks.As shown in Figure 2; Start of said network or wake module 201 comprise one said STB from close or resting state under processing unit 2011, the memory cell 2012 moved; With a communication unit 2013, this processing unit 2011 electrically connects said memory cell 2012 and said communication unit 2013, and controls said memory cell 2012 and said communication unit 2013 work; Common, said processing unit can be the processor that those of ordinary skills such as CPU, MPU, MCU know.
In best mode for carrying out the invention, said communication unit 2013 comprises at least one network communication interface, accesses network that can be direct or indirect; The predetermined condition that said memory cell 2012 operationally is used for storage network protocol bag and start or wakes up, in best mode for carrying out the invention, this procotol bag is the ICP/IP protocol bag.Preferably, the ICP/IP protocol bag can be written in the memory cell 2012 with the form that is contained in the program module, and for example, this program module is an embedded software, can make processing unit 2011 carry out these programs according to the instruction of external reference data.The ICP/IP protocol bag generally includes the agreement of the 3rd layer (network layer) and the 4th layer (transport layer), for example, comprises TCP, the UDP of the IP agreement and the transport layer of network layer, and more senior UPnP agreement etc.Memory cell 2012 is preferably nonvolatile memory.
Said processing unit 2011 can be according to the visit data of external network (preferably; Be based on ICP/IP protocol transmission) instruction; Call the program that comprises the ICP/IP protocol bag in the memory cell 2012, realize network layer and transport layer, and the dissection process of high-level protocol more.Therefore, this network start or wake module 201 realize the ICP/IP protocol parsing of the 3rd layer of osi layer and the 4th layer protocol and until comprise the parsing of the UPnP agreement of OSI layer 7.
This shows; Processing unit 2011 and memory cell 2012 have constituted the chief component of the protocol analysis module of this network start or wake module 201; The ICP/IP protocol parsing module can be used for the ICP/IP protocol information that said STB 20 (shutdown or dormancy) under abnormal operating state is resolved the visit data of external network; Generally; The completion of the function of ICP/IP protocol parsing module does not rely onSTB 20 master operating systems, and it is that the combination of processing unit 2011 and memory cell 2012 moves and realizes.
From the above; This network start or wake module 201 can be under the abnormal operating state atSTB 20; Realization is resolved the protocol information more than the OSI second layer, thereby can automatically realize theSTB 20 of network start or wake up process abnormal operating state, andSTB 20 can perhaps be waken up by long-distance user's start easily; Certainly; STB 20 can place energy-conservation abnormal operating state under not by visit or user mode, save energy resource consumption greatly, and can increase the service life.
As shown in Figure 3, when thisSTB 20 was in normal condition, the visit data ofmain control terminal 10 can arrive thisSTB 20 at any time and can handle this visit data by STB 20.Be the saving energy, and prolong the useful life ofSTB 20, in the present invention, STB 20 users can place " shutdown " perhaps abnormal operating states such as " sleeps " with STB 20.Therefore, when theSTB 20 of this IP address sends visit data, might need to use network start of the present invention or wake module 201 and start or awakening method inmain control terminal 10.
Wherein, the control method of using network of the present invention start or wake module 201 comprises following S211 to S225 step:
Step S211,main control terminal 10 is sent visit data to thisSTB 20.
In this step, send owing to be based on network, so visit data sends and transmission with procotol, preferably, send with ICP/IP protocol during this visit data and transmission, comprise the IP address ofSTB 20 in this visit data.
Step S213, said visit data is through arriving behind some routers from this STB 20 nearest router or gateway.
Step S215 judges whether said STB 20 is in normal operating conditions.If be judged as " being ", then carry out according to normal access program, STB 20 can directly be handled this visit data; If be judged as " denying ", get into step S217.
Step S217, network start or wake module 201 are at STB 20 and replaceSTB 20 to handle this visit data under the abnormal operating state.
In this step, can send the ARP(Address Resolution Protocol) request to network start or wake module 201 from theseSTB 20 nearest router or gateways, for example form broadcast arp request message to broadcast; Start of this network or wake module 201 comprise and are used for thisSTB 20 is resolved the external internet visit data at " under the abnormal operating state " ICP/IP protocol bag; Thereby can correctly respond the ARP request, make the data of thisSTB 20 of visit can correctly be sent to this network start or wake module 201.
Step S219 carries out protocol analysis through the ICP/IP protocol bag in network start or wake module 201 memory cell 2012.
In this step; Network start or wake module 201 are called the ICP/IP protocol bag in the memory cell 2012, thereby the processing unit 2011 of network start or wake module 201 is operationally realized the ICP/IP protocol information in the dissection process visiting from outside data.Normally comprise the ICP/IP protocol bag in the ICP/IP protocol bag, this ICP/IP protocol bag comprises Transmission Control Protocol, the udp protocol of the IP agreement and the transport layer of network layer, and more senior UPnP agreement etc.Therefore, realized the 3rd layer of visit data to or the data parsing of layer 7 handle, and be not limited to the data processing of the ground floor (physical layer) and the second layer (data link layer).
Step S221 judges whether the predetermined condition that meets start or wake up.In this step; Predetermined condition can be set in above-described memory cell 2012; For example, when the visit data of certain port that detects clean culture, IP, TCP, UDP or during the UPnP visit data of some particular form, as start or the predetermined condition waken up.In another embodiment, predetermined condition can also be for detecting the tcp data bag of particular form, for example, for the STB of an open UPnP service, can tcp port 5000 and the data access of udp port 1900 be set to the wake-up condition of starting shooting.When to detect the visit data bag be TCP and point to port 5000 or UDP when pointing to 1900 ports (these packets of information are contained in the tcp data bag), this STB is just waken up or is started shooting; Certainly we can also be provided with more complicated start wake-up condition; Except requiring packet rs destination ground to point to the tcp port 5000 or the udp port 1900 of this machine; Also check the character and the content of UPnP agreement; Service discovery visit for SSDP and so on is only simply responded, and does not start start and wakes up.Have when receiving specific control information or event notice (need do the processing of more complicated), just starting the start wake up.
If be judged as " being ", then get into step S223; If be judged as " denying ", then do not deal with this visit failure ofmain control terminal 10.
Step S223 is cached in this visit data the memory cell 2012 of network start or wake module 201.
Because user accesses data maybe be bigger, need the regular hour and trigger the start ofSTB 20 main circuits or wakeSTB 20 up, therefore, preferably, can carry out this step.In this step, the memory cell 2012 of network start or wake module 201 can be before the employed same memory cell of step.
Step S225 sends start or wakes instruction up to start shooting or to wake saidSTB 20 up.After this step, the memory cell 2012 of network start or wake module 201 can be sent visit data to theSTB 20 of buffer memory, so that this visit data ofSTB 20 normal process.At this, can be to the concrete data handling procedure of physical layer and data link layer with reference to the processing procedure in the existing network service process, thus do not remake detailed description.
Network start of the present invention or wake module 201 are at the upper reaches ofSTB 20, andtransmitter top box 20 acceptables are started shooting or waken instruction up when detecting the network traffics of addressing machine top box 20.Network start or wake module 201 can be judged through analysis protocol, filter the flow that causes the machine of opening by mistake, and realize Auto Power On more accurately.
Although be the example purpose; Preferred implementation of the present invention is disclosed; But those of ordinary skill in the art will recognize, under the situation that does not break away from disclosed scope of the present invention and spirit by appending claims, various improvement, increase and replacement are possible.