CN104639767A - Mobile terminal and control method thereof on cache data flow rate - Google Patents

Mobile terminal and control method thereof on cache data flow rate Download PDF

Info

Publication number
CN104639767A
CN104639767A CN201510110516.6A CN201510110516A CN104639767A CN 104639767 A CN104639767 A CN 104639767A CN 201510110516 A CN201510110516 A CN 201510110516A CN 104639767 A CN104639767 A CN 104639767A
Authority
CN
China
Prior art keywords
data
local
timestamp
latest data
module
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
Application number
CN201510110516.6A
Other languages
Chinese (zh)
Other versions
CN104639767B (en
Inventor
宋丛林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Hongyu Shun Software Co. Ltd.
Original Assignee
Shenzhen Hong Yushun Science And Technology 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 Hong Yushun Science And Technology Ltd filed Critical Shenzhen Hong Yushun Science And Technology Ltd
Priority to CN201510110516.6A priority Critical patent/CN104639767B/en
Publication of CN104639767A publication Critical patent/CN104639767A/en
Application granted granted Critical
Publication of CN104639767B publication Critical patent/CN104639767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a mobile terminal and a control method thereof on the cache data flow rate. The control method comprises the following steps that a data inquiring signal is obtained; whether the current connection is WIFI (Wireless Fidelity) connection or not is judged, if so, the latest data on a data server is synchronized onto a local database, and a timestamp of the local latest data is stored on the local database; if not, whether other wireless connection exists or not is judged; if so, the local latest data is output, and the timestamp of the local latest data is output; if so, the timestamp of the latest data is obtained from the data server, whether the obtained timestamp is identical to the timestamp of the local latest data or not is judged, if so, the local latest data is output, and if not, the latest data on the data server is updated into the local latest data on the local database and is output. The method has the advantages that the charging data flow rate can be reduced, the user experience can be improved, and the cost is reduced.

Description

A kind of mobile terminal and it is to the control method of data cached flow
Technical field
The present invention relates to field of mobile terminals, particularly relate to a kind of mobile terminal and it is to the control method of data cached flow.
Background technology
In the prior art, the application of mobile terminal is usually designed to and above server, obtains latest data in real time, if at this moment network does not connect, then point out " network error ", the application of mobile terminal just can not use, if Consumer's Experience is bad. and network in non-wifi situation in addition, obtain total data from server in real time, will at substantial data traffic, produce more campus network.
Summary of the invention
Object of the present invention is intended at least solve one of above-mentioned technological deficiency, provides a kind of mobile terminal and it is to the control method of data cached flow.
The invention provides a kind of control method of data cached flow, described control method comprises the following steps:
Get data query signal;
Judge whether current connection is that wifi connects, and if so, is synchronized on local data base by the latest data on data server, and on local data base, preserves the timestamp of local latest data;
When current connection be not wifi connect time, judge whether to there are other wireless connections, if not, export local latest data and export the timestamp of local latest data;
When current connection is other wireless connections, the timestamp of latest data is obtained from data server, whether the timestamp relatively got is identical with the timestamp of local latest data, if identical, then export local latest data, if different, then the latest data on data server are updated to the local latest data on local data base and export, and on local data base, preserving the timestamp of local latest data.
As can be seen from the scheme of said method, when current connection is wifi connection, make the local latest data in local data base synchronous with the latest data on data server, when current connection be not wifi connect and the timestamp of the timestamp got and local latest data time, do not need from data server download data, the local latest data of direct output, when there are not wireless connections and network is obstructed, export local latest data and the timestamp exporting local latest data to user, thus metering data flow can be reduced, improve Consumer's Experience, cost saving.
The invention provides also a kind of mobile terminal, described mobile terminal comprises user interaction process module, service module, wifi synchrodata module, database module, and data time stamp processing module user interaction process module, for getting data query signal;
Service module, for when user interaction process module gets data query signal, judge whether current connection is that wifi connects, and if so, exports first and controls signal to described wifi synchrodata module, if not, then judge whether to there are other wireless connections, if so, obtain the timestamp of latest data from data server and export described data time stamp processing module to, if not, export second and control signal to user interaction process module;
Wifi synchrodata module, during for receiving the first control signal, is synchronized to the latest data on data server on local data base, and on local data base, preserves the timestamp of local latest data;
Database module, for setting up local data base, saving as local latest data on local data base by the latest data of described wifi synchrodata module synchronization, and preserving the timestamp of local latest data;
Data time stamp processing module, whether the timestamp for comparing timestamp and the local latest data got is identical, if identical, exports local latest data to user by user interaction process module, if different, export the 3rd and control signal to described wifi synchrodata module;
Wifi synchrodata module, time also for receiving the 3rd control signal, is updated to the local latest data on local data base by the latest data on data server;
User interaction process module, time also for receiving the second control signal, from described database module local latest data and local latest data timestamp and export to user.
As can be seen from the scheme of above-mentioned terminal, when current connection is wifi connection, make the local latest data in local data base synchronous with the latest data on data server, when current connection be not wifi connect and the timestamp of the timestamp got and local latest data time, do not need from data server download data, the local latest data of direct output, when there are not wireless connections and network is obstructed, export local latest data and the timestamp exporting local latest data to user, thus metering data flow can be reduced, improve Consumer's Experience, cost saving.
Accompanying drawing explanation
Fig. 1 is the flow chart of the first embodiment of control method of the data cached flow of the present invention;
Fig. 2 is the flow chart of control method the second embodiment of the data cached flow of the present invention;
Fig. 3 is the flow chart of the third embodiment of control method of the data cached flow of the present invention;
Fig. 4 is the flow chart of a kind of embodiment of mobile terminal of the present invention.
Embodiment
In order to make technical problem solved by the invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention provides a kind of control method of data cached flow of embodiment, as shown in Figure 1, said method comprising the steps of:
Step S01, gets data query signal;
Step S02, judges whether current connection is that wifi connects, and if so, enters step S03, if not, enters step S04;
Step S03, is synchronized to the latest data on data server on local data base, and on local data base, preserve the timestamp of local latest data;
Step S04, judges whether to there are other wireless connections, if not, enters step S05, if so, enters step S06;
Step S05, exports local latest data and exports the timestamp of local latest data;
Step S06, obtains the timestamp of latest data, enters step S07 from data server;
Step S07, whether the timestamp comparing timestamp and the local latest data got is identical, if identical, enters step S08, if different, enters step S09;
Step S08, exports local latest data;
Step S09, is updated to the local latest data on local data base and exports, and on local data base, preserving the timestamp of local latest data by the latest data on data server.
In step S05, if there is no during other wireless connections, then from local data base, obtain latest data present to user, inform the time point of the current latest data of user simultaneously, network connection is obstructed to allow user know, current data obtain from local data base.Mode that timestamp can be converted to the easy perception of user by the data of such as presenting to user, as latest data etc. before half an hour, can be improved the experience of user like this, make mobile terminal hommization more.In addition, step S05 is the local latest data when network is obstructed, can improve the experience of user; And step S08 is when the timestamp of local latest data is identical with the timestamp of the latest data on data server, export local latest data, make it possible to save campus network.
In concrete enforcement, wireless connections comprise wifi, and the networks such as 2G, 3G, 4G connect, and wifi is that free network connects, and the network that other networks connection except wifi is charge connects.
As can be seen from the scheme of said method, when current connection is wifi connection, make the local latest data in local data base synchronous with the latest data on data server, when current connection be not wifi connect and the timestamp of the timestamp got and local latest data time, do not need from data server download data, the local latest data of direct output, when there are not wireless connections and network is obstructed, export local latest data and the timestamp exporting local latest data to user, thus metering data flow can be reduced, improve Consumer's Experience, cost saving.
In concrete enforcement, as shown in Figure 2, described step S09 specifically comprises the following steps:
Step S091, compares the time difference of the timestamp of timestamp and the local latest data got;
Step S092, according to time difference, the data from data server between acquisition time difference are also preserved.
In step S091 and step S092, when current connection be other networks namely except wifi of other wireless connections connect time, and the timestamp the got timestamp that namely from server get different from the timestamp of local latest data is when being later than the timestamp of local latest data, more data traffic is consumed in order to reduce, data from data server only between download time difference are saved on local data base, just the local latest data on local data base and the latest data on data server can be kept to be in synchronous regime, thus save campus network further.Timestamp in addition due to data is less than data itself, can reduce transfer of data like this to save campus network.
In concrete enforcement, as shown in Figure 3, further comprising the steps of after step S01:
Step S011, the active signal of the data query signal judging user whether user, if so, enters step S02, if not, enters step S012;
Step S012, judges whether that there is wifi connects, and if so, enters step S03, if not, enters step S05.
In step S012, by judging whether that there is wifi connects, only when there is wifi and connecting, just from data server 20, latest data can be obtained completely, make full use of increasing free wifi environment like this, reduce the transmission of other charge wireless data, save customer flow and expense.
In concrete enforcement, as shown in Figure 3, further comprising the steps of after step S03:
Step S031, exports the latest data on data server and shows.
In concrete enforcement, the present invention also provides a kind of mobile terminal of embodiment, and as shown in Figure 4, described mobile terminal 10 comprises user interaction process module 1, service module 2, wifi synchrodata module 3, database module 4, and data time stamp processing module 5;
User interaction process module 1, for getting data query signal;
Service module 2, for when user interaction process module 1 gets data query signal, judge whether current connection is that wifi connects, and if so, exports first and controls signal to described wifi synchrodata module 3, if not, then judge whether to there are other wireless connections, if so, obtain the timestamp of latest data from data server 20 and export described data time stamp processing module 5 to, if not, export second and control signal to user interaction process module 1;
Wifi synchrodata module 3, during for receiving the first control signal, is synchronized to the latest data on data server 20 on local data base, and on local data base, preserves the timestamp of local latest data;
Database module 4, for setting up local data base, saving as local latest data on local data base by latest data synchronous for wifi synchrodata module 3, and preserving the timestamp of local latest data;
Data time stamp processing module 5, whether the timestamp for comparing timestamp and the local latest data got is identical, if identical, exports local latest data to user by user interaction process module 1, if different, export the 3rd and control signal to wifi synchrodata module 3;
Wifi synchrodata module 3, time also for receiving the 3rd control signal, is updated to the local latest data on local data base by the latest data on data server 20;
User interaction process module 1, time also for receiving the second control signal, from described database module 4 local latest data and local latest data timestamp and export to user.
In concrete enforcement, if when service module 2 judges to there are not other wireless connections, then from local data base, obtain latest data present to user, inform the time point of the current latest data of user simultaneously, network connection is obstructed to allow user know, current data obtain from local data base.Mode that timestamp can be converted to the easy perception of user by the data of such as presenting to user, as latest data etc. before half an hour, can be improved the experience of user like this, make mobile terminal hommization more.
As can be seen from the scheme of the said equipment, when current connection is wifi connection, make the local latest data in local data base synchronous with the latest data on data server, when current connection be not wifi connect and the timestamp of the timestamp got and local latest data time, do not need from data server download data, the local latest data of direct output, when there are not wireless connections and network is obstructed, export local latest data and the timestamp exporting local latest data to user, thus metering data flow can be reduced, improve Consumer's Experience, cost saving.
In concrete enforcement, described data time stamp processing module 5 is also for comparing the time difference of the timestamp of timestamp and the local latest data got;
Wifi synchrodata module 3 is also for according to time difference, and the data from data server 20 between acquisition time difference also export described database module 4 to.
When service module 2 judge current connection be other networks namely except wifi of other wireless connections connect time, and described data time stamp processing module 5 is when judging that the timestamp timestamp that namely from data server 20 get different from the timestamp of local latest data got is later than the timestamp of local latest data, more data traffic is consumed in order to reduce, data from data server 20 only between download time difference are saved on local data base, just the local latest data on local data base and the latest data on data server can be kept to be in synchronous regime, thus save campus network further.Timestamp in addition due to data is less than data itself, can reduce transfer of data like this to save campus network.
In concrete enforcement, described user interaction process module 1 also for the active signal of the data query signal whether user that judges user, if so, then exports the first request signal to described service module, if not, then the second request signal is exported to described service module 2;
Described service module 2 is also for when reception the first request signal, judge whether current connection is that wifi connects, if, export first and control signal to described wifi synchrodata module 3, if not, then judge whether to there are other wireless connections, if, obtain the timestamp of latest data from data server 20 and export described data time stamp processing module 5 to, if not, exporting second and control signal to user interaction process module 1;
When reception the second request signal, judge whether that there is wifi connects, if so, export first and control signal to described wifi synchrodata module 3, if not, export second and control signal to user interaction process module 1.
In concrete enforcement, judge whether that there is wifi connects by service module 2, only when there is wifi and connecting, just from data server 20, latest data can be obtained completely, make full use of increasing free wifi environment like this, reduce the transmission of other charge wireless data, save customer flow and expense.
In concrete enforcement, described user interaction process module 1 is also for exporting the latest data on data server and showing.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a control method for data cached flow, is characterized in that: described control method comprises the following steps:
Get data query signal;
Judge whether current connection is that wifi connects, and if so, is synchronized on local data base by the latest data on data server, and on local data base, preserves the timestamp of local latest data;
When current connection be not wifi connect time, judge whether to there are other wireless connections, if not, export local latest data and export the timestamp of local latest data;
When current connection is other wireless connections, the timestamp of latest data is obtained from data server, whether the timestamp relatively got is identical with the timestamp of local latest data, if identical, then export local latest data, if different, then the latest data on data server are updated to the local latest data on local data base and export, and on local data base, preserving the timestamp of local latest data.
2. control method as claimed in claim 1, is characterized in that: described step latest data on data server being updated to the local latest data on local data base, specifically comprises the following steps:
The time difference of the timestamp relatively got and the timestamp of local latest data;
According to time difference, the data from data server between acquisition time difference are also preserved.
3. control method as claimed in claim 1, is characterized in that: after the step of data query signal getting user, further comprising the steps of:
The active signal of the data query signal judging user whether user, if so, enters and judges whether current connection is the step that wifi connects;
When the data query signal of user is not the active signal of user, judge whether that there is wifi connects, if so, enter and the latest data on data server is synchronized on local data base, and on local data base, preserve the step of timestamp of local latest data;
When there is not wifi and connecting, enter and export local latest data and the step exporting the timestamp of local latest data.
4. control method as claimed in claim 1, it is characterized in that: when the data query signal of user is the active signal of user, latest data on data server is being synchronized on local data base, and after the step of timestamp of preserving local latest data on local data base, further comprising the steps of;
Latest data on data server is exported and shows.
5. a mobile terminal, is characterized in that: described mobile terminal comprises user interaction process module, service module, wifi synchrodata module, database module, and data time stamp processing module;
User interaction process module, for getting data query signal;
Service module, for when user interaction process module gets data query signal, judge whether current connection is that wifi connects, and if so, exports first and controls signal to described wifi synchrodata module, if not, then judge whether to there are other wireless connections, if so, obtain the timestamp of latest data from data server and export described data time stamp processing module to, if not, export second and control signal to user interaction process module;
Wifi synchrodata module, during for receiving the first control signal, is synchronized to the latest data on data server on local data base, and on local data base, preserves the timestamp of local latest data;
Database module, for setting up local data base, saving as local latest data on local data base by the latest data of wifi synchrodata module synchronization, and preserving the timestamp of local latest data;
Data time stamp processing module, whether the timestamp for comparing timestamp and the local latest data got is identical, if identical, exports local latest data to user by user interaction process module, if different, export the 3rd and control signal to wifi synchrodata module;
Wifi synchrodata module, time also for receiving the 3rd control signal, is updated to the local latest data on local data base by the latest data on data server;
User interaction process module, time also for receiving the second control signal, from described database module local latest data and local latest data timestamp and export to user.
6. mobile terminal as claimed in claim 5, is characterized in that: described data time stamp processing module is also for comparing the time difference of the timestamp of timestamp and the local latest data got;
Wifi synchrodata module is also for according to time difference, and the data from data server between acquisition time difference also export described database module to.
7. mobile terminal as claimed in claim 5, it is characterized in that: described user interaction process module is also for the active signal of the data query signal whether user that judges user, if, then export the first request signal to described service module, if not, then the second request signal is exported to described service module;
Described service module is also for when reception the first request signal, judge whether current connection is that wifi connects, if, export first and control signal to described wifi synchrodata module, if not, then judge whether to there are other wireless connections, if, obtain the timestamp of latest data from data server and export data time stamp processing module to, if not, exporting second and control signal to user interaction process module;
When reception the second request signal, judge whether that there is wifi connects, if so, export first and control signal to described wifi synchrodata module, if not, export second and control signal to user interaction process module.
8. mobile terminal as claimed in claim 5, is characterized in that: described user interaction process module is also for exporting the latest data on data server and showing.
CN201510110516.6A 2015-03-13 2015-03-13 A kind of mobile terminal and its control method to data cached flow Active CN104639767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510110516.6A CN104639767B (en) 2015-03-13 2015-03-13 A kind of mobile terminal and its control method to data cached flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510110516.6A CN104639767B (en) 2015-03-13 2015-03-13 A kind of mobile terminal and its control method to data cached flow

Publications (2)

Publication Number Publication Date
CN104639767A true CN104639767A (en) 2015-05-20
CN104639767B CN104639767B (en) 2018-01-30

Family

ID=53218054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510110516.6A Active CN104639767B (en) 2015-03-13 2015-03-13 A kind of mobile terminal and its control method to data cached flow

Country Status (1)

Country Link
CN (1) CN104639767B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648917A (en) * 2016-09-19 2017-05-10 福建天泉教育科技有限公司 Cache data differential updating method and system
CN109254995A (en) * 2018-08-02 2019-01-22 浪潮通用软件有限公司 A method of utilizing cache synchronization data
CN110263275A (en) * 2019-06-14 2019-09-20 深圳前海桔子信息技术有限公司 A kind of method, apparatus, mobile terminal and storage medium accessing webpage

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571921A (en) * 2011-12-09 2012-07-11 广东威创视讯科技股份有限公司 Network access method and device for mobile equipment
US20120191780A1 (en) * 2011-01-21 2012-07-26 Masanori Sato Wireless communication device, program, and wireless communication system
CN102624756A (en) * 2011-01-28 2012-08-01 联想(北京)有限公司 Data download terminal and data download method
CN103970550A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Software updating prompting method and device for mobile terminal
CN104079540A (en) * 2013-03-28 2014-10-01 中兴通讯股份有限公司 Method, device and system of updating application as well as user equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120191780A1 (en) * 2011-01-21 2012-07-26 Masanori Sato Wireless communication device, program, and wireless communication system
CN102624756A (en) * 2011-01-28 2012-08-01 联想(北京)有限公司 Data download terminal and data download method
CN102571921A (en) * 2011-12-09 2012-07-11 广东威创视讯科技股份有限公司 Network access method and device for mobile equipment
CN103970550A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Software updating prompting method and device for mobile terminal
CN104079540A (en) * 2013-03-28 2014-10-01 中兴通讯股份有限公司 Method, device and system of updating application as well as user equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648917A (en) * 2016-09-19 2017-05-10 福建天泉教育科技有限公司 Cache data differential updating method and system
CN106648917B (en) * 2016-09-19 2019-09-10 福建天泉教育科技有限公司 A kind of method and system that difference update is data cached
CN109254995A (en) * 2018-08-02 2019-01-22 浪潮通用软件有限公司 A method of utilizing cache synchronization data
CN110263275A (en) * 2019-06-14 2019-09-20 深圳前海桔子信息技术有限公司 A kind of method, apparatus, mobile terminal and storage medium accessing webpage
CN110263275B (en) * 2019-06-14 2021-10-29 深圳桔子数字技术有限公司 Method and device for accessing webpage, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN104639767B (en) 2018-01-30

Similar Documents

Publication Publication Date Title
EP3550892B1 (en) Method for network slice selection, user equipment, and network device
CN111132271B (en) Dynamic adjustment method and device for PDU session
US11265736B2 (en) Method for configuring ANR, terminal device, base station, and core network device
CN109429373B (en) Communication mode switching method, network side equipment and terminal equipment
CN110073638B (en) Data transmission method, terminal and access network element
US11218945B2 (en) Access control method, terminal, and access network device
CN110913472B (en) Positioning management method and device, 5G wireless access network node and core network node
CN112512096A (en) Communication method and device based on slice
US20210144663A1 (en) Information transmission method and apparatus, and communication device
CN109168171B (en) Configuration information acquisition method, device, equipment and system
CN109688594B (en) Time delay monitoring method, base station, terminal and computer storage medium
CN104639767A (en) Mobile terminal and control method thereof on cache data flow rate
US20150105059A1 (en) Method of Managing the Connectivity of a Terminal
US20170070867A1 (en) Method and system for triggering terminal group
CN104185168A (en) Method of acquiring own number, system and terminal
US10516991B2 (en) Wireless device, network node, and methods and computer programs for the same
US20210227375A1 (en) Communication apparatus, management apparatus, and methods for controlling the same
US11903073B2 (en) Dynamic adjustment method and apparatus for PDU session
CN113254805A (en) Method and network equipment for inquiring group position
CN111510949B (en) Data transmission method, device and storage medium
CN103108305A (en) Terminal triggering message effective time control method and control system
CN112261580B (en) Geographic position-based service access method for vehicle-mounted terminal
CN103209396B (en) A kind of method adjusting the multimedia message data amount upper limit and the mobile terminal using the method
US20230413218A1 (en) Method and apparatus for requesting prs configuration, and communication device and storage medium
WO2022028488A1 (en) Carrier configuration method, server, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Song Conglin

Inventor after: Xu Wuhao

Inventor after: Wu Yunhua

Inventor after: Chen Yuexin

Inventor after: Liu Jianfang

Inventor after: Yin Shengquan

Inventor before: Song Conglin

COR Change of bibliographic data
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171221

Address after: 518000 Shenzhen, Baoan District, Xixiang, the streets of the way forward, No. two, the building is the source of the building on the four floor, building 34

Applicant after: Shenzhen Hongyu Shun Software Co. Ltd.

Address before: 518000 Guangdong city of Shenzhen province Futian District Che Kung Temple Tairan Industrial Zone 210 east block 4B

Applicant before: Shenzhen Hong Yushun Science and Technology Ltd.

GR01 Patent grant
GR01 Patent grant