CN104320162B - Method for synchronizing contact persons, intelligent mobile terminal and mobile terminal - Google Patents

Method for synchronizing contact persons, intelligent mobile terminal and mobile terminal Download PDF

Info

Publication number
CN104320162B
CN104320162B CN201410494427.1A CN201410494427A CN104320162B CN 104320162 B CN104320162 B CN 104320162B CN 201410494427 A CN201410494427 A CN 201410494427A CN 104320162 B CN104320162 B CN 104320162B
Authority
CN
China
Prior art keywords
terminal
business card
electronic business
card file
file
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.)
Expired - Fee Related
Application number
CN201410494427.1A
Other languages
Chinese (zh)
Other versions
CN104320162A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201410494427.1A priority Critical patent/CN104320162B/en
Publication of CN104320162A publication Critical patent/CN104320162A/en
Application granted granted Critical
Publication of CN104320162B publication Critical patent/CN104320162B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for synchronizing contact persons, an intelligent mobile terminal and a mobile terminal, wherein the method for synchronizing the contact persons comprises the following steps: after the first terminal and the second terminal establish Bluetooth connection, packing contact information into an electronic business card file, and numbering the electronic business card file; the first terminal receives and analyzes the synchronous request sent by the second terminal to obtain the request type of the second terminal; and the first terminal sends the electronic business card file corresponding to the request type to the second terminal according to the request type. By the method, the contact can be quickly synchronized, the memory resources of the first terminal and the second terminal can be reduced, the loss of the contact information is effectively prevented, the real-time synchronization of the contact is enhanced, and convenience is brought to users.

Description

Method for synchronizing contact persons, intelligent mobile terminal and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a method for synchronizing contact persons, an intelligent mobile terminal and a mobile terminal.
Background
Along with the rapid development of mobile terminals and networks, people have an increasingly wide social range, and more contacts need to be stored. This puts higher demands on the size of the mobile terminal storage structure. However, although the intelligent terminal generally does not have to ask specific questions on the memory, the commonly used functional terminals, such as the old, are not so advanced.
However, in general, both the smart terminal and the function terminal have a bluetooth function, and it provides a possibility to synchronize the contact information in the smart terminal into the function terminal by using bluetooth.
In the prior art, a bluetooth PBAP protocol is provided, which can achieve synchronization between an intelligent terminal and a functional terminal, but in this method, contact information stored in the intelligent terminal is separated from information stored in an SIM card, the transmission process is also separated, the functional terminal needs to be re-mixed and sorted to achieve synchronization with the intelligent terminal, and this process consumes very large resources of the functional terminal and consumes relatively low time. In addition, because the memory of the intelligent terminal is far larger than that of the functional terminal, the functional terminal sends all the contacts simultaneously when synchronizing the contact information to the intelligent terminal, which not only wastes time, but also may cause the loss of the contact information due to insufficient memory of the functional terminal.
Disclosure of Invention
The invention mainly solves the technical problem of providing a method for synchronizing contact persons, an intelligent mobile terminal and a mobile terminal, which not only have short synchronization time, but also can reduce the memory resources of a first terminal and a second terminal, effectively prevent the loss of contact person information, enhance the real-time synchronization of the contact persons and bring convenience to users.
In order to solve the technical problems, the invention adopts a technical scheme that: a method for synchronizing contacts is provided, which comprises
After the first terminal and the second terminal establish Bluetooth connection, packing contact information into an electronic business card file, and numbering the electronic business card file;
the first terminal receives and analyzes the synchronous request sent by the second terminal to obtain the request type of the second terminal;
the first terminal sends an electronic business card file corresponding to the request type to the second terminal according to the request type; if the request type is a login request, the first terminal sends a first electronic business card file to a cache unit of the second terminal; if the request type is a browsing request, the first terminal acquires the number of a first electronic business card file displayed on a screen of the second terminal and a screen sliding instruction received by the second terminal from the synchronous request, and if the screen sliding instruction is downward sliding, the position of a contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file, and the number of the first electronic business card file is not the first one, the electronic business card file before the number of the first electronic business card file is sent to a cache unit of the second terminal; and if the screen sliding instruction is upward sliding, the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file, and the serial number of the first electronic business card file is not the last one, the electronic business card file numbered by the first electronic business card file is sent to the cache unit of the second terminal.
The method comprises the following steps that after the first terminal sends the corresponding electronic business card file to the second terminal, the following steps are also included:
the first terminal sends an update notification to the second terminal to inform the second terminal that the contact information in the first terminal is updated, wherein the update notification comprises the number of the electronic business card file to which the updated contact information belongs;
receiving an updating request sent by the second terminal, wherein the updating request is sent after the second terminal determines that the serial number of the first electronic business card file displayed on the screen is the same as the file serial number of the electronic business card file to which the updated contact information belongs;
and sending the updated electronic business card file to the second terminal.
And the contact list critical value of the first electronic business card file is the intermediate value of the number of contacts in the first electronic business card file.
In order to solve the technical problem, the invention adopts another technical scheme that: a method of synchronizing contacts is provided, comprising:
the second terminal allocates a first cache unit and a second cache unit;
after the second terminal establishes Bluetooth connection with the first terminal, judging the current state of the second terminal, and sending a synchronization request to the first terminal according to the state to obtain an electronic business card file corresponding to the synchronization request; wherein the synchronization request comprises a request type; the electronic business card file is obtained by the first terminal packaging and numbering the contact information stored in the first terminal; specifically, if the second terminal determines that the current state of the second terminal is a login state, that is, the first cache unit does not store any electronic business card file, a login request is sent to the first terminal, so as to obtain a first electronic business card file from the first terminal; if the second terminal determines that the current state of the second terminal is a browsing state, namely the first caching unit stores a first electronic business card file, acquiring a screen sliding instruction of a current screen, and if the screen sliding instruction is downward sliding, the position of a contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the first, sending a browsing request comprising the screen sliding instruction which slides downward and the number of the first electronic business card file to the first terminal so as to acquire the electronic business card file before the number of the first electronic business card file from the first terminal; if the screen sliding instruction is upward sliding, the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the last one, sending a browsing request comprising the upward sliding screen sliding instruction and the number of the first electronic business card file to the first terminal so as to obtain the electronic business card file numbered by the first electronic business card file from the first terminal;
and receiving and storing a second electronic business card file corresponding to the synchronization request returned by the first terminal into the second cache unit.
The step of receiving and storing the second electronic business card file corresponding to the synchronization request returned by the first terminal into the cache unit further comprises the following steps:
receiving an update notification sent by the first terminal, wherein the update notification comprises a file number of an electronic business card file to which updated contact information belongs;
judging whether the file number of the first electronic business card file displayed on the current screen is the same as the file number of the electronic business card file to which the updated contact information belongs;
if the file number of the first electronic business card file is the same as the file number of the electronic business card file to which the updated contact information belongs, sending an updating request to the first terminal;
and receiving the updated electronic business card file sent by the first terminal.
And the critical value of the first electronic business card file is the intermediate value of the number of the contact persons in the first electronic business card file.
In order to solve the technical problem, the invention adopts another technical scheme that: an intelligent mobile terminal is provided, which comprises a file packaging module, a receiving module, a control module and a sending module,
the file packaging module is used for packaging the contact information stored by the first terminal into an electronic business card file after the intelligent mobile terminal is connected with the second terminal through Bluetooth and is also used for numbering the electronic business card file;
the receiving module is further configured to receive a contact synchronization request sent by the second terminal;
the control module is used for analyzing the synchronous request to obtain the request type of the second terminal;
the sending module is used for sending the electronic business card file corresponding to the request type to the second terminal according to the request type; the sending module is specifically used for sending the first electronic business card file to a cache unit of the second terminal when the request type is a login request; when the request type is a browsing request, the control module acquires a serial number of a first electronic business card file displayed on a screen of the second terminal and a screen sliding instruction from the synchronous request, wherein the screen sliding instruction is downward sliding, the position of a contact currently displayed on the screen exceeds a critical value of the first electronic business card file, and the serial number of the first electronic business card file is not the first one, the electronic business card file before the serial number of the first electronic business card file is sent to a cache unit of the second terminal; and when the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file and the serial number of the first electronic business card file is not the last one, the electronic business card file numbered by the first electronic business card file is sent to the cache unit of the second terminal.
The sending module is further used for the second terminal to send an update notification to inform the second terminal that the contact information is updated, wherein the update notification includes a file number of an electronic business card file to which the updated contact information belongs;
the receiving module is further configured to receive a contact person updating request sent by the second terminal, where the contact person updating request is sent after the second terminal determines that the file number of the first electronic business card file displayed on the screen is the same as the file number of the electronic business card file to which the updated contact person information belongs;
the sending module is further used for sending the updated electronic business card file to the second terminal.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided a mobile terminal including an allocation module, a control module, a transmission module, and a reception module,
the distribution module is used for distributing a first cache unit and a second cache unit;
the control module is used for judging the current state of the second terminal after the mobile terminal establishes Bluetooth connection with the first terminal, and the sending module is used for sending a synchronization request to the first terminal according to the state so as to obtain an electronic business card file corresponding to the synchronization request; wherein the synchronization request comprises a request type; the electronic business card file is obtained by the first terminal packaging and numbering the contact information stored in the first terminal; the sending module is specifically configured to send a login request to the first terminal when the second terminal determines that the current state of the second terminal is a login contact state, that is, when the first cache unit does not store any electronic business card file, so as to obtain a first electronic business card file from the first terminal; the sending module is further configured to determine that the current state of the second terminal is a browsing state, that is, the first cache unit stores a first electronic business card file, the control module obtains a screen sliding instruction of a current screen, and if the screen sliding instruction is downward sliding, and the position of a contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the first one, sends a browsing request including the screen sliding instruction of the downward sliding and the number of the first electronic business card file to the first terminal, so as to obtain the electronic business card file before the number of the first electronic business card from the first terminal; the sending module is further configured to send a browsing request including the screen sliding instruction which slides upwards and the number of the first electronic business card file to the first terminal when the screen sliding instruction slides upwards, the position of the contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the last one, so as to obtain the electronic business card file numbered by the first electronic business card file from the first terminal;
and the receiving module is used for receiving and storing a second electronic business card file which is returned by the first terminal and corresponds to the synchronization request into the second cache unit.
The receiving module is further used for receiving an update notification sent by the first terminal, wherein the update notification comprises a file number of an electronic business card file to which updated contact information belongs;
the control module is also used for judging whether the file number of the first electronic business card file displayed on the current screen is the same as the file number of the electronic business card file to which the updated contact information belongs;
the sending module is further used for sending an updating request to the first terminal when the file number of the first electronic business card file is the same as the file number of the electronic business card file to which the updated contact information belongs;
the receiving module is also used for receiving the updated electronic business card file sent by the first terminal. The invention has the beneficial effects that: different from the situation of the prior art, the first terminal and the second terminal are connected through Bluetooth, the first terminal packages the contact information stored by the first terminal into at least two electronic business card files, each electronic business card file is numbered, and according to the type of a synchronous request of the second terminal, the first terminal sends the first electronic business card file to the second terminal when the request type is a login request. And when the request type is a browsing request, the first terminal determines the electronic business card file sent to the second terminal according to the screen sliding instruction and the serial number of the first electronic business card file displayed on the screen of the second terminal. The contact information is transmitted after being packaged, so that the transmission speed is high, and only one electronic business card file is sent to the second terminal at each time according to the screen sliding instruction of the second terminal, so that all the contact information in the first terminal can be displayed on the screen of the second terminal, the memory resources of the functional terminal can be reduced, and the electronic business card file of the first terminal is divided into parts according to the sequence of the contact information directly stored in the electronic business card file, so that the sequence of the contact information in the second terminal is completely consistent with the sequence of the contact information stored in the first terminal, the memory resources of the first terminal are further saved, the contact information can be effectively prevented from being lost, the synchronization real-time performance of the contact is enhanced, and convenience is brought to a user.
Drawings
FIG. 1 is a schematic diagram of a synchronization contact system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram illustrating one embodiment of a method for synchronizing contacts according to the present invention;
FIG. 3 is a flowchart of one embodiment of a method of synchronizing contacts of FIG. 2;
FIG. 4 is a schematic flow chart diagram illustrating another embodiment of a method for synchronizing contacts according to the present invention;
FIG. 5 is a schematic flow chart diagram illustrating a further embodiment of a method for synchronizing contacts according to the present invention;
FIG. 6 is a schematic flow chart diagram illustrating yet another embodiment of a method for synchronizing contacts according to the present invention;
FIG. 7 is a schematic structural diagram of an embodiment of an intelligent mobile terminal according to the present invention;
fig. 8 is a schematic structural diagram of an embodiment of a mobile terminal according to the present invention.
Detailed Description
Referring to fig. 1, fig. 1 is a schematic structural diagram of an embodiment of a synchronous contact system according to the present invention. The synchronous contact system of the present embodiment includes a first terminal 101 and a second terminal 102. The first terminal 101 is an intelligent mobile terminal with a large memory, the second terminal 102 is a mobile terminal with a small memory, and may be an intelligent mobile terminal, a functional terminal, or other electronic terminal devices that can store and browse contact information, which is not limited herein. The first terminal 101 and the second terminal 102 establish a connection via bluetooth.
In order to synchronize the contact information stored in the first terminal 101 to the second terminal 102 with limited memory resources, after the first terminal 101 establishes a connection with the second terminal 102 through bluetooth, the contact information stored in the first terminal 101 is divided into at least two parts and packaged into an electronic business card file, where the stored contact information may be contact information corresponding to all contacts of the first terminal 101 or part of contact information required by the second terminal 102, and this is not limited here.
The second terminal 102 sends a synchronization request to the first terminal 101, and correspondingly, the first terminal 101 receives and analyzes the synchronization request, thereby obtaining a request type of the synchronization request.
It should be noted that before the second terminal 102 sends the synchronization request to the first terminal 101, the second terminal 102 allocates two cache units, that is, a first cache unit and a second cache unit, first cache unit is used for storing the electronic business card file currently displayed on the screen of the first terminal, and second cache unit is used for caching the electronic business card file corresponding to the synchronization request sent by the first terminal.
If the current first cache unit does not store any electronic business card file, the second terminal 102 sends a login request to the first terminal 101. Correspondingly, the first terminal 101 sends the first electronic business card file to the second cache unit of the second terminal 102.
If the electronic business card file is stored in the current first cache unit, the second terminal 102 obtains a currently received screen sliding instruction sent to the screen by the user, if the screen sliding instruction is downward sliding, the position of a contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the first one, the second terminal 102 sends a browsing request comprising the downward sliding screen sliding instruction and the number of the first electronic business card file to the first terminal 101, so that the electronic business card file before the number of the first electronic business card file is obtained from the first terminal 101. Correspondingly, the first terminal 101 sends the electronic business card file before the first electronic business card file number to the second cache unit of the second terminal 102. In another embodiment, the second terminal 102 receives a downward sliding of the user's finger, and the generated screen sliding instruction is upward, which is not limited herein.
If the screen sliding instruction received by the second terminal 102 is upward sliding, and the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the last one, sending a browsing request including the upward sliding screen sliding instruction and the number of the first electronic business card file to the first terminal 101, so as to obtain the electronic business card file numbered by the first electronic business card file from the first terminal 101. Correspondingly, the first terminal 101 sends the electronic business card file numbered by the first electronic business card file to the second cache unit of the second terminal 102.
Through the mode, the first terminal and the second terminal are connected through the Bluetooth, the first terminal packs the contact information stored by the first terminal into at least two electronic business card files, each electronic business card file is numbered, and according to the type of the synchronous request of the second terminal, the first terminal sends the first electronic business card file to the second terminal when the request type is a login request. And when the request type is a browsing request, the first terminal determines the electronic business card file sent to the second terminal according to the screen sliding instruction and the serial number of the first electronic business card file displayed on the screen of the second terminal. The contact information is transmitted after being packaged, so that the transmission speed is high, and only one electronic business card file is sent to the second terminal at each time according to the screen sliding instruction of the second terminal, so that all the contact information in the first terminal can be displayed on the screen of the second terminal, the memory resources of the functional terminal can be reduced, and the electronic business card file of the first terminal is divided into parts according to the sequence of the contact information directly stored in the electronic business card file, so that the sequence of the contact information in the second terminal is completely consistent with the sequence of the contact information stored in the first terminal, the memory resources of the first terminal are further saved, the contact information can be effectively prevented from being lost, the synchronization real-time performance of the contact is enhanced, and convenience is brought to a user.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an embodiment of a method for synchronizing contacts according to the present invention, where the embodiment of the present invention includes:
201: after the Bluetooth connection is established between the first terminal and the second terminal, the contact information is divided into at least two parts and packaged into electronic business card files respectively, and the electronic business card files are numbered.
In order to synchronize the contact information stored in the first terminal to a second terminal with limited memory resources, the first terminal divides the contact information stored in the first terminal into at least two parts and packs the two parts into an electronic business card file after establishing connection with the second terminal through bluetooth, wherein the stored contact information can be contact information corresponding to all contacts of the first terminal or part of contact information required by the second terminal, and the storage is not limited here.
And after the first terminal packs the contact information, numbering all electronic business card files. Preferably, the first terminal equally divides the contact information stored therein into at least two parts and packages the two parts into the electronic business card file, in other embodiments, the contact information stored in the first terminal may be divided into at least two parts with unequal numbers and packages the two parts into the electronic business card file. However, whether equally divided or unequally divided, each electronic business card file contains the number of contacts contained in the electronic business card file. The number of the electronic business card file can be continuous or discontinuous Arabic numerals such as 1, 2, 3 and 4, and can also be English letters or other types of letters as long as the rules are provided, and the method is not limited herein.
202: and the first terminal receives and analyzes the synchronous request sent by the second terminal to obtain the request type of the second terminal.
The second terminal sends a synchronization request to the first terminal for synchronizing the contact information stored in the first terminal, wherein the synchronization request comprises a request type of the synchronization request, and the request type comprises a login request and a browsing request. Correspondingly, the first terminal receives the synchronization request sent by the second terminal, analyzes the synchronization request and acquires the request type of the synchronization request.
203: and the first terminal sends the electronic business card file corresponding to the request type to the second terminal according to the request type.
To clarify the above process of Buddhist, further referring to FIG. 3, FIG. 3 is a flowchart illustrating one embodiment of the method of synchronizing contacts of FIG. 2.
303: after the first terminal acquires the synchronization request sent by the second terminal, if the request type of the synchronization request is a login request, the first terminal determines that any electronic business card file is not stored in the second terminal at present, the numbered first electronic business card file is sent to a cache unit of the second terminal for the second terminal to display, and therefore contact synchronization between the first terminal and the second terminal is achieved. 304: if the request type of the synchronous request is a browsing request, namely the first terminal determines that the current screen of the second terminal is displaying an electronic business card file synchronized by the first terminal, the first terminal further acquires the number of the first electronic business card file currently displayed by the screen of the second terminal and a screen sliding instruction received by the second terminal from the request type. The screen sliding instruction is obtained by the second terminal from a user when the second terminal screen is slid, if the screen sliding instruction of the first terminal is downward sliding, the position of a contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file, and the number of the first electronic business card file currently displayed on the screen of the second terminal is not the first one, step 305 is executed, and the first terminal sends the electronic business card file with the number in front of the first electronic business card file currently displayed on the second terminal to a cache unit of the second terminal.
If the screen sliding instruction is upward sliding, the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file, and the number of the first electronic business card file currently displayed on the screen of the second terminal is not the last one, step 306 is executed, and the first terminal sends the electronic business card file with the number behind the first electronic business card file currently displayed on the second terminal to the cache unit of the second terminal.
Preferably, the list threshold is the middle position of the number of contacts in the first electronic business card file, for example, there are 100 contacts in the first electronic business card file, the 50 th contact may be set as the threshold, and in another embodiment, the threshold may be the other places of the electronic business card file. In other embodiments, since the screen of the second terminal is limited, all the contact information of the first electronic business card file may not be fully displayed, and the electronic business card file may also set two critical values, such as an upper critical value and a lower critical value. And if the screen sliding instruction acquired from the request type by the first terminal is downward sliding, the position of the contact currently displayed on the screen of the second terminal exceeds the upper contact of the contact list of the first electronic business card file, and the number of the first electronic business card file is not the first one, sending the electronic business card file before the number of the first electronic business card file to a cache unit of the second terminal. And if the screen sliding instruction is upward sliding and the position of the contact currently displayed on the screen of the second terminal exceeds the lower critical value of the first electronic business card file, sending the electronic business card file numbered by the first electronic business card file to a cache unit of the second terminal.
Different from the prior art, in the embodiment, the first terminal and the second terminal are connected through bluetooth, the first terminal packages the contact information stored in the first terminal into at least two electronic business card files, each electronic business card file is numbered, and according to the type of the synchronous request of the second terminal, the first terminal sends the first electronic business card file to the second terminal when the request type is a login request. And when the request type is a browsing request, the first terminal determines the electronic business card file sent to the second terminal according to the screen sliding instruction and the serial number of the first electronic business card file displayed on the screen of the second terminal. The contact information is transmitted after being packaged, so that the transmission speed is high, and only one electronic business card file is sent to the second terminal at each time according to the screen sliding instruction of the second terminal, so that all the contact information in the first terminal can be displayed on the screen of the second terminal, the memory resources of the functional terminal can be reduced, and the electronic business card file of the first terminal is divided into parts according to the sequence of the contact information directly stored in the electronic business card file, so that the sequence of the contact information in the second terminal is completely consistent with the sequence of the contact information stored in the first terminal, the memory resources of the first terminal are further saved, the contact information can be effectively prevented from being lost, the synchronization real-time performance of the contact is enhanced, and convenience is brought to a user.
In another embodiment, referring to fig. 4, fig. 4 is a schematic structural diagram of another embodiment of the method for synchronizing contacts according to the present invention. The method for synchronizing contacts in the present embodiment is different from the method for synchronizing contacts in the previous embodiment in that the method in the present embodiment includes the following steps after the first terminal sends the electronic business card file corresponding to the request type to the second terminal according to the request type:
404: the first terminal sends an update notification to the second terminal to inform the second terminal that the contact information is updated.
After the contact information of the first terminal is updated, if the first terminal detects that a contact is added, or the contact information is deleted, or the contact information is changed, an update notification is sent to the second terminal to inform the second terminal that the contact information in the first terminal is updated, wherein the update notification comprises the number of the electronic business card file to which the updated contact information belongs. In another embodiment, the update notification includes not only the number of the updated contact information electronic business card file, but also the type of update, such as adding a contact, reducing the change of the contact or the contact information, and the like, which is not limited herein.
405: and receiving an updating request sent by the second terminal, wherein the updating request is sent after the second terminal determines that the serial number of the first electronic business card file displayed on the screen is the same as the file serial number of the electronic business card file to which the updated contact information belongs.
And after receiving the updating notification sent by the first terminal, the second terminal acquires the number of the electronic business card file of the updated contact information from the updating notification, judges whether the number is consistent with the number of the electronic business card file currently displayed on the screen of the second terminal, and if so, sends an updating request to the first terminal so as to acquire the latest contact information from the first terminal, and correspondingly, the first terminal receives the updating request. And if the change is inconsistent with the number of the electronic business card file currently displayed by the second terminal, the second terminal does not send an updating request to the first terminal so as to achieve the purpose of saving memory resources of the first terminal and the second terminal.
406: and sending the updated electronic business card file to the second terminal.
And after receiving an updating request returned by the second terminal according to the updating notification, the first terminal sends the corresponding updated electronic business card file to the second terminal.
Different from the prior art and the previous embodiment, the first terminal in the embodiment sends an update notification including the number of the updated electronic business card file to the second terminal after detecting that the contact information in the electronic business card file stored by the first terminal is changed, and sends the updated electronic business card file to the second terminal when the file number of the updated electronic business card file is the same as the number of the electronic business card file currently displayed by the second terminal, so that the second terminal can display the latest contact information. Through the mode, the contact synchronization of the first terminal and the second terminal can be realized, and the synchronous updating can be realized, so that convenience is further provided for users, the time is saved, and the convenience is brought for the users.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a method for synchronizing contacts according to another embodiment of the present invention. The method for synchronizing the contact persons in the embodiment comprises the following steps:
501: the second terminal allocates a first buffer unit and a second buffer unit.
In order to realize the function of synchronizing the contact information of the first terminal, the second terminal firstly allocates a first cache unit and a second cache unit. The first cache unit is used for storing a first electronic business card file currently displayed by the second terminal, and the second cache unit is used for storing the electronic business card file which is sent by the first terminal and corresponds to the synchronization request.
502: after the second terminal establishes Bluetooth connection with the first terminal, the current state of the second terminal is judged, and a synchronization request is sent to the first terminal according to the state so as to obtain an electronic business card file corresponding to the synchronization request.
Wherein the synchronization request comprises a request type; the electronic business card file is obtained by dividing the contact information stored by the first terminal into at least two parts, respectively packaging and numbering. Specifically, after the first terminal packages the contact information, all electronic business card files are numbered. Preferably, the first terminal equally divides the contact information stored therein into at least two parts and packages the two parts into the electronic business card file, in other embodiments, the contact information stored in the first terminal may be divided into at least two parts with unequal numbers and packages the two parts into the electronic business card file. However, whether equally divided or unequally divided, each electronic business card file contains the number of contacts contained in the electronic business card file. The number of the electronic business card file can be continuous or discontinuous Arabic numerals such as 1, 2, 3 and 4, and can also be English letters or other types of letters as long as the rules are provided, and the method is not limited herein.
Specifically, the second terminal sends a bluetooth connection request to the first terminal, and establishes a bluetooth connection with the first terminal after the first terminal receives the connection request of the second terminal. After the connection is completed, the second terminal judges the current state of the second terminal so as to determine the type of the synchronization request sent to the first terminal.
And if the second terminal determines that the current state of the second terminal is the login state, namely any electronic business card file is not stored in the first cache unit, the second terminal sends a login request to the first terminal so as to obtain a first electronic business card file from the first terminal.
And if the second terminal determines that the current state is the browsing state, namely the first caching unit stores the first electronic business card file, acquiring a screen sliding instruction of the current screen, wherein the screen sliding instruction is acquired when the user slides the screen of the second terminal. And if the screen sliding instruction is downward sliding, the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file where the contact is located, and the serial number of the first electronic business card file is not the first one, the second terminal sends a browsing request comprising the downward sliding screen sliding instruction and the serial number of the first electronic business card file to the first terminal so as to obtain the electronic business card file before the serial number of the first electronic business card file from the first terminal.
And if the screen sliding instruction is upward sliding, the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the last one, the second terminal sends a browsing request comprising the upward sliding screen sliding instruction and the number of the first electronic business card file to the first terminal so as to obtain the electronic business card file numbered by the first electronic business card file from the first terminal.
Preferably, the list threshold is a middle position of the number of contacts in the first electronic business card file, for example, there are 100 contacts in the first electronic business card file, the 50 th contact may be set as the threshold, in another embodiment, the threshold may also be other places of the electronic business card file, in other embodiments, because the screen of the second terminal is relatively limited, all the contact information of the first electronic business card file may not be completely displayed, and the electronic business card file may also set two thresholds, such as an upper threshold and a lower threshold. And if the screen sliding instruction acquired by the second terminal is downward sliding, the position of the contact currently displayed on the screen of the second terminal exceeds the upper contact of the contact list of the first electronic business card, and the number of the first electronic business card file is not the first one, sending a browsing request comprising the downward sliding screen sliding instruction to the first terminal. And if the screen sliding instruction is upward sliding and the position of the contact currently displayed on the screen of the second terminal exceeds the lower critical value of the first electronic business card file, the second terminal sends the screen sliding instruction comprising the downward sliding to the first terminal.
503: and receiving and storing a second electronic business card file corresponding to the synchronization request returned by the first terminal into the second cache unit.
After receiving a synchronization request sent by a second terminal, the first terminal analyzes the synchronization request, acquires a request type from the synchronization request, and sends a corresponding electronic business card file to a second cache unit of the second terminal according to the request type. Correspondingly, the second terminal receives a second electronic business card file which is sent by the first terminal and corresponds to the synchronization request.
Different from the prior art, in the embodiment, the second terminal allocates the first cache unit and the second cache unit, establishes a connection with the first terminal through bluetooth, determines the current state of the second terminal, and determines the type of the synchronization request sent to the first terminal according to the current state, so as to obtain the electronic business card file corresponding to the synchronization request from the first terminal, wherein the electronic business card file is obtained by packaging the contact information stored by the first terminal into at least two electronic business card files by the first terminal and numbering each electronic business card file. And if the current state of the second terminal is the login state, the second terminal sends a login request to the first terminal so as to acquire a first electronic business card file from the first terminal. And if the current state of the second terminal is a browsing state, the second terminal further acquires a screen sliding instruction, and sends a browsing request comprising the screen sliding instruction and the number of the first electronic business card file currently displayed on a screen of the second terminal to the first terminal so as to acquire the electronic business card file corresponding to the browsing request from the first terminal. The contact information is packaged and then transmitted through the first terminal, so that the transmission speed is high, the second terminal obtains a screen sliding instruction, the first terminal only sends one electronic business card file to the second terminal at each time, and all the contact information in the first terminal can be displayed on the screen of the second terminal on the premise of reducing memory resources of the functional terminal. And because the electronic business card file of the first terminal is directly divided into parts according to the sequence of the contact person information stored in the electronic business card file, the sequence of the contact person information in the second terminal is completely consistent with the sequence of the contact person information stored in the first terminal, the contact persons do not need to be further sequenced, the memory resource of the first terminal is further saved, the contact person information can be effectively prevented from being lost, the synchronization real-time performance of the contact persons is enhanced, and convenience is brought to users.
Referring to fig. 6, fig. 6 is a flowchart illustrating a method for synchronizing contacts according to still another embodiment of the present invention. The difference between this embodiment and the previous embodiment is that, in this embodiment, after receiving and storing the second electronic business card file corresponding to the synchronization request returned by the first terminal in the second cache unit, the second terminal further includes the following steps:
604: and receiving an update notification sent by the first terminal, wherein the update notification comprises a file number of an electronic business card file to which the updated contact information belongs.
After the contact information of the first terminal is updated, if the first terminal detects that a contact is added, or the contact information is deleted, or the contact information is changed, an update notification is sent to the second terminal to inform the second terminal that the contact information in the first terminal is updated, wherein the update notification comprises the number of the electronic business card file to which the updated contact information belongs. In another embodiment, the update notification includes not only the number of the updated contact information electronic business card file, but also the type of update, such as adding a contact, reducing the change of the contact or the contact information, and the like, which is not limited herein. After the first terminal sends the update notification to the second terminal, the second terminal receives the update notification accordingly.
605: and judging whether the file number of the first electronic business card file displayed on the current screen is the same as the file number of the electronic business card file to which the updated contact information belongs.
606: and if the file number of the first electronic business card file is the same as the file number of the electronic business card file to which the updated contact information belongs, sending an updating request to the first terminal.
And after receiving the updating notification sent by the first terminal, the second terminal acquires the number of the electronic business card file of the updated contact information from the updating notification, judges whether the number is consistent with the number of the electronic business card file currently displayed on the screen of the second terminal, and sends an updating request to the first terminal to acquire the latest contact information from the first terminal if the number is consistent with the number of the electronic business card file currently displayed on the screen of the second terminal. And if the number of the electronic file to which the updated contact information belongs is not consistent with the number of the currently displayed electronic business card file, the second terminal does not send an updating request to the first terminal, so that the aim of saving memory resources of the first terminal and the second terminal is fulfilled.
607: and receiving the updated electronic business card file sent by the first terminal.
And after receiving an updating request returned by the second terminal according to the updating notification, the first terminal sends the corresponding updated electronic business card file to the second terminal, and correspondingly, the second terminal receives the updated electronic business card file sent by the first terminal.
Different from the prior art and the previous embodiment, the second terminal in this embodiment, after receiving the update notification including the updated serial number of the electronic business card file sent by the first terminal, determines whether the file serial numbers of the first electronic business card file displayed on the current screen and the electronic business card file to which the updated contact belongs are the same, and if so, the second terminal sends the update request to the first terminal, so as to obtain the updated electronic business card file from the first terminal.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of an intelligent mobile terminal according to the present invention. The intelligent mobile terminal in this embodiment includes a file packaging module 701, a receiving module 702, a control module 703, and a sending module 704.
The file packaging module 701 is used for dividing the contact information stored by the intelligent mobile terminal into at least two parts and respectively packaging the two parts into electronic business card files after the Bluetooth connection is established between the intelligent mobile terminal and the second terminal, and is also used for numbering the electronic business card files.
In order to synchronize the contact information stored on the intelligent mobile terminal to a second terminal with limited memory resources, after the intelligent mobile terminal establishes a connection with the second terminal through bluetooth, the file packaging module 701 divides the contact information stored in the intelligent mobile terminal into at least two parts and respectively packages the two parts into an electronic business card file, wherein the stored contact information may be contact information corresponding to all contacts or part of contact information required by the second terminal, and the storage is not limited here.
After the file packaging module 701 completes packaging of the contact information, all electronic business card files are numbered. Preferably, the file packaging module 701 equally divides the contact information stored in the intelligent mobile terminal into at least two parts and respectively packages the two parts into electronic business card files. In other embodiments, the contact information stored in the intelligent mobile terminal may also be divided into at least two parts with different numbers and packaged into electronic business card files respectively. However, whether equally divided or unequally divided, each electronic business card file contains the number of contacts contained in the electronic business card file. The number of the electronic business card file can be continuous or discontinuous Arabic numerals such as 1, 2, 3 and 4, and can also be English letters or other types of letters as long as the rules are provided, and the method is not limited herein.
The receiving module 702 is configured to receive a contact synchronization request sent by the second terminal.
The second terminal sends a synchronization request to the intelligent mobile terminal to synchronize the contact information stored in the intelligent mobile terminal, wherein the synchronization request comprises a request type of the synchronization request, and the request type comprises a login request and a browsing request. Correspondingly, the receiving module 702 receives the synchronization request sent by the second terminal, and analyzes the synchronization request to obtain the request type of the synchronization request.
The control module 703 is configured to parse the synchronization request to obtain a request type of the second terminal. The sending module 704 is configured to send an electronic business card file corresponding to the request type to the second terminal according to the request type.
After the receiving module 702 obtains the synchronization request sent by the second terminal, if the control module 703 determines that the request type of the synchronization request is a login request, that is, no electronic business card file is currently stored in the second terminal, the sending module 704 sends the numbered first electronic business card file to the cache unit of the second terminal for the second terminal to display, so as to implement contact synchronization between the intelligent mobile terminal and the second terminal.
If the control module 703 determines that the request type of the synchronization request is a browsing request, that is, the current screen of the second terminal is displaying an electronic business card file synchronized by the first terminal, the control module 701 further obtains, from the request type, the number of the first electronic business card file currently being displayed by the screen of the second terminal and a screen sliding instruction received by the second terminal. The screen sliding instruction is obtained by the second terminal from the user when the second terminal screen is slid, if the screen sliding instruction is downward sliding, and the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file, and the number of the first electronic business card file currently displayed on the second terminal screen is not the first one, the sending module 704 sends the electronic business card file with the number in front of the first electronic business card file currently displayed on the second terminal screen to the cache unit of the second terminal.
If the control module 703 determines that the sliding instruction of the second terminal screen is upward sliding, and the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file, and the number of the first electronic business card file currently displayed on the second terminal screen is not the last one, the sending module 704 sends the electronic business card file with the number behind the first electronic business card file currently displayed on the second terminal to the cache unit of the second terminal.
Preferably, the list threshold is the middle position of the number of contacts in the first electronic business card file, for example, there are 100 contacts in the first electronic business card file, the 50 th contact may be set as the threshold, and in another embodiment, the threshold may be the other places of the electronic business card file. In other embodiments, since the screen of the second terminal is limited, all the contact information of the first electronic business card file may not be fully displayed, and the electronic business card file may also set two critical values, such as an upper critical value and a lower critical value. If the screen sliding instruction acquired from the request type by the first terminal is downward sliding, the position of the contact currently displayed on the screen of the second terminal exceeds the upper end contact of the contact list of the first electronic business card file, and the number of the first electronic business card file is not the first one, the sending module is used for sending the electronic business card file before the number of the first electronic business card file to the cache unit of the second terminal. And if the screen sliding instruction is upward sliding and the position of the contact currently displayed on the screen of the second terminal exceeds the lower critical value of the first electronic business card file, the sending module sends the electronic business card file numbered by the first electronic business card file to a cache unit of the second terminal.
Different from the prior art, the intelligent mobile terminal and the second terminal are connected through Bluetooth, the file packaging module of the first terminal packages contact information stored in the first terminal into at least two electronic business card files, each electronic business card file is numbered, the control module sends the first electronic business card file to the second terminal according to the type of a synchronization request received by the receiving module from the second terminal when the request type is a login request. And when the request type is a browsing request, the sending module determines the electronic business card file sent to the second terminal according to the screen sliding instruction obtained by the analysis of the control module and the serial number of the first electronic business card file displayed on the screen of the second terminal. The contact information is transmitted after being packaged, so that the transmission speed is high, and only one electronic business card file is sent to the second terminal at each time according to the screen sliding instruction of the second terminal, so that all the contact information in the intelligent mobile terminal can be displayed on the screen of the second terminal, the memory resources of the functional terminal can be reduced, and the electronic business card file of the intelligent mobile terminal is divided into parts according to the sequence of the contact information directly stored in the electronic business card file, so that the contact information sequence in the second terminal can be ensured to be completely consistent with the contact sequence stored in the intelligent mobile terminal, the memory resources of the first terminal are further saved, the contact information can be effectively prevented from being lost, the synchronous real-time performance of the contacts is enhanced, and convenience is brought to a user.
In another embodiment, further as shown in figure 7,
the sending module 704 is further configured to send an update notification to the second terminal to inform the second terminal that the contact information is updated.
After the contact information of the intelligent mobile terminal is updated, if the control module 703 detects that a contact is added, or the contact information is deleted, or the contact information is changed, the sending module 704 sends an update notification to the second terminal to notify that the second terminal has the contact information updated, wherein the update notification includes the number of the electronic business card file to which the updated contact information belongs. In another embodiment, the update notification includes not only the number of the updated contact information electronic business card file, but also the type of update, such as adding a contact, reducing the change of the contact or the contact information, and the like, which is not limited herein.
The receiving module 702 is further configured to receive a contact person update request sent by the second terminal, where the contact person update request is sent after the second terminal determines that the file number of the first electronic business card file displayed on the screen is the same as the file number of the electronic business card file to which the updated contact person information belongs.
After receiving the update notification sent by the first terminal, the second terminal obtains the number of the electronic business card file of the updated contact information from the update notification, judges whether the number is consistent with the number of the electronic business card file currently displayed on the screen of the second terminal, if so, sends an update request to the intelligent mobile terminal to obtain the latest contact information from the intelligent mobile terminal, and correspondingly, the receiving module 702 receives the contact update request sent by the second terminal. And if the change is inconsistent with the number of the electronic business card file currently displayed by the second terminal, the second terminal does not send an updating request to the intelligent mobile terminal, so that the aim of saving memory resources of the intelligent mobile terminal and the second terminal is fulfilled.
The sending module 704 is further configured to send the updated electronic business card file to the second terminal.
After the receiving module 702 receives the update request returned by the second terminal according to the update notification, the sending module 704 sends the corresponding updated electronic business card file to the second terminal.
Different from the prior art and the previous embodiment, in the embodiment, after the control module of the intelligent mobile terminal detects that the contact information in the electronic business card file stored in the intelligent mobile terminal changes, the sending module sends an update notification including the updated serial number of the electronic business card file to the second terminal, and when the control module determines that the file serial number of the updated electronic business card file is the same as the serial number of the electronic business card file currently displayed by the second terminal, the sending module sends the updated electronic business card file to the second terminal, so that the second terminal can display the latest contact information. Through the mode, the contact synchronization of the intelligent mobile terminal and the second terminal can be realized, and the synchronous updating can be realized, so that convenience is further provided for users, the time is saved, and the convenience is brought for the users.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a mobile terminal according to the present invention. The mobile terminal of the present embodiment includes an assignment module 801, a control module 802, a transmission module 803, and a reception module 804,
the allocation module 801 is configured to allocate a first buffer unit and a second buffer unit.
In order to implement the function of synchronizing the contact information of the first terminal, the allocating module 701 allocates the first cache unit and the second cache unit first. The first cache unit is used for storing a first electronic business card file currently displayed by the second terminal, and the second cache unit is used for storing the electronic business card file which is sent by the first terminal and corresponds to the synchronization request.
The control module 802 is configured to determine a current state of the mobile terminal after the mobile terminal establishes a bluetooth connection with the first terminal, and the sending module 803 is configured to send a synchronization request to the first terminal according to the state to obtain an electronic business card file corresponding to the synchronization request.
Wherein the synchronization request comprises a request type; the electronic business card file is obtained by dividing the contact information stored by the first terminal into at least two parts, respectively packaging and numbering. Specifically, after the first terminal packages the contact information, all electronic business card files are numbered. Preferably, the first terminal equally divides the contact information stored therein into at least two parts and packages the two parts into the electronic business card file, in other embodiments, the contact information stored in the first terminal may be divided into at least two parts with unequal numbers and packages the two parts into the electronic business card file. However, whether equally divided or unequally divided, each electronic business card file contains the number of contacts contained in the electronic business card file. The number of the electronic business card file can be continuous or discontinuous Arabic numerals such as 1, 2, 3 and 4, and can also be English letters or other types of letters as long as the rules are provided, and the method is not limited herein.
Specifically, the mobile terminal sends a bluetooth connection request to the first terminal, and establishes a bluetooth connection with the first terminal after the first terminal receives the connection request of the mobile terminal. After the connection is completed, the control module 802 of the mobile terminal determines the current state of the mobile terminal to determine the type of the synchronization request sent to the first terminal.
If the control module 802 determines that the current state of the mobile terminal is the login state, that is, if any electronic business card file is not stored in the first cache unit, the sending module 803 sends a login request to the first terminal, so as to obtain a first electronic business card file from the first terminal.
If the control module 802 determines that the current state of the mobile terminal is the browsing state, that is, when the first cache unit stores the first electronic business card file, a screen sliding instruction of the current screen is obtained, where the screen sliding instruction is obtained from a user when the user slides the screen of the mobile terminal. If the screen sliding instruction is downward sliding, and the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the first one, the sending module 803 sends the browsing request including the downward sliding screen sliding instruction and the number of the first electronic business card file to the first terminal, so as to obtain the electronic business card file before the number of the first electronic business card file from the first terminal.
If the screen sliding instruction is upward sliding, and the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the last one, the sending module 803 sends the browsing request including the upward sliding screen sliding instruction and the number of the first electronic business card file to the first terminal, so as to obtain the electronic business card file numbered by the first electronic business card file from the first terminal.
Preferably, the list threshold is a middle position of the number of contacts in the first electronic business card file, for example, there are 100 contacts in the first electronic business card file, the 50 th contact may be set as the threshold, in another embodiment, the threshold may also be other places of the electronic business card file, in other embodiments, because the screen of the second terminal is relatively limited, all the contact information of the first electronic business card file may not be completely displayed, and the electronic business card file may also set two thresholds, such as an upper threshold and a lower threshold. If the screen sliding instruction acquired by the mobile terminal is downward sliding, the position of the contact currently displayed on the screen of the mobile terminal exceeds the upper end contact of the contact list of the first electronic business card file, and the number of the first electronic business card file is not the first one, the sending module sends the browsing request comprising the downward sliding screen sliding instruction to the first terminal. And if the screen sliding instruction is upward sliding and the position of the contact currently displayed on the screen of the mobile terminal exceeds the lower critical value of the first electronic business card file, the sending module sends the screen sliding instruction including the downward sliding to the first terminal.
The receiving module 804 is configured to receive and store a second electronic business card file corresponding to the synchronization request, which is returned by the first terminal, into the second cache unit.
After receiving a synchronization request sent by the mobile terminal, the first terminal analyzes the synchronization request, acquires a request type from the synchronization request, and sends a corresponding electronic business card file to a second cache unit of the mobile terminal according to the request type. Correspondingly, the receiving module 804 receives the second electronic business card file corresponding to the synchronization request sent by the first terminal.
Different from the prior art, in the embodiment, the allocation module of the mobile terminal allocates the first cache unit and the second cache unit first, then establishes a connection with the first terminal through bluetooth, the control module judges the current state of the first cache unit, and the sending module determines the type of the synchronization request sent to the first terminal according to the current state so as to obtain the electronic business card file corresponding to the synchronization request from the first terminal, wherein the electronic business card file is obtained by the first terminal by packaging the contact information stored in the first terminal into at least two electronic business card files and numbering each electronic business card file. If the current state of the mobile terminal is the login state, the sending module sends a login request to the first terminal so as to obtain a first electronic business card file from the first terminal. If the current state of the mobile terminal is a browsing state, the mobile terminal further acquires a screen sliding instruction, and sends a browsing request comprising the screen sliding instruction and the number of the first electronic business card file currently displayed on the screen of the mobile terminal to the first terminal so as to acquire the electronic business card file corresponding to the browsing request from the first terminal. The contact information is packaged and then transmitted through the first terminal, so that the transmission speed is high, the mobile terminal obtains a screen sliding instruction, the first terminal only sends one electronic business card file to the mobile terminal at each time, and all the contact information in the first terminal can be displayed on the screen of the mobile terminal on the premise of reducing memory resources of the functional terminal. And because the electronic business card file of the first terminal is directly divided into the stored contact person information sequence, the contact person information sequence in the second terminal is completely consistent with the contact person sequence stored in the first terminal, the contact persons do not need to be further sequenced, the memory resource of the first terminal is further saved, the contact person information can be effectively prevented from being lost, the synchronization real-time performance of the contact persons is enhanced, and convenience is brought to users.
In another embodiment, with further reference to fig. 8,
the receiving module 804 is further configured to receive an update notification sent by the first terminal, where the update notification includes a file number of an electronic business card file to which updated contact information belongs.
After the contact information of the first terminal is updated, if the first terminal detects that a contact is added, or the contact information is deleted, or the contact information is changed, an update notification is sent to the mobile terminal to inform the mobile terminal that the contact information in the first terminal is updated, wherein the update notification comprises the number of the electronic business card file to which the updated contact information belongs. In another embodiment, the update notification includes not only the number of the updated contact information electronic business card file, but also the type of update, such as adding a contact, reducing the change of the contact or the contact information, and the like, which is not limited herein. After the first terminal sends the update notification to the second terminal, the second terminal receives the update notification accordingly.
The control module 802 is further configured to determine whether the file number of the first electronic business card file displayed on the current screen is the same as the file number of the electronic business card file to which the updated contact information belongs. The sending module 803 is further configured to send an update request to the first terminal when the file number of the first electronic business card file is the same as the file number of the electronic business card file to which the updated contact information belongs.
After the mobile terminal receives the update notification sent by the first terminal, the control module 802 obtains the number of the electronic business card file of the updated contact information from the update notification, and determines whether the number is consistent with the number of the electronic business card file currently displayed on the screen of the mobile terminal, if so, the sending module 803 sends an update request to the first terminal to obtain the latest contact information from the first terminal. If the number of the electronic file to which the updated contact information belongs is not consistent with the number of the currently displayed electronic business card file, the sending module 803 does not send an update request to the first terminal, so as to achieve the purpose of saving memory resources of the first terminal and the mobile terminal.
The receiving module 804 is further configured to receive the updated electronic business card file sent by the first terminal.
After receiving an update request returned by the mobile terminal according to the update notification, the first terminal sends the corresponding updated electronic business card file to the mobile terminal, and correspondingly, the receiving module 804 receives the updated electronic business card file sent by the first terminal.
Different from the prior art and the previous embodiment, in this embodiment, after receiving an update notification including an updated electronic business card file serial number sent by the first terminal, the receiving module 804 of the mobile terminal determines whether the file serial numbers of the first electronic business card file displayed on the current screen and the electronic business card file to which the updated contact belongs are the same, and if so, the sending module sends an update request to the first terminal to obtain the updated electronic business card file from the first terminal.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method of synchronizing contacts, comprising:
after the first terminal and the second terminal establish Bluetooth connection, packing contact information into an electronic business card file, and numbering the electronic business card file;
the first terminal receives and analyzes the synchronous request sent by the second terminal to obtain the request type of the second terminal;
the first terminal sends an electronic business card file corresponding to the request type to the second terminal according to the request type; if the request type is a login request, the first terminal sends a first electronic business card file to a cache unit of the second terminal; if the request type is a browsing request, the first terminal acquires the number of a first electronic business card file displayed on a screen of the second terminal and a screen sliding instruction received by the second terminal from the synchronous request, and if the screen sliding instruction is downward sliding, the position of a contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file, and the number of the first electronic business card file is not the first one, the electronic business card file before the number of the first electronic business card file is sent to a cache unit of the second terminal; and if the screen sliding instruction is upward sliding, the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file, and the serial number of the first electronic business card file is not the last one, the electronic business card file numbered by the first electronic business card file is sent to the cache unit of the second terminal.
2. The method according to claim 1, wherein after the first terminal sends the corresponding electronic business card file to the second terminal, the method further comprises the following steps:
the first terminal sends an update notification to the second terminal to inform the second terminal that the contact information in the first terminal is updated, wherein the update notification comprises the number of the electronic business card file to which the updated contact information belongs;
receiving an updating request sent by the second terminal, wherein the updating request is sent after the second terminal determines that the serial number of the first electronic business card file displayed on the screen is the same as the file serial number of the electronic business card file to which the updated contact information belongs;
and sending the updated electronic business card file to the second terminal.
3. A method according to claim 1 or 2, wherein the contact list threshold value of the first electronic business card file is a median value of the number of contacts in the first electronic business card file.
4. A method of synchronizing contacts, comprising:
the second terminal allocates a first cache unit and a second cache unit;
after the second terminal establishes Bluetooth connection with the first terminal, judging the current state of the second terminal, and sending a synchronization request to the first terminal according to the state to obtain an electronic business card file corresponding to the synchronization request; wherein the synchronization request comprises a request type; the electronic business card file is obtained by the first terminal packaging and numbering the contact information stored in the first terminal; specifically, if the second terminal determines that the current state of the second terminal is a login state, that is, the first cache unit does not store any electronic business card file, a login request is sent to the first terminal, so as to obtain a first electronic business card file from the first terminal; if the second terminal determines that the current state of the second terminal is a browsing state, namely the first caching unit stores a first electronic business card file, acquiring a screen sliding instruction of a current screen, and if the screen sliding instruction is downward sliding, the position of a contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the first, sending a browsing request comprising the screen sliding instruction which slides downward and the number of the first electronic business card file to the first terminal so as to acquire the electronic business card file before the number of the first electronic business card file from the first terminal; if the screen sliding instruction is upward sliding, the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the last one, sending a browsing request comprising the upward sliding screen sliding instruction and the number of the first electronic business card file to the first terminal so as to obtain the electronic business card file numbered by the first electronic business card file from the first terminal;
and receiving and storing a second electronic business card file corresponding to the synchronization request returned by the first terminal into the second cache unit.
5. The method according to claim 4, wherein the step of receiving and saving the second electronic business card file corresponding to the synchronization request returned by the first terminal into the cache unit further comprises the following steps:
receiving an update notification sent by the first terminal, wherein the update notification comprises a file number of an electronic business card file to which updated contact information belongs;
judging whether the file number of the first electronic business card file displayed on the current screen is the same as the file number of the electronic business card file to which the updated contact information belongs;
if the file number of the first electronic business card file is the same as the file number of the electronic business card file to which the updated contact information belongs, sending an updating request to the first terminal;
and receiving the updated electronic business card file sent by the first terminal.
6. A method according to claim 4 or 5, wherein the threshold value of the first electronic business card file is an intermediate value of the number of contacts in the first electronic business card file.
7. An intelligent mobile terminal is characterized by comprising a file packaging module, a receiving module, a control module and a sending module,
the file packaging module is used for dividing the contact information stored by the intelligent mobile terminal into at least two parts and respectively packaging the two parts into an electronic business card file after the Bluetooth connection is established between the intelligent mobile terminal and the second terminal, and is also used for numbering the electronic business card file;
the receiving module is further configured to receive a contact synchronization request sent by the second terminal;
the control module is used for analyzing the synchronous request to obtain the request type of the second terminal;
the sending module is used for sending the electronic business card file corresponding to the request type to the second terminal according to the request type; the sending module is specifically used for sending the first electronic business card file to a cache unit of the second terminal when the request type is a login request; when the request type is a browsing request, the control module acquires a serial number of a first electronic business card file displayed on a screen of the second terminal and a screen sliding instruction from the synchronous request, wherein the screen sliding instruction is downward sliding, the position of a contact currently displayed on the screen exceeds a critical value of the first electronic business card file, and the serial number of the first electronic business card file is not the first one, the electronic business card file before the serial number of the first electronic business card file is sent to a cache unit of the second terminal; and when the position of the contact currently displayed on the screen exceeds the contact list critical value of the first electronic business card file and the serial number of the first electronic business card file is not the last one, the electronic business card file numbered by the first electronic business card file is sent to the cache unit of the second terminal.
8. The intelligent mobile terminal of claim 7,
the sending module is further used for the second terminal to send an update notification to inform the second terminal that the contact information is updated, wherein the update notification includes a file number of an electronic business card file to which the updated contact information belongs;
the receiving module is further configured to receive a contact person updating request sent by the second terminal, where the contact person updating request is sent after the second terminal determines that the file number of the first electronic business card file displayed on the screen is the same as the file number of the electronic business card file to which the updated contact person information belongs;
the sending module is further used for sending the updated electronic business card file to the second terminal.
9. A mobile terminal is characterized by comprising an allocation module, a control module, a sending module and a receiving module,
the distribution module is used for distributing a first cache unit and a second cache unit;
the control module is used for judging the current state of the mobile terminal after the mobile terminal establishes Bluetooth connection with a first terminal, and the sending module is used for sending a synchronization request to the first terminal according to the state so as to obtain an electronic business card file corresponding to the synchronization request; wherein the synchronization request comprises a request type; the electronic business card file is obtained by the first terminal packaging and numbering the contact information stored in the first terminal; the sending module is specifically configured to send a login request to the first terminal when the control module determines that the current state of the mobile terminal is a login contact state, that is, when the first cache unit does not store any electronic business card file, so as to obtain a first electronic business card file from the first terminal; the sending module is further configured to determine that the current state of the control module is a browsing state, that is, the first cache unit stores a first electronic business card file, the control module obtains a screen sliding instruction of a current screen, and if the screen sliding instruction is downward sliding, and a position of a contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the first one, send a browsing request including the screen sliding instruction of the downward sliding and the number of the first electronic business card file to the first terminal, so as to obtain the electronic business card file before the number of the first electronic business card file from the first terminal; the sending module is further configured to send a browsing request including the screen sliding instruction which slides upwards and the number of the first electronic business card file to the first terminal when the screen sliding instruction slides upwards, the position of the contact currently displayed on the screen exceeds a contact list critical value of the first electronic business card file where the contact is located, and the number of the first electronic business card file is not the last one, so as to obtain the electronic business card file numbered by the first electronic business card file from the first terminal;
and the receiving module is used for receiving and storing a second electronic business card file which is returned by the first terminal and corresponds to the synchronization request into the second cache unit.
10. The mobile terminal according to claim 9, wherein the receiving module is further configured to receive an update notification sent by the first terminal, where the update notification includes a file number of an electronic business card file to which updated contact information belongs;
the control module is also used for judging whether the file number of the first electronic business card file displayed on the current screen is the same as the file number of the electronic business card file to which the updated contact information belongs;
the sending module is further used for sending an updating request to the first terminal when the file number of the first electronic business card file is the same as the file number of the electronic business card file to which the updated contact information belongs;
the receiving module is also used for receiving the updated electronic business card file sent by the first terminal.
CN201410494427.1A 2014-09-24 2014-09-24 Method for synchronizing contact persons, intelligent mobile terminal and mobile terminal Expired - Fee Related CN104320162B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410494427.1A CN104320162B (en) 2014-09-24 2014-09-24 Method for synchronizing contact persons, intelligent mobile terminal and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410494427.1A CN104320162B (en) 2014-09-24 2014-09-24 Method for synchronizing contact persons, intelligent mobile terminal and mobile terminal

Publications (2)

Publication Number Publication Date
CN104320162A CN104320162A (en) 2015-01-28
CN104320162B true CN104320162B (en) 2020-12-25

Family

ID=52375355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410494427.1A Expired - Fee Related CN104320162B (en) 2014-09-24 2014-09-24 Method for synchronizing contact persons, intelligent mobile terminal and mobile terminal

Country Status (1)

Country Link
CN (1) CN104320162B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100404A (en) * 2015-05-26 2015-11-25 努比亚技术有限公司 Information processing method and device and terminal
CN107038150B (en) * 2016-02-03 2021-03-05 阿里巴巴集团控股有限公司 Filling-in method, system, terminal and server of form content
CN107623750A (en) * 2017-11-13 2018-01-23 深圳市沃特沃德股份有限公司 The method and apparatus of onboard system synchronous communication record
CN110535733B (en) * 2019-08-06 2021-12-21 无锡小净共享网络科技有限公司 Control method and device of household appliance, computer equipment and storage medium
CN112118344B (en) * 2020-09-25 2022-05-03 斑马网络技术有限公司 Double-telephone-book transmission method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742420A (en) * 2009-12-16 2010-06-16 深圳市戴文科技有限公司 Synchronization method, system and mobile terminal of name card information of users
CN102984240A (en) * 2012-11-21 2013-03-20 华为技术有限公司 Method and device for importing and exporting contacts
CN103067054A (en) * 2012-12-20 2013-04-24 广东欧珀移动通信有限公司 Delivering and receiving method in bulk of contact person information, device and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009147828A (en) * 2007-12-17 2009-07-02 Sony Ericsson Mobilecommunications Japan Inc Mobile terminal device, program, method and system for exchanging personal information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742420A (en) * 2009-12-16 2010-06-16 深圳市戴文科技有限公司 Synchronization method, system and mobile terminal of name card information of users
CN102984240A (en) * 2012-11-21 2013-03-20 华为技术有限公司 Method and device for importing and exporting contacts
CN103067054A (en) * 2012-12-20 2013-04-24 广东欧珀移动通信有限公司 Delivering and receiving method in bulk of contact person information, device and mobile terminal

Also Published As

Publication number Publication date
CN104320162A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104320162B (en) Method for synchronizing contact persons, intelligent mobile terminal and mobile terminal
CN110740479B (en) Method, terminal and network equipment for monitoring PDCCH
CN109842917B (en) Transmission method of system information block and user terminal
US20200067678A1 (en) Method and apparatus for transmitting and obtaining uplink harq feedback
US10095666B2 (en) Method and terminal for adding quick link
US11050526B2 (en) Method and apparatus for transmitting and obtaining uplink HARQ feedback
CN104852984A (en) Method and system for transmitting data between smart terminals based on multi-screen interaction
CN104391890A (en) Image loading method and system
CN110149180B (en) Distribution method of search space channel estimation number and terminal equipment
US20150154149A1 (en) Typesetting method, device and system
CN110222288B (en) Page display method, device and storage medium
CN110096375B (en) Method and device for sharing data by application programs and computer readable storage medium
CN108900855B (en) Live content recording method and device, computer readable storage medium and server
CN103647870A (en) Terminal and terminal expression display method
CN102970125A (en) Method and device for synchronizing time in close distance
CN111277361A (en) Transmission block size determination method and communication device
CN105722065B (en) A kind of communication means, without card wearable device and mobile terminal
CN109120380A (en) Retransfer scheduling method, base station and terminal
CN101447874B (en) Data synchronization method, client and server
CN104917877A (en) Method for displaying prompt information and system displaying prompt information
CN111278125B (en) Transmission method, terminal equipment and network side equipment
CN205283611U (en) End and server end news information will be moved and synchronous device will be carried out
CN105511587B (en) Method and device for controlling radio frequency link
CN107135516B (en) Parameter test processing method, mobile terminal and computer readable storage medium
CN112312494B (en) Communication method and terminal device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201225

CF01 Termination of patent right due to non-payment of annual fee