CN101888395A - Method for synchronizing data, widget terminal and server - Google Patents

Method for synchronizing data, widget terminal and server Download PDF

Info

Publication number
CN101888395A
CN101888395A CN 200910107409 CN200910107409A CN101888395A CN 101888395 A CN101888395 A CN 101888395A CN 200910107409 CN200910107409 CN 200910107409 CN 200910107409 A CN200910107409 A CN 200910107409A CN 101888395 A CN101888395 A CN 101888395A
Authority
CN
China
Prior art keywords
data
widget
message
synchronization
transcoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200910107409
Other languages
Chinese (zh)
Inventor
李朋
符海芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200910107409 priority Critical patent/CN101888395A/en
Priority to PCT/CN2010/070016 priority patent/WO2010130157A1/en
Priority to EP10160683A priority patent/EP2251801A3/en
Priority to US12/766,131 priority patent/US20100293139A1/en
Publication of CN101888395A publication Critical patent/CN101888395A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The embodiment of the invention discloses a method for synchronizing data. The method comprises the following steps of: receiving a message comprising a data synchronization request; determining data needing transcoding and a transcoding rule of the data needing trascoding according to the message comprising the data synchronization request and characteristics of a widget terminal needing synchronizing; and sending the data transcoded according to the transcoding rule to the widget terminal needing synchronizing. The embodiment of the invention also provides the widget terminal and a server to extend the application range of the widget terminal.

Description

A kind of data synchronization method, widget terminal and server
Technical field
The embodiment of the invention relates to computer realm, particularly relates to a kind of data synchronization method, widget terminal and server.
Background technology
Along with developing rapidly of mobile Internet, the appearance of widget allows Internet development improve a stage again.Widget is a kind of application platform based on JavaScript, also can think a practical small tool Network Based, as can independently to move at desktop, also can think an applet.The user can enjoy business such as news reading, weather information, picture browsing by widget, certainly, enjoy these professional the time, the user must have the terminal of individual widget to support this business, this widget terminal is the terminal that the widget application program is housed, such as mobile phone widget terminal, television widget terminal or the like.When the user need enjoy business, the widget terminal was obtained professional corresponding data from the webserver.These data of obtaining are data of uploading with the widget terminal of this widget terminal same kind, that is to say, have only the widget terminal of same type can obtain these data, promptly the widget terminal of same type can realize data sync by the webserver.
The inventor is in realizing process of the present invention, find that there is following shortcoming at least in prior art: owing to have only the widget terminal of same type to realize data sync by the webserver, can not realize data sync between the dissimilar widget terminals, can limit the scope of application of widget terminal, thus the professional ability of the widget terminal of dwindling.
Summary of the invention
The embodiment of the invention provides a kind of data synchronization method, widget terminal and server, to improve the scope of application of widget terminal.
According to an aspect of the present invention, provide a kind of data synchronization method, be applied to the data sync of a plurality of dissimilar widget terminals, described method comprises:
Reception comprises the message of data synchronization request;
According to the message of described data synchronization request and need the characteristic of synchronous widget terminal determine the needs transcoding data and and the transcoding rule of the data of described needs transcoding;
To be sent to the synchronous widget terminal of described need according to the data behind the described transcoding rule transcoding.
According to a further aspect in the invention, also provide a kind of widget server that is applied to data sync, described widget server and a plurality of dissimilar widget terminals and a plurality of storage server communicate to connect, and described widget server comprises:
Synchronization control module is used to receive the message that comprises data synchronization request that described widget terminal sends, and obtain in the described request message can data in synchronization information, and obtains the characteristic of described widget terminal;
The Data Control module, be used for according to described can data in synchronization information and the characteristic of described widget terminal determine the transcoding rule of the data of the data of described synchrodata needs transcoding and described needs transcoding;
Wherein, described synchronization control module also is used for described transcoding rule is sent to described storage server, so that described storage server carries out transcoding according to described transcoding rule to the data of needs transcoding, and the data behind the transcoding is sent to described widget terminal.
According to a further aspect in the invention, also provide a kind of storage server that is applied to data sync, described storage server is connected with widget terminal and widget server communication, comprises session control module, data processing module and memory module;
Described session control module is used to receive the transcoding rule of the data in synchronization that the widget server sends and the data directory of described data in synchronization;
Described data processing module is used for obtaining described data in synchronization according to described data in synchronization index from described memory module, and according to the described data in synchronization of described transcoding rule transcoding, and the data behind the transmission transcoding are to described widget terminal.
According to a further aspect in the invention, also provide a kind of server that is applied to data sync, described server is connected with a plurality of dissimilar widget terminal communications, and described server comprises widget server and a plurality of storage server;
Described widget server is used to receive the message that comprises data synchronization request that described widget terminal sends, and according to the message of described data synchronization request with need the characteristic of synchronous widge t terminal to determine the data and the transcoding rule of needs transcoding;
Described storage server is used for the data according to the described needs transcoding of described transcoding rule transcoding, and the data behind the transmission transcoding are to the synchronous widget terminal of described need.
According to a further aspect in the invention, also provide a kind of data synchronization method, be applied to the data sync of a plurality of dissimilar widget terminals, described method comprises:
Described widget terminal sends and comprises that the message of data synchronization request is in the widget server, the message of described data synchronization request is used to make described widget server to obtain can data in synchronization information and the characteristic of described widget terminal, described can data in synchronization information and the characteristic of described widge t terminal be used for offering described widget server and determine that described synchrodata needs the data and the described transcoding rule that needs the data of transcoding of transcoding;
Described widget terminal receives the download answer message that described widget server sends;
Described widget terminal is replied request message that message sends data download to storage server according to described download, and receives the data of described storage server after according to the transcoding rule transcoding of described widget server.
According to a further aspect in the invention, also provide a kind of widget terminal that is applied to data sync, described widget terminal and widget server and a plurality of storage server communicate to connect, and comprising:
The synchronization request module, be used to send comprise data synchronization request message in described widget server, the message of described data synchronization request is used to make described widget server to obtain can data in synchronization information and the characteristic of described widget terminal, described can data in synchronization information and the characteristic of described widget terminal be used for offering described widget server and determine that described synchrodata needs the data and the described transcoding rule that needs the data of transcoding of transcoding, receive the download that described widget server sends and reply message;
The content delivery module is used for replying the request message that message sends data download according to described download, and receives the data of described storage server after according to the transcoding rule transcoding of described widget server.
The above-mentioned data synchronization method that provides, widget terminal and server are provided, according to the message of described data synchronization request and need the characteristic of synchronous widget terminal determine the needs transcoding data and and the transcoding rule of the data of described needs transcoding, data behind the transcoding are sent to the synchronous widget terminal of need, can make dissimilar Widget terminals can download the data of other dissimilar widget terminal storage, thereby improve the scope of application of Widget terminal from server.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the accompanying drawing of required use is done to introduce simply in will describing embodiment below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the overview flow chart of the method for data synchronization of the embodiment of the invention;
Fig. 2 is the data upload flow chart of the method for data synchronization of the embodiment of the invention;
Fig. 3 is that the data of the method for data synchronization of the embodiment of the invention are downloaded flow chart;
Fig. 4 is the applied environment figure of the widget system of the embodiment of the invention;
Fig. 5 is the structure chart of the widget terminal of the embodiment of the invention;
Fig. 6 is first kind of structure chart of the server of the embodiment of the invention;
Fig. 7 is second kind of structure chart of the server of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
In the present embodiment, a plurality of dissimilar widget terminals communicate with server and are connected, and this server comprises widget server and a plurality of storage server.In the present embodiment, when the user need check a data content, can check by different widget terminals, certainly, the form of these data is that this widget terminal can be supported, be understandable that, if widget terminal A is arranged, widget terminal B, widget terminal C, wherein widget terminal A can be mobile phone widget terminal, widget terminal B is the television widget terminal, widget terminal C is an automobile widget terminal, the user can pass through widget terminal A, or widget terminal B, or widget terminal C data download from storage server is checked, certainly, also can widget terminal A, or widget terminal B, or widget terminal C timing automatic data download from storage server, see again later on that for the user data of storing in the storage server are widget terminal A, widget terminal B, the data that widget terminal C uploads that is to say, widget terminal A can check the data that widget terminal B or widget terminal C upload, can be understood as, the data of uploading can be checked on different widget terminals, also can think to make the data of dissimilar widget terminal rooms can reach synchronous by server.Certainly, the user can pass through widget terminal A, or widget terminal B, or widget terminal C need ask to the widget server when checking data or uploading data.Illustrate: if mobile phone widget terminal can support picture and video data, picture or the video data uploaded of mobile phone widget terminal television widget terminal of storing in can the downloaded stored server or automobile widget terminal then.
Certainly, storage server also can place the widget server, is about to storage server as the part in the widget server.
Fig. 1 is the overview flow chart of the method for data synchronization of the embodiment of the invention.
Step S100, reception comprise the message of data synchronization request;
Step S102, according to the message of described data synchronization request with need the characteristic of synchronous widget terminal to determine the data and the transcoding rule of needs transcoding;
In this step, comprising:
Determining in the message of described data synchronization request can data in synchronization information;
According to the characteristic of the synchronous widget terminal of need and the described data of can data in synchronization information determining needs transcoding in the described data in synchronization;
According to the characteristic of the synchronous widget terminal of described need and the described transcoding rule of can data in synchronization information determining the data of described needs transcoding.
Step S104, will be sent to the synchronous widget terminal of described needs according to the data behind the described transcoding rule transcoding.
Particularly, the data that data are uploaded for other dissimilar widget terminal before the transit server sign indicating number.When uploading, server can receive the message that the widget terminal sends the data upload request, according to the essential information and the control information of the described data of described request message stores, and returns to upload and replys message to described widget terminal; Described server receives the described data that described widget terminal is uploaded.The essential information of described data comprises data name contentName, size of data contentSize, data type contentType and data format contentFormat, and described control information comprises synchronizing information syncable, precedence information priority and opening imformation open.
Particularly, the widget terminal need guarantee that this widget terminal registered at server before uploading data or data download, so described server receives the characteristic registration message that described widget terminal sends; Described server obtains the static characteristic in the described characteristic registration message, and storage, and described static characteristic comprises the resolution of widget terminal, the picture format that the widget terminal is supported, the video format that the widget terminal is supported.Simultaneously, described server receives the message that characteristic that described widget terminal sends reports request; Described server obtains the dynamic characteristic of described widget terminal, and described dynamic characteristic comprises the network access mode of widget terminal and the residual memory space of widget terminal.
More clear for the present invention is described, below data are uploaded with the data process of downloading be described in detail respectively.
Fig. 2 is the data upload flow chart of the method for data synchronization of the embodiment of the invention.
In the present embodiment, can see mutual data, need and to store by data upload to storage server separately, with the data that reach the storage server storage and the data sync of Widget terminal for making a plurality of dissimilar Widget terminals.When a plurality of widget terminals need be uploaded separately data to storage server, need to send upwards synchronization request to the widget server.Making progress synchronization request to the widget server, when if the widget terminal was used for the first time, the widget terminal need be registered at the widget server, be that the widget terminal need be in the static characteristic of widget server registration terminal, and the widget terminal also need real-time on the widget server dynamic characteristic of transmission terminal.In the present embodiment, static characteristic can comprise the resolution of picture (image) handling property, video (video) handling property and the screen (screen) of widget terminal, dynamic characteristic can comprise the network access mode and the residual memory space of widget terminal, and wherein network access mode can comprise WIFI, GPRS, 3G and bluetooth.
In the present embodiment, the widget terminal can comprise to the process that the widget server carries out the static characteristic registration:
Steps A: Widget terminal transfer characteristic registration message is to the widget server, and this characteristic registration message comprises Termination ID information and static characteristic tabulation.Wherein, the form of characteristic registration message is as follows:
Parameter Essential/optional Type Implication
??User_id Essential The String type User's identify label
??Deviceid Essential The String type Terminal models
??requestType Essential The String type DevREG, the capacity of equipment register requirement
??body Essential ??JSONObject Message body, the terminal static characteristic that register
Wherein, the form of message body is as follows:
Figure B2009101074092D0000081
Step B:Widget server receives this characteristic registration message, obtains the static characteristic in this characteristic registration message, and storage, and the message of Widget server return success is to the Widget terminal.
Step C: during as if the failure of Widget server extraction property, the message that return is defeated to Widget terminal is registered again.
For making better understanding, illustrate:
The registration message that the Widget terminal sends is: { " userid ": " 13421802457 "; " deviceid ": " Nokia N95 "; " requestType ": " devREG "; " body ": screen-resolution ": " 320*240 ", " image ": [" jpeg ", " gif ", " png "], " video ": [" 3GP ", " mpeg4 ", " flash "] } };
When Widget server operation success, the message of returning is:
{“type”:”success”,”body”:{}}
When the Widget server operation was failed, the message of returning was:
{“type”:”error”,”body”:{“errorCode”:”NE”}}。
In the present embodiment, if Event triggered is arranged on the widget terminal, such as on the widget terminal, having downloaded data, or deleted the variation that data have caused residual memory space, or the mode that inserts of terminal is when changing, and the widget terminal needs the dynamic characteristic of real-time report widget terminal.In this implementation column, the process of widget terminal to report can comprise:
Step D:widget terminal transfer characteristic reports the message of request to the widget server.Wherein, this characteristic reports the message of request to comprise the network access mode of terminal and the residual memory space of terminal, i.e. dynamic characteristic.
Wherein, it is as follows that characteristic reports the form of message of request:
Parameter Essential/optional Type Implication
??User_id Essential The String type User's identify label
??Deviceid Essential The String type Terminal models
??requestType Essential The String type DevREG, capacity of equipment reports request
??body Essential ??JSONObject Message body, the terminal dynamic characteristic that register
Wherein, the form of message body is as follows:
Figure B2009101074092D0000091
Step e: the widget server receives the message that this characteristic reports request, obtains dynamic characteristic, and storage, and the message of Widget server return success is to the Widget terminal.
Step F: when extracting the dynamic characteristic failure as if the Widget server, the message that return is defeated to Widget terminal is registered again.
For the embodiment of the invention is better understood, illustrate:
The characteristic that the Widget terminal sends reports the message of request to be:
{“userid”:“13421802457”,”deviceid”:”Nokia?N95”,”requestType”:”devREP”,”body”:{“storage”:10M,“Access”:“GPRS”}
When Widget server operation success, the message of returning is:
{“type”:”success”,”body”:{}}
When the Widget server operation was failed, the message of returning was:
{“type”:”error”,”body”:{“errorCode”:”NE”}}。
Finish the process of registration when the Widget terminal after, in the time of need uploading data to storage server as if the Widget terminal, transmission comprises that the message of data upload request is to the Widget server.
Step S200, the Widget terminal sends and comprises that the message of data upload request is to the Widget server.In the present embodiment, the message that the widget terminal can the request of timed sending data upload sends the message of data upload request to the widget server to the widget server in the time of also can working as the operational order that receives the user.Certainly, also can act on behalf of the widget terminal of mentioning among the step S200, transmit the message of this widget terminal data upload request by other terminal as the agency.Certainly, this message also can be expanded, and promptly can also comprise other information.Wherein, the form of the message of data upload request can be as follows:
Figure B2009101074092D0000101
The form of message body can be as follows:
In the present embodiment, also can represent the data sync uploaded with 1, represent that with 0 the data of uploading are asynchronous Syncable, certainly, also can be synchronous or asynchronous with its word letter or data or symbolic representation.In like manner, Open can cannot not represented openly with 1 yet, represent with 0 open, certainly, also can with its word letter or data or symbolic representation be open or open.
Sub for example: this request message is:
{“userid”:“13421802457”,“deviceid”:“Nokia?N95”,
“requestType”:“upload”,
“body”:{
“content”:[
{“contentName”:”calendar”,“contentsize”:1024,“conte
ntType”:“PIM”,“priority”:0,”expire”:3600},
{“contentName”:“SMS”,“contentsize”:1024,
“contentType”:”PIM”,”priority”:1,”expire”:3600}
]
}
}
Step S202, the Widget server has judged whether idle Session Resources.If judge that execution in step S204 if judge when not having the idle session resource, then returned error code, and end operation when idle Session Resources was arranged.In the present embodiment, judge whether that idle Session Resources is to judge whether the current state of storage server is in busy state, or whether the memory space of storage server is full, or the capacity of judging the data that terminal is uploaded exceeded the remaining capacity of storage server, or judges whether the session number of storage server and Widget terminal has reached maximum.When wherein any one condition did not satisfy, then explanation did not have the idle session resource.In the present embodiment, this step is not limited to adopt prior art.
Step S204, the essential information and the control information of Widget server stores data.In the present embodiment, also for need a corresponding data directory contentlist being set for these data.In the present embodiment, the essential information of data comprises contentName, contentSize, contentType and contentFormat.Control information comprises syncable, priority and open.Each data all has a data index.
Behind execution of step S204, execution in step S206, Widget server send to upload and reply message to the Widget terminal, and the concurrent biography of serving verifies that message and data directory are to storage server.Wherein, upload checking message and comprise sessionkey and contentSize, this is uploaded and replys message and comprise session key (sessionkey) and data upload address, and this data upload address is the address of the storage server uploaded.This uploads the form of replying message can be as follows:
Parameter Essential/optional Type Implication
??Type Essential The String type Upload answer type of message: uploadResp
??body Essential ??JSONObject Message body, the upload session distribution list
The form of message body can be as follows:
Parameter Essential/optional Type Implication
??ContentName Essential The String type Upload the title of data
??Sessionkey Essential The String type Session control information
??url Essential The String type The data upload address
Son for example: this is uploaded and replys message and be:
Response:
{“type”:“uploadResp”,
“body”:{
“session”:
[
{“contentName”:“calendar”,
“sessionKey”:“abcve123456”,“url”:
“http://cloud/upload1.servlet”},
{“contentName”:“SMS”,“sessionKey”:
“abcve123457”,“url”:”http://cloud/upload2.servlet”}
]
}
}
Step S206, the Widget terminal is uploaded the request message of data to storage server according to uploading the transmission of answer message.In this implementation column, this request message of uploading data comprises sessionkey.In the present embodiment, the Widget terminal sends the request message of uploading data according to uploading the data upload address of replying in the message.
Step S208, storage server judge whether this request message is legal.In the present embodiment, this is uploaded the sessionkey of request message of data and the sessionkey that uploads in the checking message that the Widget server issues compares, if identical, this request message is legal, then execution in step S210.If inequality, end operation then.
Step S210, Widget server return legal definite message to the Widget terminal.
Step S212, the Widget terminal is uploaded data to storage server.
Step S214, storage server judge whether the size of the data that receive is identical with the contentSize that uploads in the checking message that the Widget server sends.If identical, execution in step S216 then.If inequality, then cancel storage operation.
Step S216, storage server store this data that receive, and the message of return success is to the Widget terminal.In the present embodiment, storage server is related with one in the data work that receives with the data directory of these data, stores the convenient follow-up data that can read needs according to this data directory again.
The method for synchronous that the embodiment of the invention provides, dissimilar Widget terminals can regularly be stored data upload to storage server separately, data with the data that reach the Widget terminal and storage server keep synchronously, promptly guarantee the data that have on the Widget terminal, also can find on the storage server, promptly can realize the data of server sync in the Widget terminal.
Fig. 3 is that the data of the method for data synchronization of the embodiment of the invention are downloaded flow chart.
In the present embodiment, when the user need watch the data of storing on the storage server by the Widget terminal, perhaps, Widget terminal timing automatic data download from storage server, see again later on for the user, need to send and comprise that the message of data synchronization request is to the Widget server, and then download needed data from storage server, thereby reach the data sync of the data of Widget terminal and storage server storage, thereby can realize that just the data that a widget terminal is watched and the data of another widget terminal reach synchronous.Certainly, the widget terminal is to select self can to support to check the data of form, can not select self can not to support the data format of seeing.Certainly, this message can also comprise other information, does not limit.
Certainly, when this widget terminal can be by other widget proxy terminal, transmit request message as for the widget server, as long as this widget proxy terminal is when sending this request message, carrying in request message needs synchronous widget terminal information, informs that promptly the widget server is which widget terminal needs synchronously.
Step S300, the widget terminal sends and comprises that the message of data synchronization request is to the widget server.In the present embodiment, the widget terminal can timed sending comprise that the message of data synchronization request is to the widget server, send in the time of also can working as the operational order that receives the user and comprise that the message of data synchronization request is to widge t server, wherein, the form of the message of data synchronization request can be as follows:
Wherein, the form of message body comprises the condition field, and the form of condition field is as follows:
Figure B2009101074092D0000142
Sub for example: this request message is:
{“userid”:“13421802457”,“deviceid”:“Nokia?N95”,
“requestType”:“Sync”,
“body”:{
“condition”:{
“contentTypelist”:[“PIM”,“Image”]
}
}
}
Step S302, the Widget server has judged whether idle Session Resources.If judge that execution in step S304 if judge when not having the idle session resource, then returned error code, and end operation when idle Session Resources was arranged.
Step S304, the Widget server obtains request data in synchronization information according to the contion field in the message that comprises data synchronization request, and determining according to the control information of these data of storing can data in synchronization information in the request data in synchronization information again.In the present embodiment, according to the content acquisition request data in synchronization information of the contentTypelist of condtion field, determine according to the syncable information in the control information of this data of storage whether these data can be synchronous again.In the present embodiment, obtain request data in synchronization information and be meant and need which data synchronously in this request message, may comprise the synchronous picture of needs, video etc.Determine and data in synchronization information to be meant that definite above-mentioned which data of the data message that obtains are can be synchronous.
Step S306, the Widget server can data in synchronization information obtains the data directory contentindex of this synchrodata according to this.
Step S308, Widget server need in this synchrodata to determine the data of transcoding according to the characteristic and the data in synchronization information of the synchronous Widget terminal of this request.In the present embodiment, because different Widget terminal, its terminal capabilities characteristic may be different, such as, the characteristic of the processing picture between the Widget terminal is different, the characteristic of Video processing is different, the display characteristic performance of screen is different, therefore, just needs the process that can mate, that is, make the Widget terminal of download check data downloaded by the characteristic of this Widget terminal.In the present embodiment, the Widget server obtains the essential information of this synchrodata of storage and the characteristic of this Widget terminal is mated, can think the essential information of synchrodata and the static characteristic of this widget terminal are mated, if coupling is inequality, determine that then described data are the data that need transcoding.
Such as, when this synchrodata is picture and video, just need obtain the contenttype and the contentFormat of this synchrodata, owing to be picture and video, need the resolution of the picture of demonstration; Obtain the resolution information of this Widget terminal, handle the format information and the video format information of picture, if picture format, or video format, or resolution is different, and that just need carry out transcoding to synchrodata, also can think to carry out data transaction.
Step S310, Widget server determine the transcoding rule of the data of this needs transcoding according to the characteristic of this data in synchronization information and widget terminal.In the present embodiment, this transcoding rule is the rule that current this synchrodata is converted to the data format that the Widget terminal of obtaining this synchrodata can support, can comprise the rule that enlarges or dwindle resolution, or the rule of conversion picture format, or the rule of converting video form.Illustrate, if the current data message that needs synchrodata is that the form of the picture that comprises is jpg, the resolution of picture is 1024*768, the characteristic of this Widget terminal is: the form of handling picture is png, the resolution of screen is 240*320, and then the transcoding rule is tans:[" jpg ", " png "], zoom:[" 1024*768 ", " 240*320 "].
Step S312, Widget server send to download and reply message to the Widget terminal, and the Widget server sends synchronous checking message to storage server.In the present embodiment, verify that synchronously message comprises: sessionkey, contentSize, contentindex, transcoded data rule.Such as: " sessionkey ": " asdff1236 ", " contentSize ": 10240, " contentIndex ": " abc123 ", " trans ": [" jpg ", " png "] }.
This downloads the form of replying message can be as follows:
Parameter Essential/optional Type Implication
??Type Essential The String type Reply type of message: yncContent synchronously
Parameter Essential/optional Type Implication
??body Essential ??JSONObject Message body, the synchrodata tabulation
The form of this message body can be as follows:
Illustrate: downloading answer message is:
{“type”:“SyncContent”,
“body”:{
“session”:
[
{“contentIndex”:“abc123”,“sessionKey”:“abcve123”,“
ur1”:“http://cloud/download1.servlet”},
{“contentIndex”:“abc456”,“sessionKey”:
“abcve456”,“url”:”http://cloud/download2.servlet”}
]
}
}
Step S314, the Widget terminal sends the request message of data download to storage server according to downloading answer message.In the present embodiment, the request message of this data download comprises sessionkey and contentindex.The Widget terminal is according to downloading the data download address of replying in the message sends request message from data download to storage server.The data download address is the address of the storage server of data download.
Step S316, storage server judge whether this request message is legal.In the present embodiment, sessionkey and contentindex in the synchronous checking message that the sessionkey of the request message of this data download and contentindex and Widget server are issued compare, if identical, this request message is legal, then execution in step S316.If inequality, end operation then.
Step S318, storage server obtains this Widget terminal needs data downloaded according to synchronous checking message.In the present embodiment, verify synchronously that according to this contentindex in message obtains the data of this contentindex correspondence, and the data of this needs transcoding are carried out transcoding according to the transcoded data rule in the synchronous checking message.
Step S320, with the data distributing behind this transcoding to the Widget terminal.
The method for synchronous that the embodiment of the invention provides, dissimilar Widget terminals can be regularly from the storage server data download, data with the data that reach storage server and Widget terminal keep synchronously, promptly guarantee on the Widget terminal, to find the data that have on the storage server; When dissimilar Widget terminals need be downloaded other Widget terminals and uploads data on storage server, the Widget server obtains data in synchronization information earlier, determining according to the control information of these data can data in synchronization information again, and according to the characteristic of Widget terminal with can data in synchronization information determine the data of needs transcoding, and to can data in synchronization determining the transcoding rule, by storage server data are carried out transcoding, thereby can check mutually with the data that realize dissimilar Widget terminals, and the data that the Widget terminal is uploaded are downloaded to dissimilar Widget terminals, can realize that the Widget terminal synchronizes is in data in server.
Fig. 4 is the applied environment figure of the widget system of the embodiment of the invention.
In the present embodiment, the widget system comprises widget endpoint groups 1 and the server 2 that a plurality of dissimilar widget terminals are formed.In the present embodiment, server 2 comprise widget server 20, first storage server 21, second storage server 22 ..., N storage server 2N.Certainly, this storage server also can place widget server 20, is about to storage server as the part in the widget server.Widget endpoint groups 1 comprise a widget terminal 11, the 2nd widget terminal 12 ..., Nwidget terminal 1N, such as, the one widget terminal 11 can be mobile phone widget terminal, the 2nd widget terminal 12 can the television widget terminal, and the 3rd widget terminal 13 can be automobile widget terminal or the like.In the present embodiment, the user can by a widget terminal 11 check the 2nd widget terminal 12 ..., the data on the Nwidget terminal 1N, at this moment, at first, the 2nd widget terminal 12 ..., Nwidget terminal 1N need store data upload separately in server 2, a widget terminal 11 is downloaded from server 2 and is wanted the data seen.Certainly, a widget terminal 11 also can be downloaded all data from server 2 automatically, and when treating that the user wants to see, the user directly sees on a widget terminal 11.Be understandable that, widget terminal general data upload separately is to server, other widget terminals can be from the server data download, thereby make the widget terminal can have the data of other widget terminals, also can think to make the data of dissimilar widget terminal rooms can reach synchronous by server.Can think that also synchronous process is divided into the upwards synchronous and server of widget terminal to server to the downward synchronous process of widget terminal, thereby make the widget terminal can not be subjected to the restriction of type, finally can enlarge the scope of application of widget terminal and the professional ability of widget terminal.
Widget server 20 is used to receive the message of the data synchronization request that described widget terminal sends, obtain the characteristic of synchrodata information, data in synchronization index and the described widget terminal of described request message correspondence, determine the data of needs transcoding in the described synchrodata and the transcoding rule of described needs transcoding according to the synchrodata information of described request message correspondence and the characteristic of described widget terminal.
First storage server 21, second storage server 22 ..., N storage server 2N is used for obtaining according to described data in synchronization index the described data in synchronization of storage, and according to the described data in synchronization of described transcoding rule transcoding, and the data in synchronization behind the transmission transcoding is to described widget terminal.
Fig. 5 is the structure chart of the widget terminal of the embodiment of the invention.
Though the widget endpoint groups is dissimilar widget terminal, it all has identical basic structure.In the present embodiment, be that example describes with a widget terminal 11 and first storage server 21.
In the present embodiment, a widget terminal 11 comprises administration module 110, performance Registering modules 111, performance reporting module 112, synchronization request module 113, data transmission module 114, subscriber interface module 115 and timer 116.
When a widget terminal 11 was used for the first time, a widget terminal 11 need be carried out the performance registration on widget server 20.In the present embodiment, administration module 110 is used for when detecting the widget terminal and open for the first time, sends registration notification to performance Registering modules 111.Performance Registering modules 111 is used for when receiving the registration notification that administration module 110 sends, and the transfer characteristic registration message is to widget server 20.This characteristic registration message comprises Termination ID information and characteristic list information.Administration module 110 also is used for after the message that succeeds in registration that receives the transmission of widget server, and whether event occurs to detect the widget terminal.In the present embodiment, this incident is a widget terminal downloads data event, or deleted data causes the incident of the variation of residual memory space, or the incident that changes of the mode that inserts of terminal.Administration module 110 also is used for when Event triggered, promptly the widget terminal downloads data, or deleted data caused the variation of residual memory space, or the mode that terminal inserts changes, and sends to report and notifies to performance reporting module 112.Performance reporting module 112 be used for when receive that administration module 110 sends report notice the time, transfer characteristic reports the message of request to widget server 20.Wherein, this characteristic reports the message of request to comprise the network access mode of terminal and the residual memory space of terminal.
Administration module 110 also is used for after receiving the message that succeeds in registration, and notice subscriber interface module 115 and timer 116 can normally use.
Subscriber interface module 115 is used to receive user's operation information.This operation information can be the operational order of synchrodata.When subscriber interface module 115 receives the operational order of synchrodata, triggering synchronous request module 113.In the present embodiment, timer 116 is used for regularly triggering synchronous request module 113.In the present embodiment, can the triggering synchronous request module 113 send the synchronous request message that makes progress, promptly upload data, also can triggering synchronous request module 113 send the message of data synchronization request, promptly from the server data download to server.
First kind of situation: synchronization request module 113 is used for when receiving the triggering command that makes progress synchronous, sends and makes progress synchronous request message to Widget server 20.When Widget server 20 is used to receive the request message that makes progress synchronous, judged whether idle Session Resources, if judge when idle Session Resources is arranged, the essential information and the control information of storage data, and return to upload and reply message to synchronization request module 113, and checking message to the first storage server 21 is uploaded in transmission.Upload checking message and comprise sessionkey and contentSize, upload answer message and comprise session key (sessionkey) and data upload address.
Synchronization request module 113 is used to also to receive that Widge t server 20 sends uploads when replying message notification data transport module 114.
Data transmission module 114 is used for sending request message to the first storage server 21 of uploading data according to the answer message of uploading that synchronization request module 113 receives.In the present embodiment, data transmission module 114 sends request message to the first storage server 21 of uploading data according to uploading the data upload address of replying in the message.This request message of uploading data comprises sessionkey.
Whether first storage server 21 is used for according to the request message of uploading data of uploading 114 transmissions of checking message validate data transmissions module of Widget server 20 transmissions legal.In the present embodiment, this is uploaded the sessionkey of request message of data and the sessionkey that uploads in the checking message that the Widget server issues compares, if identical, this request message is legal.First storage server 21 also is used for when the request message of uploading data of judgment data transport module 114 transmissions is legal, sends and determines that message is to data transmission module 114.
Data transmission module 114 also is used for when receiving definite message of first storage server, 21 transmissions, data to the first storage server 21 that transmission need be uploaded.
First storage server 21 is used for also judging whether the size of the data that receive is identical with the contentSize that uploads checking message that Widget server 20 sends.If identical, first storage server, 21 these data of uploading of storage, and the message of return success is to data transmission module 114.
Second kind of situation: synchronization request module 113 also is used for when receiving the triggering command of data sync, sends to comprise that the message of data synchronization request is to widget server 20.When widget server 20 is used for after defining the idle session resource, obtain request data in synchronization information according to the contion field in the message that comprises data synchronization request, determining according to the control information of these data of storing can data in synchronization information again.Widget server 20 also is used for can data in synchronization information obtaining this data in synchronization index according to this, and determines the content and the transcoding rule of needs transcoding in this synchrodata according to the characteristic of the synchronous Widget terminal of this request and this data in synchronization information.Widget server 20 also is used for after definite transcoding rule, sends to download to reply message to synchronization request module 113, and sends checking message to the first storage server 21 synchronously.
Data transmission module 114 also is used for replying request message to the first storage server 21 that message sends data download according to the download that synchronization request module 113 receives.
First storage server 21 is used to also judge whether the request message of this data download is legal, after legal, obtains this Widget terminal needs data downloaded according to synchronous checking message.In the present embodiment, sessionkey and contentindex in the synchronous checking message that the sessionkey of the request message of this data download and contentindex and Widget server issue compare, if identical, this request message is legal.First storage server 21 also is used for obtaining according to the contentindex, the contentsize that are somebody's turn to do synchronous checking message the data of this contentindex correspondence, and according to the transcoded data rule in the synchronous checking message these data is carried out transcoding.First storage server 21 also is used for the data behind the transcoding are sent data transmission module 114.
Data transmission module 114 also is used to receive the data that first storage server 21 sends.
The Widget terminal of the embodiment of the invention, dissimilar Widget terminals all have identical construction module, the performance of this widget terminal of registration on the widget server, to inform later which data synchronously of this terminal of widget server, and this terminal can regularly be stored data upload to storage server separately, data with the data that reach the Widget terminal and storage server keep synchronously, promptly guarantee the data that have on the Widget terminal also to find on the storage server; Dissimilar Widget terminals can be regularly from the storage server data download, keeps synchronous with the data of the data that reach storage server and Widget terminal, promptly guarantees to find the data that have on the storage server on the Widget terminal.When dissimilar Widget terminals need be downloaded other Widget terminals and uploads data on storage server, the Widget server obtains data in synchronization information earlier, determining according to the control information of these data can data in synchronization information again, and according to the characteristic of Widget terminal with can data in synchronization information determine the data of needs transcoding, and to can data in synchronization determining the transcoding rule, by storage server data are carried out transcoding, thereby can reach synchronous by server with the data that realize dissimilar Widget terminals, thereby make the widget terminal can not be subjected to the restriction of type, finally can enlarge the scope of application of widget terminal and the professional ability of widget terminal.
Fig. 6 is first kind of structure chart of the server of the embodiment of the invention.
In the present embodiment, Widget server 20 comprises performance management module 200, performance database 201, data message storehouse 202, synchronization control module 203, session management module 204, data management module 205.First storage server 21 comprises session control module 210, memory module 211.
In the present embodiment, performance management module 200 is used for the characteristic registration message that receptivity Registering modules 111 sends, obtain Termination ID information and characteristic list information in this characteristic registration message, and be stored in performance database 201, and return the message that succeeds in registration to performance Registering modules 111.Performance management module 200 also is used for the message that characteristic that receptivity reporting module 112 sends reports request, obtains the network access mode of the terminal in the message that this characteristic reports request and the residual memory space of terminal, and is stored in performance database 201.
When synchronization control module 203 was used to receive the request message that makes progress synchronous of synchronization request module 113 transmissions, announcement session administration module 204 was this terminal distribution Session Resources.
Session management module 204 is used for when definite first storage server 21 has idle Session Resources, for sending the terminal distribution Session Resources of this synchronous request message that makes progress, promptly send session key (sessionkey) and data upload address to synchronization control module 203.
Synchronization control module 203 also is used for when session key (sessionkey) that receives session management module 204 transmissions and data upload address, notification data administration module 205.
Data management module 205 is used for obtaining the essential information and the control information of the data of this synchronous request message that makes progress, and is stored in data message storehouse 202, also for data a data index is set simultaneously.
Synchronization control module 203 is used for after data management module 205 obtains the essential information and control information of these data, transmission is uploaded and is replied message to synchronization request module 113, the concurrent session control module 210 that passes in checking message to the first storage server 21 of serving.
Session control module 210 in first storage server 21 is used to receive that the request message of uploading data that data transmission module 114 sends and synchronization control module 203 send uploads checking message, and whether the request message of uploading data that validate data transmissions module 114 sends is legal.In the present embodiment, this is uploaded the sessionkey of request message of data and the sessionkey that uploads in the checking message that the Widget server issues compares, if it is identical, this request message is legal, and send definite message to data transmission module 114, the concurrent contentSize that passes in the checking message of serving is to memory module 211, and notice memory module 211 prepares to receive the data of data transmission modules 114 transmission.
Memory module 211 is used to receive the data of data transmission module 114 transmission, and whether the size of judging the data that receive is with to upload the contentSize that verifies in the message identical.Identical, store received data, and the message of return success is to data transmission module 114.
The server that the embodiment of the invention provides, server receives the data that dissimilar Widget terminals is uploaded, thereby guarantees the data that the Widget terminal has, and also can find at server, promptly can realize the data of server sync in the Widget terminal.
Fig. 7 is second kind of structure chart of the server of the embodiment of the invention.
In the present embodiment, Widget server 20 comprises performance management module 200, performance database 201, data message storehouse 202, synchronization control module 203, session management module 204, data management module 205, performance calling module 206 and Data Control module 207.First storage server 21 comprises session control module 210, memory module 211 and data processing module 212.
Session management module 204 also is used for when definite first storage server 21 has idle Session Resources, terminal distribution Session Resources for the message that sends this data synchronization request promptly sends session key (sessionkey) and data download address to synchronization control module 203.
Synchronization control module 203 also is used for when session management module 204 defines the idle session resource, notification data administration module 205.
Data management module 205 also is used for obtaining request data in synchronization information according to the contion field that comprises the message of data synchronization request, and determine according to the control information of this data of storage can data in synchronization information, and can data in synchronization information obtain this data in synchronization index from data message storehouse 202 according to this.
Synchronization control module 203 also is used to receive data in synchronization index and the data in synchronization information that data management module 205 sends, and notice performance calling module 206.
Performance calling module 206 is used for obtaining the characteristic of the corresponding Widget terminal of this request according to this request from performance database 201, and is sent to synchronization control module 203.
Data Control module 207 is used for characteristic and the data in synchronization information according to the synchronous Widget terminal of the request of synchronization control module 203 transmissions, determines that this synchrodata needs the data and the transcoding rule of transcoding.
Synchronization control module 203 sends to download and replys message to synchronous transfer mode 113 after also being used to receive the transcoding rule that Data Control module 207 determines, and sends the session control module 210 in checking message to the first storage server 21 synchronously.In the present embodiment, verify that synchronously message comprises: sessionkey, contentSize, contentindex and transcoded data rule.Download answer message and comprise data download address, sessionkey and contentindex.
Data transmission module 114 also is used for replying message according to the download that synchronous transfer mode 113 receives and sends the request message of data download to session control module 210.The request message of this data download comprises sessionkey and contentindex.
Session control module 210 is used to also judge whether the request message of this data download can method.In the present embodiment, sessionkey and contentindex in the synchronous checking message that the sessionkey of the request message of this data download and contentindex and Widget server are issued compare, if identical, this request message is legal.In the present embodiment, when judging that this request message is legal, contentindex, contentsize in the synchronous checking of the transmission message and transcoding rule are to data processing module 212.
Data processing module 212 is used for according to verifying the contentindex of message and contentsize obtains this contentindex correspondence from memory module 211 data synchronously, and these data are carried out transcoding, and send data behind the transcoding to data transmission module 114 according to the transcoding rule.
The server that the embodiment of the invention provides, when dissimilar Widget terminals need be downloaded other Widget terminals and uploads data on storage server, the Widget server obtains data in synchronization information earlier, determining according to the control information of these data can data in synchronization information again, and and according to the characteristic of Widget terminal with can data in synchronization information determine the data of needs transcoding, and to can data in synchronization determining the transcoding rule, by storage server data are carried out transcoding, thereby can check mutually with the data that realize dissimilar Widget terminals, and the data that the Widget terminal is uploaded are downloaded to dissimilar Widget terminals, can realize that the Widget terminal synchronizes is in data in server, thereby make the widget terminal can not be subjected to the restriction of type, finally can enlarge the scope of application of widget terminal and the professional ability of widget terminal.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be dish, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
It should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not limit it, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that: it still can make amendment or be equal to replacement technical scheme of the present invention, and these modifications or be equal to replacement and also can not make amended technical scheme break away from the spirit and scope of technical solution of the present invention.

Claims (25)

1. a data synchronization method is characterized in that, is applied to the data sync of dissimilar widget terminals, and described method comprises:
Reception comprises the message of data synchronization request;
According to the message of described data synchronization request and need the characteristic of synchronous widget terminal determine the needs transcoding data and and the transcoding rule of the data of described needs transcoding;
To be sent to the synchronous widget terminal of described need according to the data behind the described transcoding rule transcoding.
2. method according to claim 1 is characterized in that, described message according to described data synchronization request determines that with the characteristic that needs synchronous widget terminal the data of needs transcoding and the step of transcoding rule comprise:
Determining in the message of described data synchronization request can data in synchronization information;
According to the characteristic of the synchronous widget terminal of need and the described data of can data in synchronization information determining needs transcoding in the described data in synchronization;
According to the characteristic of the synchronous widget terminal of described need and the described transcoding rule of can data in synchronization information determining the data of described needs transcoding, wherein, described transcoding rule is the rule that the described data that need transcoding is converted to the data format that the synchronous Widget terminal of described need supports.
3. method according to claim 2 is characterized in that, step that can data in synchronization information in the described message of determining described data synchronization request comprises:
Obtain request data in synchronization information according to described request message;
Determining according to the control information of described data message can data in synchronization information in the described request data in synchronization information.
4. method according to claim 2 is characterized in that, the described message of data synchronization request that comprises comprises lists of data types, and described obtaining according to described request message asks the step of data in synchronization information to comprise:
Obtain described request data in synchronization information according to described lists of data types.
5. method according to claim 2 is characterized in that, described according to the synchronous widget terminal of need characteristic and describedly can data in synchronization information determine that the step of the data of needs transcoding in the described data in synchronization comprises:
Obtain described can data in synchronization information data format and the characteristic of described widget terminal mate, wherein, described characteristic comprises the resolution of widget terminal, the picture format that the widget terminal is supported, the video format that the widget terminal is supported;
If coupling is inequality, determine that described data are the data that need transcoding.
6. a widget server that is applied to data sync is characterized in that, described widget server and a plurality of dissimilar widget terminals and a plurality of storage server communicate to connect, and described widget server comprises:
Synchronization control module is used to receive the message that comprises data synchronization request that described widget terminal sends, and obtain in the described request message can data in synchronization information, and obtains the characteristic of described widget terminal;
The Data Control module, be used for according to described can data in synchronization information and the characteristic of described widget terminal determine the transcoding rule of the data of the data of described synchrodata needs transcoding and described needs transcoding;
Wherein, described synchronization control module also is used for described transcoding rule is sent to described storage server, so that described storage server carries out transcoding according to described transcoding rule to the data of needs transcoding, and the data behind the transcoding is sent to described widget terminal.
7. widget server according to claim 6 is characterized in that, also comprises:
Performance management module, be used to receive the characteristic registration message that described widget terminal sends, obtain the static characteristic in the described characteristic registration message, described static characteristic comprises the resolution of widget terminal, the picture format that the widget terminal is supported, the video format that the widget terminal is supported;
Performance database is used to store the static characteristic that described performance management module is obtained.
8. widget server according to claim 6, it is characterized in that, described performance management module also is used for the message that characteristic that described widget terminal sends reports request, obtain the dynamic characteristic of described widget terminal, described dynamic characteristic comprises the network access mode of widget terminal and the residual memory space of widget terminal; Described performance database also is used to store described dynamic characteristic.
9. widget server according to claim 6, it is characterized in that, described synchronization control module also be used to obtain can data in synchronization information correspondence the data in synchronization index, and described data in synchronization index is sent to described storage server, described data in synchronization index is used to described storage server to obtain corresponding data according to described data in synchronization index.
10. widget server according to claim 6 is characterized in that, also comprises:
Described synchronization control module also is used to receive the message that described widget terminal sends the data upload request;
Data management module is used for obtaining the essential information and the control information of data of the message of described data upload request;
The data message storehouse be used to store the essential information and the control information of described data, and described data is provided with data directory.
11. widget server according to claim 10 is characterized in that, also comprises:
Data management module, be used for obtaining request data in synchronization information according to the described request message that described synchronization control module sends, determining in the described request data in synchronization information according to the control information of the described data of described data message library storage can data in synchronization information and can data in synchronization information obtain corresponding data in synchronization index according to described;
The performance calling module is used for obtaining from described performance database according to the described request message that described synchronization control module sends the characteristic of described widget terminal;
Described synchronization control module also is used to receive data in synchronization information and the described data in synchronization index that described data management module sends, and the characteristic of the described widget terminal of described performance calling module transmission.
12. widget server according to claim 10, it is characterized in that, described Data Control module also is used for the static characteristic of described data in synchronization information and described widget terminal is mated, if coupling is inequality, determine that described data are the data that need transcoding, determine the transcoding rule according to the data of described needs transcoding, wherein said transcoding rule is the rule that described data is converted to the data format that the Widget terminal of described data supports.
13. a storage server that is applied to data sync is characterized in that, described storage server is connected with widget terminal and widget server communication, comprises session control module, data processing module and memory module;
Described session control module is used to receive the transcoding rule of the data in synchronization that the widget server sends and the data directory of described data in synchronization;
Described data processing module is used for obtaining described data in synchronization according to described data in synchronization index from described memory module, and according to the described data in synchronization of described transcoding rule transcoding, and the data behind the transmission transcoding are to described widget terminal.
14. storage server according to claim 13, it is characterized in that, described session control module also is used to receive described widget server and sends the request message of uploading data of uploading checking message and the transmission of described widget terminal, and determine according to the described session key of checking in the message of uploading whether described request message is legal, the described checking message of uploading comprises session key and the size of uploading data, and described request message comprises session key and uploads the size of data.
15. storage server according to claim 14 is characterized in that, described session control module also is used for determining that described request message is legal when the described session key of uploading checking message is identical with session key in the described request message;
Described memory module also is used for when described request message is legal, receive the data of uploading of described widget terminal transmission, and determine whether to store the data that received according to the size of uploading data and the described size of uploading data of checking in the message of uploading, when according to the size of uploading data with described upload in the checking message upload data big or small identical the time, store the data that received.
16. storage server according to claim 14, it is characterized in that, described session control module also is used to receive the request message of the data download that described widget terminal sends, and receiving the session key of the request message correspondence of the described data download that described widget server sends, the request message of described data download comprises session key and data in synchronization index.
17. storage server according to claim 14, it is characterized in that, described session control module also is used for comparing according to the session key and the data in synchronization index of the session key of the request message of described data download and data in synchronization index and the transmission of described widget server, whether the request message of determining described data download is legal, if when identical, determine that the request message of described data download is legal.
18. storage server according to claim 14, it is characterized in that, when the request message that described data processing module also is used for determining described data download when described session control module is legal, obtain described data in synchronization according to described data in synchronization index from described memory module, and according to the described data in synchronization of described transcoding rule transcoding, and the data behind the transmission transcoding are to described widget terminal, and wherein said transcoding rule is the rule that described data is converted to the data format that the Widget terminal of described data supports.
19. a server that is applied to data sync is characterized in that, described server is connected with a plurality of dissimilar widget terminal communications, and described server comprises widget server and a plurality of storage server;
Described widget server is used to receive the message that comprises data synchronization request that described widget terminal sends, and according to the message of described data synchronization request with need the characteristic of synchronous widget terminal to determine the data and the transcoding rule of needs transcoding;
Described storage server is used for the data according to the described needs transcoding of described transcoding rule transcoding, and the data behind the transmission transcoding are to the synchronous widget terminal of described need.
20. server according to claim 19, it is characterized in that, described widge server also is used to obtain the data in synchronization index of the message correspondence of described data synchronization request, and being sent to described storage server, described data in synchronization index is used to described storage server to obtain corresponding data according to described data in synchronization index.
21. server according to claim 19, it is characterized in that, described widget server is used for also determining that the message of described data synchronization request can data in synchronization information, according to the characteristic of the synchronous widget terminal of need and the described data of can data in synchronization information determining needs transcoding in the described data in synchronization, according to the characteristic of the synchronous widget terminal of described need and the described transcoding rule of can data in synchronization information determining the data of described needs transcoding, wherein, described transcoding rule is the rule that the described data that need transcoding is converted to the data format that the synchronous Widget terminal of described need supports.
22. a data synchronization method is characterized in that, is applied to the data sync of a plurality of dissimilar widget terminals, described method comprises:
Described widget terminal sends and comprises that the message of data synchronization request is in the widget server, the message of described data synchronization request is used to make described widget server to obtain can data in synchronization information and the characteristic of described widget terminal, described can data in synchronization information and the characteristic of described widget terminal be used for offering described widget server and determine that described synchrodata needs the data and the described transcoding rule that needs the data of transcoding of transcoding;
Described widget terminal receives the download answer message that described widget server sends;
Described widget terminal is replied request message that message sends data download to storage server according to described download, and receives the data of described storage server after according to the transcoding rule transcoding of described widget server.
23. method according to claim 22 is characterized in that, also comprises:
Described widget terminal sends the message of data upload request to described widget server;
Described widget terminal receives that described widget server sends uploads answer message;
Described widge t terminal is uploaded data to described storage server according to the described answer message of uploading.
24. a widget terminal that is applied to data sync is characterized in that, described widget terminal and widget server and a plurality of storage server communicate to connect, and comprising:
The synchronization request module, be used to send comprise data synchronization request message in described widget server, the message of described data synchronization request is used to make described widget server to obtain can data in synchronization information and the characteristic of described widget terminal, described can data in synchronization information and the characteristic of described widget terminal be used for offering described widget server and determine that described synchrodata needs the data and the described transcoding rule that needs the data of transcoding of transcoding, receive the download that described widget server sends and reply message;
The content delivery module is used for replying the request message that message sends data download according to described download, and receives the data of described storage server after according to the transcoding rule transcoding of described widget server.
25. widget terminal according to claim 24 is characterized in that, described synchronization request module also is used to send the message of data upload request to described widget server, and what receive that described widget server sends uploads answer message; Described content delivery module also is used for uploading data to described storage server according to the described answer message of uploading.
CN 200910107409 2009-05-13 2009-05-13 Method for synchronizing data, widget terminal and server Pending CN101888395A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN 200910107409 CN101888395A (en) 2009-05-13 2009-05-13 Method for synchronizing data, widget terminal and server
PCT/CN2010/070016 WO2010130157A1 (en) 2009-05-13 2010-01-05 Method, widget terminal and server for synchronizing data
EP10160683A EP2251801A3 (en) 2009-05-13 2010-04-22 Method, terminal and server for transcoding data
US12/766,131 US20100293139A1 (en) 2009-05-13 2010-04-23 Method, widget terminal and server for synchronizing data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910107409 CN101888395A (en) 2009-05-13 2009-05-13 Method for synchronizing data, widget terminal and server

Publications (1)

Publication Number Publication Date
CN101888395A true CN101888395A (en) 2010-11-17

Family

ID=43074115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910107409 Pending CN101888395A (en) 2009-05-13 2009-05-13 Method for synchronizing data, widget terminal and server

Country Status (2)

Country Link
CN (1) CN101888395A (en)
WO (1) WO2010130157A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790725A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and device for synchronizing news
CN103051927A (en) * 2012-12-28 2013-04-17 捷思锐科技(北京)有限公司 Stream media transcoding control method, stream media transcoding control device and stream media transcoding device
CN103595739A (en) * 2012-08-14 2014-02-19 北京华胜天成科技股份有限公司 A service integration data processing method and system based on a widget engine network
WO2014075606A1 (en) * 2012-11-16 2014-05-22 中国移动通信集团公司 Data synchronization method, system, data synchronization server and terminal
CN105472412A (en) * 2015-11-20 2016-04-06 四川长虹电器股份有限公司 Big data processing method capable of distinguishing state of intelligent television
CN106469189A (en) * 2016-08-30 2017-03-01 北京奇虎科技有限公司 A kind of front end assists browsing method and the device of transcoding
CN107092470A (en) * 2016-02-17 2017-08-25 中国移动通信集团北京有限公司 A kind of widget Widget register methods and device
CN109032536A (en) * 2018-08-31 2018-12-18 郑州云海信息技术有限公司 Date storage method, device, system and equipment based on distributed cluster system
CN109088906A (en) * 2017-06-14 2018-12-25 中国移动通信集团重庆有限公司 Method and apparatus, the computer readable storage medium of session synchronization are kept between system
CN110990359A (en) * 2019-12-18 2020-04-10 北京华峰创业科技有限公司 Method and system for cleaning useless data in synchronous framework
CN113490013A (en) * 2021-06-30 2021-10-08 聚好看科技股份有限公司 Server and data request method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549920B (en) * 2015-09-21 2021-06-01 华为终端有限公司 Login information input method, login information storage method and related device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100471114C (en) * 2005-07-01 2009-03-18 萧学文 Method and system for accessing computer resource through mobile terminal
US8352966B2 (en) * 2007-09-11 2013-01-08 Yahoo! Inc. System and method of inter-widget communication
US8209378B2 (en) * 2007-10-04 2012-06-26 Clearspring Technologies, Inc. Methods and apparatus for widget sharing between content aggregation points
CN101257607B (en) * 2008-03-12 2010-06-09 中兴通讯股份有限公司 Multiple-picture processing system and method for video conference
CN101588252B (en) * 2008-05-23 2011-07-20 华为技术有限公司 Control method and control device of multipoint conference

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790725A (en) * 2011-05-16 2012-11-21 腾讯科技(深圳)有限公司 Method and device for synchronizing news
CN102790725B (en) * 2011-05-16 2016-08-24 腾讯科技(深圳)有限公司 A kind of message synchronization method and apparatus
CN103595739A (en) * 2012-08-14 2014-02-19 北京华胜天成科技股份有限公司 A service integration data processing method and system based on a widget engine network
CN103595739B (en) * 2012-08-14 2016-05-18 北京华胜天成科技股份有限公司 Based on widget Engine-Network integration of services data processing method and system
WO2014075606A1 (en) * 2012-11-16 2014-05-22 中国移动通信集团公司 Data synchronization method, system, data synchronization server and terminal
CN103051927A (en) * 2012-12-28 2013-04-17 捷思锐科技(北京)有限公司 Stream media transcoding control method, stream media transcoding control device and stream media transcoding device
CN105472412A (en) * 2015-11-20 2016-04-06 四川长虹电器股份有限公司 Big data processing method capable of distinguishing state of intelligent television
CN105472412B (en) * 2015-11-20 2018-05-08 四川长虹电器股份有限公司 A kind of big data processing method for distinguishing smart television state
CN107092470A (en) * 2016-02-17 2017-08-25 中国移动通信集团北京有限公司 A kind of widget Widget register methods and device
CN107092470B (en) * 2016-02-17 2020-11-10 中国移动通信集团北京有限公司 Widget registration method and device
CN106469189A (en) * 2016-08-30 2017-03-01 北京奇虎科技有限公司 A kind of front end assists browsing method and the device of transcoding
CN109088906A (en) * 2017-06-14 2018-12-25 中国移动通信集团重庆有限公司 Method and apparatus, the computer readable storage medium of session synchronization are kept between system
CN109088906B (en) * 2017-06-14 2021-06-18 中国移动通信集团重庆有限公司 Method and device for keeping session synchronization between systems and readable storage medium
CN109032536A (en) * 2018-08-31 2018-12-18 郑州云海信息技术有限公司 Date storage method, device, system and equipment based on distributed cluster system
CN109032536B (en) * 2018-08-31 2021-08-10 郑州云海信息技术有限公司 Data storage method, device, system and equipment based on distributed cluster system
CN110990359A (en) * 2019-12-18 2020-04-10 北京华峰创业科技有限公司 Method and system for cleaning useless data in synchronous framework
CN113490013A (en) * 2021-06-30 2021-10-08 聚好看科技股份有限公司 Server and data request method
CN113490013B (en) * 2021-06-30 2023-09-22 聚好看科技股份有限公司 Server and data request method

Also Published As

Publication number Publication date
WO2010130157A1 (en) 2010-11-18

Similar Documents

Publication Publication Date Title
CN101888395A (en) Method for synchronizing data, widget terminal and server
US8996454B2 (en) Remote management and access of databases, services and devices associated with a mobile terminal
US20040058644A1 (en) Relay device, information transmission device, and information transmission method
CN1832591B (en) Method for transmitting messages in mobile communications system and mobile communications terminal
CN102480501A (en) Application resource downloading method and associated equipment
KR20040106567A (en) Method and apparatus for enabling synchronizing data in different devices having different capabilities
CN103944864A (en) Information transmission method, information sending device, receiving device and system
CN101056185A (en) Processing method for service subscription, system and its gateway device
CN100563169C (en) Client end capacity updating reporting system, method, server and terminal equipment
CN100518412C (en) A multimedia message transmission method
CN101194443B (en) Terminal, method and system for performing combination service using terminal capability version
CN104105007A (en) Video loading method of mobile terminal, devices and system
CN101771928B (en) Method and system and proxy server for Webpage transmitting
CN102170631B (en) Service information acquisition method, equipment and system
EP2251801A2 (en) Method, terminal and server for transcoding data
CN101141717A (en) File download method between multiple handhold equipments based on wireless communication
CN110392119B (en) Data transmission method and base station
CN102340539A (en) Communication control device, communication control system, communication control method, and program
WO2004001588A2 (en) A system and method to re-synchronize client devices while refreshing them from a server
WO2016205344A2 (en) Multimedia messaging service gateway (mmsgw) system, method of operating a multimedia messaging service gateway (mmsgw)system and a software product
CN103368907A (en) Event report request system, method thereof, client device and report request method thereof
CN100592736C (en) Context management system for a network comprising a heterogeneous group of terminals
CN110166823B (en) Screen projection method and related device
WO2011116558A1 (en) Method and terminal for processing short message
CN101753561B (en) Business cluster processing method and cluster system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101117