CN110572508A - Address book synchronization method and device, storage medium and electronic equipment - Google Patents
Address book synchronization method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN110572508A CN110572508A CN201910829043.3A CN201910829043A CN110572508A CN 110572508 A CN110572508 A CN 110572508A CN 201910829043 A CN201910829043 A CN 201910829043A CN 110572508 A CN110572508 A CN 110572508A
- Authority
- CN
- China
- Prior art keywords
- business card
- electronic business
- vehicle
- address book
- mounted equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/02—Details of telephonic subscriber devices including a Bluetooth interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/06—Details of telephonic subscriber devices including a wireless LAN interface
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
The application discloses an address book synchronization method, an address book synchronization device, a storage medium and electronic equipment, wherein the address book synchronization method is applied to the electronic equipment and comprises the following steps: receiving an address book synchronization request sent by vehicle-mounted equipment; acquiring an electronic business card version supported by the vehicle-mounted equipment and an electronic business card version supported by the mobile terminal according to the address book synchronization request; if the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment; and sending the target electronic business card file to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file. According to the embodiment of the application, when the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, the address list synchronization of the vehicle-mounted equipment and the mobile terminal can still be realized, and the user experience is improved.
Description
Technical Field
the present application relates to the field of communications technologies, and in particular, to a method and an apparatus for synchronizing an address book, a storage medium, and an electronic device.
Background
when vehicle-mounted equipment (such as a Bluetooth vehicle-mounted device) is used for connecting the mobile terminal, the contact persons in the address list of the mobile terminal are expected to be synchronized to the vehicle-mounted device end through Bluetooth, so that when the vehicle-mounted device dials the telephone number of the contact person stored in the address list of the mobile terminal, the corresponding contact person can be directly selected to initiate a call without inputting a telephone number; meanwhile, the vehicle-mounted equipment terminal can also directly display the contact names and the like of the incoming calls, and great convenience is brought to users.
However, in the actual use process, when the mobile terminal synchronizes the contact persons in the address list to the vehicle-mounted equipment terminal, some vehicle-mounted equipment terminals cannot display the contact persons. The reason may be that part of the vehicles may not be able to parse the electronic business card file (vCard file) transmitted by the PBAP protocol at all, and address book synchronization cannot be achieved.
disclosure of Invention
The embodiment of the application provides an address book synchronization method and device, a storage medium and electronic equipment, which can realize address book synchronization of a vehicle-mounted equipment terminal and a mobile terminal and improve user experience.
The embodiment of the application provides an address book synchronization method, which is applied to a mobile terminal and comprises the following steps:
receiving an address book synchronization request sent by vehicle-mounted equipment;
Acquiring an electronic business card version supported by the vehicle-mounted equipment and an electronic business card version supported by the mobile terminal according to the address book synchronization request;
Judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal;
If the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment;
And sending the target electronic business card file to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file.
The embodiment of the present application further provides an address book synchronization device, which is applied to a mobile terminal, and includes:
The receiving module is used for receiving an address book synchronization request sent by the vehicle-mounted equipment;
The version acquisition module is used for acquiring the electronic business card version supported by the vehicle-mounted equipment and the electronic business card version supported by the mobile terminal according to the address book synchronization request;
The version judgment module is used for judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal;
The file generation module is used for generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment if the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal;
and the file sending module is used for sending the target electronic business card file to the vehicle-mounted equipment so that the vehicle-mounted equipment can carry out address book synchronization according to the target electronic business card file.
further, the address book synchronization device further includes:
the time acquisition module is used for acquiring the sending time of the target electronic business card file sent to the vehicle-mounted equipment at the last time according to the address book synchronization request after receiving the address book synchronization request sent by the vehicle-mounted equipment, and acquiring the current time;
the updating determining module is used for determining the updating data of the address book within the current time and the sending time;
And the file generation module is used for generating a target electronic business card file of the updated data according to the electronic business card version supported by the vehicle-mounted equipment.
Further, the address book synchronization device further includes:
the time judgment module is used for judging whether the difference between the current time and the sending time is greater than a preset time difference or not after the current time is obtained; and if the difference between the current time and the sending time is not greater than a preset time difference, triggering the updating determination module to determine the updating data of the address book within the current time and the sending time.
further, the address book synchronization device further includes:
The interruption detection module is used for detecting whether interruption occurs in the process of sending the target electronic business card file to the vehicle-mounted equipment;
The interruption determining module is used for determining sent data and interruption time in the target electronic business card file if interruption occurs;
The time acquisition module is used for acquiring the receiving time of the sending instruction if the sending instruction is received;
the time judging module is used for judging whether the difference between the receiving time and the interruption time reaches a preset time interval or not;
The file sending module is further used for determining unsent data in the target electronic business card file according to the sent data and sending the unsent data to the vehicle-mounted equipment, wherein the difference between the receiving time and the interruption time does not reach a preset time interval.
The embodiment of the application also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the computer-readable storage medium, and the instructions are suitable for being loaded by a processor to execute any address book synchronization method.
the embodiment of the application further provides electronic equipment, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for any step in the address book synchronization method.
the address book synchronization method, the address book synchronization device, the storage medium and the electronic equipment receive an address book synchronization request sent by vehicle-mounted equipment; acquiring an electronic business card version supported by the vehicle-mounted equipment and an electronic business card version supported by the mobile terminal according to the address book synchronization request; if the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment; and sending the target electronic business card file to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file. According to the embodiment of the application, when the electronic business card version supported by the vehicle-mounted equipment is different from the electronic business card version supported by the mobile terminal, if the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, the address book of the mobile terminal is generated into the target electronic business card file according to the electronic business card version supported by the vehicle-mounted equipment, so that the vehicle-mounted equipment can identify the target electronic business card file, the address book synchronization of the vehicle-mounted equipment and the mobile terminal can be still realized, and the user experience is improved.
Drawings
the technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
fig. 1 is a schematic view of an application scenario of an address book synchronization system according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of an address book synchronization method according to an embodiment of the present application.
Fig. 3a to fig. 3c are schematic diagrams illustrating an operation of sending an interrupt according to an embodiment of the present application.
fig. 4 is another schematic flowchart of an address book synchronization method according to an embodiment of the present disclosure.
fig. 5 is a schematic structural diagram of an address book synchronization apparatus according to an embodiment of the present application.
Fig. 6 is another schematic structural diagram of an address book synchronization apparatus according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides an address book synchronization method and device, a storage medium and electronic equipment.
Referring to fig. 1, fig. 1 provides an application scenario diagram of an address book synchronization system, where the address book synchronization system includes a mobile terminal and a vehicle-mounted device, where any one of the address book synchronization apparatuses provided in the embodiments of the present application may be integrated in the mobile terminal, and the mobile terminal may include an electronic device including an address book application, such as a smart phone and a tablet computer.
After the mobile terminal is connected with the vehicle-mounted equipment, the vehicle-mounted equipment sends an address book synchronization request to the mobile terminal, the mobile terminal receives the address book synchronization request sent by the vehicle-mounted equipment and acquires an electronic business card version supported by the vehicle-mounted equipment and an electronic business card version supported by the mobile terminal according to the address book synchronization request; judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal; if the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment; and sending the generated target electronic business card file to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file. Therefore, when the electronic business card version supported by the vehicle-mounted equipment is lower than that of the mobile terminal, the address book synchronization of the vehicle-mounted equipment and the mobile terminal can still be realized.
The electronic business card version refers to a vCard version, the vCard is a file format standard of the electronic business card, the vCard allows public exchange of Personal Data Interchange (PDI) information, and the vCard defines a format of the electronic business card (or called vCard). The information that may be contained in the vCard format includes: name, address information, telephone number, URL, logo, photograph, etc.
As shown in fig. 2, fig. 2 is a schematic flowchart of an address book synchronization method provided in an embodiment of the present application, and is applied to a mobile terminal, where the mobile terminal includes an address book application, and a specific flow may be as follows:
101, receiving an address book synchronization request sent by the vehicle-mounted equipment.
Before step 101, the address book synchronization method further includes: and establishing connection with the vehicle-mounted equipment. Wherein, accessible bluetooth establishes connection with this mobile unit, also can establish connection with this mobile unit through WIFI.
For example, the process of establishing a connection with the vehicle-mounted device through WIFI includes: the mobile terminal opens the WIFI hotspot, and the vehicle-mounted equipment end is connected to the WIFI hotspot; the mobile terminal starts an object exchange service, namely an OBEX service, and monitors on a specified port; and if the vehicle-mounted equipment terminal detects that the WIFI provides the object exchange service on the specified port, connecting the object exchange service. Therefore, the mobile terminal is connected with the vehicle-mounted equipment terminal through the WIFI hotspot.
For example, the process of establishing connection with the vehicle-mounted device through bluetooth includes: the mobile terminal and the vehicle-mounted equipment open a Bluetooth service, and the mobile terminal searches a Bluetooth identifier of the vehicle-mounted equipment, wherein the Bluetooth identifier comprises a Bluetooth name and the like; if the Bluetooth identification of the vehicle-mounted equipment is searched, sending a Bluetooth connection instruction, and connecting the vehicle-mounted equipment in a pairing manner according to the Bluetooth connection instruction; and after the configuration connection is successful, the mobile terminal starts the object exchange service, so that the vehicle-mounted equipment is connected with the object exchange service. Wherein, connect the step of connecting with this mobile unit pairing according to the bluetooth, include: receiving a password input request generated by the vehicle-mounted equipment according to the Bluetooth connection instruction, receiving a password input by a user, matching the password input by the user with a prestored password, and completing pairing connection with the vehicle-mounted equipment if matching is successful; and if the matching is not successful, the matching connection with the vehicle-mounted equipment is failed. When the mobile terminal is connected with the vehicle-mounted equipment through the Bluetooth, the Bluetooth identification of the mobile terminal can be searched through the vehicle-mounted equipment, the Bluetooth connection instruction is sent, and the mobile terminal is connected in a matching mode according to the Bluetooth connection instruction.
Wherein, data is transmitted through the object exchange service and data transmitted by the other party is received. It should be noted that if the vehicle-mounted device is a vehicle-mounted bluetooth device, a connection is established with the vehicle-mounted device through bluetooth.
After the mobile terminal is connected with the vehicle-mounted equipment, the vehicle-mounted equipment sends an address book synchronization request to the mobile terminal, and the mobile terminal receives the address book synchronization request sent by the vehicle-mounted equipment.
the address book synchronization request comprises request parameters, wherein the request parameters comprise a local contact of the mobile terminal, an SIM card contact, a local contact, an SIM card contact and the like. If the request parameter comprises a local contact person, the contact person stored on the local machine by the mobile terminal is requested by the address book synchronization request, such as a mobile phone contact person; if the request parameter comprises the SIM card contact person, the contact person stored in the SIM card is requested by the address book synchronization request; if the request parameters comprise the local contact and the SIM card contact, the contact which is requested by the address book synchronization request comprises the contact stored on the local machine and the contact stored in the SIM card.
And 102, acquiring the electronic business card version supported by the vehicle-mounted equipment and the electronic business card version supported by the mobile terminal according to the address book synchronization request.
the electronic business card version supported by the vehicle-mounted equipment can be acquired in various ways. For example, the mobile terminal sends an electronic business card version acquisition request to the vehicle-mounted equipment; and receiving the supported electronic business card version returned by the vehicle-mounted equipment based on the electronic business card version acquisition request. The method includes the steps that after the mobile terminal receives an address book synchronization request, an electronic business card version obtaining request is sent to the vehicle-mounted equipment, and therefore the electronic business card version supported by the vehicle-mounted equipment is obtained actively. For example, after receiving an address book synchronization request of the vehicle-mounted device, the mobile terminal receives an electronic business card version supported by the vehicle-mounted device sent by the vehicle-mounted device, so as to obtain the electronic business card version supported by the vehicle-mounted device. The method includes the steps that after address book synchronization requests are sent to the mobile terminal by the vehicle-mounted equipment, supported electronic business card versions are obtained, and the supported electronic business card versions are sent to the mobile terminal. For example, after receiving an address book synchronization request of a vehicle-mounted device, the mobile terminal obtains an electronic business card version supported by the vehicle-mounted device included in the address book synchronization request. The method includes the steps that before the vehicle-mounted equipment sends an address book synchronization request to the mobile terminal, a supported electronic business card version is obtained, the electronic business card version and the address book synchronization request are sent to the mobile terminal together, and therefore the mobile terminal obtains the electronic business card version supported by the vehicle-mounted equipment. It is understood that the vehicle-mounted device may also actively send the supported electronic business card version to the mobile terminal.
And acquiring the electronic business card version supported by the mobile terminal according to the address book synchronization request.
103, judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal.
Specifically, whether the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal is judged according to the version number of the electronic business card version. Typically, the version numbers of the electronic business card versions are arranged in ascending order, such as the latest version number being higher than the other version numbers. For example, the version number of an electronic business card supported by the vehicle-mounted device is 2.1, and the version number supported by the mobile terminal is 3.0. It is determined that the version of the electronic business card supported by the in-vehicle device is lower than the version of the electronic business card supported by the mobile terminal.
if the electronic business card version supported by the vehicle-mounted equipment is not lower than the electronic business card version supported by the mobile terminal, executing step 104; if the version of the electronic business card supported by the vehicle-mounted equipment is lower than that supported by the mobile terminal, step 105 is executed.
It should be noted that, because the time for updating and using the vehicle-mounted device is relatively long (the updating and upgrading period of the automobile is very long), the software version (including the electronic business card version) of the vehicle-mounted device is not generally upgraded; and the mobile terminal is updated more quickly, and the electronic business card file sent by the mobile terminal through the electronic business card version may not be recognized by the vehicle-mounted equipment. Therefore, the embodiment of the present application relates to a case of determining whether an electronic business card version supported by the vehicle-mounted device is lower than an electronic business card version supported by the mobile terminal, and if the electronic business card version supported by the mobile terminal is lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted device. And if the electronic business card version supported by the vehicle-mounted equipment is the same as the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the mobile terminal and sending the target electronic business card file to the vehicle-mounted equipment. And when the version of the electronic business card supported by the vehicle-mounted equipment is higher than that supported by the mobile terminal, the mobile terminal can improve the version of the electronic business card through software upgrading, and generates a target electronic business card file of the address book and sends the target electronic business card file to the vehicle-mounted equipment according to the version of the electronic business card supported by the mobile terminal. In general, the version of the electronic business card supported by the vehicle-mounted equipment is not higher than that supported by the mobile terminal.
and 104, generating a target electronic business card file of the address book according to the electronic business card version supported by the mobile terminal. Step 106 is then executed to send the target electronic business card file.
105, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment.
specifically, generating a target electronic business card file of an address book according to the electronic business card version supported by the vehicle-mounted device includes: acquiring an electronic business card format corresponding to an electronic business card version supported by the vehicle-mounted equipment; and generating a target electronic business card file of the address book according to the electronic business card format.
The electronic business card versions are different, and the corresponding electronic business card formats are different.
If the electronic business card version is 2.1, the electronic business card format is as follows:
1:BEGIN:VCARD
2:VERSION:2.1
3:N:Gump;Forrest
4:FN:Forrest Gump
5:ORG:Bubba Gump Shrimp Co.
6:TITLE:Shrimp Man
7:TEL;WORK;VOICE:(111)555-1212
8:TEL;HOME;VOICE:(404)555-1212
9:ADR;WORK:;;100Waters Edge;Baytown;LA;30314;United States of America
10:LABEL;WORK;ENCODING=QUOTED-PRINTABLE:100Waters Edge=0D=0ABaytown,LA 30314=0D=0AUnited States of America
11:ADR;HOME:;;42Plantation St.;Baytown;LA;30314;United States of America
12:LABEL;HOME;ENCODING=QUOTED-PRINTABLE:42 Plantation St.=0D=0ABaytown,LA 30314=0D=0AUnited States of America
13:EMAIL;PREF;INTERNET:[email protected]
14:REV:20080424T195243Z
15:END:VCARD
where the preceding numbers represent the number of rows for ease of viewing. In the second line, the electronic business card VERSION is explicitly indicated as 2.1, VERSION: 2.1. Wherein TITLE represents the contact name; TEL; working; VOICE (111)555-1212 denotes the contact person acting as a telephone, the telephone being (111) 555-1212; TEL; HOME; VOICE (404)555-1212 represents the contact's home phone, which is (404) 555-1212; ADR; WORK represents a contact WORK address; ADR; HOME represents the contact HOME address; EMAIL; PREF; INTE-RNET represents the contact mailbox.
The electronic business card format with the electronic business card version 3 is as follows:
1:BEGIN:VCARD
2:VERSION:3.0
3:N:Gump;Forrest
4:FN:Forrest Gump
5:ORG:Bubba Gump Shrimp Co.
6:TITLE:Shrimp Man
7:PHOTO;VALUE=URL;TYPE=GIF:https://www.site.com/dir_photos/my_photo.gif
8:TEL;TYPE=WORK,VOICE:(111)555-1212
9:TEL;TYPE=HOME,VOICE:(404)555-1212
10:ADR;TYPE=WORK:;;100Waters Edge;Baytown;LA;30314;United States of America
11:LABEL;TYPE=WORK:100Waters Edge\nBaytown,LA 30314\nUnited States of America
12:ADR;TYPE=HOME:;;42Plantation St.;Baytown;LA;30314;United States of America
13:LABEL;TYPE=HOME:42Plantation St.\nBaytown,LA 30314\nUnited States of America
14:EMAIL;TYPE=PREF,INTERNET:[email protected]
15:REV:20080424T195243Z
16:END:VCARD
In the second row, the electronic business card version is explicitly indicated as 3.0. Wherein TITLE represents the contact name; TEL; TYPE is WORK, VOICE denotes contact person WORK phone; TEL; TYPE ═ HOME, VOICE denotes the contact HOME phone; ADR; TYPE ═ WORK represents the contact WORK address; ADR; TYPE ═ HOME address represents the contact HOME address; EMAIL; TYPE — PREF, INTERNET represents the contact mailbox.
it can be seen that there is a difference between the electronic business card format in version 2.1 and the electronic business card format in version 3.0. If the format of the working telephone of the contact person in the version 2.1 of the electronic business card is TEL; working; VOICE, and the format of the contact work phone of the electronic business card version 3.0 is TEL; TYPE — WORK, VOICE, etc.
The method comprises the steps of obtaining an electronic business card format corresponding to an electronic business card version supported by the vehicle-mounted equipment, and obtaining the electronic business card format through various modes. For example, the mobile terminal stores electronic business card formats corresponding to different electronic business card versions, and selects an electronic business card format corresponding to an electronic business card version supported by the vehicle-mounted color plate from the electronic business card formats corresponding to different electronic business card versions. For example, the mobile terminal is connected to a network, and acquires an electronic business card format corresponding to an electronic business card version supported by the vehicle-mounted device from the network.
The method for generating the target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment comprises the following steps: acquiring information of a plurality of contact persons in an address list; generating target contact person data from each piece of contact person information according to an electronic business card format to obtain a plurality of target contact person data; and integrating the data of the plurality of target contacts to obtain a target electronic business card file.
Generating target contact person data by the contact person information according to an electronic business card format, wherein the target contact person data comprises the following steps: acquiring a plurality of fields in the format of the electronic business card; obtaining values corresponding to the fields from each contact person information according to the fields; and generating target contact data by the plurality of fields and the values corresponding to the plurality of fields according to an electronic business card format.
Wherein, integrate a plurality of target contact data to obtain target electronic business card file, include: at the end of the data of one target contact person, adding the data of another target contact person until all the data of the target contact persons are added to obtain a plurality of target contact persons; acquiring the contents of a head part, such as BEGIN, VCARD, VERSION, N, FN and ORG parts, and the contents of a tail part, such as END, VCARD in an electronic business card format; and generating a target electronic business card file according to the content of the head part, the plurality of target contacts and the content of the tail part.
and 106, sending the target electronic business card file to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file.
Specifically, the target electronic business card file is transmitted to the in-vehicle device through the object exchange service. And after receiving the target electronic business card file, the vehicle-mounted equipment analyzes the target electronic business card file to obtain a plurality of contact information in the target electronic business card file, and synchronously stores the plurality of contact information.
according to the method, when the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, the address book of the mobile terminal is generated into the target electronic business card file according to the electronic business card version supported by the vehicle-mounted equipment, so that the vehicle-mounted equipment can identify the target electronic business card file, the address book synchronization of the vehicle-mounted equipment and the mobile terminal can be still realized, and the user experience is improved.
In an embodiment, if the electronic business card version supported by the vehicle-mounted device is lower than the electronic business card version supported by the mobile terminal, after step 106, the address book synchronization method further includes:
and a, detecting whether the mobile terminal is not disconnected with the vehicle-mounted equipment.
And b, if the mobile terminal is not disconnected with the vehicle-mounted equipment, detecting whether the address list is updated.
And c, if the address book is updated, determining the updated data of the address book.
And d, generating a target electronic business card file of the updated data according to the electronic business card version supported by the vehicle-mounted equipment.
and e, sending the target electronic business card file of the updated data to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file of the updated data.
It can be understood that, after the address book is synchronized with the vehicle-mounted device, in the process of one connection, it is detected that the address book is updated, which means that there is a high possibility that the mobile terminal communicates with the updated contact in the address book, so that, in order to directly call the updated contact on the vehicle-mounted device and display the phone number of the updated contact during the call, after the address book is detected to be updated, a target electronic business card file of updated data is generated according to the electronic business card version supported by the vehicle-mounted device, and the target electronic business card file of updated data is sent to synchronize the updated data of the address book to the vehicle-mounted terminal. Therefore, the address list is always synchronous in the process of connecting the mobile terminal and the vehicle-mounted equipment, and the user experience is improved. In the process of one connection, except for the address book synchronization request initiated by the vehicle-mounted device for the first time, after the subsequent mobile terminal detects the update, the subsequent mobile terminal actively acquires the update data of the address book and sends the target electronic business card file of the update data to the vehicle-mounted device.
in the embodiment of the method, after the address book synchronization request sent by the vehicle-mounted equipment is received each time, the address book synchronization is carried out. It can be understood that, if the vehicle-mounted device clears the synchronized address book data after the mobile terminal and the vehicle-mounted device are disconnected each time, the mobile terminal and the vehicle-mounted device receive an address book synchronization request when being connected next time, and send the full amount of address books according to the address book synchronization request, so as to perform address book synchronization. If the vehicle-mounted equipment stores the synchronized address book data after the mobile terminal and the vehicle-mounted equipment are disconnected each time, the mobile terminal and the vehicle-mounted equipment receive an address book synchronization request and send a full amount of address books when being connected in the next step, and therefore after the vehicle-mounted equipment receives the full amount of address books, the last stored address book data is covered by the full amount of address book data to conduct address book synchronization.
in an embodiment, in the process of sending the target electronic business card file to the vehicle-mounted device, the address book synchronization method further includes: detecting whether an interrupt occurs; if the interruption occurs, determining the sent data and the interruption time in the target electronic business card file; if receiving a sending instruction, acquiring the receiving time of receiving the sending instruction; judging whether the difference between the receiving time and the interruption time reaches a preset time interval or not; and if the difference between the receiving time and the interruption time does not reach the preset time interval, determining unsent data in the target electronic business card file according to the sent data, and sending the unsent data to the vehicle-mounted equipment.
And in the process of sending the target electronic business card file to the vehicle-mounted equipment, if the sending is detected to be stopped, determining that the interruption occurs. If the mobile terminal is detected to be disconnected from the vehicle-mounted equipment in the process of sending the target electronic business card file to the vehicle-mounted equipment, detecting that interruption occurs; and if a transmission canceling instruction is received in the process of transmitting the target electronic business card file to the vehicle-mounted equipment, detecting that interruption occurs. If the interruption occurs, the sent data in the target electronic business card file is determined and stored, and the current time is obtained as the interruption time. And if the sending instruction is received, acquiring the receiving time of receiving the sending instruction. The sending instruction may be a resending instruction triggered by the user, or a sending instruction triggered automatically after reconnection between the mobile terminal and the vehicle-mounted device is detected again. And judging whether the difference between the receiving time and the interruption time reaches a preset time interval, if not, determining that the data is not sent in the target electronic business card file, and sending the unsent data to the vehicle-mounted equipment. And if the preset time interval is reached, prompting, such as prompting that the address book data is not successfully sent.
as shown in fig. 3 a-3 c, it is an operation schematic diagram of transmission interruption provided in the embodiment of the present application, as shown in fig. 3a, in the process of transmitting a target electronic business card file to the vehicle-mounted device, it is detected that a user clicks a "yes" button of "cancel transmission.
the embodiment further defines how to perform address book synchronization if an interruption is detected in the process of sending the target electronic business card file to the vehicle-mounted device: if the sending instruction is received, if the difference between the receiving time of the sending instruction and the interruption time is within a preset time interval, then sending unsent data to the vehicle-mounted equipment; and if the time interval is not within the preset time interval, prompting. It can be understood that if the sending is interrupted due to misoperation within the preset time interval, the unsent data is sent to the vehicle-mounted device, the whole target electronic business card file does not need to be sent again, and the speed and the efficiency of address book synchronization are improved.
Fig. 4 is another schematic flowchart of a method for address book synchronization according to an embodiment of the present disclosure. As shown in fig. 4, the specific process of the address book synchronization method includes the following steps:
And 201, receiving an address book synchronization request sent by the vehicle-mounted equipment.
And 202, acquiring the electronic business card version supported by the vehicle-mounted equipment and the electronic business card version supported by the mobile terminal according to the address book synchronization request.
And 203, acquiring the sending time of the target electronic business card file sent to the vehicle-mounted equipment last time according to the address book synchronization request.
The address book synchronization request includes, in addition to the request parameter, identification information of the vehicle-mounted device, such as a name of the vehicle-mounted device. Which in-vehicle device is identified based on the identification information. The mobile terminal stores the sending time of sending the target electronic business card file to the vehicle-mounted equipment each time. The mobile terminal may also store address book data and the like corresponding to the sending time. And if the address book synchronization request is received, acquiring the sending time of the target electronic business card file sent to the vehicle-mounted equipment last time according to the identification information of the vehicle-mounted equipment in the address book synchronization request. Or the receiving time of the last receiving target electronic business card file is saved in the vehicle-mounted equipment terminal, the delay of sending and receiving is ignored, and the receiving time is taken as the sending time of the last sending target electronic business card file to the vehicle-mounted equipment. Therefore, the sending time can be carried when the address book synchronization request is sent to the mobile terminal, and the mobile terminal obtains the sending time in the address book synchronization request after receiving the address book synchronization request.
It should be noted that, the steps 202 and 203 are not performed in sequence, and the step 203 may be performed first, and then the step 202 is performed. In addition, step 202 and step 203 may be executed synchronously or serially.
And 204, acquiring the current time. And acquiring the current time of the mobile terminal.
And 205, determining the update data of the address book within the current time and the sending time.
The method comprises the steps of obtaining address book data corresponding to the sending time of a target electronic business card file sent to vehicle-mounted equipment last time and address book data corresponding to the current time, and determining update data of an address book according to the address book data corresponding to the sending time and the address book data corresponding to the current time. Or acquiring the update time of the contact information in the address book, acquiring the updated contact information within the current time and the sending time according to the update time of the contact information, and taking the updated contact information as the update data of the address book. Or the update data of the address book within the current time and the sending time can be determined in other ways.
and 206, judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal.
If the electronic business card version supported by the vehicle-mounted equipment is not lower than the electronic business card version supported by the mobile terminal, executing step 207; if the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, step 208 is executed. Please refer to the corresponding description above.
207, generating a target electronic business card file of the updating data according to the electronic business card version supported by the mobile terminal. Step 209 is then performed.
And 208, generating a target electronic business card file of the updated data according to the electronic business card version supported by the vehicle-mounted equipment.
acquiring a plurality of contact information in the updating data, and generating target contact data by each piece of contact information in the updating data according to an electronic business card format supported by the vehicle-mounted equipment to obtain a plurality of target contact data; and integrating the data of the plurality of target contacts to obtain a target electronic business card file of the updated data.
And 209, sending the target electronic business card file of the updated data to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file.
the steps in this embodiment that are the same as those in the embodiment of fig. 2 may refer to the corresponding descriptions in the embodiment of fig. 2, and are not repeated herein.
the embodiment is based on the consideration that the vehicle-mounted equipment can store address book data synchronized last time, and realizes the synchronization of the address books by acquiring the current time and the sending time of sending the target electronic business card file to the vehicle-mounted equipment last time, determining the updating data of the address book within the current time and the sending time, generating the target electronic business card file of the updating data according to the electronic business card version supported by the vehicle-mounted equipment, and sending the target electronic business card file of the updating data. Therefore, only the electronic business card file of the updated data is sent to the vehicle-mounted equipment, the efficiency of address book synchronization is improved, the data volume sent by the Bluetooth or the WIFI between the mobile terminal and the vehicle-mounted equipment is reduced, and power consumption is saved.
in an embodiment, after step 204, that is, after the step of obtaining the current time, the method for address book synchronization further includes:
A. And judging whether the difference between the current time and the sending time is greater than a preset time difference.
If the difference between the current time and the sending time is larger than the preset time difference, executing the step B; otherwise, step 205 is executed, that is, the step of determining the update data of the address book within the current time and the sending time is executed. It can be understood that if the vehicle-mounted device stores the synchronized address book data for a certain period of time, for example, the vehicle-mounted device will periodically clean up the data. If the difference between the current time and the sending time is not larger than the preset time difference, the address book data which are synchronized are still stored on the vehicle-mounted equipment, and therefore the address books of the mobile terminal and the vehicle-mounted equipment can be kept synchronized again only by sending the updating data of the address book within the current time and the sending time to the vehicle-mounted equipment. And if the difference between the current time and the sending time is greater than the preset time difference, sending the full data of the address list.
B. And judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal.
If the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, executing the step C; and if the electronic business card version supported by the vehicle-mounted equipment is not lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the mobile terminal.
C. And generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment.
D. and sending the target electronic business card file of the address book to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file.
the embodiment further judges whether the difference between the current time and the sending time is greater than the preset time difference, and if the difference is not greater than the preset time difference, only the target electronic business card file with updated data is sent to the vehicle-mounted equipment, so that the address book synchronization efficiency is improved, the data volume sent by Bluetooth or WIFI between the mobile terminal and the vehicle-mounted equipment is reduced, and the power consumption is saved; if the time difference is larger than the preset time difference, the full amount of address book data is sent to realize address book synchronization.
In an embodiment, in step 209, in the process of sending the target electronic business card file of the update data to the vehicle-mounted device, the address book synchronization method further includes: detecting whether an interrupt occurs; if the interruption occurs, determining the sent data and the interruption time in the target electronic business card file; if receiving a sending instruction, acquiring the receiving time of receiving the sending instruction; judging whether the difference between the receiving time and the interruption time reaches a preset time interval or not; and if the difference between the receiving time and the interruption time does not reach the preset time interval, determining unsent data in the target electronic business card file according to the sent data, and sending the unsent data to the vehicle-mounted equipment.
The embodiment further defines how to perform address book synchronization if an interruption is detected in the process of sending the target electronic business card file to the vehicle-mounted device: if the sending instruction is received, and if the difference between the receiving time of the sending instruction and the interruption time is within the preset time interval, then the unsent data is sent to the vehicle-mounted equipment. If the time interval is within the preset time interval, then the unsent data is sent to the vehicle-mounted equipment, the whole target electronic business card file does not need to be sent again, and the address book synchronization speed and efficiency are improved.
According to the method described in the foregoing embodiment, the embodiment will be further described from the perspective of an address book synchronization device, which may be specifically implemented as an independent entity, or may be implemented by being integrated in an electronic device, such as a terminal, where the terminal may include a mobile phone, a tablet computer, and the like.
referring to fig. 5, fig. 5 specifically illustrates an address book synchronization apparatus provided in an embodiment of the present application, which is applied to an electronic device including an address book application, where the address book synchronization apparatus may include: a receiving module 301, a version obtaining module 302, a version judging module 303, a file generating module 304 and a file sending module 305, wherein:
the receiving module 301 is configured to receive an address book synchronization request sent by a vehicle-mounted device.
The version obtaining module 302 is configured to obtain, according to the address book synchronization request, an electronic business card version supported by the vehicle-mounted device and an electronic business card version supported by the mobile terminal.
The version judgment module 303 is configured to judge whether the electronic business card version supported by the vehicle-mounted device is lower than the electronic business card version supported by the mobile terminal;
And the file generating module 304 is configured to generate a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted device if the electronic business card version supported by the vehicle-mounted device is lower than the electronic business card version supported by the mobile terminal. The file generating module 304 is further configured to generate a target electronic business card file of the address book according to the electronic business card version supported by the mobile terminal if the electronic business card version supported by the vehicle-mounted device is not lower than the electronic business card version supported by the mobile terminal.
The file sending module 305 is configured to send the target electronic business card file to the vehicle-mounted device, so that the vehicle-mounted device performs address book synchronization according to the target electronic business card file.
In one embodiment, the file generation module 304 includes: the device comprises a format acquisition unit and a target file generation unit. The format obtaining unit is used for obtaining the electronic business card format corresponding to the electronic business card version supported by the vehicle-mounted equipment. And the target file generating unit is used for generating a target electronic business card file of the address book according to the electronic business card format.
In one embodiment, the address book synchronization apparatus further includes: the device comprises a detection module and an update determination module. The detection module is used for detecting whether the mobile terminal is not disconnected with the vehicle-mounted equipment or not, and detecting whether the address list is updated or not if the mobile terminal is not disconnected with the vehicle-mounted equipment. And the update determining module is used for determining the update data of the address book if the address book is updated. The file generating module 304 is further configured to generate a target electronic business card file of update data according to the electronic business card version supported by the vehicle-mounted device. The file sending module 305 is further configured to send the target electronic business card file of the update data to the vehicle-mounted device, so that the vehicle-mounted device performs address book synchronization according to the target electronic business card file of the update data.
in one embodiment, the address book synchronization apparatus further includes: the device comprises an interruption detection module, an interruption determination module, a time acquisition module and a time judgment module. The interruption detection module is used for detecting whether interruption occurs in the process of sending the target electronic business card file to the vehicle-mounted equipment. And the interruption determining module is used for determining the sent data and the interruption time in the target electronic business card file if interruption occurs. And the time acquisition module is used for acquiring the receiving time of the sending instruction if the sending instruction is received. And the time judgment module is used for judging whether the difference between the receiving time and the interruption time reaches a preset time interval or not. The file sending module 305 is further configured to determine unsent data in the target electronic business card file according to the sent data if the difference between the receiving time and the interruption time does not reach the preset time interval, and send the unsent data to the vehicle-mounted device.
Fig. 6 is another address book synchronization apparatus provided in an embodiment of the present application, which is applied to an electronic device including an address book application, where the address book synchronization apparatus may include: a receiving module 401, a version obtaining module 402, a time obtaining module 403, an update determining module 404, a version judging module 405, a file generating module 406, and a file transmitting module 407. Wherein:
the receiving module 401 receives an address book synchronization request sent by the vehicle-mounted device.
The version obtaining module 402 obtains the electronic business card version supported by the vehicle-mounted device and the electronic business card version supported by the mobile terminal according to the address book synchronization request.
The time obtaining module 403 is configured to, after receiving an address book synchronization request sent by the vehicle-mounted device, obtain, according to the address book synchronization request, sending time of the last sending of the target electronic business card file to the vehicle-mounted device, and obtain current time.
and an update determining module 404, configured to determine update data of the address book within the current time and the sending time.
And the version judgment module 405 is configured to judge whether the electronic business card version supported by the vehicle-mounted device is lower than the electronic business card version supported by the mobile terminal.
And the file generating module 406 is configured to generate a target electronic business card file of update data according to the electronic business card version supported by the vehicle-mounted device if the electronic business card version supported by the vehicle-mounted device is lower than the electronic business card version supported by the mobile terminal. The file generating module 406 is further configured to generate a target electronic business card file of updated data according to the electronic business card version supported by the mobile terminal if the electronic business card version supported by the vehicle-mounted device is not lower than the electronic business card version supported by the mobile terminal.
The file sending module 407 is configured to send the target electronic business card file of the update data to the vehicle-mounted device, so that the vehicle-mounted device performs address book synchronization according to the target electronic business card file.
In one embodiment, the address book synchronization apparatus further includes: and a time judgment module. The time judging module is used for judging whether the difference between the current time and the sending time is larger than the preset time difference after the current time is obtained. If the difference between the current time and the sending time is larger than the preset time difference, triggering a version judgment module to judge whether the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal. The file generating module 406 is further configured to generate a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted device if the electronic business card version supported by the vehicle-mounted device is lower than the electronic business card version supported by the mobile terminal; and if the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment. The file sending module 407 sends the target electronic business card file of the address book to the vehicle-mounted device, so that the vehicle-mounted device performs address book synchronization according to the target electronic business card file. If the difference between the current time and the sending time is not greater than the preset time difference, the update determining unit 404 is triggered to determine the update data of the address book within the current time and the sending time.
in one embodiment, the address book synchronization apparatus further includes: an interrupt detection module, an interrupt determination module, etc.
in a specific implementation, each of the modules and/or units may be implemented as an independent entity, or may be implemented as one or several entities by any combination, where the specific implementation of each of the modules and/or units may refer to the foregoing method embodiment, and specific achievable beneficial effects also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
In addition, the embodiment of the application further provides an electronic device, and the electronic device can be a smart phone, a tablet computer and other devices. As shown in fig. 7, the electronic device 500 includes a processor 501, a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the electronic device 500, connects various parts of the whole electronic device by using various interfaces and lines, executes various functions of the electronic device and processes data by running or loading an application program stored in the memory 502 and calling the data stored in the memory 502, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 runs the application programs stored in the memory 502, so as to implement various functions:
Receiving an address book synchronization request sent by vehicle-mounted equipment;
Acquiring an electronic business card version supported by the vehicle-mounted equipment and an electronic business card version supported by the mobile terminal according to the address book synchronization request;
judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal;
If the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment;
And sending the target electronic business card file to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file.
the electronic device can implement the steps in any embodiment of the address book synchronization method provided in the embodiment of the present application, and therefore, the beneficial effects that can be achieved by any address book synchronization method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
fig. 8 is a block diagram showing a specific structure of an electronic device according to an embodiment of the present invention, where the electronic device may be used to implement the address book synchronization method provided in the foregoing embodiment. The electronic device 600 may be a flip phone or a notebook computer.
the RF circuit 610 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuit 610 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 610 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11 a, IEEE802.11 b, IEEE802.1 g and/or IEEE802.1 n), Voice over Internet Protocol (VoIP), world wide Internet Protocol (Microwave Access for Wireless communications, Wi-Max), and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 620 may be configured to store software programs and modules, such as program instructions/modules corresponding to the address book synchronization method in the foregoing embodiment, and the processor 680 executes various functional applications and data processing by running the software programs and modules stored in the memory 620, that is, functions of taking pictures by the front camera, processing the taken images, and switching display colors of display contents on the display screen. The memory 620 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 620 can further include memory located remotely from the processor 680, which can be connected to the electronic device 600 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 630 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 630 may include a touch sensitive surface 631 as well as other input devices 632. The touch sensitive surface 631, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on the touch sensitive surface 631 or near the touch sensitive surface 631 using any suitable object or attachment such as a finger, a stylus, etc.) on or near the touch sensitive surface 631 and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 631 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch sensitive surface 631 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 630 may include other input devices 632 in addition to the touch-sensitive surface 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 600, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 640 may include a Display panel 641, and optionally, the Display panel 641 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 641, and when the touch-sensitive surface 631 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in the figure, the touch-sensitive surface 631 and the display panel 641 are shown as two separate components to implement input and output functions, in some embodiments, the touch-sensitive surface 631 and the display panel 641 may be integrated to implement input and output functions.
the electronic device 600 may also include at least one sensor 650, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the electronic device 600, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and electronic device 600. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signal into an electrical signal, which is received by the audio circuit 660 and converted into audio data, which is then processed by the audio data output processor 680 and then passed through the RF circuit 610 to be transmitted to, for example, another terminal, or output to the memory 620 for further processing. The audio circuit 660 may also include an earbud jack to provide communication of peripheral headphones with the electronic device 600.
The electronic device 600, via the transport module 670 (e.g., a Wi-Fi module), may assist the user in receiving requests, sending information, etc., which provides the user with wireless broadband internet access. Although the transmission module 670 is shown in the drawing, it is understood that it does not belong to the essential constitution of the electronic device 600 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the electronic device 600, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device 600 and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby integrally monitoring the electronic device. Optionally, processor 680 may include one or more processing cores; in some embodiments, processor 680 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
Electronic device 600 also includes a power supply 690 (e.g., a battery) that provides power to the various components, and in some embodiments may be logically coupled to processor 680 via a power management system that may perform functions such as managing charging, discharging, and power consumption. The power supply 690 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
although not shown, the electronic device 600 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
receiving an address book synchronization request sent by vehicle-mounted equipment;
acquiring an electronic business card version supported by the vehicle-mounted equipment and an electronic business card version supported by the mobile terminal according to the address book synchronization request;
Judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal;
If the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment;
and sending the target electronic business card file to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
it will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to perform the steps of any embodiment of the address book synchronization method provided in the embodiment of the present invention.
wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
since the instructions stored in the storage medium can execute the steps in any embodiment of the address book synchronization method provided in the embodiments of the present invention, the beneficial effects that any address book synchronization method provided in the embodiments of the present invention can achieve can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
the address book synchronization method, device, storage medium and electronic device provided in the embodiments of the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and implementation manner of the present application, and the description of the embodiments is only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A method for synchronizing an address book is applied to a mobile terminal, and is characterized by comprising the following steps:
Receiving an address book synchronization request sent by vehicle-mounted equipment;
Acquiring an electronic business card version supported by the vehicle-mounted equipment and an electronic business card version supported by the mobile terminal according to the address book synchronization request;
Judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal;
If the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal, generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment;
And sending the target electronic business card file to the vehicle-mounted equipment, so that the vehicle-mounted equipment carries out address book synchronization according to the target electronic business card file.
2. The address book synchronization method according to claim 1, wherein the generating of the target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted device comprises:
Acquiring an electronic business card format corresponding to the electronic business card version supported by the vehicle-mounted equipment;
and generating a target electronic business card file of the address book according to the electronic business card format.
3. The address book synchronization method according to claim 2, wherein the generating of the target electronic business card file of the address book according to the electronic business card format comprises:
Acquiring information of a plurality of contact persons in an address list;
Generating target contact person data for each piece of contact person information according to the electronic business card format to obtain a plurality of target contact person data;
And integrating the data of the plurality of target contacts to obtain a target electronic business card file.
4. the address book synchronization method of claim 1,
after the address book synchronization request sent by the vehicle-mounted equipment is received, the method further comprises the following steps:
Acquiring the sending time of the target electronic business card file sent to the vehicle-mounted equipment last time according to the address book synchronization request;
Acquiring current time;
Determining the update data of the address list within the current time and the sending time;
The generating of the target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment comprises the following steps: and generating a target electronic business card file of the updated data according to the electronic business card version supported by the vehicle-mounted equipment.
5. The address book synchronization method of claim 4, further comprising, after the obtaining the current time:
Judging whether the difference between the current time and the sending time is greater than a preset time difference or not;
And if the difference between the current time and the sending time is not larger than a preset time difference, executing the step of determining the update data of the address book within the current time and the sending time.
6. the address book synchronization method of claim 1,
In the process of sending the target electronic business card file to the vehicle-mounted device, the method further comprises the following steps:
detecting whether an interrupt occurs;
if the interruption occurs, determining the sent data and the interruption time in the target electronic business card file;
if a sending instruction is received, acquiring the receiving time of the sending instruction;
Judging whether the difference between the receiving time and the interruption time reaches a preset time interval or not;
if the difference between the receiving time and the interruption time does not reach a preset time interval, determining unsent data in the target electronic business card file according to the sent data;
And transmitting the unsent data to the vehicle-mounted equipment.
7. An address book synchronization device is applied to a mobile terminal, and is characterized by comprising:
The receiving module is used for receiving an address book synchronization request sent by the vehicle-mounted equipment;
The version acquisition module is used for acquiring the electronic business card version supported by the vehicle-mounted equipment and the electronic business card version supported by the mobile terminal according to the address book synchronization request;
The version judgment module is used for judging whether the version of the electronic business card supported by the vehicle-mounted equipment is lower than that of the electronic business card supported by the mobile terminal;
The file generation module is used for generating a target electronic business card file of the address book according to the electronic business card version supported by the vehicle-mounted equipment if the electronic business card version supported by the vehicle-mounted equipment is lower than the electronic business card version supported by the mobile terminal;
And the file sending module is used for sending the target electronic business card file to the vehicle-mounted equipment so that the vehicle-mounted equipment can carry out address book synchronization according to the target electronic business card file.
8. The address book synchronization device of claim 7, further comprising:
The time acquisition module is used for acquiring the sending time of the target electronic business card file sent to the vehicle-mounted equipment at the last time according to the address book synchronization request after receiving the address book synchronization request sent by the vehicle-mounted equipment, and acquiring the current time;
The updating determining module is used for determining the updating data of the address book within the current time and the sending time;
the file generation module is specifically configured to generate a target electronic business card file of the update data according to the electronic business card version supported by the vehicle-mounted device.
9. a computer-readable storage medium having stored thereon instructions adapted to be loaded by a processor to perform the address book synchronization method of any of claims 1 to 6.
10. An electronic device comprising a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps of the address book synchronization method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910829043.3A CN110572508B (en) | 2019-09-03 | 2019-09-03 | Address book synchronization method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910829043.3A CN110572508B (en) | 2019-09-03 | 2019-09-03 | Address book synchronization method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110572508A true CN110572508A (en) | 2019-12-13 |
CN110572508B CN110572508B (en) | 2021-02-26 |
Family
ID=68777528
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910829043.3A Active CN110572508B (en) | 2019-09-03 | 2019-09-03 | Address book synchronization method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110572508B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111741457A (en) * | 2020-07-16 | 2020-10-02 | Oppo广东移动通信有限公司 | Bluetooth communication method, device and computer readable storage medium |
CN112118344A (en) * | 2020-09-25 | 2020-12-22 | 斑马网络技术有限公司 | Double-telephone-book transmission method and device, electronic equipment and storage medium |
CN113872994A (en) * | 2020-06-30 | 2021-12-31 | 腾讯科技(深圳)有限公司 | Organization architecture synchronization method, device, computer equipment and storage medium |
CN115086480A (en) * | 2021-03-15 | 2022-09-20 | 大众问问(北京)信息科技有限公司 | Incoming call information display method and device, computer equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647862A (en) * | 2013-12-17 | 2014-03-19 | 上海华勤通讯技术有限公司 | Mobile terminal, address book sharing method and system, and address book sending and receiving methods |
US20140323101A1 (en) * | 2013-04-29 | 2014-10-30 | Google Inc. | Phone Number Format Suggestion |
CN105791520A (en) * | 2014-12-23 | 2016-07-20 | 中兴通讯股份有限公司 | Contact list updating method and coresponding apparatus |
CN105847336A (en) * | 2016-03-18 | 2016-08-10 | 周奇 | Address book synchronization method and device |
CN106161509A (en) * | 2015-03-31 | 2016-11-23 | 惠州市德赛西威汽车电子股份有限公司 | A kind of in-vehicle multi-media system address book synchronization method |
CN106648974A (en) * | 2016-11-16 | 2017-05-10 | 广东欧珀移动通信有限公司 | Data backup method and mobile terminal |
CN106850925A (en) * | 2017-01-24 | 2017-06-13 | 南京中科创达软件科技有限公司 | The synchronous method of a kind of mobile unit and cellphone directory based on WiFi |
CN107832099A (en) * | 2017-10-26 | 2018-03-23 | 咪咕数字传媒有限公司 | A kind of client release compatible method, apparatus and storage medium |
CN109257478A (en) * | 2018-09-10 | 2019-01-22 | 郑州讯轨通信科技有限公司 | A kind of mobile phone terminal stores and synchronizes the system and method for identification log |
-
2019
- 2019-09-03 CN CN201910829043.3A patent/CN110572508B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140323101A1 (en) * | 2013-04-29 | 2014-10-30 | Google Inc. | Phone Number Format Suggestion |
CN103647862A (en) * | 2013-12-17 | 2014-03-19 | 上海华勤通讯技术有限公司 | Mobile terminal, address book sharing method and system, and address book sending and receiving methods |
CN105791520A (en) * | 2014-12-23 | 2016-07-20 | 中兴通讯股份有限公司 | Contact list updating method and coresponding apparatus |
CN106161509A (en) * | 2015-03-31 | 2016-11-23 | 惠州市德赛西威汽车电子股份有限公司 | A kind of in-vehicle multi-media system address book synchronization method |
CN105847336A (en) * | 2016-03-18 | 2016-08-10 | 周奇 | Address book synchronization method and device |
CN106648974A (en) * | 2016-11-16 | 2017-05-10 | 广东欧珀移动通信有限公司 | Data backup method and mobile terminal |
CN106850925A (en) * | 2017-01-24 | 2017-06-13 | 南京中科创达软件科技有限公司 | The synchronous method of a kind of mobile unit and cellphone directory based on WiFi |
CN107832099A (en) * | 2017-10-26 | 2018-03-23 | 咪咕数字传媒有限公司 | A kind of client release compatible method, apparatus and storage medium |
CN109257478A (en) * | 2018-09-10 | 2019-01-22 | 郑州讯轨通信科技有限公司 | A kind of mobile phone terminal stores and synchronizes the system and method for identification log |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113872994A (en) * | 2020-06-30 | 2021-12-31 | 腾讯科技(深圳)有限公司 | Organization architecture synchronization method, device, computer equipment and storage medium |
CN113872994B (en) * | 2020-06-30 | 2024-08-09 | 腾讯科技(深圳)有限公司 | Organization architecture synchronization method, device, computer equipment and storage medium |
CN111741457A (en) * | 2020-07-16 | 2020-10-02 | Oppo广东移动通信有限公司 | Bluetooth communication method, device and computer readable storage medium |
CN111741457B (en) * | 2020-07-16 | 2023-06-09 | Oppo广东移动通信有限公司 | Bluetooth communication method and device and computer readable storage medium |
CN112118344A (en) * | 2020-09-25 | 2020-12-22 | 斑马网络技术有限公司 | Double-telephone-book transmission method and device, electronic equipment and storage medium |
CN112118344B (en) * | 2020-09-25 | 2022-05-03 | 斑马网络技术有限公司 | Double-telephone-book transmission method and device, electronic equipment and storage medium |
CN115086480A (en) * | 2021-03-15 | 2022-09-20 | 大众问问(北京)信息科技有限公司 | Incoming call information display method and device, computer equipment and storage medium |
CN115086480B (en) * | 2021-03-15 | 2023-10-31 | 大众问问(北京)信息科技有限公司 | Incoming call information display method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110572508B (en) | 2021-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110572508B (en) | Address book synchronization method and device, storage medium and electronic equipment | |
CN108702602B (en) | Image sharing method, electronic device and system | |
US20190317841A1 (en) | Method for prompting message in terminal and terminal | |
CN110944406B (en) | Link establishment method of sidelink and terminal | |
CN107786424B (en) | Audio and video communication method, terminal and server | |
WO2019011324A1 (en) | Method for determining access method of mobile terminal, storage medium, and mobile terminal | |
CN108733337B (en) | Screen display method and device, electronic equipment and computer readable storage medium | |
JP2021508989A (en) | Service processing method and mobile communication terminal | |
CN104917905B (en) | Processing method, terminal and the server of Stranger Calls | |
CN112691363A (en) | Cross-terminal switching method and related device for cloud games | |
CN109495769B (en) | Video communication method, terminal, smart television, server and storage medium | |
CN107046595A (en) | Announcement information processing method, device and mobile terminal | |
CN112333337B (en) | Message checking method, device, equipment and storage medium | |
WO2019062502A1 (en) | Information transmission method, terminal, network device, and computer readable storage medium | |
CN109788114B (en) | Call processing method and terminal | |
CN104702678A (en) | Document transmission method and device | |
CN111615101B (en) | IMS registration method, device, storage medium and electronic terminal | |
CN105703808A (en) | Method and device for transmitting data | |
CN110891262A (en) | Bluetooth pairing method, system and terminal equipment | |
CN111163221B (en) | Group address book updating method and device, storage medium and terminal equipment | |
CN105991510A (en) | Session synchronization method, device and system among multiple terminals | |
CN106294528B (en) | Method and device for realizing information transmission | |
CN113613310A (en) | WIFI connection method and device, storage medium and mobile terminal | |
CN112291722A (en) | Call waiting state setting method, device, terminal and storage medium | |
CN108462626B (en) | Instant messaging information processing method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230316 Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Patentee after: Shenzhen Huaxi Investment Co.,Ltd. Address before: 518052 8th floor, TCL communication technology building, F4, phase III, TCL International City, 1001 Zhongshan Garden Road, Xili street, Nanshan District, Shenzhen City, Guangdong Province Patentee before: JRD COMMUNICATION (SHENZHEN) Ltd. |