CN103986779B - A kind of application data transmission method, device and terminal device - Google Patents

A kind of application data transmission method, device and terminal device Download PDF

Info

Publication number
CN103986779B
CN103986779B CN201410234191.8A CN201410234191A CN103986779B CN 103986779 B CN103986779 B CN 103986779B CN 201410234191 A CN201410234191 A CN 201410234191A CN 103986779 B CN103986779 B CN 103986779B
Authority
CN
China
Prior art keywords
data
application data
application
memory space
service center
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
CN201410234191.8A
Other languages
Chinese (zh)
Other versions
CN103986779A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201410234191.8A priority Critical patent/CN103986779B/en
Publication of CN103986779A publication Critical patent/CN103986779A/en
Application granted granted Critical
Publication of CN103986779B publication Critical patent/CN103986779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention provides a kind of application data transmission method, device and terminal device, and wherein method includes:When having detected new opplication data generation corresponding with application program, the application data is buffered into the first predetermined memory space, first memory space is different from the second memory space for storing the application program;When detecting the terminal device in the state for being connected to network, the application data cached in first memory space is read;By the data transmission set being connected with the terminal equipment in communication, the read-out application data is transmitted to data service center.The embodiment of the present invention may be such that the application data that application program is produced at any time can be by caching, the process of transmission is read in caching again, realize to the transmission of data service center, reduce the loss of application data so that transmitting to the application data of data service center has more preferable completeness.

Description

A kind of application data transmission method, device and terminal device
Technical field
The present invention relates to communication technical field, more specifically to a kind of application data transmission method, device and terminal Equipment.
Background technology
With the continuous ripe and development of wireless communication technique, wireless communication system is increasingly being applied to data biography It is defeated.Wireless communication system mainly includes:Terminal device, data transmission set and data service center, wherein, terminal device is in User side, data service center is in network side, and data transmission set is to enter line number between terminal device and data service center According to the bridge of communication;Based on above-mentioned wireless communication system, the implementation process of radio communication is mainly:Terminal device gathered data, And by data transmission set by the data transfer gathered to data service center;And, the transmission of data service center domestic demand Data, are transmitted to terminal device by data transmission set.
By wireless communication system, the new opplication data transfer produced by the application program that will be loaded into terminal device is extremely Data service center is a kind of classical data transmission mode of wireless communication system.The transmission means of existing application data is main For:Terminal device connects network, and when producing new opplication data in application program implementation procedure, produced application data is led to Cross data transmission set to transmit to data service center, so as to realize that the backing up of application data, synchronization, data turn in network side The purposes such as hair, the analysis of application data.A kind of typical application data transmits example:Terminal device is when connecting network, eventually The instant messaging application loaded in end equipment generates communication information (such as user by instant messaging using edited communication Information), terminal device transmits produced communication information to data service center by data transmission set, so as to realize logical Interrogate transmission of the information to targeted customer.
The present inventor has found during the present invention is realized:The transmission means of existing application data needs to be based on Terminal device is connected to the premise of network, if terminal device is not connected to network, and application program is produced in the process of implementation New opplication data, then this certain applications data will lose, it is impossible to transmit to data service center, so that transmitting to data The application data of service centre is not application program produced complete application data in the process of implementation, for applying number There is influence according to the completeness of transmission.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of application data transmission method, device and terminal device, existing to solve The transmission means for having application data application data produced when terminal device can not be not connected to network is transmitted to data clothes Business center, what is brought causes application data to be lost, and there is the problem of influenceing for the completeness that application data is transmitted.
To achieve the above object, the embodiment of the present invention provides following technical scheme:
A kind of application data transmission method, applied to terminal device, methods described includes:
When having detected new opplication data generation corresponding with application program, the application data is buffered into predetermined First memory space, first memory space is different from the second memory space for storing the application program;
When detecting the terminal device in the state for being connected to network, by what is cached in first memory space The application data is read;
By the data transmission set being connected with the terminal equipment in communication, by the read-out application data transmit to Data service center.
Wherein, first memory space preserves data buffer storage management table corresponding with the application program;It is described to incite somebody to action The application data, which buffers into the first predetermined memory space, to be included:
When the application data is buffered into the first memory space, the data buffer storage management table in create with it is described The corresponding management node of application data, the corresponding application data of an a application program of management node correspondence, the management section Record has storage location of the application data in first memory space in point;
Described read the application data cached in first memory space includes:
Management node corresponding with the application data in the data buffer storage management table is transferred, passes through the management node Determine the storage location of the application data;
The application data is read from the storage location.
Wherein, the data transmission set by being connected with the terminal equipment in communication, the application data is transmitted Include to data service center:
During by data transmission set, the application data is transmitted to the data service center, if detection To data transmission exception, the data clothes are not transferred at the time of record detects data transmission exception in the management node Data buffer storage breakpoint corresponding to the application data at business center;
When detecting data transfer and recovering normal, determined not by the data buffer storage breakpoint in the management node Storage location in first memory space is transmitted to the application data of the data service center;
By the identified application data of the data service center that is not transferred in first memory space Storage location, will be not transferred to the data service center application data read, and by data transmission set will described in not Transmit to the application data of data service center and transmit to the data service center.
Wherein, methods described also includes:
After being transmitted of the application data to the data service center, discharge in the data buffer storage management table Management node corresponding with the application data.
Wherein, methods described also includes:
It is slow by the corresponding data of the application program after the application program is reinstalled in the terminal device Management table is deposited, application data corresponding with the application program is determined from first memory space.
Wherein, methods described also includes:
The multiple tasks for accessing first memory space are obtained, the multiple task includes first task and second Business;
If the first task different user corresponding with the second task, sequentially performs the first task and second Business, to keep only one of which task to access first memory space in synchronization;
If first task identical user corresponding with the second task, the first task and second are performed simultaneously Business, to maintain the task of at least two correspondence same subscribers to access first memory space in synchronization.
The embodiment of the present invention also provides a kind of application data transmitting device, and applied to terminal device, described device is based on upper Described application data transmission method is stated, described device includes:
Cache module, for when having detected new opplication data generation corresponding with application program, by the application number According to the first predetermined memory space is buffered into, the first memory space is different from the second memory space for storing the application program;
Read module, for when detecting the terminal device in the state for being connected to network, described first to be deposited The application data cached in storage space is read;
Transport module, for the data transmission set by being connected with the terminal equipment in communication, described in read-out Application data is transmitted to data service center.
Wherein, first memory space preserves data buffer storage management table corresponding with the application program;
The cache module includes:
Management node creating unit, for when the application data is buffered into the first memory space, in the data Management node corresponding with the application data, a application program correspondence of a management node correspondence are created in cache management table Application data, record has storage location of the application data in first memory space in the management node;
The read module includes:
Determining unit is transferred, for transferring management section corresponding with the application data in the data buffer storage management table Point, the storage location of the application data is determined by the management node;
Sensing element, for reading the application data from the storage location.
Wherein, the transport module includes:
Breakpoint recording unit, for transmitting the application data into the data, services by data transmission set During the heart, if detecting data transmission exception, at the time of record detects data transmission exception in the management node It is not transferred to the data buffer storage breakpoint corresponding to the application data of the data service center;
Breakpoint location determining unit, for detect data transfer recover it is normal when, by the management node The data buffer storage breakpoint determines to be not transferred to the application data of the data service center in first memory space Storage location;
Breakpoint transmission unit, for by the identified application data for being not transferred to the data service center described Storage location in first memory space, the application data for being not transferred to the data service center is read, and pass through data Transmission equipment transmits the application data for being not transferred to data service center to the data service center.
The embodiment of the present invention also provides a kind of terminal device, including application data transmitting device described above.
Based on above-mentioned technical proposal, in application data transmission method provided in an embodiment of the present invention, terminal device is in detection To the application data when having the generation of new opplication data, can be buffered into predetermined the second storage with storing the application program , will be described in the first different memory space of space, and when detecting the terminal device in the state for being connected to network The application data cached in first memory space is read, so that by data transmission set, by the read-out application Data transfer realizes transmission of the application data by terminal device to data service center to data service center.Terminal device exists When having the generation of new opplication data, application data is first buffered into the first memory space, then is in terminal device and is connected to network State when, by the first memory space cache application data transmit to data service center, may be such that application program any The application data that moment produces can read the process of transmission by caching, then in caching, realize to data service center Transmission, terminal device can not be not connected to application data produced during network by solving the transmission means of existing application data Transmit to data service center bring the problem of, reduce the loss of application data, reduce for application data transmit The influence that completeness is present so that transmitting to the application data of data service center has more preferable completeness.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the structured flowchart of application data Transmission system provided in an embodiment of the present invention;
Fig. 2 is the flow chart of application data transmission method provided in an embodiment of the present invention;
Fig. 3 is another flow chart of application data transmission method provided in an embodiment of the present invention;
Fig. 4 is transmitted application data to data service center by data transmission set to be provided in an embodiment of the present invention Method flow diagram;
Fig. 5 is the method flow diagram that synchronization of access provided in an embodiment of the present invention is controlled;
Fig. 6 is another flow chart of application data transmission method provided in an embodiment of the present invention;
Fig. 7 is the structured flowchart of application data transmitting device provided in an embodiment of the present invention;
Fig. 8 is the structured flowchart of cache module provided in an embodiment of the present invention;
Fig. 9 is the structured flowchart of read module provided in an embodiment of the present invention;
Figure 10 is the structured flowchart of transport module provided in an embodiment of the present invention;
Figure 11 is another structured flowchart of application data transmitting device provided in an embodiment of the present invention;
Figure 12 is another structured flowchart of application data transmitting device provided in an embodiment of the present invention;
Figure 13 is the another structured flowchart of application data transmitting device provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is the structured flowchart of application data Transmission system provided in an embodiment of the present invention, reference picture 1, and the system can be with Including:Terminal device 10, data transmission set 20 and data service center 30;Optionally, terminal device 10 may be considered place RTU used in user in user side (Remote Terminal Unit, remote terminal unit), data transmission set 20 can Be in net between DTU (Data Transfer unit), data service center 30 (DSC, Data Service Center) May be considered one group of server in network side, or multigroup server combination.
In embodiments of the present invention, application program can be installed, application program is mountable to terminal and set in terminal device 10 Standby the second interior memory space, settable first memory space different from the second memory space of the embodiment of the present invention is used to preserve The application data corresponding with application program.
Optionally, the first memory space of setting mode different from the second memory space can be:Using different storages Hardware preserves the application program application data corresponding with application program respectively, specifically, different storage hardware institutes can be used Corresponding storage catalogue is respectively application program and application data distribution memory space, and such as application program can be stored in terminal device SD card in, a memory space for being used to store application program is distributed in SD card by the storage catalogue of SD card, using number According to that can be stored in the internal memory of terminal device, distributing one in internal memory by the storage catalogue of internal memory is used to store application program The memory space of corresponding application data.The embodiment of the present invention can also divide two different memory blocks in same storage hardware Domain preserves the application program application data corresponding with application program respectively, specifically, the storage of same storage hardware can be used Catalogue is the application program memory space different with application data distribution, as corresponding to the embodiment of the present invention can be by storage hardware Storage catalogue divide two different storage regions, storage region is used to preserve application program, another storage region The application data corresponding for preserving application program.
In embodiments of the present invention, terminal device 10, available for detecting new opplication number corresponding with application program During according to generation, the application data is buffered into the first predetermined memory space, first memory space described in storage with answering It is different with the second memory space of program;After the application data is buffered into the first predetermined memory space, if detecting When the terminal device is in the state for being connected to network, the application data cached in first memory space can be read Go out so that by the data transmission set being connected with the terminal equipment in communication, by the read-out application data transmit to Data service center;
Data transmission set 20, the application data transmitted available for receiving terminal apparatus 10, and by the application received Data transfer to data service center 30, application data is written into the first predetermined memory space of terminal device 10 in generation In, and when terminal device 10 is in the state for being connected to network, reads and transmitted to data biography from first memory space Transfer device 20;
Data service center 30, for receiving the application data that data transmission set 20 is transmitted, so as to being received Application data is handled;The processing of application data can be preservation backup, can also be forwarding, the analysis of application data Deng the processing for application data is needed according to depending on actual application scenarios, and the embodiment of the present invention is not restricted.
In application data Transmission system provided in an embodiment of the present invention, terminal device can detect the life of new opplication data Cheng Shi, can buffer into the application data that predetermined the second memory space from storing the application program is different first to be deposited Store up in space, and when detecting the terminal device in the state for being connected to network, will delay in first memory space The application data deposited is read, so as to by data transmission set, the read-out application data being transmitted to data and taken Business center, realizes transmission of the application data by terminal device to data service center.Terminal device is having the generation of new opplication data When, application data is first buffered into the first memory space, then when terminal device is in the state for being connected to network, first is deposited The application data of storage spatial cache is transmitted to data service center, may be such that the application data that application program is produced at any time The process of transmission can be read by caching, then in caching, realize to the transmission of data service center, solve existing application The transmission means of data application data produced when terminal device can not be not connected to network is transmitted to data service center The problem of brought, the loss of application data is reduced, the influence that the completeness transmitted for application data is present is reduced, makes Must transmit to the application data of data service center has more preferable completeness.
Based on said system, the angle from terminal device is to application data transmission side provided in an embodiment of the present invention below Method is introduced.
Fig. 2 is the flow chart of application data transmission method provided in an embodiment of the present invention, and reference picture 2, this method can be wrapped Include:
Step S100, when having detected the generation of corresponding with application program new opplication data, the application data is delayed The first predetermined memory space of deposit, first memory space is different from the second memory space for storing the application program;
Optionally, new opplication data corresponding with application program can be operated triggering to generate by user;Application data can be Information produced by after user's operation application program, such as realizes that the detection of information gathers (such as terminal device tool by application program When having the detection function such as distance, body temperature, speed, the information for detecting collection can be the information such as distance, body temperature, speed, correspondence Application data be the information such as distance, body temperature, speed), then detect that the information gathered is application data;Application data Can be the operation behavior information corresponding to user's operation application program;It can also be the volume that user is edited by application program Collect information (such as application program is the situation that instant messaging is applied).
The first memory space mode different from the second memory space is set to be divided into two kinds:
First, the application program application data corresponding with application program is preserved using different storage hardwares respectively, specifically , the embodiment of the present invention can be respectively application program and application data point using the storage catalogue corresponding to different storage hardwares With memory space, such as application program can be stored in the SD card of terminal device, distributed by the storage catalogue of SD card in SD card One memory space for storing application program, application data can be stored in the internal memory of terminal device, pass through depositing for internal memory Storage catalogue distributes a memory space for being used to store the corresponding application data of application program in internal memory.
2nd, two different storage regions are divided in same storage hardware and preserves application program and application program phase respectively Corresponding application data, specifically, the embodiment of the present invention can use the storage catalogue of same storage hardware for application program and answer With the different memory space of data distribution, as the embodiment of the present invention can by storage hardware corresponding to storage catalogue divide two Different storage regions a, storage region is used to preserve application program, and another storage region is used to preserve application program phase Corresponding application data.
Optionally, the first memory space of the application data that is stored with is regarded as the database of an application data, this hair Bright embodiment can perform the code of reading database, so as to realize and database after the generation of new opplication data has been detected Mounting, the new opplication data buffer storage generated is entered in database.
Step S110, detect the terminal device be in be connected to network state when, will described first storage sky Between in caching the application data read;
Optionally, in embodiments of the present invention, terminal device can be that is, of the invention all the time in the state for being connected to network Embodiment by application data when buffering into the first predetermined memory space, and terminal device can be the shape for having been connected to network State, in such cases, the embodiment of the present invention can be deposited from first again after application data to be buffered into the first predetermined memory space Store up the application data cached reading in space.
Optionally, the embodiment of the present invention by application data when buffering into the first predetermined memory space, terminal device Can be in being not connected to the state of network, in such cases, the embodiment of the present invention application data is buffered into it is predetermined After first memory space, whether detectable terminal device is connected to network, and when being connected to network, by the first memory space The application data cached is read.
Optionally, when detecting the terminal device in the state for being connected to network, the embodiment of the present invention can perform The code of reading database, so that the mounting with database is realized, by the slow reading of application data buffered into database.
It is worth noting that, step S100 and step S110 are only the explanation embodiment of the present invention application in terminal device When the corresponding application data of program is generated, the embodiment of the present invention first can buffer into application data the first predetermined memory space, Rather than the transmission of application data is directly carried out, then when terminal device is in the state for being connected to network, the will be buffered into Application data in one memory space is read, to transmit to data service center.The embodiment of the present invention does not limit terminal and set The standby opportunity for being connected to network, but the transmission of restriction application data is with first caching, reading application data enters from caching again The flow of row transmission.
Step S120, the data transmission set by being connected with the terminal equipment in communication, by the read-out application Data transfer is to data service center.
In application data transmission method provided in an embodiment of the present invention, terminal device is detecting the generation of new opplication data When, the application data can be buffered into predetermined first storage different from the second memory space of the storage application program In space, and when detecting the terminal device in the state for being connected to network, it will be cached in first memory space The application data read, so that by data transmission set, the read-out application data is transmitted to data, services Center, realizes transmission of the application data by terminal device to data service center.Terminal device have new opplication data generation when, Application data is first buffered into the first memory space, then when terminal device is in the state for being connected to network, by the first storage The application data of spatial cache is transmitted to data service center, may be such that the application data that application program is produced at any time is equal The process of transmission can be read by caching, then in caching, realize to the transmission of data service center, solve existing application number According to transmission means terminal device can not be not connected to network when produced application data transmit to data service center institute The problem of bringing, reduces the loss of application data, reduces the influence that the completeness transmitted for application data is present so that Transmitting to the application data of data service center has more preferable completeness.
Meanwhile, the first memory space of storage application data of the embodiment of the present invention and the second storage of storage application program are empty Between be different, i.e. the first memory space is that independently of the memory space outside application program, this may be such that the slow of application data Depositing is free on outside the memory space of application program, and the caching of application data is independent of application program, and possessing to reentry Property, the abnormal to the influence of the application data cached of application program can be reduced, it is ensured that in application exception or deletion, The application data of caching is not in the situation of loss.
Optionally, available spatial cache in the first memory space can be set to by the embodiment of the present invention as needed Than the caching inside application program greatly, i.e. the first memory space is more than the corresponding inner buffer space of application program, so may be used To ensure on the premise of storage resource is enough, the first memory space caches application data, the first memory space as much as possible Bigger, open ended application data is also more, and the reliability of application data transmission is also higher.
Optionally, the embodiment of the present invention can preserve data corresponding with the application program in the first memory space and delay Deposit the size that the application data being saved into the first memory space can be recorded in management table, data buffer storage management table, storage The information such as position, storage time;Optionally, because the application data buffered into the first memory space there may be many parts, such as exist At the time of different, application program may can produce application data, and produced same application institute is not right in the same time for these The many parts of application datas answered are intended to be stored into the first memory space, therefore should for every part be stored into the first memory space With data, the embodiment of the present invention can create a management section corresponding with this part of application data in data buffer storage management table Point, records the storage location of cached application data by management node, size, the information such as storage time.It is corresponding, Fig. 3 Another flow chart of application data transmission method provided in an embodiment of the present invention is shown, reference picture 3, this method can include:
Step S200, when having detected the generation of corresponding with application program new opplication data, the application data is delayed The first predetermined memory space of deposit, and the data corresponding with the application program preserved in first memory space are slow Deposit and management node corresponding with the application data is created in management table, an a application program of management node correspondence is corresponding Record has storage location of the application data in first memory space in application data, the management node;
Optionally, in embodiments of the present invention, second storage of first memory space with storing the application program Space is different;Management node also can record except recording the application data in addition to the storage location of first memory space The size of application data, the information such as storage time.
Step S210, detect the terminal device be in be connected to network state when, transfer the data buffer storage Management node corresponding with the application data in table is managed, the storage position of the application data is determined by the management node Put;
Step S220, from the storage location read the application data;
Step S230, the data transmission set by being connected with the terminal equipment in communication, by the read-out application Data transfer is to data service center.
Optionally, in the application data after being transmitted of the terminal device to the data service center, this Management node corresponding with the application data in the releasable data buffer storage management table of inventive embodiments.
It can be seen that, the embodiment of the present invention is using node mapping skill wood, using the first memory space cached as application data point For two parts:Data buffer storage manages the physical cache space of table and application data.It is empty when there is application data to write the first storage Between physical cache space when, can first data buffer storage management table in create a management node corresponding with the application data, The information such as size, storage location, storage time so as to record application data by management node.It is empty when being stored in the first storage Between in application data when being completely transmitted to data service center, the embodiment of the present invention can discharge from data buffer storage management table Management node corresponding with the application data.In this way, the continuity of application data access can be effectively ensured.It is heavier Want, the embodiment of the present invention can accurately find the access breakpoint of last time by management node, including write when application is reentried Enter breakpoint and read breakpoint.
Optionally, on the basis of the management node of foregoing description, the embodiment of the present invention can realize the breakpoint of application data Transmission.The mode that application data is transmitted to data service center is broadly divided into by the embodiment of the present invention by data transmission set Two kinds:One is in network condition good (the normal situation of network connection of such as terminal device) and application program operational excellence is (such as The situation that application program is normally run) when, disposably application data is transmitted into data, services by data transmission set The heart;Two be in network condition abnormal (the abnormal situation of the network connection of such as terminal device) or application program operation exception is (such as The situation of application program operation exception) when, data transmission set use breakpoint transmission by way of by application data transmit to Data service center.
Application data is transmitted into data, services by the way of breakpoint transmission to provided in an embodiment of the present invention below The process of the heart is introduced;It is corresponding, Fig. 4 show it is provided in an embodiment of the present invention by data transmission set by application data Transmit to the method flow diagram of data service center, reference picture 4, this method can include:
Step S300, by data transmission set the application data is transmitted to the process of the data service center In, if detecting data transmission exception, it is not transferred at the time of record detects data transmission exception in the management node Data buffer storage breakpoint corresponding to the application data of the data service center;
The management node is managed by the data buffer storage corresponding with the application program preserved in the first memory space In table, management node corresponding with the application data.
Optionally, data transmission exception can be terminal device network connection it is abnormal, or application program operation exception.
Step S310, detect data transfer recover it is normal when, pass through the data buffer storage in the management node Breakpoint determines to be not transferred to storage location of the application data of the data service center in first memory space;
Optionally, the embodiment of the present invention can accurately be found by management node the memory space of last visit first reading break Point, so that by the reading breakpoint, it is determined that the application data for being not transferred to the data service center is empty in the described first storage Between in storage location.
In situation of the data transmission exception for the network connection exception of terminal device, corresponding data transfer recovers normal Can be that network connection recovers normal;When data transmission exception is the situation of application program operation exception, corresponding data are passed Defeated recovery can be normally after the normal situation of application program restoring running, such as application exception by re-launching applications, So that application recovery is normal.In general, data transfer is recovered normally to relate generally to two aspects:The network of terminal device connects Connect normal, and application program is normally run.
Step S320, by the identified application data for being not transferred to the data service center described first storage Storage location in space, the application data for being not transferred to the data service center is read, and pass through data transmission set The application data for being not transferred to data service center is transmitted to the data service center.
Optionally, the embodiment of the present invention can be when network connection be abnormal, by way of breakpoint transmission, in network connection just Chang Shi, resumes the application data for being not transferred to data service center, it is ensured that what application data was transmitted continues.
Optionally, this implementation uses first memory spaces different from the second memory space for storing application program as slow The memory space of application data is deposited, after may be such that application program because of abnormal restarting, cached application data is not interfered with yet Transmission.When application program is again started up, the embodiment of the present invention can access the first memory space automatically, be found by management node The reading breakpoint of the application data of last time, resumes the application data for being not transferred to data service center, it is ensured that application data is transmitted Continue.
Optionally, the first memory space can be one piece of independent shared drive;Application number provided in an embodiment of the present invention Built-in Linux operating system is can be applied to according to transmission method, built-in Linux operating system has the branch to shared drive Hold, shared drive be can by global access but independent of application program Cun ー block physical memories.Based on this point, When application starts, the shared drive supporting interface that the embodiment of the present invention can be provided by built-in Linux operating system, in advance Chuan Jian ー block shared drives, are assigned therein as caching memory space (the i.e. first storage for the application data that application program is generated Space).
Optionally, data buffer storage management table provided in an embodiment of the present invention can with the physical cache region of corresponding application data , i.e., can be by the when being installed again after the application program in terminal device is deleted using the pattern of cycle applications The data buffer storage management table corresponding with the application program preserved in one memory space, determine in the first memory space with The corresponding application data of the application program, so that identified application data and the application program reinstalled be closed Connection.
By the pattern of cycle applications provided in an embodiment of the present invention, it may be such that application program, can after reinstalling Corresponding historical usage data are determined from local cache, it is ensured that application program is after refitting is deleted, correspondence application data Do not lose.
Optionally, the embodiment of the present invention can be managed table by data buffer storage and control application data in the first memory space Write-in and reading, when the application data that the first memory space has been stored exceeds the capacity of the first memory space, the present invention is implemented Example can manage the spilling that table controls application data in the first memory space by data buffer storage, it is determined that being to retain original application number According to, or use the new original application data of application data covering.
Optionally, the embodiment of the present invention may be related to multiple tasks and access simultaneously when carrying out the transmission of application data First memory space, to avoid resource access conflict, when accessing the first memory space, the embodiment of the present invention is settable synchronization Mechanism;Such as in embedded Iinux operating systems, the embodiment of the present invention can use mutex amount (semop), thread lock (pthread_mutex), the technology such as file lock (flock) realizes synchronization of access control, so as to ensure in synchronization, difference is used The multiple tasks only one of which that family is assigned can access the first memory space.Specifically, application number provided in an embodiment of the present invention The flow that synchronization of access is controlled can also be included according to transmission method, Fig. 5 shows synchronization of access control provided in an embodiment of the present invention The method flow of system, reference picture 5, this method can include:
Step S400, the multiple tasks for obtaining access first memory space, the multiple task includes first Business and the second task;
If step S410, the first task different user corresponding with the second task, sequentially perform described first Business and the second task, to keep only one of which task to access first memory space in synchronization;
If step S420, the first task identical user corresponding with the second task, perform simultaneously described first Business and the second task, to maintain the task of at least two correspondence same subscribers to access first memory space in synchronization.
It is worth noting that, step S410 is for first task different use corresponding with the second task with step S420 There is no obvious sequencing between family, and the correspondingly different disposal flow of identical user, two steps.
Application data transmission method provided in an embodiment of the present invention can be applied to the number of user side equipment and network side equipment According to synchronization;Corresponding, Fig. 6 stations show application provided in an embodiment of the present invention in the angle of user side equipment (terminal device) Another flow of data transmission method, reference picture 6, this method can include:
Step S500, startup application program, and carry out using login;
Optionally, the embodiment of the present invention can realize the login of application by user account and user cipher, log in after application, Terminal device may be connected to data service center;
Step S510, the application data preserved in data service center and terminal device local cache application data are not Together, and data service center preserve application data capacity be less than terminal device local cache application data capacity when, it is determined that The application data different from the application data that data service center is preserved in the application data of terminal device local cache;
Step S520, the different application data is buffered into the first predetermined memory space, first memory space It is different from the second memory space for storing the application program, and the terminal device is being detected in the shape for being connected to network During state, the application data cached in first memory space is read, passes through what is be connected with the terminal equipment in communication Data transmission set, the read-out application data is transmitted to data service center;
Step S530, the application data preserved in data service center and terminal device local cache application data are not Together, and data service center preserve application data capacity be more than terminal device local cache application data capacity when, it is determined that The application data different from the application data of terminal device local cache in the application data that data service center is preserved;
Step S540, by data transmission set the different application data is downloaded to first from data service center Memory space;
Step S550, data service center preserve application data it is identical with the application data of terminal device local cache When, terminate flow.
Application data transmission method provided in an embodiment of the present invention may be such that the application that application program is produced at any time Data can read the process of transmission by caching, then in caching, realize to the transmission of data service center, solve existing The transmission means of application data application data produced when terminal device can not be not connected to network is transmitted to data, services The problem of center is brought, reduces the loss of application data, reduces the shadow that the completeness transmitted for application data is present Ring so that transmitting to the application data of data service center has more preferable completeness;Meanwhile, the first of storage application data deposits Space is stored up, independently of the memory space outside application program, to may be such that the caching of application data independent of application program, tool Standby reenterability, can reduce the abnormal to the influence of the application data cached of application program, it is ensured that in application exception or During deletion, the application data cached is not in the situation of loss.
Application data transmitting device provided in an embodiment of the present invention is introduced below, application data described below is passed It is defeated can be mutually to should refer to above-described application data method.
Fig. 7 is the structured flowchart of application data transmitting device provided in an embodiment of the present invention, reference picture 7, and the device can be with Including:
Cache module 100, for when having detected new opplication data generation corresponding with application program, by the application Data buffer storage enters the first predetermined memory space, and the first memory space is with storing the second memory space of the application program not Together;
Read module 200, for when detecting the terminal device in the state for being connected to network, by described first The application data cached in memory space is read;
Transport module 300, for the data transmission set by being connected with the terminal equipment in communication, by read-out institute Application data is stated to transmit to data service center.
Optionally, first memory space preserves data buffer storage management table corresponding with the application program;Herein On the basis of, Fig. 8 shows a kind of alternative construction of cache module 100 provided in an embodiment of the present invention, reference picture 8, cache module 100 can include:
Management node creating unit 110, for when the application data is buffered into the first memory space, in the number According to establishment management node corresponding with the application data in cache management table, an a application program pair of management node correspondence Record has storage location of the application data in first memory space in the application data answered, the management node;
Corresponding, Fig. 9 shows a kind of alternative construction of read module 200, and reference picture 9, read module 200 can be wrapped Include:
Determining unit 210 is transferred, for transferring management corresponding with the application data in the data buffer storage management table Node, the storage location of the application data is determined by the management node;
Sensing element 220, for reading the application data from the storage location.
Optionally, application data transmitting device provided in an embodiment of the present invention be able to will be applied by the way of breakpoint transmission Data transfer is to data service center;Corresponding, Figure 10 shows that one kind of transport module 300 provided in an embodiment of the present invention can Structure is selected, reference picture 10, transport module 300 can include:
Breakpoint recording unit 310, for transmitting the application data to data clothes by data transmission set During business center, if detecting data transmission exception, record detects data transmission exception in the management node Moment is not transferred to the data buffer storage breakpoint corresponding to the application data of the data service center;
Breakpoint location determining unit 320, for detect data transfer recover it is normal when, by the management node The data buffer storage breakpoint determine be not transferred to the application data of the data service center in first memory space Storage location;
Breakpoint transmission unit 330, for being existed by the identified application data for being not transferred to the data service center Storage location in first memory space, the application data for being not transferred to the data service center is read, and passes through Data transmission set transmits the application data for being not transferred to data service center to the data service center.
Optionally, on the basis of cache module 100 shown in Fig. 8, Figure 11 shows application provided in an embodiment of the present invention Another structured flowchart of data transmission device, with reference to shown in Fig. 7 and Figure 11, application data transmission dress provided in an embodiment of the present invention Putting to include:
Release module 400, for after being transmitted of the application data to the data service center, release to be described Management node corresponding with the application data in data buffer storage management table.
Optionally, on the basis of cache module 100 shown in Fig. 8, Figure 12 shows application provided in an embodiment of the present invention Another structured flowchart of data transmission device, with reference to shown in Fig. 7 and Figure 12, application data transmission dress provided in an embodiment of the present invention Putting to include:
Application data determining module 500, for after the application program is reinstalled in the terminal device, passing through The corresponding data buffer storage management table of the application program, determines applies corresponding with application program from first memory space Data.
Optionally, application data transmitting device provided in an embodiment of the present invention can have the flow that synchronization of access is controlled, So as to ensure in synchronization, the multiple tasks only one of which that different user is assigned can access the first memory space;It is corresponding, Figure 13 shows the another structured flowchart of application data transmitting device provided in an embodiment of the present invention, with reference to shown in Fig. 7 and Figure 13, Application data transmitting device provided in an embodiment of the present invention can also include:
Task acquisition module 600, obtains the multiple tasks for accessing first memory space, and the multiple task includes First task and the second task;
First performing module 700, in the first task different user corresponding with the second task, sequentially performing The first task and the second task, to keep only one of which task to access first memory space in synchronization;
Second performing module 800, in first task identical user corresponding with the second task, performing simultaneously The first task and the second task, to maintain the task of at least two correspondence same subscribers to access described first in synchronization Memory space.
Application data transmitting device provided in an embodiment of the present invention, may be such that the application that application program is produced at any time Data can read the process of transmission by caching, then in caching, realize to the transmission of data service center, solve existing The transmission means of application data application data produced when terminal device can not be not connected to network is transmitted to data, services The problem of center is brought, reduces the loss of application data, reduces the shadow that the completeness transmitted for application data is present Ring so that transmitting to the application data of data service center has more preferable completeness;Meanwhile, the first of storage application data deposits Space is stored up, independently of the memory space outside application program, to may be such that the caching of application data independent of application program, tool Standby reenterability, can reduce the abnormal to the influence of the application data cached of application program, it is ensured that in application exception or During deletion, the application data cached is not in the situation of loss.
The embodiment of the present invention also provides a kind of terminal device, and the terminal device can include application data described above and pass Defeated device, the description for application data transmitting device can refer to the description of corresponding part above, and here is omitted.
The embodiment of each in this specification is described by the way of progressive, and what each embodiment was stressed is and other Between the difference of embodiment, each embodiment identical similar portion mutually referring to.For device disclosed in embodiment For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part It is bright.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, generally describes the composition and step of each example according to function in the above description.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of the method or algorithm that the embodiments described herein is described with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (8)

1. a kind of application data transmission method, it is characterised in that applied to terminal device, methods described includes:
When having detected new opplication data generation corresponding with application program, the application data is buffered into predetermined first Memory space, first memory space is different from the second memory space for storing the application program;
When detecting the terminal device in the state for being connected to network, described in being cached in first memory space Application data is read;
By the data transmission set being connected with the terminal equipment in communication, the read-out application data is transmitted to data Service centre;
Wherein, first memory space preserves data buffer storage management table corresponding with the application program;It is described to incite somebody to action described Application data, which buffers into the first predetermined memory space, to be included:
When the application data is buffered into the first memory space, created and the application in data buffer storage management table In the corresponding management node of data, the corresponding application data of an a application program of management node correspondence, the management node Record has storage location of the application data in first memory space;
Described read the application data cached in first memory space includes:
Management node corresponding with the application data in the data buffer storage management table is transferred, is determined by the management node The storage location of the application data;
The application data is read from the storage location.
2. application data transmission method according to claim 1, it is characterised in that described by logical with the terminal device Believe the data transmission set of connection, the application data, which is transmitted to data service center, to be included:
During by data transmission set, the application data is transmitted to the data service center, if detecting number According to transmission abnormality, it is not transferred at the time of record detects data transmission exception in the management node in the data, services Data buffer storage breakpoint corresponding to the application data of the heart;
When detecting data transfer and recovering normal, determine not transmit by the data buffer storage breakpoint in the management node To storage location of the application data in first memory space of the data service center;
Pass through the identified storage for being not transferred to the application data of the data service center in first memory space Position, the application data for being not transferred to the data service center is read, and is not transmitted described by data transmission set Application data to data service center is transmitted to the data service center.
3. application data transmission method according to claim 1 or 2, it is characterised in that methods described also includes:
After being transmitted of the application data to the data service center, discharge in the data buffer storage management table with institute State the corresponding management node of application data.
4. application data transmission method according to claim 1 or 2, it is characterised in that methods described also includes:
After the application program is reinstalled in the terminal device, pass through the corresponding data buffer storage pipe of the application program Table is managed, application data corresponding with the application program is determined from first memory space.
5. application data transmission method according to claim 1, it is characterised in that methods described also includes:
The multiple tasks for accessing first memory space are obtained, the multiple task includes first task and the second task;
If the first task different user corresponding with the second task, sequentially performs the first task and the second task, To keep only one of which task to access first memory space in synchronization;
If first task identical user corresponding with the second task, the first task and the second task are performed simultaneously, To maintain the task of at least two correspondence same subscribers to access first memory space in synchronization.
6. a kind of application data transmitting device, it is characterised in that applied to terminal device, described device is based on claim 1-5 Application data transmission method described in any one, described device includes:
Cache module, for when having detected new opplication data generation corresponding with application program, the application data to be delayed The first predetermined memory space of deposit, the first memory space is different from the second memory space for storing the application program;
Read module, it is for when detecting the terminal device in the state for being connected to network, the described first storage is empty Between in caching the application data read;
Transport module, for the data transmission set by being connected with the terminal equipment in communication, by the read-out application Data transfer is to data service center;
Wherein, first memory space preserves data buffer storage management table corresponding with the application program;
The cache module includes:
Management node creating unit, for when the application data is buffered into the first memory space, in the data buffer storage Manage and management node corresponding with the application data is created in table, an a application program of management node correspondence is corresponding should With data, record has storage location of the application data in first memory space in the management node;
The read module includes:
Determining unit is transferred, for transferring management node corresponding with the application data in the data buffer storage management table, is led to Cross the storage location that the management node determines the application data;
Sensing element, for reading the application data from the storage location.
7. application data transmitting device according to claim 6, it is characterised in that the transport module includes:
Breakpoint recording unit, for transmitting the application data to the data service center by data transmission set During, if detecting data transmission exception, do not passed at the time of record detects data transmission exception in the management node Transport to the data buffer storage breakpoint corresponding to the application data of the data service center;
Breakpoint location determining unit, for detect data transfer recover it is normal when, described in the management node Data buffer storage breakpoint determines to be not transferred to storage of the application data of the data service center in first memory space Position;
Breakpoint transmission unit, for by the identified application data for being not transferred to the data service center described first Storage location in memory space, the application data for being not transferred to the data service center is read, and pass through data transfer Equipment transmits the application data for being not transferred to data service center to the data service center.
8. a kind of terminal device, it is characterised in that including the application data transmitting device described in claim any one of 6-7.
CN201410234191.8A 2014-05-29 2014-05-29 A kind of application data transmission method, device and terminal device Active CN103986779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410234191.8A CN103986779B (en) 2014-05-29 2014-05-29 A kind of application data transmission method, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410234191.8A CN103986779B (en) 2014-05-29 2014-05-29 A kind of application data transmission method, device and terminal device

Publications (2)

Publication Number Publication Date
CN103986779A CN103986779A (en) 2014-08-13
CN103986779B true CN103986779B (en) 2017-10-13

Family

ID=51278602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410234191.8A Active CN103986779B (en) 2014-05-29 2014-05-29 A kind of application data transmission method, device and terminal device

Country Status (1)

Country Link
CN (1) CN103986779B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930137B (en) * 2015-11-19 2019-06-28 中国银联股份有限公司 A kind of data processing method and device of cross-terminal equipment platform
CN105574116A (en) * 2015-12-11 2016-05-11 芜湖乐锐思信息咨询有限公司 Real-time multi-application data query system
CN107707590A (en) * 2016-08-09 2018-02-16 阿里巴巴集团控股有限公司 System, the method and device of data transfer
CN108319251B (en) * 2017-12-29 2020-11-06 中车唐山机车车辆有限公司 Train data acquisition method and device
CN109274548A (en) * 2018-08-22 2019-01-25 平安普惠企业管理有限公司 A kind of method for monitoring application program, computer readable storage medium and terminal device
CN109815164A (en) * 2018-12-18 2019-05-28 航天信息股份有限公司 A kind of method and system for realizing the data buffer storage under equipment off-line state
CN111651526B (en) * 2020-08-04 2020-11-13 北京和利时系统工程有限公司 Data synchronization method of redundant front-end processor, front-end processor and processing system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969502A (en) * 2010-10-13 2011-02-09 华为终端有限公司 Mobile terminal service recovering method and mobile terminal
CN102710774A (en) * 2012-06-04 2012-10-03 深圳市宏电技术股份有限公司 Method and system for data transmission
CN103392165A (en) * 2011-06-24 2013-11-13 株式会社日立制作所 Storage system
CN103685669A (en) * 2013-12-06 2014-03-26 深圳酷派技术有限公司 Short message processing method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969502A (en) * 2010-10-13 2011-02-09 华为终端有限公司 Mobile terminal service recovering method and mobile terminal
CN103392165A (en) * 2011-06-24 2013-11-13 株式会社日立制作所 Storage system
CN102710774A (en) * 2012-06-04 2012-10-03 深圳市宏电技术股份有限公司 Method and system for data transmission
CN103685669A (en) * 2013-12-06 2014-03-26 深圳酷派技术有限公司 Short message processing method and terminal

Also Published As

Publication number Publication date
CN103986779A (en) 2014-08-13

Similar Documents

Publication Publication Date Title
CN103986779B (en) A kind of application data transmission method, device and terminal device
CN106407040B (en) A kind of duplicating remote data method and system
CN103942252B (en) A kind of method and system for recovering data
CN103765406B (en) For the method and apparatus remotely updating executive process
CN103930879B (en) Projection storage gateway
CN107704196A (en) Block chain data-storage system and method
CN105872040B (en) A method of write performance is stored using gateway node cache optimization distributed block
US8069191B2 (en) Method, an apparatus and a system for managing a snapshot storage pool
CN105338297B (en) A kind of storage of video data and playback system, device and method
CN103761190B (en) Data processing method and apparatus
CN103186554B (en) Distributed data mirror method and storage back end
CN101470645B (en) High-speed cache data recovery method and apparatus
CN104156361A (en) Method and system for achieving data synchronization
CN103270499B (en) log storing method and system
CN101673192A (en) Method for time-sequence data processing, device and system therefor
CN106850856A (en) A kind of distributed memory system and its synchronization caching method
CN109582686B (en) Method, device, system and application for ensuring consistency of distributed metadata management
CN106919471A (en) For the method and system that snapshot is set up
CN107329859A (en) A kind of data guard method and storage device
CN101937378B (en) Method for carrying out back-up protection on data of storage equipment and computer system
CN105915595B (en) Method for cluster storage system to access data and cluster storage system
CN105430314A (en) Video data storage and access control method and device
CN108234465A (en) Abnormal redundancy approach and device are coped in a kind of distributed file system
CN113051428A (en) Method and device for storing and backing up front end of camera
CN108733584A (en) Method and apparatus for optimizing data buffer storage

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