Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing, and obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
Please refer to Fig. 1, it shows the related a kind of structural representation of implementing environment of the embodiment of the invention.This enforcement environment is a data treatment system, and this data handling system comprises first electronic equipment 010 and second electronic equipment 020.
First electronic equipment 010 can be the electronic equipment such as mobile phone, panel computer or E-book reader, first electronic equipment 010 can be connected with second electronic equipment 020 by cable network or wireless network, thereby realizes that first electronic equipment 010 sends the purpose of data and request to second electronic equipment 020;
Second electronic equipment 020 is can be electronic equipment such as TV, desktop computer and notebook, second electronic equipment 020 can be connected with first electronic equipment 010 by cable network or wireless network, thereby realize to receive data and request that first electronic equipment 010 sends, and the purpose of data being handled according to the request that receives.
Embodiment one
Please refer to Fig. 2, it shows the method flow diagram of the data processing method that the embodiment of the invention one provides.Present embodiment mainly is applied to enforcement environment shown in Figure 1 with this data processing method and illustrates.This data processing method comprises:
Step 101, first electronic equipment send the associated data of tentation data, tentation data and handle first request instruction to the second electronic equipment of tentation data;
When the user wants the data in first electronic equipment are sent to second electronic equipment when handling, the user can send the associated data of tentation data, tentation data and handle first request instruction to the second electronic equipment of tentation data by first electronic equipment.
Step 102, second electronic equipment receives and buffer memory tentation data and associated data, and handles tentation data according to first request instruction;
Step 103, first electronic equipment sends second all or part of request instruction to the second electronic equipment of handling associated data;
When the user wants the associated data of tentation data all or part of is sent to second electronic equipment when handling, first electronic equipment can send second all or part of request instruction to the second electronic equipment of handling associated data to second electronic equipment.
Step 104, second electronic equipment receive the second all or part of request instruction of the processing associated data of first electronic equipment transmission;
Step 105, second electronic equipment read associated data all or part of of buffer memory, and handle the data that read according to second request instruction.
After second electronic equipment receives the data cached second all or part of request instruction of processing, second electronic equipment can read associated data all or part of of buffer memory, and directly handles this data according to second request instruction after reading data.
In sum, the data processing method that present embodiment provides, by associated data that sends tentation data, tentation data and first request instruction to the second electronic equipment of handling tentation data, make second electronic equipment receive and buffer memory tentation data and associated data, and handle tentation data according to first request instruction; And, make second electronic equipment read the data all or part of and that processing reads according to second request instruction of the associated data of buffer memory by sending second all or part of request instruction to the second electronic equipment of handling associated data; Solved when the user constantly selects different pictures to show, sent the low problem of picture display efficiency in second electronic equipment that the shared time of every pictures causes owing to the user; Reach second electronic equipment and can directly from the data of local cache, directly handle request msg, thereby improved the effect of data-handling efficiency.
Embodiment two
Please refer to Fig. 3, it shows the method flow diagram of the data processing method that the embodiment of the invention two provides.Present embodiment mainly is applied to enforcement environment shown in Figure 1 with this data processing method and illustrates.This data processing method comprises:
Step 201 sends first request instruction to the second electronic equipment of handling tentation data;
Present embodiment is pictures with data, also promptly is sent in second electronic equipment with the picture that will store in first electronic equipment and is shown as example.Because first electronic equipment can be stored at least one pictures, every pictures has a unique filename in the picture tabulation, and the picture in the picture tabulation all can be according to a definite sequence such as time sequencing, modes such as picture size sort, so when first electronic equipment is stored picture, first electronic equipment can distribute a serial number ID for every pictures according to ordering, also be that each filename all can corresponding unique serial number ID, so when the user wants the predetermined pictures in the picture tabulation is sent to second electronic equipment when showing, first electronic equipment can receive the demonstration request that comprises the predetermined pictures filename of user's input, and after receiving the demonstration request, send first request instruction to the second electronic equipment that comprises the predetermined pictures filename.
Step 202, second electronic equipment detect whether to comprise tentation data in data cached, and feed back NACK messages to the first electronic equipment for after not comprising tentation data when testing result;
After the request of receiving of second electronic equipment showed first request instruction of predetermined pictures, second electronic equipment can detect whether comprise predetermined pictures in the buffer memory picture.Because when comprising predetermined pictures in the buffer memory picture of second electronic equipment, second electronic equipment can directly show this predetermined pictures; And when not comprising predetermined pictures in the buffer memory picture of second electronic equipment, second electronic equipment need ask first electronic equipment to send predetermined pictures, so when second electronic equipment detects when not comprising predetermined pictures in the buffer memory picture, second electronic equipment can feed back NACK messages.When reality realizes, second electronic equipment can detect whether comprise in the buffer memory picture tabulation with first request instruction in the corresponding ID of filename, if testing result, then illustrates the buffer memory picture of second electronic equipment for comprising and comprises predetermined pictures in tabulating, otherwise then do not comprise.
Step 203, first electronic equipment receive the NACK messages of second electronic equipment feedback, thereby send tentation data to the second electronic equipment;
First electronic equipment receives the NACK messages of second electronic equipment feedback, the predetermined pictures that does not exist request to show in the buffer memory picture in second electronic equipment is described, so first electronic equipment can send predetermined pictures to the second electronic equipment.When reality realizes, because it is corresponding one by one to comprise the filename of every pictures and ID and filename and ID in the picture of storing in first electronic equipment tabulation, so first electronic equipment can be sent to second electronic equipment by wired or wireless network with the serial number ID and the image content of predetermined pictures.
What need supplementary notes is, when reality realizes, first electronic equipment can send predetermined pictures to the second electronic equipment earlier, and then transmission shows first request instruction to the second electronic equipment of predetermined pictures, accordingly, second electronic equipment can receive predetermined pictures earlier, and then receives first request instruction that shows predetermined pictures, and after receiving first request instruction, showing predetermined pictures according to first request instruction, present embodiment does not repeat them here.
Step 204, first electronic equipment generates data list to be sent;
When first electronic equipment sent predetermined pictures to the second electronic equipment, first electronic equipment can generate a picture tabulation to be sent simultaneously.Wherein, picture tabulation to be sent comprises before the predetermined pictures and common n pictures afterwards or n pictures before the predetermined pictures or the n pictures after the predetermined pictures; And the picture in predetermined pictures and the picture to be sent tabulation all is contained in the picture-storage tabulation of arranging in order.
When reality realized, first electronic equipment generated the mode of picture tabulation to be sent, can comprise:
The first, judge whether current existing picture number i equals n in the picture tabulation to be sent;
The second, when judged result is i when being not equal to n, generate picture tabulation to be sent according to preordering method.
When first electronic equipment judges that when obtaining that current existing picture number is not equal to n in the picture tabulation to be sent, first electronic equipment can generate picture tabulation to be sent according to preordering method.
When reality realized, first electronic equipment generated the method that picture to be sent is tabulated according to preordering method, can comprise:
A, if i is when having non-selected picture before odd number and the predetermined pictures, select to be arranged in the picture-storage tabulation before the predetermined pictures, a nearest i+1 picture of tabulating of non-selected picture middle distance predetermined pictures also as picture to be sent;
It is example as first pictures in the picture tabulation to be sent that present embodiment is selected predetermined pictures picture afterwards with first electronic equipment, when first electronic equipment detects that existing picture number is odd number in the picture to be sent tabulation, illustrate that this moment, first electronic equipment can select a pictures as the picture in the picture tabulation to be sent in the non-selected picture before predetermined pictures, so whether first electronic equipment exists non-selected picture before can detecting predetermined pictures, thereby when having not selected picture, select to be positioned in the picture-storage tabulation before the predetermined pictures, next pictures during the nearest pictures of also non-selected picture middle distance predetermined pictures is tabulated as picture to be sent.
B, if i is when not having non-selected picture before odd number and the predetermined pictures, select i+1 picture after the predetermined pictures, during also nearest one of non-selected picture middle distance predetermined pictures tabulates as picture to be sent;
Existing picture number is an odd number in the picture tabulation to be sent when first electronic equipment detects, and when not having non-selected picture before the predetermined pictures, first electronic equipment can select to be arranged in the picture-storage tabulation after the predetermined pictures, the nearest pictures of non-selected picture middle distance predetermined pictures next pictures of tabulating also as picture to be sent.
C, if i is when having non-selected picture after even number and the predetermined pictures, select i+1 picture after the predetermined pictures, during also nearest one of non-selected picture middle distance predetermined pictures tabulates as picture to be sent;
Yet, when first electronic equipment detects that existing picture number is even number in the picture to be sent tabulation, illustrate that this moment, first electronic equipment can select a pictures as the picture in the picture tabulation to be sent in the non-selected picture after predetermined pictures, so whether first electronic equipment exists non-selected picture after can detecting predetermined pictures, thereby when having not selected picture, select to be positioned in the picture-storage tabulation after the predetermined pictures, next pictures during the nearest pictures of also non-selected picture middle distance predetermined pictures is tabulated as picture to be sent.
D, if i is when not having non-selected picture after even number and the predetermined pictures, select i+1 picture before the predetermined pictures, during also nearest one of non-selected picture middle distance predetermined pictures tabulates as picture to be sent;
Existing picture number is an even number in the picture tabulation to be sent when first electronic equipment detects, and when not having non-selected picture before the predetermined pictures, first electronic equipment can select to be arranged in the picture-storage tabulation before the predetermined pictures, the nearest pictures of non-selected picture middle distance predetermined pictures next pictures of tabulating also as picture to be sent.
Through after the above-mentioned selection, when the picture number i in the picture tabulation to be sent reaches n, the picture first electronic equipment can be tabulated the picture of having selected as picture to be sent in, thus generate picture tabulation to be sent.
What need supplementary notes is, when reality realized, first electronic equipment can also be selected first pictures of the picture before the predetermined pictures in tabulating as picture to be sent, and its implementation and above-mentioned implementation are similar, do not repeat them here.
Step 205, second electronic equipment receives and the buffer memory tentation data, and is receiving tentation data feedback acknowledgment information to the first electronic equipment afterwards;
Step 206, the first electronic equipment confirmation of receipt information, and send first request instruction to the second electronic equipment once more;
After first electronic equipment receives first confirmation, first electronic equipment illustrates that this moment, second electronic equipment successfully received predetermined pictures, so can send first request instruction to the second electronic equipment that request second electronic equipment shows predetermined pictures once more.
Step 207, second electronic equipment is handled tentation data according to first request instruction that receives;
Owing to be cached with predetermined pictures in second electronic equipment, so after second electronic equipment received first request instruction, second electronic equipment can be according to the predetermined pictures in the first request instruction display buffer.
When reality realizes, after second electronic equipment receives first request instruction, second electronic equipment can read the image content of the ID corresponding with filename according to the filename in first request instruction from the tabulation of buffer memory picture, thereby shows this predetermined pictures after reading the image content of predetermined pictures.
What need supplementary notes is, when reality realizes, second electronic equipment has successfully shown predetermined pictures in order to inform first electronic equipment, after second electronic equipment shows predetermined pictures according to first request instruction, second electronic equipment can send confirmation to the first electronic equipment, and present embodiment is not done qualification to this.
Step 208, first electronic equipment send data to the second electronic equipment in the data list to be sent;
Send first request instruction to the second electronic equipment that shows predetermined pictures at first electronic equipment, thereby make second electronic equipment according to after first request instruction demonstration predetermined pictures, first electronic equipment can be sent to second electronic equipment with the picture in the picture tabulation to be sent.
Wherein, related picture comprises before the predetermined pictures and common n pictures afterwards or common n pictures before the predetermined pictures or the common n pictures after the predetermined pictures.Simultaneously, because first electronic equipment has generated a picture tabulation to be sent, and picture tabulation to be sent comprises before the predetermined pictures and common n pictures afterwards or common n pictures before the predetermined pictures or the common n pictures after the predetermined pictures, so first electronic equipment sends related picture to the second electronic equipment, also promptly send picture to the second electronic equipment in the picture tabulation to be sent.
When reality realized, first electronic equipment can be sent to second electronic equipment with the j pictures in the picture tabulation to be sent one by one according to the sequencing between each picture in the picture tabulation to be sent.Wherein, j is the positive integer more than or equal to 1.
Such as, when n is 6, the serial number ID of the predetermined pictures that the first electronic equipment current request shows is q, and the serial number of the picture tabulation to be sent that first electronic equipment generates is respectively q+1, q-1, q+2, q-2, q+3, and q-3, then first electronic equipment can be successively be sent to second electronic equipment with the image content of said sequence correspondence, sends schematic diagram and please refer to Fig. 4.
Need to prove, after second electronic equipment successfully shows predetermined pictures and sends confirmation to the first electronic equipment, first electronic equipment can send picture to the second electronic equipment in the picture tabulation to be sent after receiving the confirmation information, present embodiment does not repeat them here.
Step 209, the data in the data list to be sent that second electronic equipment receives and buffer memory first electronic equipment sends;
After first electronic equipment sent picture to the second electronic equipment in the picture to be sent tabulation, second electronic equipment can receive the picture in the picture tabulation to be sent accordingly; And owing to user this moment do not want these pictures are shown in second electronic equipment, so the picture in the picture tabulation to be sent that second electronic equipment can buffer memory receives.
Wherein, the picture that second electronic equipment can come buffer memory to receive by the mode of creating a cache list for the picture that receives, the serial number ID of the every pictures of storage and corresponding image content in the cache list, thereby make second electronic equipment to call corresponding image content, and image content is shown according to serial number ID.Certainly, can also come buffer memory by other modes when reality realizes, present embodiment is not done qualification to this.
Step 210, first electronic equipment sends second all or part of request instruction to the second electronic equipment of handling associated data;
After second electronic equipment successfully shows predetermined pictures, the related picture of predetermined pictures all or part of is sent to second electronic equipment when showing in the user wants first electronic equipment, and first electronic equipment can send second all or part of request instruction to the second electronic equipment that shows related picture.
Such as, the user want with before the predetermined pictures in first electronic equipment and common k pictures afterwards be sent to second electronic equipment when showing, first electronic equipment can send and comprise before the predetermined pictures and second request instruction to the second electronic equipment of the filename of common k pictures afterwards.Certainly, when reality realized, first electronic equipment can also send second request instruction to the second electronic equipment that shows the pictures in the related picture, and present embodiment does not repeat them here.
Step 211, second electronic equipment receives the second all or part of request instruction of handling associated data;
Step 212, second electronic equipment read associated data all or part of of buffer memory, and handle the data that read according to second request instruction after reading data.
Because before second electronic equipment receives second request instruction, picture in the picture tabulation to be sent that second electronic equipment has received and buffer memory first electronic equipment sends, so in order to prevent that first electronic equipment from repeating to send same pictures to the second electronic equipment, thereby improve the efficient that second electronic equipment Shows Picture, after second electronic equipment receives the second all or part of request instruction that shows related picture, second electronic equipment can read related picture all or part of of buffer memory, and directly shows related picture after reading related picture all or part of.
Yet, when second electronic equipment reads the picture that shows less than the second request instruction request, second electronic equipment can send feedback information to the first electronic equipment that does not comprise the picture of second request instruction request demonstration in the expression buffer memory picture, show that again present embodiment does not repeat them here after asking first electronic equipment to send corresponding picture to the second electronic equipment.
In sum, the data processing method that present embodiment provides, by associated data that sends tentation data, tentation data and first request instruction to the second electronic equipment of handling tentation data, make second electronic equipment receive and buffer memory tentation data and associated data, and handle tentation data according to first request instruction; And, make second electronic equipment read the data all or part of and that processing reads according to second request instruction of the associated data of buffer memory by sending second all or part of request instruction to the second electronic equipment of handling associated data.Solved when the user constantly selects different pictures to show, sent the low problem of picture display efficiency in second electronic equipment that the shared time of every pictures causes owing to the user; Reach second electronic equipment and can directly from the data of local cache, directly handle request msg, thereby improved the effect of data-handling efficiency.Simultaneously, in the present embodiment, utilize second electronic equipment to handle between the data of two request processing, receive and the buffer memory data relevant with tentation data, reached when second electronic equipment and received when handling associated data all or part of, second electronic equipment can directly call data from data cached, thereby improves the effect of data-handling efficiency.
Embodiment three
Please refer to Fig. 5, it shows the method flow diagram of the data processing method that the embodiment of the invention three provides.Present embodiment mainly is applied to enforcement environment shown in Figure 1 with this data processing method and illustrates.Present embodiment is with the different of the foregoing description, before this enforcement sends data to second electronic equipment, first electronic equipment all can be sent out a query requests earlier, thereby just sends when only not comprising these data in second electronic equipment, has improved data processing efficiency.This data processing method can comprise:
Step 301 sends first request instruction to the second electronic equipment of handling described tentation data;
Present embodiment is pictures with data still, also promptly is sent in second electronic equipment with the picture that will store in first electronic equipment and is shown as example.When the user wants the predetermined pictures in the tabulation of the picture of first electronic equipment is sent to second electronic equipment when showing, first electronic equipment can receive the demonstration request that comprises the predetermined pictures filename of user's input, and after receiving the demonstration request, send first request instruction to the second electronic equipment that comprises the predetermined pictures filename.
Step 302, second electronic equipment detect whether to comprise tentation data in data cached, and feed back NACK messages to the first electronic equipment for after not comprising tentation data when testing result;
After the request of receiving of second electronic equipment shows first request instruction of predetermined pictures, second electronic equipment can detect whether comprise predetermined pictures in the buffer memory picture, and is time feedback NACK messages to the first electronic equipment that do not comprise predetermined pictures when testing result.When reality realizes, second electronic equipment can detect whether comprise in the buffer memory picture tabulation with first request instruction in the corresponding ID of filename, if testing result, then illustrates the buffer memory picture of second electronic equipment for comprising and comprises predetermined pictures in tabulating, otherwise then do not comprise.
Step 303, first electronic equipment receive the NACK messages of second electronic equipment feedback, thereby send tentation data to the second electronic equipment;
First electronic equipment receives the NACK messages of second electronic equipment feedback, the predetermined pictures that does not exist request to show in the buffer memory picture in second electronic equipment is described, so first electronic equipment can send predetermined pictures to the second electronic equipment.
What need supplementary notes is, when reality realizes, first electronic equipment can send predetermined pictures to the second electronic equipment earlier, and then transmission shows first request instruction to the second electronic equipment of predetermined pictures, accordingly, second electronic equipment can receive predetermined pictures earlier, and then receives first request instruction that shows predetermined pictures, and after receiving first request instruction, showing predetermined pictures according to first request instruction, present embodiment does not repeat them here.
Step 304, first electronic equipment generates data list to be sent;
When first electronic equipment sent predetermined pictures to the second electronic equipment, first electronic equipment can generate a picture tabulation to be sent simultaneously.Wherein, picture tabulation to be sent comprises before the predetermined pictures and common n pictures afterwards or n pictures before the predetermined pictures or the n pictures after the predetermined pictures; And the picture in predetermined pictures and the picture to be sent tabulation all is contained in the picture-storage tabulation of arranging in order.
When reality realized, first electronic equipment generated the mode of picture tabulation to be sent, can comprise:
The first, judge whether current existing picture number i equals n in the picture tabulation to be sent;
The second, when judged result is i when being not equal to n, generate picture tabulation to be sent according to preordering method.
When first electronic equipment judges that when obtaining that current existing picture number is not equal to n in the picture tabulation to be sent, first electronic equipment can generate picture tabulation to be sent according to preordering method.
When reality realized, first electronic equipment generated the method that picture to be sent is tabulated according to preordering method, can comprise:
A, if i is when having non-selected picture before odd number and the predetermined pictures, select to be arranged in the picture-storage tabulation before the predetermined pictures, a nearest i+1 picture of tabulating of non-selected picture middle distance predetermined pictures also as picture to be sent;
B, if i is when not having non-selected picture before odd number and the predetermined pictures, select i+1 picture after the predetermined pictures, during also nearest one of non-selected picture middle distance predetermined pictures tabulates as picture to be sent;
C, if i is when having non-selected picture after even number and the predetermined pictures, select i+1 picture after the predetermined pictures, during also nearest one of non-selected picture middle distance predetermined pictures tabulates as picture to be sent;
D, if i is when not having non-selected picture after even number and the predetermined pictures, select i+1 picture before the predetermined pictures, during also nearest one of non-selected picture middle distance predetermined pictures tabulates as picture to be sent;
Through after the above-mentioned selection, when the picture number i in the picture tabulation to be sent reaches n, the picture first electronic equipment can be tabulated the picture of having selected as picture to be sent in, thus generate picture tabulation to be sent.
What need supplementary notes is, when reality realized, first electronic equipment can also be selected first pictures of the picture before the predetermined pictures in tabulating as picture to be sent, and its implementation and above-mentioned implementation are similar, do not repeat them here.
Step 305, second electronic equipment receives and the buffer memory tentation data, and is receiving tentation data feedback acknowledgment information to the first electronic equipment afterwards;
Step 306, the first electronic equipment confirmation of receipt information, and send first request instruction to the second electronic equipment once more;
After first electronic equipment receives first confirmation, first electronic equipment illustrates that this moment, second electronic equipment successfully received predetermined pictures, so can send first request instruction to the second electronic equipment that request second electronic equipment shows predetermined pictures once more.
Step 307, second electronic equipment is handled tentation data according to first request instruction that receives;
Owing to be cached with predetermined pictures in second electronic equipment, so after second electronic equipment received first request instruction, second electronic equipment can be according to the predetermined pictures in the first request instruction display buffer.
What need supplementary notes is, for when reality realizes, second electronic equipment has successfully shown predetermined pictures in order to inform first electronic equipment, after second electronic equipment shows predetermined pictures according to first request instruction, second electronic equipment can send confirmation to the first electronic equipment, and present embodiment is not done qualification to this.
Step 308, first electronic equipment send data query request to the second electronic equipment;
Send first request instruction to the second electronic equipment that shows predetermined pictures at first electronic equipment, thereby make second electronic equipment according to after first request instruction demonstration predetermined pictures, first electronic equipment can be sent to second electronic equipment with the picture in the picture tabulation to be sent.
Wherein, related picture comprises before the predetermined pictures and common n pictures afterwards or common n pictures before the predetermined pictures or the common n pictures after the predetermined pictures.Simultaneously, because first electronic equipment has generated a picture tabulation to be sent, and picture tabulation to be sent comprises before the predetermined pictures and common n pictures afterwards or common n pictures before the predetermined pictures or the common n pictures after the predetermined pictures, so first electronic equipment sends related picture to the second electronic equipment, also promptly send picture to the second electronic equipment in the picture tabulation to be sent.
Yet, for fear of first electronic equipment with in second electronic equipment the picture of buffer memory be sent to second electronic equipment once more, before first electronic equipment sent picture to the second electronic equipment in the picture to be sent tabulation, first electronic equipment can send query requests to the second the electronic equipment whether picture that is used for inquiring about the second electronic equipment buffer memory comprises the picture in the picture tabulation to be sent.
When reality realizes, before first electronic equipment sent j pictures to the second electronic equipment in the picture to be sent tabulation, first electronic equipment can send query requests to the second electronic equipment whether the buffer memory picture tabulation that is used for inquiring about second electronic equipment comprises the j pictures in the picture tabulation to be sent earlier.
Need to prove, after second electronic equipment successfully shows predetermined pictures and sends confirmation to the first electronic equipment, first electronic equipment can send data query request to the second electronic equipment after receiving the confirmation information, present embodiment does not repeat them here.
Step 309, second electronic equipment be according to the data that whether comprise in the data query request query caching data in the data list to be sent, and send first feedback information or second feedback information according to Query Result;
Because it is identical with common n pictures afterwards or the common n pictures before the predetermined pictures or the common n pictures after the predetermined pictures before the predetermined pictures with picture during picture to be sent is tabulated, so after second electronic equipment receives the data query request, can be according to the picture that whether comprises in the data query request query caching picture in the picture to be sent tabulation, and send first feedback information or second feedback information according to Query Result.
This that is to say, before first electronic equipment sends j pictures to the second electronic equipment in the picture to be sent tabulation, first electronic equipment can send and be used for picture query request to the second electronic equipment whether the query caching picture comprises the j pictures in the picture tabulation to be sent, make second electronic equipment according to the j pictures that whether comprises in the picture query request query caching picture in the tabulation to be sent, j is the positive integer more than or equal to 1.
Wherein, first feedback information represents not comprise in the buffer memory picture of second electronic equipment j pictures in the picture tabulation to be sent, and second feedback information represents to comprise in the buffer memory picture of second electronic equipment j pictures in the picture tabulation to be sent.
Step 310 when first electronic equipment receives first feedback information, sends data to the second electronic equipment in the data list to be sent;
When first electronic equipment receives first feedback information, first electronic equipment j pictures that does not comprise in the buffer memory picture of second electronic equipment in the picture tabulation to be sent is described, so this moment, can send j pictures to the second electronic equipment in the picture tabulation to be sent.
Need to prove, when first electronic equipment receives second feedback information, the j pictures that has comprised in the buffer memory picture of second electronic equipment in the picture tabulation to be sent is described, so in order to save the spatial cache of second electronic equipment, and improve the picture display speed of second electronic equipment, first electronic equipment can send j+1 pictures to the second electronic equipment in the picture tabulation to be sent, will repeat no more this present embodiment.
Step 311, second electronic equipment receive the data in the also buffer memory data list to be sent;
After first electronic equipment sends picture to the second electronic equipment in the picture to be sent tabulation, second electronic equipment can receive the picture in the picture tabulation to be sent accordingly, yet, owing to do not want user at this moment the picture in the picture tabulation to be sent is shown in second electronic equipment, so the picture that buffer memory is received at second electronic equipment.
Step 312, first electronic equipment sends second all or part of request instruction to the second electronic equipment of handling associated data;
After second electronic equipment successfully shows predetermined pictures, the related picture of predetermined pictures all or part of is sent to second electronic equipment when showing in the user wants first electronic equipment, and first electronic equipment can send second all or part of request instruction to the second electronic equipment that shows related picture.
Step 313, second electronic equipment receives the second all or part of request instruction of handling associated data;
Step 314, second electronic equipment read associated data all or part of of buffer memory, and handle the data that read according to second request instruction after reading data.
Because before second electronic equipment receives second request instruction, picture in the picture tabulation to be sent that second electronic equipment has received and buffer memory first electronic equipment sends, so in order to prevent that first electronic equipment from repeating to send same pictures to the second electronic equipment, thereby improve the efficient that second electronic equipment Shows Picture, after second electronic equipment receives the second all or part of request instruction that shows related picture, second electronic equipment can read related picture all or part of of buffer memory, and directly shows related picture after reading related picture all or part of.
Yet, when second electronic equipment reads the picture that shows less than the second request instruction request, second electronic equipment can send feedback information to the first electronic equipment that does not comprise the picture of second request instruction request demonstration in the expression buffer memory picture, show that again present embodiment does not repeat them here after asking first electronic equipment to send corresponding picture to the second electronic equipment.
In sum, the data processing method that present embodiment provides, by associated data that sends tentation data, tentation data and first request instruction to the second electronic equipment of handling tentation data, make second electronic equipment receive and buffer memory tentation data and associated data, and handle tentation data according to first request instruction; And, make second electronic equipment read the data all or part of and that processing reads according to second request instruction of the associated data of buffer memory by sending second all or part of request instruction to the second electronic equipment of handling associated data.Solved when the user constantly selects different pictures to show, sent the low problem of picture display efficiency in second electronic equipment that the shared time of every pictures causes owing to the user; Reach second electronic equipment and can directly from the data of local cache, directly handle request msg, thereby improved the effect of data-handling efficiency.Simultaneously, before sending data to second electronic equipment at first electronic equipment, send query requests to the second electronic equipment earlier, inquire when not comprising these data in data cached thereby have only when second electronic equipment, first electronic equipment just can send this data to the second electronic equipment, reached the spatial cache of saving second electronic equipment, and the effect of data-handling efficiency is provided.
Embodiment four
Please refer to Fig. 6, it shows the block diagram of the data sending device that the embodiment of the invention four provides, and this data sending device can realize becoming the part in the electronic equipment such as mobile phone, panel computer or E-book reader.This data sending device can comprise: first sending module 410 and second sending module 420;
First sending module 410, be used to send the associated data of tentation data, described tentation data and handle first request instruction to the second electronic equipment of described tentation data, so that described second electronic equipment receives and described tentation data of buffer memory and described associated data, and handle described tentation data according to described first request instruction;
Second sending module 420, be used to send handle described associated data the second all or part of request instruction to described second electronic equipment, so that described second electronic equipment reads described associated data all or part of of buffer memory and handle the data that read according to described second request instruction.
In sum, the data sending device that present embodiment provides, by associated data that sends tentation data, tentation data and first request instruction to the second electronic equipment of handling tentation data, make second electronic equipment receive and buffer memory tentation data and associated data, and handle tentation data according to first request instruction; And, make second electronic equipment read the data all or part of and that processing reads according to second request instruction of the associated data of buffer memory by sending second all or part of request instruction to the second electronic equipment of handling associated data.Solved when the user constantly selects different pictures to show, sent the low problem of picture display efficiency in second electronic equipment that the shared time of every pictures causes owing to the user; Reach second electronic equipment and can directly from the data of local cache, directly handle request msg, thereby improved the effect of data-handling efficiency.
Embodiment five
Please refer to Fig. 7, it shows the block diagram of the data sending device that the embodiment of the invention five provides, and this data sending device can realize becoming the part in the electronic equipment such as mobile phone, panel computer or E-book reader.As the more preferred embodiment that provides based on the foregoing description, in the present embodiment,
First sending module 410 can comprise: first transmitting element 411, tabulation generation unit 412 and second transmitting element 413;
First transmitting element 411, first request instruction that sends described tentation data and handle described tentation data is to described second electronic equipment, so that described second electronic equipment is handled described tentation data according to described first request instruction;
Tabulation generation unit 412 is used to generate data list to be sent, and described data list to be sent comprises before the described tentation data and/or common n data afterwards;
Second transmitting element 413, the data that are used for sending described data list to be sent are to described second electronic equipment, so that described second electronic equipment receives the data in the also described data list to be sent of buffer memory;
Wherein, described n is the integer more than or equal to 1.
Preferably, please refer to Fig. 8, described first transmitting element 411 comprises: first sends subelement 510, message pick-up subelement 520, the second transmission subelement 530 and the 3rd transmission subelement 540;
First sends subelement 510, be used to send handle described tentation data first request instruction to described second electronic equipment, so that described second electronic equipment feeds back NACK messages after not comprising described tentation data in data cached detecting;
Message pick-up subelement 520 is used to receive the described NACK messages that described second electronic equipment feeds back;
Second sends subelement 530, is used to send described tentation data to described second electronic equipment, so that described second electronic equipment receives and the described tentation data of buffer memory, and is receiving described tentation data feedback acknowledgment information afterwards;
The 3rd sends subelement 540, is used for sending once more described first request instruction to described second electronic equipment, so that described second electronic equipment is handled described tentation data according to described first request instruction after receiving described confirmation.
Preferably, please refer to Fig. 9, described first transmitting element comprises that the 4th sends subelement 550 and the 5th transmission subelement 560;
The 4th sends subelement 550, is used to send described tentation data to described second electronic equipment, so that described second electronic equipment receives and the described tentation data of buffer memory;
The 5th sends subelement 560, is used to send first request instruction of the described tentation data of processing to described second electronic equipment, so that described second electronic equipment is handled described tentation data according to described first request instruction.
Preferably, please refer to Figure 10, described tabulation generation unit 412 comprises: data judgment sub-unit 610, first unit 630 that bears fruit, unit 620 and second that bears fruit;
Described data judgment sub-unit 610 is used for judging whether the current existing data number i of described data list to be sent equals n;
Described first unit 620 that bears fruit, the judged result that is used for when described data judgment sub-unit 610 is that described i is not equal to n, and described i is when having non-selected data before the odd number, described tentation data, select before the described tentation data, also nearest one of the described tentation data of non-selected data middle distance is as i+1 data in the described data list to be sent;
Described first unit 620 that bears fruit, the judged result that also is used for when described data judgment sub-unit 610 is that described i is not equal to n, and described i is when not having non-selected data before the odd number, described tentation data, select after the described tentation data, also nearest one of the described tentation data of non-selected data middle distance is as i+1 data in the described data list to be sent;
Described first unit 620 that bears fruit, the judged result that also is used for when described data judgment sub-unit 610 is that described i is not equal to n, and described i is when having non-selected data after the even number, described tentation data, select after the described tentation data, also nearest one of the described tentation data of non-selected data middle distance is as i+1 data in the described data list to be sent;
Described first unit 620 that bears fruit, the judged result that also is used for when described data judgment sub-unit 610 is that described i is not equal to n, and described i is when not having non-selected data after the even number, described tentation data, select before the described tentation data, also nearest one of the described tentation data of non-selected data middle distance is as i+1 data in the described data list to be sent;
Described second unit 630 that bears fruit, the judged result that is used for when described data judgment sub-unit 610 is that described i equals n, common n data then will having selected are as the data in the described data list to be sent, thereby generate described data list to be sent.
Preferably, described first sending module 410 also comprises: the 3rd transmitting element 414,
The 3rd transmitting element 414, be used to send the data query request to described second electronic equipment, described data query request is used for inquiring about described data cached j the data that whether comprise in the described data list to be sent of described second electronic equipment, so that described second electronic equipment is inquired about described j data that whether comprise in data cached in the described data list to be sent after receiving described data query request, and send first feedback information or second feedback information according to Query Result, described first feedback information represents not comprise in described second electronic equipment data cached j data in the described data list to be sent, and described second feedback information represents to comprise in described second electronic equipment data cached j data in the described data list to be sent;
Described second transmitting element 413 also is used for if receive described first feedback information, then sends j data described second electronic equipment extremely in the described data list to be sent;
Described second transmitting element 413 also is used for if receive described second feedback information, then sends j+1 data described second electronic equipment extremely in the described data list to be sent; Wherein, described j is the positive integer smaller or equal to n.
In sum, the data sending device that present embodiment provides, by associated data that sends tentation data, tentation data and first request instruction to the second electronic equipment of handling tentation data, make second electronic equipment receive and buffer memory tentation data and associated data, and handle tentation data according to first request instruction; And, make second electronic equipment read the data all or part of and that processing reads according to second request instruction of the associated data of buffer memory by sending second all or part of request instruction to the second electronic equipment of handling associated data.Solved when the user constantly selects different pictures to show, sent the low problem of picture display efficiency in second electronic equipment that the shared time of every pictures causes owing to the user; Reach second electronic equipment and can directly from the data of local cache, directly handle request msg, thereby improved the effect of data-handling efficiency.Simultaneously, in the present embodiment, utilize second electronic equipment to handle between the data of two request processing, receive and the buffer memory data relevant with tentation data, reached when second electronic equipment and received when handling associated data all or part of, second electronic equipment can directly call data from data cached, thereby improves the effect of data-handling efficiency.
Embodiment six
Please refer to Figure 11, it shows the block diagram of the data processing equipment that the embodiment of the invention six provides, and this data processing equipment can realize becoming the part in the electronic equipment of the electronic equipment such as TV, desktop computer and notebook.This data processing equipment can comprise: first receiver module 710, data cache module 720, second receiver module 730, data read module 740 and data processing module 750;
First receiver module 710 is used to receive the associated data of the tentation data that first electronic equipment sends, described tentation data and handles first request instruction of described tentation data, and handles described tentation data according to described first request instruction;
Data cache module 720 is used for described tentation data and described associated data that described first receiver module 710 of buffer memory receives;
Second receiver module 730 is used to receive the second all or part of request instruction of the described associated data of processing that described first electronic equipment sends;
Data read module 740 is used to read described associated data all or part of of buffer memory;
Data processing module 750 is used for handling the data that read according to described second request instruction.
In sum, the data processing equipment that present embodiment provides, by associated data that sends tentation data, tentation data and first request instruction to the second electronic equipment of handling tentation data, make second electronic equipment receive and buffer memory tentation data and associated data, and handle tentation data according to first request instruction; And, make second electronic equipment read the data all or part of and that processing reads according to second request instruction of the associated data of buffer memory by sending second all or part of request instruction to the second electronic equipment of handling associated data.Solved when the user constantly selects different pictures to show, sent the low problem of picture display efficiency in second electronic equipment that the shared time of every pictures causes owing to the user; Reach second electronic equipment and can directly from the data of local cache, directly handle request msg, thereby improved the effect of data-handling efficiency.
Embodiment seven
Please refer to Figure 12, it shows the block diagram of the data processing equipment that the embodiment of the invention seven provides, and this data processing equipment can realize becoming the part in the electronic equipment of the electronic equipment such as TV, desktop computer and notebook.As the more preferred embodiment that provides based on the foregoing description, in the present embodiment,
Described associated data comprises before the described tentation data and/or common n data afterwards, and described first receiver module 710 comprises: first receiving element 711, data processing unit 712, second receiving element 713;
First receiving element 711 is used to receive described first electronic equipment described tentation data that sends and first request instruction of handling described tentation data;
Data processing unit 712 is used for handling described tentation data according to described first request instruction;
Second receiving element 713, be used for receiving the data of the data list to be sent that described first electronic equipment sends, the data in the described data list to be sent comprise before the described tentation data of arranging in order that described first electronic equipment generates and/or common n data afterwards;
Wherein, described n is the integer more than or equal to 1.
Preferably, please refer to Figure 13, described first receiving element 711 can comprise: first receives subelement 810, Data Detection subelement 820, the second reception subelement 830 and the 3rd reception subelement 840;
First receives subelement 810, is used to receive first request instruction of the described tentation data of processing that described first electronic equipment sends;
Data Detection subelement 820, be used for detecting the data cached described tentation data that whether comprises, and when testing result be described feedback NACK messages when not comprising described tentation data in data cached so that described first electronic equipment sends described tentation data after receiving described NACK messages;
Second receives subelement 830, be used to receive the described tentation data that described first electronic equipment sends, and receiving after the described tentation data feedback acknowledgment information to described first electronic equipment, so that described first electronic equipment sends described first request instruction once more after receiving described confirmation;
The 3rd receives subelement 840, is used to receive described first request instruction that described first electronic equipment sends once more.
Preferably, please refer to Figure 14, described first receiving element 711 can comprise: the 4th receives subelement 850 and the 5th receives subelement 860;
The 4th receives subelement 850, is used to receive the described tentation data that described first electronic equipment sends;
The 5th receives subelement 860, is used to receive first request instruction of the described tentation data of processing that described first electronic equipment sends.
Preferably, described first receiver module 710 also comprises: request receiving element 714, data query unit 715, first feedback unit 716 and second feedback unit 717;
Request receiving element 714 is used to receive the data query request that described first electronic equipment sends, and described data query request is used for inquiring about described data cached j data that whether comprise in the described data list to be sent;
Data query unit 715 is used for inquiring about described data cached j data that whether comprise in the described data list to be sent according to the described data query request that described request receiving element 714 receives;
First feedback unit 716, be used for if the Query Result of described data query unit 715 is described data cached j data that do not comprise in the described data list to be sent, then send first feedback information to described first electronic equipment, so that described first electronic equipment sends j data in the described data list to be sent after receiving described first feedback information;
Second feedback unit 717, be used for if the Query Result of described data query unit 715 is described data cached j data that comprise in the described data list to be sent, then send second feedback information to described first electronic equipment, so that described first electronic equipment sends j+1 data in the described data list to be sent after receiving described second feedback information; Wherein, described j is the positive integer smaller or equal to n.
In sum, the data processing equipment that present embodiment provides, by associated data that sends tentation data, tentation data and first request instruction to the second electronic equipment of handling tentation data, make second electronic equipment receive and buffer memory tentation data and associated data, and handle tentation data according to first request instruction; And, make second electronic equipment read the data all or part of and that processing reads according to second request instruction of the associated data of buffer memory by sending second all or part of request instruction to the second electronic equipment of handling associated data.Solved when the user constantly selects different pictures to show, sent the low problem of picture display efficiency in second electronic equipment that the shared time of every pictures causes owing to the user; Reach second electronic equipment and can directly from the data of local cache, directly handle request msg, thereby improved the effect of data-handling efficiency.Simultaneously, in the present embodiment, utilize second electronic equipment to handle between the data of two request processing, receive and the buffer memory data relevant with tentation data, reached when second electronic equipment and received when handling associated data all or part of, second electronic equipment can directly call data from data cached, thereby improves the effect of data-handling efficiency.
Embodiment eight
Please refer to Figure 15, it shows the structural representation of the data handling system that the embodiment of the invention eight provides, and this system can comprise first electronic equipment 910 and second electronic equipment 920.Wherein, please refer to embodiment four and embodiment five, please refer to embodiment six and embodiment seven, do not repeat them here about the detailed description of second electronic equipment 920 about the detailed description of first electronic equipment 910.
In sum, the data handling system that present embodiment provides, by associated data that sends tentation data, tentation data and first request instruction to the second electronic equipment of handling tentation data, make second electronic equipment receive and buffer memory tentation data and associated data, and handle tentation data according to first request instruction; And, make second electronic equipment read the data all or part of and that processing reads according to second request instruction of the associated data of buffer memory by sending second all or part of request instruction to the second electronic equipment of handling associated data.Solved when the user constantly selects different pictures to show, sent the low problem of picture display efficiency in second electronic equipment that the shared time of every pictures causes owing to the user; Reach second electronic equipment and can directly from the data of local cache, directly handle request msg, thereby improved the effect of data-handling efficiency.Simultaneously, in the present embodiment, utilize second electronic equipment to handle between the data of two request processing, receive and the buffer memory data relevant with tentation data, reached when second electronic equipment and received when handling associated data all or part of, second electronic equipment can directly call data from data cached, thereby improves the effect of data-handling efficiency.
Need to prove: the data handling system that the foregoing description provides is when deal with data, only the division with above-mentioned each functional module is illustrated, in the practical application, can as required the above-mentioned functions distribution be finished by different functional modules, the internal structure of the equipment of being about to is divided into different functional modules, to finish all or part of function described above.In addition, the data handling system that the foregoing description provides and the method embodiment of data processing method belong to same design, and its specific implementation process sees method embodiment for details, repeats no more here.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
The all or part of step that one of ordinary skill in the art will appreciate that realization the foregoing description can be finished by hardware, also can instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.