The method of operation and the device of transmission data between mobile phone
Technical field
The present invention relates to the communications field, relate in particular to the method for operation and the device of transmission data between mobile phone.
Background technology
Transfer of data between the mobile phone is all transmitted with Bluetooth technology usually, and all use usually by Bluetooth technology transmission personal information between the mobile phone agreement that should personal information is transmitted, such as when personal information is associated person information, to agreement that should information is ecommerce business card Vcard agreement, when personal information is calendar information or mission bit stream, corresponding protocols is an electronics schedule vcs agreement, when personal information was notepad information, corresponding protocols was an electronic notebook vnt agreement.Below between mobile phone, to use Vcard protocol transmission associated person information to describe the method for utilizing the protocol transmission personal information in detail as example.
Utilize the method for Vcard protocol transmission associated person information to comprise following steps as shown in Figure 1 in the prior art one:
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.
For addressing the aforementioned drawbacks, prior art two provides a kind of method of the Vcard of utilization protocol transmission associated person information again, and this method 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.
In realizing process of the present invention, the inventor finds said method, and there are the following problems:
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 personal information that does not import lost.
Summary of the invention
In view of above-mentioned existing in prior technology problem, embodiment of the present invention provide a kind of between mobile phone the method for operation and the device of transmission data, this method and apparatus can be avoided losing of the personal information that do not import.
Embodiment of the present invention is achieved through the following technical solutions:
The specific embodiment of the invention provides a kind of method of operation of transmitting data between mobile phone, and described method comprises:
The document of agreement that the receiving end/sending end mobile phone sends, described document of agreement carries personal information and personal information total quantity N, and the described personal information total quantity N and the quantity M of energy stored personal information are compared;
When M<N, import M personal information, the personal information that storage does not import.
The specific embodiment of the present invention also provides a kind of receiving terminal mobile device,
Described device comprises:
Receiving element: be used for the document of agreement that the receiving end/sending end mobile phone sends, described document of agreement carries personal information and personal information total quantity N;
Comparing unit: be used for the described personal information total quantity N and the quantity M of energy stored personal information are compared;
Import the unit, be used for comparing unit draw M<N as a result the time, import M personal information;
Memory cell: be used to store the personal information that does not import.
By the above-mentioned technical scheme that provides as can be seen, technical scheme of the present invention compares by quantity M that can stored personal information to the total quantity N receiving terminal mobile phone of personal information, make the receiving terminal mobile phone under the situation of M<N, import M personal information, and store the personal information that does not import, the personal information of having avoided not importing is lost.
Description of drawings
Fig. 1 is the flow chart of method described in the prior art one.
Fig. 2 is the flow chart of method described in the prior art two.
Fig. 3 is the flow chart of the embodiment of the invention 1 described method.
Fig. 4 is the structure chart of the described device of the specific embodiment of the invention.
Embodiment
Embodiment of the present invention provides a kind of method of operation of transmitting data between mobile phone.
The described method of embodiment of the present invention comprises, behind the document of agreement of receiving the corresponding described personal information that has personal information and personal information total quantity N that the transmitting terminal mobile phone sends, the described personal information total quantity N and the quantity M of energy stored personal information are compared; When M<N, import M personal information, the personal information that storage does not import.Said method when M 〉=N, import N personal information after, the document of agreement of the corresponding described personal information that has personal information and personal information total quantity N that deletion is received.Said method can be finished by the receiving terminal mobile phone.
The document of agreement of the corresponding described personal information that has personal information and personal information total quantity N that the transmitting terminal mobile phone in the said method sends can be realized by following step, here personal information is example with the associated person information, and associated person information corresponding protocols file is the Vcard file; Concrete operations can be encoded into a Vcard file with associated person information for the transmitting terminal mobile phone, and the total quantity N of associated person information are loaded into first row of Vcard file.Its first row that is loaded into the Vcard file can be realized by following method, TOTALNUMOBJS:21 can be loaded into first of Vcard file for the field that increases newly go, and this field is represented N=21.
The concrete operations of the personal information that the storage in the said method does not import are, store after the personal information that does not import being encoded into the document of agreement of the corresponding described personal information that has the personal information that does not import.Said method can also may further comprise the steps after storing the document of agreement of the corresponding described personal information that has not the personal information that imports again, with the document of agreement deletion of the corresponding described personal information that has personal information and personal information total quantity N that receives.This method can be finished by the receiving terminal mobile phone.
Above-mentioned personal information can be associated person information, calendar information, mission bit stream or notepad information; And the document of agreement of corresponding described personal information can be the corresponding Vcard file of, associated person information, the corresponding electronics schedule file of calendar information or mission bit stream Vcalendar file, the corresponding electronic notebook Vnote of notepad information file.
For better describing the described method of embodiment of the present invention, existing 3 pairs of the specific embodiment of the present invention in conjunction with the accompanying drawings describe:
Embodiment 1: a kind of method of operation of transmitting data between mobile phone that the specific embodiment of the present invention provides, the technology scene of present embodiment is, personal information is a calendar information, to document of agreement that should calendar information is the Vcalendar file, and the transmitting terminal mobile phone is encoded into a Vcalendar file cocurrent with the total quantity N of calendar information and this calendar information and gives the receiving terminal mobile phone.The concrete steps of this method are as follows:
11, after the receiving terminal mobile phone is received the Vcalendar file of the total quantity N that has calendar information and this calendar information, obtain the total quantity N of the calendar information in this Vcalendar file;
12, receiving terminal mobile phone calendar information quantity M that N and receiving terminal mobile phone can be stored compares; When M<N, carry out step 13~16; When M 〉=N, behind the completing steps 17, carry out step 16;
13, the receiving terminal mobile phone imports M calendar information;
14, the calendar information that will not import of receiving terminal mobile phone is encoded into another Vcalendar file that has the calendar information that does not import;
15, the receiving terminal mobile phone is stored another Vcalendar file;
16, the receiving terminal mobile phone is deleted the Vcalendar file of the total quantity N that has calendar information and this calendar information that receives.
17, the receiving terminal mobile phone imports N calendar information.
The method that the specific embodiment of the invention provides is by comparing the total quantity N of personal information and the quantity M of receiving terminal mobile phone energy stored personal information, make the receiving terminal mobile phone under the situation of M<N, import M personal information, and the personal information that do not import of storage, avoided losing of the personal information that do not import.
The specific embodiment of the present invention also provides a kind of receiving terminal mobile device, as shown in Figure 4, this device comprises: receiving element 41: the document of agreement that is used for the corresponding described personal information that has personal information and personal information total quantity N of receiving end/sending end mobile phone transmission; Comparing unit 42: be used for the described personal information total quantity N and the quantity M of energy stored personal information are compared; Import unit 43, be used for comparing unit 42 draw M<N as a result the time, import M personal information; Memory cell 44: be used to store the personal information that does not import.
Memory cell 44 in the said apparatus comprises: coding module 441, the personal information that is used for will be not importing be encoded into have the personal information that do not import the document of agreement of corresponding described personal information; Memory module 442 is used to store the described document of agreement that has the corresponding described personal information of the personal information that does not import.
Said apparatus can also comprise delete cells 45, be used for behind the described document of agreement that has a personal information that does not import of memory module 442 storage the described document of agreement that has the corresponding described personal information of personal information and personal information total quantity N that deletion receiving element 41 is received.
Identical in above-mentioned personal information and personal information corresponding protocols file and the described method of the specific embodiment of the invention just do not given unnecessary details here.
The described device of the specific embodiment of the invention, by the total quantity N of personal information and the quantity M of receiving terminal mobile phone energy stored personal information are compared, make the receiving terminal mobile phone under the situation of M<N, import M personal information, and the personal information that do not import of storage, avoided losing of the personal information that do not import.
In sum, the technical scheme that the specific embodiment of the invention provides has the advantage that the personal information avoiding not importing is lost.
The above; only be the preferable embodiment of the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with those skilled in the art in the technical scope that the embodiment of the invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.