CN110618960A - Data step compression transmission method and device and electronic equipment for implementing same - Google Patents

Data step compression transmission method and device and electronic equipment for implementing same Download PDF

Info

Publication number
CN110618960A
CN110618960A CN201810630715.3A CN201810630715A CN110618960A CN 110618960 A CN110618960 A CN 110618960A CN 201810630715 A CN201810630715 A CN 201810630715A CN 110618960 A CN110618960 A CN 110618960A
Authority
CN
China
Prior art keywords
data
compressed
words
interval
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810630715.3A
Other languages
Chinese (zh)
Other versions
CN110618960B (en
Inventor
肖钡
骆志强
韩伟伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dun Tai Electronics Co Ltd
Original Assignee
Dun Tai Electronics 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 Dun Tai Electronics Co Ltd filed Critical Dun Tai Electronics Co Ltd
Priority to CN201810630715.3A priority Critical patent/CN110618960B/en
Priority to TW108119360A priority patent/TWI695591B/en
Priority to PCT/CN2019/091000 priority patent/WO2019242554A1/en
Publication of CN110618960A publication Critical patent/CN110618960A/en
Application granted granted Critical
Publication of CN110618960B publication Critical patent/CN110618960B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion 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/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion 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/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/3059Digital compression and data reduction techniques where the original information is represented by a subset or similar information, e.g. lossy compression
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M7/00Conversion 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/30Compression; Expansion; Suppression of unnecessary data, e.g. redundancy reduction
    • H03M7/40Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code

Abstract

The invention relates to a data step compression transmission method, a device and electronic equipment for realizing the method. The method sets Z data thresholds, and sets a threshold interval code for each threshold interval; replacing the value of each data word with the 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 to form an interval code data word; combining threshold interval codes of more than two interval code data words into one 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 point of the transmission data through multi-level threshold quantization, greatly reduces the number of the data value of the data word under the condition of not influencing the requirement of the report rate, ensures that a plurality of data words are combined without distortion to compress the data volume of the transmission data, and has high compression rate.

Description

Data step compression transmission method and device and electronic equipment for implementing same
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 data compression transmission method and a device and an apparatus for performing the method.
Background
Abbreviation I2The communication method of Inter-Integrated Circuit bus inside the Integrated Circuit of C bus is commonly used because of its easy implementation, but the prior art adopts I2One of the drawbacks of the C-bus communication method is the limitation of data transmission rate. For example, when I is used2When Touch Panel data is transmitted in a C bus communication mode, Touch Panel TP, I is used for short2The rate specified by the C bus communication protocol is 100 kbit/s-400 kbit/s, the report rate of the TP data requires 120 frames/s, and the time for transmitting one frame of TP data is about 8.33 ms. For one frame TP data report, the algorithm occupies about 5ms, the report data is limited to 3ms, and I is used2The communication rate of the C bus is 400kbit/s, the reporting rate is calculated by 120Hz, and the 3ms reported data volume is as follows:
(400000/8/1000)×3 = 150 byte
the data packet of the TP data includes basic data and extension data. The common Touch Data packet with 10 points is used as basic Data, and the extension Data comprises original Data Raw Data used for algorithm expansion, preprocessed Data obtained by subtracting basic Data, or reported gesture track Data. Then in the 150-byte data amount, the Touch packet Package of 10 points already occupies 52 bytes, and the remaining 98 bytes are used as the extension data.
A typical spread data is shown in fig. 1, and includes a 32 × 18 data channel matrix formed by 18 rows and 32 columns of data channels, and the data value of each data channel uses 16-bit binary number, so that fig. 1 needs to pass through I2The expansion data volume transmitted by the C bus is as follows:
(32×18×16)/8 = 1152 byte
it is clear that a typical data size 1152 byte of extension data requires I2The C bus can only transmit for a longer time.
This is a problem that is often encountered with respect to reporting TP data. When this problem occurs, the prior art should increase the length of the data Buffer, meaning the above-mentioned I2The C bus can provide the time for reporting TP data, 8.33ms, less thanIn order to finish reporting TP data, the reporting time needs to be prolonged, but the processing mode in the prior art causes the sudden drop of the report rate, the report rate directly affects the TP operation experience of a user, the higher the report rate is, the smoother the user experiences the TP operation, the experience of the sudden drop of the report rate to the user is that the TP operation smoothness is poor, and even the TP operation has pause and lag. Thus, prior art I2The C bus data transmission has defects of the computing capability of the embedded system, such as precision requirement, poor graph computing capability, small memory and the like, and has no better method for transferring the computing capability, so that the technical extension of the application of a plurality of 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 to provide a method which can compress the data volume of the transmission data and is suitable for I2C, a data compression transmission method of bus communication.
The technical problem to be solved by the invention can be realized by adopting the following technical scheme:
based on the internal I of an integrated circuit2The data step compression transmission method of C bus communication, in the communication between the master device and the slave device which are electrically connected through the internal bus of the integrated circuit, the following data processing process is carried out to the transmission data:
setting Z data thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval;
for transmission data comprising Q data words, wherein Q is a natural number, replacing the value of each data word with the 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, and forming interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol, the data word compression/decompression protocol setting at least one of rules for compressing interval code data words into compressed data words, rules for composing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words;
combining threshold interval codes of more than two interval code data words into one compressed data word according to a data word compression/decompression protocol, and compressing Q interval code data words into R compressed data words, wherein R is a natural number and 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 decompresses the R compressed data words into interval code data including Q interval code data words.
Specifically, a data packet transmitted by the internal bus communication 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 extension data is at least one of extension data of a touch screen gesture recognition algorithm, extension data of a touch screen proximity sensing algorithm, extension data of a touch screen waterproof algorithm, extension data of a high-sensitivity suspension algorithm and extension data of a pressure detection algorithm.
In particular, 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 × Y.
Specifically, Z =1, that is, a data threshold TH is set12 threshold intervals (-infinity, TH) are formed1]And (TH)1, + ∞) is set for the two threshold intervals, the one-bit interval threshold code is 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 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 8 interval 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 compressing data words, selecting rules for compressing interval code data words of a compressed data word;
when data words are compressed, sorting interval code data words compressed into compressed data words;
when the data words are compressed, the arrangement sequence of the compressed data words is determined;
compressing the decompression sequence of the data words when the data words are decompressed;
when the data words are decompressed, the compressed data words are decomposed into the sequence of the code data words in each interval; and the number of the first and second groups,
and (4) when the data words are decompressed, reducing and sequencing the code data words in each section.
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 pressure detection device main processor and a fingerprint identification device main processor. The slave device is a transmission data sending device and comprises at least one of a terminal, a coprocessor, 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.
In order to further satisfy the amount of compressed data, before the data processing process is performed on the transmission data,
the slave device decomposes one frame of transmission data into at least G sub-frame 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 subframe interval code data into interval code data of a whole frame.
The technical problem to be solved by the invention can also be solved by adopting the following technical scheme:
a master device capable of performing data step compression transmission is designed and manufactured, and slave devices can be electrically connected through an internal bus of an integrated circuit. The main device comprises more than two electronic components, and the composition and connection structure of each electronic component enable the main device to at least complete the following data processing process of the main device:
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 the 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 rules for compressing interval code data words into compressed data words, rules for forming compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words; one 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 less 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 thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval; and replacing the numerical value of each data word with the threshold interval code of the threshold interval in which the numerical value of the data word is positioned according to the threshold interval in which the numerical value of the data word is positioned, and forming interval code data comprising Q interval code data words.
For further compressing data, G ≧ 2 when the slave device decomposes the one-frame transmission data into at least G subframes transmission data; the slave device sends a G subframe compression transmission data frame to the master device, so that the master device can complete the following data combination process due to the composition and the connection structure of each electronic component of the master device:
the master device respectively carries out the data processing process of the master device on the compressed transmission data frames of the G subframes, so as to decompress and obtain the code data of the G subframe interval;
the master device integrates the G subframe interval code data into interval code data of a whole frame.
In the above scheme, the main device is a data receiving device, and includes at least one of an upper computer, a central processing unit, a touch screen main processor, a pressure detecting device main processor, and a fingerprint identifying device main processor. Then, the slave device is a data transmission device including at least one of a terminal, a coprocessor, 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 can solve the technical problem and can be realized by adopting the following technical scheme:
a slave device capable of performing data step compression transmission is designed and manufactured, and the master device can be electrically connected through an internal bus of an integrated circuit. The slave device comprises more than two electronic components; the composition and the connection structure of each electronic component enable the slave device to at least complete the following slave device data processing processes:
setting Z data thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval; for transmission data comprising Q data words, replacing the numerical value of each data word by the threshold interval code of the threshold interval in which the numerical value of the data word is positioned according to the threshold interval in which the numerical value of the data word is positioned, and forming interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol, the data word compression/decompression protocol setting at least one of rules for compressing interval code data words into compressed data words, rules for composing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words; combining threshold interval codes of more than two interval code data words into one compressed data word according to a data word compression/decompression protocol, and compressing Q interval code data words into R compressed data words, wherein R is less 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.
In order to further compress the data, 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 sub-frame transmission data, wherein G is more than or equal to 2;
and after the G sub-frame transmission data respectively passes through the data processing process of the slave device, the slave device sends a G sub-frame compression transmission data frame to the master device.
In the above scheme, the slave device is a data transmission device, and includes at least one of a terminal, a coprocessor, 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. Then, the main device is a data receiving device, and includes at least one of an upper computer, a central processing unit, a touch screen main processor, a pressure detecting device main processor, and a fingerprint recognizing device main processor.
The invention can solve the technical problem and can be realized by adopting the following technical scheme:
an electronic device capable of carrying out data step 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 through 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 processes:
setting Z data thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval; for transmission data comprising Q data words, replacing the numerical value of each data word by the threshold interval code of the threshold interval in which the numerical value of the data word is positioned according to the threshold interval in which the numerical value of the data word is positioned, and forming interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol, the data word compression/decompression protocol setting at least one of rules for compressing interval code data words into compressed data words, rules for composing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words; combining threshold interval codes of more than two interval code data words into one compressed data word according to a data word compression/decompression protocol, and compressing Q interval code data words into R compressed data words, wherein R is less 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 data processing process of the main device:
the master device parses the received compressed transmission data frame according to a data word compression/decompression protocol, and decompresses the R compressed data words into interval code data including Q interval code data words.
In order to further compress the data, 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 sub-frame transmission data, wherein G is more than or equal to 2;
and after the G sub-frame transmission data is processed by the slave device, the slave device sends a G sub-frame compression transmission data frame to the master device.
The composition and the connection structure of each electronic component of the main device enable the main device to complete the following data combination process:
the master device respectively carries out the data processing process of the master device on the compressed transmission data frames of the G subframes, so as to decompress and obtain the code data of the G subframe interval;
the master device integrates the G subframe interval code data into interval code data of a whole frame.
In the above scheme, the main device is a data receiving device, and includes at least one of an upper computer, a central processing unit, a touch screen main processor, a pressure detecting device main processor, and a fingerprint identifying device main processor. The slave device is a data sending device and comprises at least one of a terminal, a coprocessor, 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.
Compared with the prior art, the invention has the technical effects that the data step compression transmission method, the device for realizing the method and the electronic equipment have the following advantages:
the characteristic points of the transmission data are reserved through multi-level threshold quantization, the number of the data values of the data words is greatly reduced under the condition of not influencing the report rate requirement, the data volume of the transmission data is compressed by combining a plurality of data words without distortion, the compression rate is high, and I is improved2The data transmission efficiency of the bus C effectively solves the problem of the transfer calculation capability of the embedded system; by increasing or decreasing the threshold order, the requirement of transmitting data precision is met.
Drawings
FIG. 1 is a schematic diagram of a transmission data matrix according to a first embodiment of the present invention, namely, "a data compression transmission method in stages and a device and an electronic apparatus for implementing the method";
fig. 2 is a schematic diagram of an interval code data word matrix after first-order binarization conversion of the transmission data shown in fig. 1;
FIG. 3 is a schematic diagram of a packet configuration for converting the interval code data words of FIG. 2 into compressed data words;
fig. 4 is a schematic diagram of a compressed data frame in which extended data is converted from an interval code data word to a compressed data word in a data packet according to the first embodiment;
FIG. 5 is a schematic diagram of a range code data word matrix after fourth-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-stage conversion of transmission data according to the second embodiment;
FIG. 7 is a diagram of a matrix contour line of the interval code data word after the four-stage conversion of the transmission data shown in FIG. 6;
FIG. 8 is a schematic diagram of an interval code data word matrix after transmission data is decomposed into two groups of transmission data and subjected to first-order conversion according to a third embodiment of the present invention;
fig. 9 is a diagram illustrating a packet structure in which the extension data is used as the transmission data according to the fourth embodiment of the present invention;
fig. 10 is an electrical schematic of a fifth embodiment of the invention.
Detailed Description
The embodiments are described in further detail below with reference to the attached drawings.
The invention provides an IC-based internal I2The data step compression transmission method of C bus communication, in the communication between the master device and the slave device which are electrically connected through the internal bus of the integrated circuit, the following data processing process is carried out to the transmission data: setting Z data thresholds, wherein Z is more than or equal to 1; assume that the data threshold is TH1,……,THZ,TH1<……<THZThen Z +1 threshold intervals should be (— infinity, TH)1],……,(THZ, + ∞); respectively setting a threshold interval code for each threshold interval;
for transmission data comprising Q data words, wherein Q is a natural number, replacing the value of each data word with the 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, and forming interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol, the data word compression/decompression protocol setting at least one of rules for compressing interval code data words into compressed data words, rules for composing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words;
combining threshold interval codes of more than two interval code data words into one compressed data word according to a data word compression/decompression protocol, and compressing Q interval code data words into R compressed data words, wherein R is a natural number and 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 interval code data including Q interval code data words.
The master device and the slave device are in I2And C, a transmission data transceiving end device for bus communication. 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 pressure detection device main processor and a fingerprint identification device main processor. The slave device is a transmission data sending device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control microcontroller Unit, a pressure detection chip, a pressure detection microcontroller MCU, a fingerprint identification chip and a fingerprint identification microcontroller MCU.
First embodiment of the invention the following software and hardware environment is constructed to illustrate the integrated circuit based internal I2The data step compression transmission method of C bus communication comprises the following steps:
the method of the invention is for transmitting data packets, a first embodiment of the invention, I2The 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 configured to process a touch screen gesture recognition algorithm data packet, which includes breakpoint coordinate data and extension data as basic data, where the extension data is extension data of a 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 I2The communication rate of the C bus is 400kbit/s, the report rate of the transmission data packet requires 120 frames/second, and then the data volume of the data packet is 150 bytes, including report point coordinate data which is 52 bytes and is used as basic data, and expansion data which is 98 bytes and is used as transmission data for compression transmission by the method of the invention. The first embodiment of the present invention, as shown in FIG. 3, sets up the coordinate data of the report point in the data packetBefore the data is expanded. In addition, the fourth embodiment of the present invention, as shown in fig. 9, is different from the first embodiment only in that the point coordinate data is set after the extension data in the packet, which is also a possible solution. The extension data of the invention can also be at least one of the extension data of a touch screen gesture recognition algorithm, the extension data of a proximity sensing algorithm, the extension data of a waterproof algorithm of a touch screen, the extension data of a high-sensitivity suspension algorithm and the extension data of a pressure detection algorithm.
The master device and the slave device of the present invention are relative concepts, the master device being a data receiving device, and the slave device being a data transmitting device. In practice, the device can then generally be used both as a data receiving device and as a data transmitting device. In the process of I2In the two devices for C bus communication, the device serving as a data receiving device is set as a master device of the method of the present invention, and the device serving as a data transmitting device is set as a slave device of the method of the present invention. In the first embodiment of the present invention, the master device is a central processing unit, and the slave device is a touch control chip electrically connected to the central processing unit.
As shown in fig. 1, the extended data used as transmission data in the first embodiment of the present invention includes a 32 × 18 data channel matrix formed by 18 rows and 32 columns of data channels, where each data channel is a data word, that is, Q data words are data channel matrices reflecting X × Y data channel values, and Q = X × Y. The data channels in fig. 1 and 2 are ordered such that the first 16 data channels of each row are divided into front groups and the last 16 data channels of each row are divided into back groups in a left-to-right order. The data channels are sorted by the front group of rows from left to right and in row order from top to bottom, and then continue to be sorted by the rear group of rows from left to right and in row order from top to bottom. That is, the first 16 data channels from left to right in the first row are the zero data channel CH0, the one data channel CH1, … …, and the fifteen data channel CH 15; the second row is sixteen data channels CH16, seventeen data channels CH17, … …, thirty-one data channels CH31 in turn according to the first 16 data channels from left to right, and so on, and the first row is two-hundred eighty-eight data channels CH288, … …, three-hundred-zero data channels CH303 in turn according to the last 16 data channels from left to right; and so on.
In the first embodiment of the present invention, as shown in fig. 1, the data value of one data word, i.e., the channel value of one data channel is shown in decimal, and one data word is embodied as a 16-bit binary code equivalent to the decimal display value in data transmission, then the data amount of the transmission data shown in fig. 1 as described above is reached:
(32×18×16)/8 = 1152 byte
obviously, a typical data size of extended data 1152 byte requires I2The C bus can only transmit for a longer time. Based on the internal I of the integrated circuit2The data step compression transmission method of C bus communication solves the problem.
The threshold value quantity Z of the method is the order of the step compression, the first embodiment of the invention adopts a first-order compression transmission method, namely Z =1, and 1 data threshold value TH is set1Data threshold TH1Is 1000 decimal, forming 2 threshold intervals (-infinity, TH)1]And (TH)1, + ∞), i.e., - ∞, 1000]And (1000, + ∞). Is a threshold interval (- ∞, 1000)]The one-bit interval threshold code set is 0, and the one-bit interval threshold code set for the threshold interval (Q1, + ∞) is 1. On the contrary, the threshold value range (— infinity, 1000)]It is also possible to set the one-bit interval threshold code to 1 and the one-bit interval threshold code to 0 for the threshold interval (Q1, + ∞).
For transmission data comprising 32 × 18 data words, the value of each data word is replaced with the threshold interval code of the threshold interval in which the value is located according to the value of the data word, i.e., the threshold interval in which the channel value of the data channel is located, to form interval code data comprising 32 × 18 interval code data words as shown in fig. 2, i.e., the 32 × 18 data words are converted into 32 × 18 binarized interval code data words.
Threshold interval codes of more than two interval code data words are combined into one compressed data word according to a data word compression/decompression protocol. In a first embodiment of the present invention, as shown in FIG. 3, a compressed data word comprises an 8-Bit binary code, Bit0, Bit1, … …, Bit 7. The interval code data words are in one bit binary code, then 8 interval code data words are combined into one compressed data word, so that R = Q/8=72, resulting in 32 × 18 interval code data words being converted 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 in decimal numbers. The data size of the 72 compressed data words is 72 bytes. Therefore, the data volume of the transmission data is compressed from 1152 byte to 72 byte of the data volume of the compressed transmission data frame, and the compression rate is 16 times.
The compression of the interval code data words into compressed data words needs to be performed according to a data word compression/decompression protocol. In the first embodiment of the present invention, as shown in fig. 2 to 4, when data word compression is performed, the rule of selecting interval code data words for compression into a compressed data word is to select a group of interval code data words of 8 data channels for compression into a compressed data word according to the data channel ordering, with each 8 data channels as a group. The ordering of the section code data words compressed into compressed data words is, as shown in fig. 3, that the section code of the data channel with the smallest number among a group of 8 consecutive data channels is set as the lowest order of the compressed data words, and the section code data words of the data channels are sequentially arranged in the order of the compressed data words from the lower order to the higher order in the order of increasing the data channel numbers; 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 zero Bit0 of the compressed data word, the section code of the data channel CH1 is set to one Bit of the compressed data word, Bit1, … …, and the section code of the data channel CH7 is set to seven Bit of the compressed data word, Bit 7. The compressed data words are arranged in the sequence that compressed data words compressed by interval code data words of every 8 data channels are sequentially ordered from small to large as shown in fig. 2 and 4. As shown in fig. 4, the 9 th compressed data word is a compressed data word of the interval code of the first eight data lanes of line 5 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 the compressed data word of the interval code of the first eight data channels in line 9 of fig. 2, and the decimal data value of the 8-bit binary data value 00010001 is 136. When compressing data words, the rules for compressing interval code data words into compressed data words include rules for setting selected interval code data words for combination into a compressed data word, and rules for setting the ordering of the interval code data words for combination into compressed data words. When compressing data words, the rule for composing compressed data words into compressed transmission data frames comprises the arrangement sequence of the compressed data words. The specific content of the above rules should be set reasonably according to the data characteristics, application environment and other factors. In application, all the settings may be set, or only 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 compressed to less than 98 bytes, so that the transmission of the compressed data frame will not cause the decrease of the reporting rate.
The master device parses the received compressed transport data frame according to the data word compression/decompression protocol, and decomposes the 72 data compressed words back into 576 interval codewords.
The decompression of compressed data words into interval code data words also needs to be performed according to a data word compression/decompression protocol. In a first embodiment of the invention, the rule for decomposing a compressed data frame into compressed data words during decompression of the data words comprises setting the decompression order of the compressed data words, i.e. sequentially decompressing the compressed data words according to their ordering. In a first embodiment of the present invention, the rules for decompressing compressed data words into interval code data words during data word decompression include setting the order of decomposition of compressed data words into interval code data words and setting the order of restoration of the decomposed interval code data words in accordance with the order of compression of data words. Of course, if it is convenient to perform the subsequent processing of the data and the purpose of the data is taken into consideration, the data word decompression rule different from that of the first embodiment may be adopted. In application, all the settings may be set, or only at least one of them may be set.
The invention reserves the characteristic point of the transmission data through threshold quantization, greatly reduces the number of the data value of the data word under the condition of not influencing the requirement of the report rate, ensures that the data volume of the transmission data is compressed by combining a plurality of data words without distortion, has high compression ratio, and improves I2The data transmission efficiency of the C bus effectively solves the problem of the computing transfer capability of the embedded system.
The rules used during compression and the rules applied during decompression in the data word compression/decompression protocol can be associated with each other or have no association, and corresponding compilation needs to be made according to the data characteristics and application scenes.
When the number of the feature points of the transmission data is large, the feature points can be reserved by setting more than one order of threshold values, namely, the value of Z is reasonably increased, and data compression transmission is carried out through more than one data threshold values. As shown in fig. 5 to 7, a set of transmission data different from that shown in fig. 1, which has 4 characteristic points, is required to pass through 4 data thresholds TH1<TH2<TH3< TH4 into 5 threshold intervals (-infinity, TH)1]、(TH1,TH2]、(TH2,TH3]、(TH3,TH4]、(TH4And + ∞) and 4-stage compression is performed. The threshold value section codes respectively set for the respective threshold value sections are 0, 1, 2, 3, 4 in decimal, and the decimal threshold value section codes should be converted into binary codes in actual processing. For a set of transmission data different from that shown in fig. 1, the interval code data word formed by the conversion is shown in fig. 5.
Although more characteristic points are reserved through the multi-level data threshold with more than one level, the compression rate of the transmission data is reduced, and in addition, for some transmission data, the compressed data amount is still higher even through the compression of the first-level data threshold with higher compression rate. For the two cases, the method can be realized by a scheme of decomposing the transmitted data and combining and restoring. Based on the method of the present invention, the present invention also provides a process of transmission data decomposition/combination:
before the data processing process is performed on the transmission data,
the slave device decomposes one frame of transmission data into at least G sub-frame 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 subframe interval code data into interval code data of a whole frame.
A third embodiment of the present invention, as shown in fig. 8, 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 an interval code data word, i.e., the case of G =2 described above. By the method for decomposing/combining the transmission data, the transmission data is ensured to be completely transmitted in the time domain based on the transmission rate and the report point rate.
The invention also provides a main device capable of performing data step compression transmission based on the data step compression transmission method based on the internal bus communication of the integrated circuit, and the main device can utilize the internal I of the integrated circuit2The C-bus electrically connects the slave devices. The main device comprises more than two electronic components, and the composition and connection structure of each electronic component enable the main device to at least complete the following data processing process of the main device:
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 the 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 rules for compressing interval code data words into compressed data words, rules for forming compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words; one 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 less 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:
and setting Z data thresholds, wherein Z is more than or equal to 1, so that Z +1 threshold intervals are formed, and a threshold interval code is respectively set for each threshold interval. And replacing the numerical value of each data word with the threshold interval code of the threshold interval in which the numerical value of the data word is positioned according to the threshold interval in which the numerical value of the data word is positioned, and forming interval code data comprising Q interval code data words.
In order to further improve the data compression amount, the master device can also complete data combination with the slave device. When the slave device decomposes a frame of transmission data into at least G sub-frame transmission data, G is more than or equal to 2, the slave device sends G sub-frame compression transmission data frames 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 master device respectively carries out the data processing process of the master device on the compressed transmission data frames of the G subframes, so as to decompress and obtain the code data of the G subframe interval;
the master device integrates the G subframe interval code data into interval code data of a whole frame.
Specifically, the slave device should add data information reflecting the manner of decomposition when decomposing one-frame transmission data into G-subframe transmission data, for example, the data information includes one of the data reflecting that the one-frame transmission data is decomposed into G-subframe transmission data, the rank of the subframe transmission data, the data amount of the subframe transmission data, and the like. The master device receives a G subframe compression transmission data frame sent by the slave device; and the master device analyzes the received compressed transmission data frame of each subframe according to a data word compression/decompression protocol, decompresses R compressed data words of the compressed transmission data frame into interval code data comprising Q interval code data words, and obtains G subframe interval code data. The master device arranges and combines the code data of the G subframe interval code data interval into code data of a whole frame interval according to the data information reflecting the decomposition mode.
The above-described first to fourth embodiments of the present invention are applicable to the master 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 pressure detection device main processor and a fingerprint identification device main processor. Then, the slave device is a data transmission device including at least one of a terminal, a coprocessor, a touch control chip MCU, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller MCU, a fingerprint identification chip, and a fingerprint identification microcontroller MCU.
The invention also provides a slave device capable of carrying out data step compression transmission based on a data step compression transmission method based on the internal bus communication of the integrated circuit, wherein the slave device can utilize the internal I of the integrated circuit2The C bus is electrically connected with the master 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 processes:
setting Z data thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval; for transmission data comprising Q data words, replacing the numerical value of each data word by the threshold interval code of the threshold interval in which the numerical value of the data word is positioned according to the threshold interval in which the numerical value of the data word is positioned, and forming interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol, the data word compression/decompression protocol setting at least one of rules for compressing interval code data words into compressed data words, rules for composing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words; combining threshold interval codes of more than two interval code data words into one compressed data word according to a data word compression/decompression protocol, and compressing Q interval code data words into R compressed data words, wherein R is less 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 perform 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 sub-frame transmission data, wherein G is more than or equal to 2;
and after the G sub-frame transmission data respectively passes through the data processing process of the slave device, the slave device sends a G sub-frame compression transmission data frame to the master device.
The above-described first to fourth embodiments of the present invention are applicable to the slave device data processing process and the data decomposition process.
The slave device is a data sending device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control microcontroller MCU, a pressure detection chip, a pressure detection microcontroller MCU, a fingerprint identification chip and a fingerprint identification microcontroller MCU. Then, the main device is a data receiving device, and includes at least one of an upper computer, a central processing unit, a touch screen main processor, a pressure detecting device main processor, and a fingerprint recognizing device main processor.
The invention also provides electronic equipment capable of performing data step compression transmission on the basis of a data step compression transmission method based on the internal bus communication of an integrated circuit. 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 master device and the slave device are connected through an internal I of an integrated circuit2The 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 processes:
setting Z data thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval; for transmission data comprising Q data words, replacing the numerical value of each data word by the threshold interval code of the threshold interval in which the numerical value of the data word is positioned according to the threshold interval in which the numerical value of the data word is positioned, and forming interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol, the data word compression/decompression protocol setting at least one of rules for compressing interval code data words into compressed data words, rules for composing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words; combining threshold interval codes of more than two interval code data words into one compressed data word according to a data word compression/decompression protocol, and compressing Q interval code data words into R compressed data words, wherein R is less 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 data processing process of the main device:
the master device parses the received compressed transmission data frame according to a data word compression/decompression protocol, and decompresses the R compressed data words into interval code data including Q interval code data words.
The data processing process of the data step compression transmission method based on the internal bus communication of the integrated circuit comprises a master device data processing process and a slave device data processing process.
To further increase the amount of data compression, the master and slave devices can also cooperate to perform 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 sub-frame transmission data, wherein G is more than or equal to 2;
and after the G sub-frame transmission data is processed by the slave device, the slave device sends a G sub-frame compression transmission data frame to the master device.
The composition and the connection structure of each electronic component of the main device enable the main device to complete the following data combination process:
the master device respectively carries out the data processing process of the master device on the compressed transmission data frames of the G subframes, so as to decompress and obtain the code data of the G subframe interval;
the master device integrates the G subframe interval code data into interval code data of a whole frame.
The process of transmission data decomposition/combination in the data step compression transmission method based on the 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 pressure detection device main processor and a fingerprint identification device main processor. The slave device is a data sending device and comprises at least one of a terminal, a coprocessor, a touch control chip, a touch control microcontroller MCU, a pressure detection chip, a pressure detection microcontroller MCU, a fingerprint identification chip and a fingerprint identification microcontroller MCU.
In a first embodiment of the present invention, the master device and the slave device are in a one-to-one configuration.
The master and slave devices may again be in a one-to-many arrangement. In a fifth embodiment of the present invention, as shown in fig. 10, the electronic device is an electronic device 4 having a touch screen, a pressure detection function and a fingerprint recognition function, and the electronic device is, for example, a mobile communication terminal, which is mostly called a mobile phone, and has not only a touch screen input function but also a pressure detection function and a fingerprint recognition function for detecting a 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 electrically connected with the central processing unit 111 respectively for completing a touch screen function, a pressure detection chip 212 for completing a pressure detection function, and a fingerprint identification chip 213 for completing a fingerprint identification function. Various other components necessary for implementing the functions thereof are also provided in the electronic device 4.
For the case where multiple masters require data from the same slave, the masters and slaves may also be in a many-to-one configuration, i.e., more than two masters are electrically connected to the same slave.
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 only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (18)

1. A data step compression transmission method based on integrated circuit internal bus communication is characterized in that:
in communication between a master device and a slave device electrically connected through an internal bus of an integrated circuit, transmission data is subjected to a data processing process,
setting Z data thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval;
for transmission data comprising Q data words, wherein Q is a natural number, replacing the value of each data word with the 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, and forming interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol, the data word compression/decompression protocol setting at least one of rules for compressing interval code data words into compressed data words, rules for composing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words;
combining threshold interval codes of more than two interval code data words into one compressed data word according to a data word compression/decompression protocol, and compressing Q interval code data words into R compressed data words, wherein R is a natural number and 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 decompresses the R compressed data words into interval code data including Q interval code data words.
2. The method for transmitting data by staged compression based on bus communication inside an integrated circuit according to claim 1, wherein:
the data packet transmitted by the internal bus communication 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 transmitting data by staged compression based on bus communication inside an integrated circuit according to claim 2, wherein:
the extension data is at least one of extension data of a touch screen gesture recognition algorithm, extension data of a touch screen proximity sensing algorithm, extension data of a touch screen waterproof algorithm, extension data of a high-sensitivity suspension algorithm and extension data of a pressure detection algorithm.
4. The method for transmitting data by staged compression based on bus communication inside an integrated circuit according to claim 3, wherein:
the Q data words are a data channel matrix comprising X × Y data channels, each data channel being a data word, i.e. Q = X × Y.
5. The method for transmitting data by staged compression based on bus communication inside an integrated circuit according to claim 1 or 4, wherein:
z =1, i.e. a data threshold TH is set12 threshold intervals (-infinity, TH) are formed1]And (TH)1, + ∞); the one-bit interval threshold code set for each of the two threshold intervals is 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 Q data words with Q binarized interval code data words.
6. The method for transmitting data by staged compression based on bus communication inside an integrated circuit 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 8 interval code data words are compressed into one compressed data word, so that R = Q/8.
7. The method for transmitting data by staged compression based on bus communication inside an integrated circuit according to claim 1 or 2, wherein:
the data word compression/decompression protocol sets at least one of,
when compressing data words, selecting rules for compressing interval code data words of a compressed data word;
when data words are compressed, sorting interval code data words compressed into compressed data words;
when the data words are compressed, the arrangement sequence of the compressed data words is determined;
compressing the decompression sequence of the data words when the data words are decompressed;
when the data words are decompressed, the compressed data words are decomposed into the sequence of the code data words in each interval; and the number of the first and second groups,
and (4) when the data words are decompressed, reducing and sequencing the code data words in each section.
8. The method for transmitting data by staged compression based on bus communication inside an integrated circuit 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 pressure detection device main processor and a fingerprint identification device main processor;
the slave device is a transmission data sending device and comprises at least one of a terminal, a coprocessor, 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.
9. The method for transmitting data by staged compression based on bus communication inside an integrated circuit according to claim 1, wherein:
before the data processing process is performed on the transmission data,
the slave device decomposes one frame of transmission data into at least G sub-frame 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 subframe interval code data into interval code data of a whole frame.
10. A master device capable of data staged compression transfer, the master device being capable of electrically connecting slave devices via an integrated circuit internal bus, the master device comprising:
comprises more than two electronic components; the composition and connection structure of each electronic component enables 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 rules for compressing interval code data words into compressed data words, rules for forming compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words; one 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 less than Q, and the R compressed data words form a compressed transmission data frame;
section code data including Q section code data words is converted from transmission data including Q data words by processing,
setting Z data thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval; and replacing the numerical value of each data word with the threshold interval code of the threshold interval in which the numerical value of the data word is positioned according to the threshold interval in which the numerical value of the data word is positioned, and forming interval code data comprising Q interval code data words.
11. The master device capable of data staged compression transmission as recited in claim 10, wherein:
when the slave device decomposes one frame of transmission data into at least G sub-frames of transmission data, G is more than or equal to 2; the slave device sends G sub-frame compression transmission data frames to the master device, so that 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 master device respectively carries out the data processing process of the master device on the compressed transmission data frames of the G subframes, so as to decompress and obtain the code data of the G subframe interval;
the master device integrates the G subframe interval code data into interval code data of a whole frame.
12. Master device capable of data staged compression transmission according to claim 10 or 11, wherein:
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 pressure detection device main processor and a fingerprint identification device main processor;
then, the slave device is a data transmission device including at least one of a terminal, a coprocessor, 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 staged compression transfer, capable of electrically connecting a master device via an integrated circuit internal bus, comprising:
comprises more than two electronic components; the composition and connection structure of the electronic components enable the slave device to at least perform the following slave device data processing procedures,
setting Z data thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval; for transmission data comprising Q data words, replacing the numerical value of each data word by the threshold interval code of the threshold interval in which the numerical value of the data word is positioned according to the threshold interval in which the numerical value of the data word is positioned, and forming interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol, the data word compression/decompression protocol setting at least one of rules for compressing interval code data words into compressed data words, rules for composing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words; combining threshold interval codes of more than two interval code data words into one compressed data word according to a data word compression/decompression protocol, and compressing Q interval code data words into R compressed data words, wherein R is less 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 staging compression transmission as recited in claim 13, wherein:
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 sub-frame transmission data, wherein G is more than or equal to 2;
and after the G sub-frame transmission data respectively passes through the data processing process of the slave device, the slave device sends a G sub-frame compression transmission data frame to the master device.
15. The slave device capable of data staged compression transmission as claimed in claim 13 or 14, wherein:
the slave device is a data sending device and comprises at least one of a terminal, a coprocessor, 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;
then, the main device is a data receiving device, and includes at least one of an upper computer, a central processing unit, a touch screen main processor, a pressure detecting device main processor, and a fingerprint recognizing device main processor.
16. An electronic device capable of data staged compression transmission, comprising:
the integrated circuit 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 through an internal bus of the integrated circuit;
the slave device comprises more than two electronic components; the composition and connection structure of each electronic component of the slave device enable the slave device to at least complete the following slave device data processing procedures,
setting Z data thresholds, wherein Z is more than or equal to 1, so as to form Z +1 threshold intervals, and respectively setting a threshold interval code for each threshold interval; for transmission data comprising Q data words, replacing the numerical value of each data word by the threshold interval code of the threshold interval in which the numerical value of the data word is positioned according to the threshold interval in which the numerical value of the data word is positioned, and forming interval code data comprising Q interval code data words;
setting a data word compression/decompression protocol, the data word compression/decompression protocol setting at least one of rules for compressing interval code data words into compressed data words, rules for composing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and rules for decompressing compressed data words into interval code data words; combining threshold interval codes of more than two interval code data words into one compressed data word according to a data word compression/decompression protocol, and compressing Q interval code data words into R compressed data words, wherein R is less than Q, and the R compressed data words form a compressed transmission data frame;
sending the compressed transmission data frame to a master device;
the main device comprises more than two electronic components; the composition and connection structure of the electronic components 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, and decompresses the R compressed data words into interval code data including Q interval code data words.
17. The electronic device capable of data staged compression transmission as recited in claim 16, wherein:
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 sub-frame transmission data, wherein G is more than or equal to 2;
after the G subframe transmission data is processed by the slave device, the slave device sends a G subframe compression transmission data frame to the master device;
the composition and connection structure of the electronic components of the master device enable the master device to also perform the following data assembly process,
the master device respectively carries out the data processing process of the master device on the compressed transmission data frames of the G subframes, so as to decompress and obtain the code data of the G subframe interval;
the master device integrates the G subframe interval code data into interval code data of a whole frame.
18. The electronic device capable of data staged compression transmission according to claim 16 or 17, wherein:
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 pressure detection device main processor and a fingerprint identification device main processor;
the slave device is a data sending device and comprises at least one of a terminal, a coprocessor, 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.
CN201810630715.3A 2018-06-19 2018-06-19 Data stepped compression transmission method, device for realizing method and electronic equipment Active CN110618960B (en)

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 true CN110618960A (en) 2019-12-27
CN110618960B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116388768A (en) * 2023-06-06 2023-07-04 上海海栎创科技股份有限公司 Compression method and system for signal data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202054A (en) * 2014-09-16 2014-12-10 东南大学 Hardware LZMA (Lempel-Ziv-Markov chain-Algorithm) compression system and method
CN105099843A (en) * 2014-05-16 2015-11-25 罗伯特·博世有限公司 Run time compression method for a vehicle communication bus
CN105790853A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Method and device for transmitting character data through sound wave

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012168960A1 (en) * 2011-06-07 2012-12-13 Hitachi, Ltd. Semiconductor storage apparatus and method of controlling semiconductor storage apparatus
US10311010B2 (en) * 2011-10-05 2019-06-04 Analog Devices, Inc. Two-wire communication systems and applications
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105099843A (en) * 2014-05-16 2015-11-25 罗伯特·博世有限公司 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
CN105790853A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Method and device for transmitting character data through sound wave

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116388768A (en) * 2023-06-06 2023-07-04 上海海栎创科技股份有限公司 Compression method and system for signal data
CN116388768B (en) * 2023-06-06 2023-08-22 上海海栎创科技股份有限公司 Compression method and system for signal data

Also Published As

Publication number Publication date
TWI695591B (en) 2020-06-01
WO2019242554A1 (en) 2019-12-26
TW202002527A (en) 2020-01-01
CN110618960B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN111212279B (en) Video quality assessment method and device
JP2672382B2 (en) Synchronous method for the transmission of a sequence of images encoded by a variable length code on an asynchronous channel, and an apparatus for the implementation of this method
CN1187944C (en) Reuse of static checksum and information in header compression/decompression application
EP3108583B1 (en) Devices and methods of source-encoding and decoding of data
JPWO2014084072A1 (en) Image sensor and data transmission method thereof, information processing apparatus and information processing method, electronic device, and program
CN104040899A (en) Generating a code alphabet of symbols to generate codewords for words used with a program
US7675438B2 (en) Method and system for transmitting/receiving serial data in serial communication system and serial communication system for the same
CN110618960A (en) Data step compression transmission method and device and electronic equipment for implementing same
KR101467684B1 (en) Binary data compression and decompression apparatus and method thereof
CN111726312A (en) Differential signal processing apparatus, operation method thereof and method of electronic signaling
CN113542225B (en) Data compression method and device, terminal equipment and storage medium
CN103731241B (en) Encoding system and method for improving spectrum efficiency of communication system
CN1248863A (en) Method for compressing image data
US7315262B2 (en) Coding and decoding method for a sequence of elements, signal, coder, decoder, corresponding computer programs and storage means
CN115022771A (en) Volume adjusting method and device, computer equipment and readable storage medium
KR101549740B1 (en) Binary data compression and decompression method and apparatus
US20110285869A1 (en) Serial data sending and receiving apparatus and digital camera
JPS60140979A (en) Parallel processor for encoding and decoding of picture signal
JPH07306943A (en) Image signal coding method
KR20040073103A (en) A method for synchronizing data frames in digital communication system
KR101468307B1 (en) Binary data compression and decompression apparatus and method
KR101733299B1 (en) Binary data real time compression and decompression method
KR101670606B1 (en) Binary data compression and decompression method
CN116170115B (en) Digital fountain coding and decoding method, device and system based on codebook
US20100146364A1 (en) Method and apparatus for encoding/decoding bus signal

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