CN102170410A - Method, system and device for data exchange - Google Patents

Method, system and device for data exchange Download PDF

Info

Publication number
CN102170410A
CN102170410A CN2011101288258A CN201110128825A CN102170410A CN 102170410 A CN102170410 A CN 102170410A CN 2011101288258 A CN2011101288258 A CN 2011101288258A CN 201110128825 A CN201110128825 A CN 201110128825A CN 102170410 A CN102170410 A CN 102170410A
Authority
CN
China
Prior art keywords
data
xml
exchange
message
information
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.)
Granted
Application number
CN2011101288258A
Other languages
Chinese (zh)
Other versions
CN102170410B (en
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 CN201110128825.8A priority Critical patent/CN102170410B/en
Publication of CN102170410A publication Critical patent/CN102170410A/en
Application granted granted Critical
Publication of CN102170410B publication Critical patent/CN102170410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method, system and device for data exchange, relating to the data exchange between devices and aiming at solving the problem that data are not exchanged timely and correctly. The method for the data exchange comprises the following steps: carrying out extensible markup language (XML) package on the data to be exchanged so as to generate an XML file, wherein data information carried by the XML file comprises head information and quantity information of data items; and exchanging the data information carried by the XML file to another terminal device. Simultaneously, the invention also provides other methods for the data exchange as well as the systems and the devices for the data exchange, thereby achieving the effect of timely and correctly exchanging the data.

Description

Method for interchanging data, system and equipment
Technical field
The present invention relates to exchanges data, relate in particular to a kind of exchanges data of terminal room.
Background technology
Vcard:vCard is a kind of form of widely used contact person on Internet.The use of vCard makes individual and business information (for example telephone number and address) exchange automation by network, and vCard information has surmounted plain text, comprises picture, company figure emblem, Web address or the like.VCard is called the ecommerce card, is mainly used in the thin associated person information of record communication etc., and the convenient exchanges data of carrying out between different equipment.
Because the personal data type class that can transmit between terminal is various, but the principle of whole transmission is all similar with characteristics, mainly utilizes the transmission course of vCard and principle that prior art is described at this.
Prior art one is that a kind of method of the vCard of utilization protocol transmission associated person information comprises following steps as shown in Figure 1:
A, transmitting terminal mobile phone are encoded to the Vcard file respectively with each associated person information; Its concrete operations for each associated person information all corresponding codes be a Vcard file;
All Vcard files that B, transmitting terminal mobile phone will encode send to the receiving terminal mobile phone;
C, receiving terminal mobile phone are stored after receiving all Vcard files, and import each Vcard file respectively for user's manual operation.
Technique scheme can accurately send to associated person information the receiving terminal mobile phone, but there is following defective in it, because each associated person information all corresponding codes is a Vcard file, so also need all Vcard files are decoded respectively during to the Vcard file decoding at the receiving terminal mobile phone, decoding efficiency is lower; And importing the Vcard file is that user's manual operation imports, so import overlong time.
Prior art two is methods that another kind utilizes Vcard protocol transmission associated person information, comprises following steps as shown in Figure 2:
A, transmitting terminal mobile phone are a Vcard file with the whole compressed encodings of All Contacts's information;
B, transmitting terminal mobile phone send to the receiving terminal mobile phone with the Vcard file that encodes;
C, receiving terminal mobile phone are stored after receiving all Vcard files, and import the Vcard file automatically;
After D, receiving terminal mobile phone import the Vcard file automatically, the Vcard file that deletion receives.
Though it is low that said method has solved decoding efficiency, import these technical problems of overlong time, but because said method can't obtain the total quantity of associated person information efficiently, again because after the receiving terminal mobile phone imports the Vcard file automatically, the Vcard file that deletion receives, so the receiving terminal mobile phone can contact information stored quantity M during less than the associated person information quantity N that receives, the receiving terminal mobile phone only can import M associated person information, thereby caused losing of the associated person information that do not import, both the PIM data that does not import lost.
Summary of the invention
The technical problem that the embodiment of the invention will solve provides method, equipment, the system of exchanges data, makes the exchanges data can be promptly and accurately.
The embodiment of the invention provides a kind of method for interchanging data, may further comprise the steps:
Receive the data message of XML encapsulation;
Read the header in the data message of described XML encapsulation;
Carry out exchanges data according to described header.
The embodiment of the invention also provides a kind of method for interchanging data, may further comprise the steps:
Receive the data message of XML encapsulation;
Read the header in the data message of described XML encapsulation;
Carry out exchanges data according to described header.
The embodiment of the invention provides a kind of data exchange system, comprising:
First switch is used for sending data to first converting unit;
Second switch is used to receive the data that second converting unit transmits;
First converting unit is used for utilizing XML to encapsulate the data that first switch transmits, the described header that reads the XML encapsulation;
Second converting unit is used for XML is converted to the receivable data of second switch and sends second switch to.
The embodiment of the invention provides a kind of switch, comprising:
Data generating unit is used to generate the data that will exchange and sends Date Conversion Unit to;
Date Conversion Unit, the data transaction that is used for exchanging become the XML file and transmit, and the described XML of reading file carries header and data strip purpose quantity information.
The embodiment of the invention also provides a kind of switch, comprises
Date Conversion Unit is used to receive the XML data, reads the header and the data strip purpose quantity information of XML encapsulation, and the XML data transaction is become the receivable data of second switch and sends the Data Receiving unit to;
The Data Receiving unit is used to receive the data that Date Conversion Unit transmits.
The embodiment of the invention generates the XML file, and makes the XML file carry header and data strip purpose quantity information by data message being carried out XML encapsulation, thereby makes exchanges data reach promptly and accurately effect.
Description of drawings
Fig. 1 is the method flow diagram of prior art one;
Fig. 2 is the method flow diagram of prior art two;
Fig. 3 is the flow chart of a kind of method for interchanging data of the embodiment of the invention 1;
Fig. 4 is the flow chart of the another kind of method for interchanging data of the embodiment of the invention 1;
Fig. 5 is the schematic diagram of a kind of data exchange system of the embodiment of the invention 1;
Fig. 6 is the schematic diagram of a kind of switch of the embodiment of the invention 1.
Fig. 7 is the schematic diagram of the another kind of switch of the embodiment of the invention 1
Embodiment
Embodiment 1
The embodiment of the invention provides a kind of method for interchanging data, as shown in Figure 3, shown in may further comprise the steps:
Use XML (Extensible Markup Language) to encapsulate the data of needs exchange;
The data message of described XML encapsulation comprises header;
Send the data message of described XML encapsulation to carry out exchanges data another unit.
The described data that need exchange can be encapsulated in the middle of the * .udx file.UDX (" conventional data swap file, universal data exchange file, * .udx ") is the address of a filename, and here, we are referred to as data interchange file.
Described header comprises data strip purpose quantity information.
Described header also comprises following a kind of at least: user profile, client-side information, facility information, date and time information, language message.
The data message of described XML encapsulation comprises concrete data message, and this concrete data message comprises following a kind of at least: address book, schedule, short message, the items for information of Multimedia Message and email message.
Can superpose on the data message that described XML file carries sequence number and items for information are so that can selectively exchange the part clauses and subclauses in the middle of whole data exchange process.
Can encapsulate the data of telephone directory, schedule, short message, Multimedia Message and email message with one or more XML.When with an XML above-mentioned message being encapsulated, the header of an integral body of needs is described the information of all required exchanges.When many parts of XML files encapsulated, an XML encapsulated the data of a type, as an XML encapsulated telephone book, and this mode of an encapsulation schedule.In the middle of the XML of each encapsulation, need a header that described information of carrying is described.This header can adopt identical form, the type difference of the information that different is specifically carries.
The embodiment of the invention also provides a kind of method for interchanging data, as shown in Figure 4, may further comprise the steps:
Receive the data message of XML encapsulation;
Read the header in the data message of described XML encapsulation;
Carry out exchanges data according to described header.
Also comprise according to described header behind the header in the described data message that reads described XML encapsulation and judge whether to possess exchange capacity; If then carry out exchanges data, if otherwise refusal carries out exchanges data.
The data message of described XML encapsulation is encapsulated in the data interchange file.
Described header also comprises data strip destination data information.
Described header comprises following a kind of at least: user profile, client-side information, facility information, date and time information, language message.
The data message of described XML encapsulation comprises concrete data message, and this concrete data message comprises following a kind of at least: address book, schedule, short message, the items for information of Multimedia Message and email message.
Stack sequence number and items for information on the data message of described XML encapsulation.
It is described that to judge whether to possess exchange capacity according to described header specifically be to judge whether to support the exchanges data of this data type or judge whether capacity exchange corresponding data categorical data or according to the speciogenesis in the situation that number of entries information judges whether whether loss of data is arranged in exchange process, data repeat of the data of this data type according to the items for information of this data type according to data type.Whether the data strip purpose quantity of judging exchange is consistent with the quantity of the XML file header data entries that reads, and when inconsistent, then abandons this exchange process, and the wrong generation of prompting user.Only detect because the central mistake that takes place is transmitted in this locality, rather than, can point out the user to initiate the process that exchanges again, thereby carry out the mistake re-transmission because local off-capacity does not perhaps have ability to carry out exchanges data.
The embodiment of the invention provides a kind of data exchange system, as shown in Figure 5, comprising:
First switch is used for sending data to first converting unit;
Second switch is used to receive the data that second converting unit transmits;
First converting unit is used for utilizing XML to encapsulate the data that first switch transmits, the described header that reads the XML encapsulation;
Second converting unit is used for XML is converted to the receivable data of second switch and sends second switch to.
Described system can also comprise:
Detecting unit is used to detect because the mistake that takes place in the middle of the local transmission;
First Tip element, be used for described detecting unit detect because take place in the middle of the local transmission wrong the time prompting user initiate the process that exchanges again, thereby carry out mistake re-transmission.
Described system can also comprise first judging unit, be used for judging whether to possess exchange capacity that described second converting unit becomes the XML file conversion the receivable data of second switch and sends second switch to when possessing exchange capacity in described judgment unit judges according to described header.
Described system can also comprise:
Second judging unit is used to judge whether the data strip purpose quantity of exchange is consistent with the quantity of the XML file header data entries that reads;
Second Tip element, the data strip purpose quantity that is used for the exchange of the described second judgment unit judges unit judges are abandoned this exchange process when inconsistent with the quantity of the XML file header data entries that reads, and the wrong generation of prompting user.
The embodiment of the invention provides a kind of switch, as shown in Figure 6, comprising:
Data generating unit is used to generate the data that will exchange and sends Date Conversion Unit to;
Date Conversion Unit, the data transaction that is used for exchanging become the XML file and transmit, described header and the data strip purpose quantity information that reads the XML encapsulation.
The embodiment of the invention also provides a kind of switch, as shown in Figure 7, comprising:
Date Conversion Unit is used to receive the XML data, reads the header and the data strip purpose quantity information of XML encapsulation, and the XML data transaction is become the receivable data of second switch and sends the Data Receiving unit to;
The Data Receiving unit is used to receive the data that Date Conversion Unit transmits.
Described equipment can also comprise:
Detecting unit is used to detect because the mistake that takes place in the middle of the local transmission;
First Tip element, be used for described detecting unit detect because take place in the middle of the local transmission wrong the time prompting user initiate the process that exchanges again, thereby carry out mistake re-transmission.
Described equipment can also comprise first judging unit, be used for judging whether to possess exchange capacity that described Date Conversion Unit becomes the XML file conversion the receivable data in Data Receiving unit and sends the Data Receiving unit to when possessing exchange capacity in described first judgment unit judges according to described header.
Described equipment can also comprise:
Second judging unit is used to judge whether the data strip purpose quantity of exchange is consistent with the quantity of the XML file header data entries that reads;
Second Tip element, the data strip purpose quantity that is used for the exchange of the described second judgment unit judges unit judges are abandoned this exchange process when inconsistent with the quantity of the XML file header data entries that reads, and the wrong generation of prompting user.
Embodiment 2
Present embodiment mainly is how the descriptor of institute's swap data in the middle of the whole data exchange process to be generated describe, its purpose is by these descriptors, whether terminal can be checked before exchanges data can realize the function that exchanges, simultaneously after exchange is finished, check whether making a mistake, and can retransmit swap data according to whole descriptor request.
Data exchange process between whole terminal is as described in 2.2, and in the middle of whole exchange process, data interchange file adopts the form of XML, and related terminal data comprises the various subscriber datas such as telephone directory, schedule, short message, Multimedia Message and Email in the terminal.
Because the XML file mainly carries the data message of required exchange.In order to realize the purpose of present embodiment, we are divided into two parts with the data in the middle of the file in the middle of whole file structure, and a part is the header of XML file, and a part is the data message of required exchange.In the middle of the header of XML file, mainly comprise generation user, the equipment that data generate, the time that data generate, the software information that data generate, the language form in the middle of the data to data; In addition, also carry the quantity information of various different types of data.The information of this part must exist in the middle of each XML file that generates.
A part of in addition content is the data message of required exchange, and these information and concrete data are associated.Mainly comprise data such as telephone directory, schedule, short message, Multimedia Message and email message.The situation of these data based reality is as the different piece of XML file, simultaneously in the middle of exchange process, as these data of an XML file part, exchange if desired, can if do not participate in exchange, will not appear in the middle of the XML file as the part of XML so.In the middle of the whole data exchange process the concrete logical construction of data message referring to figure below:
The descriptor of institute's swap data in the middle of the above-mentioned header, just whole data exchange process.In order to describe his residing position in the middle of whole file clearly, we call it with header.Certainly, according to the needs of specific implementation, this information can be placed on each position of whole file, rather than is confined to the head of file, and therefore, the address of header neither be proprietary.
Terminal is carried out the header of the central XML file that is generated of data exchange process, adopt the mode of XML to be described, its purpose is the XML file in the middle of the whole exchange process is carried out describe, in general terms, and the while is also carried out overall description to the data message of swap data related in the middle of the XML file.Terminal can have the understanding of an integral body by reading this partial information to the whole data message that need exchange.
The information spinner of this part will comprise following content: user profile, client-side information, facility information, date and time information, language message etc.; In addition, also relate to the relevant information of concrete information, mainly comprise address book, schedule, short message, the items for information of Multimedia Message and email message.
It utilizes XML to encapsulate in the middle of the process of exchange, needs to observe following DTD:
In the middle of above-mentioned DTD
ELEMENT DataExchangeInfo identifies the header of whole data interchange file;
The UserInfo sign generates the user profile of data interchange file;
The UserAgent sign generates the client-side information of data interchange file;
The DeviceInfo sign generates the facility information of data interchange file;
The Date sign generates the date and time information of data interchange file;
The Language sign generates the language message of data interchange file;
The header of the data content that is comprised in the middle of the RecordInfo identification data file;
The bar number of the vCard data that the RecordOfvCard sign is exchanged;
The bar number of the vCalendar data that the RecordOfvCalendar sign is exchanged;
The bar number of the SMS data that the RecordOfSMS sign is exchanged;
The bar number of the MMS data that the RecordOfMMS sign is exchanged;
The bar number of the Email data that the RecordOfEmail sign is exchanged.
Terminal can generate data interchange file according to the description of above-mentioned DTD, and this document is resolved.For the consideration of compatibility, terminal can support the mode of Schema to carry out the generation of XML file.Its form is as follows:
Figure BDA0000061876450000091
According to the flow process of the 2.2 central whole data exchange ways of being introduced, terminal need generate the intermediate file that is used for exchanges data.In the middle of the process that generates this intermediate file, need at first that user, equipment, software, date, language etc. are relevant information to be filled up in the middle of the whole descriptor.After this, in the XML form, also need the items for information with these data to be filled up in the middle of the whole descriptor in the data encapsulation that will need to exchange.
In the middle of the process of exchange, the purpose terminal at first reads the intermediate file in the middle of the exchange process.For the success of better guaranteeing to exchange, he reads whole description information of files, the header of the data file in the middle of this example just, thus obtain the generation person of whole file, information such as equipment, software, date and language.Read relevant data strip purpose descriptor afterwards again, for example, data strip purpose quantity, kind.If terminal is not supported the quantity of swap data clauses and subclauses, or do not support the kind of data clauses and subclauses, can refuse to carry out this exchanges data so, and will refuse the reason prompting user of this exchange.So just can avoid do not have under the situation of exchange capacity blindly carry out exchanges data, the generation that makes the mistake.
The error detection of terminal.After whole exchange takes place, such as in the middle of the process of exchange vCard.Newly-generated vCard clauses and subclauses after the exchange have 101, and only there are 100 in the clauses and subclauses in the middle of the file header information that in fact reads, be wrong generation in the middle of the so whole exchange process, terminal just should be abandoned this exchange process so, and the wrong generation of prompting user.
The mistake of terminal retransmits.If terminal detects wrong generation, and only be because the mistake that takes place in the middle of the local transmission, such as in the middle of the process of above-mentioned exchange vCard, newly-generated vCard clauses and subclauses after the exchange have 101, and only there is 100 example in the clauses and subclauses in the middle of the file header information that in fact reads; Rather than because local off-capacity does not perhaps have ability to carry out the words of exchanges data.Terminal can point out the user to initiate the process that exchanges again, retransmits thereby carry out mistake.
By the content of header, can allow the terminal resolution ability mate, error detection, the problem that mistake retransmits.
Embodiment 3
Present embodiment mainly is that institute's swap data in the middle of the whole data exchange process carried out the explanation of XML encapsulation to the vCard data, the user can selectively be exchanged the part clauses and subclauses in the middle of whole data exchange process for sequence number and items for information by the whole vCard data of stack on the data of vCard.
The telephone book data form that terminal is supported can be with reference to the requirement of vCard 2.1, and its data format satisfies following requirement and definition.
The corresponding relation of table 1 entries of phone book and vCard field
Figure BDA0000061876450000101
Figure BDA0000061876450000111
Figure BDA0000061876450000121
Terminal is being carried out telephone directory in the middle of the process of exchanges data, supports the telephone book data of the terminal form according to XML is encapsulated, and the XML file that is generated is used for the telephone book data of required exchange is exchanged.Carry out in the encapsulation process of XML at telephone book data, need to observe following DTD:
Figure BDA0000061876450000131
In the middle of above-mentioned DTD, mainly be how the vCard data to be embodied stipulate in the middle of the data interchange file form.All vCard data all are the daughter elements of vCard element among the XML, can comprise 0 or a plurality of vCardInfo elements in the middle of each vCard element.Sequence number and vCard data that encapsulate with the XML form of comprising vCard data in the middle of each vCardInfo element.
The implication of the data field of concrete vCard is with reference to the first of this standard, and the encapsulation definition of XML form has only been carried out in this part to the desired vCard field of first's data format according to the rule of W3C.
Terminal can generate data interchange file according to the description of above-mentioned DTD, and this document is resolved.For the consideration of compatibility, terminal can support the mode of Schema to carry out the generation of XML file.Its form is as follows:
Figure BDA0000061876450000151
Figure BDA0000061876450000161
Above-mentioned is that terminal is the form of the required DTD/Schema that observes generating and changing the related data content.Terminal can be with reference to above-mentioned form generation/analyzing XML file.
In the middle of above-mentioned DTD, there is the field of following Sequence.
Sequence CDATA#REQUIRED
This field must appear in the middle of the clauses and subclauses of each vCard.By this sequence number, terminal is in the intermediate file of resolution data exchange, can optionally exchange x bar data, and need not once all data be exchanged, thereby save the time of exchange, simultaneously can be limited at data capability, the terminal of limited storage space exchanges more targetedly.
Embodiment 4
Present embodiment mainly is that institute's swap data in the middle of the whole data exchange process carried out the explanation of XML encapsulation to the vCalendar data, the user can selectively be exchanged the part clauses and subclauses in the middle of whole data exchange process for sequence number and items for information by the whole vCalendar data of stack on the data of vCalendar.
The calendar form that terminal is supported can be with reference to the requirement of vCalendar 1.0, and its data format satisfies following requirement and definition.
The corresponding relation of table 2 calendar entries and vCalendar field
The content of calendar entries Field name
Zero-time ?Start?Time
Concluding time ?Stop?Time
Describe ?Description
Cyclical patterns ?Recur?Type
Event content ?Body
Alerting pattern ?Notify?Type
The ring mode ?Ringer?Type
Duration ?Duration
Terminal is being carried out schedule in the middle of the process of exchanges data, should support the calendar of the terminal form according to XML is encapsulated, and the XML file that is generated is used for the calendar of required exchange is exchanged.Carry out in the encapsulation process of XML in calendar, need to observe following DTD:
Figure BDA0000061876450000171
In the middle of above-mentioned DTD, mainly be how the vCalendar data to be embodied stipulate in the middle of the data interchange file form.All vCalendar data all are the daughter elements of vCalendar element among the XML, can comprise 0 or a plurality of vCalendarInfo elements in the middle of each vCalendar element.Sequence number and vCalendar data that encapsulate with the XML form of comprising vCalendar data in the middle of each vCalendarInfo element.
Terminal can generate data interchange file according to the description of above-mentioned DTD, and this document is resolved.For the consideration of compatibility, terminal can support the mode of Schema to carry out the generation of XML file.Its form is as follows:
Figure BDA0000061876450000181
Above-mentioned is that terminal is the form of the required DTD/Schema that observes generating and changing the related data content.Terminal can be with reference to above-mentioned form generation/analyzing XML file.
In the middle of above-mentioned DTD, there is the field of following Sequence.
Sequence?CDATA?#REQUIRED
This field must appear in the middle of the clauses and subclauses of each vCalendar.By this sequence number, terminal is in the intermediate file of resolution data exchange, can optionally exchange x bar data, and need not once all data be exchanged, thereby save the time of exchange, simultaneously can be limited at data capability, the terminal of limited storage space exchanges more targetedly.
Embodiment 5
Present embodiment mainly is that institute's swap data in the middle of the whole data exchange process carried out the explanation of XML encapsulation to the SMS data, the user can selectively be exchanged the part clauses and subclauses in the middle of whole data exchange process for sequence number and items for information by the whole SMS data of stack on the data of SMS.
The SMS data format that terminal is supported can be with reference to the related request of SMS, and its data format satisfies following requirement and definition.
The corresponding relation of table 3SMS clauses and subclauses and field
The content of SMS clauses and subclauses Field name
Source address Original_Address
Destination address Destination_Address
Message data Data
Temporal information TimeStamp
Type field SMS_Type
Terminal is being carried out short message in the middle of the process of exchanges data, should support the short message data of the terminal form according to XML is encapsulated, and the XML file that is generated is used for the short message data of required exchange is exchanged.Carry out in the encapsulation process of XML at short message data, need to observe following DTD:
In the middle of above-mentioned DTD, mainly be how the SMS data to be embodied stipulate in the middle of the data interchange file form.All SMS data all are the daughter elements of SMS element among the XML, can comprise 0 or a plurality of SMSInfo elements in the middle of each SMS element.Sequence number and SMS data that encapsulate with the XML form of comprising SMS data in the middle of each SMSInfo element.
The implication of the data field of concrete SMS is with reference to the first of this standard, and the encapsulation definition of XML form has only been carried out in this part to the desired SMS field of first's data format according to the rule of W3C.
Terminal can generate data interchange file according to the description of above-mentioned DTD, and this document is resolved.For the consideration of compatibility, terminal can support the mode of Schema to carry out the generation of XML file.Its form is as follows:
Figure BDA0000061876450000201
Above-mentioned is that terminal is the form of the required DTD/Schema that observes generating and changing the related data content.Terminal can be with reference to above-mentioned form generation/analyzing XML file.
In the middle of above-mentioned DTD, there is the field of following Sequence.
Sequence?CDATA#REQUIRED
This field must appear in the middle of the clauses and subclauses of each SMS.By this sequence number, terminal is in the intermediate file of resolution data exchange, can optionally exchange x bar data, and need not once all data be exchanged, thereby save the time of exchange, simultaneously can be limited at data capability, the terminal of limited storage space exchanges more targetedly.
Embodiment 6
Present embodiment mainly is that institute's swap data in the middle of the whole data exchange process carried out the explanation of XML encapsulation to the MMS data, the user can selectively be exchanged the part clauses and subclauses in the middle of whole data exchange process for sequence number and items for information by stack whole M MS data on the data of MMS.
The MMS data format that terminal is supported can be with reference to the related request of MMS, and its data format satisfies following requirement and definition.
The corresponding relation of table 4MMS clauses and subclauses and field
The content of MMS clauses and subclauses Field name
Type of message ?Message_Type
Affairs ID ?Transaction_ID
The MMS version ?MMS_Version
Message id ?Message_ID
The sender address ?Sender_address
Content type ?Content_type
The recipient address ?Recipient_address
The message grade ?Message_class
Time of Day ?Date_and_time
Priority level ?Priority
Theme ?Subject
Message status ?MM_State
Content ?Content
Character set ?Charset
The content delivery coding ?Content_Transfer_Encoding
Location of content ?Content_Location
Content-data ?Data
Terminal is being carried out Multimedia Message in the middle of the process of exchanges data, should support the Multimedia Message data of the terminal form according to XML is encapsulated, and the XML file that is generated is used for the Multimedia Message data of required exchange are exchanged.Carry out in the encapsulation process of XML in the Multimedia Message data, need to observe following DTD:
Figure BDA0000061876450000221
In the middle of above-mentioned DTD, mainly be how the MMS data to be embodied stipulate in the middle of the data interchange file form.All MMS data all are the daughter elements of MMS element among the XML, can comprise 0 or a plurality of MMSInfo elements in the middle of each MMS element.Sequence number and Email data that encapsulate with the XML form of comprising MMS data in the middle of each MMSInfo element.
The implication of the data field of concrete MMS is with reference to the first of this standard, and the encapsulation definition of XML form has only been carried out in this part to the desired MMS field of first's data format according to the rule of W3C.
Terminal can generate data interchange file according to the description of above-mentioned DTD, and this document is resolved.For the consideration of compatibility, terminal can support the mode of Schema to carry out the generation of XML file.Its form is as follows:
Figure BDA0000061876450000231
Figure BDA0000061876450000241
Above-mentioned is that terminal is the form of the required DTD/Schema that observes generating and changing the related data content.Terminal can be with reference to above-mentioned form generation/analyzing XML file.
In the middle of above-mentioned DTD, there is the field of following Sequence.
Sequence?CDATA#REQUIRED
This field must appear in the middle of the clauses and subclauses of each MMS.By this sequence number, terminal is in the intermediate file of resolution data exchange, can optionally exchange x bar data, and need not once all data be exchanged, thereby save the time of exchange, simultaneously can be limited at data capability, the terminal of limited storage space exchanges more targetedly.
Embodiment 7
Present embodiment mainly is that institute's swap data in the middle of the whole data exchange process carried out the explanation of XML encapsulation to the Email data, the user can selectively be exchanged the part clauses and subclauses in the middle of whole data exchange process for sequence number and items for information by the whole Email data of stack on the data of Email.
The Email data format that terminal is supported can be with reference to the related request of Email, and its data format satisfies following requirement and definition.
The corresponding relation of table 5E-mail data clauses and subclauses and field
The content of E-mail clauses and subclauses Field name
Date ?Date
The sender ?From
Theme ?Subject
The recipient ?To
Return address ?Reply_to
The MIME version ?MIME_version
Reverse-path ?Return_Path
Transmission information ?Delivered_To
Reception information ?Received
Make a copy for ?CC
Close sending ?BCC
Message id ?Message_ID
The content delivery coding ?Content_Transfer_Encoding
Content description ?Content_Description
The content ownership ?Content_Disposition
Content ID ?Content_ID
Content type ?Content_type
Content rating ?Content_class
Character set ?Charset
Content-data ?Data
The annex name ?Name
The attachment files name ?FileName
Terminal is being carried out Email in the middle of the process of exchanges data, should support the e-mail data of the terminal form according to XML is encapsulated, and the XML file that is generated is used for the e-mail data of required exchange is exchanged.Carry out in the encapsulation process of XML at e-mail data, need to observe following DTD:
In the middle of above-mentioned DTD, mainly be how the Email data to be embodied stipulate in the middle of the data interchange file form.All Email data all are the daughter elements of Email element among the XML, can comprise 0 or a plurality of EmailInfo elements in the middle of each Email element.Sequence number and Email data that encapsulate with the XML form of comprising Email data in the middle of each EmailInfo element.
The implication of the data field of concrete Email is with reference to the first of this standard, and the encapsulation definition of XML form has only been carried out in this part to the desired Email field of first's data format according to the rule of W3C.
Terminal can generate data interchange file according to the description of above-mentioned DTD, and this document is resolved.For the consideration of compatibility, terminal can support the mode of Schema to carry out the generation of XML file.Its form is as follows:
Figure BDA0000061876450000291
Above-mentioned is that terminal is the form of the required DTD/Schema that observes generating and changing the related data content.Terminal can be with reference to above-mentioned form generation/analyzing XML file.
In the middle of above-mentioned DTD, there is the field of following Sequence.
Sequence?CDATA#REQUIRED
This field must appear in the middle of the clauses and subclauses of each Email.By this sequence number, terminal is in the intermediate file of resolution data exchange, can optionally exchange x bar data, and need not once all data be exchanged, thereby save the time of exchange, simultaneously can be limited at data capability, the terminal of limited storage space exchanges more targetedly.
Embodiment 8
Present embodiment mainly is the explanation to the encapsulation of multimedia file entrained in the middle of the Email of institute's swap data in the middle of the whole data exchange process and the MMS data.
The coded system of the annex that the classes of messages data are entrained mainly adopts the mode of Base64 coding to carry out.Base64 is a kind of very common coding criterion, and its effect is that binary sequence is converted to human-readable ascii character sequence, and being commonly used in needs with transmitting under the situation of binary data by text protocol (such as HTTP and SMTP).Base64 has adopted a kind of very simple code conversion: for data to be encoded, with 3 bytes is unit, gets 6 bit data successively and fill two 0 in front to form 8 new codings, because 3*8=4*6, the input of such 3 bytes can become the output of 4 bytes, has increased by 1/3 on the length.
In the middle of the embodiment of the invention, in the middle of the file format of Multimedia Message and Email, need to relate to the encapsulation of multimedia file annex.In the middle of the exchange process of above-mentioned classes of messages information, the coded system of multimedia file by Base64 leaves XML's in<MMSContent〉or<EmailContent〉in the middle of the element, simultaneously at<MMSContent〉or<EmailContent〉utilize other XML data message that multimedia file is described in the middle of the element, these descriptors comprise:
<Content-Type 〉, the type of annex is mainly described, can be described with mime type.
<charset〉character set of main description document.
<Content-Transfer-Encoding 〉, the coded system in the main description document transmission.
<name〉mainly the annex name is described.
<Content-Disposition 〉, mainly file institute's role in the middle of message is described.
<filename 〉, mainly the filename to annex is described.
<Content-Location 〉, mainly the deposit position of annex is described etc., specifically entrained description information of files sees also the regulation of the DTD/Schema of Multimedia Message and Email part in the middle of swap file.
Shown in the multimedia file encapsulation in the following example of Multimedia Message annex:
Figure BDA0000061876450000311
Shown in the multimedia file encapsulation in the following example of e-mail attachment:
Figure BDA0000061876450000321
Embodiment 9
Present embodiment mainly is an explanation to the using method and the flow process of institute's swap data file in the middle of the whole data exchange process.
In the middle of the embodiment of the invention, need carry out the terminal of exchanges data, according to the requirement of data interchange file form, generate corresponding swap file, and the data message that will need to exchange is carried in the middle of this document.
The suffix name of the swap file that is generated adopts the title of * .udx, and the information that is exchanged comprises telephone directory, schedule, short message, the relevant information of Multimedia Message and Email.
Receive after the swap file of * .udx, this document is resolved, and extract wherein entrained corresponding data information according to the call format of data interchange file.According to the actual needs, the user can browse these information, also can be with these information back-ups to target terminal.
In the process of whole exchanges data, the generation of data interchange file mainly utilizes exchanges data software to realize, this software can be the special-purpose software on the terminal, also can be by the special-purpose software on data wire and the PC that terminal links to each other.
Embodiment 10
Present embodiment mainly is that the DTD/Schema to the integral body of the required reference of institute's swap data file in the middle of the whole data exchange process is described.
The reference of exchanges data flow process is referring to previous embodiment.In the middle of whole data procedures, the data that the exchanged mode with XML need be encapsulated, in the middle of the process of encapsulation, need the XML file of reference target form to carry out.In order to satisfy needs, need in the middle of the DTD/Schema of XML, define the packing forms of the XML of telephone directory, schedule, short message, Multimedia Message and Email at whole data exchange process.
The structure of the XML file of stipulating in the middle of present embodiment is divided into six parts, and they are respectively the header parts, phone book information part, calendar information part, short message information part, Multimedia Message message part and Email Information part.
The definition of header.Can be discerned by purpose side before the exchange beginning for the Global Information that makes whole exchanges data, we also need the Global Information in the data exchange process is stipulated.Such regulation can allow the user finish the adaptive of ability in the middle of data exchange process, whether supports the data of this function according to terminal, and whether the capacity of the data of this function of being supported can information such as mate with terminal finishes adaptive process to terminal.According to these headers, after finishing the process of exchanges data, can also carry out checksum error to the data that exchanged and retransmit simultaneously.All headers exist
<!ELEMENT?DataExchangeInfo(RecordInfo,vCard,vCalendar,SMS,MMS,Email)>
Data format among define.
The phone book information part.According to the definition of vCard, we encapsulate the data format of the vCard form with XML.Meanwhile, in the middle of the defined XML data cell of each bar vCard form, there is a sequence number corresponding, so that the user can selectively exchange the vCard data with these data.All vCard data exist
<!ELEMENT?vCard(vCardInfo*)>
Data format among define.
The calendar information part.According to the definition of vCalendar, we encapsulate the data format of the vCalendar form with XML.Meanwhile, in the middle of the defined XML data cell of each bar vCalendar form, there is a sequence number corresponding, so that the user can selectively exchange the vCalendar data with these data.All vCalendar data exist
<!ELEMENT?vCalendar(vCalendarInfo*)>
Data format among define.
The short message information part.According to the definition of SMS international norm, we encapsulate the data format of the SMS form with XML.Meanwhile, in the middle of the defined XML data cell of each bar SMS form, there is a sequence number corresponding, so that the user can selectively exchange the SMS data with these data.All SMS data exist
?<!ELEMENT?SMS(SMSInfo*)>
Data format among define.
The Multimedia Message message part.According to the definition of MMS international norm, we encapsulate the data format of the MMS form with XML.Meanwhile, in the middle of the defined XML data cell of each bar MMS form, there is a sequence number corresponding, so that the user can selectively exchange the MMS data with these data.All MMS data exist
<!ELEMENT?MMS(MMSInfo*)>
Data format among define.
The Email Information part.The data format of the Email form with XML is encapsulated.Meanwhile, in the middle of the defined XML data cell of each bar Email form, there is a sequence number corresponding, so that the user can selectively exchange the Email data with these data.All Email data exist
<!ELEMENT?Email(EmailInfo*)>
Data format among define.
In the middle of whole data exchange process, the generation of XML file needs to finish with reference to following form.
Figure BDA0000061876450000371
Figure BDA0000061876450000381
Figure BDA0000061876450000391
Because terminal and client software are incomplete same to the situation that whole XML supported, so W3C stipulated two kinds with the technology that generates the XML data encapsulation, and they are respectively DTD and Schema.Preamble is stipulated the DTD form in the middle of the data exchange process, is below and the above definition of the Schema of equivalents.
For the content of different message parts in the middle of above, this Schema partly with====in the middle of Schema, separate.
Figure BDA0000061876450000401
Figure BDA0000061876450000411
Figure BDA0000061876450000421
Figure BDA0000061876450000431
Figure BDA0000061876450000441
Figure BDA0000061876450000451
More than be explanation, in concrete implementation process, can carry out suitable improvement, to adapt to the concrete needs of concrete condition method of the present invention to the specific embodiment of the invention.Therefore be appreciated that according to the specific embodiment of the present invention just to play an exemplary role, not in order to restriction protection scope of the present invention.

Claims (25)

1. a method for interchanging data is characterized in that, comprising:
Use XML to encapsulate the data of needs exchange;
The data message of described XML encapsulation comprises header;
Send the data message of described XML encapsulation to carry out exchanges data another unit.
2. the method for claim 1 is characterized in that, described method comprises that also the data encapsulation that described needs are exchanged is in the middle of data interchange file.
3. the method for claim 1 is characterized in that, described header comprises data strip purpose quantity information.
4. method as claimed in claim 3 is characterized in that, described header also comprises following a kind of at least: user profile, client-side information, facility information, date and time information, language message.
5. the method for claim 1 is characterized in that, the data message of described XML encapsulation comprises concrete data message, this concrete data message comprises following a kind of at least: address book, schedule, short message, the items for information of Multimedia Message and email message.
6. the method for claim 1 is characterized in that, described method also is included in stack sequence number and items for information on the data message of described XML encapsulation.
7. a method for interchanging data is characterized in that, comprising:
Receive the data message of XML encapsulation;
Read the header in the data message of described XML encapsulation;
Carry out exchanges data according to described header.
8. method as claimed in claim 7 is characterized in that, also comprises according to described header behind the header in the described data message that reads described XML encapsulation judging whether to possess exchange capacity; If then carry out exchanges data, if otherwise refusal carries out exchanges data.
9. as claim 7 or 8 described methods, it is characterized in that described method comprises that also the data message with described XML encapsulation is encapsulated in the data interchange file.
10. as claim 7 or 8 described methods, it is characterized in that described header also comprises data strip destination data information.
11. method as claimed in claim 10 is characterized in that, described header comprises following a kind of at least: user profile, client-side information, facility information, date and time information, language message.
12., it is characterized in that the data message of described XML encapsulation comprises concrete data message as claim 7 or 8 described methods, this concrete data message comprises following a kind of at least: address book, schedule, short message, the items for information of Multimedia Message and email message.
13., it is characterized in that described method also is included in stack sequence number and items for information on the data message of described XML encapsulation as claim 7 or 8 described methods.
14. method as claimed in claim 8, it is characterized in that described to judge whether to possess exchange capacity according to described header specifically be to judge whether to support the exchanges data of this data type or judge whether capacity exchange corresponding data categorical data or judge whether that according to the number of entries information of the data of this data type the situation that whether has loss of data or data to repeat takes place in exchange process according to the items for information of this data type according to data type.
15. method as claimed in claim 7 is characterized in that, judges whether the data strip purpose quantity of exchange is consistent with the quantity of the XML file header data entries that reads, and when inconsistent, then abandons this exchange process, and the wrong generation of prompting user.
16. method as claimed in claim 7 is characterized in that, described method also comprises the mistake that detects because of generation in the middle of the transmission of this locality, then points out the user to initiate the process that exchanges again, retransmits to carry out mistake.
17. a data exchange system is characterized in that, comprising:
First switch is used for sending data to first converting unit;
Second switch is used to receive the data that second converting unit transmits;
First converting unit is used for utilizing XML to encapsulate the data that first switch transmits, the described header that reads the XML encapsulation;
Second converting unit is used for XML is converted to the receivable data of second switch and sends second switch to.
18. system as claimed in claim 17 is characterized in that, also comprises:
Detecting unit is used to detect because the mistake that takes place in the middle of the local transmission;
First Tip element, be used for described detecting unit detect because take place in the middle of the local transmission wrong the time prompting user initiate the process that exchanges again, thereby carry out mistake re-transmission.
19. system as claimed in claim 17, it is characterized in that, also comprise first judging unit, be used for judging whether to possess exchange capacity that described second converting unit becomes the XML file conversion the receivable data of second switch and sends second switch to when possessing exchange capacity in described judgment unit judges according to described header.
20. system as claimed in claim 17 is characterized in that, also comprises:
Second judging unit is used to judge whether the data strip purpose quantity of exchange is consistent with the quantity of the XML file header data entries that reads;
Second Tip element, the data strip purpose quantity that is used for the exchange of the described second judgment unit judges unit judges are abandoned this exchange process when inconsistent with the quantity of the XML file header data entries that reads, and the wrong generation of prompting user.
21. a switch is characterized in that, comprising:
Data generating unit is used to generate the data that will exchange and sends Date Conversion Unit to;
Date Conversion Unit, the data transaction that is used for exchanging become the XML file and transmit, described header and the data strip purpose quantity information that reads the XML encapsulation.
22. a switch is characterized in that, comprising:
Date Conversion Unit is used to receive the XML data, reads the header and the data strip purpose quantity information of XML encapsulation, and the XML data transaction is become the receivable data of second switch and sends the Data Receiving unit to;
The Data Receiving unit is used to receive the data that Date Conversion Unit transmits.
23. equipment as claimed in claim 22 is characterized in that, also comprises:
Detecting unit is used to detect because the mistake that takes place in the middle of the local transmission;
First Tip element, be used for described detecting unit detect because take place in the middle of the local transmission wrong the time prompting user initiate the process that exchanges again, thereby carry out mistake re-transmission.
24. equipment as claimed in claim 22, it is characterized in that, also comprise first judging unit, be used for judging whether to possess exchange capacity that described Date Conversion Unit becomes the XML file conversion the receivable data in Data Receiving unit and sends the Data Receiving unit to when possessing exchange capacity in described first judgment unit judges according to described header.
25. equipment as claimed in claim 22 is characterized in that, also comprises:
Second judging unit is used to judge whether the data strip purpose quantity of exchange is consistent with the quantity of the XML file header data entries that reads;
Second Tip element is used for data strip purpose quantity in the exchange of the described second judgment unit judges unit judges and abandons this exchange process with the quantity of the XML file header data entries that reads when inconsistent, and the wrong generation of prompting user.
CN201110128825.8A 2007-11-12 2008-10-21 Method, system and device for data exchange Active CN102170410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110128825.8A CN102170410B (en) 2007-11-12 2008-10-21 Method, system and device for data exchange

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200710124502.5 2007-11-12
CN200710124502 2007-11-12
CN201110128825.8A CN102170410B (en) 2007-11-12 2008-10-21 Method, system and device for data exchange

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN2008101694705A Division CN101478730B (en) 2007-11-12 2008-10-21 Data exchanging method, system and device

Publications (2)

Publication Number Publication Date
CN102170410A true CN102170410A (en) 2011-08-31
CN102170410B CN102170410B (en) 2014-01-22

Family

ID=40839350

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201110128825.8A Active CN102170410B (en) 2007-11-12 2008-10-21 Method, system and device for data exchange
CN2008101694705A Active CN101478730B (en) 2007-11-12 2008-10-21 Data exchanging method, system and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN2008101694705A Active CN101478730B (en) 2007-11-12 2008-10-21 Data exchanging method, system and device

Country Status (1)

Country Link
CN (2) CN102170410B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103390056A (en) * 2013-07-26 2013-11-13 国家电网公司 File transmission method and system
CN103970762A (en) * 2013-01-29 2014-08-06 三星电子(中国)研发中心 Method for exchanging user individualized data between intelligent equipment

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945156B (en) * 2010-09-01 2014-04-16 惠州Tcl移动通信有限公司 Method and device for backuping data information of mobile terminal
CN102073693A (en) * 2010-12-28 2011-05-25 广州杰赛科技股份有限公司 XML-based data communication method and system
CN103294697B (en) * 2012-02-24 2018-06-19 腾讯科技(北京)有限公司 A kind of data adaptive analysis method and device
CN103699633A (en) * 2013-12-23 2014-04-02 Tcl集团股份有限公司 Method and system for utilizing xml to realize generalization data exchange
CN106020863A (en) * 2016-05-06 2016-10-12 福建创意嘉和软件有限公司 A script accessory invoking method and device
CN106339362B (en) * 2016-08-31 2019-09-24 同方鼎欣科技股份有限公司 A kind of big Document encapsulation method of archive information packet and client

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1148678C (en) * 2000-05-23 2004-05-05 黎明网络有限公司 Exchange method and device of XML data information
CN1211746C (en) * 2002-06-26 2005-07-20 联想(北京)有限公司 Process of data exchange between a flush type system and external data base

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970762A (en) * 2013-01-29 2014-08-06 三星电子(中国)研发中心 Method for exchanging user individualized data between intelligent equipment
CN103390056A (en) * 2013-07-26 2013-11-13 国家电网公司 File transmission method and system

Also Published As

Publication number Publication date
CN101478730B (en) 2011-05-18
CN102170410B (en) 2014-01-22
CN101478730A (en) 2009-07-08

Similar Documents

Publication Publication Date Title
CN102170410B (en) Method, system and device for data exchange
CN1685684B (en) Method for archiving multimedia messages
CN1036691C (en) Electronic mail message delivery system
JP5743422B2 (en) MMS message transmission method with conversion of file type and / or file format, and subscriber terminal device
US7069301B2 (en) Method and apparatus for sending messages from an MMS system
CN100433867C (en) Method and apparatus for preventing personal data losing in mobile terminal
US20060078064A1 (en) Method and radio communication device for the transmission-efficent editing of multimedia news
JPH05506138A (en) Information transmission method in multi-service network
CN100349474C (en) Method for processing push notification in multimedia message service
CN101917520A (en) Conversion/backup method, equipment and system for mobile terminal data
CN1802841B (en) Terminal and server for the synchronization of contact data
CN101321185A (en) Terminal, data synchronization method and system between terminal and server
CN101193337A (en) MMS coding device
CN100384279C (en) Short message transmitting method, mobile phone and system applying the same
CN101193338A (en) MMS coding and transmission system
CN101278531B (en) Method and system for notifying a receipt of asynchronous messages
CN100407810C (en) Calling party information transmitting method of communication terminal
KR100594467B1 (en) A management method of memories in mobile station
CN101651852A (en) System ad method for sending mail by short message and replying mail sent by short message
CN102238494A (en) Multimedia messaging service transmission method, device and terminal
CA2312601A1 (en) Automated exchange of electronic information
CN100463402C (en) Method and device for recording display of communication information in communication system
CN101583103A (en) Transmitting or receiving method of short messages in text mode and device
CN101330437A (en) Method and apparatus for transmitting data based on wireless network
CN1901596A (en) Method for receiving fax by multimedia short message

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant