CN106973090A - A kind of terminal, server and contact person's synchronous method - Google Patents

A kind of terminal, server and contact person's synchronous method Download PDF

Info

Publication number
CN106973090A
CN106973090A CN201710166533.0A CN201710166533A CN106973090A CN 106973090 A CN106973090 A CN 106973090A CN 201710166533 A CN201710166533 A CN 201710166533A CN 106973090 A CN106973090 A CN 106973090A
Authority
CN
China
Prior art keywords
data
server
local
client
annex
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710166533.0A
Other languages
Chinese (zh)
Inventor
程文星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710166533.0A priority Critical patent/CN106973090A/en
Publication of CN106973090A publication Critical patent/CN106973090A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/2753Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content
    • H04M1/2757Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content by data transmission, e.g. downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2242/00Special services or facilities
    • H04M2242/40Data synchronization between user terminals and central server

Abstract

The embodiment of the invention discloses a kind of terminal, the terminal includes:Request module sends local linkages people's synchronization request to server, the high in the clouds contact data to be synchronized returned with the reception server;Synchronization module according to high in the clouds contact data to local contact database according to carry out data processing, using treated local contact database according to as local contact database to be synchronized according to;First judge module judges local contact database to be synchronized according to the presence or absence of change data;When judging local contact database to be synchronized according in the presence of change data, uploading module uploads local linkages people change data to server and uploads annex when there is annex;Local linkages people change data are separately uploaded with annex;The feedback that synchronization module changes data to local linkages people according to server change local contact database to be synchronized according to and update client release number.The embodiment of the invention discloses a kind of server and contact person's synchronous method.

Description

A kind of terminal, server and contact person's synchronous method
Technical field
The present invention relates to terminal applies field, more particularly to a kind of terminal, server and contact person's synchronous method.
Background technology
With mobile phone and popularization, how to prevent the loss of data in equipment, the focus as people.Wherein particularly weigh What is wanted is exactly associated person information.To prevent the loss of associated person information in equipment, each manufacturer terminal and software vendor push away one after another The synchronous function of associated person information cloud is gone out.At present, it is to same contact person in main associated person information cloud synchronous method Contacts entries merge processing, to improve synchronous efficiency.But, (annex when including annex in contacts entries Can be contact head image, incoming ring tone etc.), the problem of power consumption of terminal is excessive can be brought, and for each company to power consumption Management and control gradually proposes higher requirement, the problem of power problemses are person skilled urgent need to resolve.
The content of the invention
The main purpose of the embodiment of the present invention is to propose a kind of terminal, server and contact person's synchronous method, Neng Gou Power consumption of terminal is reduced in associated person information synchronizing process.
To achieve the above object, the embodiments of the invention provide a kind of terminal, the terminal includes:
Request module, for local linkages people's synchronization request to be sent to server, with the reception server according to local connection It is the high in the clouds contact data to be synchronized that people's synchronization request is returned;
Synchronization module, will for the high in the clouds contact data according to return to local contact database according to data processing is carried out Local contact database by data processing according to as local contact database to be synchronized according to;
First judge module, for judging local contact database to be synchronized according to the presence or absence of change data;
Uploading module, for judging that local contact database to be synchronized is local according to being uploaded when there are change data to server Contact person changes data, and uploads annex when there is annex;Wherein, local linkages people change data are separately uploaded with annex;
Synchronization module, is additionally operable to change local linkages to be synchronized according to the feedback that server changes local linkages people data Personal data, and update client release number.
Alternatively,
Included in local linkages people's synchronization request:Client release number and User Token;
High in the clouds contact data to be synchronized is included:Server version number and difference in version data;Wherein, difference in version data Variance data between data corresponding to data and server version number corresponding to client release number;
Included in local linkages people change data:Active client version number and local linkages people's essential information.
Alternatively, synchronization module according to the high in the clouds contact data of return to local contact database according to carrying out data processing bag Include:
Judge whether client release number is identical with server version number;
When client release number and server version difference, according to the difference in version data modification local linkages of return Personal data, is merged to repeated data, and current client release number is revised as into server version number;
When client release number is identical with server version number, it is failure to actuate;And,
When including accessory information in difference in version data, the uniform resource position mark URL provided according to accessory information Download and preserve correspondence annex in location.
Alternatively, local linkages people change data separately uploaded with annex including:Terminal in a dormant state when upload Contact person's master data, annex is uploaded when terminal is in non-sleep state.
Alternatively, uploading module, is additionally operable to User Token, annex cryptographic check code and file size when uploading annex It is placed in upload attachment request.
Alternatively, uploading module when uploading annex there is the second to pass function.
Alternatively, the terminal also includes:Annex update module;
Annex update module, after uploading all annex successes in uploading module, calls accessory information to change interface, Update the accessory information of local linkages people;Wherein, accessory information change interface only changes the accessory information of data with existing, does not do new Additions and deletions are except action.
Alternatively, the feedback modification that synchronization module changes data to the local linkages people according to server is to be synchronized local Contact data, and update client release number and include:
The server version number returned according to server updates active client version number, and according to server return it is new Increase the current local contact database of mapping relations modification between server identification number and the local identification number of data according to.
To achieve the above object, the embodiment of the present invention additionally provides a kind of server, and the server includes:
It is synchronous to local linkages people after authentication module, local linkages people's synchronization request for receiving client transmission The User Token included in request carries out authentication;
Processing module, in authentication by rear, according to the client edition included in local linkages people's synchronization request The server version that this number and the corresponding user's identifier lookup client release number of cloud user token have with current server Difference in version data between this number;
Sending module, the high in the clouds to be synchronized that the difference in version data and server version number are included for generating contacts number According to, and the high in the clouds contact data to be synchronized is sent to client;
Second judge module, the active client version number included in data is changed to local linkages according to local linkages people People's change data are handled and to client feedback;
3rd judge module, for after the upload attachment request of client transmission is received, entering to uploading attachment request Row authentication, and after the authentication success of attachment request is uploaded, second biography is carried out to the annex that client is uploaded and judged.
Alternatively, the second judge module changes the active client version number included in data according to local linkages people to this Ground contact person change data are handled and included to client feedback:
Judge whether current user operation is locked, and judge active client version number whether with current server version It is number identical;
If current user operation is locked or active client version number differs with current server version number, delete Except current sessions mark and inform client initiate again local linkages people change data upload request;
If current user operation is not locked and active client version number is identical with current server version number, to working as Preceding user's addition operation lock, carries out data change operation, and current server version number is updated and current sessions mark is deleted; It is unlocked operation to active user, and returns to client the server of server version number and newly-increased data after updating Mapping relations between identification number and local identification number.
Alternatively, the second passes judgement and included:To upload the annex cryptographic check code included in attachment request and file size with The annex of the active user deposited on server is compared, if comparison result by server it is existing upload it is attached Part, then need not receive the annex, and inform that client annex has been present, and the relevant information of the annex is returned into visitor Family end.
To achieve the above object, the embodiment of the present invention additionally provides a kind of contact person's synchronous method, and this method is applied to eventually End, this method includes:
Local linkages people's synchronization request is sent to server, returned with the reception server according to local linkages people's synchronization request The high in the clouds contact data to be synchronized returned;
According to the high in the clouds contact data of return to local contact database according to data processing is carried out, by by data processing Local contact database according to as local contact database to be synchronized according to;
Judge local contact database to be synchronized according to the presence or absence of change data;
Local linkages people is uploaded to server change number when judging local contact database to be synchronized according in the presence of change data According to, and upload annex when there is annex;Wherein, local linkages people change data are separately uploaded with annex;
The feedback that data are changed to the local linkages people according to server changes local contact database to be synchronized according to and more New client release number.
Alternatively,
Included in local linkages people's synchronization request:Client release number and User Token;
High in the clouds contact data to be synchronized is included:Server version number and difference in version data;Wherein, difference in version data Variance data between data corresponding to data and server version number corresponding to client release number;
Included in local linkages people change data:Active client version number and local linkages people's essential information.
Alternatively, the local contact database is included according to data processing is carried out according to the high in the clouds contact data of return:
Judge whether client release number is identical with the server version number;
When client release number and server version difference, according to the difference in version data modification local linkages of return Personal data, is merged to repeated data, and current client release number is revised as into server version number;
When client release number is identical with server version number, it is failure to actuate;And,
When including accessory information in difference in version data, the uniform resource position mark URL provided according to accessory information Download and preserve correspondence annex in location.
Alternatively, local linkages people change data separately uploaded with annex including:Terminal in a dormant state when upload Contact person's master data, annex is uploaded when terminal is in non-sleep state.
Alternatively, this method also includes:It is when uploading annex that the User Token, annex cryptographic check code and file is big It is small to be placed in upload attachment request.
Alternatively, this method also includes:When uploading annex there is the second to pass function.
Alternatively, this method also includes:
After all annex successes are uploaded, call accessory information to change interface, update the accessory information of local linkages people; Wherein, accessory information change interface only changes the accessory information of data with existing, and newly-increased deletion action is not done.
Alternatively, the feedback for data being changed to local linkages people according to server change local contact database to be synchronized according to, And update client release number and include:
The server version number returned according to server updates active client version number, and according to server return it is new Increase the current local contact database of mapping relations modification between server identification number and the local identification number of data according to.
To achieve the above object, the embodiment of the present invention additionally provides a kind of contact person's synchronous method, and this method is applied to clothes Business device, this method includes:
After the local linkages people's synchronization request for receiving client transmission, to the use included in local linkages people's synchronization request Family token carries out authentication;
In authentication by rear, used according to the client release number included in local linkages people's synchronization request and high in the clouds Version between the server version number that the corresponding user's identifier lookup client release number of family token and current server have Variance data;
Generation includes the difference in version data and the high in the clouds contact data to be synchronized of server version number, and this is treated together Buyun end contact data is sent to client;
The active client version number included in data is changed according to local linkages people to enter local linkages people change data Row processing and to client feedback;
After the upload attachment request of client transmission is received, authentication is carried out to uploading attachment request, and upper After the authentication success for passing attachment request, second biography is carried out to the annex that client is uploaded and judged
Alternatively, the active client version number included in data is changed according to local linkages people to change local linkages people Data are handled and included to client feedback:
Judge whether current user operation is locked, and judge active client version number whether with current server version It is number identical;
If current user operation is locked or active client version number differs with current server version number, delete Except current sessions mark and inform client initiate again local linkages people change data upload request;
If current user operation is not locked and active client version number is identical with current server version number, to working as Preceding user's addition operation lock, carries out data change operation, and current server version number is updated and current sessions mark is deleted; It is unlocked operation to active user, and returns to client the server of server version number and newly-increased data after updating Mapping relations between identification number and local identification number.
Alternatively, the second passes judgement and included:To upload the annex cryptographic check code included in attachment request and file size with The annex of the active user deposited on server is compared, if comparison result by server it is existing upload it is attached Part, then need not receive the annex, and inform that client annex has been present, and the relevant information of the annex is returned into visitor Family end.
Terminal provided in an embodiment of the present invention includes:Request module sends local linkages people's synchronization request to server, The high in the clouds contact data to be synchronized returned with the reception server according to local linkages people synchronization request;Synchronization module is according to return High in the clouds contact data to local contact database according to carry out data processing, by the local contact database Jing Guo data processing according to work For local contact database to be synchronized according to;First judge module judges local contact database to be synchronized according to the presence or absence of change data; Uploading module uploads local linkages people to server when judging local contact database to be synchronized according in the presence of change data and changes number According to, and upload annex when there is annex;Wherein, local linkages people change data are separately uploaded with annex;Synchronization module according to The feedback that server changes data to local linkages people changes local contact database to be synchronized according to and updating client release number. By scheme of the embodiment of the present invention, local linkages people change data can separately be uploaded with annex, and realize that the second of annex passes Function, reduces the power consumption of terminal in associated person information synchronizing process.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing the optional mobile terminal of each embodiment one of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 constitutes structured flowchart for the terminal of the embodiment of the present invention;
Fig. 4 for the embodiment of the present invention server group into structured flowchart;
Fig. 5 is to interact schematic diagram between contact person's synchronous method end side of the embodiment of the present invention and server side.
Realization, functional characteristics and the advantage of purpose of the embodiment of the present invention will be done furtherly referring to the drawings in conjunction with the embodiments It is bright.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The optional mobile terminal of each embodiment one of the invention is realized referring now to accompanying drawing description.In follow-up description In, using the suffix of such as " module ", " part " or " unit " for representing element only for being conducive to the explanation of the present invention, Itself do not have specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 illustrates for the hardware configuration of the mobile terminal of realization each embodiment of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115, which is calculated, comes from three or more satellites Range information and correct time information and for the Information application triangulation of calculating so that according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended for calculating the method for position and temporal information using three Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 1220, the static map that 121 pairs of camera is obtained in video acquisition mode or image capture mode by image capture apparatus The view data of piece or video is handled.Picture frame after processing may be displayed on display unit 151.At camera 121 Picture frame after reason can be stored in memory 160 (or other storage mediums) or be carried out via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (voice data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be by Such acoustic processing is voice data.Audio (voice) data after processing can be changed in the case of telephone calling model For the form output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can implement all kinds Noise eliminate (or suppress) algorithm with eliminate noise that (or suppression) produce during receiving and sending audio signal or Person disturbs.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which can include proximity transducer 1410, to be combined below This is described touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00 Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm list Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even in When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or can be structured as and control Device 180 processed is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or figure Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operated.
The communication system for describing wherein be operated according to the mobile terminal of the present invention referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to the BSC275 formation interfaces with that can be couple to base station 270 via back haul link. If any of interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, specific BS270 each subregion can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals At least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to obtain desired positioning letter Breath.GPS tracking techniques or outside GPS tracking techniques are substituted, the other of the position that can track mobile terminal can be used Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.It is each anti-that certain base station 270 is received Handled to link signal in specific BS270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of coordination including the soft switching process between BS270.BSC275 is also by the number received According to MSC280 is routed to, it is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with MSC280 formation interfaces, MSC and BSC275 formation interface, and BSC275 correspondingly control BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned optional mobile terminal hardware configuration and communication system, each reality of present invention method is proposed Apply example.
As shown in figure 3, first embodiment of the invention proposes a kind of terminal 1, the terminal includes:
Request module 11, for local linkages people's synchronization request to be sent to server 2, with the reception server 2 according to this The high in the clouds contact data to be synchronized that ground contact person's synchronization request is returned.
Synchronization module 12, for the high in the clouds contact data according to return to local contact database according to progress data processing, Using the local contact database Jing Guo data processing according to as local contact database to be synchronized according to.
First judge module 13, for judging local contact database to be synchronized according to the presence or absence of change data;
Uploading module 14, for uploading this to server when judging local contact database to be synchronized according in the presence of change data Ground contact person changes data, and uploads annex when there is annex;Wherein, local linkages people change data are separated with annex Pass;
Synchronization module 12, is additionally operable to change to be synchronized local according to the feedback that server changes local linkages people data It is personal data, and updates client release number.
Alternatively,
Included in local linkages people's synchronization request:Client release number and User Token;
High in the clouds contact data to be synchronized is included:Server version number and difference in version data;Wherein, difference in version data Variance data between data corresponding to data and server version number corresponding to client release number;
Included in local linkages people change data:Active client version number and local linkages people's essential information.
Alternatively, synchronization module 12 according to the high in the clouds contact data of return to local contact database according to carrying out data processing Including:
Judge whether client release number is identical with server version number;
When client release number and server version difference, according to the difference in version data modification local linkages of return Personal data, is merged to repeated data, and current client release number is revised as into server version number;
When client release number is identical with server version number, it is failure to actuate;And,
When including accessory information in difference in version data, the uniform resource position mark URL provided according to accessory information Download and preserve correspondence annex in location.
Alternatively, local linkages people change data separately uploaded with annex including:Terminal in a dormant state when upload Contact person's master data, annex is uploaded when terminal is in non-sleep state.
Alternatively, uploading module 14, are additionally operable to when uploading annex that User Token, annex cryptographic check code and file is big It is small to be placed in upload attachment request.
Alternatively, uploading module 14 when uploading annex there is the second to pass function.
Alternatively, the terminal also includes:Annex update module 15;
Annex update module 15, after uploading all annex successes in uploading module, calls accessory information change to connect Mouthful, update the accessory information of local linkages people;Wherein, accessory information change interface only changes the accessory information of data with existing, no Do newly-increased deletion action.
Alternatively, the feedback that synchronization module 12 changes data according to server to the local linkages people changes to be synchronized Ground contact data, and update client release number and include:
The server version number returned according to server updates active client version number, and according to server return it is new Increase the current local contact database of mapping relations modification between server identification number and the local identification number of data according to.
To achieve the above object, the embodiment of the present invention additionally provides a kind of server 2, as shown in figure 4, the server bag Include:
After authentication module 21, local linkages people's synchronization request for receiving client transmission, to local linkages, people is same The User Token included in step request carries out authentication;
Processing module 22, in authentication by rear, according to the client included in local linkages people's synchronization request The server that version number and the corresponding user's identifier lookup client release number of cloud user token have with current server Difference in version data between version number;
Sending module 23, includes the high in the clouds contact person to be synchronized of the difference in version data and server version number for generating Data, and the high in the clouds contact data to be synchronized is sent to client;
Second judge module 24, for changing the active client version number included in data to this according to local linkages people Ground contact person change data are handled and to client feedback;
3rd judge module 25, for after the upload attachment request of client transmission is received, to uploading attachment request Authentication is carried out, and after the authentication success of attachment request is uploaded, the annex progress second uploaded to client, which passes, to be judged
Alternatively, the second judge module 24 changes the active client version number pair included in data according to local linkages people Local linkages people change data are handled and included to client feedback:
Judge whether current user operation is locked, and judge active client version number whether with current server version It is number identical;
If current user operation is locked or active client version number differs with current server version number, delete Except current sessions mark and inform client initiate again local linkages people change data upload request;
If current user operation is not locked and active client version number is identical with current server version number, to working as Preceding user's addition operation lock, carries out data change operation, and current server version number is updated and current sessions mark is deleted; It is unlocked operation to active user, and returns to client the server of server version number and newly-increased data after updating Mapping relations between identification number and local identification number.
Alternatively, the second passes judgement and included:To upload the annex cryptographic check code included in attachment request and file size with The annex of the active user deposited on server is compared, if comparison result by server it is existing upload it is attached Part, then need not receive the annex, and inform that client annex has been present, and the relevant information of the annex is returned into visitor Family end.
To achieve the above object, the embodiment of the present invention additionally provides a kind of contact person's synchronous method, as shown in figure 5, the party Method is applied to end side, i.e. client-side, and this method includes:
Local linkages people's synchronization request is sent to server, returned with the reception server according to local linkages people's synchronization request The high in the clouds contact data to be synchronized returned;
According to the high in the clouds contact data of return to local contact database according to data processing is carried out, by by data processing Local contact database according to as local contact database to be synchronized according to;
Judge local contact database to be synchronized according to the presence or absence of change data;
Local linkages people is uploaded to server change number when judging local contact database to be synchronized according in the presence of change data According to, and upload annex when there is annex;Wherein, local linkages people change data are separately uploaded with annex;
The feedback that data are changed to the local linkages people according to server changes local contact database to be synchronized according to and more New client release number.
To achieve the above object, the embodiment of the present invention additionally provides a kind of contact person's synchronous method, as shown in figure 5, the party Method is applied to server side, and this method includes:
After the local linkages people's synchronization request for receiving client transmission, to the use included in local linkages people's synchronization request Family token carries out authentication;
In authentication by rear, used according to the client release number included in local linkages people's synchronization request and high in the clouds Version between the server version number that the corresponding user's identifier lookup client release number of family token and current server have Variance data;
High in the clouds contact person to be synchronized is generated according to the first session identification of difference in version data, server version number and generation Data, and high in the clouds contact data to be synchronized is sent to client;
The active client version number included in data is changed according to local linkages people to enter local linkages people change data Row processing and to client feedback;
After the upload attachment request of client transmission is received, authentication is carried out to uploading attachment request, and upper After the authentication success for passing attachment request, second biography is carried out to the annex that client is uploaded and judged.
In embodiments of the present invention, because contact person's synchronous method of end side and server side is that interaction is completed, under Face will be described in the interactive step of contact person's synchronous method, as shown in figure 5, specifically including:
S1, client send local linkages people's synchronization request to server, with the reception server according to local linkages people The high in the clouds contact data to be synchronized that synchronization request is returned.
Alternatively, included in local linkages people synchronization request:Client release number (cVersion) and User Token (token).The client release number can be:Client local contact database according to version number.If the client is entered for the first time Row data syn-chronization, cVersion can be 0.
In embodiments of the present invention, it is guarantee contact data and the safety of server, client is sending local connection Before being people's synchronization request, authentication information is first sent to server, so that authentication information of the server based on reception is authenticated Operation, and authentication by when return and be configured with the User Token of the first life span, alternatively, the first life span can be set It is set to one month or other arbitrary time segment length.Wherein, authentication information includes user's mark of the home subscriber of client And password.Whether server 2 is legal by user mark and password authentification client, is, authentication passes through.Pass through in authentication Afterwards, client, which is sent, carries the local linkages people synchronization request of User Token and client release number to server.
S2, server are received after local linkages people's synchronization request of the transmission of client 1, to local linkages people's synchronization request In the User Token that includes carry out authentication.
In embodiments of the present invention, server 2 is received after contact person's synchronization request, first verifies that whether User Token has Whether effect, i.e., exceed the first above-mentioned life span.
S3, server in authentication by rear, according to the client release number included in local linkages people's synchronization request (cVersion) and the corresponding user's identifier lookup client release number (cVersion) of cloud user token (token) with work as Difference in version data between the server version number (sVersion) that preceding server has.The server version number can be: The version number of server local contact data.
In embodiments of the present invention, it is corresponding with token according to the cVersion being currently received when User Token is effective User mark (id), find out the difference in version between the server version number of latest edition on the cVersion and server Data (data), and as high in the clouds contact data to be synchronized.
Alternatively, high in the clouds contact data to be synchronized is included:Server version number and difference in version data;Wherein, version Variance data is the variance data between data corresponding to data corresponding to client release number and server version number.
S4, generation include the difference in version data and the high in the clouds contact data to be synchronized of server version number, and should High in the clouds contact data to be synchronized is sent to client.
In embodiments of the present invention, obtained in server after high in the clouds contact data to be synchronized, server generates one The session identification (Session ID) of the second life span, the first session identification described above are configured with, server, which is returned, treats same During the contact data of buyun end, while returning to the session identification and current server version number;Alternatively, the second life span can To be set to five minutes or other arbitrary time segment length.
S5, client according to the high in the clouds contact data of return to local contact database according to data processing is carried out, will pass through The local contact database of data processing according to as local contact database to be synchronized according to.
In embodiments of the present invention, client receives carrying session identification and the current server version number of server return High in the clouds contact data to be synchronized after, record the session identification (the first session identification), and based on current server version number With client release number to local contact database according to progress data processing.
Alternatively, client according to the high in the clouds contact data of return to the local contact database according to carrying out data processing Including:
Judge whether client release number is identical with the server version number;
When client release number and server version difference, according to the difference in version data modification local linkages of return Personal data, is merged to repeated data, and current client release number is revised as into server version number;
When client release number is identical with server version number, it is failure to actuate;
When including accessory information in difference in version data, the uniform resource position mark URL provided according to accessory information Download and preserve correspondence annex in location.
In embodiments of the present invention, client can judge the sVersion and local cVersion that currently obtains whether phase Together, if the sVersion currently obtained is different from local cVersion, then it represents that server have data change, it is necessary to according to The data modification local datas of return, and the data for colliding with each other or repeating in the data of two kinds of version are subjected to data merging, And change the local cVersion=sVersion of client.If the sVersion currently obtained and local cVersion phases Together, and data for sky, then client need not change local data.In addition, if accessory information is included in the data data obtained, Correspondence annex can be then downloaded according to the URL addresses provided in accessory information, and is locally preserving associated accessory information, with after an action of the bowels It is continuous to use.
S6, judge local contact database to be synchronized according to the presence or absence of change data.
In embodiments of the present invention, using the local contact database Jing Guo data processing according to being used as local contact database to be synchronized According to rear, the local contact database to be synchronized can be determined whether according to whether being changed in client, for example, user is to contact The modification of people's number, increase are deleted, and head portrait replacement or change etc..If it is judged that the local contact database to be synchronized Changed according to no, i.e., local contact database to be synchronized is according in the absence of data are changed, then client terminates synchronous flow.If The local contact database to be synchronized is judged according to being changed, i.e., local contact database to be synchronized is according to having change data, then Need further with server interaction, realize that contact data is synchronous.
S7, client upload local linkages when judging local contact database to be synchronized according in the presence of change data to server People changes data.Included in local linkages people change data:Active client version number and local linkages people's essential information.
In embodiments of the present invention, client is when to change data on server, if comprising attached in the change data Part, in order to reduce power consumption of terminal, can separately upload contact person's essential information in the change data with annex.Upload connection Without annex when being people's essential information, in the SyncData (synchrodata, i.e., above-mentioned local linkages people change data) of upload Attachments (annex) content is sky.In embodiments of the present invention, SyncData base class is as shown in table 1 below.
Table 1
S8, the active client version number that includes in data is changed according to local linkages people data are changed to local linkages people Handled and to client feedback.
In embodiments of the present invention, server is received after the local linkages people change data of client upload, first to this SessionId (session mark) in ground contact person change data is verified, to determine whether the session identification is effective, if Session identification failure (session identification exceedes default life span), then illustrate that the sessionId authentications fail, and carry Show client session indicating failure, i.e. sessionid verification failures;If session identification effectively, illustrates that the sessionId reflects Certification success is weighed, then the active client version number included in data is further changed according to local linkages people client is carried out Handle and feed back.
Alternatively, the active client version number included in data is changed according to local linkages people to change local linkages people Data are handled and included to client feedback:
Judge whether current user operation is locked, and judge active client version number whether with current server version It is number identical;
If current user operation is locked or active client version number differs with current server version number, delete Except current sessions mark and inform client initiate again local linkages people change data upload request;
If current user operation is not locked and active client version number is identical with current server version number, to working as Preceding user's addition operation lock, carries out data change operation, and current server version number is updated and current sessions mark is deleted; It is unlocked operation to active user, and returns to client the server of server version number and newly-increased data after updating Mapping relations between identification number and local identification number.
In embodiments of the present invention, after SessionId (current sessions mark) verifications pass through, server can judge the user Whether operation is locked, and judges whether cVersion is identical with sVersion.If user is locked or cVersion!= SVersion, then delete sessionid (current sessions mark) and inform client, allows client to initiate to upload behaviour later again Make, afterwards propelling data again.If user is unlocked, and then server adds operation to cVersion==sVersion to the user Lock, carries out data change operation, and adds 1 to sVersion afterwards, to upgrade to version number, and delete sessionid (when Preceding session mark).Operation is unlocked to user afterwards.Server completes above-mentioned processing and operates backward client to return after upgrading SVersion, and reflecting between the serverId (server identification number) and localId (local identification number) of newly-increased data Penetrate and be related to client.
The feedback that S9, client change data to the local linkages people according to server changes local linkages people to be synchronized Data, and update client release number.
Alternatively, the feedback that client changes data to local linkages people according to server changes local linkages people to be synchronized Data, and update client release number and include:
The server version number returned according to server updates active client version number, and according to server return it is new Increase the current local contact database of mapping relations modification between server identification number and the local identification number of data according to.
In embodiments of the present invention, client is received after the return information of server, can change this according to mapping relations Ground data, and update local cVersion=sVersion.
S10, client if are uploading change when judging local contact database to be synchronized according to there are change data When needing to upload annex during data, client can upload the annex in addition;Wherein, foregoing local linkages people change data are with being somebody's turn to do Annex is separately uploaded, to reduce power consumption of terminal.
In embodiments of the present invention, attachment content can be included shown in the embodiment of table 2.
Table 2
Alternatively, this method also includes:It is when uploading annex that the User Token, annex cryptographic check code and file is big It is small to be placed in upload attachment request.
In embodiments of the present invention, need token, annex cryptographic check code and file size etc. being placed on when uploading annex Upload and taken in attachment request head.Alternatively, the annex cryptographic check code can be annex MD5 check codes.
Alternatively, local linkages people change data separately uploaded with annex including:Terminal in a dormant state when upload Contact person's master data, annex is uploaded when terminal is in non-sleep state.
In embodiments of the present invention, because each company proposes higher requirement to power consumption of terminal management and control, in order to reduce end Hold power consumption, company can limit annex upload can not carry out in the dormant state, therefore, it can terminal in a dormant state when Contact person's master data is uploaded, annex is uploaded when terminal is in non-sleep state.
Alternatively, this method also includes:When uploading annex there is the second to pass function.
In embodiments of the present invention, in order to reduce the upload expense of repetition annex, adding the second when uploading annex passes work( Energy.The second passes function and (i.e. the second, which passes, judges) is first judged the annex when server receives annex, to determine server In whether exist the annex, when in the presence of the annex when then no longer receive the annex, to reduce upload expense.
S11, server are recognized uploading attachment request progress authentication after the upload attachment request of client transmission is received Card, and after the authentication success of attachment request is uploaded, the annex progress second uploaded to client, which passes, to be judged.
In embodiments of the present invention, server is received after the attachment request of client upload, first does token verifications, is verified By rear, second biography judgement is carried out to uploading annex.Second pass and to judge i.e. to the size and MD5 check codes of the annex use on the server It is compared in the attachment content of family, if there is matching value, illustrates existing this document on server, then need not receive annex Content, and return informs that client has had annex, and the relevant information of annex is returned into client.
S12, client call accessory information to change interface, update local linkages people after all annex successes are uploaded Accessory information;Wherein, accessory information change interface only changes the accessory information of data with existing, and newly-increased deletion action is not done.
In embodiments of the present invention, interface IP address may include { domain_name }/sync/attachment.zte.
In embodiments of the present invention, accessory information change request can be first sent before accessory information change is carried out, should The parameter of accessory information change request can be included shown in the embodiment of table 3.
Table 3
In embodiments of the present invention, server can return to a json, specifically with the request at customer in response end by interface The parameter definition of return can include the content as described in the embodiment of table 4.
Table 4
In embodiments of the present invention, it is necessary to which the user end to server between explanation, above-mentioned S7-S9 uploads contact The process that user end to server between the process of people's master data and follow-up S10-S12 uploads annex does not have sequencing Point.
Terminal provided in an embodiment of the present invention includes:Request module sends local linkages people's synchronization request to server, The high in the clouds contact data to be synchronized returned with the reception server according to local linkages people synchronization request;Synchronization module is according to return High in the clouds contact data to local contact database according to carry out data processing, by the local contact database Jing Guo data processing according to work For local contact database to be synchronized according to;First judge module judges local contact database to be synchronized according to the presence or absence of change data; Uploading module uploads local linkages people to server when judging local contact database to be synchronized according in the presence of change data and changes number According to, and upload annex when there is annex;Wherein, local linkages people change data are separately uploaded with annex;Synchronization module according to The feedback that server changes data to local linkages people changes local contact database to be synchronized according to and updating client release number. By scheme of the embodiment of the present invention, local linkages people change data can separately be uploaded with annex, and realize that the second of annex passes Function, reduces the power consumption of terminal in associated person information synchronizing process.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of terminal, it is characterised in that the terminal includes:
Request module, for local linkages people's synchronization request to be sent to server, to receive the server according to described The high in the clouds contact data to be synchronized that ground contact person's synchronization request is returned;
Synchronization module, for the high in the clouds contact data according to return to the local contact database according to carry out data at Reason, using the local contact database Jing Guo data processing according to as local contact database to be synchronized according to;
First judge module, for judging the local contact database to be synchronized according to the presence or absence of change data;
Uploading module, for being uploaded when judging the local contact database to be synchronized according in the presence of change data to the server Local linkages people changes data, and uploads annex when there is annex;Wherein, local linkages people change data with it is described attached Part is separately uploaded;
Synchronization module, is additionally operable to change described to be synchronized according to the feedback that the server changes the local linkages people data Local contact database is according to and updating client release number.
2. terminal as claimed in claim 1, it is characterised in that
Included in the local linkages people synchronization request:Client release number and User Token;
The high in the clouds contact data to be synchronized is included:Server version number and difference in version data;Wherein, the difference in version Data are the variance data between data corresponding to data corresponding to the client release number and the server version number;
Included in the local linkages people change data:Active client version number and local linkages people's essential information.
3. terminal as claimed in claim 2, it is characterised in that the synchronization module contacts number according to the high in the clouds of return Include according to the local contact database according to progress data processing:
Judge whether the client release number is identical with the server version number;
When the client release number and the server version difference, according to the difference in version data modification of return The local contact database to repeated data according to merging, and current client release number is revised as into the server Version number;
When the client release number is identical with the server version number, it is failure to actuate;And,
When including accessory information in the difference in version data, the URL provided according to the accessory information URL is downloaded address and is preserved correspondence annex.
4. terminal as claimed in claim 1, it is characterised in that the local linkages people change data are separated with the annex Biography includes:The terminal in a dormant state when upload contact person's master data, the terminal be in non-sleep shape The annex is uploaded during state.
5. terminal as claimed in claim 1, it is characterised in that the synchronization module is according to the server to described local It is that the feedbacks of people's change data changes the local contact database to be synchronized according to and updating client release number and include:
The server version number returned according to server updates active client version number, and the newly-increased number returned according to server According to server identification number and local identification number between mapping relations change current local contact database according to.
6. a kind of server, it is characterised in that the server includes:
It is synchronous to the local linkages people after authentication module, local linkages people's synchronization request for receiving client transmission The User Token included in request carries out authentication;
Processing module, in the authentication by rear, according to the client included in the local linkages people synchronization request Hold client release number described in version number and the corresponding user's identifier lookup of the cloud user token and current service utensil Difference in version data between some server versions number;
Sending module, includes the high in the clouds contact person to be synchronized of the difference in version data and the server version number for generating Data, and the high in the clouds contact data to be synchronized is sent to the client;
Second judge module, for changing the active client version number included in data to described according to the local linkages people Local linkages people change data are handled and to client feedback;
3rd judge module, for after the upload attachment request of client transmission is received, entering to the upload attachment request Row authentication, and after the authentication success of the upload attachment request, is carried out to the annex that the client is uploaded the second Pass and judge.
7. server as claimed in claim 6, it is characterised in that second judge module becomes according to the local linkages people The active client version number included in more data is handled and to client feedback local linkages people change data Including:
Judge whether current user operation is locked, and judge the active client version number whether with current server version It is number identical;
If current user operation is locked or the active client version number differs with current server version number, delete Except current sessions mark and inform that client initiates the upload request that the local linkages people changes data again;
If current user operation is not locked and the active client version number is identical with current server version number, to institute Active user's addition operation lock is stated, data change operation is carried out, and current server version number is updated and current sessions are deleted Mark;Operation is unlocked to the active user, and the server version number after updating and newly-increased number are returned to client According to server identification number and local identification number between mapping relations.
8. server as claimed in claim 6, it is characterised in that the second, which passes judgement, to be included:It will upload in attachment request and wrap The annex of active user of the annex cryptographic check code and file size contained with having been deposited on server is compared, if comparing knot Fruit need not then receive the annex by the existing annex uploaded on server, and inform that client annex has been present, and And the relevant information of the annex is returned into client.
9. a kind of contact person's synchronous method, it is characterised in that methods described is applied to terminal, methods described includes:
Local linkages people's synchronization request is sent to server, synchronously please with receiving the server according to the local linkages people Seek the high in the clouds contact data to be synchronized of return;
, will be by data according to the high in the clouds contact data of return to the local contact database according to data processing is carried out Reason the local contact database according to as local contact database to be synchronized according to;
Judge the local contact database to be synchronized according to the presence or absence of change data;
Local linkages people is uploaded when judging the local contact database to be synchronized according in the presence of change data to the server to become More data, and upload annex when there is annex;Wherein, the local linkages people change data are separately uploaded with the annex;
The feedback that data are changed to the local linkages people according to the server change the local contact database to be synchronized according to, And update client release number.
10. a kind of contact person's synchronous method, it is characterised in that methods described is applied to server, methods described includes:
After the local linkages people's synchronization request for receiving client transmission, to the use included in the local linkages people synchronization request Family token carries out authentication;
In the authentication by rear, according to the client release number and institute included in the local linkages people synchronization request The server version that client release number described in stating the corresponding user's identifier lookup of cloud user token has with current server Difference in version data between number;
Generation includes the high in the clouds contact data to be synchronized of the difference in version data and the server version number, and will be described High in the clouds contact data to be synchronized is sent to the client;
The active client version number included in data is changed according to the local linkages people number is changed to the local linkages people According to being handled and to client feedback;
After the upload attachment request of client transmission is received, authentication is carried out to the upload attachment request, and in institute State after the authentication success for uploading attachment request, carrying out second biography to the annex that the client is uploaded judges.
CN201710166533.0A 2017-03-20 2017-03-20 A kind of terminal, server and contact person's synchronous method Pending CN106973090A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710166533.0A CN106973090A (en) 2017-03-20 2017-03-20 A kind of terminal, server and contact person's synchronous method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710166533.0A CN106973090A (en) 2017-03-20 2017-03-20 A kind of terminal, server and contact person's synchronous method

Publications (1)

Publication Number Publication Date
CN106973090A true CN106973090A (en) 2017-07-21

Family

ID=59328634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710166533.0A Pending CN106973090A (en) 2017-03-20 2017-03-20 A kind of terminal, server and contact person's synchronous method

Country Status (1)

Country Link
CN (1) CN106973090A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10492074B2 (en) 2018-02-07 2019-11-26 Carrier Corporation Credential synchronization for a mobile device
CN110769061A (en) * 2019-10-24 2020-02-07 华为技术有限公司 Data synchronization method and equipment
CN111723153A (en) * 2020-06-18 2020-09-29 苏州琨山智能科技有限公司 Data synchronous processing method, device, equipment and storage medium
CN111897886A (en) * 2020-08-06 2020-11-06 中国联合网络通信集团有限公司 Model management method, model management device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120180136A1 (en) * 2011-01-10 2012-07-12 Samsung Electronics Co., Ltd. Content management method and apparatus of mobile terminal
CN103685406A (en) * 2012-09-19 2014-03-26 腾讯科技(深圳)有限公司 Mobile terminal contact backup method and device
CN105812410A (en) * 2014-12-30 2016-07-27 深圳富泰宏精密工业有限公司 Address book synchronizing method and system
CN106230927A (en) * 2016-07-29 2016-12-14 努比亚技术有限公司 Contact person's synchronous method, Apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120180136A1 (en) * 2011-01-10 2012-07-12 Samsung Electronics Co., Ltd. Content management method and apparatus of mobile terminal
CN103685406A (en) * 2012-09-19 2014-03-26 腾讯科技(深圳)有限公司 Mobile terminal contact backup method and device
CN105812410A (en) * 2014-12-30 2016-07-27 深圳富泰宏精密工业有限公司 Address book synchronizing method and system
CN106230927A (en) * 2016-07-29 2016-12-14 努比亚技术有限公司 Contact person's synchronous method, Apparatus and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10492074B2 (en) 2018-02-07 2019-11-26 Carrier Corporation Credential synchronization for a mobile device
CN110769061A (en) * 2019-10-24 2020-02-07 华为技术有限公司 Data synchronization method and equipment
CN111723153A (en) * 2020-06-18 2020-09-29 苏州琨山智能科技有限公司 Data synchronous processing method, device, equipment and storage medium
CN111897886A (en) * 2020-08-06 2020-11-06 中国联合网络通信集团有限公司 Model management method, model management device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104883658A (en) Virtual card information processing method and system
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN106131280A (en) Mobile terminal and associated person information acquisition methods
CN106973090A (en) A kind of terminal, server and contact person's synchronous method
CN106302651A (en) The social sharing method of picture and there is the terminal of picture social activity share system
CN106453652A (en) Log file uploading method and system
CN106102086A (en) Data processing equipment and method
CN106817377A (en) A kind of data encryption device, decryption device and method
CN106570945A (en) Terminal, check-in machine and check-in method
CN105991293B (en) A kind of method of calibration and device
CN104820797B (en) Using the management method and device of account
CN106657579A (en) Content sharing method, device and terminal
CN106484534A (en) Control method for the mobile terminal of displaying and control device
CN105095705B (en) A kind of information processing method and device
CN104731484B (en) The method and device that picture is checked
CN105100217B (en) Multisystem shared data method and apparatus
CN107027113A (en) SIM card Activiation method and mobile terminal
CN104732218B (en) The method and device that image is shown
CN106792644A (en) Mobile terminal, server and information processing method
CN106899976A (en) A kind of wireless network management method and electronic equipment
CN107070981A (en) The equipment collaboration control system and method for multiple terminals
CN106603872A (en) Method for starting application according to association strategy, device and mobile terminal
CN105681558A (en) Contact person information displaying method and terminal
CN106878981A (en) Brush machine method, mobile terminal and network-side
CN104751074B (en) Image display processing method and device

Legal Events

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

Application publication date: 20170721