CN104572105B - Data-updating method and device - Google Patents

Data-updating method and device Download PDF

Info

Publication number
CN104572105B
CN104572105B CN201510009695.4A CN201510009695A CN104572105B CN 104572105 B CN104572105 B CN 104572105B CN 201510009695 A CN201510009695 A CN 201510009695A CN 104572105 B CN104572105 B CN 104572105B
Authority
CN
China
Prior art keywords
message
client
data
terminal device
data message
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
CN201510009695.4A
Other languages
Chinese (zh)
Other versions
CN104572105A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510009695.4A priority Critical patent/CN104572105B/en
Publication of CN104572105A publication Critical patent/CN104572105A/en
Application granted granted Critical
Publication of CN104572105B publication Critical patent/CN104572105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of data-updating method and device, method includes:The first notification message that client receiving terminal apparatus is sent, and recorded for the first reception time, the first notification message is used to notify client to have the first new data message incoming terminal equipment;The second notification message that client receiving terminal apparatus is sent, and recorded for the second reception time, second notification message is used to notify client to have the second new data message incoming terminal equipment;Client determines whether the first reception time exceeded preset duration with the second the first difference for receiving the time, if the first difference exceedes preset duration, the first data message is obtained from terminal device;Client updates the data list prestored using the first data message.The embodiment of the present invention only when the first difference exceedes preset duration, the data list prestored is just updated using the first data message, client is reduced and updates the data the frequency of operation, so as to alleviate the burden of client.

Description

Data-updating method and device
Technical field
The present embodiments relate to mobile communication technology, more particularly to a kind of data-updating method and device.
Background technology
In the prior art, when blue light player is in idle condition, will detect either with or without new equipment (including Equipment etc. is shared by USB, mobile hard disk, disk, mobile hard disk, family) carry, when detecting new equipment carry, then to Client sends a notification message, so that client obtains data corresponding with the equipment from blue light player, using the equipment pair The data answered update the data list being locally stored.
But, once blue light player detects new equipment carry, client will be notified to update the data row immediately Table, it is possible to cause to frequently execute renewal operation in the client short time, so as to aggravate the burden of client.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of data-updating method and device, is updated with optimizing existing data Technology, mitigates the burden of client.
In a first aspect, the embodiments of the invention provide a kind of data-updating method, including:
The first notification message that client receiving terminal apparatus is sent, and recorded for the first reception time, described first notifies Message is used to notify the client to have the first new data message to reach the terminal device;
Client receives the second notification message that the terminal device is sent, and records the second reception time, described second Notification message is used to notify the client to have the second new data message to reach the terminal device;
When client determines whether the first reception time exceedes default with the described second the first difference for receiving the time It is long, if first difference exceedes preset duration, first data message is obtained from the terminal device;
Client updates the data list prestored using first data message.
In second aspect, the embodiment of the present invention additionally provides a kind of data update apparatus, including:
Receiving module, the first notification message sent for receiving terminal apparatus, and record first and receive time, described the One notification message is used to notify the client to have the first new data message to reach the terminal device;The terminal is received to set The second notification message that preparation is sent, and recorded for the second reception time, the second notification message is used to notify the client to have The second new data message reaches the terminal device;
Determining module, for determining whether the first difference of the first reception time and the described second reception time exceed Preset duration;
Acquisition module, for determining first difference more than after preset duration in the determining module, from the end End equipment obtains first data message;
Update module, for updating the data list prestored using first data message.
The embodiment of the present invention by client receiving terminal apparatus send be used for notify the client to have new first The first notification message that data message is reached, and record first and receive the time, and being used for of receiving that the terminal device sends lead to Know the second notification message that the client has the second new data message to reach, and record second and receive the time, client is true Fixed described first receives whether the time exceedes preset duration with the described second the first difference for receiving the time, if described first is poor Value exceedes preset duration, then obtains first data message from the terminal device, is updated using first data message The data list prestored.The embodiment of the present invention is only when first difference exceedes preset duration, just using described the One data message updates the data list prestored, reduces client and updates the data the frequency of operation, so as to alleviate visitor The burden at family end.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet for data-updating method that first embodiment of the invention is provided;
Fig. 2 is a kind of schematic flow sheet for data-updating method that second embodiment of the invention is provided;
Fig. 3 is a kind of schematic flow sheet for data-updating method that third embodiment of the invention is provided;
Fig. 4 is a kind of structural representation for data-updating method that fourth embodiment of the invention is provided.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with the accompanying drawings to specific reality of the invention Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, Rather than limitation of the invention.It also should be noted that, for the ease of description, it illustrate only in accompanying drawing related to the present invention Part rather than full content.
The method of the embodiment of the present invention can be by being integrated in mobile terminal (such as smart mobile phone, iPad) or fixing eventually Client or data update apparatus in end equipment (such as computer) are performed, the client or device can by hardware and/or The mode of software realizes, to this and is not limited.
First embodiment
Fig. 1 is a kind of schematic flow sheet for data-updating method that first embodiment of the invention is provided, and is specifically included as follows Step:
The first notification message that step 11, client receiving terminal apparatus are sent, and record first and receive time, described the One notification message is used to notify the client to have the first new data message to reach the terminal device, performs step 12.
Here, in order to distinguish the different notification messages that terminal device is successively sent in the embodiment of the present invention, terminal is set The standby notification message sent first is referred to as the first notification message, corresponding, and client is received to the time of the first notification message Referred to as first receives the time, and the data message that the terminal device is reached before terminal device the first notification message of transmission is referred to as into first Data message;The notification message that terminal device is subsequently sent referred to as second notification message, it is corresponding, client is received The time of two notification messages was referred to as the second reception time, and the terminal device is reached before terminal device is sent into second notification message Data message is referred to as the second data message, the like, subsequently it is not repeated.
For example, client can be the application software in mobile terminal or fixed terminal equipment.It is new when having When first data message reaches the terminal device, then the first notification message is sent to client.
Step 12, client receive the second notification message that the terminal device is sent, and record the second reception time, institute Stating second notification message is used to notify the client to have the second new data message to reach the terminal device, performs step 13。
Step 13, client determine whether the first difference of the first reception time and the described second reception time exceed Preset duration.
If first difference exceedes preset duration, step 14 is performed.
Step 14, client obtain first data message from the terminal device, perform step 15.
Step 15, client update the data list prestored using first data message.
The present embodiment by client receiving terminal apparatus send be used for notify the client to have the first new data The first notification message that information is reached, and record first and receive the time, and being used for of receiving that the terminal device sends notify institute The second notification message that client has the second new data message to reach is stated, and records second and receives the time, client determines institute State whether the first reception time exceeded preset duration with the described second the first difference for receiving the time, if first difference is super Preset duration is crossed, then obtains first data message from the terminal device, updates advance using first data message The data list of storage.The embodiment of the present invention only when first difference exceedes preset duration, is just counted using described first The data list prestored according to information updating, reduces client and updates the data the frequency of operation, so as to alleviate client Burden.
Exemplary, on the basis of above-described embodiment, methods described also includes:
If first difference is not less than preset duration, client continues to monitor notification message, and described receiving After the third notice message that terminal device is sent, record the 3rd receives the time;The third notice message is used to notify the visitor Family end has the 3rd new data message to reach the terminal device;
When client determines whether the second reception time exceedes default with the described 3rd the second difference for receiving the time It is long, if second difference exceedes preset duration, first data message and the second number are obtained from the terminal device It is believed that breath, the data list prestored is updated using first data message and the second data message, if described second Difference then continues to monitor notification message not less than preset duration.
Exemplary, on the basis of above-described embodiment, client updates the data row prestored using data message After table, in addition to:
Client shows the data message.
It is exemplary, on the basis of above-described embodiment, any notification message that client receiving terminal apparatus is sent it Before, in addition to:
Terminal device detects whether that new equipment sends carry request message, and carry is sent when detecting new equipment During request message, then corresponding notification message is sent to the client.
Wherein, the said equipment can for it is following any one:USB, mobile hard disk, disk, mobile hard disk, family, which share, to be set It is standby etc..For example, before the first notification message that client receiving terminal apparatus is sent, terminal device detects whether new set Preparation send carry request message, when detecting new equipment and sending carry request message, then sends the to the client One notification message.Before the second notification message that client receiving terminal apparatus is sent, terminal device has been detected whether again New equipment sends carry request message, when detecting new equipment transmission carry request message, then to the client Send second notification message.
Exemplary, on the basis of above-described embodiment, the terminal device can be blue light player etc..
Second embodiment
Fig. 2 is a kind of schematic flow sheet for data-updating method that second embodiment of the invention is provided, and is specifically included as follows Step:
The first notification message that step 21, client receiving terminal apparatus are sent, and record first and receive time, described the One notification message is used to notify the client to have the first new data message to reach the terminal device, performs step 22.
Step 22, client receive the second notification message that the terminal device is sent, and record the second reception time, institute Stating second notification message is used to notify the client to have the second new data message to reach the terminal device, performs step 23。
Step 23, client determine whether the first difference of the first reception time and the described second reception time exceed Preset duration.
If for example, the client determines that the first difference exceedes preset duration, step 24 is performed, if the client End determines that the first difference not less than preset duration, then performs step 27.
Step 24, client obtain first data message from the terminal device, perform step 25.
Step 25, client update the data list prestored using first data message, perform step 26.
Step 26, client show first data message.
Step 27, client continue to monitor notification message, perform step 28.
Step 28, the third notice message for receiving the terminal device transmission, record the 3rd receive time, the threeway Know that message is used to notify the client to have the 3rd new data message to reach the terminal device, perform step 29.
Step 29, client determine whether the second difference of the second reception time and the described 3rd reception time exceed Preset duration.
If for example, the client determines that the second difference exceedes preset duration, performing step 210, if described the Two differences then continue to monitor notification message, repeat the operation of 27~step 212 of similar step not less than preset duration.
Step 210, client obtain first data message and the second data message from the terminal device, perform step Rapid 211.
Step 211, client update the data row prestored using first data message and the second data message Table, performs step 212.
Step 212, client show first data message and the second data message.
The present embodiment by client receiving terminal apparatus send be used for notify the client to have the first new data The first notification message that information is reached, and record first and receive the time, and being used for of receiving that the terminal device sends notify institute The second notification message that client has the second new data message to reach is stated, and records second and receives the time, client determines institute State whether the first reception time exceeded preset duration with the described second the first difference for receiving the time, if first difference is super Preset duration is crossed, then obtains first data message from the terminal device, updates advance using first data message The data list of storage.The embodiment of the present invention only when first difference exceedes preset duration, is just counted using described first The data list prestored according to information updating, reduces client and updates the data the frequency of operation, so as to alleviate client Burden.
3rd embodiment
Fig. 3 is a kind of schematic flow sheet for data-updating method that third embodiment of the invention is provided, and is specifically included as follows Step:
Step 31, blue light player detect whether that the first new equipment sends carry request message.
If detecting the first new equipment sends carry request message, step 32 is performed.
Step 32, blue light player send the first notification message to client, perform step 33.
Step 33, client receive the first notification message that blue light player is sent, and record for the first reception time, perform Step 34.
Step 34, blue light player continue to detect whether that the second new equipment sends carry request message.
If detecting the second new equipment sends carry request message, step 35 is performed.
Step 35, blue light player send second notification message to client, perform step 36.
Step 36, client receive the second notification message that the terminal device is sent, and record for the second reception time, hold Row step 37.
Step 37, client determine whether the first difference of the first reception time and the described second reception time exceed Preset duration.
If for example, first difference exceed preset duration, perform step 38, if first difference not less than Preset duration, then perform step 310.
Step 38, client obtain the corresponding data message of first equipment being mounted on the blue light player, Perform step 39.
Step 39, client update the data list prestored using the corresponding data message of first equipment.
Step 310, client continue waiting for receiving the notification message that the blue light player is sent.
The present embodiment by client receiving terminal apparatus send be used for notify the client to have the first new data The first notification message that information is reached, and record first and receive the time, and being used for of receiving that the terminal device sends notify institute The second notification message that client has the second new data message to reach is stated, and records second and receives the time, client determines institute State whether the first reception time exceeded preset duration with the described second the first difference for receiving the time, if first difference is super Preset duration is crossed, then obtains first data message from the terminal device, updates advance using first data message The data list of storage.The embodiment of the present invention only when first difference exceedes preset duration, is just counted using described first The data list prestored according to information updating, reduces client and updates the data the frequency of operation, so as to alleviate client Burden.
Fourth embodiment
Fig. 4 is a kind of structural representation for data-updating method that fourth embodiment of the invention is provided, and specifically includes reception Module 41, determining module 42, acquisition module 43 and update module 44.
Receiving module 41 is used for the first notification message that receiving terminal apparatus is sent, and records for the first reception time, described First notification message is used to notify the client to have the first new data message to reach the terminal device;Receive the terminal The second notification message that equipment is sent, and recorded for the second reception time, the second notification message is used to notify the client There is the second new data message to reach the terminal device;
Determining module 42 is used to determine whether the first difference of the first reception time and the described second reception time surpass Cross preset duration;
Acquisition module 43 is used for after the determining module 42 determines that first difference exceedes preset duration, from described Terminal device obtains first data message;
Update module 44 is used to update the data list prestored using first data message.
The data update apparatus that the embodiment of the present invention is provided can be used for performing the data that any embodiment of the present invention is provided Update method, possesses corresponding functional module, realizes identical beneficial effect.
Exemplary, on the basis of above-described embodiment, described device also includes:
Monitoring module 45 is used for after the determining module 42 determines first difference not less than preset duration, continues Monitor notification message;
The receiving module 41 is additionally operable to receive after the third notice message that the terminal device is sent, and record the 3rd connects Between time receiving;The third notice message is used to notify the client to have the 3rd new data message to reach the terminal device;
The determining module 42 is additionally operable to determine the second reception time and the described 3rd the second difference for receiving the time Whether preset duration is exceeded;
The acquisition module 43 be additionally operable to the determining module 42 determine second difference exceed preset duration after, First data message and the second data message are obtained from the terminal device;
The update module 44 is additionally operable to update what is prestored using first data message and the second data message Data list.
Exemplary, on the basis of above-described embodiment, described device also includes:
Display module 46 is used for after the update module 44 updates the data list prestored using data message, Show the data message.
Obviously, it will be understood by those skilled in the art that above-mentioned each module of the invention or each step can be by as above Described server implementation.Alternatively, the embodiment of the present invention can be realized with the executable program of computer installation, so as to Performed with being stored in storage device by processor, described program can be stored in a kind of computer-readable storage In medium, storage medium mentioned above can be read-only storage, disk or CD etc.;Or be fabricated to them respectively each Individual integrated circuit modules, or the multiple modules or step in them are fabricated to single integrated circuit module to realize.So, The present invention is not restricted to the combination of any specific hardware and software.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for those skilled in the art For, the present invention can have various changes and change.It is all any modifications made within spirit and principles of the present invention, equivalent Replace, improve etc., it should be included in the scope of the protection.

Claims (7)

1. a kind of data-updating method, it is characterised in that including:
The first notification message that client receiving terminal apparatus is sent, and record the first reception time, first notification message For notifying the client to there is the first new data message to reach the terminal device;
Client receives the second notification message that the terminal device is sent, and records for the second reception time, and described second notifies Message is used to notify the client to have the second new data message to reach the terminal device;
Client determines whether the first reception time exceedes preset duration with the described second the first difference for receiving the time, such as Really described first difference exceedes preset duration, then obtains first data message from the terminal device;
Client updates the data list prestored using first data message;
Before any notification message that client receiving terminal apparatus is sent, in addition to:
Terminal device detects whether that new equipment sends carry request message, and carry request is sent when detecting new equipment During message, then corresponding notification message is sent to the client.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
If first difference is not less than preset duration, client continues to monitor notification message, and is receiving the terminal After the third notice message that equipment is sent, record the 3rd receives the time;The third notice message is used to notify the client There is the 3rd new data message to reach the terminal device;
Client determines whether the second reception time exceedes preset duration with the described 3rd the second difference for receiving the time, such as Really described second difference exceedes preset duration, then obtains first data message and the second data letter from the terminal device Breath, the data list prestored is updated using first data message and the second data message, if second difference Not less than preset duration, then continue to monitor notification message.
3. the method according to any one of claim 1~2, it is characterised in that client updates advance using data message After the data list of storage, in addition to:
Client shows the data message.
4. the method according to any one of claim 1~2, it is characterised in that the terminal device is blue light player.
5. a kind of data update apparatus, it is characterised in that including:
Receiving module, the first notification message sent for receiving terminal apparatus, and recorded for the first reception time, described first leads to Know that message is used to notify client to have the first new data message to reach the terminal device;Receive what the terminal device was sent Second notification message, and recorded for the second reception time, the second notification message is used to notify the client to have new second Data message reaches the terminal device;
Determining module, for determining it is default whether the first reception time and the described second the first difference for receiving the time exceed Duration;
Acquisition module, for determining that first difference, more than after preset duration, is set from the terminal in the determining module It is standby to obtain first data message;
Update module, for updating the data list prestored using first data message;
Described device also includes:
Terminal device detection module, for detecting whether there is new equipment to send carry request message, when detecting new set When preparation send carry request message, then corresponding notification message is sent to the client.
6. device according to claim 5, it is characterised in that described device also includes:
Module is monitored, after determining first difference not less than preset duration in the determining module, continues to monitor logical Know message;
The receiving module is additionally operable to:Receive after the third notice message that the terminal device is sent, when record the 3rd is received Between;The third notice message is used to notify the client to have the 3rd new data message to reach the terminal device;
The determining module is additionally operable to:Determine whether the second difference of the second reception time and the described 3rd reception time surpass Cross preset duration;
The acquisition module is additionally operable to:After the determining module determines that second difference exceedes preset duration, from described Terminal device obtains first data message and the second data message;
The update module is additionally operable to:The data row prestored are updated using first data message and the second data message Table.
7. the device according to claim 5 or 6, it is characterised in that described device also includes:
Display module, after the data list prestored is updated using data message in the update module, shows institute State data message.
CN201510009695.4A 2015-01-07 2015-01-07 Data-updating method and device Active CN104572105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510009695.4A CN104572105B (en) 2015-01-07 2015-01-07 Data-updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510009695.4A CN104572105B (en) 2015-01-07 2015-01-07 Data-updating method and device

Publications (2)

Publication Number Publication Date
CN104572105A CN104572105A (en) 2015-04-29
CN104572105B true CN104572105B (en) 2017-10-20

Family

ID=53088271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510009695.4A Active CN104572105B (en) 2015-01-07 2015-01-07 Data-updating method and device

Country Status (1)

Country Link
CN (1) CN104572105B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993951B (en) * 2015-06-12 2018-02-06 上海斐讯数据通信技术有限公司 A kind of network equipment information transfer approach
CN106454419A (en) * 2016-11-18 2017-02-22 乐视控股(北京)有限公司 Data acquisition method, device and electronic equipment
CN107133363B (en) * 2017-06-05 2020-12-25 掌阅科技股份有限公司 Method for updating directory list information of electronic book, electronic equipment and storage medium
CN109688179B (en) * 2017-10-19 2021-06-22 华为技术有限公司 Communication method and communication device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859329A (en) * 2006-03-29 2006-11-08 华为技术有限公司 Method and system for presenting information renewing informing
CN101646140A (en) * 2008-08-05 2010-02-10 中兴通讯股份有限公司 Message log processing method and system
CN103200278A (en) * 2013-04-25 2013-07-10 网宿科技股份有限公司 Source station file updating and releasing method and cache file updating method
CN103793400A (en) * 2012-10-30 2014-05-14 金蝶软件(中国)有限公司 Method and device for batch adjustment of data tables

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9501492B2 (en) * 2006-10-24 2016-11-22 Marvell World Trade Ltd. Combination journaling/non-journaling file system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859329A (en) * 2006-03-29 2006-11-08 华为技术有限公司 Method and system for presenting information renewing informing
CN101646140A (en) * 2008-08-05 2010-02-10 中兴通讯股份有限公司 Message log processing method and system
CN103793400A (en) * 2012-10-30 2014-05-14 金蝶软件(中国)有限公司 Method and device for batch adjustment of data tables
CN103200278A (en) * 2013-04-25 2013-07-10 网宿科技股份有限公司 Source station file updating and releasing method and cache file updating method

Also Published As

Publication number Publication date
CN104572105A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
US10187855B2 (en) Message processing method and apparatus
EP3013086B1 (en) Method, apparatus and electronic device for connection management
CN107040494B (en) User account abnormity prevention method and system
CN104572105B (en) Data-updating method and device
JP6686033B2 (en) Method and apparatus for pushing messages
EP2869501A1 (en) Method and device for displaying notification message
US20160156581A1 (en) Message Notification Method, System, and Device for a Communication Account
US9875165B2 (en) Communication bus with baseboard management controller
US10455542B2 (en) Method of synchronizing notification messages for electronic devices and electronic devices
CN110022260B (en) Cross-environment receipt message processing method and system
CN108134816B (en) Access to data on remote device
US10237291B2 (en) Session processing method and device, server and storage medium
CN110995851B (en) Message processing method, device, storage medium and equipment
US9253669B2 (en) Network analysis method, information processing device, and computer-readable recording medium
CN108243222A (en) Server network architecture method and device
CN111092904B (en) Network connection method and device
US10999738B2 (en) Detection of internet-of-things devices in enterprise networks
CN107707529A (en) A kind of client validation method for realizing limitation identifying code transmission times
CN111065061A (en) Short message request sending system and method based on multiple channels and storage medium
US20150229704A1 (en) Apparatus and method for providing metadata with network traffic
KR102558475B1 (en) Method for network state identification and electronic device thereof
US20150126197A1 (en) Method and its apparatus for controlling sms in communication system
CN105721231A (en) Service quality sensing detection method and service quality sensing detection device
CN113612680B (en) Suppressing indication of incoming communications in a user interface
CN112346874B (en) Abnormal volume processing method and device based on cloud platform

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
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder