CN110061813A - A kind of data-encoding scheme and coding/decoding method and relevant apparatus - Google Patents

A kind of data-encoding scheme and coding/decoding method and relevant apparatus Download PDF

Info

Publication number
CN110061813A
CN110061813A CN201910278385.0A CN201910278385A CN110061813A CN 110061813 A CN110061813 A CN 110061813A CN 201910278385 A CN201910278385 A CN 201910278385A CN 110061813 A CN110061813 A CN 110061813A
Authority
CN
China
Prior art keywords
data
unit
transmitted
sequence
units
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910278385.0A
Other languages
Chinese (zh)
Other versions
CN110061813B (en
Inventor
俞斌
杨维琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Zhongkai Tcl Zhirong Technology Micro Loan Co ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910278385.0A priority Critical patent/CN110061813B/en
Publication of CN110061813A publication Critical patent/CN110061813A/en
Application granted granted Critical
Publication of CN110061813B publication Critical patent/CN110061813B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0057Block codes
    • H04L1/0058Block-coded modulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This application involves a kind of data-encoding scheme, data decoding method and relevant apparatus, which is applied to mobile terminal, comprising: obtains initial data;Data encoding is carried out to initial data to obtain multiple original data units, each original data units include a first identifier value;Based on first identifier value, data encoding is carried out to multiple original data units to obtain multiple data to be transmitted units, multiple data to be transmitted units constitute data to be transmitted, and the data volume of data to be transmitted is less than the data volume of initial data.In this way, the data volume for being transferred to receiving end can be reduced, to improve the data transmission efficiency of mobile terminal under the conditions of equivalent network.

Description

A kind of data-encoding scheme and coding/decoding method and relevant apparatus
Technical field
This application involves fields of communication technology, more particularly, to a kind of data-encoding scheme and coding/decoding method and related dress It sets.
Background technique
GSM (Global System for Mobile Communication, global system for mobile communications) is currently to answer With most commonly used mobile phone agreement.Specifically, GSM is a kind of communication standard or a kind of communication standard, is mainly used for voice Communication, belongs to 2G standard (Generation Mobile Telecommunication System).
At present all mobile terminals are provided with GSM function, so that mobile terminal is in some 3G/4G networks of not arranging The most basic phone and SMS function can be used in area.But when being carried out data transmission using GSM, mobile terminal is deposited In the relatively slow problem of data transmission efficiency.
Summary of the invention
The application's is designed to provide a kind of data-encoding scheme, data decoding method and relevant apparatus, is passed with reducing The defeated data volume to receiving end, and then the data transmission efficiency of mobile terminal can be improved under the conditions of equivalent network.
To solve the above-mentioned problems, the technical solution that the application uses is: providing a kind of data-encoding scheme, applies In mobile terminal, which includes: acquisition initial data;Data encoding is carried out to obtain multiple originals to initial data Beginning data cell, each original data units include a first identifier value;Based on first identifier value, to multiple initial data lists Member carries out data encoding to obtain multiple data to be transmitted units, and multiple data to be transmitted units constitute data to be transmitted, to be passed The data volume of transmission of data is less than the data volume of initial data.
Wherein, initial data is serial data, carries out data encoding to initial data to obtain multiple original data units Step specifically includes: serial data is divided into multiple data segments;It is inserted into first identifier value in the first predeterminated position of data segment, To obtain corresponding original data units.
Wherein, it is based on first identifier value, data encoding is carried out to obtain multiple numbers to be transmitted to multiple original data units It the step of according to unit, specifically includes: obtaining the predetermined order of first identifier value;The first identifier value pair that will be made number one The original data units answered are inserted into second identifier value as initial data unit, and in the second predeterminated position of initial data unit To obtain initial data unit to be transmitted;According to predetermined order, two adjacent first identifiers of sequence are successively worth corresponding two A original data units are worth corresponding original data units as target as one group of data cell, using the preceding first identifier of sequence Data cell is worth corresponding original data units as pending data unit using the posterior first identifier of sequence, and will be to be processed Corresponding data segment subtracts the corresponding data segment of target data unit in data cell, to obtain data to be transmitted unit.
Wherein, predetermined order includes the first sequence and the second sequence, and the corresponding first identifier of initial data unit is first It makes number one in sequence and the second sequence, it is successively that two adjacent first identifier values of sequence are corresponding according to predetermined order Two original data units as one group of data cell, be with the corresponding original data units of the preceding first identifier value of sequence Target data unit is worth corresponding original data units as pending data unit using the posterior first identifier of sequence, and will be to Corresponding data segment subtracts the corresponding data segment of target data unit in processing data cell, to obtain data to be transmitted unit Step specifically includes:
It sorts according to first and second sorts, successively by two first sequentially adjacent in the first sequence or the second sequence Corresponding two original data units of ident value are corresponding original with the preceding first identifier value of sequence as one group of data cell Data cell is target data unit, is worth corresponding original data units as pending data list using the posterior first identifier of sequence Member, and data segment corresponding in pending data unit is subtracted into the corresponding data segment of target data unit, and in number to be processed Second predeterminated position of unit is inserted into second identifier value, to obtain data to be transmitted unit.
To solve the above-mentioned problems, another technical solution that the application uses is: providing a kind of data decoding method, answers For mobile terminal, which includes: acquisition data to be transmitted, and data to be transmitted includes multiple data to be transmitted lists Member, each data to be transmitted unit include a first identifier value;Based on first identifier value, multiple data to be transmitted units are carried out Data are decoded to obtain multiple original data units;Data are carried out to multiple original data units to decode to obtain initial data, The data volume of data to be transmitted is less than the data volume of initial data.
Wherein, data to be transmitted unit further includes data segment, and first identifier value is located at the first predeterminated position of data segment, base In first identifier value, the step of data decoding is to obtain multiple original data units, tool are carried out to multiple data to be transmitted units Body includes: the predetermined order for obtaining first identifier value;By the corresponding data to be transmitted unit of the first identifier value to make number one As initial data unit to be transmitted, and remove the ident value in initial data unit to be transmitted in addition to first identifier value, with Obtain original data units;According to predetermined order, successively by the adjacent two first identifiers value of sequence it is corresponding two it is to be transmitted Data cell is worth corresponding data to be transmitted unit as target data as one group of data cell, using the preceding first identifier of sequence Unit is worth the corresponding data to be transmitted unit as pending data unit using the posterior first identifier of sequence, and will Corresponding data segment adds the corresponding data segment of target data unit in pending data unit, to obtain original data units.
Wherein, data to be transmitted unit further includes second identifier value, and second identifier value is located at the second default position of data segment It sets, predetermined order includes the first sequence and the second sequence, and the corresponding first identifier of initial data unit to be transmitted is in the first sequence It makes number one in second sequence, it is successively that two adjacent first identifier values of sequence are corresponding according to predetermined order Two data to be transmitted units as one group of data cell, corresponding data to be transmitted list is worth with the preceding first identifier of sequence Member is target data unit, using the corresponding data to be transmitted unit of the posterior first identifier value of sequence as pending data unit, And data segment corresponding in pending data unit is added into the corresponding data segment of target data unit, to obtain initial data list The step of member, specifically includes: it sorts according to first and second sorts, it successively will be sequentially adjacent in the first sequence or the second sequence Two first identifiers be worth corresponding two data to be transmitted units as one group of data cell, with the preceding first identifier of sequence Being worth corresponding data to be transmitted unit is target data unit, is worth corresponding data to be transmitted list with the posterior first identifier of sequence Member is pending data unit, and data segment corresponding in pending data unit is added the corresponding data of target data unit Section, and remove the second identifier value in pending data unit, to obtain original data units.
To solve the above-mentioned problems, another technical solution that the application uses is: providing a kind of data coding device, answers For mobile terminal, which includes: acquisition module, for obtaining initial data;First coding module, for pair Initial data carries out data encoding to obtain multiple data cells, and each data cell includes a first identifier value;Second compiles Code module, for being based on first identifier value, to multiple data cells progress data encoding to obtain multiple data to be transmitted units, Multiple data to be transmitted units constitute data to be transmitted, and the data volume of data to be transmitted is less than the data volume of initial data.
To solve the above-mentioned problems, another technical solution that the application uses is: providing a kind of data deciphering device, answers For mobile terminal, which includes: acquisition module, and for obtaining data to be transmitted, data to be transmitted includes more A data to be transmitted unit, each data to be transmitted unit include a first identifier value;First decoder module, for being based on first Ident value carries out data decoding to multiple data to be transmitted units to obtain multiple data cells;Second decoder module, for pair Multiple data cells carry out data decoding to obtain initial data, and the data volume of data to be transmitted is less than the data of initial data Amount.
To solve the above-mentioned problems, another technical solution that the application uses is: providing a kind of computer-readable storage Medium, a plurality of instruction is stored in the storage medium, and instruction is suitable for being loaded by processor to execute the data of any of the above-described volume The data decoding method of code method or any of the above-described.
The beneficial effect of the application is: it is different from the prior art, data-encoding scheme provided by the present application, it is former by obtaining Beginning data, and data encoding is carried out to initial data to obtain multiple original data units, each original data units include one A first identifier value, is then based on first identifier value, and it is multiple to be passed to obtain to carry out data encoding to multiple original data units Transmission of data unit, multiple data to be transmitted units constitute data to be transmitted, and the data volume of data to be transmitted is less than initial data Data volume, the data volume for being transferred to receiving end can be reduced, under the conditions of equivalent network improve mobile terminal data pass Defeated efficiency.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the flow diagram of data-encoding scheme provided by the embodiments of the present application;
Fig. 2 is the flow diagram of S13 in Fig. 1;
Fig. 3 is the flow diagram of data decoding method provided by the embodiments of the present application;
Fig. 4 is the flow diagram of S22 in Fig. 3;
Fig. 5 is the structural schematic diagram of data coding device provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of data deciphering device provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application;
Fig. 8 is another structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific embodiment
The application provides a kind of data-encoding scheme, data decoding method and relevant apparatus, for purpose, the skill for making the application Art scheme and technical effect definitely, it is clear, the application is further described below, it should be understood that described herein Specific implementation regulations are only used for explaining the application, are not used to limit the application.
Currently, when mobile terminal is when some areas for not arranging 3G/4G network are carried out data transmission using GSM, it is mobile Terminal has that data transmission efficiency is relatively slow.In order to solve the above-mentioned technical problem, the technical solution that the application uses It is to provide a kind of data-encoding scheme and data decoding method, to reduce the data volume for being transferred to receiving end, and then can be same The data transmission efficiency of mobile terminal is improved under equal network conditions.
Referring to Fig. 1, Fig. 1 is the flow diagram of data-encoding scheme provided by the embodiments of the present application, it is applied to move Dynamic terminal, the detailed process of the data-encoding scheme can be such that
S11: initial data is obtained.
Wherein, initial data can be serial data, for example, binary data string.Serial data may include video, image, The information such as sound and text.Specifically, when mutually transferring the information such as video, image, sound and text between mobile terminal, make It can be sent out using in the form of serial data to the mobile terminal as receiving end mobile data network for the mobile terminal of transmitting terminal Send above- mentioned information.
S12: data encoding is carried out to obtain multiple original data units to initial data, each original data units include One first identifier value.
In the present embodiment, which is converted by mobile terminal by carrying out data encoding to initial data Multiple original data units, and above-mentioned multiple original data units are distinguished by adding first identifier value, in order to Receipt of subsequent end carries out that above-mentioned multiple original data units original number can be converted to according to first identifier value when data decoding According to.
In one embodiment, initial data is serial data, and S12 can be specifically included:
Sub-step A: serial data is divided into multiple data segments.
For example, serial data successively can be divided into multiple data segments from one end of serial data to the other end by mobile terminal, And the digit of adjacent two data section is same or similar.
Sub-step B: it is inserted into first identifier value in the first predeterminated position of data segment, to obtain corresponding initial data list Member.
For example, in the long number of the newly-increased expression first identifier value of the head end of data segment or end, it is corresponding to obtain Original data units.Wherein, the corresponding first identifier value of different original data units and difference, in order to distinguish and search.
In some embodiments, the numerical value that first identifier value can represent serial number for one, for example, first identifier value can be with For 1,2,3 ..., n, corresponding original data units can be expressed as db (1), db (2), db (3) ..., db (n).
In further embodiments, above-mentioned multiple original data units may be constructed raw column data, wherein first identifier value For indicate data segment where row and column numerical value, for example, first identifier value can for (1,1), (2,1), (3,1) ..., (xm, 1), (1,2), (2,2) ..., (xm, 2) ..., (1, yn-1), (2, yn-1) ..., (xm, yn-1), (1, yn), (2, Yn) ..., (xm, yn), corresponding original data units can be expressed as db (1,1), db (2,1), db (3,1) ..., db (xm, 1), db (1,2), db (2,2) ..., db (xm, 2) ..., db (1, yn-1), db (2, yn-1) ..., db (xm, yn- 1), db (1, yn), db (2, yn) ..., db (xm, yn).
S13: being based on first identifier value, carries out data encoding to multiple original data units to obtain multiple data to be transmitted Unit, multiple data to be transmitted units constitute data to be transmitted, and the data volume of data to be transmitted is less than the data volume of initial data.
Mobile terminal can by original data units carry first identifier value original data units are identified, and Data encoding is carried out to obtain corresponding data to be transmitted unit to original data units one by one.Specifically, mobile terminal can be with Reduction processing is carried out to the corresponding data segment of all or part of original data units, with reduce on the whole subsequent movement terminal into Row data transmit when transmission data volume, and then under the conditions of equivalent network improve mobile terminal data transmission efficiency.
Further, it in order to which the entirety for reducing data encoding processor and subsequent data transmission process is time-consuming, can use The mode of data encoding processor progress synchronous with data transmission procedure, namely complete to carry out data to an original data units While encoding and obtain corresponding data to be transmitted unit, start to carry out the data to be transmitted unit transmission and to next Original data units carry out data encoding.In this way, being conducive to improve by carrying out data transmission simultaneously with carrying out data encoding Bulk velocity when mobile terminal carries out data transmission.
In another embodiment, as shown in Fig. 2, S13 can be specifically included:
S131: the predetermined order of first identifier value is obtained.
For example, predetermined order can be the sequence of the first discre value from small to large.The first mark that original data units carry Knowledge value determines the original data units in above-mentioned multiple original data units in the sequence row number in above-mentioned predetermined order Sequence is arranged in numerical order.
S132: using the corresponding original data units of first identifier value to make number one as initial data unit, and The second predeterminated position insertion second identifier value of initial data unit is to obtain initial data unit to be transmitted.
For example, it is starting number that predetermined order, which is the sequence of first identifier value from small to large, then above-mentioned db (1) or db (1,1), According to unit.
In the present embodiment, second identifier value is used to indicate the side that mobile terminal carries out data encoding to original data units Formula, different second identifier values correspond to different data coding modes.Specifically, original data units be corresponding with one inserted with The data segment of first identifier value, mobile terminal can be further in the head end of the data segment inserted with first identifier value or end Ground is inserted into the one digit number or long number of an expression second identifier value, to indicate the data coding mode of the original data units. For example, second identifier value is z, then above-mentioned initial data unit db (1) or db (1,1) can be expressed as da after data encoding (1, z) or da (1,1, z), wherein z can be 0,1 and 2.
S133: according to predetermined order, two adjacent first identifiers of sequence are successively worth corresponding two initial data lists Member is used as one group of data cell, using the corresponding original data units of the preceding first identifier value of sequence as target data unit, with It is pending data unit that sequentially posterior first identifier, which is worth corresponding original data units, and will be right in pending data unit The data segment answered subtracts the corresponding data segment of target data unit, to obtain data to be transmitted unit.
For example, predetermined order is the sequence of first identifier value from small to large, first identifier value is 1,2,3 ..., n, it is corresponding Original data units can be expressed as db (1), db (2), db (3) ..., db (n), and after executing S132, db (1) is right The data to be transmitted unit answered is da (1, z), and z is used to indicate the side that mobile terminal carries out data encoding to original data units Formula, z can be 0,1 and 2.
Specifically, the sequence according to predetermined order namely first identifier value from small to large, successively by sequentially adjacent two First identifier is worth corresponding two original data units as one group of data cell, is worth with the preceding first identifier of sequence corresponding Original data units are target data unit, are worth corresponding original data units with the posterior first identifier of sequence for number to be processed The corresponding data segment of pending data unit and target are adjusted to according to unit, and by data segment corresponding in pending data unit Difference between the corresponding data segment of data cell, to obtain data to be transmitted unit.Wherein, the specific implementation procedure of S133 can With as follows:
It is one group of data cell by db (1) and db (2), and corresponding data segment in db (2) is subtracted into the corresponding number of db (1) According to section, to obtain corresponding data to be transmitted unit as da (2);
It is one group of data cell by db (2) and db (3), and corresponding data segment in db (3) is subtracted into the corresponding number of db (2) According to section, to obtain corresponding data to be transmitted unit as da (3);
It is one group of data cell by db (3) and db (4), and corresponding data segment in db (4) is subtracted into the corresponding number of db (3) According to section, to obtain corresponding data to be transmitted unit as da (4);
......;
It is one group of data cell by db (n-1) and db (n), and data segment corresponding in db (n) is subtracted into db (n-1) and is corresponded to Data segment, to obtain corresponding data to be transmitted unit as da (n).
In more detail, for example, the numerical value that the numerical value of the corresponding data segment of db (1) is 30, db (2) corresponding data segment is 40, then by the numerical value of the data segment in db (2) by 40 be adjusted to the corresponding data segment of db (2) data segment corresponding with db (1) it Between difference 10, db (2) adjusted is (2) da;The numerical value of the corresponding data segment of db (3) is 45, then by the number in db (3) It is adjusted to difference 5 between the corresponding data segment of db (3) data segment corresponding with db (2) by 45 according to the numerical value of section, it is adjusted Db (3) is (3) da;And so on, if the numerical value of the corresponding data segment of db (n-1) is P, the number of the corresponding data segment of db (n) Value is Q, then the numerical value of the data segment in db (n) is adjusted to the corresponding data segment of db (n) data corresponding with db (n-1) by Q Difference Q-P between section, db (n) adjusted is da (n).In this way, by data encoding by above-mentioned multiple initial data lists Member is converted to multiple data to be transmitted units, can reduce data when subsequent movement terminal carries out data transmission on the whole Amount.
Further, data encoding is being carried out to obtain multiple numbers to be transmitted to above-mentioned multiple original data units one by one During according to unit, a data to be transmitted unit can be just transmitted often to obtain a data to be transmitted unit, to reduce number According to cataloged procedure and the whole time-consuming of subsequent data transmission process, and then improve entirety when mobile terminal carries out data transmission Speed.
In a specific embodiment, predetermined order may include the first sequence and the second sequence, initial data unit pair The first identifier answered makes number one in the first sequence and the second sequence.Wherein, S133 can be specifically included:
It sorts according to first and second sorts, successively by two first sequentially adjacent in the first sequence or the second sequence Corresponding two original data units of ident value are corresponding original with the preceding first identifier value of sequence as one group of data cell Data cell is target data unit, is worth corresponding original data units as pending data list using the posterior first identifier of sequence Member, and data segment corresponding in pending data unit is subtracted into the corresponding data segment of target data unit, and in number to be processed Second predeterminated position of unit is inserted into second identifier value, to obtain data to be transmitted unit.
For example, above-mentioned multiple original data units may be constructed raw column data, wherein first identifier value is to indicate data segment The numerical value of place row and column, for example, first identifier value can for (1,1), (2,1), (3,1) ..., (xm, 1), (1,2), (2, 2) ..., (xm, 2) ..., (1, yn-1), (2, yn-1) ..., (xm, yn-1), (1, yn), (2, yn) ..., (xm, yn), Corresponding original data units can be expressed as db (1,1), db (2,1), db (3,1) ..., db (xm, 1), db (1,2), db (2,2) ..., db (xm, 2) ..., db (1, yn-1), db (2, yn-1) ..., db (xm, yn-1), db (1, yn), db (2, Yn) ..., db (xm, yn).Wherein, initial data unit is db (1,1), and the first sequence can be ascending for the numerical value of row Sequentially, the sequence that the second sequence can be ascending for the numerical value of column, and after executing S132, db (1,1) is corresponding to be passed Transmission of data unit is da (1,1, z), and z is used to indicate the mode that mobile terminal carries out data encoding to original data units, and z can be with It is 0,1 and 2.
Wherein, 0 z, the first corresponding data coding mode, namely not to data segment corresponding in original data units into Row changes;Z is 1, and data segment corresponding in original data units is also adjusted to first by corresponding second of data coding mode Difference, first difference are for the corresponding data segment of the original data units and positioned at the original data units previous row and same with it Difference between the corresponding field section of the original data units of column;Z is 2, the third corresponding data coding mode, also i.e. will be original Corresponding data segment is adjusted to the second difference in data cell, second difference be the corresponding data segment of the original data units and Difference between the original data units previous column and field section corresponding with the original data units that it is gone together.In this reality It applies in example, the first data coding mode is used to initial data unit db (1,1) namely da (1,1, z) is da (1,1,0).
Specifically, it sorts according to first and second sorts, it successively will be sequentially adjacent in the first sequence or the second sequence Two first identifiers are worth corresponding two original data units as one group of data cell, with the preceding first identifier value pair of sequence The original data units answered are target data unit, are wait locate with the corresponding original data units of the posterior first identifier value of sequence Manage data cell, and by data segment corresponding in pending data unit be adjusted to the corresponding data segment of pending data unit with Difference between the corresponding data segment of target data unit, to obtain data to be transmitted unit.
Further, for the original data units with initial data unit same column, above-mentioned second of data can be used Coding mode carries out data encoding, to obtain corresponding data to be transmitted unit;It is original for going together with initial data unit Data cell can carry out data encoding using the third data coding mode, to obtain corresponding data to be transmitted unit;It is right It, can further more above-mentioned first difference and upper in the original data units for the also different lines of not going together with initial data unit The size of the second difference is stated, if the first difference can carry out data using second of data coding mode less than the second difference Coding, if the first difference is not less than the second difference, can use the third data to obtain corresponding data to be transmitted unit Coding mode carries out data encoding, to obtain corresponding data to be transmitted unit.
Further, sequence that can be first ascending according to capable numerical value, successively to initial data unit same column Original data units carry out data encoding to obtain corresponding data to be transmitted unit, it is then ascending according to the numerical value of column Sequence, data encoding successively is carried out to obtain pair to other column original data units in addition to initial data unit column The data to be transmitted unit answered.
For example, the specific implementation procedure of S133 can be such that
It is one group of data cell by db (1,1) and db (2,1), and corresponding data segment in db (2,1) is subtracted into db (1,1) Corresponding data segment, to obtain corresponding data to be transmitted unit da (2,1, z), wherein z 1;
It is one group of data cell by db (2,1) and db (3,1), and corresponding data segment in db (3,1) is subtracted into db (2,1) Corresponding data segment, to obtain corresponding data to be transmitted unit da (3,1, z), wherein z 1;
......;
It is one group of data cell by db (xm-1,1) and db (xm, 1), and corresponding data segment in db (xm, 1) is subtracted into db (xm-1,1) corresponding data segment, to obtain corresponding data to be transmitted unit da (xm, 1, z), wherein z 1;
It is one group of data cell by db (1,1) and db (1,2), and corresponding data segment in db (1,2) is subtracted into db (1,1) Corresponding data segment, to obtain corresponding data to be transmitted unit da (1,2, z), wherein z 2;
Compare difference between the corresponding data segment of db (2,2) and db (1,2) corresponding data segment and db (2,2) is corresponding The size of difference between data segment and db (2,1) corresponding data segment, namely compare corresponding first difference of db (2,2) and The size of two differences, if db (2,2) and db (1,2) is one group of data cell less than the second difference by the first difference, and by db Corresponding data segment subtracts the corresponding data segment of db (1,2) in (2,2), with obtain corresponding data to be transmitted unit da (2,2, Z), wherein db (2,2) and db (2,1) is one group of data cell if the first difference is not less than the second difference by z 1, and will Corresponding data segment subtracts the corresponding data segment of db (2,1) in db (2,2), with obtain corresponding data to be transmitted unit da (2, 2, z), wherein z 2;
......;
Compare the size of db (xm, 2) corresponding first difference and the second difference, if the first difference less than the second difference, It is one group of data cell by db (xm, 2) and db (xm-1,2), and corresponding data segment in db (xm, 2) is subtracted into db (xm-1,2) Corresponding data segment, to obtain corresponding data to be transmitted unit as da (xm, 2, z), wherein z 1, if the first difference is not small It is then one group of data cell by db (xm, 2) and db (xm, 1), and corresponding data segment in db (xm, 2) is subtracted in the second difference The corresponding data segment of db (xm, 1) is removed, to obtain corresponding data to be transmitted unit as da (2,2, z), wherein z 2;
......;
It is one group of data cell by db (1, yn-1) and db (1, yn-2), and corresponding data segment in db (1, yn-1) is subtracted The corresponding data segment of db (1, yn-2) is removed, to obtain corresponding data to be transmitted unit da (1, yn-1, z), wherein z 2;
Compare the size of db (2, yn-1) corresponding first difference and the second difference, if the first difference less than the second difference, Corresponding data segment in db (2, yn-1) is then subtracted into the corresponding data segment of db (1, yn-1), to obtain corresponding data to be transmitted Unit is da (2, yn-1, z), wherein z 1 will be corresponding in db (2, yn-1) if the first difference is not less than the second difference Data segment subtracts the corresponding data segment of db (2, yn-2), to obtain corresponding data to be transmitted unit as da (2, yn-1, z), In, z 2;
......;
Compare the size of db (xm, yn-1) corresponding first difference and the second difference, if the first difference less than the second difference, Corresponding data segment in db (xm, yn-1) is then subtracted into the corresponding data segment of db (xm-1, yn-1), it is corresponding to be transmitted to obtain Data cell is da (xm, yn-1, z), wherein z 1 will be in db (xm, yn-1) if the first difference is not less than the second difference Corresponding data segment subtracts the corresponding data segment of db (xm, yn-2), to obtain corresponding data to be transmitted unit as da (xm, yn- 1, z), wherein z 2;
It is one group of data cell by db (1, yn) and db (1, yn-1), and corresponding data segment in db (1, yn) is subtracted into db (1, yn-1) corresponding data segment, to obtain corresponding data to be transmitted unit da (1, yn, z), wherein z 2;
Compare the size of db (2, yn) corresponding first difference and the second difference, if the first difference less than the second difference, Corresponding data segment in db (2, yn) is subtracted into the corresponding data segment of db (1, yn), is to obtain corresponding data to be transmitted unit Da (2, yn, z), wherein z 1 subtracts corresponding data segment in db (2, yn) if the first difference is not less than the second difference The corresponding data segment of db (2, yn-1), to obtain corresponding data to be transmitted unit as da (2, yn, z), wherein z 2;
......;
Compare the size of db (xm, yn) corresponding first difference and the second difference, if the first difference less than the second difference, Corresponding data segment in db (xm, yn) is subtracted into the corresponding data segment of db (xm-1, yn), to obtain corresponding data to be transmitted list Member is da (xm, yn, z), wherein z 1, if the first difference is not less than the second difference, by corresponding data in db (xm, yn) Section subtracts the corresponding data segment of db (xm, yn-1), to obtain corresponding data to be transmitted unit as da (xm, yn, z), wherein z It is 2.
Further, data encoding is being carried out to obtain multiple data to be transmitted to above-mentioned multiple original data units one by one During unit, a data to be transmitted unit can be just transmitted often to obtain a data to be transmitted unit, to reduce data The whole time-consuming of cataloged procedure and subsequent data transmission process, and then improve whole speed when mobile terminal carries out data transmission Degree.
It is worth noting that, above-mentioned first sequence is not limited to the ascending sequence of capable numerical value, it can also be the number of row Be worth descending sequence, the ascending sequence of the numerical value that above-mentioned second sequence is not limited to column, can also for column numerical value by Small sequence is arrived greatly.That is, initial data unit is not limited to db (1,1), can also for db (xm, 1), db (1, yn) and db (xm, yn)。
It is different from the prior art, the data-encoding scheme in the present embodiment, by obtaining initial data, and to initial data Data encoding is carried out to obtain multiple original data units, each original data units include a first identifier value, then base It is multiple to be passed to multiple original data units progress data encoding to obtain multiple data to be transmitted units in first identifier value Transmission of data unit constitutes data to be transmitted, and the data volume of data to be transmitted is less than the data volume of initial data, can reduce biography The defeated data volume to receiving end, to improve the data transmission efficiency of mobile terminal under the conditions of equivalent network.
Further, the embodiment of the present application also provides a kind of data decoding method, the data decoding method and above-mentioned realities Apply the reciprocal correspondence of data-encoding scheme described in example.Specifically, mobile terminal can use above-mentioned data-encoding scheme will be former Beginning data conversion at data to be transmitted, also can use corresponding data decoding method above-mentioned data to be transmitted is converted into it is original Data.
Referring to Fig. 3, Fig. 3 is the flow diagram of data decoding method provided by the embodiments of the present application.As shown in figure 3, The data decoding method, is applied to mobile terminal, and detailed process can be such that
S21: data to be transmitted is obtained, data to be transmitted includes multiple data to be transmitted units, each data to be transmitted list Member includes a first identifier value.
Mobile terminal can be used as receiving end, obtain the data to be transmitted that transmitting terminal is sent.Specifically, transmitting terminal can be adopted Any data-encoding scheme described in above-described embodiment carries out data encoding, to obtain above-mentioned data to be transmitted, and The data to be transmitted is sent to receiving end.
Wherein, first identifier value can represent the numerical value of serial number for one.When above-mentioned multiple data to be transmitted units can be with When constituting raw column data, first identifier value can also be the numerical value of row and column where expression data segment.
S22: being based on first identifier value, carries out data decoding to multiple data to be transmitted units to obtain multiple initial data Unit.
Wherein, data to be transmitted unit further includes data segment, and first identifier value is located at the first predeterminated position of data segment.Example Such as, first identifier value can be located at head end or the end of data segment.Specifically, first identifier value is to above-mentioned multiple data to be transmitted Unit distinguishes, and mobile terminal can be according to first identifier value by the corresponding data segment of above-mentioned multiple data to be transmitted units It is integrated into serial data.
In one embodiment, as shown in figure 4, S22 can be specifically included:
S221: the predetermined order of first identifier value is obtained.
For example, predetermined order can be the sequence of the first discre value from small to large.The first mark that original data units carry Knowledge value determines the original data units in above-mentioned multiple original data units in the sequence row number in above-mentioned predetermined order Sequence is arranged in numerical order.
S222: using the corresponding data to be transmitted unit of the first identifier value to make number one as initial data list to be transmitted Member, and remove the ident value in initial data unit to be transmitted in addition to first identifier value, to obtain original data units.
For example, initial data unit to be transmitted in addition to first identifier value, can also include second identifier value.Wherein, Two ident values are located at the second predeterminated position of data to be transmitted unit, count for indicating mobile terminal to original data units According to the mode of coding, and different second identifier values corresponds to different data coding modes.
S223: according to predetermined order, two adjacent first identifiers of sequence are successively worth corresponding two data to be transmitted Unit is worth corresponding data to be transmitted unit as target data list as one group of data cell, using the preceding first identifier of sequence Member is worth the corresponding data to be transmitted unit as pending data unit using the posterior first identifier of sequence, and will be to It handles corresponding data segment in data cell and adds the corresponding data segment of target data unit, to obtain original data units.
Wherein, according to predetermined order, such as the sequence of first identifier value from small to large, mobile terminal is successively adjacent by sequence Two first identifiers are worth corresponding two data to be transmitted units as one group of data cell, with the preceding first identifier value of sequence Corresponding data to be transmitted unit is target data unit, is worth corresponding data to be transmitted unit with the posterior first identifier of sequence For pending data unit, and data segment corresponding in pending data unit is adjusted to the corresponding number of pending data unit According between section data segment corresponding with target data unit and value, to obtain original data units.
In a specific embodiment, each data to be transmitted unit further includes a second identifier value, second identifier value position In the second predeterminated position of data segment, for indicating transmitting terminal original data units are carried out with the mode of data encoding.Therefore, it moves Dynamic terminal can take corresponding data to the data to be transmitted unit according to the corresponding second identifier value of data to be transmitted unit Decoded mode.
Wherein, predetermined order includes the first sequence and the second sequence, the corresponding first identifier of initial data unit to be transmitted It makes number one in the first sequence and the second sequence, S223 can be specifically included:
It sorts according to first and second sorts, successively by two first sequentially adjacent in the first sequence or the second sequence The corresponding two data to be transmitted units of ident value as one group of data cell, with the preceding first identifier value of sequence it is corresponding to Transmission data units are target data unit, and it is to be processed for being worth corresponding data to be transmitted unit with the posterior first identifier of sequence Data cell, and data segment corresponding in pending data unit is added into the corresponding data segment of target data unit, and remove Second identifier value in pending data unit, to obtain original data units.
Wherein, according to the first sequence and the second sequence, successively by the sequence adjacent two in the first sequence or the second sequence A first identifier is worth corresponding two data to be transmitted units as one group of data cell, with the preceding first identifier value pair of sequence The data to be transmitted unit answered is target data unit, is with the corresponding data to be transmitted unit of the posterior first identifier value of sequence Pending data unit, and data segment corresponding in pending data unit is adjusted to the corresponding data of pending data unit Between section data segment corresponding with target data unit and value, and remove the second identifier value in pending data unit, with Obtain original data units.
S23: data decoding is carried out to obtain initial data to multiple original data units, the data volume of data to be transmitted is small In the data volume of initial data.
Further, in order to which the entirety for reducing data transmission procedure and data decoding procedure is time-consuming, data can be used The mode of transmission process progress synchronous with data decoding procedure, namely while obtaining a data to be transmitted unit, start Data Data is carried out to the data to be transmitted unit and obtains next data to be transmitted unit.In this way, by carrying out data Transmission ground carries out data decoding simultaneously, is conducive to improve bulk velocity when mobile terminal carries out data transmission.
It is worth noting that, the data decoding method in the present embodiment is the inverse of the data-encoding scheme in above-described embodiment Process, therefore the specific embodiment of each step of above-mentioned data decoding method can refer to the tool of each step of above-mentioned data-encoding scheme Body embodiment, details are not described herein.
It is different from the prior art, data decoding method provided by the embodiments of the present application, it is to be passed by obtaining data to be transmitted Transmission of data includes multiple data to be transmitted units, and each data to be transmitted unit includes a first identifier value, and based on the first mark Knowledge value carries out data decoding to obtain multiple original data units, then to multiple initial data to multiple data to be transmitted units Unit carries out data decoding to obtain initial data, and the data volume of data to be transmitted is less than the data volume of initial data, in this way, The data decoding method can be used cooperatively together with corresponding data-encoding scheme, to reduce the data for being transferred to receiving end Amount, and then the data transmission efficiency of mobile terminal can be improved under the conditions of equivalent network.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of data coding device provided by the embodiments of the present application.As shown in figure 5, The data coding device 500 is applied to mobile terminal comprising:
(1) module 501 is obtained
Module 501 is obtained for obtaining initial data.
(2) first coding modules 502
First coding module 502 is used to carry out data encoding to initial data to obtain multiple data cells, each data Unit includes a first identifier value.
(3) second coding modules 503
Second coding module 503 is used to be based on first identifier value, and it is more to obtain to carry out data encoding to multiple data cells A data to be transmitted unit, multiple data to be transmitted units constitute data to be transmitted, and the data volume of data to be transmitted is less than original The data volume of data.
It, can also be into it is worth noting that, when it is implemented, the above modules can be used as independent entity to realize Row any combination realizes that the method that can be found in front is embodied in the above modules as same or several entities Embodiment, details are not described herein.
It is different from the prior art, data coding device provided by the embodiments of the present application, by obtaining initial data, and to original Beginning data carry out data encoding to obtain multiple original data units, and each original data units include a first identifier value, It is then based on first identifier value, it is more to multiple original data units progress data encoding to obtain multiple data to be transmitted units A data to be transmitted unit constitutes data to be transmitted, and the data volume of data to be transmitted is less than the data volume of initial data, can Reduce the data volume for being transferred to receiving end, to improve the data transmission efficiency of mobile terminal under the conditions of equivalent network.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of data deciphering device provided by the embodiments of the present application.As shown in fig. 6, The data deciphering device answers 600 to be used for mobile terminal comprising:
(1) module 601 is obtained
Module 601 is obtained for obtaining data to be transmitted, data to be transmitted includes multiple data to be transmitted units, it is each to Transmission data units include a first identifier value.
(2) first decoder modules 602
First decoder module 602 be used for be based on first identifier value, to multiple data to be transmitted units carry out data decoding with Obtain multiple data cells.
(3) second decoder modules 603
Second decoder module 603 is used to carry out multiple data cells data decoding to obtain initial data, number to be transmitted According to data volume be less than initial data data volume.
It, can also be into it is worth noting that, when it is implemented, the above modules can be used as independent entity to realize Row any combination realizes that the method that can be found in front is embodied in the above modules as same or several entities Embodiment, details are not described herein.
It is different from the prior art, data deciphering device provided by the embodiments of the present application, it is to be passed by obtaining data to be transmitted Transmission of data includes multiple data to be transmitted units, and each data to be transmitted unit includes a first identifier value, and based on the first mark Knowledge value carries out data decoding to obtain multiple original data units, then to multiple initial data to multiple data to be transmitted units Unit carries out data decoding to obtain initial data, and the data volume of data to be transmitted is less than the data volume of initial data, in this way, The data deciphering device can be used cooperatively together with corresponding data coding device, to reduce the data for being transferred to receiving end Amount, and then the data transmission efficiency of mobile terminal can be improved under the conditions of equivalent network.
To solve the above-mentioned problems, another technical solution that the application uses is: providing a kind of computer-readable storage Medium, a plurality of instruction is stored in the storage medium, and instruction is suitable for being loaded by processor to execute the data of any of the above-described volume The data decoding method of code method or any of the above-described.
Referring to Fig. 7, the embodiment of the present application also provides a kind of mobile terminal, which can be smart phone, puts down Plate apparatus such as computer.As shown in fig. 7, mobile terminal 400 includes processor 401, memory 402.Wherein, processor 401 with deposit Reservoir 402 is electrically connected.
Processor 401 is the control centre of mobile terminal 400, utilizes various interfaces and the entire mobile terminal of connection Various pieces by the application program of operation or load store in memory 402, and are called and are stored in memory 402 Data, execute mobile terminal various functions and processing data, thus to mobile terminal carry out integral monitoring.
In the present embodiment, processor 401 in mobile terminal 400 can according to following step, by one or one with On the corresponding instruction of process of application program be loaded into memory 402, and be stored in memory by processor 401 to run Application program in 402, to realize various functions:
Obtain initial data;
Data encoding is carried out to initial data to obtain multiple original data units, each original data units include one First identifier value;
Based on first identifier value, data encoding is carried out to obtain multiple data to be transmitted lists to multiple original data units Member, multiple data to be transmitted units constitute data to be transmitted, and the data volume of data to be transmitted is less than the data volume of initial data.
Or
Data to be transmitted is obtained, data to be transmitted includes multiple data to be transmitted units, each data to be transmitted unit packet Include a first identifier value;
Based on first identifier value, data decoding is carried out to obtain multiple initial data lists to multiple data to be transmitted units Member;
Data decoding is carried out to multiple original data units to obtain initial data, the data volume of data to be transmitted is less than original The data volume of beginning data.
Fig. 8 shows the specific block diagram of mobile terminal provided by the embodiments of the present application, which can use In the data-encoding scheme or data decoding method implementing to provide in above-described embodiment.The mobile terminal 300 can be intelligent hand Machine or tablet computer.
RF circuit 310 realizes the mutual conversion of electromagnetic wave and electric signal, thus with logical for receiving and transmitting electromagnetic wave News network or other equipment are communicated.RF circuit 310 may include various existing for executing the circuit elements of these functions Part, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, storage Device etc..RF circuit 310 can carry out communicating or by wireless with various networks such as internet, intranet, wireless network Network is communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or Metropolitan Area Network (MAN). Various communication standards, agreement and technology, including but not limited to global system for mobile communications can be used in above-mentioned wireless network (Global System for Mobile Communication, GSM), enhanced mobile communication technology (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (Wideband Code Division Multiple Access, WCDMA), Code Division Multiple Access (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), adopting wireless fidelity technology (Wireless Fidelity, Wi-Fi) (such as U.S.'s electricity Gas and Electronic Engineering Association standard IEEE 802.11a, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over Internet Protocol, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet Agreement.
Memory 320 can be used for storing software program and module, such as data-encoding scheme, data solution in above-described embodiment Code method, data coding device and the corresponding program instruction/module of data deciphering device, processor 380 are stored in by operation Software program and module in memory 320, thereby executing various function application and data processing, i.e. realization data encoding Or the decoded function of data.Memory 320 may include high speed random access memory, may also include nonvolatile memory, such as one Or multiple magnetic storage devices, flash memory or other non-volatile solid state memories.In some instances, memory 320 can It further comprise the memory remotely located relative to processor 380, these remote memories can pass through network connection to shifting Dynamic terminal 300.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and its group It closes.
Input unit 330 can be used for receiving the number or data information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, input unit 330 may include touching Sensitive surfaces 331 and other input equipments 332.Touch sensitive surface 331, also referred to as touch display screen or Trackpad are collected and are used Family on it or nearby touch operation (such as user using any suitable object or attachment such as finger, stylus in touch-sensitive table Operation on face 331 or near touch sensitive surface 331), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 331 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 380, and can receive processor 380 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 331.In addition to touch sensitive surface 331, input unit 330 can also include other input equipments 332.Specifically, Other input equipments 332 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), One of trace ball, mouse, operating stick etc. are a variety of.
Display unit 340 can be used for showing information input by user or the information and mobile terminal that are supplied to user 300 various graphical user interface, these graphical user interface can by figure, text, icon, video and any combination thereof Lai It constitutes.Display unit 340 may include display panel 341, optionally, can using LCD (Liquid Crystal Display, Liquid crystal display), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display Panel 341.Further, touch sensitive surface 331 can cover display panel 341, when touch sensitive surface 331 detect on it or near Touch operation after, send processor 380 to determine the type of touch event, be followed by subsequent processing device 380 according to touch event Type provides corresponding visual output on display panel 341.Although in fig. 8, touch sensitive surface 331 is with display panel 341 Output and input function as two independent components to realize, but in some embodiments it is possible to by touch sensitive surface 331 with Display panel 341 is integrated and realizes and outputs and inputs function.
Mobile terminal 300 may also include at least one sensor 350, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can basis The light and shade of ambient light adjusts the brightness of display panel 341, proximity sensor can when mobile terminal 300 is moved in one's ear, Close display panel 341 and/or backlight.As a kind of motion sensor, gravity adds efficiency sensor to can detect all directions The size of upper (generally three axis) plus efficiency, can detect that size and the direction of gravity, can be used to identify mobile phone posture when static Application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example pedometer, strikes Hit) etc.;Gyroscope, barometer, hygrometer, thermometer, infrared sensor for can also configure as mobile terminal 300 etc. other Sensor, details are not described herein.
Voicefrequency circuit 360, loudspeaker 361, microphone 362 can provide the audio interface between user and mobile terminal 300. Electric signal after the audio data received conversion can be transferred to loudspeaker 361, be converted by loudspeaker 361 by voicefrequency circuit 360 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 362, is connect by voicefrequency circuit 360 Audio data is converted to after receipts, then by after the processing of audio data output processor 380, is sent to through RF circuit 310 such as another One terminal, or audio data is exported to memory 320 to be further processed.Voicefrequency circuit 360 is also possible that earplug Jack, to provide the communication of peripheral hardware earphone Yu mobile terminal 300.
Mobile terminal 300 can help user send and receive e-mail, is clear by transmission module 370 (such as Wi-Fi module) Look at webpage and access streaming video etc., it provides wireless broadband internet for user and accesses.Although Fig. 8 shows transmission mould Block 370, but it is understood that, and it is not belonging to must be configured into for mobile terminal 300, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 380 is the control centre of mobile terminal 300, utilizes each of various interfaces and connection whole mobile phone Part by running or execute the software program and/or module that are stored in memory 320, and calls and is stored in memory Data in 320 execute the various functions and processing data of mobile terminal 300, to carry out integral monitoring to mobile phone.It is optional , processor 380 may include one or more processing cores;In some embodiments, processor 380 can integrate application processor And modem processor, wherein the main processing operation system of application processor, user interface and application program etc., modulatedemodulate Processor is adjusted mainly to handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor In 380.
Mobile terminal 300 further includes the power supply 390 (such as battery) powered to all parts, in some embodiments, electricity Source can be logically contiguous by power-supply management system and processor 380, to realize management charging by power-supply management system, put The functions such as electricity and power managed.Power supply 390 can also include one or more direct current or AC power source, recharge The random components such as system, power failure detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, mobile terminal 300 can also include camera (such as front camera, rear camera), bluetooth Module etc., details are not described herein.Specifically in the present embodiment, the display unit of mobile terminal is touch-screen display, mobile whole End further includes having memory and one perhaps more than one program one of them or more than one program being stored in and deposits In reservoir, and it is configured to execute one or more than one program by one or more than one processor to include for carrying out The instruction operated below:
Obtain initial data;
Data encoding is carried out to initial data to obtain multiple original data units, each original data units include one First identifier value;
Based on first identifier value, data encoding is carried out to obtain multiple data to be transmitted lists to multiple original data units Member, multiple data to be transmitted units constitute data to be transmitted, and the data volume of data to be transmitted is less than the data volume of initial data.
Or
Data to be transmitted is obtained, data to be transmitted includes multiple data to be transmitted units, each data to be transmitted unit packet Include a first identifier value;
Based on first identifier value, data decoding is carried out to obtain multiple initial data lists to multiple data to be transmitted units Member;
Data decoding is carried out to multiple original data units to obtain initial data, the data volume of data to be transmitted is less than original The data volume of beginning data.
When it is implemented, the above modules and unit can be used as independent entity to realize, can also carry out any Combination, is realized as same or several entities, the method that the specific implementation of the above modules and unit can be found in front Embodiment, details are not described herein.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one In storage media, and is loaded and executed by processor.For this purpose, the embodiment of the present application provides a kind of storage medium, wherein storing There is a plurality of instruction, which can be loaded by processor, compile to execute any data provided by the embodiment of the present application Step in code method or data decoding method.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any data provided by the embodiment of the present application can be executed and compiled Step in code method or data decoding method, it is thereby achieved that any data encoding provided by the embodiment of the present application Beneficial effect achieved by method or data decoding method is detailed in the embodiment of front, and details are not described herein.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Made any modifications, equivalent replacements, and improvements etc., should be included within the scope of protection of this application within mind and principle.

Claims (10)

1. a kind of data-encoding scheme is applied to mobile terminal, which is characterized in that the described method includes:
Obtain initial data;
Data encoding is carried out to obtain multiple original data units to the initial data, each original data units include One first identifier value;
Based on the first identifier value, data encoding is carried out to obtain multiple data to be transmitted to the multiple original data units Unit, the multiple data to be transmitted unit constitute data to be transmitted, and the data volume of the data to be transmitted is less than described original The data volume of data.
2. the method according to claim 1, wherein the initial data be serial data, it is described to described original Data carry out the step of data encoding is to obtain multiple original data units, specifically include:
The serial data is divided into multiple data segments;
It is inserted into first identifier value in the first predeterminated position of the data segment, to obtain corresponding original data units.
3. according to the method described in claim 2, it is characterized in that, described be based on the first identifier value, to the multiple original Beginning data cell carries out the step of data encoding is to obtain multiple data to be transmitted units, specifically includes:
Obtain the predetermined order of the first identifier value;
Using the corresponding original data units of the first identifier value to make number one as initial data unit, and in institute The second predeterminated position insertion second identifier value of initial data unit is stated to obtain initial data unit to be transmitted;
According to the predetermined order, two adjacent first identifiers of sequence are successively worth corresponding two initial data Unit is worth the corresponding original data units as number of targets as one group of data cell, using the preceding first identifier of sequence According to unit, the corresponding original data units are worth as pending data unit using the posterior first identifier of sequence, and will The corresponding data segment subtracts the corresponding data segment of the target data unit in the pending data unit, with To data to be transmitted unit.
4. according to the method described in claim 3, it is characterized in that, the predetermined order include first sequence and second sequence, The corresponding first identifier of the initial data unit makes number one in first sequence and second sequence,
It is described according to the predetermined order, successively by the adjacent two first identifiers values of sequence it is corresponding two it is described original Data cell is worth the corresponding original data units as mesh as one group of data cell, using the preceding first identifier of sequence Data cell is marked, using the corresponding original data units of the sequentially posterior first identifier value as pending data unit, And the data segment corresponding in the pending data unit is subtracted into the corresponding data segment of the target data unit, With the step of obtaining data to be transmitted unit, specifically include:
According to it is described first sequence and it is described second sequence, successively will it is described first sequence or it is described second sequence in sequence phase The first identifier of adjacent two is worth corresponding two original data units as one group of data cell, with sequentially preceding It is target data unit that the first identifier, which is worth the corresponding original data units, with the posterior first identifier value of sequence The corresponding original data units are pending data unit, and by the data corresponding in the pending data unit Section subtracts the corresponding data segment of the target data unit, and in second predeterminated position of the counting unit to be processed It is inserted into the second identifier value, to obtain data to be transmitted unit.
5. a kind of data decoding method is applied to mobile terminal characterized by comprising
Data to be transmitted is obtained, the data to be transmitted includes multiple data to be transmitted units, each data to be transmitted list Member includes a first identifier value;
Based on the first identifier value, data decoding is carried out to obtain multiple initial data to the multiple data to be transmitted unit Unit;
Data decoding is carried out to obtain initial data to the multiple original data units, the data volume of the data to be transmitted is small In the data volume of the initial data.
6. described according to the method described in claim 5, it is characterized in that, the data to be transmitted unit further includes data segment First identifier value is located at the first predeterminated position of the data segment, described to be based on the first identifier value, to the multiple to be passed Transmission of data unit carries out the step of data decoding is to obtain multiple original data units, specifically includes:
Obtain the predetermined order of the first identifier value;
Using the corresponding data to be transmitted unit of the first identifier value to make number one as initial data list to be transmitted Member, and remove the ident value in the initial data unit to be transmitted in addition to the first identifier value, to obtain initial data Unit;
According to the predetermined order, two adjacent first identifiers of sequence are successively worth corresponding two numbers to be transmitted According to unit as one group of data cell, the corresponding data to be transmitted unit is worth as mesh using the preceding first identifier of sequence Data cell is marked, the corresponding data to be transmitted unit is worth as pending data list using the posterior first identifier of sequence Member, and the data segment corresponding in the pending data unit is added into the corresponding data of the target data unit Section, to obtain original data units.
7. according to the method described in claim 6, it is characterized in that, the data to be transmitted unit further includes second identifier value, The second identifier value is located at the second predeterminated position of the data segment, and the predetermined order includes the first sequence and second row Sequence, the corresponding first identifier of the initial data unit to be transmitted are arranged in first sequence and second sequence At first,
It is described according to the predetermined order, successively by the adjacent two first identifiers values of sequence it is corresponding two it is described to be passed Transmission of data unit is worth the corresponding data to be transmitted unit as one group of data cell, with the preceding first identifier of sequence For target data unit, the corresponding data to be transmitted unit is worth as pending data using the posterior first identifier of sequence Unit, and the data segment corresponding in the pending data unit is added into the corresponding number of the target data unit According to section, the step of to obtain original data units, specifically include:
According to it is described first sequence and it is described second sequence, successively will it is described first sequence or it is described second sequence in sequence phase The first identifier of adjacent two is worth corresponding two data to be transmitted units as one group of data cell, with sequence preceding The first identifier to be worth the corresponding data to be transmitted unit be target data unit, with posterior first mark of sequence It is pending data unit that knowledge, which is worth the corresponding data to be transmitted unit, and by institute corresponding in the pending data unit Data segment is stated plus the corresponding data segment of the target data unit, and is removed described in the pending data unit Second identifier value, to obtain original data units.
8. a kind of data coding device is applied to mobile terminal characterized by comprising
Module is obtained, for obtaining initial data;
First coding module, for carrying out data encoding to the initial data to obtain multiple data cells, each number It include a first identifier value according to unit;
Second coding module carries out data encoding to the multiple data cell for being based on the first identifier value to obtain Multiple data to be transmitted units, the multiple data to be transmitted unit constitute data to be transmitted, the data of the data to be transmitted Amount is less than the data volume of the initial data.
9. a kind of data deciphering device is applied to mobile terminal characterized by comprising
Module is obtained, for obtaining data to be transmitted, the data to be transmitted includes multiple data to be transmitted units, each described Data to be transmitted unit includes a first identifier value;
First decoder module carries out data decoding to the multiple data to be transmitted unit for being based on the first identifier value To obtain multiple data cells;
Second decoder module is decoded for carrying out data to the multiple data cell to obtain initial data, described to be transmitted The data volume of data is less than the data volume of the initial data.
10. a kind of computer readable storage medium, which is characterized in that be stored with a plurality of instruction, the finger in the storage medium It enables being suitable for being loaded by processor and 1 to 4 described in any item data-encoding schemes is required with perform claim, or execute any in 5 to 7 Data decoding method described in.
CN201910278385.0A 2019-04-09 2019-04-09 Data encoding method, data decoding method and related devices Active CN110061813B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910278385.0A CN110061813B (en) 2019-04-09 2019-04-09 Data encoding method, data decoding method and related devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910278385.0A CN110061813B (en) 2019-04-09 2019-04-09 Data encoding method, data decoding method and related devices

Publications (2)

Publication Number Publication Date
CN110061813A true CN110061813A (en) 2019-07-26
CN110061813B CN110061813B (en) 2022-10-04

Family

ID=67318571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910278385.0A Active CN110061813B (en) 2019-04-09 2019-04-09 Data encoding method, data decoding method and related devices

Country Status (1)

Country Link
CN (1) CN110061813B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452480A (en) * 2021-06-21 2021-09-28 青岛海尔科技有限公司 Data transmission method and device and data receiving method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103630A (en) * 2010-12-08 2011-06-22 中国联合网络通信集团有限公司 Data compression method and device as well as data decompression method and device
CN102215395A (en) * 2010-04-09 2011-10-12 华为技术有限公司 Video coding and decoding method and device
CN102263560A (en) * 2010-05-28 2011-11-30 富士通株式会社 Differential encoding method and system
CN103905742A (en) * 2014-04-10 2014-07-02 北京数码视讯科技股份有限公司 Video file segmentation method and device
US20160309150A1 (en) * 2010-10-01 2016-10-20 Dolby International Ab Nested Entropy Encoding
CN109474390A (en) * 2017-09-08 2019-03-15 北京展讯高科通信技术有限公司 Method, sending device, computer-readable medium and the system that data retransmit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215395A (en) * 2010-04-09 2011-10-12 华为技术有限公司 Video coding and decoding method and device
CN102263560A (en) * 2010-05-28 2011-11-30 富士通株式会社 Differential encoding method and system
US20160309150A1 (en) * 2010-10-01 2016-10-20 Dolby International Ab Nested Entropy Encoding
CN102103630A (en) * 2010-12-08 2011-06-22 中国联合网络通信集团有限公司 Data compression method and device as well as data decompression method and device
CN103905742A (en) * 2014-04-10 2014-07-02 北京数码视讯科技股份有限公司 Video file segmentation method and device
CN109474390A (en) * 2017-09-08 2019-03-15 北京展讯高科通信技术有限公司 Method, sending device, computer-readable medium and the system that data retransmit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何世钧 等: "海洋环境实时监控系统差分压缩算法", 《测控技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452480A (en) * 2021-06-21 2021-09-28 青岛海尔科技有限公司 Data transmission method and device and data receiving method and device

Also Published As

Publication number Publication date
CN110061813B (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN104735671B (en) A kind of method and apparatus of identification malicious call
CN104837042B (en) The coding method of digital multimedia data and device
CN104834529A (en) Method and device for optimizing performance of application
CN104852885A (en) Method, device and system for verifying verification code
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN103346921B (en) User management method and relevant device and communication system
CN104598476A (en) Message aggregation display method and information display method and relevant device
CN103399633A (en) Wireless remote control method and mobile terminal
CN104427074A (en) Method, device and system for displaying incoming information
CN103389863A (en) Display control method and device
CN104134043B (en) Content is hidden, separates method, device and the terminal hidden
CN109525372A (en) Terminal data transmission method, apparatus and storage medium
CN103546632A (en) Method and device for alarm ringing of mobile terminal and mobile terminal
CN104915625A (en) Face identification method and apparatus
CN104793879A (en) Object selection method on terminal equipment and terminal equipment
CN106210514B (en) It takes pictures the method, apparatus and smart machine of focusing
CN109656431A (en) Information display method, device and storage medium
CN109687922A (en) Signal monitoring method, device, storage medium and the mobile terminal of wireless network
CN104135396B (en) Show the method for network speed information, device and terminal
CN103501373A (en) Method, device and terminal for making call
CN110061813A (en) A kind of data-encoding scheme and coding/decoding method and relevant apparatus
CN105282330B (en) The method and device of automatic connection network
CN104599129A (en) Affirming method and device for executing operation
CN103457832A (en) Information management method, device and terminal
CN106851023B (en) Method and equipment for quickly making call and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220907

Address after: 8th Floor, TCL Technology Building, No. 17, Huifeng 3rd Road, Zhongkai High-tech Zone, Huizhou City, Guangdong Province, 516006

Applicant after: Huizhou Zhongkai TCL Zhirong Technology Micro-loan Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Applicant before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

GR01 Patent grant
GR01 Patent grant