CN103607458A - Hand-held terminal basic data synchronization method - Google Patents
Hand-held terminal basic data synchronization method Download PDFInfo
- Publication number
- CN103607458A CN103607458A CN201310591835.4A CN201310591835A CN103607458A CN 103607458 A CN103607458 A CN 103607458A CN 201310591835 A CN201310591835 A CN 201310591835A CN 103607458 A CN103607458 A CN 103607458A
- Authority
- CN
- China
- Prior art keywords
- data
- handheld terminal
- operation system
- user
- hand
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention provides a hand-held terminal basic data synchronization method. The following steps are parallel operated including: a background thread executing querying of data needing to be synchronized by a hand-held terminal, a service system returning a response of registration success and information of "new time stamp+user ID " to the hand-held terminal, and the hand-held terminal using the "new time stamp+user ID " to request the basic data to be synchronized in the service system, such that the service system, when receiving the request for synchronizing the basic data from the hand-held terminal, if a file about data synchronization needed by the hand-held terminal is already generated, directly issuing the synchronization data without waiting for the query of a database, thus the synchronization waiting time of the hand-held terminal is reduced, user experience is enhanced, and the effects are more obvious especially when there is a quite large mobile network time delay.
Description
Technical field
The present invention relates to a kind of method of handheld terminal synchronous foundation data.
Background technology
Current, handheld terminal, because of service needed, often need to be used some basic datas of operation system, consuming time alternately in order to reduce, and way is after the success of handheld terminal registering service system conventionally at present, and it is synchronous that the mode of employing timestamp is carried out increment:
The request of carrying user name, password login by handheld terminal transmission is to operation system, after being verified, operation system replys user ID to handheld terminal, handheld terminal report of user ID and local time stamp are to operation system request synchronous foundation data, operation system needs synchronous data and obtains new timestamp (being generally directly to use current time) to data base querying according to user ID and timestamp, the data that operation system transmission need be synchronous and new timestamp are to handheld terminal, and handheld terminal upgrades local basis data and timestamp.When handheld terminal needs synchronous basic data type more, the table that operation system need to be inquired about increases, stage at data base querying can consume more query time, also needs to spend the longer time to wait for that basic data is synchronous and completely could use business function after logining successfully, and affects user's experience.
Summary of the invention
The object of the present invention is to provide a kind of stand-by period short, do not affect the method for the handheld terminal synchronous foundation data of business function.
A method for handheld terminal synchronous foundation data, specifically comprises the steps:
The logging request that user name, password, local time stamp are carried in step 1, handheld terminal transmission is to operation system;
Step 2, operation system are verified after this user name, password, according to current time, generate new timestamp, and operation system is returned to login successfully and replied with the information of " new timestamp+user ID " to handheld terminal; On backstage, open thread execution query task, this background thread needs synchronous data according to the timestamp in logging request to data base querying simultaneously, and poll-final is stored in the synchronous data of needs in the file with " new timestamp+user ID " name;
Step 3, handheld terminal receive that operation system returns login successfully and reply after, use the synchronous foundation request of data of carrying " new timestamp+user ID " information to operation system request synchronous foundation data;
Step 4, operation system are received after the request of the synchronous foundation data that handheld terminal sends, take " new timestamp+user ID " remove to find file as filename, as find, represent that data query is complete, directly issue this document content to handheld terminal, as do not find file, represent that data query does not complete, reply handheld terminal data query and do not complete, need again ask synchronous foundation data;
Step 5, handheld terminal are received the file that operation system issues, and upgrade local basis data, and local time stamp is set to new timestamp, synchronously complete, as receive to be that data query is uncompleted reply, continue step 3.
In the present invention background thread carry out inquiry handheld terminal need the step of synchrodata be with operation system return login successfully reply and the information of " new timestamp+user ID " to handheld terminal, then handheld terminal use " new timestamp+user ID " is parallel work-flows to the step of operation system request synchronous foundation data, operation system is when receiving the request of handheld terminal synchronous foundation data like this, if handheld terminal needs the file of synchronous basic data to generate, can directly issue synchrodata, without waiting for again data base querying, reduced the synchronous stand-by period of handheld terminal, improving user experiences, when particularly mobile network's time delay is larger, effect is more obvious.
Accompanying drawing explanation
Fig. 1 is workflow block diagram of the present invention.
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
Embodiment
As shown in Figure 1, the method for a kind of handheld terminal synchronous foundation of the present invention data, specifically comprises the steps:
The logging request that user name, password, local time stamp are carried in step 1, handheld terminal transmission is to operation system;
Step 2, operation system are verified after this user name, password, according to current time, generate new timestamp, and operation system is returned to login successfully and replied with the information of " new timestamp+user ID " to handheld terminal; On backstage, open thread execution query task, this background thread needs synchronous data according to the timestamp in logging request to data base querying simultaneously, and poll-final is stored in the synchronous data of needs in the file with " new timestamp+user ID " name;
Step 3, handheld terminal receive that operation system returns login successfully and reply after, use the synchronous foundation request of data of carrying " new timestamp+user ID " information to operation system request synchronous foundation data;
Step 4, operation system are received after the request of the synchronous foundation data that handheld terminal sends, take " new timestamp+user ID " remove to find file as filename, as find, represent that data query is complete, directly issue this document content to handheld terminal, as do not find file, represent that data query does not complete, reply handheld terminal data query and do not complete, need again ask synchronous foundation data;
Step 5, handheld terminal are received the file that operation system issues, and upgrade local basis data, and local time stamp is set to new timestamp, synchronously complete, as receive to be that data query is uncompleted reply, continue step 3.
In the present invention background thread carry out inquiry handheld terminal need the step of synchrodata be with operation system return login successfully reply and the information of " new timestamp+user ID " to handheld terminal, then handheld terminal use " new timestamp+user ID " is parallel work-flows to the step of operation system request synchronous foundation data, operation system is when receiving the request of handheld terminal synchronous foundation data like this, if handheld terminal needs the file of synchrodata to generate, can directly issue synchrodata, without waiting for again data base querying, reduced the synchronous stand-by period of handheld terminal, improving user experiences, when particularly mobile network's time delay is larger, effect is more obvious.
The above, it is only preferred embodiment of the present invention, not technical scope of the present invention is imposed any restrictions, therefore any trickle modification, equivalent variations and modification that every foundation technical spirit of the present invention is done above embodiment all still belong in the scope of technical solution of the present invention.
Claims (1)
1. a method for handheld terminal synchronous foundation data, is characterized in that comprising the steps:
The logging request that user name, password, local time stamp are carried in step 1, handheld terminal transmission is to operation system;
Step 2, operation system are verified after this user name, password, according to current time, generate new timestamp, and operation system is returned to login successfully and replied with the information of " new timestamp+user ID " to handheld terminal; On backstage, open thread execution query task, this background thread needs synchronous data according to the timestamp in logging request to data base querying simultaneously, and poll-final is stored in the synchronous data of needs in the file with " new timestamp+user ID " name;
Step 3, handheld terminal receive that operation system returns login successfully and reply after, use the synchronous foundation request of data of carrying " new timestamp+user ID " information to operation system request synchronous foundation data;
Step 4, operation system are received after the request of the synchronous foundation data that handheld terminal sends, take " new timestamp+user ID " remove to find file as filename, as find, represent that data query is complete, directly issue this document content to handheld terminal, as do not find file, represent that data query does not complete, reply handheld terminal data query and do not complete, need again ask synchronous foundation data;
Step 5, handheld terminal are received the file that operation system issues, and upgrade local basis data, and local time stamp is set to new timestamp, synchronously complete, as receive to be that data query is uncompleted reply, continue step 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310591835.4A CN103607458B (en) | 2013-11-22 | 2013-11-22 | A kind of method of hand-held terminal basic data synchronization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310591835.4A CN103607458B (en) | 2013-11-22 | 2013-11-22 | A kind of method of hand-held terminal basic data synchronization |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103607458A true CN103607458A (en) | 2014-02-26 |
CN103607458B CN103607458B (en) | 2018-07-10 |
Family
ID=50125658
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310591835.4A Active CN103607458B (en) | 2013-11-22 | 2013-11-22 | A kind of method of hand-held terminal basic data synchronization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103607458B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493330A (en) * | 2019-08-13 | 2019-11-22 | 浙江省方大标准信息有限公司 | A kind of data exchange system and its method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020129025A1 (en) * | 2001-03-07 | 2002-09-12 | Broadcom Corporation | System and method for slot based ARL table learning and concurrent table search using range address insertion blocking |
US20040133629A1 (en) * | 2002-02-01 | 2004-07-08 | Brian Reynolds | Methods, systems and devices for automated web publishing and distribution |
CN101127041A (en) * | 2007-08-28 | 2008-02-20 | 激动集团股份有限公司 | Business rule basic data buffer method |
CN102841823A (en) * | 2011-06-23 | 2012-12-26 | 鸿富锦精密工业(深圳)有限公司 | Data backup system and method |
-
2013
- 2013-11-22 CN CN201310591835.4A patent/CN103607458B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020129025A1 (en) * | 2001-03-07 | 2002-09-12 | Broadcom Corporation | System and method for slot based ARL table learning and concurrent table search using range address insertion blocking |
US20040133629A1 (en) * | 2002-02-01 | 2004-07-08 | Brian Reynolds | Methods, systems and devices for automated web publishing and distribution |
CN101127041A (en) * | 2007-08-28 | 2008-02-20 | 激动集团股份有限公司 | Business rule basic data buffer method |
CN102841823A (en) * | 2011-06-23 | 2012-12-26 | 鸿富锦精密工业(深圳)有限公司 | Data backup system and method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493330A (en) * | 2019-08-13 | 2019-11-22 | 浙江省方大标准信息有限公司 | A kind of data exchange system and its method |
Also Published As
Publication number | Publication date |
---|---|
CN103607458B (en) | 2018-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103177116B (en) | A kind of distributed information log based on two-stage index is processed and querying method | |
CN104536965B (en) | A kind of data query display systems under the conditions of big data and method | |
CN108259533B (en) | Data transmission method and device | |
RU2009148317A (en) | LOCATION IMPORTING DATA DELIVERY DEVICE, LOCATION DATA IMPORTATION SYSTEM AND METHOD OF LOCATING DATA IMPORTATION | |
CN103986752A (en) | Method, device and system for inputting information on input interface of smart television set | |
CN102904960A (en) | Information synchronizing system and method based on really simple syndication (RSS) | |
CN103139299B (en) | Cloud service dispatching method between cloudy and system | |
CN103780627A (en) | Native APP, Web APP and Wechat-similar APP information synchronization system | |
CN102736923B (en) | Software customization installation method and system | |
CN102111344A (en) | Method for reminding business updating and device adopting same | |
CN102567026A (en) | Mobile application constructing system and method | |
CN103139157A (en) | Network communication method based on socket, device and system | |
CN103220643B (en) | Information providing method and device, ATL matching process and device | |
CN104657841A (en) | Express item delivery method, delivery processing method, express cabinet terminal and service system | |
CN104881482A (en) | Intellectual property case progress query method, device and system | |
CN102546218A (en) | Configuration management method and system | |
CN103778395A (en) | Application installation method for near field communication (NFC) terminal and near field communication (NFC) terminal | |
CN108959278B (en) | Data synchronization method and device, electronic equipment and storage medium | |
CN100452704C (en) | Method and method for issuing blog articles | |
CN102185701A (en) | Method and system for realizing group information interaction | |
CN103581273A (en) | Service executing method, device and system for distributed system | |
CN104298757A (en) | Method and system allowing compatibility with mobile clients and databases different in version | |
CN111835824B (en) | Binding method, migration method, binding device, migration device, computing equipment and storage medium | |
CN101931633B (en) | Incremental synchronization method applied to intelligent mobile phone terminal | |
CN102103606A (en) | Technology for realizing advanced search of commodities on mobile phone client |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |