CN105262491A - Data compression method, data compression system, data decompression method, data decompression system and communication equipment - Google Patents

Data compression method, data compression system, data decompression method, data decompression system and communication equipment Download PDF

Info

Publication number
CN105262491A
CN105262491A CN201510669730.5A CN201510669730A CN105262491A CN 105262491 A CN105262491 A CN 105262491A CN 201510669730 A CN201510669730 A CN 201510669730A CN 105262491 A CN105262491 A CN 105262491A
Authority
CN
China
Prior art keywords
data
compression
communication equipment
acquisition
identifier
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.)
Pending
Application number
CN201510669730.5A
Other languages
Chinese (zh)
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.)
Shenzhen Neoway Technology Co Ltd
Original Assignee
Shenzhen Neoway Technology 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 Shenzhen Neoway Technology Co Ltd filed Critical Shenzhen Neoway Technology Co Ltd
Priority to CN201510669730.5A priority Critical patent/CN105262491A/en
Publication of CN105262491A publication Critical patent/CN105262491A/en
Pending legal-status Critical Current

Links

Abstract

An embodiment of the invention discloses a data compression method, a data compression system, a data decompression method, a data decompression system and communication equipment. The data compression method comprises the steps of presetting a correspondence whether the user equipment requires compression of generated data; when data which are generated by one set of user equipment are acquired, determining whether compression of the acquired data is required according to the correspondence; when compression of the acquired data is not required, identifying the acquired data as uncompressed data by a first identifier; when compression of the acquired data is required, compressing the obtained data; and identifying the data which are obtained through compression as compressed data by a second identifier. According to the data compression method, the data compression system, the data decompression method, the data decompression system and communication equipment, the acquired data are selectively compressed, and a communication equipment burden which is caused by unnecessary compression can be reduced. Furthermore the data are compressed, and then transmission is performed. Not only is transmission cost reduced, but also a network resource required in a data transmission process can be saved.

Description

Data compression method and system, uncompressing data and system, communication equipment
Technical field
The present invention relates to technical field of data processing, particularly relate to a kind of data compression method and system, uncompressing data and system, communication equipment.
Background technology
The arrival in large data and Internet of Things epoch, brings very large market to Internet of Things wireless terminal.The transmission of wireless terminal data depends on the network of common carrier, and mass data must produce googol according to flow by Internet Transmission.Prior art is that the data that Wireless Telecom Equipment collects directly are transferred to recipient by public network without process.What this process was transmitted is initial data, and the data volume of undressed initial data is very large.And in existing GPRS network, upstream data is not high, only has about 20kbps, for a transmission bottleneck beyond doubt of large data.
Summary of the invention
The embodiment of the invention discloses a kind of data compression method and system, uncompressing data and system, communication equipment, to solve the problems of the technologies described above.
Data compression method disclosed in the embodiment of the present invention, be applied to communication equipment, described communication equipment is connected with at least one subscriber equipment, to obtain the data that at least one subscriber equipment described produces, described method comprises: to pre-set at least one subscriber equipment described each subscriber equipment with the need of the corresponding relation compressed the data produced; When obtaining the data that one of them subscriber equipment produces, judge whether to need to compress the data of described acquisition according to described corresponding relation; When not needing to compress the data of described acquisition, be unpressed data with the first identifier by the Data Identification of described acquisition; When needing to compress the data of described acquisition, the data of described acquisition are compressed; And be the data of compression by the Data Identification that obtains through overcompression with the second identifier.
Further, the described data to described acquisition are carried out compression and are specially: the length judging the data of described acquisition; When the length of the data of described acquisition is less than or equal to preset length, the data of described acquisition are compressed; And when the length of the data of described acquisition is greater than described preset length, from the described data obtained, intercepted length is the data of described preset length, the data intercepted are compressed, and the un-compressed data of buffer memory.
Further, the described data to described acquisition are carried out compression and are specially: judge the number of times that the character string that in the data of described acquisition, each is made up of adjacent character repeats in the data of described acquisition, set up the corresponding relation of character string and index according to described judged result; And according to described corresponding relation, index symbol corresponding for the character string repeated in the data of described acquisition is replaced, to compress the data of described acquisition.
Further, described method also comprises: when detecting described communication equipment and being connected to another communication equipment, by the transfer of data of the unpressed data of described acquisition or compression to another communication equipment described.
The embodiment of the present invention also discloses a kind of uncompressing data, be applied to communication equipment, described communication equipment is connected with another communication equipment, to receive the data of another communication device transfers described, described method comprises: when described communication equipment receives the data of another communication device transfers described, decompose the data of described acquisition, obtain the identifier in the data of described acquisition; Judge that described identifier is the first identifier or the second identifier; When described first identifier is the first identifier, judge that the data of described acquisition are unpressed data, and when described identifier is the second identifier, judge that the data of described acquisition are the data of compression; The data of described compression are decompressed; And the unpressed data of described acquisition or the data that obtain after decompressing are operated.
The embodiment of the present invention also discloses a kind of data compression system, run in communication equipment, described communication equipment is connected with at least one subscriber equipment, to obtain the data that at least one subscriber equipment described produces, described data compression system comprises: arrange module, for pre-set at least one subscriber equipment described each subscriber equipment with the need of the corresponding relation compressed the data produced; Judge module, for when obtaining the data that one of them subscriber equipment produces, judges whether to need to compress the data of described acquisition according to described corresponding relation; The Data Identification of described acquisition, for when not needing to compress the data of described acquisition, is unpressed data with the first identifier by the first identification module; Compression module, for when needing to compress the data of described acquisition, compresses the data of described acquisition; And second identification module, for the second identifier by the Data Identification obtained through overcompression being the data of compression.
Further, it is the length of the data judging described acquisition for described compression module that the data of described compression module to described acquisition are compressed, and when the length of the data of described acquisition is less than or equal to preset length, the data of described acquisition are compressed, and when the length of the data of described acquisition is greater than described preset length, from the described data obtained, intercepted length is the data of described preset length, compresses the data intercepted, and the un-compressed data of buffer memory.
Further, it is for described compression module judges the number of times that the character string that in the data of described acquisition, each is made up of adjacent character repeats in the data of described acquisition that the data of described compression module to described acquisition are compressed, the corresponding relation of character string and index is set up according to described judged result, and according to described corresponding relation, index symbol corresponding for the character string repeated in the data of described acquisition is replaced, to compress the data of described acquisition.
The embodiment of the present invention also discloses a kind of data decompression system, run in communication equipment, described communication equipment is connected with another communication equipment, to receive the data of another communications described, described data decompression system comprises: identifier acquisition module, for when described communication equipment receives data, decompose the data of described acquisition, obtain the identifier in the data of described acquisition; Judge module, for judging that the identifier of described acquisition is the first identifier or the second identifier, and when described identifier is the first identifier, judge that the data of described acquisition are unpressed data, when described identifier is the second identifier, judge that the data of described acquisition are the data of compression; Decompression module, for decompressing the data of described compression; And operational module, for operating the unpressed data of described acquisition or the data that obtain after decompressing.
The embodiment of the present invention also discloses a kind of communication equipment, described communication equipment comprises memory, processor, the first communication interface and second communication interface, described communication equipment is connected with at least one subscriber equipment by described first communication interface, and be connected with another communication equipment by described second communication interface, described memory stores data compression system as above, and described processor calls and runs each functional module of described data compression system.
The embodiment of the present invention also discloses a kind of communication equipment, described communication equipment comprises memory, processor and communication interface, described communication equipment is connected with another communication equipment by described communication interface, described memory stores data decompression system as above, and described processor calls and runs each functional module of described data decompression system.
The present invention has following technical characteristic: to pre-set at least one subscriber equipment described each subscriber equipment with the need of the corresponding relation compressed the data produced; When obtaining the data that one of them subscriber equipment produces, judge whether to need to compress the data of described acquisition according to described corresponding relation; When not needing to compress the data of described acquisition, be unpressed data with the first identifier by the Data Identification of described acquisition; When needing to compress the data of described acquisition, the data of described acquisition are compressed; And be the data of compression by the Data Identification that obtains through overcompression with the second identifier.Therefore, in the present invention, optionally the data that the subscriber equipment obtained produces are compressed, the burden that unnecessary compression brings to communication equipment can be reduced.Further, need the data of compression in transmission before, first packed data, transmits after compression again, can reduce transmission cost, improves transmission speed, also can save Internet resources required in data transmission procedure simultaneously, provide the bearing capacity of Internet Transmission widely.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of data compression method in the first execution mode of the present invention;
Fig. 2 is the Organization Chart of applied environment in one embodiment of the present invention;
Fig. 3 is the flow chart of data compression method in the second execution mode of the present invention;
Fig. 4 is the flow chart of uncompressing data in one embodiment of the present invention;
Fig. 5 is the basic structure schematic diagram of communication equipment in one embodiment of the present invention;
Fig. 6 is the functional block diagram of data compression system in the first execution mode of the present invention;
Fig. 7 is the functional block diagram of data compression system in the second execution mode of the present invention;
Fig. 8 is the basic structure schematic diagram of communication equipment in one embodiment of the present invention; And
Fig. 9 is the functional block diagram of data decompression system in one embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
With reference to figure 1 and Fig. 2, the data compression method in the first execution mode of the present invention is applied in communication equipment 20.Communication equipment 20 is connected with at least one subscriber equipment 10 (Fig. 2 illustrates two subscriber equipmenies 10, to explain), can obtain the data that subscriber equipment 10 produces, to monitor subscriber equipment 10.Communication equipment 20 can be server, and subscriber equipment 10 can be and carries out by CAN (CAN, controller area network) bus and communication equipment 20 equipment that communicates.Communication equipment 20 is also connected with communication equipment 30 by network (such as GPRS network, local area network (LAN) etc.), communication equipment 30 is transferred to the data produced by the subscriber equipment 10 of acquisition, operate with the data produced subscriber equipment 10, such as to data analysis, to obtain the state etc. of subscriber equipment 10.Communication equipment 30 can be personal computer.If data waiting for transmission are larger, then the flow produced in data transmission procedure is large, causes transmission cost to increase.Further, if current network speed is not high, when the data volume transmitted is larger, data transmission bauds is slow.Therefore, in the data compression method that the present embodiment provides, before the data obtained from subscriber equipment 10 are transferred to communication equipment 30 by communication equipment 20, first packed data, transfer to communication equipment 30 again after compression, can transmission cost be reduced, improve transmission speed, also can save Internet resources required in data transmission procedure simultaneously, provide the bearing capacity of Internet Transmission widely.
Further, in present embodiment, the interface that user can be provided by communication equipment 20 is in advance arranged to be compressed the need of to the data obtained from subscriber equipment 10.Optionally the data that the subscriber equipment 10 obtained produces are compressed, the burden that unnecessary compression brings to communication equipment 20 can be reduced.
The data compression method that the embodiment of the present invention provides comprises:
Step 101, to pre-set at least one subscriber equipment 10 each subscriber equipment 10 with the need of the corresponding relation compressed the data produced.
Alternatively, the interface that user can be provided by communication equipment 20 is in advance arranged to be compressed the need of to the data obtained from subscriber equipment 10.Such as, after subscriber equipment A is connected to communication equipment 20, communication equipment 20 shows an interface, selects to compress the need of to the data obtained from subscriber equipment A for user.If user selects to be that, then in described corresponding relation, subscriber equipment A carries out compressing corresponding with needs to the data produced.If user selects no, then in described corresponding relation, subscriber equipment A be with do not need to carry out compressing to the data produced corresponding.
Step 102, when obtaining the data that one of them subscriber equipment 10 produces, judges whether to need the data to obtaining to compress according to described corresponding relation.When the data obtained being compressed if do not need, perform step 103, otherwise perform step 104.
Such as, the data that current acquisition subscriber equipment A produces, in corresponding relation, subscriber equipment A is and does not need to carry out compressing to the data produced corresponding, then judge not need the data to current acquisition to compress.
The Data Identification of acquisition is unpressed data with the first identifier by step 103.
Step 104, the data that compression obtains.
The Data Identification that obtains through overcompression is the data of compression with the second identifier by step 105.
The data that compression obtains specifically can be: the length judging the data obtained; When the length of the data obtained is less than or equal to preset length, the data obtained are compressed; And when the length of the data obtained is greater than preset length, from the data obtained, intercepted length is the data of preset length, and the data intercepted are compressed, and the un-compressed data of buffer memory.The data of buffer memory can upper once compress time compressed.
The data obtained are compressed and specifically be can be: judges the number of times that in the data obtained, each character string be made up of adjacent character repeats in the data of described acquisition, set up according to judged result the corresponding relation that character string and index accord with; And according to described corresponding relation, index symbol corresponding for the character string repeated in the data of acquisition is replaced, to compress the data of acquisition.Such as, if the data obtained are " AaBCcAaBAaBDdAaB...... ", judge that the number of times that character string AaB repeats is higher, when then compressing the data of acquisition, index of reference symbol " & " replace character string " AaB ", then the compression obtained data are " & Cc & & Dd & ... ".
Particularly, when compressing the data obtained, also the corresponding relation that character string and index accord with can be write in the data compressed, so that the data compressed can be reduced.
Alternatively, also by the data of the information write compressions such as compression ratio, and specific frame head and postamble can be added in the data, to ensure integrality and the fail safe of transfer of data.
In present embodiment, optionally the data that the subscriber equipment 10 obtained produces are compressed, the burden that unnecessary compression brings to communication equipment 20 can be reduced.Further, before the transfer of data that will need to compress to communication equipment 30, first packed data, communication equipment 30 is transferred to again after compression, transmission cost can be reduced, improve transmission speed, also can save Internet resources required in data transmission procedure simultaneously, provide the bearing capacity of Internet Transmission widely.
With reference to figure 3, the data compression method in the second execution mode of the present invention comprises:
Step 201, to pre-set at least one subscriber equipment 10 each subscriber equipment 10 with the need of the corresponding relation compressed the data produced.
Step 202, when obtaining the data that one of them subscriber equipment 10 produces, judges whether to need the data to obtaining to compress according to described corresponding relation.If do not need the data to obtaining to compress, perform step 203, otherwise perform step 204.
The Data Identification of acquisition is unpressed data with the first identifier by step 203, then performs step 206.
Step 204, the data that compression obtains.
The Data Identification obtained through overcompression is the data of compression, then execution step 206 with the second identifier by step 205.
Step 206, whether detecting communication equipment 20 is connected to communication equipment 30.If so, perform step 207, otherwise perform step 208.
In step 207, by the transfer of data of unpressed data or compression to communication equipment 30.
In step 208, store the data of unpressed data or compression.When communication equipment 20 is connected with communication equipment 30, by the transfer of data of storage to communication equipment 30.
In present embodiment, step 201 is identical to 105 with the step 101 in the first execution mode to step 205, is not described in detail at this.
In present embodiment, when communication equipment 20 is connected to communication equipment 30, send data to communication equipment 30 immediately, the promptness of transfer of data can be ensured.
With reference to figure 4, the embodiment of the present invention provides a kind of uncompressing data.The method is applied in the communication equipment 30 in Fig. 2, for reducing the data obtained from communication equipment 20.This uncompressing data comprises:
Step 401, when receiving data from communication equipment 20, decomposing the data obtained, obtaining the identifier in the data obtained.
Step 402, judges that the identifier obtained is the first identifier or the second identifier.If be the first identifier, perform step 403, if be the second identifier, perform step 404.
Step 403, judges that the data obtained are unpressed data, then performs step 406
Step 404, judges that the data obtained are the data of compression.
The data of compression are decompressed by step 405, then perform step 406.
The data obtained after compression are carried out decompressing and specifically can be: decompose the data obtained, to obtain the information for decompress(ion) of embedding, and according to the anti-structure concordance list of information for decompress(ion), to reduce the data compressed.Wherein, at least comprise for the information of decompress(ion) the corresponding relation that character string and index accord with; .
Step 406, operates the data obtained after the unpressed data obtained or decompression.Such as to the data analysis obtained, thus obtain the state etc. of subscriber equipment 10.
With reference to figure 5 and Fig. 6, the data compression system 100 of the first embodiment of the present invention operates in communication equipment 20.Communication equipment 20 comprises memory 21, processor 22, first communication interface 23 and second communication interface 24.Communication equipment 20 is connected with at least one subscriber equipment 10 by the first communication interface 23, is connected with communication equipment 30 by second communication interface 24.Communication equipment 20 is connected with at least one subscriber equipment 10 by CAN, obtains the data that subscriber equipment 10 produces, to monitor subscriber equipment 10.Communication equipment 20 is connected with communication equipment 30 by network (such as GPRS network, local area network (LAN) etc.), by the transfer of data that obtains from subscriber equipment 10 to communication equipment 30, operate with the data produced subscriber equipment 10, such as to data analysis, thus obtain the state etc. of subscriber equipment 10.Communication equipment 20 can be server, and communication equipment 30 can be personal computer.
With reference to figure 6, in present embodiment, data compression system 100 comprises and arranges module 101, judge module 102, first identification module 103, compression module 104 and the second identification module 105.Above modules can be stored in memory 21, is called and run by processor 22, with the data compression function of executive communication equipment 20.Above modules also can be the software program be solidificated in processor 22.
Module 101 is set, for pre-set at least one subscriber equipment 10 each subscriber equipment 10 with the need of the corresponding relation compressed the data produced.
Alternatively, the interface that user can be provided by communication equipment 20 is in advance arranged to be compressed the need of the data transmitted subscriber equipment 10.Such as, after subscriber equipment A is connected to communication equipment 20, communication equipment 20 shows an interface, selects to compress the need of the data transmitted subscriber equipment A for user.If user selects to be that, then in described corresponding relation, subscriber equipment A carries out compressing corresponding with needs to the data produced.If user selects no, then in described corresponding relation, subscriber equipment A be with do not need to carry out compressing to the data produced corresponding.
Judge module 102, for when obtaining the data that one of them subscriber equipment 10 produces, judges whether to need the data to obtaining to compress according to described corresponding relation.
Such as, the data that current acquisition subscriber equipment A produces, in corresponding relation, subscriber equipment A is and does not need to carry out compressing to the data produced corresponding, then judge not need the data to current acquisition to compress.
First identification module 103, for being unpressed data with the first identifier by the Data Identification of acquisition.
Compression module 104, for compressing the data of acquisition.
Compression module 104 compresses the data obtained: the length judging the data obtained; When the length of the data obtained is less than or equal to preset length, the data obtained are compressed, and when the length of the data obtained is greater than preset length, from the data obtained, intercepted length is the data of preset length, the data intercepted are compressed, and the un-compressed data of buffer memory.The data of buffer memory can upper once compress time compressed.
Compression module 104 compresses the data obtained: judge the number of times that in the data obtained, each character string be made up of adjacent character repeats in the data of described acquisition, the corresponding relation that character string and index accord with is set up according to judged result, and according to described corresponding relation, index symbol corresponding for the character string repeated in the data of acquisition is replaced, to compress the data of acquisition.Such as, if the data obtained are " AaBCcAaBAaBDdAaB...... ", judge that the number of times that character string AaB repeats is higher, when then compressing the data of acquisition, index of reference symbol " & " replace character string " AaB ", then the compression obtained data are " & Cc & & Dd & ... ".
Particularly, when compressing the data obtained, also the corresponding relation that character string and index accord with can be write in the data compressed, so that the data compressed can be reduced.
Alternatively, also by the data of the information write compressions such as compression ratio, and specific frame head and postamble can be added in the data, to ensure integrality and the fail safe of transfer of data.
In present embodiment, optionally the data that subscriber equipment 10 transmits are compressed, the burden that unnecessary compression brings to communication equipment 20 can be reduced.Further, before the transfer of data that will need to compress to communication equipment 30, first packed data, communication equipment 30 is transferred to again after compression, transmission cost can be reduced, improve transmission speed, also can save Internet resources required in data transmission procedure simultaneously, provide the bearing capacity of Internet Transmission widely.
With reference to figure 7, the data compression system 200 that the second embodiment of the present invention provides operates in communication equipment 20.Data compression system 200 comprises and arranges module 201, judge module 202, first identification module 203, compression module 204, second identification module 205, detecting module 206, transport module 207 and memory module 208.Above modules can be stored in memory 21, is called by processor 22, with the data compression function of executive communication equipment 20.Above modules also can be the software program be solidificated in processor 22.
Arrange module 201, judge module 202, first identification module 203, compression module 204 and the second identification module 205 with in data compression system 100 to arrange module 101, judge module 102, first identification module 103, compression module 104 and the second identification module 105 identical, be not described in detail at this.
Whether detecting module 206, be connected to communication equipment 30 for detecting communication equipment 20.
The data of unpressed data or compression, for when communication equipment 20 is connected to communication equipment 30, are transferred to communication equipment 30 by transport module 207.The data being transferred to communication equipment 30 can be the unpressed data of current acquisition or work as the data of the compression that pre-treatment obtains and the data of the unpressed data be stored in memory 21 or compression.
Memory module 208, for storing the data of unpressed data or compression.Detecting after communication equipment 20 is connected with communication equipment 30, transport module 207 can immediately by the transfer of data that stores to communication equipment 30.
In present embodiment, when communication equipment 20 is connected to communication equipment 30, immediately data are transferred to communication equipment 30 from communication equipment 20, the promptness of transfer of data can be ensured.
With reference to figure 8 and Fig. 9, the embodiment of the present invention provides a kind of data decompression system 300.Data decompression system 300 operates in communication equipment 30.Communication equipment 30 comprises memory 31, processor 32 and communication interface 33.Communication equipment 30 is connected with communication equipment 20 by communication interface 33, such as, be connected with communication equipment 20 by network (such as internet), the data transmitted with received communication equipment 20.Communication equipment 20 can be server, and communication equipment 30 can be personal computer.
With reference to figure 9, in present embodiment, data decompression system 300 comprises identifier acquisition module 301, judge module 302, decompression module 303 and operational module 304.Above modules can be stored in memory 31, is called by processor 32, with the data decompression function of executive communication equipment 30.Above modules also can be the software program be solidificated in processor 32.
Identifier acquisition module 301, for when communication equipment 30 receives data, decomposes the data obtained, obtains the identifier in the data obtained.
Judge module 302, for judging that the identifier obtained is the first identifier or the second identifier.Judge module 302, also for when the identifier judging to obtain is the first identifier, judges that the data obtained are unpressed data, and when the identifier judging to obtain is the second identifier, judges that the data obtained are the data of compression.
Decompression module 303, for decompressing the data of compression.
The data of compression carry out decompressing by decompression module 303: decompose the data obtained, to obtain the information for decompress(ion) embedded, and according to the data that the information reverting for decompress(ion) compresses, wherein, the information for decompress(ion) at least comprises the corresponding relation that character string and index accord with.
Operational module 304, for operating, such as, to data analysis, to obtain the state etc. of subscriber equipment 10 data obtained after the unpressed data obtained or decompression.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium comprises read-only memory (Read-OnlyMemory, ROM), random asccess memory (RandomAccessMemory, RAM), programmable read only memory (ProgrammableRead-onlyMemory, PROM), Erasable Programmable Read Only Memory EPROM (ErasableProgrammableReadOnlyMemory, EPROM), disposable programmable read-only memory (One-timeProgrammableRead-OnlyMemory, OTPROM), the electronics formula of erasing can make carbon copies read-only memory (Electrically-ErasableProgrammableRead-OnlyMemory, EEPROM), read-only optical disc (CompactDiscRead-OnlyMemory, or other disk storages CD-ROM), magnetic disc store, magnetic tape storage, or can be used in any other medium computer-readable carrying or store data.
Apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (11)

1. a data compression method, is applied to communication equipment, and described communication equipment is connected with at least one subscriber equipment, and to obtain the data that at least one subscriber equipment described produces, it is characterized in that, described method comprises:
To pre-set at least one subscriber equipment described each subscriber equipment with the need of the corresponding relation compressed the data produced;
When obtaining the data that one of them subscriber equipment produces, judge whether to need to compress the data of described acquisition according to described corresponding relation;
When not needing to compress the data of described acquisition, be unpressed data with the first identifier by the Data Identification of described acquisition;
When needing to compress the data of described acquisition, the data of described acquisition are compressed; And
Be the data of compression by the Data Identification that obtains through overcompression with the second identifier.
2. data compression method according to claim 1, is characterized in that, the described data to described acquisition are carried out compression and are specially:
Judge the length of the data of described acquisition;
When the length of the data of described acquisition is less than or equal to preset length, the data of described acquisition are compressed; And
When the length of the data of described acquisition is greater than described preset length, from the described data obtained, intercepted length is the data of described preset length, compresses the data intercepted, and the un-compressed data of buffer memory.
3. data compression method as claimed in claim 1 or 2, it is characterized in that, the described data to described acquisition are carried out compression and are specially:
Judge the number of times that the character string that in the data of described acquisition, each is made up of adjacent character repeats in the data of described acquisition, set up the corresponding relation of character string and index according to described judged result; And
According to described corresponding relation, index symbol corresponding for the character string repeated in the data of described acquisition is replaced, to compress the data of described acquisition.
4. data compression method as claimed in claim 1, it is characterized in that, described method also comprises:
When detecting described communication equipment and being connected to another communication equipment, by the transfer of data of the unpressed data of described acquisition or compression to another communication equipment described.
5. a uncompressing data, is applied to communication equipment, and described communication equipment is connected with another communication equipment, and to receive the data of another communication device transfers described, it is characterized in that, described method comprises:
When described communication equipment receives the data of another communication device transfers described, decompose the data of described acquisition, obtain the identifier in the data of described acquisition;
Judge that described identifier is the first identifier or the second identifier;
When described first identifier is the first identifier, judge that the data of described acquisition are unpressed data, and when described identifier is the second identifier, judge that the data of described acquisition are the data of compression;
The data of described compression are decompressed; And
The unpressed data of described acquisition or the data that obtain after decompressing are operated.
6. a data compression system, runs in communication equipment, and described communication equipment is connected with at least one subscriber equipment, and to obtain the data that at least one subscriber equipment described produces, it is characterized in that, described data compression system comprises:
Module is set, for pre-set at least one subscriber equipment described each subscriber equipment with the need of the corresponding relation compressed the data produced;
Judge module, for when obtaining the data that one of them subscriber equipment produces, judges whether to need to compress the data of described acquisition according to described corresponding relation;
The Data Identification of described acquisition, for when not needing to compress the data of described acquisition, is unpressed data with the first identifier by the first identification module;
Compression module, for when needing to compress the data of described acquisition, compresses the data of described acquisition; And
Second identification module, for the second identifier by the Data Identification that obtains through overcompression being the data of compression.
7. data compression system as claimed in claim 6, it is characterized in that, it is the length of the data judging described acquisition for described compression module that the data of described compression module to described acquisition are compressed, and when the length of the data of described acquisition is less than or equal to preset length, the data of described acquisition are compressed, and when the length of the data of described acquisition is greater than described preset length, from the described data obtained, intercepted length is the data of described preset length, the data intercepted are compressed, and the un-compressed data of buffer memory.
8. data compression system as claimed in claims 6 or 7, it is characterized in that, it is for described compression module judges the number of times that the character string that in the data of described acquisition, each is made up of adjacent character repeats in the data of described acquisition that the data of described compression module to described acquisition are compressed, the corresponding relation of character string and index is set up according to described judged result, and according to described corresponding relation, index symbol corresponding for the character string repeated in the data of described acquisition is replaced, to compress the data of described acquisition.
9. a data decompression system, runs in communication equipment, and described communication equipment is connected with another communication equipment, and to receive the data of another communication device transfers described, it is characterized in that, described data decompression system comprises:
Identifier acquisition module, during for receiving the data of another communication device transfers described at described communication equipment, decomposes the data of described acquisition, obtains the identifier in the data of described acquisition;
Judge module, for judging that the identifier of described acquisition is the first identifier or the second identifier, and when described identifier is the first identifier, judge that the data of described acquisition are unpressed data, when described identifier is the second identifier, judge that the data of described acquisition are the data of compression;
Decompression module, for decompressing the data of described compression; And
Operational module, for operating the unpressed data of described acquisition or the data that obtain after decompressing.
10. a communication equipment, described communication equipment comprises memory, processor, the first communication interface and second communication interface, described communication equipment is connected with at least one subscriber equipment by described first communication interface, and be connected with another communication equipment by described second communication interface, it is characterized in that, described memory stores the data compression system as described in claim 6 to 8, and described processor calls and runs each functional module of described data compression system.
11. 1 kinds of communication equipments, described communication equipment comprises memory, processor and communication interface, described communication equipment is connected with another communication equipment by described communication interface, it is characterized in that, described memory stores data decompression system as claimed in claim 9, and described processor calls and runs each functional module of described data decompression system.
CN201510669730.5A 2015-10-13 2015-10-13 Data compression method, data compression system, data decompression method, data decompression system and communication equipment Pending CN105262491A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510669730.5A CN105262491A (en) 2015-10-13 2015-10-13 Data compression method, data compression system, data decompression method, data decompression system and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510669730.5A CN105262491A (en) 2015-10-13 2015-10-13 Data compression method, data compression system, data decompression method, data decompression system and communication equipment

Publications (1)

Publication Number Publication Date
CN105262491A true CN105262491A (en) 2016-01-20

Family

ID=55102027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510669730.5A Pending CN105262491A (en) 2015-10-13 2015-10-13 Data compression method, data compression system, data decompression method, data decompression system and communication equipment

Country Status (1)

Country Link
CN (1) CN105262491A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108076124A (en) * 2016-11-10 2018-05-25 中国科学院声学研究所 A kind of compression method towards high speed http network gathered data
CN108184082A (en) * 2018-01-22 2018-06-19 豪威科技(上海)有限公司 Image data transmission system and method
CN108880559A (en) * 2017-05-12 2018-11-23 杭州海康威视数字技术股份有限公司 Data compression method, uncompressing data, compression device and decompression apparatus
CN110958212A (en) * 2018-09-27 2020-04-03 阿里巴巴集团控股有限公司 Data compression method, data decompression method, device and equipment

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108076124A (en) * 2016-11-10 2018-05-25 中国科学院声学研究所 A kind of compression method towards high speed http network gathered data
CN108076124B (en) * 2016-11-10 2020-05-26 中国科学院声学研究所 Compression method for high-speed HTTP network-oriented collected data
CN108880559A (en) * 2017-05-12 2018-11-23 杭州海康威视数字技术股份有限公司 Data compression method, uncompressing data, compression device and decompression apparatus
CN108880559B (en) * 2017-05-12 2022-03-04 杭州海康威视数字技术股份有限公司 Data compression method, data decompression method, compression equipment and decompression equipment
CN108184082A (en) * 2018-01-22 2018-06-19 豪威科技(上海)有限公司 Image data transmission system and method
CN110958212A (en) * 2018-09-27 2020-04-03 阿里巴巴集团控股有限公司 Data compression method, data decompression method, device and equipment
CN110958212B (en) * 2018-09-27 2022-04-12 阿里巴巴集团控股有限公司 Data compression method, data decompression method, device and equipment

Similar Documents

Publication Publication Date Title
CN109117361B (en) Remote debugging method, related equipment and system for small program
CN106936441A (en) A kind of data compression method and device
CN105262491A (en) Data compression method, data compression system, data decompression method, data decompression system and communication equipment
CN106658756B (en) Method and device for identifying connection between terminal equipment and hotspot
CN107741899B (en) Method, device and system for processing terminal data
CN104144081A (en) General application log management method, device and system
CN107545424B (en) Data monitoring processing method, device and system
CN102571820A (en) Method used for transmitting data, compression server and terminal
CN113114706B (en) Multichannel Ethernet message processing method based on power chip
CN112686358A (en) Data transmission method, NFC electronic tag, terminal device and storage medium
WO2013097812A1 (en) Method and system for downloading font file
CN112202939A (en) Method, device and storage medium for compressing and decompressing IP address and transmitting and receiving message
CN104123244A (en) USB redirection system and method
CN103580726B (en) User identification card, Bluetooth device and method for accessing user identification card
CN111831540A (en) Debugging information processing method, processing device and storage medium
CN104202432B (en) Remote web management system and management method
CN109213737A (en) A kind of data compression method and apparatus
CN112335202B (en) Processing local area network diagnostic data
CN104038307A (en) Data stream transmission system and method
CN105302617A (en) Method and sever for downloading application program
CN114244911A (en) Voice analysis method and device, receiving terminal equipment and storage medium
CN109981674B (en) Remote procedure calling method, device, equipment and medium
CN109995589B (en) Log collection method and system
CN112335203A (en) Processing local area network diagnostic data
CN111400630A (en) Resource preloading method and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120