The method of broadcast system data service, system and R-T unit
Technical field
The present invention relates to broadcast system, relate in particular to a kind of method of broadcast system data service.
Background technology
Existing broadcast system is when providing data, services, as electron service instruction (ESG), stock information, weather forecast, urgent broadcast etc., each item number all needs an independent standard to support according to service and ensures that manufacturer terminal need be at the standard development corresponding software and hardware of each item number according to service.The formulation of data, services standard no matter still be manufacturer terminal be the exploitation of a certain data, services, all consumed valuable time and human and material resources.Such pattern has restricted the release and the application of new data, services.
Summary of the invention
The technical problem to be solved in the present invention provides method, system and the R-T unit of data service in a kind of broadcast system, makes when developing new data, services, and system and terminal need not to develop the software and hardware of new standard and this standard of support, to economize on resources.
The invention provides a kind of method of broadcast system data service, comprise following steps:
(a) described data, services content is converted into the web page files form; The web page files of described data, services correspondence is set up portal website, extract the document structure information of described portal website; Described document structure information is described by a concordance list, described concordance list include file sign and file relative path; (b) transmitting terminal of broadcast system sends the document structure information of web page files and the described portal website form by broadcasting, when sending described web page files, sends after adding file identification.
The method of claim 1 is characterized in that, described method further comprises following steps:
(c) terminal receives described web page files, and described web page files is kept at this locality;
(d) terminal is obtained described data, services by visiting the local web page files of preserving.
Further, said method also can have following characteristics, in the described step (c), after terminal receives described document structure information and web page files, make up described portal website according to described document structure information and web page files in terminal this locality, in the described step (d), the portal website of terminal access this locality obtains described data, services.
Further, said method also can have in the described step of following characteristics (c), after described terminal receives described concordance list, preserve the information in the concordance list, when described terminal receives web page files, search the corresponding file relative path according to the index table information that the file identification in the described web page files is preserved in this locality, preserve described web page files.
Further, said method also can have following characteristics, and described broadcast system transmitting terminal periodically sends described concordance list.
Further, said method also can have following characteristics, also comprise the concordance list version in the described concordance list, in the described step (c), when described terminal receives described concordance list, the concordance list version in its concordance list version and the local index table information of preserving relatively, when described concordance list version is inconsistent, terminal receives described concordance list, upgrades local index table information of preserving, the local web page files of being preserved of deletion.
Further, said method also can have following characteristics, in the described step (a), file relative path or file name occur and change in the web page files of described portal website, or described portal website is newly-increased or during the deletion web page files, upgrade described concordance list version.
Further, said method also can have following characteristics, in the described step (b), when described broadcast system transmitting terminal sends described web page files, send after adding FileVersion, when the web page files content changing, its FileVersion changes, in the described step (c), when described terminal receives described web page files, preserve web page files corresponding file version.
Further, said method also can have following characteristics, in the described step (c), when terminal receives web page files, the FileVersion of web page files of the FileVersion of this web page files and local identical file sign relatively, when the FileVersion of the web page files that receives is higher than local FileVersion, use this web page files to replace the local page file.
Further, said method also can have following characteristics, in the described step (c), when terminal receives web page files, the FileVersion of web page files of the FileVersion of this web page files and local identical file sign relatively, when the FileVersion of the FileVersion of received web page files and the web page files of local identical file sign is identical, do not preserve described web page files, keep local web page files.
Further, said method also can have following characteristics, also comprises in the following information one or more in the described concordance list: the file number that portal website comprises, the file name of each web page files and web page files size.
Further, said method also can have following characteristics, in the described step (b), when described broadcast system transmitting terminal sends described concordance list, add checking data, in the described step (c), when terminal receives described concordance list, at first check checking data, when verification is correct, receive described concordance list, otherwise abandon described concordance list, wait for receiving new concordance list.
Further, said method also can have following characteristics, and described broadcast system transmitting terminal periodically sends described web page files.
Further, said method also can have following characteristics, and described data, services is one or more in electron service instruction, weather forecast and the urgent broadcast.
Further, said method also can have following characteristics, and described broadcast system is a China Mobile multimedia broadcasting CMMB system.
Further, said method also can have following characteristics, when the web page files of described data, services correspondence is set up into a plurality of portal website, document structure information and web page files with each portal website sends with the form of broadcasting respectively, after terminal receives the document structure information and web page files of described each portal website, make up corresponding portal website respectively in terminal this locality according to described document structure information and web page files.
The present invention proposes a kind of broadcast system transmitting terminal of data service, comprises website generation module, sending module, wherein,
Described website generation module is converted into web page files with described data, services;
Described sending module sends the form of described web page files by broadcasting.
Above-mentioned broadcast system transmitting terminal is include file structural information extraction module also, described website generation module is also formed portal website with described web page files, described document structure information extraction module extracts the structural information spanned file structural information of described portal website, and described sending module also sends the form of described document structure information by broadcasting.
During described document structure information extraction module spanned file structural information, generate a concordance list, when described concordance list include file sign and file relative path, described sending module send described web page files, send after adding file identification.
Further, above-mentioned broadcast system transmitting terminal also can have following characteristics, and the sending module of described broadcast system periodically sends described concordance list.
Further, above-mentioned broadcast system transmitting terminal also can have following characteristics, also comprise the concordance list version in the described concordance list that described document structure information extraction module generates, occurring file relative path or file name in the web page files of described portal website changes, or described portal website is newly-increased or during the deletion web page files, described document structure information extraction module upgrades described concordance list version.
Further, above-mentioned broadcast system transmitting terminal also can have following characteristics, also comprises in the following information one or more in the described concordance list of described document structure information extraction module: the file number that portal website comprises, the file name of each web page files and web page files size.
Further, above-mentioned broadcast system transmitting terminal also can have following characteristics, when described sending module sends web page files, sends after adding FileVersion again, and when the content changing of web page files, FileVersion changes.
A kind of receiving terminal that receives the broadcast system data, services, described broadcast system sends to receiving terminal with the web page files of described data, services correspondence, and described receiving terminal comprises receiver module, preserves module and access modules, wherein,
Described receiver module receives the web page files of described portal website;
Described preservation module is kept at terminal this locality with described web page files;
Described access modules is visited described web page files, obtains described data, services.
Described receiver module also receives the document structure information of the described portal website that broadcast system extracts after described web page files is set up into portal website, described preservation module is according to described document structure information, and described web page files is kept at terminal this locality by the structure of described portal website.
The described document structure information that described receiver module receives is described by a concordance list, described concordance list include file sign and file relative path, described preservation module is preserved the information in the described concordance list, when described preservation module is preserved web page files, search the corresponding file relative path according to the index table information that the file identification in the described web page files is preserved in this locality, preserve described web page files.
Further, above-mentioned receiving terminal also can have following characteristics, when described preservation module is preserved described concordance list, compare the concordance list version in its concordance list version and the local index table information of preserving, when described concordance list version is inconsistent, described preservation module receives described concordance list, upgrades local index table information of preserving, the local web page files of being preserved of deletion.
Further, above-mentioned receiving terminal also can have following characteristics, when described preservation module is preserved web page files, preserve the FileVersion of described web page files, when receiving web page files once more, described preservation module is the FileVersion of the web page files of the FileVersion of this web page files and local identical file sign relatively, when the FileVersion of the web page files that receives is higher than local FileVersion, described preservation module uses this web page files to replace the local page file, when the FileVersion of the FileVersion of received web page files and the web page files of local identical file sign is identical, do not preserve described web page files, keep local web page files.
Further, above-mentioned receiving terminal also can have following characteristics, when described receiver module receives described concordance list, at first checks checking data, when verification is correct, receives described concordance list, otherwise abandons described concordance list, waits for receiving new concordance list.
A kind of broadcast system of propagation data service comprises transmitting terminal and receiving terminal, wherein,
Described transmitting terminal sends the form of described data, services with web page files by the form of broadcasting; Described web page files is formed portal website, extract the structural information spanned file structural information of described portal website, generate a concordance list, described concordance list include file sign and file relative path; The form of described document structure information by broadcasting sent; When sending described web page files, send after adding file identification;
Described receiving terminal receives the document structure information of described web page files and described portal website, preserve the information in the described concordance list, search the corresponding file relative path according to the index table information that the file identification in the described web page files is preserved in this locality, described web page files is kept at this locality by the structure of described portal website, and the local web page files of preserving of described receiving terminal visit obtains described data, services.
Further, above-mentioned broadcast system also can have following characteristics, and described transmitting terminal further comprises website generation module, document structure information extraction module, sending module, wherein,
Described website generation module is converted into web page files with described data, services, and described web page files is formed portal website;
Described document structure information extraction module extracts the structural information spanned file structural information of described portal website;
Described sending module sends described document structure information and web page files by the form of broadcasting.
Further, above-mentioned broadcast system transmitting terminal also can have following characteristics, and described receiving terminal further comprises receiver module, preserves module and access modules, wherein,
Described receiver module receives the web page files and the document structure information of described portal website;
Described preservation module is kept at terminal this locality with described web page files according to the structure by described portal website according to described document structure information;
Described access modules makes up described portal website according to described document structure information and web page files in terminal this locality, for terminal access.
Form based on webpage provided by the invention provides the method for data, services, in case the terminal software exploitation is finished, promptly can obtain the information of various data, services by the form of browsing page.New data, services is as long as develop on the basis of webpage, and the software of terminal does not need to do any replacing, just can directly show, makes new data, services can obtain promotion and application fast.Further, terminal can make up portal website in this locality according to web page files of receiving and document structure information, makes the user to browse required content according to usual interactive mode.
Description of drawings
Fig. 1 is a broadcast system data service flow chart of the present invention;
Fig. 2 is broadcast system data service one an application example flow chart of the present invention;
Fig. 3 is a data service broadcast system block diagram of the present invention.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is described in detail.
The present invention is applicable to multiple broadcast system, is example with CMMB (China Mobile multimedia broadcasting) broadcast system here.
The method of broadcast system data service of the present invention mainly comprises following steps:
The data, services content that step 110, broadcast system at first will offer terminal is converted into the web page files form;
Further, described web page files can be set up into portal website, can obtain data, services by visit portal website.Wherein, described data, services can be electron service instruction, weather forecast, urgent broadcast etc.The web page files the inside also can provide the link of existing TV service, by clicking these links, is implemented in the function of opening in the webpage and watching the TV programme of specific channel.
Step 120, the transmitting terminal of broadcast system are encapsulated in described web page files in the time slot (TIMESLOT) of the CMMB of formulation, send by the form of broadcasting.
If the transmitting terminal in system is set up into portal website with described web page files, when then sending web page files, need to extract and send the document structure information of portal website, this document structural information is used to describe the structure of website, after being used for terminal reception web page files and document structure information, according to document structure information web page files is preserved web page files by the structure of transmitting terminal portal website of system, thereby set up identical portal website in this locality.
Broadcast system periodically sends described web page files and document structure information.
Step 130, the terminal receiving broadcast signal also parses wherein web page files, and web page files is kept at this locality.
If go back the include file structural information in the broadcast singal, then terminal parses and preserve document structure information according to document structure information, sets up the portal website identical with the broadcast system transmitting terminal with described web page files in this locality.
Step 140, terminal is obtained data, services by visiting the local web page files of preserving.
If terminal according to document structure information, sets up the portal website identical with the broadcast system transmitting terminal with described web page files in this locality, then terminal is obtained described data, services by visiting local portal website.
In terminal this locality, can read web page files by the mode of WEB SERVER (web page server).
Wherein, the path of WEB SERVER is set to deposit the root of portal website.Import the IP address such as the http of this machine in terminal: during // 127.0.0.1, show the homepage of described portal website, browse the portal website that this locality rebuilds.
Certainly WEB SERVER also can not used in terminal this locality, can deposit site home page file in the web page files path, browsing page by direct click.Terminal also can oneself be write based on the browser of webpage and realize showing according to the web page files that gets off of download.
In addition, the web page files that the transmitting terminal of broadcast system obtains after also can data, services not being transformed is set up into portal website, only generate independently web page files, when sending described web page files, do not transmit the above-mentioned document structure information of mentioning, terminal receives web page files independently and web page files is kept at local for terminal access according to being provided with of terminal.
Below by an application example of the present invention the present invention is further detailed.In this application example, the web page files of data, services correspondence is set up into a portal website.
Step 210, the broadcast system transmitting terminal is set up the concordance list of portal website, by the form transmission concordance list of broadcasting.
Described concordance list is equivalent to the document structure information described in the foregoing description, even index of reference table description document structural information.
Information such as the relative path of the file sequence number, file name, file that concordance list comprises the number of files of whole portal website and each web page files in described portal website, file size.Wherein the file sequence number is equivalent to file identification, the corresponding unique file sequence number of each web page files.
Also comprise the concordance list version information in the concordance list.Occurring file relative path or filename in the web page files of described portal website changes, or the situation of newly-increased or deleted file appears in the site file, be that website structure changes, then upgrade the version of concordance list, terminal is informed by version number by concordance list, and terminal reception hint table is when finding that the concordance list version changes, the web page files data of having preserved are all deleted, and receive web page files again by new concordance list.
Need in the concordance list simultaneously to add that checking data is to guarantee the reliability of concordance list transmission.
Described concordance list periodically by broadcast transmission, is guaranteed that terminal obtains this concordance list in the shortest time at any time.
An example of concordance list is as shown in table 1:
Table 1 concordance list
It is passable to set up concordance list,
1. allow terminal understand the situation of website, and carry out the deposit operation of file according to concordance list.
2. with the mode of file sequence number that file size, relative path, file name etc. are corresponding with file, can reduce these several the frequencies of propagation in network, help improving network usage.
Step 220, each web page files of broadcast system transmitting terminal adds the information of file sequence number and FileVersion, sends by the form of broadcasting.When the content changing of web page files, the FileVersion of web page files changes, and when sending the web page files that changes, adds that the file version information after the change of its correspondence sends again.
Table 2 web page files transmission table
Broadcast system periodically sends described web page files, according to the broadcast transmission of carrying out of the file sequence number of web page files circulation.
Step 230, terminal reception hint table is according to the index table creation contents table.
After terminal receives concordance list, carry out data check, promptly verification and the check digit in the concordance list by calculated data compares the correctness of guaranteeing concordance list, if verification is incorrect, then abandon this concordance list, prepare to receive new concordance list, if verification is correct, reception hint table then is according to the index table creation contents table.
Terminal is according to information such as the concordance list version that is comprised in the concordance list, file sequence number, file name, relative address, file size, FileVersions, at the local content creating table of terminal, comprise all index informations of the portal website in the concordance list in the described contents table.With respect to concordance list, in contents table, also increase a FileVersion item, the FileVersion of the web page files of expression local reception when receiving web page files, is preserved the file version information that carries in the web page files at every turn.The content tableau format is as shown in table 3.
Table 3 contents table
The initial value of FileVersion is 0 in the above-mentioned concordance list, and expression does not receive file as yet.When terminal received web page files, FileVersion was filled in the version of the web page files that receives.The number of the non-zero that terminal can be by the FileVersion in the scope of examination table is judged site file degree of finishing receiving like this.When non-zero number equals file number in the contents table, prove that all web page files have received one time.
Step 240, terminal receives web page files, and web page files is kept at terminal this locality.
After terminal receives the data of web page files,, in contents table, find this document sequence number corresponding file version information, judge whether that according to FileVersion needs carry out file and preserve operation according to the file sequence number of web page files.
If the FileVersion of the web page files that receives is higher than identical file sequence number corresponding file version in the local contents table, preserve according to the web page files that information butt joint such as locating file title, relative path, file size are received in local contents table of the file identification in the described web page files, replace the web page files of local this document sequence number correspondence, and the FileVersion in the update content table, last contents table is as shown in table 4.
Contents table after table 4 upgrades
The meaning of fileversion number is, only replaces up-to-date web page files to local.Do not do replacement operation for the file that version is identical.Can avoid the frequent read-write of terminal disk or internal memory like this, play the effect of economize on electricity.
When terminal is higher than index version in the local contents table at the version of the follow-up concordance list that receives, or the concordance list version that receives of terminal and the concordance list version in the local contents table are when inconsistent, terminal needs the contents table according to renewal this locality of the concordance list correspondence that receives, and all web page files deletions that will preserve before, re-execute step 240 and upgrade all web page files.
Step 250, terminal reads the local web page files of preserving by the mode of WEB SERVER (web page server), obtains data, services.
Above-mentioned Application Example is the processing when being at portal website.For the situation of a plurality of portal websites, then need set up a concordance list at each portal website.By TIMESLOT different among the CMMB concordance list and web page files are sent.Terminal is also switched concordance list and the web page files that TIMESLOT receives different portal websites accordingly, and it is kept at terminal this locality, and each portal website is set up corresponding portal website according to concordance list that receives and web page files in terminal this locality.
The present invention also provides a kind of broadcast system of data service, and as shown in Figure 3, this broadcast system comprises transmitting terminal and receiving terminal, wherein,
Transmitting terminal comprises website generation module, document structure information extraction module, sending module;
Described website generation module is converted into web page files with described data, services content, and described web page files is formed portal website;
Described document structure information extraction module extracts the structural information spanned file structural information of described portal website; During described document structure information extraction module spanned file structural information, generate a concordance list, information such as the relative path of the number of files, file sequence number, file name, file that comprises portal website in the concordance list in described portal website, file size.Also comprise the concordance list version in the described concordance list, occurring file relative path or file name in the web page files of described portal website changes, or described portal website is newly-increased or during the deletion web page files, described document structure information extraction module upgrades described concordance list version.
Described sending module sends described document structure information and web page files by the form of broadcasting.When described sending module sends described web page files, send after adding file identification and FileVersion.When the content changing of web page files, FileVersion changes.Described sending module periodically sends described concordance list and webpage.
Receiving terminal comprises receiver module, preserves module and access modules, wherein,
Described receiver module receives the web page files and the document structure information of described portal website;
When described receiver module receives described concordance list, at first check checking data, when verification is correct, receive described concordance list, otherwise abandon described concordance list, wait for receiving new concordance list.
Described preservation module is kept at terminal this locality according to described document structure information with described web page files;
Wherein, document structure information is described by a concordance list, described preservation module is preserved the information in the described concordance list, compare the concordance list version in its concordance list version and the local index table information of preserving, when described concordance list version is inconsistent, described preservation module receives described concordance list, upgrades local index table information of preserving, the local web page files of being preserved of deletion.
When described preservation module is preserved web page files, search the corresponding file relative path, preserve described web page files according to the index table information that the file identification in the described web page files is preserved in this locality.Further, described preservation module receives when preserving web page files, preserve the FileVersion of described web page files, when receiving web page files once more, described preservation module is the FileVersion of the web page files of the FileVersion of this web page files and local identical file sign relatively, when the FileVersion of the web page files that receives is higher than local FileVersion, described preservation module uses this web page files to replace the local page file, when the FileVersion of the FileVersion of received web page files and the web page files of local identical file sign is identical, do not preserve described web page files, keep local web page files.
The local web page files of described access modules visit obtains data, services.
Form based on webpage provided by the invention provides the method and system of data, services, in case the terminal software exploitation is finished, promptly can obtain the information based on the data, services of webpage by the form of browsing page.New data, services is as long as develop on the basis based on webpage, and the software of terminal does not need to do any replacing, just can directly show, makes new data, services can obtain promotion and application fast.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.