Summary of the invention
Embodiments of the invention provide a kind of filter method and device of fail data, have solved pushed information and have occurred continuously when abnormal, there will be and connect abnormal and interrupt and cannot receive the problem of error code, have improved the propelling movement success rate of pushed information.Meanwhile, can improve the operating efficiency of terminal.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of filter method of fail data, is applied to the first electric terminal, and described method comprises:
Obtain full dose pushed information;
Open the propelling movement thread of described pushed information, described full dose pushed information is sent to subscriber equipment by the second electric terminal;
Obtain abnormal pushed information, and described abnormal pushed information is saved in interim queue;
Judge whether described full dose pushed information is all sent to described subscriber equipment;
If described full dose pushed information is all sent to described subscriber equipment, from described interim queue, obtain described abnormal pushed information;
From described full dose pushed information, search described abnormal pushed information, and by the filtering from described full dose pushed information of described abnormal pushed information.
In the possible implementation of the first, in conjunction with first aspect, describedly from described full dose pushed information, search described abnormal pushed information, and described abnormal pushed information after filtering, also comprised from described full dose pushed information:
Obtain remaining all pushed information in the described full dose pushed information after pushed information abnormal described in filtering;
Open the propelling movement thread of described pushed information, remaining all pushed information in described full dose pushed information are sent to subscriber equipment by the second electric terminal.
In the possible implementation of the second, in conjunction with first aspect, described in obtain abnormal pushed information, and described abnormal pushed information is saved in interim queue, comprising:
From the feedback server of described the second electric terminal, obtain described abnormal pushed information, and described abnormal pushed information is saved in described interim queue.
In the third possible implementation, in conjunction with first aspect, described in obtain abnormal pushed information, and described abnormal pushed information is saved in interim queue, also comprise:
Receive the ID of error code that described the second electric terminal sends and abnormal pushed information;
According to the ID of the described error code receiving and abnormal pushed information, obtain abnormal pushed information, and described abnormal pushed information is saved in described interim queue.
In the 4th kind of possible implementation, in conjunction with the third possible implementation,
Described error code is that described the second electric terminal obtains according to the feedback information of the form of described pushed information and the transmission of described subscriber equipment; Wherein, described feedback information is that described subscriber equipment sends according to after receiving described full dose pushed information.
In the 5th kind of possible implementation, in conjunction with the possible implementation of the second or the third possible implementation, if described full dose pushed information is all sent to described subscriber equipment, obtain described abnormal pushed information from described interim queue after, also comprise:
The described abnormal pushed information getting is gathered.
Second aspect, provides a kind of filter of fail data, and described device comprises:
Acquiring unit, for obtaining full dose pushed information;
Transmitting element, for opening the propelling movement thread of described pushed information, is sent to subscriber equipment by described full dose pushed information by the second electric terminal;
Described acquiring unit, also for obtaining abnormal pushed information, and is saved in described abnormal pushed information in interim queue;
Judging unit, for judging whether described full dose pushed information is all sent to described subscriber equipment;
Described acquiring unit if be also all sent to described subscriber equipment for described full dose pushed information, obtains described abnormal pushed information from described interim queue;
Processing unit, for searching described abnormal pushed information from described full dose pushed information, and by the filtering from described full dose pushed information of described abnormal pushed information.
In the possible implementation of the first, in conjunction with second aspect,
Described acquiring unit, also for obtaining the remaining all pushed information of described full dose pushed information after pushed information abnormal described in filtering;
Described transmitting element, also, for opening the propelling movement thread of described pushed information, is sent to subscriber equipment by remaining all pushed information in described full dose pushed information by the second electric terminal.
In the possible implementation of the second, in conjunction with second aspect, described acquiring unit comprises:
Acquisition module, for obtain described abnormal pushed information from the feedback server of described the second electric terminal, and is saved in described abnormal pushed information in described interim queue.
In the third possible implementation, in conjunction with second aspect, described acquiring unit also comprises:
Receiver module, for receiving the ID of error code that described the second electric terminal sends and abnormal pushed information;
Described acquisition module, the ID of the described error code also receiving for basis and abnormal pushed information obtains abnormal pushed information, and described abnormal pushed information is saved in interim queue.
In the 4th kind of possible implementation, in conjunction with the third possible implementation,
Described error code is that described the second electric terminal obtains according to the feedback information of the form of described pushed information and the transmission of described subscriber equipment; Wherein, described feedback information is that described subscriber equipment sends according to after receiving described full dose pushed information.
In the 5th kind of possible implementation, in conjunction with the possible implementation of the second or the third possible implementation,
Described device also comprises:
Gather unit, for the described abnormal pushed information getting is gathered.
The filter method of the fail data that embodiments of the invention provide and device, when the full dose pushed information getting is sent to subscriber equipment, obtain abnormal pushed information simultaneously, and after all pushed information are all sent completely, by this abnormal pushed information filtering from full dose pushed information, solve pushed information and occurred continuously when abnormal, there will be and connect abnormal and interrupt and cannot receive the problem of error code, improved the propelling movement success rate of pushed information.Meanwhile, can improve the operating efficiency of terminal.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments of the invention provide a kind of filter method of fail data, are applied to the first electric terminal, and shown in Fig. 1, the method comprises the following steps:
101, the first electric terminal obtains full dose pushed information.
Wherein, this full dose pushed information is all pushed information that need propelling movement.The quantity of the full dose pushed information in the present embodiment, after setting at first, needs the quantity of the pushed information of propelling movement only can reduce can not increase.
102, the first electric terminal is opened the propelling movement thread of pushed information, and full dose pushed information is sent to subscriber equipment by the second electric terminal.
It is in order to facilitate follow-up the first electric terminal to judge whether full dose pushed information is all sent completely that this full dose pushed information is sent to subscriber equipment by the second electric terminal, and therefrom obtains abnormal pushed information.
103, the first electric terminal obtains abnormal pushed information, and this abnormal pushed information is saved in interim queue.
Concrete, the first electric terminal obtains abnormal pushed information when sending pushed information, and the abnormal pushed information at every turn getting is saved in interim queue, facilitates the follow-up processing to abnormal pushed information.
It should be noted that step 102 and step 103 on execution sequence, do not have sequencing minute, that is to say that step 102 and step 103 can carry out simultaneously.Do not do concrete restriction herein.In concrete execution environment, can decide according to actual demand.
104, the first electric terminal judges whether full dose pushed information is all sent to subscriber equipment.
Last pushed information in full dose pushed information being detected has been sent to subscriber equipment, illustrates that all pushed information in full dose pushed information are all sent completely.
If 105 full dose pushed information are all sent to subscriber equipment, the first electric terminal obtains abnormal pushed information from interim queue.
All pushed information in full dose pushed information are all sent to after subscriber equipment, and the abnormal pushed information that now the first electric terminal gets is all abnormal pushed information that may lose efficacy in full dose pushed information, and the data that now obtain are the most accurate.If do not obtain abnormal pushed information when all pushed information are also sent completely, may occur some abnormal pushed information obtain less than, or certain write abnormal pushed information can repeated obtain etc. situation, cause the data that finally obtain inaccurate.Now, in interim queue, all abnormal pushed information have been comprised.
Concrete, the ID of the error code that the first electric terminal can send according to the second electric terminal and abnormal pushed information obtains abnormal pushed information; Or the first electric terminal is by obtaining abnormal pushed information in the feedback server that detects the second electric terminal.
106, the first electric terminal is searched abnormal pushed information from full dose pushed information, and by the filtering from this full dose pushed information of this abnormal pushed information.
From full dose pushed information, find after abnormal pushed information, this abnormal pushed information is deleted the quantity of the abnormal pushed information in full dose pushed information is reduced, improve the propelling movement success rate of pushed information.
The filter method of the fail data that embodiments of the invention provide, when the full dose pushed information getting is sent to subscriber equipment, obtain abnormal pushed information simultaneously, and after all pushed information are all sent completely, by this abnormal pushed information filtering from full dose pushed information, solve pushed information and occurred continuously when abnormal, there will be and connect abnormal and interrupt and cannot receive the problem of error code, improved the propelling movement success rate of pushed information.Meanwhile, can improve the operating efficiency of terminal.
Embodiments of the invention provide a kind of filter method of fail data, are applied to the first electric terminal, and shown in Fig. 2, the method comprises the following steps:
201, the first electric terminal obtains full dose pushed information.
Total quantity of the full dose pushed information in the embodiment of the present invention is pre-set in initial acquisition, information transmission information is afterwards the abnormal pushed information of filtering from initial full dose pushed information just, send remaining pushed information, and additionally do not increase new pushed information, do not enter, thereby, can reduce the quantity of the abnormal pushed information in pushed information.
202, the first electric terminal is opened the propelling movement thread of pushed information, and full dose pushed information is sent to subscriber equipment by the second electric terminal.
The first electric terminal is sent to subscriber equipment by this full dose pushed information by the second electric terminal and facilitates follow-up the first electric terminal to judge whether full dose pushed information is all sent completely, and subscriber equipment can send feedback information to the second electric terminal according to the pushed information that receives, thereby the second electric terminal can judge whether to send according to this feedback information ID to the first electric terminal of error code and abnormal pushed information.
After it should be noted that step 202, the first electric terminal can obtain abnormal pushed information by the method in step 203a, also can obtain abnormal pushed information by the method in step 203b~204b;
203a, the first electric terminal obtain abnormal pushed information from the feedback server of the second electric terminal, and this abnormal pushed information is saved in interim queue.
Wherein, the related content that has had abnormal pushed information in the feedback server of the second electric terminal.The detailed process that the feedback server of the second electric terminal is obtained abnormal pushed information all can realize with reference to arbitrary method of obtaining abnormal pushed information of the prior art, repeats no more herein.
203b, the first electric terminal receive the ID of error code that the second electric terminal sends and abnormal pushed information.
Wherein, error code is that the second electric terminal obtains according to the feedback information of the form of pushed information and subscriber equipment transmission; Feedback information is that subscriber equipment sends according to receiving full dose pushed information.
Whether first the second electric terminal detects the form of the pushed information receiving correct, if the ID that the format error of discovery pushed information sends corresponding error code and this pushed information is to the first electric terminal; If the feedback information that the correct format of the pushed information subscriber equipment that the second electric terminal inspection receives sends, wherein, this feedback information can be: acknowledge character (Acknowledgement is called for short ACK) or negative acknowledge character (Negative Acknowledgement is called for short NACK).If it is NACK that the second electric terminal detects the feedback information receiving, send the ID of corresponding error code to the first electric terminal and this pushed information to the first electric terminal; If detecting the feedback information receiving is ACK, do not deal with.Meanwhile, can there is wrong reason according to the error code analysis receiving in the first electric terminal, and search and occur wrong pushed information according to the ID of pushed information.Wherein, the whether identical feedback information that sends of pushed information that the pushed information that subscriber equipment judgement receives obtains with the needs that obtain in advance; If the pushed information receiving is identical with the pushed information that the needs that obtain in advance obtain, send ACK character to the second electric terminal; If the pushed information receiving is not identical with the pushed information that the needs that obtain in advance obtain, send NACK character to the second electric terminal.
204b, the first electric terminal obtain abnormal pushed information according to the ID of the error code that receives and abnormal pushed information, and this abnormal pushed information is saved in interim queue.
It should be noted that step 202 and step 203a, or step 202 and step 203b~204b on execution sequence, do not have sequencing minute, that is to say step 202 and step 203a, or step 202 and step 203b~204b can carry out simultaneously.Do not do concrete restriction herein.In concrete execution environment, can decide according to actual demand.
Wherein, after step 203a or step 203b~204b, perform step 205;
205, the first electric terminal judges whether this full dose pushed information is all sent to subscriber equipment.
Concrete, the first electric terminal can judge whether that the indication information that receives the second electric terminal transmission judges whether full dose pushed information is all sent completely.When subscriber equipment receives after last pushed information, can send feedback information to the second electric terminal; If the second electric terminal receives subscriber equipment according to sending indication information to the first electric terminal after the feedback information of last pushed information transmission, inform that the first electric terminal full dose pushed information is all sent completely.
If 206 full dose pushed information are all sent to subscriber equipment, the first electric terminal obtains abnormal pushed information from interim queue.
When full dose pushed information is all sent to subscriber equipment, all abnormal pushed information in interim queue now, have been comprised.
207, the first electric terminal is searched this abnormal pushed information from full dose pushed information, and by this abnormal pushed information filtering from full dose pushed information.
In full dose pushed information, find the abnormal pushed information obtaining according to step 203a or step 203b~204b, and this abnormal pushed information is deleted the quantity of the abnormal pushed information in full dose pushed information is reduced, improve the propelling movement success rate of pushed information.
The filter method of the fail data that embodiments of the invention provide, when the full dose pushed information getting is sent to subscriber equipment, obtain abnormal pushed information simultaneously, and after all pushed information are all sent completely, by this abnormal pushed information filtering from full dose pushed information, solve pushed information and occurred continuously when abnormal, there will be and connect abnormal and interrupt and cannot receive the problem of error code, improved the propelling movement success rate of pushed information.Meanwhile, can improve the operating efficiency of terminal.
Embodiments of the invention provide a kind of filter method of fail data, are applied to the first electric terminal, and shown in Fig. 3, the method comprises the following steps:
301, the first electric terminal obtains full dose pushed information.
302, the first electric terminal is opened the propelling movement thread of pushed information, and full dose pushed information is sent to subscriber equipment by the second electric terminal.
303, the first electric terminal obtains abnormal pushed information from the feedback server of the second electric terminal, and this abnormal pushed information is saved in interim queue.
304, the first electric terminal receives the ID of error code that the second electric terminal sends and abnormal pushed information.
The ID of the error code that 305, the first electric terminal basis receives and abnormal pushed information obtains abnormal pushed information, and this abnormal pushed information is saved in interim queue.
Wherein, error code is that the second electric terminal obtains according to the feedback information of the form of pushed information and subscriber equipment transmission; Feedback information is that subscriber equipment sends according to receiving full dose pushed information.
Wherein, step 302, step 303 and step 304~305 on execution sequence, do not have sequencing minute, that is to say that step 302 sends full dose pushed information to subscriber equipment, 303 and obtains two kinds of methods that abnormal pushed information and step 304~305 obtain abnormal pushed information and can carry out simultaneously.Do not do concrete restriction herein.In concrete execution environment, can decide according to actual demand.
In the present embodiment, obtain abnormal pushed information and be the method for obtaining abnormal pushed information providing according to step 303 and step 304~305 and jointly obtain abnormal pushed information.It is identical that the related description of obtaining abnormal pushed information providing in the process of the abnormal pushed information embodiment corresponding with Fig. 2 in accompanying drawing is provided for step 303 and step 304~305, repeats no more herein.
306, the first electric terminal judges whether this full dose pushed information is all sent to subscriber equipment.
If 307 full dose pushed information are all sent to subscriber equipment, the first electric terminal obtains abnormal pushed information from interim queue.
308, the first electric terminal gathers the abnormal pushed information getting.
Step 303 and step 304~305 are acquired together with abnormal pushed information is summarised in, facilitate the first electric terminal from full dose pushed information, to search abnormal pushed information.
309, the first electric terminal is searched this abnormal pushed information from full dose pushed information, and by this abnormal pushed information filtering from full dose pushed information.
310, the first electric terminal obtains remaining all pushed information in the abnormal pushed information of filtering full dose pushed information afterwards.
Obtain remaining other all pushed information after the abnormal pushed information of filtering in full dose pushed information, and all pushed information after the abnormal pushed information of filtering in this full dose pushed information are sent to subscriber equipment by the second electric terminal again, then obtaining abnormal pushed information, and from wherein filtering.Like this, repeatedly, after cycling, can reduce greatly the quantity of the abnormal pushed information in pushed information, improve greatly the propelling movement success rate of pushed information.
311, the first electric terminal is opened the propelling movement thread of pushed information, and remaining all pushed information in full dose pushed information are sent to subscriber equipment by the second electric terminal.
Wherein, the detailed description of the step that in the present embodiment, step is identical with step in above-described embodiment, with reference to the description in above-described embodiment, repeats no more herein.
The filter method of the fail data that embodiments of the invention provide, when the full dose pushed information getting is sent to subscriber equipment, obtain abnormal pushed information simultaneously, and after all pushed information are all sent completely, by this abnormal pushed information filtering from full dose pushed information, solve pushed information and occurred continuously when abnormal, there will be and connect abnormal and interrupt and cannot receive the problem of error code, improved the propelling movement success rate of pushed information.Meanwhile, can improve the operating efficiency of terminal.
Embodiments of the invention provide a kind of filter 4 of fail data, this device 4 is for the filter method of the fail data that realizes the embodiment of the method for arbitrary correspondence of Fig. 1~Fig. 3 and provide, shown in Fig. 4, this device comprises: acquiring unit 41, transmitting element 42, judging unit 43 and processing unit 44, wherein:
Acquiring unit 41, for obtaining full dose pushed information.
Transmitting element 42, for opening the propelling movement thread of pushed information, is sent to subscriber equipment by full dose pushed information by the second electric terminal.
Acquiring unit 41, also for obtaining abnormal pushed information, and is saved in this abnormal pushed information in interim queue.
Judging unit 43, for judging whether full dose pushed information is all sent to subscriber equipment.
Acquiring unit 41 if be also all sent to subscriber equipment for full dose pushed information, obtains abnormal pushed information from interim queue.
Processing unit 44, for searching abnormal pushed information from full dose pushed information, and by the filtering from full dose pushed information of abnormal pushed information.
The filter of the fail data that embodiments of the invention provide, when the full dose pushed information getting is sent to subscriber equipment, obtain abnormal pushed information simultaneously, and after all pushed information are all sent completely, by this abnormal pushed information filtering from full dose pushed information, solve pushed information and occurred continuously when abnormal, there will be and connect abnormal and interrupt and cannot receive the problem of error code, improved the propelling movement success rate of pushed information.Meanwhile, can improve the operating efficiency of terminal.
Further, acquiring unit 41, also for obtaining the abnormal pushed information of the filtering remaining all pushed information of full dose pushed information afterwards.
Transmitting element 42, also, for opening the propelling movement thread of pushed information, is sent to subscriber equipment by remaining all pushed information in full dose pushed information by the second electric terminal.
Concrete, shown in Fig. 5, acquiring unit 41 comprises: acquisition module 411, wherein:
Acquisition module 411, for obtaining abnormal pushed information from the feedback server of the second electric terminal, and is saved in abnormal pushed information in interim queue.
Concrete, shown in Fig. 6, acquiring unit 41 also comprises: receiver module 412, wherein:
Receiver module 412, for receiving the ID of error code that the second electric terminal sends and abnormal pushed information.
Acquisition module 411, the ID of the error code also receiving for basis and abnormal pushed information obtains abnormal pushed information, and abnormal pushed information is saved in interim queue.
Wherein, error code is that the second electric terminal obtains according to the feedback information of the form of pushed information and subscriber equipment transmission.
Feedback information is that subscriber equipment sends according to after receiving full dose pushed information.
Further, shown in Fig. 7, device 4 also comprises: gather unit 45, wherein:
Gather unit 45, for the abnormal pushed information getting is gathered.
It should be noted that, each unit in the filter of the fail data in the present embodiment and the implementation of each module and reciprocal process can be with reference to the associated description in correlation method embodiment.
The filter of the fail data that embodiments of the invention provide, when the full dose pushed information getting is sent to subscriber equipment, obtain abnormal pushed information simultaneously, and after all pushed information are all sent completely, by this abnormal pushed information filtering from full dose pushed information, solve pushed information and occurred continuously when abnormal, there will be and connect abnormal and interrupt and cannot receive the problem of error code, improved the propelling movement success rate of pushed information.Meanwhile, can improve the operating efficiency of terminal.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can complete by the relevant hardware of program command, aforesaid program can be stored in a computer read/write memory medium, this program, when carrying out, is carried out the step that comprises said method embodiment; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.