Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer,, the embodiment of the invention is described in further details below in conjunction with execution mode and accompanying drawing.At this, the exemplary embodiment of the embodiment of the invention and explanation thereof are used to explain the present invention, but not as a limitation of the invention.
The embodiment of the invention provides the interactive media document updating method and the device of a kind of system end and terminal.Below in conjunction with accompanying drawing the embodiment of the invention is elaborated.
Be illustrated in figure 2 as the first embodiment flow chart that system end of the present invention upgrades interactive media document.
Step 201 adds the interactive media document lastest imformation at system end in the communication data that user terminal transmits.For described communication data is under the situation of business guide, described interactive media document lastest imformation comprises interactive media document pointer version information (IMDversion) at least, write down the version information of interactive media document pointer in this interactive media document pointer version information, can also comprise interactive media document descriptor (InteractiveMediaDocmentInfo), comprise interactive media document sign (ID) in this interactive media document descriptor; For described communication data is under the situation of notification message, described interactive media document lastest imformation comprises the interactive media document descriptor at least, described interactive media document descriptor comprises interactive media document identification information (ID), described interactive media document descriptor can also comprise event type (eventType) and interactive media document version information, has write down notification message in this event type and whether has carried the interactive media document lastest imformation.
Step 202, described system end sends this communication data to described user terminal, informs whether the interactive media document of client terminal system end upgrades.
Be illustrated in figure 3 as the second embodiment flow chart that system end of the present invention upgrades interactive media document.
Step 301, in the business guide that user side sends, increase the interactive media document lastest imformation at system end, this interactive media document lastest imformation comprises the interactive media document state information at least, and this interactive media document state information comprises interactive media document pointer version information (IMDversion) or interactive media document updating mark information.
Wherein, interactive media document pointer version information, point to the GroupID of interactive media document, this pointed has all interactive media documents of identical GroupID, actual that the highest document of GroupPosition that points to, wherein, GroupID is the group id of interactive media document, that is to say and have a plurality of interactive media documents with identical GroupID, these interactive media documents all are in order to finish identical mutual purpose, be different terminals disposal ability difference, these documents are the interactive information of making at the different terminals disposal ability respectively.After terminal received this group interactive media document, an interactive media document of selecting to be fit to own ability was handled.
Interactive media document updating mark information indicates whether interactive media document upgrades, and can value be that 0 interval scale does not upgrade for example, and value is that 1 o'clock described interactive media document needs to upgrade.
As preferred embodiment, described interactive media document lastest imformation also comprises interactive media document descriptor (InteractiveMediaDocmentInfo), and this interactive media document descriptor comprises, interactive media document sign (ID).
As preferred embodiment, described interactive media document lastest imformation also comprises interactive media document version information (Version), obtains the obtain manner (IMDurl) of interactive media document.
As preferred embodiment, the business guide generation module is revised " IMDversion " attribute value in the interaction data burst that points to this GroupID, is x as original " IMDversion " value, and then revising the back value is x+1.That revises interactive media document descriptor in the business guide interaction data burst obtains address (IMDurl).
As preferred embodiment, the business guide generation module is revised interactive media document updating mark information, is that 0 interactive media document updating mark information is revised as 1 with former value.
Step 302 sends the business guide that this regenerates to user terminal, upgrades the business guide of user terminal.By the foregoing description, the interactive media document on the maintenance terminal that can be real-time is consistent with system end, makes user terminal the mistake of interactive media seldom occur, improves quality of services for users.
Be illustrated in figure 4 as the 3rd embodiment flow chart that system end of the present invention upgrades interactive media document.
Step 401, in the notification message that user side sends, increase the interactive media document lastest imformation at system end, this interactive media document lastest imformation comprises interactive media document descriptor field (InteractiveMediaDocmentInfo), and in existing event type field (eventType), add the interactive media document updating type (if the event type in the notification message is for certain particular value then represent and carry the interactive media document updated information in the described notification message, can set when event type is 66 in this example, represent and carry the interactive media document updated information in the notification message).This interactive media document descriptor field comprises: interactive media document sign (ID), version (Version), document obtain manner (IMDurl) etc.
After the interactive media document in interactive service source upgrades, complete interactive media document lastest imformation is sent to the notification message generation module.This complete interactive media document lastest imformation comprises all interactive media document sign (ID), versions (Version), the document obtain manner (IMDurl) with identical Group ID.
Step 402 sends this notification message to user terminal, upgrades the interactive media document of user terminal.
As preferred embodiment, comprise the interactive media document lastest imformation relevant in this notification message with renewal, this interactive media document lastest imformation comprises the interactive media document descriptor, and in existing event type field (eventType), add the interactive media document updating type (if the event type in the notification message is for certain particular value then represent and carry the interactive media document updated information in the described notification message, can set when event type is 66 in this example, represent and carry the interactive media document updated information in the notification message).This interactive media document descriptor comprises: the change information of interactive media document sign (ID), version (Version), document obtain manner (IMDurl) and interactive media document, promptly change type (changetype), this change type comprises insertion, replaces and deletion.In described step 401, if insert an interactive media document, then include only the interactive media document information of this insertion in this notification message, and change type for inserting (Data Identification can be 0); If replace an interactive media document, then include only the interactive media document information of this replacement in this notification message, and change type for replacing (Data Identification can be 1); If delete an interactive media document, then include only the interactive media document information of this deletion in this notification message, and change type for deleting (Data Identification can be 2).
Pass through the foregoing description, in notification message, add the data volume that the field that changes type can reduce to transmit data, system end only carries the interactive media document information of change when sending a notification message, need not carry whole interactive media document information, can reduce the burden of network like this, improve efficiency of transmission.
Be illustrated in figure 5 as the present invention and upgrade interactive media document system end device embodiment schematic diagram, comprise 2 communication data generation units 501, communication unit 502.
Described communication data generation unit 501 is connected with described communication unit 502.
Described communication data generation unit 501 judges whether interactive media document upgrades, send communication unit 502 to if take place to upgrade then generate communication data according to described interactive media document lastest imformation, described communication unit 502 sends the communication data of described generation to user terminal.
Wherein, the renewal of interactive media document comprises, inserts new interactive media document, replaces certain current interactive media document or deletes certain interactive media document.
Described communication data generation unit 501 writes above-mentioned interactive media document lastest imformation at communication data, for described communication data is under the situation of business guide, described interactive media document lastest imformation comprises the interactive media document state information at least, this interactive media document state information comprises pointer version information or interactive media document updating mark information, write down the version information of interactive media document pointer in this interactive media document pointer version information, whether the interactive media document in the described business guide of this interactive media document updating mark Information sign upgrades; For described communication data is under the situation of notification message, and described interactive media document lastest imformation comprises the interactive media document identification information at least.
As preferred embodiment, described communication data generation unit 501 is the business guide generation unit, described interactive media document lastest imformation is write business guide, wherein in existing business guide interaction data burst, added interactive media document pointer version information (IMDversion) and interactive media document descriptor (InteractiveMediaDocmentInfo).This interactive media document descriptor comprises that interactive media document identifies (ID), interactive media document version information (Version), obtains the obtain manner (IMDurl) of interactive media document.
As preferred embodiment, described communication data generation unit 501 is the notification message generation unit, the lastest imformation of described interactive media document is write notification message, described interactive media document lastest imformation comprises interactive media document descriptor information (InteractiveMediaDocmentInfo), also comprise added the interactive media document updating type (if the event type in the notification message for certain particular value represent carry the interactive media document updated information in the described notification message) event type field (eventType).This interactive media document descriptor comprises: interactive media document sign (ID), version (Version), document obtain manner (IMDurl) etc.Comprise complete interactive media document lastest imformation in this notification message, this complete interactive media document lastest imformation comprises having mutually the interactive media document lastest imformation of ID on the same group.
As preferred embodiment, described notification message generation unit, described interactive media document lastest imformation is write notification message, this interactive media document lastest imformation is except comprising above-mentioned ID, Version and IMDurl, the change type (changetype) that also comprises interactive media document, this change type comprise insertion, replace and deletion.Include only in this notification message and upgrade the interactive media document lastest imformation that relates to.
By the foregoing description, by add the mode of interactive media document lastest imformation in existing communication data, little to the modification of existing system, implementation cost is low.
Be illustrated in figure 6 as the first embodiment flow chart that user terminal of the present invention upgrades interactive media document.
Step 601, the communication data that user terminal receiving system end sends over.
Step 602, described user terminal be according to the information in the described communication data, and the interactive media document of this user terminal is upgraded.
As preferred embodiment, described communication data comprises business guide or notification message.In step 602, if described communication data is a business guide, user terminal is according to the state information in the interactive media document lastest imformation in the business guide, obtain the interactive media document obtain manner in the interactive media document lastest imformation from business guide or in other burst information, the interactive media document that obtains renewal from respective server upgrades the interactive media document of this user terminal.
If described communication data is a notification message, user terminal identifies according to the interactive media document in the notification message, obtain the interactive media document obtain manner in the interactive media document lastest imformation from notification message or in other burst information, the interactive media document that obtains renewal from corresponding server address upgrades the interactive media document of this user terminal.
As preferred embodiment, after described step 601, also comprise, judge whether that according to the interactive media document lastest imformation of described communication data needs upgrade described interactive media document.For described communication data is under the situation of business guide, described interactive media document lastest imformation comprises the interactive media document state information at least, this interactive media document state information comprises interactive media document pointer version information (IMDversion) or interactive media document updating mark information, write down the version information of interactive media document pointer in this interactive media document pointer version information, this interactive media document updating mark Information sign interactive media document updated information whether; For described communication data is under the situation of notification message, and described interactive media document lastest imformation comprises the interactive media document identification information at least.
By this embodiment, user terminal can obtain the interactive media document updated information according to the communication data of system, thereby carries out the renewal of interactive media document, to keep up-to-date interactive media document.
Be illustrated in figure 7 as the second embodiment flow chart that user terminal of the present invention upgrades interactive media document.
Step 701, user terminal receive described business guide.
Step 702 judges whether the IMDversion value in the business guide changes, if inconsistent with the IMDversion version number of the business guide of this user terminal storage, then enters step 703, finishes otherwise enter step 704.
As preferred embodiment, judge whether described interactive media document updating mark information is preset value, for example be 1 and represent interactive media document to need to upgrade, if be 0 then represent interactive media document not need renewal.
Step 703, because IMDversion changes, so terminal need receive the interactive media document of renewal, user terminal is from the obtain manner of system end acquisition interactive media document to the access burst (perhaps other burst information) that user terminal sends, obtain the interactive media document of renewal according to the sign of the interactive media document in the described business guide from appropriate address, and the interactive media document behind storage update on the user terminal, deletion original interactive media document on the user terminal.
As preferred embodiment, described interactive media document lastest imformation also comprises the interactive media document descriptor, comprise interactive media document sign (ID) in this interactive media document descriptor, interactive media document version information (Version), obtain the obtain manner (IMDurl) of interactive media document, in step 703, if IMDversion changes, then determine the address of interactive media document, obtain interactive media document from corresponding address according to the sign of the interactive media document in the described business guide according to the obtain manner of the interactive media document in the interactive media document descriptor of business guide.
Step 704 finishes.
As preferred embodiment, according to the residing network environment difference of described user terminal, also has different operations in the described step 704.
In radio network, the unidirectional file transfer of radio network specific assigned (FLUTE) session transport service guide and business guide transmit describes (SGDD), and terminal is monitored this session always.After business guide changed, the file description table of FLUTE session (FDT) had been described changing unit, and terminal is upgraded changing unit by the IMDversion variation back of monitoring discovery business guide, and the IMDur1 after upgrading obtains interactive media document.
In the Internet, a kind of mode is that terminal timing inquiry business guide and/or business guide transmit version and the validity information of describing, and according to the Query Result updating business guide.Another kind of mode is that some business guide of terminal and/or business guide transmission description are set to keep update mode, if set business guide and/or business transmission are described change, server is pushed to terminal with business guide and/or the professional transmission description of upgrading.
Be illustrated in figure 8 as user terminal of the present invention and trigger method the 3rd embodiment flow chart that upgrades interactive media document, after the system end interactive media document changes, use notification message notice terminal by notification message.
System end is extended field in notification message, add complete interactive media document lastest imformation, this complete interactive media document lastest imformation comprises mutually all interactive media document lastest imformations of ID on the same group, comprise the interactive media document descriptor in this interactive media lastest imformation, in existing event type (eventType), add the interactive media document updating type, write down notification message in this event type and whether carried the interactive media document lastest imformation, this interactive media document descriptor comprises: interactive media document sign (ID), version (Version), document obtain manner (IMDurl) etc.
Step 801, user terminal receive the notification message that system end sends.
Step 802 if the event type in the notification message is the notification message of predefined interactive media document updating type, carry out step 803, and event type is defined as 66 and is the interactive media document updating type in this example; Otherwise the interactive media that jumps to step 809 end user terminal is new technological process more.
Step 803, user terminal judge whether described user terminal has and the identical interactive media document sign of interactive media document sign in the described notification message, if having then enter step 805, otherwise enter step 804.
Step 804 is obtained new interactive media document according to the document obtain manner in the interactive media document descriptor to corresponding server info, replaces former interactive media document.
As preferred embodiment, can also to the access burst that user terminal sends, obtain the obtain manner of interactive media document from system end, download described interactive media document to corresponding server.
Step 805, user terminal judges whether the version number (Version) of the interactive media document of this terminal is the same with the version number (Version) in the notification message, if the same then enter step 806, otherwise enter step 804, and with the new original interactive media document of interactive media document replacement.
Step 806, whether the next interactive media document that user terminal continues to judge this terminal is identical with interactive media document ID in the notification message, promptly return step 803, if handled all interactive media document information of carrying in the notification message then enter step 809.
Step 807, terminal will further search terminal this locality whether comprise with notification message in interactive media document have identical GroupID, but the specific interactive media document that only is present in described user terminal and does not appear in the described notification message identifies, if have above-mentioned specific interactive media document then enter step 8O8, otherwise enter step 809.
Step 808, ID is present in terminal but is not present in interactive media document in the notification message on the deletion terminal.
Step 809 finishes.
This embodiment is applicable to that server do not know the situation of terminal downloads interactive media document, just after interactive media document changes, the complete interactive media document information with identical GroupID all is carried at is issued to terminal in the notification message, terminal compares according to the interactive media document of these information and self storage, the renewal operation of inserting, replace, deleting.
By the foregoing description, the interactive media document that can keep terminal is consistent with service end, the wrong phenomenon when reducing the terminal plays interactive media.
Be illustrated in figure 9 as user terminal of the present invention and trigger method the 4th embodiment flow chart that upgrades interactive media document by notification message, after the system end interactive media document changes, use notification message notice terminal, in this notification message, do not carry the descriptor of all interactive media documents of identical GroupID, promptly this notification message only carries the interactive media document information of change, if insert an interactive media document, then include only the interactive media document information of this insertion in this notification message, and change type for inserting (Data Identification can be 0); If replace an interactive media document, then include only the interactive media document information of this replacement in this notification message, and change type for replacing (Data Identification can be 1); If delete an interactive media document, then include only the interactive media document information of this deletion in this notification message, and change type and be deletion (Data Identification can be 2), terminal determines according to these information whether needs upgrade corresponding interactive media document.
Comprise the interactive media document lastest imformation in this notification message, this interactive media document lastest imformation comprises, added the interactive media document updating type in the event type (eventType) of notification message, the value of this interactive media updating type is 66 in this example.Also added interactive media document descriptor (InteractiveMediaDocmentInfo), this interactive media document descriptor comprises: interactive media document sign (ID), change type (changeType), version (Version), document obtain manner (IMDurl) etc. wherein change type and comprise insertion, replacement, deletion.
Step 901, the user terminal receiving notice message.
Step 902 is that the notification message of predefined interactive media document updating type carry out step 903 to the event type in the notification message, and event type is defined as 66 and is the interactive media document updating type in this example; If event type is not a updating type, then jumps to step 908 and finish more new technological process of described user terminal interactive media document.
Step 903, changing type (changeType) in the interactive media document descriptor according to notification message judges, if the type that changes is for inserting new interactive media document, then enter step 904, if the type that changes is for replacing, then enter step 905, if the type that changes then enters step 906 for deletion.
Step 904, user terminal are according to document obtain manner (IMDurl) in the notification message, and the interactive media document from corresponding server acquisition assigned I D is stored in described user terminal.
Step 905, user terminal from the interactive media document of corresponding server acquisition assigned I D, are replaced the interactive media document of the corresponding ID of described user terminal storage according to document obtain manner (IMDurl) in the notification message.
As preferred embodiment, can also to the access burst that user terminal sends, obtain the obtain manner of interactive media document from system end, download described interactive media document to corresponding server.
Step 906, user terminal is deleted corresponding interactive media document according to interactive media document sign (ID) in the notification message.
Step 907, user terminal continue to find out next interactive media document descriptor in the described notification message, if next interactive media document descriptor is arranged then return step 903, otherwise enter step 908.
Step 908 finishes.
By reading the change type, when transmission interactive media document information, only carry the information of variation, need not carry whole interactive media document lastest imformations, can reduce to transmit the data volume of data like this, reduce the burden of network, improve efficiency of transmission.
For user terminal of the present invention upgrades the interactive media document device first embodiment schematic diagram, comprise communication unit 1001, reading unit 1002, updating block 1003 as shown in figure 10.
Described communication unit 1001 is connected with described reading unit 1002, and described reading unit 1002 is connected with described updating block 1003.
The Mobile Broadcast Services communication data that described communication unit 1001 receiving system ends send, by described reading unit 1002 from described communication data, obtain described interactive media document lastest imformation, described updating block 1003 upgrades the interactive media document on this user terminal according to the interactive media document lastest imformation that receives.
Wherein, the interactive media document of described updating block 1003 upgrades and comprises, inserts new interactive media document, replaces at least one current interactive media document or deletes at least one interactive media document.
Described reading unit 1002 reads above-mentioned interactive media document lastest imformation at communication data, for described communication data is under the situation of business guide, described interactive media document lastest imformation comprises more new logo of interactive media document pointer version information (IMDversion) or interactive media document at least, write down the version information of interactive media document pointer in this interactive media document pointer version information, this interactive media document is the new logo sign of having represented interactive media document whether to upgrade more; For described communication data is under the situation of notification message, described interactive media document lastest imformation comprises event type (eventType) and interactive media document identification information at least, has write down notification message in this event type and whether has carried the interactive media document lastest imformation.
As preferred embodiment, the business guide that described reading unit 1002 receives from terminal reads the interactive media document lastest imformation, described interactive media document lastest imformation comprises, the interactive media document description field, wherein in existing business guide interaction data burst, add the interactive media document pointer, interactive media document pointer version information (IMDversion), the interactive media descriptor.This interactive media document descriptor comprises that interactive media document identifies (ID), interactive media document version information (Version), obtains the obtain manner (IMDurl) of interactive media document.
Described updating block 1003 is used for the interactive media document pointer version of more described terminal and notification message, and the interactive media document that will have an inconsistent version information downloads to terminal, and original interactive media document on the deletion user terminal.
As preferred embodiment, the notification message that described reading unit 1002 receives from terminal reads the interactive media document lastest imformation, described interactive media document lastest imformation comprises the interactive media document descriptor, also be included in add in the existing event type (eventType) the interactive media document updating type (if the event type in the notification message for certain particular value represent carry the interactive media document updated information in the described notification message).This interactive media document descriptor comprises: interactive media document sign (ID), version (Version), document obtain manner (IMDurl) etc.The lastest imformation that comprises complete interactive media document in this notification message.
Described updating block 1003 is used for the interactive media document sign of more described terminal and notification message, the information such as version number of interactive media document, and the interactive media document of described user terminal is upgraded.
As preferred embodiment, described reading unit 1002 reads change type (changeType) field of the interactive media document of notification message from the change information of described interactive media document, and this change type comprises insertion, replaces and deletion.Include only in this notification message and upgrade the interactive media document lastest imformation that relates to.
Described updating block 1003 upgrades according to described change type, if insert an interactive media document, then 1003 interactive media documents that need obtain insertion from corresponding server of updating block insert this interactive media document in user terminal; If replace an interactive media document, then 1003 interactive media documents that need obtain this replacement from corresponding server of updating block are replaced and the corresponding interactive media document of this interactive media document ID on user terminal; If delete an interactive media document, then updating block 1003 finds on user terminal and deletes the corresponding interactive media document of interactive media document ID, deletes.
The interactive media document updating method of user side can upgrade accordingly corresponding to the more new data of system end, and is less to the modification of existing user terminal, realizes that cost is low.
Embodiment of the invention beneficial effect is, the embodiment of the invention can realize informing terminal interaction media document updated information with mode terminal communication by existing at system end, interactive media document on the maintenance terminal that can be real-time is consistent with system end, make user terminal the mistake of interactive media seldom occur, improve quality of services for users.And by add the mode of interactive media document lastest imformation in existing communication data, little to the modification of existing system, implementation cost is low.Can reduce to transmit the data volume of data by the field that add to change type, reduce the burden of network, improve efficiency of transmission; The interactive media document updating method of user side can upgrade accordingly corresponding to the more new data of system end, and is less to the modification of existing user terminal, realizes that cost is low.And the interactive media document that can keep terminal is consistent with service end, the wrong phenomenon when reducing the terminal plays interactive media.Change the data volume that type field can reduce to transmit data by reading, reduce the burden of network, improve efficiency of transmission.
The interactive media document updating method of user side can upgrade accordingly corresponding to the more new data of system end, and is less to the modification of existing user terminal, realizes that cost is low.And the interactive media document that can keep terminal is consistent with service end, the wrong phenomenon when reducing the terminal plays interactive media.Change the data volume that type field can reduce to transmit data by reading, reduce the burden of network, improve efficiency of transmission.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is the specific embodiment of the present invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.