A kind of application data transmission system and method that is applied to mobile terminal
Technical field
The present invention relates to communication technique field, particularly a kind of application data transmission system and method that is applied to mobile terminal.
Background technology
Along with the development of electronic technology, the volume of mobile terminal is more and more less of satisfying mobility, portable requirement, so the developing direction of mobile terminal is small and exquisite, frivolous.Wherein, data transmission service has become the second largest business that is only second to speech business.And browsing page, reading news and novel etc. are browsed the data transmission service of class, and the data transmission service of game, application program etc. has all become very common mobile terminal and used.
But the media management server, the receive data that manage for the server end that data are provided, to data and the mobile terminal that shows, to management, process, transmission, be all very loaded down with trivial details when showing large file.For the media management server, server end need to be transferred data to, and word, picture, audio frequency, video may be comprised in data, needing so a large amount of man-hours carries out the data preliminary treatment, and need to take a large amount of Internet resources.
Summary of the invention
For what the internal memory that solves mobile terminal in prior art and/or disposal ability difference caused, wrong problem is appearred in mobile terminal, the embodiment of the present invention has proposed a kind of data receive method and device of application program of mobile terminal.Described technical scheme is as follows:
The embodiment of the present invention has proposed a kind of data processing equipment of mobile communcations system media management server, is used for data are carried out preliminary treatment and sent to described server end, so that mobile terminal can obtain this data from described server end; Described device comprises: type-setting module, upper transmission module;
Described type-setting module is used for word and image data are carried out the preliminary treatment typesetting; Described type-setting module comprises:
The word pretreatment unit, for the word that obtains data, the spacings according between the first indentation amount of section in word and/or two style of writing words judge whether word belongs to same paragraph;
The picture pretreatment unit is used for obtaining the picture of data, and the coding of picture is changed into character string;
Merge cells is used for the node content with pretreated word and image data amalgamation generation XML form, this node content is divided into the node piecemeal, and obtains the MD5 check code of node piecemeal;
Described upper transmission module is used for then this node content piecemeal is sent to server end together with described MD5 value by described upper transmission module, so that described server end receives after this node content piecemeal by after the verification of MD5 value.
Preferred as technique scheme, described upper transmission module is by cable network or wireless network connection server end.
Preferred as technique scheme, wherein, described each node content piecemeal has predetermined frame format, and described frame format comprises that at least a plurality of data content sections for the storage data and at least one are used for the parameter sections of this frame length of storage; Wherein said data content section comprise at least for the word content section of storage word, be used for the storage picture the image content section, be used for storing audio audio content segments, be used for the video content segment of store video.
Preferred as technique scheme, described word pretreatment unit comprises:
Word extracts subelement, is used for from the extracting data word, and keeps original format when extracting;
Line-spacing obtains subelement, for the spacing that extracts from word between any two row;
The section first indentation detection sub-unit, for detection of the space in word with the first indentation amount of the section of obtaining.
Preferred as technique scheme, described picture pretreatment unit comprises:
The picture pretreatment unit is used for from the extracting data picture, and picture is recoded to obtain coded string.
The embodiment of the present invention has also proposed a kind of data processing method of mobile communcations system media management server, and described method is used for data are carried out preliminary treatment and sent to described server end, so that mobile terminal can obtain this data from described server end; Described method comprises;
Word and image data are carried out the preliminary treatment typesetting;
Node content with pretreated word and image data amalgamation generation XML form is divided into the node piecemeal with this node content, and obtains the MD5 check code of node piecemeal;
Then this node content piecemeal sends to server end together with described MD5 value by described upper transmission module, so that described server end receives after this node content piecemeal by the verification of MD5 value, and synthetic node content;
Wherein, describedly word and image data carried out the preliminary treatment typesetting comprise:
Obtain the word in data, the spacing according between the first indentation amount of section in word and/or two style of writing words judges whether word belongs to same paragraph;
Obtain the picture in data, the coding of picture is changed into character string.
Preferred as technique scheme, described media management server is by cable network or wireless network connection server end.
Preferred as technique scheme, wherein, described each node content piecemeal has predetermined frame format, and described frame format comprises that at least a plurality of data content sections for the storage data and at least one are used for the parameter sections of this frame length of storage; Wherein said data content section comprise at least for the word content section of storage word, be used for the storage picture the image content section, be used for storing audio audio content segments, be used for the video content segment of store video.
Preferred as technique scheme, describedly carry out the preliminary treatment typesetting to word and comprise:
From the extracting data word, and keep original format when extracting;
The line-spacing acquiring unit is for the spacing that extracts from word between any two row;
The section first indentation detecting unit, for detection of the space in word with the first indentation amount of the section of obtaining.
Preferred as technique scheme, describedly carry out the preliminary treatment typesetting to picture and comprise:
From the extracting data picture, and picture is recoded to obtain coded string.
Data processing equipment and the method for the mobile communcations system media management server that the embodiment of the present invention proposes have following beneficial effect:
(1) the media management server can carry out pre-typesetting with file, and the coding of picture is changed into character string, then the intersegmental distance between word indentation amount first according to section, every section word is carried out typesetting to lteral data; And pretreated word and picture are formed the node content of complete XML form.Can make like this media management server automatically generate node content, reduce the complexity of typesetting.
(3) after the media management server generated the MD5 check code by node content, piecemeal was transferred to server end; Server end carries out verification by the MD5 code after merging again.So both can reduce the needed bandwidth of transfer of data, can guarantee again the reliability of transfer of data.
(4) after the media management server adopted and generates the MD5 check code by node content, piecemeal was transferred to server end; Server end carries out verification by the MD5 code after merging again.So both can reduce the needed bandwidth of transfer of data, can guarantee again the reliability of transfer of data.
(5) the frame format the transmission of data that adopts the present invention to propose can transmit word, picture, audio frequency, video in a subframe, reduce the complexity of transmission.
Description of drawings
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, the below will do one to the accompanying drawing that uses in embodiment and introduce simply, apparently, below listed accompanying drawing be only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the structural representation of the device of the embodiment of the present invention;
Fig. 2 is the structural representation of word pretreatment unit of the device of the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the method for the embodiment of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
The device of the embodiment of the present invention is used for data are carried out preliminary treatment and sent to described server end, so that mobile terminal can obtain this data from described server end.As shown in Figure 1, this device comprises: type-setting module 1, upper transmission module 2;
Described type-setting module 1 is used for word and image data are carried out the preliminary treatment typesetting; Described type-setting module 1 comprises:
Word pretreatment unit 11, for the word that obtains data, the spacings according between the first indentation amount of section in word and/or two style of writing words judge whether word belongs to same paragraph;
Picture pretreatment unit 12 is used for obtaining the picture of data, and the coding of picture is changed into character string;
Merge cells 13 is used for the node content with pretreated word and image data amalgamation generation XML form, this node content is divided into the node piecemeal, and obtains the MD5 check code of node piecemeal;
Described upper transmission module 2 is used for this node content piecemeal, then sends to server end together with described MD5 value by described upper transmission module, so that described server end receives after this node content piecemeal by after the verification of MD5 value.Wherein, on this, transmission module 2 passes through cable network or wireless network connection server end 3.
Wherein, described each node content piecemeal has predetermined frame format, and described frame format comprises a plurality of data content sections for the storage data and at least one parameter section for this frame length of storage at least; Wherein said data content section comprise at least for the word content section of storage word, be used for the storage picture the image content section, be used for storing audio audio content segments, be used for the video content segment of store video.
As shown in Figure 2, described word pretreatment unit 11 comprises:
Word extracts subelement 111, is used for from the extracting data word, and keeps original format when extracting;
Line-spacing obtains subelement 112, for the spacing that extracts from word between any two row;
The section first indentation detection sub-unit 113, for detection of the space in word with the first indentation amount of the section of obtaining.
Wherein, described picture pretreatment unit is used for from the extracting data picture, and picture is recoded to obtain coded string.
The method of the embodiment of the present invention is used for data are carried out preliminary treatment and sent to described server end, so that mobile terminal can obtain this data from described server end; Its flow process comprises as shown in Figure 3;
Step 1, word and image data are carried out the preliminary treatment typesetting;
Step 2, pretreated word and image data amalgamation are generated the node content of XML form, this node content is divided into the node piecemeal, and obtains the MD5 check code of node piecemeal;
Then step 3, this node content piecemeal send to server end together with described MD5 value by described upper transmission module, so that described server end receives after this node content piecemeal by the verification of MD5 value, and synthetic node content;
Wherein, step 1 can be specially:
Step 11, obtain the word in data, the spacings according between the first indentation amount of section in word and/or two style of writing words judge whether word belongs to same paragraph;
Step 12, obtain the picture in data, the coding of picture is changed into character string.
Wherein, described media management server is by cable network or wireless network connection server end.
Wherein, described each node content piecemeal has predetermined frame format, and described frame format comprises a plurality of data content sections for the storage data and at least one parameter section for this frame length of storage at least; Wherein said data content section comprise at least for the word content section of storage word, be used for the storage picture the image content section, be used for storing audio audio content segments, be used for the video content segment of store video.
Wherein, word carried out the preliminary treatment typesetting comprise in step 1:
Step 111, from the extracting data word, and keep original format when extracting;
Step 112, line-spacing acquiring unit are for the spacing that extracts from word between any two row;
Step 113, the section first indentation detecting unit, for detection of the space in word with the first indentation amount of the section of obtaining.
Wherein, described in step 1 carries out the preliminary treatment typesetting to picture and comprises:
Step 114, from the extracting data picture;
Step 115, picture is recoded to obtain coded string.
The above is only preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., within all should being included in protection scope of the present invention.