CN104639767B - A kind of mobile terminal and its control method to data cached flow - Google Patents

A kind of mobile terminal and its control method to data cached flow Download PDF

Info

Publication number
CN104639767B
CN104639767B CN201510110516.6A CN201510110516A CN104639767B CN 104639767 B CN104639767 B CN 104639767B CN 201510110516 A CN201510110516 A CN 201510110516A CN 104639767 B CN104639767 B CN 104639767B
Authority
CN
China
Prior art keywords
data
local
timestamp
latest data
latest
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.)
Active
Application number
CN201510110516.6A
Other languages
Chinese (zh)
Other versions
CN104639767A (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 Hongyu Shun Software 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 Hongyu Shun Software Co Ltd filed Critical Shenzhen Hongyu Shun Software Co 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

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides the control method of a kind of mobile terminal and its data cached flow, the control method comprises the following steps:Get data query signal;Judge whether current connection is wifi connections, if it is, the latest data on data server is synchronized on local data base, and the timestamp of local latest data is preserved on local data base;If not, other wireless connections are judged whether, if not, exporting local latest data and exporting the timestamp of local latest data;If, the timestamp of latest data is obtained from data server, whether the timestamp for comparing the timestamp and local latest data got is identical, it is if identical, then export local latest data, if it is different, then local latest data that the latest data on data server is updated on local data base and exporting.This method can reduce metering data flow, improve Consumer's Experience, save expense.

Description

A kind of mobile terminal and its control method to data cached flow
Technical field
The present invention relates to field of mobile terminals, more particularly to a kind of mobile terminal and its control to data cached flow Method.
Background technology
In the prior art, the application of mobile terminal is usually designed to obtain latest data above server in real time, such as At this moment fruit in network connection not, is then prompted " network error ", the application of mobile terminal cannot use, the bad of Consumer's Experience If networked in addition in the case of non-wifi, total data is obtained from server in real time, mass data flow will be expended, Produce more campus network.
The content of the invention
The purpose of the present invention is intended at least solve one of above-mentioned technological deficiency, there is provided a kind of mobile terminal and its to caching The control method of data traffic.
The present invention provides a kind of control method of data cached flow, and the control method comprises the following steps:
Get data query signal;
Judge whether current connection is wifi connections, if it is, the latest data on data server is synchronized into local On database, and preserve on local data base the timestamp of local latest data;
When current connection is not wifi connections, other wireless connections are judged whether, if not, output is local newest Data and the timestamp for exporting local latest data;
When current connection is other wireless connections, the timestamp of latest data is obtained from data server, compares and obtains Whether the timestamp got is identical with the timestamp of local latest data, if identical, local latest data is exported, if not Together, then the local latest data that the latest data on data server is updated on local data base simultaneously exports, and at this The timestamp of local latest data is preserved on ground database.
Scheme from the above can be seen that when being currently connected as wifi connections, make the local in local data base Latest data is synchronous with the latest data on data server, when the timestamp for being currently connected as not being wifi connections and getting During with the timestamp of local latest data, it is not necessary to from data server download data, directly export local latest data i.e. Can, when being that network is obstructed in the absence of wireless connection, export local latest data and export the timestamp of local latest data to User, so as to reduce metering data flow, improve Consumer's Experience, save expense.
The present invention provides also a kind of mobile terminal, and the mobile terminal includes user interaction process module, service module, Wifi synchrodata modules, database module, and data time stamp processing module user interaction process module, for getting Data query signal;
Service module, for whether when user interaction process module gets data query signal, judging current connection For wifi connections, if it is, the first control signal of output is to the wifi synchrodatas module, if not, then judging whether In the presence of other wireless connections, if it is, when obtaining the timestamp of latest data from data server and exporting to the data Between stab processing module, if not, the second control signal of output is to user interaction process module;
Wifi synchrodata modules, it is during for receiving the first control signal, the latest data on data server is same Walk on local data base, and the timestamp of local latest data is preserved on local data base;
Database module, for establishing local data base, the latest data of the wifi synchrodatas module synchronization is protected Local latest data on local data base is saved as, and preserves the timestamp of local latest data;
Data time stamp processing module, for compare the timestamp got and local latest data timestamp whether phase Together, it is if identical, local latest data is exported to user by user interaction process module, if it is different, the control of output the 3rd Signal is to the wifi synchrodatas module;
Wifi synchrodata modules, when being additionally operable to receive three control signals, by the latest data on data server The local latest data being updated on local data base;
User interaction process module, when being additionally operable to receive the second control signal, from the database module locally most The timestamp of new data and local latest data is simultaneously exported to user.
It is can be seen that from the scheme of above-mentioned terminal when being currently connected as wifi connections, make the local in local data base Latest data is synchronous with the latest data on data server, when the timestamp for being currently connected as not being wifi connections and getting During with the timestamp of local latest data, it is not necessary to from data server download data, directly export local latest data i.e. Can, when being that network is obstructed in the absence of wireless connection, export local latest data and export the timestamp of local latest data to User, so as to reduce metering data flow, improve Consumer's Experience, save expense.
Brief description of the drawings
Fig. 1 is the flow chart of the first embodiment of the control method of the data cached flow of the present invention;
Fig. 2 is the flow chart of second of embodiment of control method of the data cached flow of the present invention;
Fig. 3 is the flow chart of the third embodiment of the control method of the data cached flow of the present invention;
Fig. 4 is a kind of flow chart of embodiment of mobile terminal of the present invention.
Embodiment
In order that technical problem solved by the invention, technical scheme and beneficial effect are more clearly understood, below in conjunction with Drawings and Examples, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used To explain the present invention, it is not intended to limit the present invention.
The present invention provides a kind of control method of the data cached flow of embodiment, as shown in figure 1, methods described include with Lower step:
Step S01, get data query signal;
Step S02, judge whether current connection is wifi connections, if it is, into step S03, if not, into step S04;
Step S03, the latest data on data server is synchronized on local data base, and on local data base Preserve the timestamp of local latest data;
Step S04, other wireless connections are judged whether, if not, into step S05, if it is, into step S06;
Step S05, export local latest data and export the timestamp of local latest data;
Step S06, the timestamp of latest data is obtained from data server, into step S07;
Step S07, whether identical, if identical, enter if comparing the timestamp of the timestamp and local latest data got Enter step S08, if it is different, into step S09;
Step S08, export local latest data;
Step S09, the latest data on data server is updated to local latest data on local data base and defeated Go out, and the timestamp of local latest data is preserved on local data base.
In step S05, during if there is no other wireless connections, then latest data is obtained from local data base and presented To user, while inform the time point of the current latest data of user, allow user to know that network connection is obstructed, current data be from Local data base obtains.For example it is presented to the data of user timestamp can be converted into mode that user easily perceives such as:Half Latest data etc., can so improve the experience of user so that mobile terminal more hommization before hour.In addition, step S05 is The local latest data in the case where network is obstructed, can improve the experience of user;And step S08 is in local latest data In the case of the timestamp identical of latest data on timestamp and data server, local latest data is exported so that can be with Save campus network.
In specific implementation, wireless connection includes the network connections such as wifi, 2G, 3G, 4G, and wifi is that free network connects Connect, and other network connections in addition to wifi are the network connection of charge.
Scheme from the above can be seen that when being currently connected as wifi connections, make the local in local data base Latest data is synchronous with the latest data on data server, when the timestamp for being currently connected as not being wifi connections and getting During with the timestamp of local latest data, it is not necessary to from data server download data, directly export local latest data i.e. Can, when being that network is obstructed in the absence of wireless connection, export local latest data and export the timestamp of local latest data to User, so as to reduce metering data flow, improve Consumer's Experience, save expense.
In specific implementation, as shown in Fig. 2 the step S09 specifically includes following steps:
Step S091, compare the time difference of the timestamp of the timestamp and local latest data got;
Step S092, according to time difference, data and the preservation between time difference are obtained from data server.
In step S091 and step S092, when current connection is other nets of other wireless connections i.e. in addition to wifi When network connects, and the timestamp got the timestamp got from server different from the timestamp of local latest data When being later than the timestamp of local latest data, in order to reduce the more data traffics of consumption, when only being downloaded from data server Between data between difference be saved on local data base, can be to keep local latest data and the data on local data base Latest data on server is in synchronous regime, so as to further save campus network.Additionally, due to the timestamp ratio of data Data itself are small, can so reduce data transfer to save campus network.
In specific implementation, as shown in figure 3, further comprising the steps of after step S01:
Step S011, judge user data query signal whether the active signal of user, if it is, into step S02, If not, into step S012;
Step S012, wifi connections are judged whether, if it is, into step S03, if not, into step S05.
,, just can be from data only when wifi connections be present by judging whether wifi connections in step S012 Latest data is obtained on server 20 completely, increasing free wifi environment is so made full use of, reduces other charge nothings The transmission of line number evidence, save customer flow and expense.
In specific implementation, as shown in figure 3, further comprising the steps of after step S03:
Step S031, the latest data on data server is exported and shown.
In specific implementation, the present invention also provides a kind of mobile terminal of embodiment, as shown in figure 4, the mobile terminal 10 include user interaction process module 1, service module 2, wifi synchrodatas 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, judging that currently connection is No is wifi connections, if it is, the first control signal is exported to the wifi synchrodatas module 3, if not, then judging With the presence or absence of other wireless connections, if it is, obtaining the timestamp of latest data from data server 20 and exporting to described Data time stamp processing module 5, if not, exporting the second control signal to user interaction process module 1;
Wifi synchrodatas module 3, during for receiving the first control signal, by the newest number on data server 20 According to being synchronized on local data base, and the timestamp of local latest data is preserved on local data base;
Database module 4, for establishing local data base, the synchronous latest data of wifi synchrodatas module 3 is preserved For local latest data on local data base, and the timestamp of the local latest data of preservation;
Data time stamp processing module 5, for compare the timestamp got and local latest data timestamp whether It is identical, if identical, local latest data is exported to user by user interaction process module 1, if it is different, the control of output the 3rd Signal processed is to wifi synchrodatas module 3;
Wifi synchrodatas module 3, will be newest on data server 20 when being additionally operable to receive three control signals Data are updated to the local latest data on local data base;
User interaction process module 1, it is local from the database module 4 when being additionally operable to receive the second control signal The timestamp of latest data and local latest data is simultaneously exported to user.
In specific implementation, if service module 2 judges to be not present other wireless connections, from local data base Obtain latest data and be presented to user, while inform the time point of the current latest data of user, allow user to know network connection not Logical, current data are obtained from local data base.For example it is presented to the data of user timestamp can be converted into user easy The mode of perception is such as:Latest data etc. before half an hour, can so improve the experience of user so that mobile terminal more people Property.
It is can be seen that from the scheme of the said equipment when being currently connected as wifi connections, make the local in local data base Latest data is synchronous with the latest data on data server, when the timestamp for being currently connected as not being wifi connections and getting During with the timestamp of local latest data, it is not necessary to from data server download data, directly export local latest data i.e. Can, when being that network is obstructed in the absence of wireless connection, export local latest data and export the timestamp of local latest data to User, so as to reduce metering data flow, improve Consumer's Experience, save expense.
In specific implementation, the data time stamp processing module 5 is additionally operable to compare the timestamp got with local most The time difference of the timestamp of new data;
Wifi synchrodatas module 3 is additionally operable to according to time difference, from data server 20 between acquisition time difference Data and export to the database module 4.
When service module 2 judges that current connection is other network connections of other wireless connections i.e. in addition to wifi When, and the data time stamp processing module 5 judges the timestamp difference of the timestamp and local latest data got i.e. When the timestamp got from data server 20 is later than the timestamp of local latest data, in order to reduce the more numbers of consumption According to flow, the data from data server 20 only between download time difference are saved on local data base, can be to keep Local latest data on local data base is in synchronous regime with the latest data on data server, so as to further save Campus network.It is smaller than data itself additionally, due to the timestamp of data, data transfer can be so reduced to save campus network.
In specific implementation, the user interaction process module 1 is additionally operable to judge whether the data query signal of user is used The active signal at family, if it is, the inquiry signal of output first is believed to the service module if it is not, then output second is inquired about Number to the service module 2;
The service module 2 is additionally operable to, when receiving the first inquiry signal, judge whether current connection is wifi connections, such as Fruit is that the first control signal of output is to the wifi synchrodatas module 3, if not, then judging whether that other are wireless Connection, mould is handled if it is, obtaining the timestamp of latest data from data server 20 and exporting to the data time stamp Block 5, if not, exporting the second control signal to user interaction process module 1;
When receiving the second inquiry signal, wifi connections are judged whether, if it is, exporting the first control signal to institute Wifi synchrodatas module 3 is stated, if not, exporting the second control signal to user interaction process module 1.
In specific implementation, wifi connections are judged whether by service module 2, only when wifi connections be present, Just latest data can be obtained completely from data server 20, so make full use of increasing free wifi environment, reduce The transmission of other charge wireless datas, saves customer flow and expense.
In specific implementation, the user interaction process module 1 is additionally operable to export the latest data on data server And show.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.

Claims (6)

  1. A kind of 1. control method of data cached flow, it is characterised in that:The control method comprises the following steps:
    Get data query signal;
    Judge whether current connection is wifi connections, if it is, the latest data on data server is synchronized into local data On storehouse, and preserve on local data base the timestamp of local latest data;
    When current connection is not wifi connections, other wireless connections are judged whether, if not, exporting 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, compares and gets Timestamp it is whether identical with the timestamp of local latest data, if identical, export local latest data, if it is different, Local latest data that then latest data on data server is updated on local data base simultaneously exports, and in local number According to the timestamp that local latest data is preserved on storehouse;
    Wherein, the latest data by data server is updated to the step of local latest data on local data base, Specifically include following steps:
    Compare the time difference of the timestamp of the timestamp and local latest data got;
    According to time difference, data and the preservation between time difference are obtained from data server.
  2. 2. control method as claimed in claim 1, it is characterised in that:Get the data query signal of user the step of it Afterwards, it is further comprising the steps of:
    Judge user data query signal whether the active signal of user, if it is, enter judge current connection whether be The step of wifi connections;
    When the data query signal of user is not the active signal of user, wifi connections are judged whether, if it is, into Latest data on data server is synchronized on local data base, and local latest data is preserved on local data base Timestamp the step of;
    When being connected in the absence of wifi, into the step of exporting local latest data and export the timestamp of local latest data.
  3. 3. control method as claimed in claim 1, it is characterised in that:When the data query signal of user is the active letter of user Number when, be synchronized to by the latest data on data server on local data base, and preserve on local data base local It is further comprising the steps of after the step of timestamp of latest data;
    Latest data on data server is exported and shown.
  4. A kind of 4. mobile terminal, it is characterised in that:The mobile terminal includes 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 current connection whether be Wifi connections, if it is, the first control signal is exported to the wifi synchrodatas module, if not, then judging whether to deposit In other wireless connections, if it is, obtaining the timestamp of latest data from data server and exporting to the data time Processing module is stabbed, if not, exporting the second control signal to user interaction process module;
    Wifi synchrodata modules, during for receiving the first control signal, the latest data on data server is synchronized to On local data base, and preserve on local data base the timestamp of local latest data;
    Database module, for establishing local data base, the latest data of wifi synchrodata module synchronizations is saved as into local Local latest data on database, and preserve the timestamp of local latest data;
    Data time stamp processing module, it is whether identical with the timestamp of local latest data for comparing the timestamp got, If identical, local latest data is exported to user by user interaction process module, if it is different, the 3rd control signal of output To wifi synchrodata modules, wherein the data time stamp processing module is additionally operable to compare the timestamp got and local The time difference of the timestamp of latest data;
    Wifi synchrodata modules, when being additionally operable to receive three control signals, the latest data on data server is updated For the local latest data on local data base, wifi synchrodata modules are additionally operable to according to time difference, from data server Data between upper acquisition time difference are simultaneously exported to the database module;;
    User interaction process module, when being additionally operable to receive the second control signal, the local newest number from the database module According to the timestamp with local latest data and export to user.
  5. 5. mobile terminal as claimed in claim 4, it is characterised in that:The user interaction process module is additionally operable to judge to use The data query signal at family whether the active signal of user, if it is, the inquiry signal of output first is to the service module, such as Fruit is no, then exports the second inquiry signal to the service module;
    The service module is additionally operable to, when receiving the first inquiry signal, judge whether current connection is wifi connections, if it is, The first control signal is exported to the wifi synchrodatas module, if not, other wireless connections are then judged whether, If it is, the timestamp of latest data is obtained from data server and is exported to data time stamp processing module, if not, defeated Go out the second control signal to user interaction process module;
    When receiving the second inquiry signal, wifi connections are judged whether, if it is, exporting the first control signal to described Wifi synchrodata modules, if not, exporting the second control signal to user interaction process module.
  6. 6. mobile terminal as claimed in claim 4, it is characterised in that:The user interaction process module is additionally operable to take data Latest data on business device is exported and shown.
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 CN104639767A (en) 2015-05-20
CN104639767B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN110263275B (en) * 2019-06-14 2021-10-29 深圳桔子数字技术有限公司 Method and device for accessing webpage, mobile terminal and storage medium

Citations (4)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5664273B2 (en) * 2011-01-21 2015-02-04 ソニー株式会社 Wireless communication device, program, and wireless communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104639767A (en) 2015-05-20

Similar Documents

Publication Publication Date Title
CN105610984B (en) A kind of method of remote control vehicle
CN103634791B (en) Method, user equipment and the remote management platform of switch operators network
CN109565896A (en) Low-power RRC operating method and device
CN104639767B (en) A kind of mobile terminal and its control method to data cached flow
CN104980915B (en) The method and device that CPE module firmware built in vehicle LTE-FI equipment upgrades
CN105681385B (en) Information-pushing method and device
CN105228143A (en) A kind of refuse messages discrimination method, device and terminal
CN110463104A (en) For handling the technology of the downlink control channel resource collection of overlapping
JP6825746B2 (en) Methods for core network nodes, methods for UEs, core network nodes, and UEs
CN107046734B (en) Transmission method and device of NAS bearing data
CN107864454B (en) Smart power grid maintenance method and system based on mobile smart terminal
CN105208029B (en) A kind of data processing method and terminal device
CN104125599A (en) WLAN (wireless local area network) access point and user terminal information acquisition, correlation and statistical analysis method
US9420410B2 (en) Managing wireless voice and data communications
CN106899954A (en) Wireless communication system cut-in method, device and terminal
CN104811342A (en) Method of managing EOC terminals with WIFI (Wireless Fidelity) in batches by EOC local side
CN112347504A (en) Block chain based vaccination monitoring device and method
CN103944972A (en) Method and gateway for uploading and downloading data
CN102264060B (en) Method and device for reducing failure of configuration update initiated by eNB
CN104967984B (en) A kind of method and system for the information obtaining user equipment
CN103634365A (en) Third party application platform in wireless access network and communication method thereof
CN108632977A (en) Power state transition method and device, terminal, storage medium, processor
CN107623910B (en) A kind of method and apparatus identifying terminal
CN104080078B (en) Base station positioning method and equipment
WO2022141951A1 (en) Data model parameter configuration method and device, electronic device, 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