Summary of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide a kind of television and set up television and networkThe method and system of server end channel corresponding relation, it is intended to solution DTV cannot obtain due to local channel designation changeThe problem of the network data of network server end.
Technical scheme is as follows:
A kind of method setting up television and network server end channel corresponding relation, wherein, including step:
Local channel designation is collected and preserved to A, television, and described local channel designation is uploaded to the webserverEnd;
B, network server end set up the unified channel of described network server end according to the local channel designation receivedThe channel corresponding relation of the local channel designation of title and television.
The described method setting up television and network server end channel corresponding relation, wherein, described step A is specifically wrappedInclude:
Current local channel list is collected and preserved to A1, television, and detects whether that storage has previous local channel list,When detecting that storage proceeds to step A2 when having previous local channel list;Previous local channel list is had when being not detected by storageTime, the local channel designation of described current local channel list is uploaded to network server end, and proceeds to step B;
Current local channel list described in A2, comparison and previous local channel list, when described current local channel listTime variant with previous local channel list, the local channel designation of the channel diff list of the two is uploaded to the webserverEnd, and proceed to step B.
The described method setting up television and network server end channel corresponding relation, wherein, step B the most also includes:
The outlet IP of the local channel designation that B11, network server end are uploaded by television, it is judged that described television instituteArea the most whether on be transmitted through local channel designation, when being, then enter step B12, when no, enter step B13;
B12, network server end update and described local channel designation corresponding for outlet IP and system according to described outlet IPThe channel corresponding relation of one channel designation;
B13, network server end store the local channel designation corresponding with this outlet IP according to outlet IP, set up describedThe channel corresponding relation of the unified channel designation of ground channel designation and network server end.
The described method setting up television and network server end channel corresponding relation, wherein, updates in described step B12Channel corresponding relation or step B13 are set up channel corresponding relation specifically include:
The local channel designation received is decomposed into keyword group by B1, network server end;
B2, search the unified channel name of network server end corresponding to described keyword group successively according to described keyword groupClaim;
B3, update according to the unified channel designation that finds or set up described network server end unified channel designation andThe channel corresponding relation of the local channel designation of television.
The described method setting up television and network server end channel corresponding relation, wherein, described television uploads thisDuring ground channel designation, also upload television operator ID corresponding with this this locality channel designation.
A kind of system setting up television and network server end channel corresponding relation, it includes television and network serviceDevice end, wherein, described television includes collecting transmission module, and described network server end includes that channel corresponding relation sets up storageModule;
Transmission module in collection, for collecting and preserve local channel designation, and is uploaded to net by described local channel designationNetwork server end;
Channel corresponding relation sets up memory module, for setting up described network service according to the local channel designation receivedThe unified channel designation of device end and the channel corresponding relation of the local channel designation of television.
Described system, wherein, in described collection, transmission module specifically includes:
Detector unit, for collecting and preserve current local channel list, and detects whether that storage has previous local channelList, enters comparing unit when detecting when storage has previous local channel list;Previous this locality is had when being not detected by storageDuring channel list, the local channel designation of described current local channel list is uploaded to network server end, and enters channelCorresponding relation sets up memory module;
Comparing unit, for the most described current local channel list and previous local channel list, when described current basisWhen ground channel list is variant with previous local channel list, the local channel designation of the channel diff list of the two is uploaded toNetwork server end, and enter channel corresponding relation and set up memory module.
Described system, wherein, described channel corresponding relation is set up memory module and is included:
Outlet IP judging unit, the outlet IP of the local channel designation for being uploaded by television, it is judged that described TVEnd location the most whether on be transmitted through local channel designation;
Channel corresponding relation updates and memory element, for updating and described basis corresponding for outlet IP according to described outlet IPGround channel designation and the channel corresponding relation of unified channel designation;Or according to this locality that outlet IP storage is corresponding with this outlet IPChannel designation, sets up the channel corresponding relation of described local channel designation and the unified channel designation of network server end.
Described system, wherein, channel corresponding relation updates and memory element:
Resolving cell, for being decomposed into keyword group by the local channel designation received;
Search unit, for searching network server end corresponding to described keyword group successively according to described keyword groupUnified channel designation;
Channel corresponding relation sets up unit, for updating according to the unified channel designation found or setting up described network clothesThe unified channel designation of business device end and the channel corresponding relation of the local channel designation of television.
Beneficial effect: television of the present invention is set up the method for television and network server end channel corresponding relation and isSystem, by being collected local channel designation by television, is then uploaded to network server end, by network by this this locality channel designationServer end sets up the channel corresponding relation of local channel designation and unified channel designation.The present invention efficiently solves and transports in various placesBattalion business cannot obtain network data problem in the case of one television channel is had different names, it is achieved according to different this localityChannel designation all can obtain the purpose of the network data of unique unified channel designation identified from network server end.
Detailed description of the invention
The present invention provides a kind of television to set up the method and system of television and network server end channel corresponding relation,For making the purpose of the present invention, technical scheme and effect clearer, clear and definite, the present invention is described in more detail below.ShouldUnderstanding, specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1, to be that the present invention sets up television the most real with the method for network server end channel corresponding relationExecute the flow chart of example, as it can be seen, it includes step:
Local channel designation is collected and preserved to S101, television, and described local channel designation is uploaded to network serviceDevice end;
S102, network server end set up the unified frequency of described network server end according to the local channel designation receivedThe channel corresponding relation of the local channel designation of road title and television.
In step S101, first collected current local channel list by television by the method for tuning, and shouldCurrent local channel list preserves, and in the present invention, also detects whether this television contains the most stored local channelThe most previous local channel list of list, carries out different disposal for different situations, as in figure 2 it is shown, described step S101 can be concreteIt is refined as following steps:
Current local channel list is collected and preserved to S201, television, detects whether that storage has previous local channel list;
S202, when detecting that storage has previous local channel list more described current local channel list and front deuterzooidGround channel list, when described current local channel list is variant with previous local channel list, by the channel difference of the twoThe local channel designation of list is uploaded to network server end, and proceeds to step S102;
S203, when being not detected by storage and having previous local channel list, by the basis of described current local channel listGround channel designation is uploaded to network server end, and proceeds to step S102;
If be detected that storage has previous local channel list, then by this previous local channel list and current local channelList compares, it is judged that they are the most variant, if variant, such as current local channel list adds phoenix and defendsDepending on, and delete the travel channel, then by this species diversity with the form of channel diff list by connecing that network server end providesMouth is uploaded to network server end.That uploads may also include television operator ID that this channel diff list is corresponding simultaneously.
If be detected that do not store previous local channel list, then without the step compared, can directly will be somebody's turn to doThe local channel designation of current local channel list is uploaded to network server end by the interface that network server end provides, andAnd upload television operator ID that this current local channel list is corresponding simultaneously.
Detected by television and whether stored previous local channel list and uploaded current this locality according to different situationsAfter the local channel designation of channel list or channel diff list, need to be detected further this television by network server endChannel designation was the most once uploaded in the area at place, if on be transmitted through, then need the frequency of the network server end to this areaRoad corresponding relation is updated (it is understood that in the present embodiment, " renewal " is also a kind of mode of " foundation "), and ifIt is transmitted through on not, then needs newly to set up channel corresponding relation, it is provided that use to television.
In general, regional only one of which television operator ID, have multiple in but it is also possible that an areaTelevision operator, thus there is multiple television operator ID, iff relying on whether television operator ID judges this areaUploaded channel list, in fact it could happen that inaccurate situation.The present invention uploads current local channel list or frequency by televisionThe outlet IP of road diff list judges that channel designation was the most once uploaded in television location.Because uploading the outlet IP of informationBeing unique for an area, institute is the most accurate.
Specifically, above-mentioned steps S102 can refine further, as it is shown on figure 3, include:
The outlet IP of the local channel designation that S301, network server end are uploaded by television, it is judged that described televisionLocation the most whether on be transmitted through local channel designation, when being, then enter step S202, when no, enter stepS203;
S302, network server end update and described local channel designation corresponding for outlet IP and system according to described outlet IPThe channel corresponding relation of one channel designation;After judging to be transmitted through local channel designation on, then can be corresponding for this outlet IPChannel corresponding relation is updated, specifically according to the current local channel list uploaded or the local channel of channel diff listTitle updates the channel corresponding relation of the unified channel designation of network server end and the local channel designation of television.
S303, network server end store the local channel designation corresponding with this outlet IP according to outlet IP, and set up instituteState the channel corresponding relation of local channel designation and the unified channel designation of network server end.Judge to be transmitted through on not local frequencyAfter road list, local channel designation corresponding for this outlet IP can be stored, then set up this this locality channel designation and networkThe channel corresponding relation of the unified channel designation of server end, and store this outlet IP corresponding to channel designation of this locality, with sideJudgement the most next time.
In the present invention, when television uploads the local channel designation of current local channel list or channel diff listUpload the ID of television operator the most simultaneously, then can be by television operator ID, outlet IP, local channel designation and unified frequencyRoad title sets up a complete channel corresponding relation, as shown in Figure 7.By television upload current local channel list orAfter the local channel designation of channel diff list, if be detected that this TV also can directly be runed by same television operator IDChannel corresponding relation corresponding for business ID is updated.
In the present embodiment, step S302 more new channel corresponding relation or step S303 set up the method for channel corresponding relation such asShown in Fig. 4, it includes step:
The local channel designation received is decomposed into keyword group by S401, network server end;
S402, search the unified channel of network server end corresponding to described keyword group successively according to described keyword groupTitle;
The unified channel designation that S403, basis find sets up unified channel designation and the TV of described network server endThe channel corresponding relation of the local channel designation of end.
It is exemplified below:
Network server end is receiving current local channel list that television sends over or channel diff listAfter local channel designation, set up and the channel corresponding relation of unified channel designation according to the local channel designation in these lists,Its concrete step includes:
1, travel through described current local channel list or the local channel designation of channel diff list, take out first this localityChannel designation;
2, judge currently to have stored this this locality channel designation and unified channel designation, outlet IP or TVThe corresponding relation of carrier ID, in the presence of, then proceeds to step 6, otherwise proceeds to step 3;
3, first the local channel designation taken out being decomposed into keyword group, its decomposition is entered according to known keywordOK, such as central authorities 1 can be analyzed to " central " and " 1 " both keyword group;
4, the unified channel designation of the network server end of correspondence is searched successively according to described keyword group, if it is possible toAccurately match unified channel designation, then record this channel corresponding relation unifying channel designation and local channel designation, otherwiseEnter step 5;Such as, the current local channel designation taken out is central authorities 1, and it is decomposed into keyword group " central " and " 1 ", passes throughThe unified channel designation that " central " can match potentially includes " CCTV-1 synthesizer channel ", " CCTV-2 channel for finance and economics ", " CCTV-3XATV-6 " etc. the unified channel designation of all CCTVs (performing before the present embodiment, can first carry out vague definition, here" central " not only mates " central " the two word, also coupling " CCTV ".), then can accurately be mated by keyword group " 1 "To unified channel designation " CCTV-1 synthesizer channel ".
5, if all of keyword group, all it fails to match, then alarm improves the matching relationship of keyword, and proceeds toTo step 6;
6, judge that whether current local channel designation is all local channel name that television uploads to network server endLast in title, enters step 7 when being, otherwise takes out next local channel designation, and is transferred to step 2;
7, flow process terminates.
Set up or after more new channel corresponding relation, network server end response interface is called in network server end, will be withThe different local channel designation correspondence in various places is unified channel designation accurately and is supplied to television, thus television can pass through this systemThe interface that one channel designation is corresponding obtains network data accurately.And during application realizes, if user only knows netThe unified channel designation of network server end, and when needing the channel jumping to this locality, can directly submit to network server end shouldUnified channel designation and carrier ID, needed for network server end returns to user's television according to described channel corresponding relationLocal channel designation, it is achieved at the local diving tower of television.Network server end in the present invention can receive from whole nation modelEnclose the network data of the local channel list of interior television, expand information matches success rate, also can solve to be there is a need to lead toCross the problem that local channel designation carries out data interaction with network server end.
Based on said method, the present invention also provides for a kind of television and sets up television pass corresponding with network server end channelThe system of system, as it is shown in figure 5, it includes that television 100 and network server end 200, described television 100 include that collection is uploadedModule 110, described network server end 200 includes that channel corresponding relation sets up memory module 210;
Transmission module 110 in collection, for collecting and preserve local channel designation, and are uploaded to described local channel designationNetwork server end;
Channel corresponding relation sets up memory module 210, for setting up described network according to the local channel designation receivedThe unified channel designation of server end and the channel corresponding relation of the local channel designation of television.
Further, in described collection, transmission module 110 specifically includes:
Detector unit, for collecting and preserve current local channel list, and detects whether that storage has previous local channelList, enters comparing unit when detecting when storage has previous local channel list;Previous this locality is had when being not detected by storageDuring channel list, the local channel designation of described current local channel list is uploaded to network server end, and enters channelCorresponding relation sets up memory module;
Comparing unit, for the most described current local channel list and previous local channel list, when described current basisWhen ground channel list is variant with previous local channel list, the local channel designation of the channel diff list of the two is uploaded toNetwork server end, and enter channel corresponding relation and set up memory module.
Further, as shown in Figure 6, described channel corresponding relation is set up memory module 210 and is included:
Outlet IP judging unit 211, the outlet IP of the local channel designation for being uploaded by television judges described electricityDepending on end location whether on be transmitted through local channel designation;
Channel corresponding relation updates and memory element 222, for updating corresponding with described outlet IP according to described outlet IPThe channel corresponding relation of local channel designation and unified channel designation;Or it is corresponding with this outlet IP according to outlet IP storageLocal channel designation, and set up described local channel designation pass corresponding with the channel of the unified channel designation of network server endSystem.
Further, described channel corresponding relation updates and memory element 222 includes:
Resolving cell, for being decomposed into keyword group by the local channel designation received;
Search unit, for searching network server end corresponding to described keyword group successively according to described keyword groupUnified channel designation;
Channel corresponding relation sets up unit, for setting up described network server end according to the unified channel designation foundThe channel corresponding relation of local channel designation of unified channel designation and television.
It is described in detail about acting in method above of above-mentioned each functional module, therefore repeats no more.In sum, originallyInvention television sets up the method and system of television and network server end channel corresponding relation, by being collected this by televisionGround channel designation, then the channel diff list by this this locality channel designation or with the last time is uploaded to network server end, byNetwork server end sets up the channel corresponding relation of local channel designation and unified channel designation, so that television is in this localityWhen channel designation changes, still it is able to access that network server end and obtains corresponding network data.Efficient solution of the present inventionDetermine in the case of there is multiple title in various places operator to a television channel, it is achieved equal according to different local channel designationsThe purpose of network data can be obtained from network server end.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, canTo be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present inventionProtect scope.