CN101247415A - Data transmission and synchronization method and wireless terminal - Google Patents

Data transmission and synchronization method and wireless terminal Download PDF

Info

Publication number
CN101247415A
CN101247415A CNA2008100655968A CN200810065596A CN101247415A CN 101247415 A CN101247415 A CN 101247415A CN A2008100655968 A CNA2008100655968 A CN A2008100655968A CN 200810065596 A CN200810065596 A CN 200810065596A CN 101247415 A CN101247415 A CN 101247415A
Authority
CN
China
Prior art keywords
data
data processing
wireless terminal
server end
business
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
CNA2008100655968A
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.)
SHENZHEN DAIWEN TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN DAIWEN 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 SHENZHEN DAIWEN TECHNOLOGY Co Ltd filed Critical SHENZHEN DAIWEN TECHNOLOGY Co Ltd
Priority to CNA2008100655968A priority Critical patent/CN101247415A/en
Publication of CN101247415A publication Critical patent/CN101247415A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention embodiment discloses a method for data-transmission and synchronization and a wireless terminal. The method includes: wireless terminal sends data recovery demand to server terminal; after receiving the data recovery demand, server terminal takes out demanded recovery data from self database, and encode the data; server terminal sends encoded service data back to wireless terminal; wireless terminal returns responding package immediately after receiving service data from server terminal, at the same time service data is sent to data-processing thread for processing. Using the method and apparatus can deal with receiving service data pack when wireless terminal return respond package to server terminal, data-transmission between customer terminal and synchronous server and wireless terminal data-processing are executed simultaneously asynchronous, this can save synchronization time greatly, increasing good experience of user to wireless backup service, improving brand effect.

Description

A kind of transfer of data and synchronous method and wireless terminal
Technical field
The invention belongs to the communications field, relate in particular to a kind of transfer of data and method for synchronous and wireless terminal.
Background technology
For ease of describing, the term of being mentioned in this specification is as giving a definition:
SyncML, full name are Syncronization Markup Language, and synchronization makeup language is the standard that mobile device and background system carry out data sync.
The SyncML agreement refers to the data sync agreement.
The HTTP full name is Hypertext Transfer Protocol, refers to HTML (Hypertext Markup Language).
The WSP full name is Wireless Session Protocol, refers to the wireless session host-host protocol.
Client is meant the data sync equipment of initiating the SyncML request message, such as: COOLPAD series smart mobile phone.The SyncML client does not generally have synchronization engine.
Server end is meant the data sync equipment that sends the SyncML response message, is responsible for the synchrodata analysis, and synchronous analysis engine is generally all arranged.
Business datum is meant the data (as: associated person information) that client is relevant with the business of the transmission of server end in data synchronization process.
Data are recovered, and are meant that client returns to client by request with the synchrodata of server end and is kept at the process of client.
Data backup is meant that client arrives server end with synchronous data transmission, and is kept at the process on the server.
The data processing thread is meant the module of the concurrent execution of other program of energy and terminal that client is created.
Existing wireless data synchronization scenario based on the SyncML agreement all is that the logic that employing is carried out is in proper order finished synchronizing process basically, and data recovery procedure as shown in Figure 1 is an example, comprises step according to execution sequence:
(1) mobile phone terminal sends the data recovery request to Sync ML synchronization server;
(2) Sync ML synchronization server takes out from self database needs data recovered, and with its coding;
(3) business datum (as the contact person) after Sync ML synchronization server will be encoded is passed mobile phone terminal back;
(4) mobile phone terminal is write the business datum of receiving in the mobile phone terminal database;
(5) mobile phone terminal returns respond packet to Sync ML synchronization server.
In wireless data service, two main bottlenecks that influence wireless backup rate are: network latency and terminal traffic data processing time.(business datum is write the time that can spend when terminal database is step (5) than long, and along with increasing of synchrodata, the bottleneck effect of step (5) is obvious all the more carrying out data processing for wireless terminal.
And scheme shown in Figure 1 adopts the sequential processes process, promptly mobile phone terminal sends respond packet to Sync ML synchronization server again after the business datum warehouse-in finishes, Sync ML synchronization server just can be given a packet to mobile phone terminal after receiving this respond packet, mobile phone terminal writes the mobile phone terminal database after receiving packet again ..., finish synchronizing process so repeatedly.Before sending respond packet, must wait for Sync ML synchronization server at mobile phone terminal that like this mobile phone terminal carries out after the business datum that receives is deposited in terminal database and finishes, and has increased the synchronous used time greatly.
Summary of the invention
Embodiment of the invention technical problem to be solved is to provide a kind of transfer of data and synchronous method and wireless terminal.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of transfer of data and synchronous method, and this method comprises: wireless terminal sends the data recovery request to server end; After server end was received described data recovery request, taking out from self database needed data recovered, and with its coding; Business datum after server end will be encoded is passed wireless terminal back; After wireless terminal receives the business datum that server end transmits, return respond packet immediately, simultaneously business datum is passed to the data processing thread process.
The embodiment of the invention also provides a kind of wireless terminal, comprises transmitting element, the good data processing unit of receiving element, and wherein: described transmitting element is used for sending synchronization request or returning respond packet to server end; Described receiving element is used for the business data packet that the reception server end is sent; Described data processing unit is used for handling the business data packet that receives at described transmitting element when server end returns respond packet.
Adopt the method and apparatus of the embodiment of the invention, can when returning respond packet, handle server end the business data packet that receives at wireless terminal, make transfer of data and wireless terminal data between client and synchronization server handle asynchronous execution simultaneously, can save lock in time greatly, increase the good experience of user, improve brand effect wireless backup traffic.
Description of drawings
Fig. 1 is transfer of data and the method for synchronous that prior art provides;
Fig. 2 is the transfer of data that provides of the embodiment of the invention and the handling process schematic diagram of method for synchronous;
Fig. 3 is the structured flowchart of the wireless terminal that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
As shown in Figure 2, transfer of data of one embodiment of the present invention and method for synchronous, by increased a data processing threads at the mobile phone terminal place, the business datum that the special disposal mobile phone terminal is received from Sync ML synchronization server termination is about to the business datum that mobile phone terminal receives and writes in the mobile phone terminal database.After mobile phone terminal receives the business datum that Sync ML synchronization server transmits, return response immediately, simultaneously business datum is passed to the data processing thread process and (comprised two service logics as step among Fig. 2 (4), one is transfer of data, promptly returns respond packet to Sync ML synchronization server end; One is data processing, promptly by the business datum that receives before the data processing thread process; The two carries out simultaneously), when data processing thread process business datum, the transfer of data of mobile phone terminal and Sync ML synchronization server end is also being carried out simultaneously, thereby saves whole lock in time like this.
Transfer of data as shown in Figure 2 and method for synchronous comprise step:
(1) mobile phone terminal sends the data recovery request to Sync ML synchronization server;
(2) Sync ML synchronization server takes out from self database needs data recovered, and with its coding;
(3) business datum (as the contact person) after Sync ML synchronization server will be encoded is passed mobile phone terminal back;
(4) after mobile phone terminal receives the business datum that Sync ML synchronization server transmits, return response immediately, simultaneously business datum is passed to the data processing thread process.
When mobile phone terminal was initiated synchronous recovery operation, Sync ML synchronization server according to the size of data volume, was divided into the plurality of data bag with business datum and issues mobile phone terminal after receiving the request that mobile phone terminal sends;
Mobile phone terminal returns respond packet to Sync ML synchronization server after receiving business data packet immediately, gives the Synchronous Processing thread process with the business data packet that receives simultaneously.
When Sync ML synchronization server end is received the respond packet that mobile phone terminal returns, send next business data packet to mobile phone terminal again.
When mobile phone terminal receives last business data packet that Sync ML synchronization server sends, can inquire the data processing thread, whether business data processing be finished, if finish, return all data processed result and give Sync ML synchronization server, finish synchronizing process; If the data processing thread is not handled business datum, wait for that then returning all data processed result after the data processing thread is finished business data processing gives Sync ML synchronization server, finishes synchronizing process.
If the data processing thread mistake occurs when deal with data is professional, will send out message and give the mobile phone terminal main program, after the mobile phone terminal main program is received this information, send the processing erroneous packets to Sync ML synchronization server, finish synchronizing process.
In the embodiments of the present invention, handle adopting the asynchronous system transmission technology for the wireless data synchrodata, is exactly at the newly-built special data processing thread of mobile phone terminal, makes that data processing and transfer of data are asynchronous carries out.Promptly after mobile phone terminal is received the business data packet that server end sends, return respond packet immediately, simultaneously, the in-stockroom operation of the data that mobile phone terminal removes is gone to finish by another data processing thread of mobile phone terminal, the data loading of the data transmission procedure of mobile phone terminal and server end and mobile phone terminal carries out simultaneously like this, can save lock in time greatly.
Data sync time=data processing time+the data transmission period of existing scheme
Data sync time=the data processing time (if data processing time>data transmission period) of new scheme
Or
Data sync time=the data transmission period (if data transmission period>data processing time) of new scheme
By increasing the data processing thread at mobile phone terminal, make transfer of data and the asynchronous execution simultaneously of mobile phone terminal data processing between client (as mobile phone terminal) and synchronization server (as Sync ML synchronization server), can save lock in time greatly, increase the good experience of cellphone subscriber, improve brand effect wireless backup traffic.
The mobile phone terminal of one embodiment of the present invention, it is client, also can be other wireless data processing terminals, such as personal digital assistant PDA (Personal Digital Assistant), palmtop PC, global position system GPS (Global Positioning System), bluetooth equipment etc., as long as it has the data sync function.
Embodiments of the present invention also provide a kind of wireless terminal, and its structured flowchart as shown in Figure 3.This wireless terminal comprises transmitting element, the good data processing unit of receiving element, wherein:
Transmitting element is used for sending synchronization request or returning respond packet to server end;
Receiving element is used for the business data packet that the reception server end is sent;
Data processing unit is used for handling the business data packet that receives at transmitting element when server end returns respond packet.
Because this wireless terminal comprises data processing unit, this data processing unit can be handled the business data packet that receives at transmitting element when server end returns respond packet, make transfer of data and wireless terminal data between client (as mobile phone terminal) and synchronization server (as Sync ML synchronization server) handle asynchronous execution simultaneously, can save lock in time greatly, increase the good experience of user, improve brand effect wireless backup traffic.
This wireless terminal can further include query unit, be used for when wireless terminal receives last business data packet that server end sends, the data query processing unit, whether business data processing is finished, if finish, return all data processed result and give server end, finish synchronizing process; If data processing unit is not handled business datum, wait for that then returning all data processed result after data processing unit is finished business data processing gives server end, finishes synchronizing process.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1, a kind of transfer of data and synchronous method is characterized in that, comprising:
Wireless terminal sends the data recovery request to server end;
After server end was received described data recovery request, taking out from self database needed data recovered, and with its coding;
Business datum after server end will be encoded is passed wireless terminal back;
After wireless terminal receives the business datum that server end transmits, return respond packet immediately, simultaneously business datum is passed to the data processing thread process.
2, the method for claim 1 is characterized in that, described wireless terminal is personal digital assistant, palmtop PC, global positioning system, bluetooth equipment.
3, the method for claim 1, it is characterized in that, also comprise: when described wireless terminal receives last business data packet that server end sends, inquire described data processing thread, whether business data processing is finished, if finish, return all data processed result and give server end, finish synchronizing process; If described data processing thread is not handled business datum, wait for that then returning all data processed result after described data processing thread is finished business data processing gives server end, finishes synchronizing process.
4, method as claimed in claim 3 is characterized in that, also comprises:
If mistake appears in described data processing thread when deal with data is professional, give the main program of described wireless terminal with sending out message, after the main program of described wireless terminal is received this message, send the processing erroneous packets to server end, finish synchronizing process.
5, a kind of wireless terminal is characterized in that, comprises transmitting element, the good data processing unit of receiving element, wherein:
Described transmitting element is used for sending synchronization request or returning respond packet to server end;
Described receiving element is used for the business data packet that the reception server end is sent;
Described data processing unit is used for handling the business data packet that receives at described transmitting element when server end returns respond packet.
6, wireless terminal as claimed in claim 5, it is characterized in that, also comprise query unit, be used for when described receiving element receives last business data packet that server end sends, inquire about described data processing unit, whether business data processing is finished, if finish, return all data processed result and give server end, finish synchronizing process; If described data processing unit is not handled business datum, wait for that then returning all data processed result after described data processing unit is finished business data processing gives server end, finishes synchronizing process.
CNA2008100655968A 2008-03-19 2008-03-19 Data transmission and synchronization method and wireless terminal Pending CN101247415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100655968A CN101247415A (en) 2008-03-19 2008-03-19 Data transmission and synchronization method and wireless terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100655968A CN101247415A (en) 2008-03-19 2008-03-19 Data transmission and synchronization method and wireless terminal

Publications (1)

Publication Number Publication Date
CN101247415A true CN101247415A (en) 2008-08-20

Family

ID=39947612

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100655968A Pending CN101247415A (en) 2008-03-19 2008-03-19 Data transmission and synchronization method and wireless terminal

Country Status (1)

Country Link
CN (1) CN101247415A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013189289A1 (en) * 2012-06-20 2013-12-27 华为技术有限公司 Data processing method, network card and system
CN103856517A (en) * 2012-11-30 2014-06-11 英业达科技有限公司 Synchronous equalization system and method thereof
CN105049161A (en) * 2015-08-25 2015-11-11 长沙市麓智信息科技有限公司 Online business processing system based on text storage
CN112115504A (en) * 2020-06-29 2020-12-22 上海金融期货信息技术有限公司 Database access method and system based on TDS protocol

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013189289A1 (en) * 2012-06-20 2013-12-27 华为技术有限公司 Data processing method, network card and system
CN103514173A (en) * 2012-06-20 2014-01-15 华为技术有限公司 Data processing method and node equipment
CN103514173B (en) * 2012-06-20 2017-08-04 华为技术有限公司 The method and node device of data processing
CN103856517A (en) * 2012-11-30 2014-06-11 英业达科技有限公司 Synchronous equalization system and method thereof
CN105049161A (en) * 2015-08-25 2015-11-11 长沙市麓智信息科技有限公司 Online business processing system based on text storage
CN112115504A (en) * 2020-06-29 2020-12-22 上海金融期货信息技术有限公司 Database access method and system based on TDS protocol

Similar Documents

Publication Publication Date Title
CN106209948B (en) A kind of data push method and device
WO2011023068A1 (en) Device, method and related device for obtaining service content for personal network equipment
CN105187283A (en) Industrial control network slave station communication method and device based on EtherCAT protocol
CN109547162B (en) Data communication method based on two sets of one-way boundaries
CN105429858A (en) Real-time message transmission method among multiple robots
CN103139157A (en) Network communication method based on socket, device and system
CN102724122B (en) Reliable serial port transmission method and device based on hardware system
CN102882974A (en) Method for saving website access resource by website identification version number
CN101778134A (en) Data synchronization method and mobile communication terminal
CN103095684A (en) Method obtaining attention user aggregate information, device and system
EP2571296A1 (en) Method, device and mobile multi-media broadcasting service system for transmitting data information
CN101247415A (en) Data transmission and synchronization method and wireless terminal
CN104052565A (en) Time synchronization method and communication terminal
CN104125321B (en) A kind of contact details update method, device and system
CN104320447A (en) Medium and small-sized cloud stored data synchronization method, compute readable medium and system
CN103034632A (en) Information transmitting method and a system
CN102917212A (en) 3G (The 3rd Generation Telecommunication) wireless video monitoring implementation method and 3G wireless video monitoring system based on RTP (Real Time Protocol) and RTSP (Real Time Streaming Protocol)
CN101834894A (en) Method, device and system for remote processing
CN204204033U (en) Based on the e-commerce system of wireless network
CN106899493A (en) Based on information push method and its device that UDP and Https is realized
CN103442091A (en) Data transmission method and device
CN107846328B (en) Network rate real-time statistical method based on concurrent lock-free ring queue
CN103533001A (en) Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server
CN106982165A (en) Data compression method and its system
CN111935316B (en) Method and device for acquiring front-end equipment catalog

Legal Events

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

Open date: 20080820