CN110618960B - Data stepped compression transmission method, device for realizing method and electronic equipment - Google Patents
Data stepped compression transmission method, device for realizing method and electronic equipment Download PDFInfo
- Publication number
- CN110618960B CN110618960B CN201810630715.3A CN201810630715A CN110618960B CN 110618960 B CN110618960 B CN 110618960B CN 201810630715 A CN201810630715 A CN 201810630715A CN 110618960 B CN110618960 B CN 110618960B
- Authority
- CN
- China
- Prior art keywords
- data
- compressed
- transmission
- words
- word
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M7/3059—Digital compression and data reduction techniques where the original information is represented by a subset or similar information, e.g. lossy compression
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M7/00—Conversion of a code where information is represented by a given sequence or number of digits to a code where the same, similar or subset of information is represented by a different sequence or number of digits
- H03M7/30—Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- H03M7/40—Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
The invention relates to a data hierarchical compression transmission method, a device for realizing the method and electronic equipment. Setting Z data thresholds, and respectively setting a threshold interval code for each threshold interval; according to the threshold interval in which the numerical value of the data word is located, replacing the numerical value of each data word with the threshold interval code of the threshold interval in which the numerical value of each data word is located, and forming an interval code data word; combining the threshold interval codes of more than two interval code data words into a compressed data word; and transmitting the compressed transmission data frame formed by the compressed data words to the master device, and decompressing the compressed transmission data frame into interval code data words by the master device. The invention reserves the characteristic points of the transmission data through multi-order threshold quantization, greatly reduces the occupied digits of the data values of the data words under the condition of not influencing the point reporting rate requirement, ensures the data quantity of the transmission data compressed by combining a plurality of data words without distortion, and has high compression rate.
Description
Technical Field
The present invention relates to a data processing method and a device and an apparatus for performing the data processing method, and more particularly, to a method of data compression transmission and a device and an apparatus for performing the method.
Background
Short for I 2 The communication mode of Inter-Integrated Circuit bus inside the integrated circuit of the C bus is commonly used because of the easy realization, however, the prior art adopts I 2 One of the drawbacks of the C-bus communication scheme is that the data transfer rate is limited. For example, when I is adopted 2 When Touch Panel data is transmitted in a C bus communication mode, touch Panel is abbreviated as TP and I 2 The rate specified by the C bus communication protocol is 100kbit/s to 400kbit/s, and the TP data reporting rate requires 120 frames/s, and the time for transmitting one frame of TP data is about 8.33ms. For one-frame TP data reporting, the algorithm itself occupies about 5ms, and the reporting data is only 3ms, so that I is adopted 2 The communication rate of the C bus is 400kbit/s, the reporting rate is 120Hz, and the reported data quantity of 3ms is as follows:
(400000/8/1000)×3 = 150 byte
the data packet of the TP data includes basic data and extension data. The common 10-point Touch Data packet Touch Package is used as basic Data, and the extension Data comprises original Data Raw Data used for algorithm expansion, preprocessing Data obtained by subtracting basic Data BaseData, gesture track Data reported and the like. Then, of the 150 byte data volume, 10 Touch data packets Touch Package already occupy 52 bytes, and the remaining 98 bytes are used as extension data.
A typical spread data is shown in FIG. 1 and comprises a 32X 18 matrix of 18 rows and 32 columns of data channels, each data channel having a data value of 16 bits binary number, then the data shown in FIG. 1 needs to pass I 2 The amount of extended data transmitted by the C bus is:
(32×18×16)/8 = 1152 byte
it is apparent that the data size 1152 byte of typical extension data requires I 2 The C bus can only transmit for a longer time.
This is a frequent problem for reporting TP data. When this problem occurs, the prior art should increase the length of the data Buffer, meaning I as described above 2 The time that the C bus can provide the reported TP data is 8.33ms, and the reported TP data is insufficient, and the reporting time needs to be prolonged, but the processing mode in the prior art can cause sudden drop of the reporting point rate, the reporting point rate directly influences the TP operation experience of a user, the higher the reporting point rate is, the smoother the TP operation of the user is, the poor TP operation fluency is the experience of the sudden drop of the reporting point rate to the user, and even the TP operation has a pause feeling and a hysteresis feeling. Thus, prior art I 2 The C bus data transmission has the defects of the embedded system operation capability, such as precision requirement, poor graphic operation capability, smaller memory and the like, and has no better method for transferring the calculation capability, so that the technical extension of the application in many touch detection fields is limited.
Disclosure of Invention
The technical problem to be solved by the invention is to avoid the defects of the prior art and provide a method which can compress the data volume of the transmission data and is suitable for I 2 A data compression transmission method for C bus communication.
The invention solves the technical problems by adopting the following technical scheme:
an integrated circuit based internal I is provided 2 C bus communicationIn the communication between a master device and a slave device electrically connected through an internal bus of an integrated circuit, the following data processing process is performed on the transmission data:
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively;
for transmission data comprising Q data words, Q is a natural number, and according to the threshold interval in which the value of the data word is located, replacing the value of each data word with the threshold interval code of the threshold interval in which the value of each data word is located, so as to form interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol which sets at least one of a rule of compressing an interval code data word into a compressed data word, a rule of composing the compressed data word into a compressed transmission data frame, a rule of decomposing the compressed data frame into compressed data words, and a rule of decompressing the compressed data word into an interval code data word;
According to the data word compression/decompression protocol, combining more than two threshold interval code data words into one compressed data word, so that Q interval code data words are compressed into R compressed data words, R is a natural number, R is less than Q, and the R compressed data words form a compressed transmission data frame;
the slave device sends the compressed transmission data frame to the master device;
the master device parses the received compressed transmission data frame according to a data word compression/decompression protocol, decompresses the R compressed data words into section code data comprising Q section code data words.
Specifically, a data packet of the communication transmission of the internal bus of the integrated circuit comprises basic data and extension data; the transmission data in the method is the extension data in the data packet.
More specifically, the expansion data is at least one of expansion data of a touch screen gesture recognition algorithm, expansion data of a touch screen proximity sensing algorithm, expansion data of a touch screen waterproof algorithm, expansion data of a high-sensitivity suspension algorithm, and expansion data of a pressure detection algorithm.
In particular, the Q data words are a matrix of data channels comprising x×y data channels, each data channel being one data word, i.e. q=x×y.
Specifically, z=1, i.e. a data threshold TH is set 1 Form 2 threshold intervals (- ≡th 1 ]Sum (TH) 1 , + -infinity a) of the above-mentioned components, the one-bit interval threshold codes set for the two threshold intervals are 0,1, respectively. Then, replacing the value of each data word with the threshold interval code of the threshold interval in which it is located is to replace the Q data words with Q binarized interval code data words.
More specifically, the value of the data word is a 16-bit binary code; the value of the compressed data word is an 8-bit binary code, then the 8 section code data words are compressed into one compressed data word, so that r=q/8.
Further, the data word compression/decompression protocol sets at least one of,
when the data word is compressed, a rule of the interval code data word for compressing the data word into a compressed data word is selected;
when the data words are compressed, the data words are compressed into the sequencing of the interval code data words of the compressed data words;
when data words are compressed, the arrangement sequence of each compressed data word is that;
when the data word is decompressed, the decompression sequence of the data word is compressed;
when the data word is decompressed, the compressed data word is decomposed into the sequences of the code data words of each section; the method comprises the steps of,
and when the data word is decompressed, the data word of each divided section code is restored and sequenced.
In the scheme of the invention, the main device is a transmission data receiving device and comprises at least one of an upper computer, a central processing unit, a touch screen main processor, a main processor of a pressure detection device and a main processor of a fingerprint identification device. The slave device is a transmission data transmitting device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control micro-controller, a pressure detection chip, a pressure detection micro-controller, a fingerprint identification chip and a fingerprint identification micro-controller.
In order to further satisfy the demand for the amount of data after compression, before the data processing process is performed on the transmission data,
the slave device decomposes one frame of transmission data into at least G subframes of transmission data, wherein G is more than or equal to 2; the data processing process is respectively carried out on the transmission data of each subframe, so that the main device obtains G subframe interval code data;
the master device integrates the G sub-frame interval code data into an entire frame of interval code data.
The invention can solve the technical problems by adopting the following technical proposal:
a master device capable of data hierarchical compression transmission is designed and manufactured, and slave devices can be electrically connected by means of an integrated circuit internal bus. The main device comprises more than two electronic components, and the composition and the connection structure of each electronic component enable the main device to at least complete the following main device data processing process:
The master device receives the compressed transmission data frame sent by the slave device, analyzes the received compressed transmission data frame according to a data word compression/decompression protocol, and decompresses R compressed data words into interval code data comprising Q interval code data words.
The data word compression/decompression protocol sets at least one of a rule of compressing section code data words into compressed data words, a rule of composing the compressed data words into compressed transmission data frames, a rule of decomposing the compressed data frames into compressed data words, and a rule of decompressing the compressed data words into section code data words; a compressed data word is formed by compressing threshold section codes of more than two section code data words according to a data word compression/decompression protocol, so that Q section code data words are compressed into R compressed data words, R is smaller than Q, and the R compressed data words form a compressed transmission data frame.
The section code data including Q section code data words is converted from transmission data including Q data words by:
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively; and replacing the value of each data word with the threshold interval code of the threshold interval in which the value of each data word is located according to the threshold interval in which the value of the data word is located, so as to form interval code data comprising Q interval code data words.
For further compression of data, G is greater than or equal to 2 when a slave device breaks down a frame of transmission data into at least G subframes of transmission data; the slave device sends the G sub-frame compressed transmission data frame to the master device, and then the composition and connection structure of each electronic component of the master device enable the master device to complete the following data combination process:
the main device performs the main device data processing process on the G sub-frame compressed transmission data frames respectively, so that G sub-frame interval code data is obtained through decompression;
the master device integrates the G sub-frame interval code data into an entire frame of interval code data.
In the above scheme, the main device is a data receiving device and comprises at least one of an upper computer, a central processing unit, a touch screen main processor, a main processor of the pressure detection device and a main processor of the fingerprint identification device. The slave device is then a data transmitting device comprising at least one of a terminal, a co-processor, a touch control chip, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller, a fingerprint identification chip, and a fingerprint identification microcontroller.
The invention solves the technical problems by adopting the following technical scheme:
A slave device capable of data hierarchical compression transmission is designed and manufactured, and a master device can be electrically connected by means of an integrated circuit internal bus. The slave device comprises more than two electronic components; the composition and connection structure of each electronic component enables the slave device to at least complete the following slave device data processing process:
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively; for transmission data comprising Q data words, replacing the value of each data word with a threshold interval code of the threshold interval in which the value of the data word is located according to the threshold interval in which the value of the data word is located, so as to form interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol which sets at least one of a rule of compressing section code data words into compressed data words, a rule of composing compressed data words into compressed transmission data frames, a rule of decomposing compressed data frames into compressed data words, and a rule of decompressing compressed data words into section code data words; according to the data word compression/decompression protocol, combining more than two threshold interval code data words into one compressed data word, so that Q interval code data words are compressed into R compressed data words, R is smaller than Q, and the R compressed data words form a compressed transmission data frame;
The compressed transmission data frame is sent to the master device.
To further compress the data, the composition and connection structure of each electronic component of the slave device enables the slave device to also complete the following data decomposition process:
decomposing one frame of transmission data into at least G subframes of transmission data, wherein G is more than or equal to 2;
and after the G sub-frame transmission data respectively pass through the data processing process of the slave device, the slave device sends the G sub-frame compression transmission data frame to the master device.
In the above scheme, the slave device is a data transmitting device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control micro-controller, a pressure detection chip, a pressure detection micro-controller, a fingerprint identification chip and a fingerprint identification micro-controller. The master device is then a data receiving device comprising at least one of a host computer, a central processing unit, a touch screen master processor, a master processor of a pressure detecting device, and a master processor of a fingerprint identifying device.
The invention solves the technical problems by adopting the following technical scheme:
an electronic device capable of carrying out data hierarchical compression transmission comprises at least one master device and at least one slave device, wherein the master device and the slave device are electrically connected with each other by an integrated circuit internal bus.
The slave device comprises more than two electronic components, and the composition and the connection structure of each electronic component of the slave device enable the slave device to at least complete the following slave device data processing process:
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively; for transmission data comprising Q data words, replacing the value of each data word with a threshold interval code of the threshold interval in which the value of the data word is located according to the threshold interval in which the value of the data word is located, so as to form interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol which sets at least one of a rule of compressing section code data words into compressed data words, a rule of composing compressed data words into compressed transmission data frames, a rule of decomposing compressed data frames into compressed data words, and a rule of decompressing compressed data words into section code data words; according to the data word compression/decompression protocol, combining more than two threshold interval code data words into one compressed data word, so that Q interval code data words are compressed into R compressed data words, R is smaller than Q, and the R compressed data words form a compressed transmission data frame;
The compressed transmission data frame is sent to the master device.
The main device comprises more than two electronic components, and the composition and the connection structure of each electronic component of the main device enable the main device to at least complete the following main device data processing process:
the master device parses the received compressed transmission data frame according to a data word compression/decompression protocol, decompresses the R compressed data words into section code data comprising Q section code data words.
To further compress the data, the composition and connection structure of each electronic component of the slave device enables the slave device to also complete the following data decomposition process:
decomposing one frame of transmission data into at least G subframes of transmission data, wherein G is more than or equal to 2;
and after the data of the G sub-frame transmission is processed by the data processing process of the slave device, the slave device sends the data frame of the G sub-frame compression transmission to the master device.
The composition and connection structure of each electronic component of the main device enable the main device to complete the following data combination process:
the main device performs the main device data processing process on the G sub-frame compressed transmission data frames respectively, so that G sub-frame interval code data is obtained through decompression;
the master device integrates the G sub-frame interval code data into an entire frame of interval code data.
In the above scheme, the main device is a data receiving device and comprises at least one of an upper computer, a central processing unit, a touch screen main processor, a main processor of the pressure detection device and a main processor of the fingerprint identification device. The slave device is a data transmitting device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control micro-controller, a pressure detection chip, a pressure detection micro-controller, a fingerprint identification chip and a fingerprint identification micro-controller.
Compared with the prior art, the data stepped compression transmission method and the device and the electronic equipment for realizing the method have the technical effects that:
the characteristic points of the transmission data are reserved through multi-order threshold quantization, the number occupied by the data value of the data word is greatly reduced under the condition that the point reporting rate requirement is not influenced, the data quantity of the transmission data is compressed by combining a plurality of data words without distortion, the compression rate is high, and the I is improved 2 The data transmission efficiency of the C bus effectively solves the transfer computing capacity of the embedded system; the transmission data precision requirement is met by increasing or decreasing the threshold value order.
Drawings
FIG. 1 is a schematic diagram of a transmission data matrix of a first embodiment of the present invention, a data hierarchical compression transmission method, and a device and electronic apparatus implementing the method;
FIG. 2 is a schematic diagram of the interval code data word matrix of the transmission data shown in FIG. 1 after first-order binarization conversion;
FIG. 3 is a schematic diagram of a packet structure for converting the section code data words of FIG. 2 into compressed data words;
FIG. 4 is a schematic diagram of compressed data frames in which the extension data in the data packet of the first embodiment is converted from an interval code data word to a compressed data word;
FIG. 5 is a schematic diagram of an interval code data word matrix after four-order conversion of transmission data according to a second embodiment of the present invention;
FIG. 6 is a three-dimensional schematic diagram of an interval code data word matrix after four-order conversion of transmission data according to the second embodiment;
FIG. 7 is a schematic diagram of a contour of the matrix of section code data words of the transmission data of FIG. 6 after four-order conversion;
FIG. 8 is a schematic diagram of an interval code data word matrix in which transmission data is decomposed into two sets of transmission data and subjected to first order conversion according to a third embodiment of the present invention;
fig. 9 is a schematic diagram of a packet structure using extension data as transmission data according to a fourth embodiment of the present invention;
fig. 10 is an electrical schematic diagram of a fifth embodiment of the invention.
Detailed Description
The embodiments are described in further detail below in conjunction with the drawings.
The invention provides a method based on internal I of an integrated circuit 2 In the communication between a master device and a slave device which are electrically connected through an internal bus of an integrated circuit, the following data processing process is performed on the transmission data: setting Z data threshold values, wherein Z is more than or equal to 1; assuming that the data threshold is TH 1 ,……,TH Z ,TH 1 <……<TH Z Then the Z+1 threshold intervals should be (- ≡, TH) 1 ],……,(TH Z , + -infinity a) is provided; setting a threshold interval code for each threshold interval respectively;
for transmission data comprising Q data words, Q is a natural number, and according to the threshold interval in which the value of the data word is located, replacing the value of each data word with the threshold interval code of the threshold interval in which the value of each data word is located, so as to form interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol which sets at least one of a rule of compressing an interval code data word into a compressed data word, a rule of composing the compressed data word into a compressed transmission data frame, a rule of decomposing the compressed data frame into compressed data words, and a rule of decompressing the compressed data word into an interval code data word;
according to the data word compression/decompression protocol, combining more than two threshold interval code data words into one compressed data word, so that Q interval code data words are compressed into R compressed data words, R is a natural number, R is less than Q, and the R compressed data words form a compressed transmission data frame;
The slave device sends the compressed transmission data frame to the master device;
the master device parses the received compressed transmission data frame according to a data word compression/decompression protocol, and decomposes the R compressed data words into section code data comprising Q section code data words.
The master device and the slave device are performing I 2 And a C bus communication transmission data transceiver device. The main device is a transmission data receiving device and comprises at least one of an upper computer, a central processing unit, a touch screen main processor, a main processor of a pressure detection device and a main processor of a fingerprint identification device. The slave device is a transmission data transmitting device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control micro controller Micro Controller Unit, a pressure detection chip, a pressure detection micro controller MCU, a fingerprint identification chip and a fingerprint identification micro controller MCU.
The first embodiment of the invention constructs the following software and hardware environment to exemplarily illustrate the integrated circuit based internal I 2 The data hierarchical compression transmission method for C bus communication comprises the following steps:
the method is used for transmitting the data packet and comprises the following steps ofFirst embodiment of the invention, I 2 The data in the data packet transmitted by the C bus communication is not all the transmission data compressed and transmitted by the method of the present invention. The data packet includes base data and extension data. Referring to fig. 3, a first embodiment of the present invention is used for processing a touch screen gesture recognition algorithm data packet, which includes point coordinate data and extension data as basic data, where the extension data is extension data of the touch screen gesture recognition algorithm, and transmission data compressed and transmitted by using the method of the present invention is extension data in the data packet. The transmission environment on which the data packet is based is I 2 The communication rate of the C bus is 400kbit/s, the reporting rate of the transmission data packet requires 120 frames/s, and then the data volume of the data packet is 150 byte, which comprises the point coordinate data of which the data volume is 52 byte as basic data and the extension data of which the data volume is 98 byte as transmission data for compression transmission by the method of the invention. In a first embodiment of the present invention, as shown in fig. 3, point coordinate data is set before extension data in a packet. In addition, the fourth embodiment of the present invention, as shown in fig. 9, differs from the first embodiment only in that the point coordinate data is set after the extension data within the data packet, which is also a viable solution. The expansion data of the invention can also be at least one expansion data of a touch screen gesture recognition algorithm, an expansion data of a proximity sensing algorithm, an expansion data of a touch screen waterproof algorithm, an expansion data of a high-sensitivity suspension algorithm and an expansion data of a pressure detection algorithm.
The master device and the slave device are relative concepts, the master device is a data receiving device, and the slave device is a data transmitting device. In practice the device will typically be used as both a data receiving device and a data transmitting device. In Process I 2 Of the two devices of the C bus communication, the device serving as the data receiving device is set as the master device of the method of the present invention, and the device serving as the data transmitting device is set as the slave device of the method of the present invention. In the first embodiment of the invention, the master device is a central processing unit, and the slave device is a touch control chip electrically connected with the central processing unit.
In the first embodiment of the present invention, as shown in fig. 1, the extension data used as the transmission data includes a 32×18 data channel matrix formed by 18 rows and 32 columns of data channels, each data channel is a data word, that is, the Q data words are data channel matrices reflecting x×y data channel values, q=x×y, in the first embodiment of the present invention, q=576, x=18, and y=32. The ordering of the data channels in fig. 1 and 2 is such that the first 16 data channels of each row are divided into a front group and the last 16 data channels of each row are divided into a rear group in the order from left to right. The data channels are ordered in a front group of rows from left to right and in an up to down row order, and then the data channels are sequentially ordered in a rear group of rows from left to right and in an up to down row order. That is, the first row is zero data channel CH0, one data channel CH1, … …, fifteen data channels CH15 in order of the first 16 data channels from left to right; the second row is sixteen data channels CH16, seventeen data channels CH17, … …, thirty-one data channels CH31 in order from left to right, and so on, and the first row is two hundred eighty eight data channels CH288, … …, three hundred zero three data channels CH303 in order from left to right, for the first 16 data channels; and so on.
In a first embodiment of the invention, as shown in fig. 1, the data value of a data word, i.e. the channel value of a data channel, is shown in decimal, and in data transmission, a data word is embodied as a 16-bit binary code equivalent to the decimal display value, then the data amount of the transmission data shown in fig. 1 as described above reaches:
(32×18×16)/8 = 1152 byte
obviously, the data quantity 1152 byte of typical extension data requires I 2 The C bus can only transmit for a longer time. The following is based on the integrated circuit internal I by the invention 2 The data hierarchical compression transmission method for C bus communication solves the problem.
The first embodiment of the present invention adopts a first-order compression transmission method, i.e. z=1, to set 1 data threshold TH 1 Data threshold TH 1 Is a decimal 1000 in number and is a function of the number of the decimal,thereby forming 2 threshold intervals (- ≡th 1 ]Sum (TH) 1 , + -infinity), i.e., (- + -infinity, 1000]And (a) a sum (1000, ++ infinity A kind of electronic device. Is a threshold interval (- ≡1000)]The one-bit interval threshold code is set to 0, which is the threshold interval (Q1, + -infinity) set a one-bit interval threshold code of 1. Conversely, the threshold interval (- ≡1000)]The one-bit interval threshold code is set to 1, which is the threshold interval (Q1, ++ infinity) is 0, which is also a viable option equivalent to the first embodiment of the present invention.
For transmission data comprising 32×18 data words, the value of each data word is replaced with the threshold section code of the threshold section in which it is located according to the value of the data word, i.e. the channel value of the data channel, to form section code data comprising 32×18 section code data words as shown in fig. 2, i.e. the 32×18 data words are converted into 32×18 binarized section code data words.
According to the data word compression/decompression protocol, more than two threshold interval code data words are combined into one compressed data word. In a first embodiment of the present invention, as shown in fig. 3, one compressed data word includes 8-Bit binary codes, bit0, bit1, … …, bit7. The section code data words are binary coded with one bit, then 8 section code data words are combined into one compressed data word, whereby r=q/8=72, the 32×18 section code data words being transformed into 72 compressed data words, the 72 compressed data words constituting a compressed transmission data frame. Fig. 4 shows 72 compressed data words in a compressed data frame, the data value of each compressed data word being represented by a decimal number. The data size of the 72 compressed data words is 72 byte. Thereby compressing the data amount of the transmission data from 1152 byte to 72 byte of the data amount of the compressed transmission data frame, and the compression rate reaches 16 times.
Compression of the section code data words into compressed data words is performed in accordance with a data word compression/decompression protocol. In a first embodiment of the present invention, as shown in fig. 2 to 4, when performing data word compression, the rule of selecting the section code data words for compressing into a compressed data word is to select a group of section code data words of 8 data channels for compressing into a compressed data word according to the data channel ordering, wherein each group of 8 data channels is used as a group. The sorting of the section code data words compressed into compressed data words is, as shown in fig. 3, that, in a group of 8 consecutive data channels, the section code of the data channel with the smallest number is set as the lowest bit of the compressed data word, and the section code data words of the data channels are sequentially set in the order of the compressed data words from the lower bit to the higher bit in the order of the data channel numbers increasing from the lower bit; that is, the section codes of the data channels CH0 to CH7 are compressed into one compressed data word, the section code of the data channel CH0 is set to the zero Bit0 of the compressed data word, the section code of the data channel CH1 is set to the one Bit1, … … of the compressed data word, and the section code of the data channel CH7 is set to the seven Bit7 of the compressed data word. The arrangement order of the compressed data words is such that the compressed data words compressed into the section code data words of each 8 data channels are sequentially ordered in the order of the numbers from small to large as shown in fig. 2 and 4. As shown in fig. 4, the 9 th compressed data word is compressed from the section code data words of the eight data channels before the 5 th row shown in fig. 2, and the decimal data value of the 8-bit binary data value 00011000 is 24. The 17 th compressed data word is compressed by the section code data word of the eight data channels before the 9 th row shown in fig. 2, and the decimal data value of the 8-bit binary data value 00010001 is 136. The rule for compressing the section code data words into compressed data words during data word compression includes setting a rule for selecting section code data words for combining into a compressed data word and setting an ordering of section code data words for combining into a compressed data word. When the data words are compressed, the rule for composing the compressed data words into the compressed transmission data frame comprises the arrangement sequence of the compressed data words. The specific content of the rule should be set reasonably according to the data characteristics, application environment and other factors. In the application, the settings may be set, or at least one of them may be set.
The slave device sends the compressed transmission data frame to the master device. In the first embodiment of the present invention, the compressed transmission data frame is already compressed to less than 98 bytes, so that the transmission of the compressed data frame will not cause the drop of the reporting rate.
The master device parses the received compressed transmission data frame according to the data word compression/decompression protocol, and decomposes and restores the 72 data compressed words into 576 interval code words.
Decompression of compressed data words into interval code data words also needs to be performed in accordance with the data word compression/decompression protocol. In the first embodiment of the present invention, the rule for decomposing the compressed data frame into compressed data words when decompressing the data words includes setting the decompression order of the compressed data words, that is, sequentially decompressing each compressed data word according to the order of the compressed data words. In the first embodiment of the present invention, when decompressing a data word, the rule for decompressing a compressed data word into an interval code data word includes setting the order of decomposing the compressed data word into the interval code data words, and setting the restoration order of the decomposed interval code data words, that is, according to the order of compressing the data word. Of course, if factors such as the use of data are taken into consideration in order to facilitate the subsequent processing of data, a data word decompression rule different from that of the first embodiment may be employed. In the application, the settings may be set, or at least one of them may be set.
The invention reserves the characteristic points of the transmission data through threshold quantization, greatly reduces the occupied digits of the data values of the data words under the condition of not influencing the reporting rate requirement, ensures the data quantity of the transmission data compressed by combining a plurality of data words without distortion, has high compression rate and improves I 2 And the data transmission efficiency of the C bus effectively solves the transfer computing capability of the embedded system.
The rules used in the compression and decompression of the data word and the practical rules in the decompression can be related to each other or not, and the corresponding programming needs to be made according to the data characteristics and the application scene.
When the feature points of the transmission data are more, the feature points can be reserved by setting more than one threshold, namely, the value of Z is reasonably increased, and the data compression transmission is carried out by more than one data threshold. As shown in fig. 5 to 7, a set of transmission data, which is different from that shown in fig. 1, having 4 feature points, is required to pass 4 data threshold values TH 1 <TH 2 <TH 3 Dividing < TH4 into 5 threshold intervals (- ≡TH) 1 ]、(TH 1 ,TH 2 ]、(TH 2 ,TH 3 ]、(TH 3 ,TH 4 ]、(TH 4 , + -infinity a) of the above-mentioned components, 4-stage compression is performed. The threshold interval codes respectively set for the threshold intervals are 0,1,2,3,4 in decimal, and the decimal threshold interval codes should be converted into binary codes in actual processing. For a set of transmission data different from that shown in fig. 1, the section code data word formed by conversion is shown in fig. 5.
Although more characteristic points are reserved by the multi-order data threshold value with the higher compression rate, the compression rate of the transmission data is reduced, and for some transmission data, even though the transmission data is compressed by the multi-order data threshold value with the higher compression rate, the compressed data volume is still higher. For the two cases, the method can be realized by a scheme of decomposing transmission data and then combining reduction. Based on the method of the invention, the invention also provides a process of decomposing/combining transmission data:
prior to the data processing process of the transmission data,
the slave device decomposes one frame of transmission data into at least G subframes of transmission data, wherein G is more than or equal to 2; the data processing process is respectively carried out on the transmission data of each subframe, so that the main device obtains G subframe interval code data;
the master device integrates the G sub-frame interval code data into an entire frame of interval code data.
As shown in fig. 8, the third embodiment of the present invention decomposes transmission data including 32×18 data words, which is different from that shown in fig. 1, into transmission data including 16×18 data words in 2 subframes, and converts the transmission data into section code data words, that is, the case of g=2 described above. By the above method of transmission data decomposition/combination, it is ensured that the transmission data is completely transmitted in the time domain based on the transmission rate and the point reporting rate.
The invention also provides a main device capable of carrying out data stepped compression transmission based on the data stepped compression transmission method based on the internal bus communication of the integrated circuit, and the main device can use the setIn-circuit I 2 The C bus electrically connects the slave devices. The main device comprises more than two electronic components, and the composition and the connection structure of each electronic component enable the main device to at least complete the following main device data processing process:
the master device receives the compressed transmission data frame sent by the slave device, analyzes the received compressed transmission data frame according to a data word compression/decompression protocol, and decompresses R compressed data words into interval code data comprising Q interval code data words.
The data word compression/decompression protocol sets at least one of a rule of compressing section code data words into compressed data words, a rule of composing the compressed data words into compressed transmission data frames, a rule of decomposing the compressed data frames into compressed data words, and a rule of decompressing the compressed data words into section code data words; the method comprises the steps that a compressed data word is formed by compressing threshold interval codes of more than two interval code data words according to a data word compression/decompression protocol, Q interval code data words are compressed into R compressed data words, R is smaller than Q, and the R compressed data words form a compressed transmission data frame;
The section code data including Q section code data words is converted from transmission data including Q data words by:
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively. And replacing the value of each data word with the threshold interval code of the threshold interval in which the value of each data word is located according to the threshold interval in which the value of the data word is located, so as to form interval code data comprising Q interval code data words.
To further increase the amount of data compression, the master device can also cooperate with the slave devices to complete data combining. When the slave device decomposes one frame of transmission data into at least G subframes of transmission data, G is more than or equal to 2, and the slave device sends G subframes of compressed transmission data frames to the master device, the composition and connection structure of each electronic component of the master device enable the master device to complete the following data combination process:
the main device performs the main device data processing process on the G sub-frame compressed transmission data frames respectively, so that G sub-frame interval code data is obtained through decompression;
the master device integrates the G sub-frame interval code data into an entire frame of interval code data.
Specifically, when dividing one frame of transmission data into G sub-frame transmission data, the slave device should add data information reflecting the division manner, for example, the data information including a rank of the sub-frame transmission data reflecting that the sub-frame transmission data is one of the G sub-frame transmission data into which the one frame of transmission data is divided, a data amount of the sub-frame transmission data, and the like. The master device receives the G sub-frame compressed transmission data frame sent by the slave device; the main device analyzes the received compressed transmission data frames of all subframes according to the data word compression/decompression protocol, decompresses R compressed data words of the compressed transmission data frames into interval code data comprising Q interval code data words, and obtains G subframe interval code data. And the main device sorts and combines the G subframe interval code data into a whole frame of interval code data according to the data information reflecting the decomposition mode.
The above-described first to fourth embodiments of the present invention are all applicable to the master device data processing process and the data combining process.
The main device is a data receiving device and comprises at least one of an upper computer, a central processing unit, a touch screen main processor, a main processor of a pressure detection device and a main processor of a fingerprint identification device. The slave device is then a data transmitting device comprising at least one of a terminal, a co-processor, a touch control chip MCU, a touch control micro-controller, a pressure detection chip, a pressure detection micro-controller MCU, a fingerprint identification chip, and a fingerprint identification micro-controller MCU.
The invention also provides a slave device capable of carrying out data hierarchical compression transmission based on the data hierarchical compression transmission method based on the internal bus communication of the integrated circuit, and the slave device can use the internal I of the integrated circuit 2 The C bus is electrically connected with the main device. The slave device comprises more than two electronic components, and the composition and the connection structure of each electronic component enable the slave device to at least complete the following slave device data processing process:
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively; for transmission data comprising Q data words, replacing the value of each data word with a threshold interval code of the threshold interval in which the value of the data word is located according to the threshold interval in which the value of the data word is located, so as to form interval code data comprising Q interval code data words;
Setting a data word compression/decompression protocol which sets at least one of a rule of compressing section code data words into compressed data words, a rule of composing compressed data words into compressed transmission data frames, a rule of decomposing compressed data frames into compressed data words, and a rule of decompressing compressed data words into section code data words; according to the data word compression/decompression protocol, combining more than two threshold interval code data words into one compressed data word, so that Q interval code data words are compressed into R compressed data words, R is smaller than Q, and the R compressed data words form a compressed transmission data frame;
the compressed transmission data frame is sent to the master device.
To further increase the amount of data compression, the slave device can also complete data decomposition. The composition and connection structure of each electronic component of the slave device enable the slave device to complete the following data decomposition process:
decomposing one frame of transmission data into at least G subframes of transmission data, wherein G is more than or equal to 2;
and after the G sub-frame transmission data respectively pass through the data processing process of the slave device, the slave device sends the G sub-frame compression transmission data frame to the master device.
The above-described first to fourth embodiments of the present invention are all applicable to the slave device data processing process and the data decomposition process.
The slave device is a data transmitting device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control micro controller MCU, a pressure detection chip, a pressure detection micro controller MCU, a fingerprint identification chip and a fingerprint identification micro controller MCU. The master device is then a data receiving device comprising at least one of a host computer, a central processing unit, a touch screen master processor, a master processor of a pressure detecting device, and a master processor of a fingerprint identifying device.
The invention further provides electronic equipment capable of carrying out data hierarchical compression transmission based on the data hierarchical compression transmission method based on the integrated circuit internal bus communication. The electronic device includes a mobile communication terminal, a tablet computer, a video/audio player, a personal computer, various data transceivers, various measuring instruments, various sensors, and the like. The electronic equipment comprises at least one master device and at least one slave device, wherein the internal I of the integrated circuit is used between the master device and the slave device 2 The C buses are electrically connected to each other.
The slave device comprises more than two electronic components, and the composition and the connection structure of each electronic component of the slave device enable the slave device to at least complete the following slave device data processing process:
Setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively; for transmission data comprising Q data words, replacing the value of each data word with a threshold interval code of the threshold interval in which the value of the data word is located according to the threshold interval in which the value of the data word is located, so as to form interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol which sets at least one of a rule of compressing section code data words into compressed data words, a rule of composing compressed data words into compressed transmission data frames, a rule of decomposing compressed data frames into compressed data words, and a rule of decompressing compressed data words into section code data words; according to the data word compression/decompression protocol, combining more than two threshold interval code data words into one compressed data word, so that Q interval code data words are compressed into R compressed data words, R is smaller than Q, and the R compressed data words form a compressed transmission data frame;
the compressed transmission data frame is sent to the master device.
The main device comprises more than two electronic components, and the composition and the connection structure of each electronic component of the main device enable the main device to at least complete the following main device data processing process:
The master device parses the received compressed transmission data frame according to a data word compression/decompression protocol, decompresses the R compressed data words into section code data comprising Q section code data words.
The data processing process of the data hierarchical compression transmission method based on the integrated circuit internal bus communication comprises a master device data processing process and a slave device data processing process.
To further increase the amount of data compression, the master device and the slave device can also cooperate to accomplish data decomposition/combination.
The composition and connection structure of each electronic component of the slave device enable the slave device to complete the following data decomposition process:
decomposing one frame of transmission data into at least G subframes of transmission data, wherein G is more than or equal to 2;
and after the data of the G sub-frame transmission is processed by the data processing process of the slave device, the slave device sends the data frame of the G sub-frame compression transmission to the master device.
The composition and connection structure of each electronic component of the main device enable the main device to complete the following data combination process:
the main device performs the main device data processing process on the G sub-frame compressed transmission data frames respectively, so that G sub-frame interval code data is obtained through decompression;
the master device integrates the G sub-frame interval code data into an entire frame of interval code data.
The process of transmission data decomposition/combination in the data hierarchical compression transmission method based on integrated circuit internal bus communication includes the above data decomposition process and data combination process.
The main device is a data receiving device and comprises at least one of an upper computer, a central processing unit, a touch screen main processor, a main processor of a pressure detection device and a main processor of a fingerprint identification device. The slave device is a data transmitting device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control micro controller MCU, a pressure detection chip, a pressure detection micro controller MCU, a fingerprint identification chip and a fingerprint identification micro controller MCU.
In a first embodiment of the present invention, the master device and the slave device are in a one-to-one arrangement.
The master and slave devices may in turn be one-to-many arrangements. In a fifth embodiment of the present invention, as shown in fig. 10, the electronic device is an electronic device 4 having touch screen, pressure detection and fingerprint recognition functions, for example, a mobile communication terminal, which is called a mobile phone in most cases, and has not only a touch screen input function but also a pressure detection function and a fingerprint recognition function for detecting touch force. The electronic device 4 comprises a master device 1 and three slave devices 2, wherein the master device 1 is a central processing unit 111, and the slave devices 2 comprise a touch control chip 211 which is electrically connected with the central processing unit 111 and used for completing a touch screen function, a pressure detection chip 212 used for completing a pressure detection function and a fingerprint identification chip 213 used for completing a fingerprint identification function. When the electronic device 4 is also provided with various other components necessary for its function.
In the case where multiple master devices require data from the same slave device, the master and slave devices may be in a many-to-one arrangement, i.e., more than two master devices are all electrically connected to the same slave device.
The steps in the method of the embodiments of the present application may be sequentially adjusted, combined, and deleted according to actual needs.
The previous description of the embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.
Claims (18)
1. A data hierarchical compression transmission method based on integrated circuit internal bus communication is characterized in that:
In communication between a master device and a slave device, which are electrically connected through an internal bus of an integrated circuit, transmission data is subjected to a data processing process,
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively;
for transmission data comprising Q data words, Q is a natural number, and according to the threshold interval in which the value of the data word is located, replacing the value of each data word with the threshold interval code of the threshold interval in which the value of each data word is located, so as to form interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol which sets at least one of a rule of compressing an interval code data word into a compressed data word, a rule of composing the compressed data word into a compressed transmission data frame, a rule of decomposing the compressed data frame into compressed data words, and a rule of decompressing the compressed data word into an interval code data word;
according to the data word compression/decompression protocol, combining more than two threshold interval code data words into one compressed data word, so that Q interval code data words are compressed into R compressed data words, R is a natural number, R is less than Q, and the R compressed data words form a compressed transmission data frame;
The slave device sends the compressed transmission data frame to the master device;
the master device parses the received compressed transmission data frame according to a data word compression/decompression protocol, decompresses the R compressed data words into section code data comprising Q section code data words.
2. The method for data hierarchical compression transmission based on integrated circuit internal bus communication according to claim 1, wherein:
the data packet of the communication transmission of the internal bus of the integrated circuit comprises basic data and extension data; the transmission data in the method is the extension data in the data packet.
3. The method for data hierarchical compression transmission based on integrated circuit internal bus communication according to claim 2, wherein:
the expansion data is at least one of expansion data of a touch screen gesture recognition algorithm, expansion data of a touch screen proximity sensing algorithm, expansion data of a touch screen waterproof algorithm, expansion data of a high-sensitivity suspension algorithm and expansion data of a pressure detection algorithm.
4. A method for data hierarchical compression transmission based on integrated circuit internal bus communication according to claim 3, wherein:
the Q data words are a data channel matrix comprising X Y data channels, each data channel being one data word, i.e. q=x X Y, where X is the number of rows of the data channel matrix and Y is the number of columns of the data channel matrix.
5. The data hierarchical compression transmission method based on integrated circuit internal bus communication according to claim 1 or 4, wherein:
z=1, i.e. a data threshold TH is set 1 Form 2 threshold intervals (- ≡th 1 ]Sum (TH) 1 , + -infinity a) is provided; the one-bit interval threshold codes respectively set for the two threshold intervals are 0,1;
then, replacing the value of each data word with the threshold interval code of the threshold interval in which it is located is to replace the Q data words with Q binarized interval code data words.
6. The method for data hierarchical compression transmission based on integrated circuit internal bus communication according to claim 5, wherein:
the value of the data word is a 16-bit binary code; the value of the compressed data word is an 8-bit binary code;
then, the 8 section code data words are compressed into one compressed data word, so that r=q/8.
7. The data hierarchical compression transmission method based on integrated circuit internal bus communication according to claim 1 or 2, wherein:
the data word compression/decompression protocol sets at least one of the following,
when the data word is compressed, a rule of the interval code data word for compressing the data word into a compressed data word is selected;
When the data words are compressed, the data words are compressed into the sequencing of the interval code data words of the compressed data words;
when data words are compressed, the arrangement sequence of each compressed data word is that;
when the data word is decompressed, the decompression sequence of the data word is compressed;
when the data word is decompressed, the compressed data word is decomposed into the sequences of the code data words of each section; the method comprises the steps of,
and when the data word is decompressed, the data word of each divided section code is restored and sequenced.
8. The data hierarchical compression transmission method based on integrated circuit internal bus communication according to claim 1 or 2, wherein:
the main device is a transmission data receiving device and comprises at least one of an upper computer, a central processing unit, a touch screen main processor, a main processor of a pressure detection device and a main processor of a fingerprint identification device;
the slave device is a transmission data transmitting device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control micro-controller, a pressure detection chip, a pressure detection micro-controller, a fingerprint identification chip and a fingerprint identification micro-controller.
9. The method for data hierarchical compression transmission based on integrated circuit internal bus communication according to claim 1, wherein:
Prior to the data processing process of the transmission data,
the slave device decomposes one frame of transmission data into at least G subframes of transmission data, wherein G is more than or equal to 2;
the data processing process is respectively carried out on the transmission data of each subframe, so that the main device obtains G subframe interval code data;
the master device integrates the G sub-frame interval code data into an entire frame of interval code data.
10. A master device capable of data hierarchical compression transmission capable of electrically connecting slave devices by means of an integrated circuit internal bus, characterized in that:
comprises more than two electronic components; the composition and connection structure of each electronic component enables the master device to at least complete the following master device data processing procedures,
the main device receives the compressed transmission data frame sent by the slave device, analyzes the received compressed transmission data frame according to a data word compression/decompression protocol, and decompresses R compressed data words into interval code data comprising Q interval code data words;
the data word compression/decompression protocol sets at least one of a rule of compressing section code data words into compressed data words, a rule of composing the compressed data words into compressed transmission data frames, a rule of decomposing the compressed data frames into compressed data words, and a rule of decompressing the compressed data words into section code data words; the method comprises the steps that a compressed data word is formed by compressing threshold interval codes of more than two interval code data words according to a data word compression/decompression protocol, Q interval code data words are compressed into R compressed data words, R is smaller than Q, and the R compressed data words form a compressed transmission data frame;
The section code data including Q section code data words is converted from the transmission data including Q data words by processing,
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively; and replacing the value of each data word with the threshold interval code of the threshold interval in which the value of each data word is located according to the threshold interval in which the value of the data word is located, so as to form interval code data comprising Q interval code data words.
11. The master device capable of data hierarchical compression transmission according to claim 10, wherein:
when the slave device decomposes one frame of transmission data into at least G subframes of transmission data, G is more than or equal to 2; the slave device sends the G sub-frame compressed transmission data frame to the master device, and then the composition and connection structure of each electronic component of the master device enable the master device to complete the following data combination process,
the main device performs the main device data processing process on the G sub-frame compressed transmission data frames respectively, so that G sub-frame interval code data is obtained through decompression;
the master device integrates the G sub-frame interval code data into an entire frame of interval code data.
12. Master device capable of data transmission in a hierarchical compression according to claim 10 or 11, characterized in that:
The main device is a data receiving device and comprises at least one of an upper computer, a central processing unit, a touch screen main processor, a main processor of a pressure detection device and a main processor of a fingerprint identification device;
the slave device is then a data transmitting device comprising at least one of a terminal, a co-processor, a touch control chip, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller, a fingerprint identification chip, and a fingerprint identification microcontroller.
13. A slave device capable of data hierarchical compression transmission capable of electrically connecting a master device by means of an integrated circuit internal bus, characterized in that:
comprises more than two electronic components; the composition and connection structure of each electronic component enables the slave device to at least complete the following slave device data processing procedure,
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively; for transmission data comprising Q data words, replacing the value of each data word with a threshold interval code of the threshold interval in which the value of the data word is located according to the threshold interval in which the value of the data word is located, so as to form interval code data comprising Q interval code data words;
Setting a data word compression/decompression protocol which sets at least one of a rule of compressing section code data words into compressed data words, a rule of composing compressed data words into compressed transmission data frames, a rule of decomposing compressed data frames into compressed data words, and a rule of decompressing compressed data words into section code data words; according to the data word compression/decompression protocol, combining more than two threshold interval code data words into one compressed data word, so that Q interval code data words are compressed into R compressed data words, R is smaller than Q, and the R compressed data words form a compressed transmission data frame;
the compressed transmission data frame is sent to the master device.
14. The slave device capable of data scalable compression transmission according to claim 13, wherein:
the composition and connection structure of each electronic component of the slave device enables the slave device to also complete the following data decomposition process,
decomposing one frame of transmission data into at least G subframes of transmission data, wherein G is more than or equal to 2;
and after the G sub-frame transmission data respectively pass through the data processing process of the slave device, the slave device sends the G sub-frame compression transmission data frame to the master device.
15. A slave device capable of data stepped compression transmission according to claim 13 or 14, wherein:
the slave device is a data transmitting device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control micro-controller, a pressure detection chip, a pressure detection micro-controller, a fingerprint identification chip and a fingerprint identification micro-controller;
the master device is then a data receiving device comprising at least one of a host computer, a central processing unit, a touch screen master processor, a master processor of a pressure detecting device, and a master processor of a fingerprint identifying device.
16. An electronic device capable of data hierarchical compression transmission, characterized in that:
the device comprises at least one master device and at least one slave device, wherein the master device and the slave devices are electrically connected with each other by virtue of an integrated circuit internal bus;
the slave device comprises more than two electronic components; the composition and connection structure of each electronic component of the slave device enables the slave device to at least complete the following slave device data processing procedure,
setting Z data threshold values, wherein Z is more than or equal to 1, so that Z+1 threshold value intervals are formed, and setting a threshold value interval code for each threshold value interval respectively; for transmission data comprising Q data words, replacing the value of each data word with a threshold interval code of the threshold interval in which the value of the data word is located according to the threshold interval in which the value of the data word is located, so as to form interval code data comprising Q interval code data words;
Setting a data word compression/decompression protocol which sets at least one of a rule of compressing section code data words into compressed data words, a rule of composing compressed data words into compressed transmission data frames, a rule of decomposing compressed data frames into compressed data words, and a rule of decompressing compressed data words into section code data words; according to the data word compression/decompression protocol, combining more than two threshold interval code data words into one compressed data word, so that Q interval code data words are compressed into R compressed data words, R is smaller than Q, and the R compressed data words form a compressed transmission data frame;
transmitting the compressed transmission data frame to the master device;
the main device comprises more than two electronic components; the composition and connection structure of each electronic component of the master device enables the master device to at least complete the following master device data processing procedures,
the master device parses the received compressed transmission data frame according to a data word compression/decompression protocol, decompresses the R compressed data words into section code data comprising Q section code data words.
17. The electronic device capable of data stepped compression transmission of claim 16, wherein:
The composition and connection structure of each electronic component of the slave device enables the slave device to also complete the following data decomposition process,
decomposing one frame of transmission data into at least G subframes of transmission data, wherein G is more than or equal to 2;
after the data of the G sub-frame transmission is processed by the data processing process of the slave device, the slave device sends the data frame of the G sub-frame compression transmission to the master device;
the composition and the connection structure of each electronic component of the main device enable the main device to finish the following data combination process, and the main device respectively processes the data processing process of the main device on the G sub-frame compressed transmission data frame, so as to decompress and obtain G sub-frame interval code data;
the master device integrates the G sub-frame interval code data into an entire frame of interval code data.
18. The electronic device capable of data transmission in a hierarchical compression according to claim 16 or 17, characterized in that:
the main device is a data receiving device and comprises at least one of an upper computer, a central processing unit, a touch screen main processor, a main processor of a pressure detection device and a main processor of a fingerprint identification device;
the slave device is a data transmitting device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control micro-controller, a pressure detection chip, a pressure detection micro-controller, a fingerprint identification chip and a fingerprint identification micro-controller.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810630715.3A CN110618960B (en) | 2018-06-19 | 2018-06-19 | Data stepped compression transmission method, device for realizing method and electronic equipment |
| TW108119360A TWI695591B (en) | 2018-06-19 | 2019-06-04 | Data stepped compression transmission method and device and electronic equipment for realizing the method |
| PCT/CN2019/091000 WO2019242554A1 (en) | 2018-06-19 | 2019-06-12 | Data staging compression transmission method and device for implementing method and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810630715.3A CN110618960B (en) | 2018-06-19 | 2018-06-19 | Data stepped compression transmission method, device for realizing method and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110618960A CN110618960A (en) | 2019-12-27 |
| CN110618960B true CN110618960B (en) | 2023-09-15 |
Family
ID=68920311
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810630715.3A Active CN110618960B (en) | 2018-06-19 | 2018-06-19 | Data stepped compression transmission method, device for realizing method and electronic equipment |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN110618960B (en) |
| TW (1) | TWI695591B (en) |
| WO (1) | WO2019242554A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116388768B (en) * | 2023-06-06 | 2023-08-22 | 上海海栎创科技股份有限公司 | Compression method and system for signal data |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8806108B2 (en) * | 2011-06-07 | 2014-08-12 | Hitachi, Ltd. | Semiconductor storage apparatus and method of controlling semiconductor storage apparatus |
| US9946680B2 (en) * | 2012-10-05 | 2018-04-17 | Analog Devices, Inc. | Peripheral device diagnostics and control over a two-wire communication bus |
| CN102929783B (en) * | 2012-10-25 | 2015-12-02 | 华为技术有限公司 | The methods, devices and systems that a kind of data store |
| KR20150063828A (en) * | 2013-12-02 | 2015-06-10 | 삼성전자주식회사 | Method for processing data by touch screen, machine-readable storage medium and electronic device |
| US9219499B2 (en) * | 2014-05-16 | 2015-12-22 | Robert Bosch Gmbh | Run time compression method for a vehicle communication bus |
| CN104202054A (en) * | 2014-09-16 | 2014-12-10 | 东南大学 | Hardware LZMA (Lempel-Ziv-Markov chain-Algorithm) compression system and method |
| CN105790853B (en) * | 2014-12-26 | 2019-02-22 | 北京奇虎科技有限公司 | A method and device for acoustic wave transmission character data |
-
2018
- 2018-06-19 CN CN201810630715.3A patent/CN110618960B/en active Active
-
2019
- 2019-06-04 TW TW108119360A patent/TWI695591B/en active
- 2019-06-12 WO PCT/CN2019/091000 patent/WO2019242554A1/en not_active Ceased
Also Published As
| Publication number | Publication date |
|---|---|
| WO2019242554A1 (en) | 2019-12-26 |
| TWI695591B (en) | 2020-06-01 |
| TW202002527A (en) | 2020-01-01 |
| CN110618960A (en) | 2019-12-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3472806B1 (en) | Image compression method and apparatus | |
| EP3108583B1 (en) | Devices and methods of source-encoding and decoding of data | |
| EP4243415A1 (en) | Image compression method and apparatus, and intelligent terminal and computer-readable storage medium | |
| CN103440612A (en) | Image processing method and device in GPU vitualization | |
| WO2017214671A1 (en) | Image compression method and apparatus | |
| US20160119621A1 (en) | Image processing method and display apparatus | |
| CN110618960B (en) | Data stepped compression transmission method, device for realizing method and electronic equipment | |
| CN106656195A (en) | Data compression decompression method and data compression decompression system | |
| CN104869327A (en) | High-definition display screen image file rapid display method and system | |
| CN112016270A (en) | Chinese-sensible code logistics information coding method, device and equipment | |
| CN108668169B (en) | Image information processing method and device, and storage medium | |
| CN113381767B (en) | Method, terminal and storage medium for electrocardiogram data compression | |
| CN1151679C (en) | Method for compressing image data | |
| CN106464895A (en) | A fingerprint image processing system | |
| WO2001084849A1 (en) | Video data transmission | |
| JP3969790B2 (en) | Outline coding device | |
| CN117880447A (en) | Video format conversion method, device, equipment and medium | |
| JP7558938B2 (en) | Transmitting device, transmitting method, receiving device, receiving method, and transmitting/receiving device | |
| CN112954456B (en) | Video data processing method, terminal and computer readable storage medium | |
| CN113315793A (en) | Data transmission method, device, equipment and medium based on intelligent compression | |
| US8166219B2 (en) | Method and apparatus for encoding/decoding bus signal | |
| US7970218B1 (en) | Method, system, and computer-readable medium for the adaptive filtering and compression of video data | |
| CN111385579B (en) | Video compression method, device, equipment and storage medium | |
| CN100345430C (en) | Method and apparatus for sending and receiving and for encoding and decoding a telop image | |
| CN114501015B (en) | Video coding rate processing method and device, storage medium and electronic device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |