The utility model content
At the deficiencies in the prior art, the technical problem that the utility model solves provides a kind of set-top box, and this set-top box can open automatically or wake up during by access to netwoks the user.
For solving the problems of the technologies described above, the technical solution of the utility model is achieved in that
A kind of Auto Power On or wake set-top box up, wherein, described Auto Power On or wake set-top box up and comprise network start or wake module, start of described network or wake module comprise that one is used for described set-top box is resolved described visiting from outside data network protocol information under abnormal operating state procotol parsing module, and one and the communication unit of described network service.
Further, described procotol parsing module comprises that one stores procotol and start or the predetermined condition memory cell, waken up is called described procotol bag in the described memory cell, realizes network layer, transport layer and the processing unit of the parsing of high-level protocol more.
Described procotol is an ICP/IP protocol.
Described ICP/IP protocol comprises TCP, the UDP of the IP agreement and the transport layer of network layer, and the UPnP agreement.
Again further, described predetermined condition is visit data or the particular form packet that detects certain port of clean culture, IP and TCP; Described predetermined condition or be the visit data of certain port that detects clean culture, IP and UDP or the packet of particular form; Described predetermined condition or for detecting the AD HOC visit data of UPnP.
Compared with prior art, the beneficial effects of the utility model are: cost is lower, save energy resource consumption, prolong set-top box useful life, and realizes more accurately Auto Power On or wake up.
Embodiment
Now, will describe embodiment of the present utility model with reference to the accompanying drawings in detail.
Be illustrated in figure 1 as the network start or the waken system schematic diagram of the utility model preferred forms, described network start or waken system comprisemain control terminal 10, set-top box 20, wherein, describedmain control terminal 10 is application apparatuss of network-connectable (as 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, as normal domestic use power supply or battery etc.Describedmain control terminal 10 can be by the described set-top box 20 of access to netwoks.Comprised network start orwake module 201 in the described set-top box 20, this network start orwake module 201 are used to resolve and handle the visit of automatic network, to determine whether to open or wake up described set-top box 20.
Thismain control terminal 10 can initiatively be sent visit data to described set-top box 20 by 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 by browser).If this moment, set-top box 20 was in shutdown or resting state, then this visit data is after entering described network start or wakemodule 201, be stored in described network start orwake module 201, and the start that is set by the user of storage or wake-up condition will be carried out condition authentication behind the network protocol analysis to this visit data in start of this network or thewake module 201, if this visit data has passed through the condition authentication after this procotol authentication, then described network start orwake module 201 will send start or wake up and instruct to set-top box 20.Described procotol comprises TCP/IP, APPLETALK, IPX/SPX etc., and is preferred, in the utility model, employing be normally used ICP/IP protocol.Set-top box 20 is receiving this start or is waking the instruction back up and realize starting shooting or waking up, and after these set-top box 20 starts or waking up, described network start orwake module 201 are sent to described set-top box 20 with the visit data of storage.
What deserves to be mentioned is: the set-top box 20 of self can only be started shooting or wake up to network start or wakemodule 20 in the utility model set-top box 20, 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 set-top box 20.Described start promptly is to connect the main circuit that will be in set-top box 20 power supplys of off-mode or start described set-top box 20; Described waking up promptly is when described set-top box 20 is in resting state, and described set-top box 20 is returned to normal operating conditions.
This network start orwake module 201 are controllers of being responsible for response, handlingmain control terminal 10 accesss to netwoks.As shown in Figure 2, start of described network orwake module 201 comprise one described set-top box for close or resting state underprocessing unit 2011, thememory cell 2012 moved, with acommunication unit 2013, thisprocessing unit 2011 electrically connects describedmemory cell 2012 and describedcommunication unit 2013, and control 2013 work of describedmemory cell 2012 and described communication unit, common, described processing unit can be the processor that those of ordinary skills such as CPU, MPU, MCU know.
In the utility model preferred forms, describedcommunication unit 2013 comprises at least one network communication interface, accesses network that can be direct or indirect; The predetermined condition that describedmemory cell 2012 operationally is used for storage network protocol bag and start or wakes up, in the utility model preferred forms, this procotol bag is the ICP/IP protocol bag.Preferably, the ICP/IP protocol bag can be written in thememory cell 2012 with the form that is contained in the program module, and for example, this program module is an embedded software, can makeprocessing 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.
Describedprocessing 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 thememory cell 2012, realize network layer and transport layer, and the dissection process of high-level protocol more.Therefore, this network start orwake 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 andmemory cell 2012 have constituted the chief component of the protocol analysis module of this network start orwake module 201, the ICP/IP protocol parsing module can be used for the ICP/IP protocol information that described set-top box 20 (shutdown or dormancy) under abnormal operating state is resolved the visit data of external network, generally, finishing of the function of ICP/IP protocol parsing module do not rely on set-top box 20 master operating systems, and it is realizing in conjunction with operation ofprocessing unit 2011 andmemory cell 2012.
From the above, this network start orwake module 201 can be under the abnormal operating state in set-top box 20, realization is resolved the protocol information more than the OSI second layer, thereby can automatically realize the set-top box 20 of network start or wake up process abnormal operating state, set-top box 20 can be started shooting by the long-distance user or wake up easily, certainly, set-top box 20 can place energy-conservation abnormal operating state under not accessed or user mode, save energy resource consumption greatly, and can increase the service life.
As shown in Figure 3, when this set-top box 20 was in normal condition, the visit data ofmain control terminal 10 can arrive this set-top box 20 at any time and can handle this visit data by set-top box 20.Be the saving energy, and prolong the useful life of set-top box 20, in the utility model, set-top box 20 users can place set-top box 20 " shutdown " or abnormal operating states such as " sleeps ".Therefore, when the set-top box 20 of this IP address sends visit data, might need to use network start of the present utility model orwake module 201 and start or awakening method inmain control terminal 10.
Wherein, the control method of using network of the present utility model start orwake module 201 comprises following S211 to S225 step:
Step S211,main control terminal 10 sends visit data to this set-top box 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 of set-top box 20 in this visit data.
Step S213, described visit data is through arriving behind some routers from this set-top box 20 nearest router or gateway.
Step S215 judges whether described set-top box 20 is in normal operating conditions.If be judged as "Yes", then to carry out according to normal access program, set-top box 20 can directly be handled this visit data; If be judged as "No", enter step S217.
Step S217, network start orwake module 201 are in set-top box 20 and replace set-top box 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 orwake module 201 from these set-top box 20 nearest router or gateways, for example form broadcast arp request message to broadcast; Start of this network orwake module 201 comprise and are used for this set-top box 20 is resolved the external the Internet visit data at " under the abnormal operating state " ICP/IP protocol bag, thereby can correctly respond the ARP request, make the data of this set-top box 20 of visit can correctly be sent to this network start or wakemodule 201.
Step S219 carries out protocol analysis by the ICP/IP protocol bag in network start orwake module 201memory cell 2012.
In this step, network start orwake module 201 are called the ICP/IP protocol bag in thememory cell 2012, thereby theprocessing unit 2011 of network start orwake 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-describedmemory 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 set-top box 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 information are included in the tcp data bag), this set-top box just is waken up or starts 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 compare complicated processing), just to start to start shooting and wake up.
If be judged as "Yes", then enter step S223; If be judged as "No", then do not deal with this visit failure ofmain control terminal 10.
Step S223 is cached in this visit data thememory cell 2012 of network start orwake module 201.
Because user accesses data may be bigger, need the regular hour and trigger the start of set-top box 20 main circuits or wake set-top box 20 up, therefore, preferably, can carry out this step.In this step, thememory cell 2012 of network start orwake 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 described set-top box 20 up.After this step, the visit data that thememory cell 2012 of network start orwake module 201 can send buffer memory is to set-top box 20, so that this visit data of set-top box 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 no longer be described in detail.
Network start of the present utility model orwake module 201 are in the upstream of set-top box 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 orwake module 201 can be judged by 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 utility model is disclosed, but those of ordinary skill in the art will recognize that under situation about not breaking away from by the disclosed scope and spirit of the present utility model of appending claims, various improvement, increase and replacement are possible.