TWI695591B - Data stepped compression transmission method and device and electronic equipment for realizing the method - Google Patents

Data stepped compression transmission method and device and electronic equipment for realizing the method Download PDF

Info

Publication number
TWI695591B
TWI695591B TW108119360A TW108119360A TWI695591B TW I695591 B TWI695591 B TW I695591B TW 108119360 A TW108119360 A TW 108119360A TW 108119360 A TW108119360 A TW 108119360A TW I695591 B TWI695591 B TW I695591B
Authority
TW
Taiwan
Prior art keywords
data
compressed
words
word
transmission
Prior art date
Application number
TW108119360A
Other languages
Chinese (zh)
Other versions
TW202002527A (en
Inventor
肖鋇
駱志强
韓偉偉
Original Assignee
開曼群島商敦泰電子有限公司
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 開曼群島商敦泰電子有限公司 filed Critical 開曼群島商敦泰電子有限公司
Publication of TW202002527A publication Critical patent/TW202002527A/en
Application granted granted Critical
Publication of TWI695591B publication Critical patent/TWI695591B/en

Links

Images

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

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

無。

Description

資料分階壓縮傳輸方法及實現該方法的器件和電子設備Data stepped compression transmission method and device and electronic equipment for realizing the method

本發明係關於資料處理方法以及完成該資料處理方法的器件和設備,特別是關於資料壓縮傳輸的方法以及完成該方法的器件和設備。The invention relates to a data processing method and a device and equipment for completing the data processing method, in particular to a data compression transmission method and a device and equipment for completing the method.

簡稱I2 C匯流排的積體電路內部(Inter-Integrated Circuit)匯流排的通訊方式因其實現簡易而被普遍使用,但是,現有技術採用I2 C匯流排通訊方式的缺陷之一是限制資料傳輸速率。例如,當採用I2 C匯流排通訊方式傳輸觸控板(Touch Panel)資料時,觸控板(Touch Panel)簡稱TP,I2 C匯流排通訊協議規定的速率是100kbit/s~400kbit/s,TP資料上報率要求120幀/秒,那麽傳輸一幀TP資料的時間大約8.33ms。對於一幀TP資料上報,演算法本身占用5ms左右,上報資料僅限3ms,以I2 C匯流排通訊速率是400kbit/s、報點率是120Hz計算,3ms上報資料量為: (400000/8/1000)×3 = 150 byte TP資料的資料包中包括基礎資料和擴展資料。常見的10個點觸控資料包(Touch Package)作為基礎資料,擴展資料包括用於做演算法拓展的原始資料(Raw Data),減去基本資料(Base Data)後的預處理資料,或者上報手勢軌迹資料等。那麽在150 byte的資料量中,10個點觸控資料包(Touch Package)已經占用52 byte,剩餘98 byte用做擴展資料。The communication method of the Inter-Integrated Circuit (Inter-Integrated Circuit) bus, which is referred to as I 2 C bus, is widely used because of its simple implementation. However, one of the shortcomings of the existing technology using the I 2 C bus communication method is the limitation of data Transmission rate. For example, when I 2 C bus communication is used to transmit Touch Panel data, the Touch Panel is referred to as TP, and the I 2 C bus communication protocol requires a rate of 100 kbit/s to 400 kbit/s. , TP data reporting rate requires 120 frames per second, then the time to transmit one frame of TP data is about 8.33ms. For the reporting of a frame of TP data, the algorithm itself takes about 5ms, and the reported data is limited to 3ms. Based on the I 2 C bus communication rate of 400kbit/s and the reporting rate of 120Hz, the amount of reported data in 3ms is: ( 400000/8/1000)×3 = 150 byte TP data package includes basic data and extended data. The common 10 touch packages are used as basic data. The extended data includes raw data (Raw Data) used for algorithm expansion, pre-processed data after subtracting the basic data (Base Data), or on Report the gesture track information, etc. In the data volume of 150 bytes, 10 touch packages (Touch Package) already occupy 52 bytes, and the remaining 98 bytes are used as extended data.

一種典型的擴展資料如圖1所示,包括18列32行資料通道構成的32×18資料通道矩陣,每個資料通道的資料值採用16位二進制數,那麽圖1所示需要透過I2 C匯流排傳輸的擴展資料量為: (32×18×16)/8 = 1152 byte 顯然典型的擴展資料的資料量1152 byte需要I2 C匯流排以較長的時間才能傳輸。A typical extended data 1, comprising 32 × 18 18 32 Data channel matrix row data channel configuration, the value of data for each data channel 16-bit binary number, then through FIG required I 2 C 1 shown in The amount of extended data transmitted by the bus is: (32×18×16)/8 = 1152 byte. Obviously, the amount of data of the typical extended data of 1152 byte requires the I 2 C bus to take a longer time to transmit.

對於上報TP資料,這是時常遇到的問題。出現該問題時,現有技術應當增加資料緩衝(Buffer)的長度,意味著上述I2 C匯流排能夠提供給上報TP資料的時間,8.33ms,不足以完成上報TP資料,需要延長上報時間,而現有技術這種處理方式將會造成報點率驟降,報點率直接影響用戶的TP操作體驗,報點率越高,用戶體驗TP操作越流暢,報點率驟降給用戶的體驗就是TP操作流暢性差,甚至造成TP操作有頓挫感和滯後感。因此,現有技術I2 C匯流排資料傳輸對於嵌入式系統運算能力本身存在的缺陷,如精確度要求、圖形運算能力差、記憶體較小等,沒有更好的轉移計算能力的方法,限制了很多觸碰檢測領域應用的技術延伸。For reporting TP data, this is a common problem. When this problem occurs, the existing technology should increase the length of the data buffer (Buffer), which means that the above I 2 C bus can provide the time for reporting TP data, 8.33 ms, which is not enough to complete the reporting of TP data, and the report needs to be extended Time, and this processing method of the prior art will cause a sudden drop in the reporting rate. The reporting rate directly affects the user's TP operation experience. The higher the reporting rate, the smoother the user experience TP operation and the sudden drop in the reporting rate to the user. The experience is that the TP operation is poor in fluency, and even causes the TP operation to have a sense of frustration and lag. Therefore, the prior art I 2 C bus data transmission has defects in the computing power of the embedded system, such as accuracy requirements, poor graphics computing power, and small memory. There is no better method to transfer computing power, which limits Many technology extensions applied in the field of touch detection.

本發明要解决的技術問題在於避免現有技術的不足之處而提出一種能夠壓縮傳輸資料資料量的、適於I2 C匯流排通訊的資料壓縮傳輸方法。The technical problem to be solved by the present invention is to avoid the shortcomings of the prior art and to propose a data compression transmission method which is capable of compressing and transmitting the data volume and is suitable for I 2 C bus communication.

本發明解决所述技術問題可以透過採用以下技術方案來實現:The present invention can solve the technical problems by adopting the following technical solutions:

提出一種基於積體電路內部I2 C匯流排通訊的資料分階壓縮傳輸方法,在透過積體電路內部匯流排電連接的主器件和從器件之間的通訊中,對傳輸資料進行如下資料處理過程: 設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼; 對於包括Q個資料字的傳輸資料,Q是自然數,根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料; 設置資料字壓縮/解壓協議,該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則,將壓縮資料字組成壓縮傳輸資料幀的規則,將壓縮資料幀分解為壓縮資料字的規則,以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個規則; 依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字,使Q個區間代碼資料字壓縮成R個壓縮資料字,R是自然數,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀; 從器件將壓縮傳輸資料幀發送至主器件; 主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將R個壓縮資料字解壓為包括Q個區間代碼資料字的區間代碼資料。This paper proposes a hierarchical compression transmission method for data based on I 2 C bus communication in an integrated circuit. In the communication between the master device and the slave device electrically connected through the internal bus of the integrated circuit, the following data processing is performed on the transmitted data Process: Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval separately; For transmission data that includes Q data words, Q is a natural number , According to the threshold value interval where the value of the data word is located, replace the value of each data word with the threshold interval code of the threshold value interval where it is located to form interval code data including Q interval code data words; Set the data word compression/ Decompression protocol, the data word compression/decompression protocol sets rules for compressing interval code data words into compressed data words, rules for compressing data words into compressed transmission data frames, and rules for decomposing compressed data frames into compressed data words, and Decompress the compressed data word into at least one of the rules of the interval code data word; according to the data word compression/decompression protocol, combine the threshold interval code of more than two interval code data words into one compressed data word, so that Q The interval code data word is compressed into R compressed data words, R is a natural number, R <Q, 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 according to the data word The compression/decompression protocol parses the received compressed transmission data frame, and decompresses R compressed data words into interval code data including Q interval code data words.

具體地,積體電路內部匯流排通訊傳輸的資料包包括基礎資料和擴展資料;所述方法中的傳輸資料就是該資料包內的擴展資料。Specifically, the data packet transmitted by the bus within the integrated circuit includes basic data and extended data; the transmission data in the method is the extended data in the data packet.

更具體地,所述擴展資料是觸控螢幕手勢識別演算法的擴展資料,觸控螢幕接近感應演算法的擴展資料,觸控螢幕防水演算法的擴展資料,高靈敏懸空演算法的擴展資料,以及壓力檢測演算法的擴展資料中的至少一種。More specifically, the extended data is extended data of the touch screen gesture recognition algorithm, extended data of the touch screen proximity sensing algorithm, extended data of the touch screen waterproof algorithm, and extended data of the highly sensitive suspension algorithm, And at least one of the extended data of the pressure detection algorithm.

具體而言,所述Q個資料字是包括X×Y個資料通道的資料通道矩陣,每個資料通道是一個資料字,即Q =X×Y。Specifically, the Q data words are a data channel matrix including X×Y data channels, and each data channel is a data word, that is, Q=X×Y.

具體地,Z=1,也就是設置一個資料門檻值TH1 ,形成2個門檻值區間(-∞,TH1 ]和(TH1 ,+∞),為兩個門檻值區間分別設置的一位區間門檻值代碼是0,1。那麽,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換就是將Q個資料字替換為Q個二值化的區間代碼資料字。Specifically, Z=1, that is, setting a data threshold TH 1 to form two threshold intervals (-∞, TH 1 ] and (TH 1 , +∞), one bit for each of the two threshold intervals The 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.

更具體地,資料字的數值是16位二進制碼;壓縮資料字的數值是8位二進制碼,那麽,8個區間代碼資料字壓縮成一個壓縮資料字,從而R=Q/8。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 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 the following, When data word is compressed, the rules of the interval code data word selected to be compressed into a compressed data word; When the data word is compressed, the sequence of the data word compressed into the compressed data word is sorted; When the data words are compressed, the arrangement order of the compressed data words; When the data word is decompressed, the decompression sequence of the compressed data word; When the data word is decompressed, the compressed data word is decomposed into the order of the code data words in each interval; and, When the data word is decompressed, the data words of each interval code that are decomposed into are restored and sorted.

在本發明方案中,所述主器件是傳輸資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個。所述從器件是傳輸資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器、壓力檢測晶片、壓力檢測微型控制器、指紋識別晶片以及指紋識別微型控制器中的至少一個。In the solution of the present invention, the host device is a data transmission receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor One. The slave device is a transmission data transmission device, including a terminal, a co-processor, a touch control chip, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller, a fingerprint recognition chip, and a fingerprint recognition microcontroller At least one.

為了進一步使壓縮後的資料量滿足需求,在對傳輸資料進行資料處理過程之前, 從器件將一幀傳輸資料分解成至少G子幀傳輸資料,G≥2;分別對各子幀傳輸資料進行所述資料處理過程,從而主器件獲取G子幀區間代碼資料; 主器件將G子幀區間代碼資料整合為一整幀的區間代碼資料。In order to further meet the demand of the compressed data, before the data processing of the transmitted data, The slave device decomposes the transmission data of one frame into at least G subframe transmission data, G≥2; the data processing process is performed on the transmission data of each subframe respectively, so that the master device obtains the G subframe interval code data; The master device integrates the G subframe interval code data into a whole frame of interval code data.

本發明解决所述技術問題還可以透過採用以下技術方案來實現:The present invention can also solve the technical problems by adopting the following technical solutions:

設計、製造一種能夠進行資料分階壓縮傳輸的主器件,能夠藉助積體電路內部匯流排電連接從器件。主器件包括兩個以上電子元器件,各電子元器件的組成和連接結構使主器件至少能夠完成以下主器件資料處理過程:Design and manufacture a master device capable of compressing and transmitting data in stages, which can be electrically connected to the slave device through the internal busbar of the integrated circuit. The main device includes more than two electronic components. The composition and connection structure of each electronic component enable the main device to at least complete the following main device data processing process:

主器件接收從器件發送的壓縮傳輸資料幀,主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將R個壓縮資料字解壓為包括Q個區間代碼資料字的區間代碼資料。The master device receives the compressed transmission data frame sent from the slave device. The master device parses the received compressed transmission data frame according to the data word compression/decompression protocol, and decompresses the R compressed data words into interval code data including Q interval code data words.

所述資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則,將壓縮資料字組成壓縮傳輸資料幀的規則,將壓縮資料幀分解為壓縮資料字的規則,以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個;一個壓縮資料字是依據資料字壓縮/解壓協議將兩個以上的區間代碼資料字的門檻值區間代碼壓縮而成,使Q個區間代碼資料字壓縮成R個壓縮資料字,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀。The data word compression/decompression protocol sets rules for compressing interval code data words into compressed data words, rules for compressing data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and compression The data word is decompressed into at least one of the rules of the interval code data word; a compressed data word is formed by compressing the threshold interval code of more than two interval code data words according to the data word compression/decompression protocol, so that Q interval codes The data words are compressed into R compressed data words, R<Q, and the R compressed data words form a compressed transmission data frame.

包括Q個區間代碼資料字的區間代碼資料由包括Q個資料字的傳輸資料經過如下處理轉換而成: 設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼;根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料。The interval code data including Q interval code data words is converted from the transmission data including Q data words through the following processes: Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval; according to the threshold interval where the value of the data word is located, each data word The value of is replaced with the threshold interval code of the threshold interval where it is located to form interval code data including Q interval code data words.

為進一步壓縮資料,當從器件將一幀傳輸資料分解成至少G子幀傳輸資料時,G≥2;從器件向主器件發送G子幀壓縮傳輸資料幀,那麽,主器件的各電子元器件的組成和連接結構使主器件還能夠完成以下資料組合過程: 主器件對G子幀壓縮傳輸資料幀分別進行所述主器件資料處理過程,從而解壓獲得G子幀區間代碼資料; 主器件將G子幀區間代碼資料整合為一整幀的區間代碼資料。In order to further compress the data, when the slave device decomposes a frame of transmission data into at least G subframe transmission data, G ≥ 2; the slave device sends the G subframe compressed transmission data frame to the master device, then each electronic component of the master device The composition and connection structure of the main device enable the main device to complete the following data combination process: The master device performs the data processing of the master device on the G subframe compressed transmission data frames respectively, so as to decompress to obtain G subframe interval code data; The master device integrates the G subframe interval code data into a whole frame of interval code data.

以上方案中,所述主器件是資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個。那麽,所述從器件是資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器、壓力檢測晶片、壓力檢測微型控制器、指紋識別晶片以及指紋識別微型控制器中的至少一個。In the above solution, the host device is a data receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor. Then, the slave device is a data sending device, including a terminal, a co-processor, a touch control chip, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller, a fingerprint recognition chip, and a fingerprint recognition microcontroller At least one of them.

本發明解决所述技術問題又可以透過採用以下技術方案來實現:The present invention can solve the technical problems by adopting the following technical solutions:

設計、製造一種能夠進行資料分階壓縮傳輸的從器件,能夠藉助積體電路內部匯流排電連接主器件。從器件包括兩個以上電子元器件;各電子元器件的組成和連接結構使從器件至少能夠完成以下從器件資料處理過程: 設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼;對於包括Q個資料字的傳輸資料,根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料; 設置資料字壓縮/解壓協議,該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則,將壓縮資料字組成壓縮傳輸資料幀的規則,將壓縮資料幀分解為壓縮資料字的規則,以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個;依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字,使Q個區間代碼資料字壓縮成R個壓縮資料字,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀; 將壓縮傳輸資料幀發送至主器件。Design and manufacture a slave device capable of compressing and transmitting data in stages, which can be electrically connected to the master device through the internal busbar of the integrated circuit. The slave device includes more than two electronic components; the composition and connection structure of each electronic component enable the slave device to complete at least the following slave device data processing process: Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval; for transmission data that includes Q data words, according to the value of the data word The threshold interval of the data, replace the value of each data word with the threshold interval code of the threshold interval in which it is located, to form interval code data including Q interval code data words; Set the data word compression/decompression protocol. The data word compression/decompression protocol sets the rules for compressing interval code data words into compressed data words, and the compressed data words are formed into compressed transmission data frames. The compressed data frames are decomposed into compressed data. Word rules and at least one of the rules for decompressing compressed data words into interval code data words; according to the data word compression/decompression protocol, the threshold interval codes of more than two interval code data words are combined into one compressed data word , To compress Q interval code data words into R compressed data words, R<Q, the R compressed data words form a compressed transmission data frame; Send the compressed transmission data frame to the master device.

為進一步壓縮資料,從器件的各電子元器件的組成和連接結構使該從器件還能夠完成以下資料分解過程: 將一幀傳輸資料分解成至少G子幀傳輸資料,G≥2; G子幀傳輸資料分別經過所述從器件資料處理過程後,從器件向主器件發送G子幀壓縮傳輸資料幀。To further compress the data, the composition and connection structure of the electronic components of the slave device enable the slave device to complete the following data decomposition process: Decompose the transmission data of one frame into at least G subframe transmission data, G≥2; After the G subframe transmission data respectively passes through the slave device data processing process, the slave device sends the G subframe compressed transmission data frame to the master device.

以上方案中,所述從器件是資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器、壓力檢測晶片、壓力檢測微型控制器、指紋識別晶片以及指紋識別微型控制器中的至少一個。那麽,所述主器件是資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個。In the above solution, the slave device is a data sending device, including a terminal, a coprocessor, a touch control chip, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller, a fingerprint recognition chip, and a fingerprint recognition micro At least one of the controllers. Then, the host device is a data receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor.

本發明解决所述技術問題又可以透過採用以下技術方案來實現:The present invention can solve the technical problems by adopting the following technical solutions:

一種能夠進行資料分階壓縮傳輸的電子設備,包括至少一主器件,以及至少一從器件,主器件與從器件之間藉助積體電路內部匯流排互相電連接。An electronic device capable of compressing and transmitting data in stages includes at least one master device and at least one slave device, and the master device and the slave device are electrically connected to each other through an internal bus bar of an integrated circuit.

從器件包括兩個以上電子元器件,從器件的各電子元器件的組成和連接結構使該從器件至少能夠完成以下從器件資料處理過程: 設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼;對於包括Q個資料字的傳輸資料,根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料; 設置資料字壓縮/解壓協議,該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則,將壓縮資料字組成壓縮傳輸資料幀的規則,將壓縮資料幀分解為壓縮資料字的規則,以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個;依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字,使Q個區間代碼資料字壓縮成R個壓縮資料字,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀; 將壓縮傳輸資料幀發送至主器件。The slave device includes more than two electronic components. The composition and connection structure of each electronic component of the slave device enable the slave device to complete at least the following slave device data processing process: Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval; for transmission data that includes Q data words, according to the value of the data word The threshold interval of the data, replace the value of each data word with the threshold interval code of the threshold interval in which it is located, to form interval code data including Q interval code data words; Set the data word compression/decompression protocol. The data word compression/decompression protocol sets the rules for compressing interval code data words into compressed data words, and the compressed data words are formed into compressed transmission data frames. The compressed data frames are decomposed into compressed data. Word rules and at least one of the rules for decompressing compressed data words into interval code data words; according to the data word compression/decompression protocol, the threshold interval codes of more than two interval code data words are combined into one compressed data word , To compress Q interval code data words into R compressed data words, R<Q, the R compressed data words form a compressed transmission data frame; Send the compressed transmission data frame to the master device.

主器件包括兩個以上電子元器件,主器件的各電子元器件的組成和連接結構使該主器件至少能夠完成以下主器件資料處理過程:The main device includes more than two electronic components. The composition and connection structure of each electronic component of the main device enable the main device to complete at least the following main device data processing process:

主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將R個壓縮資料字解壓為包括Q個區間代碼資料字的區間代碼資料。The master device parses the received compressed transmission data frame according to the data word compression/decompression protocol, and decompresses R compressed data words into interval code data including Q interval code data words.

為進一步壓縮資料,從器件的各電子元器件的組成和連接結構使該從器件還能夠完成以下資料分解過程: 將一幀傳輸資料分解成至少G子幀傳輸資料,G≥2; G子幀傳輸資料經過所述從器件資料處理過程後,從器件向主器件發送G子幀壓縮傳輸資料幀。To further compress the data, the composition and connection structure of the electronic components of the slave device enable the slave device to complete the following data decomposition process: Decompose the transmission data of one frame into at least G subframe transmission data, G≥2; After the G subframe transmission data passes through the slave device data processing process, the slave device sends the G subframe compressed transmission data frame to the master device.

主器件的各電子元器件的組成和連接結構使主器件還能夠完成以下資料組合過程: 主器件對G子幀壓縮傳輸資料幀分別進行所述主器件資料處理過程,從而解壓獲得G子幀區間代碼資料; 主器件將G子幀區間代碼資料整合為一整幀的區間代碼資料。The composition and connection structure of the electronic components of the main device enable the main device to complete the following data combination process: The master device performs the data processing of the master device on the G subframe compressed transmission data frames respectively, so as to decompress to obtain G subframe interval code data; The master device integrates the G subframe interval code data into a whole frame of interval code data.

以上方案中,所述主器件是資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個。所述從器件是資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器、壓力檢測晶片、壓力檢測微型控制器、指紋識別晶片以及指紋識別微型控制器中的至少一個。In the above solution, the host device is a data receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor. The slave device is a data sending device, including a terminal, a co-processor, a touch control chip, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller, a fingerprint recognition chip, and a fingerprint recognition microcontroller at least one.

同現有技術相比較,本發明「資料分階壓縮傳輸方法及實現該方法的器件和電子設備」的技術效果在於:Compared with the prior art, the technical effects of the "data gradation compression transmission method and devices and electronic equipment implementing the method" of the present invention are as follows:

透過多階門檻值量化保留傳輸資料的特徵點,在不影響報點率要求的情况下大幅降低資料字的資料值所占數位,確保不失真地將多個資料字組合而壓縮傳輸資料的資料量,壓縮率高,提高I2 C匯流排的資料傳輸效率,有效地解决嵌入式系統轉移計算的能力;透過增減門檻值階數,滿足傳輸資料精確度要求。Quantify the characteristic points of the transmitted data through multi-level thresholds, greatly reduce the number of data words occupied by the data words without affecting the reporting rate requirements, and ensure that multiple data words are combined without distortion to compress the transmitted data. Volume, high compression rate, improve the data transmission efficiency of I 2 C bus, effectively solve the transfer calculation ability of embedded systems; by increasing or decreasing the threshold order, to meet the accuracy requirements of transmission data.

以下結合圖式所示各實施例作進一步詳述。The following describes the embodiments in detail with reference to the drawings.

本發明提出一種基於積體電路內部I2 C匯流排通訊的資料分階壓縮傳輸方法,在透過積體電路內部匯流排電連接的主器件和從器件之間的通訊中,對傳輸資料進行如下資料處理過程:設置Z個資料門檻值, Z≥1;假設資料門檻值是TH1 ,……,THZ ,TH1 <……<THZ ,那麽Z+1個門檻值區間應當是(-∞,TH1 ],……,(THZ ,+∞);為每個門檻值區間分別設置門檻值區間代碼; 對於包括Q個資料字的傳輸資料,Q是自然數,根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料; 設置資料字壓縮/解壓協議,該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則,將壓縮資料字組成壓縮傳輸資料幀的規則,將壓縮資料幀分解為壓縮資料字的規則,以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個規則; 依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字,使Q個區間代碼資料字壓縮成R個壓縮資料字,R是自然數,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀; 從器件將壓縮傳輸資料幀發送至主器件; 主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將R個壓縮資料字分解為包括Q個區間代碼資料字的區間代碼資料。The present invention proposes a data compression method based on I 2 C bus communication in an integrated circuit. In the communication between the master device and the slave device electrically connected through the internal bus of the integrated circuit, the transmission data is as follows Data processing process: Set Z data thresholds, Z≥1; assuming that the data thresholds are TH 1 , ..., TH Z , TH 1 <……<TH Z , then the Z+1 threshold interval should be (- ∞, TH 1 ], ..., (TH Z , +∞); set the threshold interval codes for each threshold interval separately; for transmission data that includes Q data words, Q is a natural number, based on the value of the data word Where the threshold value interval is, replace the value of each data word with the threshold interval code of the threshold value interval where it is located to form interval code data including Q interval code data words; set the data word compression/decompression protocol, the data word The compression/decompression protocol sets up rules for compressing interval code data words into compressed data words, rules for compressing data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and decompression of compressed data words into At least one of the rules of the interval code data word; according to the data word compression/decompression protocol, the threshold interval code of more than two interval code data words is combined into a compressed data word, so that the Q interval code data words are compressed into R compressed data words, R is a natural number, R<Q, 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 data according to the data word compression/decompression protocol The received compressed transmission data frame decomposes R compressed data words into interval code data including Q interval code data words.

主器件和從器件是進行I2 C匯流排通訊的傳輸資料收發端器件。所述主器件是傳輸資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個。所述從器件是傳輸資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器(Micro Controller Unit、MCU)、壓力檢測晶片、壓力檢測微型控制器(MCU)、指紋識別晶片以及指紋識別微型控制器(MCU)中的至少一個。The master device and the slave device are the transmitting and receiving end devices for I 2 C bus communication. The main device is a transmission data receiving device, including at least one of a host computer, a central processor, 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 transmission device, including a terminal, a co-processor, a touch control chip, a touch control microcontroller (Micro Controller Unit, MCU), a pressure detection chip, a pressure detection microcontroller (MCU), At least one of a fingerprint recognition chip and a fingerprint recognition microcontroller (MCU).

本發明第一實施例,構建以下的軟硬體環境以示例性說明所述基於積體電路內部I2 C匯流排通訊的資料分階壓縮傳輸方法:According to the first embodiment of the present invention, the following hardware and software environment is constructed to exemplarily illustrate the data gradation compression transmission method based on I 2 C bus communication inside an integrated circuit:

本發明所述方法用於傳輸資料包, 本發明第一實施例,I2 C匯流排通訊傳輸的資料包內的資料並不都是採用本發明所述方法進行壓縮傳輸的傳輸資料。該資料包包括基礎資料和擴展資料。參考圖3所示,本發明第一實施例用於處理觸控螢幕手勢識別演算法資料包,包括作為基礎資料的報點坐標資料和擴展資料,該擴展資料是觸控螢幕手勢識別演算法的擴展資料,採用本發明所述方法進行壓縮傳輸的傳輸資料就是該資料包內的擴展資料。所述資料包所基於的傳輸環境是I2 C匯流排通訊速率是400kbit/s,傳輸資料包的上報率要求120幀/秒,那麽該資料包的資料量是150 byte,包括資料量是52 byte的、作為基礎資料的報點坐標資料,以及資料量是98 byte、作為本發明所述方法進行壓縮傳輸的傳輸資料的擴展資料。本發明第一實施例,如圖3所示,在資料包內報點坐標資料設置在擴展資料之前。另外,本發明第四實施例,如圖9所示,與第一實施例的不同之處僅在於在資料包內將報點坐標資料設置在擴展資料之後,這也是可行方案。本發明的擴展資料還可以是觸控螢幕手勢識別演算法的擴展資料,接近感應演算法的擴展資料,觸控螢幕防水演算法的擴展資料,高靈敏懸空演算法的擴展資料,以及壓力檢測演算法的擴展資料中的至少一種擴展資料。The method of the present invention is used to transmit data packets. In the first embodiment of the present invention, the data in the data packets transmitted by I 2 C bus communication are not all the transmission data compressed and transmitted by the method of the present invention. The data package includes basic data and extended data. Referring to FIG. 3, the first embodiment of the present invention is used to process a touch screen gesture recognition algorithm data packet, including report point coordinate data and extended data as basic data, the extended data is a touch screen gesture recognition algorithm Extended data, the transmission data compressed and transmitted by the method of the present invention is the extended data in the data packet. The transmission environment on which the data packet is based is the I 2 C bus communication rate is 400 kbit/s, and the report rate of the transmission data packet requires 120 frames/second, then the data volume of the data packet is 150 byte, including the data volume is The 52-byte report point coordinate data as the basic data, and the data amount is 98 bytes, as the extended data of the transmission data compressed and transmitted by the method of the present invention. In the first embodiment of the present invention, as shown in FIG. 3, the point coordinate data in the data package is set before the extended data. In addition, the fourth embodiment of the present invention, as shown in FIG. 9, differs from the first embodiment only in that the report point coordinate data is set after the extended data in the data package, which is also a feasible solution. The extended data of the present invention may also be extended data of the touch screen gesture recognition algorithm, extended data of the proximity sensing algorithm, extended data of the touch screen waterproof algorithm, extended data of the highly sensitive suspension algorithm, and pressure detection algorithm At least one kind of extension materials in the method of extension materials.

本發明所述主器件和從器件是相對概念,所述主器件是資料接收器件,所述從器件是資料發送器件。那麽在實際應用中,器件通常既能夠用作資料接收器件,也能夠用作資料發送器件。在進行I2 C匯流排通訊的兩器件中,將用作資料接收器件的器件設定為本發明所述方法的主器件,將用作資料發送器件的器件設定為本發明所述方法的從器件。本發明第一實施例,主器件是中央處理器,從器件是電連接中央處理器的觸控控制晶片。In the present invention, 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 sending device. In practical applications, the device can usually be used as both a data receiving device and a data sending device. Of the two devices that perform I 2 C bus communication, the device used as the data receiving device is set as the master device of the method of the present invention, and the device used as the data sending device is set as the slave device of the method of the present invention . In the first embodiment of the present invention, the master device is a central processor, and the slave device is a touch control chip electrically connected to the central processor.

本發明第一實施例,用作傳輸資料的擴展資料如圖1所示,包括18列32行資料通道構成的32×18資料通道矩陣,每個資料通道即為一個資料字,也就是所述Q個資料字是反映X×Y個資料通道值的資料通道矩陣,Q =X×Y,在本發明第一實施例中,Q=576,X=18,Y=32。圖1和圖2中資料通道的排序是,按從左至右的順序將每列前16個資料通道分為前組,每列後16個資料通道分為後組。按照前組每列從左至右,以及依從上至下的列序排序資料通道,然後按照後組每列從左至右,以及依從上至下的列序繼續排序資料通道。也就是,第一列按從左至右的前16個資料通道依次是零資料通道CH0,一資料通道CH1,……,十五資料通道CH15;第二列按從左至右的前16個資料通道依次是十六資料通道CH16,十七資料通道CH17,……,三十一資料通道CH31,依此類推,第一列按從左至右後16個資料通道依次是二百八十八資料通道CH288,……,三百零三資料通道CH303;依此類推。In the first embodiment of the present invention, the extended data used for transmitting data is shown in FIG. 1 and includes a 32×18 data channel matrix composed of 18 columns and 32 rows of data channels. Each data channel is a data word. Q data words are data channel matrices that reflect the values of X×Y data channels, 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 Figures 1 and 2 is that the first 16 data channels in each column are divided into the front group in the order from left to right, and the last 16 data channels in each column are divided into the rear group. Sort the data channels according to the left-to-right and top-to-bottom order of each column in the front group, and then continue to sort the data channels according to the left-to-right and top-to-bottom column order of the rear group. That is, the first 16 data channels from left to right in the first column are the zero data channel CH0, one data channel CH1, ..., fifteen data channels CH15; the second column according to the first 16 from left to right The data channels are sixteen data channels CH16, seventeen data channels CH17, ..., thirty-one data channels CH31, and so on. In the first column, the 16 data channels from left to right are 288 in sequence. Data channel CH288, ..., 303 data channel CH303; and so on.

本發明第一實施例,如圖1所示,一個資料字的資料值,即一個資料通道的通道值用十進制示出,在資料傳輸中一個資料字體現為與十進制顯示值等值的16位二進制碼,那麽如上所述圖1所示傳輸資料的資料量達到: (32×18×16)/8 = 1152 byte 顯然,典型的擴展資料的資料量1152 byte需要I2 C匯流排以較長的時間才能傳輸。以下透過本發明基於積體電路內部I2 C匯流排通訊的資料分階壓縮傳輸方法解决此問題。In the first embodiment of the present invention, as shown in FIG. 1, the data value of a data word, that is, the channel value of a data channel is shown in decimal. In data transmission, a data font is now 16 bits equivalent to the decimal display value. Binary code, then the data volume of the transmitted data as shown in Figure 1 is as follows: (32×18×16)/8 = 1152 byte Obviously, the data volume of the typical extended data of 1152 byte requires a longer I 2 C bus Time to transfer. In the following, this problem is solved by the method of data compression compression transmission based on I 2 C bus communication in an integrated circuit of the present invention.

本發明所述方法的門檻值數量Z即分階壓縮的階數,本發明第一實施例,採用一階壓縮傳輸方法,即Z=1,設置1個資料門檻值TH1 ,資料門檻值TH1 是十進制的1000,從而形成2個門檻值區間(-∞,TH1 ]和(TH1 ,+∞),即(-∞,1000]和(1000,+∞)。為門檻值區間(-∞,1000]設置的一位區間門檻值代碼是0,為門檻值區間(Q1,+∞)設置的一位區間門檻值代碼是1。反之,為門檻值區間(-∞,1000]設置的一位區間門檻值代碼是1,為門檻值區間(Q1,+∞)設置的一位區間門檻值代碼是0也是等同本發明第一實施例的可行方案。The number Z of the threshold value of the method of the present invention is the order of stepwise compression. In the first embodiment of the present invention, the first-order compression transmission method is adopted, that is, Z=1, a data threshold value TH 1 is set , and the data threshold value TH 1 is 1000 in decimal, thus forming two threshold intervals (-∞, TH 1 ] and (TH 1 , +∞), namely (-∞, 1000) and (1000, +∞). It is the threshold interval (- ∞, 1000] The one-bit threshold code set is 0, and the one-bit threshold code set for the threshold interval (Q1, +∞) is 1. Conversely, the threshold value set for the threshold interval (-∞, 1000) The one-bit threshold code is 1, and the one-bit threshold code set for the threshold interval (Q1, +∞) is 0 is also a feasible solution equivalent to the first embodiment of the present invention.

對於包括32×18個資料字的傳輸資料,根據資料字的數值,即資料通道的通道值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成如圖2所示的包括32×18個區間代碼資料字的區間代碼資料,也就是將32×18個資料字就轉換為32×18個二值化的區間代碼資料字。For transmission data including 32×18 data words, according to the value of the data word, that is, the threshold interval where the channel value of the data channel is located, the value of each data word is replaced with the threshold interval code of the threshold interval where it is located, The section code data including 32×18 section code data words as shown in FIG. 2 is formed, that is, 32×18 data words are converted into 32×18 binary section code data words.

依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字。本發明第一實施例,如圖3所示,一個壓縮資料字包括8位元二進制碼,Bit0,Bit1,……,Bit7。區間代碼資料字用一位元二進制碼,那麽8個區間代碼資料字組合成一個壓縮資料字,從而R=Q/8=72,使32×18個區間代碼資料字變換成72個壓縮資料字,該72個壓縮資料字組成壓縮傳輸資料幀。圖4示出壓縮資料幀中的72個壓縮資料字,每個壓縮資料字的資料值用十進制數表示。72個壓縮資料字的資料量為72 byte。從而將傳輸資料的資料量從1152 byte壓縮至壓縮傳輸資料幀的資料量72 byte,壓縮率達到16倍。According to the data word compression/decompression protocol, the threshold interval code of more than two interval code data words is combined into one compressed data word. In the first embodiment of the present invention, as shown in FIG. 3, one compressed data word includes 8-bit binary codes, Bit0, Bit1, ..., Bit7. The interval code data word uses a one-bit binary code, then 8 interval code data words are combined into a compressed data word, so that R=Q/8=72, and 32×18 interval code data words are converted into 72 compressed data words , The 72 compressed data words form a compressed transmission data frame. Fig. 4 shows 72 compressed data words in the compressed data frame, and the data value of each compressed data word is represented by a decimal number. The data volume of 72 compressed data words is 72 byte. Therefore, the data volume of the transmission data is compressed from 1152 bytes to 72 bytes of compressed transmission data frames, and the compression rate reaches 16 times.

將區間代碼資料字壓縮為壓縮資料字需要依據資料字壓縮/解壓協議進行。本發明第一實施例,如圖2至圖4所示,在進行資料字壓縮時,選取的、用於壓縮成一壓縮資料字的區間代碼資料字的規則是,依照資料通道排序,每8個資料通道作為一組,選取一組8個資料通道的區間代碼資料字用於壓縮成一個壓縮資料字。壓縮成壓縮資料字的區間代碼資料字的排序是,如圖3所示,一組連續8個資料通道中,將編號最小的資料通道的區間代碼設置為壓縮資料字的最低位元,按照資料通道編號由小增大的順序,依次地將資料通道的區間代碼資料字按照壓縮資料字從低位元到高位元的順序設置;也就是,將資料通道CH0至CH7的區間代碼壓縮為一個壓縮資料字,資料通道CH0的區間代碼設置為壓縮資料字的零位元Bit0,資料通道CH1的區間代碼設置為壓縮資料字的一位元Bit1,……,資料通道CH7的區間代碼設置為壓縮資料字的七位元Bit7。各壓縮資料字的排列順序是,如圖2和圖4所示,按照編號由小至大的順序,每8個資料通道的區間代碼資料字壓縮成的壓縮資料字依次排序。圖4所示,第9個壓縮資料字就是由圖2所示第5列前八個資料通道的區間代碼資料字壓縮而成,其8位二進制資料值00011000的十進制資料值是24。第17個壓縮資料字就是由圖2所示第9列前八個資料通道的區間代碼資料字壓縮而成,其8位二進制資料值00010001的十進制資料值是136。資料字壓縮時,將區間代碼資料字壓縮成壓縮資料字的規則包括設定選取的、用於組合成一壓縮資料字的區間代碼資料字的規則,以及設定組合成壓縮資料字的區間代碼資料字的排序。資料字壓縮時,將壓縮資料字組成壓縮傳輸資料幀的規則包括各壓縮資料字的排列順序。上述規則的具體內容應當依據資料特點、應用環境等因素進行合理設定。在應用中,可以對上述設定都進行設置,也可以僅設置其中的至少一項。Compression of interval code data words into compressed data words needs to be performed according to the data word compression/decompression protocol. In the first embodiment of the present invention, as shown in FIG. 2 to FIG. 4, when data word compression is performed, the rule for selecting the interval code data word used to compress into a compressed data word is, according to the data channel order, every 8 The data channels are used as a group, and a group of 8-channel interval code data words are selected for compression into one compressed data word. The sequence of data words compressed into compressed data words is sorted as shown in Figure 3. In a group of 8 consecutive data channels, the interval code of the data channel with the lowest number is set to the lowest bit of the compressed data word. In order of increasing channel number, the interval code data words of the data channel are sequentially set according to the order of the compressed data word from low bit to high bit; that is, the interval 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 compressed data word zero bit Bit0, the section code of the data channel CH1 is set to the compressed data word Bit1, ..., the section code of the data channel CH7 is set to the compressed data word 7-bit Bit7. The arrangement order of each compressed data word is as shown in FIG. 2 and FIG. 4, according to the order of the numbers from small to large, the compressed data words compressed by the interval code data words of every 8 data channels are sequentially arranged. As shown in FIG. 4, the ninth compressed data word is formed by compressing the interval code data words of the first eight data channels in the fifth column shown in FIG. 2, and the decimal data value of the 8-bit binary data value 00011000 is 24. The 17th compressed data word is formed by compressing the interval code data words of the first eight data channels in the 9th column shown in FIG. 2, and the decimal data value of the 8-bit binary data value 00010001 is 136. In data word compression, the rules for compressing interval code data words into compressed data words include setting rules for selecting interval code data words that are combined into a compressed data word, and setting interval code data words that are combined into compressed data words. Sort. When compressing data words, the rules for composing compressed data words into compressed transmission data frames include the arrangement order of each compressed data word. The specific content of the above rules should be reasonably set according to factors such as data characteristics and application environment. In the application, all of the above settings may be set, or only at least one of them may be set.

從器件將壓縮傳輸資料幀發送至主器件。本發明第一實施例,壓縮傳輸資料幀已經壓縮至小於98 byte,從而壓縮資料幀的傳輸將不會造成報點率下降。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 has been compressed to less than 98 bytes, so that the transmission of the compressed data frame will not cause a drop in the reporting rate.

主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將72個資料壓縮字分解還原為576個區間代碼字。The master device parses the received compressed transmission data frame according to the data word compression/decompression protocol, and decomposes 72 data compression words into 576 interval code words.

將壓縮資料字解壓為區間代碼資料字同樣需要依據資料字壓縮/解壓協議進行。本發明第一實施例,資料字解壓時,將壓縮資料幀分解為壓縮資料字的規則包括設定壓縮資料字的解壓順序,即按照壓縮資料字的排序,順序地對各壓縮資料字解壓。本發明第一實施例,資料字解壓時,將壓縮資料字解壓為區間代碼資料字的規則包括設定壓縮資料字的分解成各區間代碼資料字的排序,以及設定分解成的各區間代碼資料字的還原排序,就是依照資料字壓縮的排序進行。當然,如果為了便於資料的後續處理,以及考慮資料的用途等因素,可以採用不同於第一實施例的資料字解壓規則。在應用中,可以對上述設定都進行設置,也可以僅設置其中的至少一項。Decompressing compressed data words into interval code data words also needs to be performed according to the data word compression/decompression protocol. In the first embodiment of the present invention, when the data word is decompressed, the rule for decomposing the compressed data frame into compressed 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. According to the first embodiment of the present invention, when the data word is decompressed, the rules for decompressing the compressed data word into interval code data words include setting the order of the decomposition of the compressed data word into each interval code data word, and setting the decomposition into each interval code data word The sorting of restore is based on the sorting of data word compression. Of course, if in order to facilitate the subsequent processing of the data and to consider the use of the data and other factors, the data word decompression rules different from the first embodiment may be adopted. In the application, all of the above settings may be set, or only at least one of them may be set.

本發明透過門檻值量化保留傳輸資料的特徵點,在不影響報點率要求的情况下大幅降低資料字的資料值所占數位,確保不失真地將多個資料字組合而壓縮傳輸資料的資料量,壓縮率高,提高I2 C匯流排的資料傳輸效率,有效地解决嵌入式系統轉移計算的能力。The invention quantifies and retains the characteristic points of the transmitted data through the threshold value, greatly reduces the number of data values occupied by the data words without affecting the reporting rate requirements, and ensures that multiple data words are combined without distortion to compress the data of the transmitted data Volume, high compression rate, improve the data transmission efficiency of I 2 C bus, and effectively solve the ability of embedded systems to transfer calculations.

資料字壓縮/解壓協議中壓縮時使用的規則和解壓時實用的規則可以互相關聯,也可以毫無關聯,需要根據資料特點,應用場景做出相應的編制。The rules used for compression in the data word compression/decompression protocol and the practical rules for decompression can be related to each other, or they can be irrelevant. You need to make corresponding preparations according to the characteristics of the data and the application scenario.

當傳輸資料的特徵點較多時,可以透過設置一階以上門檻值保留特徵點,即合理增大Z的取值,透過一個以上的資料門檻值進行資料壓縮傳輸。如圖5至圖7所示,一組不同於圖1所示的傳輸資料,其具有4個特徵點,就需要透過4個資料門檻值TH1 <TH2 <TH3 <TH4 劃分5個門檻值區間(-∞,TH1 ]、(TH1 ,TH2 ]、(TH2 ,TH3 ]、(TH3 ,TH4 ]、(TH4 ,+∞),進行4階壓縮。為各門檻值區間分別設置的門檻值區間代碼分別是十進制的0,1,2,3,4,實際處理中應當將十進制的門檻值區間代碼轉換成二進制碼。對於一組不同於圖1所示的傳輸資料,經過轉換形成的區間代碼資料字如圖5所示。When there are many characteristic points of the transmitted data, the characteristic points can be retained by setting more than one threshold, that is, the value of Z can be increased reasonably, and the data can be compressed and transmitted through more than one data threshold. As shown in FIGS. 5 to 7, a group of transmission data different from that shown in FIG. 1 has 4 characteristic points, and needs to be divided into 5 through 4 data thresholds TH 1 <TH 2 <TH 3 <TH 4 Threshold interval (-∞, TH 1 ], (TH 1 , TH 2 ], (TH 2 , TH 3 ], (TH 3 , TH 4 ], (TH 4 , +∞), 4th order compression. For each The threshold interval codes set for the threshold interval are decimal 0, 1, 2, 3, 4, respectively. In practice, the decimal threshold interval codes should be converted into binary codes. Transmission data, section code data words formed after conversion are shown in Figure 5.

透過一階以上的多階資料門檻值雖然保留了更多的特徵點,但會使傳輸資料的壓縮率縮小,另外,對於一些傳輸資料,即使透過壓縮率較高的一階資料門檻值壓縮,壓縮後的資料量仍然偏高。對於上述兩種情况,可以透過先分解傳輸資料,再組合還原的方案實現本發明所述方法。基於上述本發明所述方法,本發明還提出傳輸資料分解/組合的過程: 在對傳輸資料進行資料處理過程之前, 從器件將一幀傳輸資料分解成至少G子幀傳輸資料,G≥2;分別對各子幀傳輸資料進行所述資料處理過程,從而主器件獲取G子幀區間代碼資料; 主器件將G子幀區間代碼資料整合為一整幀的區間代碼資料。Although more characteristic points are retained through the first-order multi-level data threshold, the compression rate of the transmitted data will be reduced. In addition, for some transmitted data, even through the first-level data threshold compression with a higher compression rate, The amount of data after compression is still high. For the above two cases, the method of the present invention can be implemented by first decomposing the transmission data and then combining and reducing the solution. Based on the above-mentioned method of the present invention, the present invention also proposes a process of decomposition/combination of transmission data: Before performing data processing on the transmitted data, The slave device decomposes the transmission data of one frame into at least G subframe transmission data, G≥2; the data processing process is performed on the transmission data of each subframe respectively, so that the master device obtains the G subframe interval code data; The master device integrates the G subframe interval code data into a whole frame of interval code data.

本發明第三實施例,如圖8所示,將不同於圖1所示包括32×18個資料字的傳輸資料分解為2子幀包括16×18個資料字的傳輸資料,並轉換為區間代碼資料字,即上述G=2的情况。透過上述傳輸資料分解/組合的方法,確保傳輸資料在基於傳輸速率和報點率的時間域內被完整傳輸。In the third embodiment of the present invention, as shown in FIG. 8, the transmission data including 32×18 data words different from that shown in FIG. 1 is decomposed into 2 subframe transmission data including 16×18 data words, and converted into intervals Code data word, which is the case of G=2 above. Through the above-mentioned transmission data decomposition/combination method, the transmission data is ensured to be completely transmitted in the time domain based on the transmission rate and the reporting rate.

本發明以基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法為基礎還提出能夠進行資料分階壓縮傳輸的主器件,該主器件能夠藉助積體電路內部I2 C匯流排電連接從器件。主器件包括兩個以上電子元器件,各電子元器件的組成和連接結構使主器件至少能夠完成以下主器件資料處理過程:The present invention also proposes a master device capable of data compression and transmission based on the data gradation compression transmission method based on the internal bus communication of the integrated circuit. The main device can be electrically connected to the slave by means of the I 2 C bus inside the integrated circuit Device. The main device includes more than two electronic components. The composition and connection structure of each electronic component enable the main device to at least complete the following main device data processing process:

主器件接收從器件發送的壓縮傳輸資料幀,主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將R個壓縮資料字解壓為包括Q個區間代碼資料字的區間代碼資料。The master device receives the compressed transmission data frame sent from the slave device. The master device parses the received compressed transmission data frame according to the data word compression/decompression protocol, and decompresses the R compressed data words into interval code data including Q interval code data words.

所述資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則,將壓縮資料字組成壓縮傳輸資料幀的規則,將壓縮資料幀分解為壓縮資料字的規則,以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個;一個壓縮資料字是依據資料字壓縮/解壓協議將兩個以上的區間代碼資料字的門檻值區間代碼壓縮而成,使Q個區間代碼資料字壓縮成R個壓縮資料字,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀;The data word compression/decompression protocol sets rules for compressing interval code data words into compressed data words, rules for compressing data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and compression The data word is decompressed into at least one of the rules of the interval code data word; a compressed data word is formed by compressing the threshold interval code of more than two interval code data words according to the data word compression/decompression protocol, so that Q interval codes The data word is compressed into R compressed data words, R<Q, and the R compressed data words form a compressed transmission data frame;

包括Q個區間代碼資料字的區間代碼資料由包括Q個資料字的傳輸資料經過如下處理轉換而成:The interval code data including Q interval code data words is converted from the transmission data including Q data words through the following processes:

設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼。根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料。Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval. According to the threshold value interval where the value of the data word is located, the value of each data word is replaced with the threshold interval code of the threshold value interval where it is located to form interval code data including Q interval code data words.

為了進一步提高資料壓縮量,主器件還能夠配合從器件完成資料組合。當從器件將一幀傳輸資料分解成至少G子幀傳輸資料時,G≥2,從器件向主器件發送G子幀壓縮傳輸資料幀,那麽,主器件的各電子元器件的組成和連接結構使主器件還能夠完成以下資料組合過程:In order to further improve the amount of data compression, the master device can also cooperate with the slave device to complete the data combination. When the slave device decomposes a frame of transmission data into at least G subframe transmission data, G≥2, the slave device sends a G subframe compressed transmission data frame to the master device, then, the composition and connection structure of each electronic component of the master device The main device can also complete the following data combination process:

主器件對G子幀壓縮傳輸資料幀分別進行所述主器件資料處理過程,從而解壓獲得G子幀區間代碼資料;The master device performs the data processing of the master device on the G subframe compressed transmission data frames respectively, so as to decompress to obtain G subframe interval code data;

主器件將G子幀區間代碼資料整合為一整幀的區間代碼資料。The master device integrates the G subframe interval code data into a whole frame of interval code data.

具體地,從器件在將一幀傳輸資料分解成G子幀傳輸資料時,應當加入反映分解方式的資料信息,例如該資料信息包括反映該子幀傳輸資料是一幀傳輸資料被分解為G子幀傳輸資料中的一個,該子幀傳輸資料的排位,該子幀傳輸資料的資料量等。主器件接收從器件發送的G子幀壓縮傳輸資料幀;主器件依據資料字壓縮/解壓協議解析收到的各子幀壓縮傳輸資料幀,將壓縮傳輸資料幀的R個壓縮資料字解壓為包括Q個區間代碼資料字的區間代碼資料,獲得G子幀區間代碼資料。主器件根據反映分解方式的資料信息,將G子幀區間代碼資料區間代碼資料整理組合成為一整幀區間代碼資料。Specifically, when the slave device decomposes a frame of transmission data into G subframe transmission data, it should add data information reflecting the decomposition mode, for example, the data information includes reflecting that the subframe transmission data is a frame transmission data is decomposed into G subframes One of the frame transmission data, the ranking of the subframe transmission data, the amount of data of the subframe transmission data, etc. The master device receives the G subframe compressed transmission data frame sent from the slave device; the master device parses the received subframe compressed transmission data frame according to the data word compression/decompression protocol, and decompresses the R compressed data words of the compressed transmission data frame to include The interval code data of Q interval code data words obtains the G subframe interval code data. The master device organizes and combines the interval code data of the G subframe interval code data into a whole frame interval code data according to the data information reflecting the decomposition mode.

本發明上述第一至第四實施例都適用於所述主器件資料處理過程和資料組合過程。The above-mentioned first to fourth embodiments of the present invention are all applicable to the data processing process and data combination process of the master device.

所述主器件是資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個。那麽,所述從器件是資料發送器件,包括終端機、協同處理器、觸控控制晶片(MCU)、觸控控制微型控制器、壓力檢測晶片、壓力檢測微型控制器(MCU)、指紋識別晶片以及指紋識別微型控制器(MCU)中的至少一個。The host device is a data receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor. Then, the slave device is a data sending device, including a terminal, a co-processor, a touch control chip (MCU), a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller (MCU), and a fingerprint identification chip And at least one of the fingerprint identification microcontroller (MCU).

本發明以基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法為基礎還提出能夠進行資料分階壓縮傳輸的從器件,該從器件能夠藉助積體電路內部I2 C匯流排電連接主器件。從器件包括兩個以上電子元器件,各電子元器件的組成和連接結構使從器件至少能夠完成以下從器件資料處理過程:The present invention also proposes a slave device capable of staged compression transmission of data based on a data gradation compression transmission method based on internal bus communication of the integrated circuit, and the slave device can be electrically connected to the master through the I 2 C bus inside the integrated circuit Device. The slave device includes more than two electronic components. The composition and connection structure of each electronic component enable the slave device to complete at least the following slave device data processing process:

設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼;對於包括Q個資料字的傳輸資料,根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料;Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval; for transmission data that includes Q data words, according to the value of the data word The threshold interval of the data, replace the value of each data word with the threshold interval code of the threshold interval in which it is located, to form interval code data including Q interval code data words;

設置資料字壓縮/解壓協議,該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則,將壓縮資料字組成壓縮傳輸資料幀的規則,將壓縮資料幀分解為壓縮資料字的規則,以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個;依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字,使Q個區間代碼資料字壓縮成R個壓縮資料字,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀;Set the data word compression/decompression protocol. The data word compression/decompression protocol sets the rules for compressing interval code data words into compressed data words, and the compressed data words are formed into compressed transmission data frames. The compressed data frames are decomposed into compressed data. Word rules and at least one of the rules for decompressing compressed data words into interval code data words; according to the data word compression/decompression protocol, the threshold interval codes of more than two interval code data words are combined into one compressed data word , To compress Q interval code data words into R compressed data words, R<Q, the R compressed data words form a compressed transmission data frame;

將壓縮傳輸資料幀發送至主器件。Send the compressed transmission data frame to the master device.

為了進一步提高資料壓縮量,從器件還能夠完成資料分解。從器件的各電子元器件的組成和連接結構使該從器件還能夠完成以下資料分解過程:In order to further improve the amount of data compression, the slave device can also complete data decomposition. The composition and connection structure of the electronic components of the slave device enable the slave device to complete the following data decomposition process:

將一幀傳輸資料分解成至少G子幀傳輸資料,G≥2;Decompose the transmission data of one frame into at least G subframe transmission data, G≥2;

G子幀傳輸資料分別經過所述從器件資料處理過程後,從器件向主器件發送G子幀壓縮傳輸資料幀。After the G subframe transmission data respectively passes through the slave device data processing process, the slave device sends the G subframe compressed transmission data frame to the master device.

本發明上述第一至第四實施例都適用於所述從器件資料處理過程和資料分解過程。The above first to fourth embodiments of the present invention are all applicable to the slave device data processing process and data decomposition process.

所述從器件是資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器(MCU)、壓力檢測晶片、壓力檢測微型控制器(MCU)、指紋識別晶片以及指紋識別微型控制器(MCU)中的至少一個。那麽,所述主器件是資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個。The slave device is a data sending device, including a terminal, a co-processor, a touch control chip, a touch control microcontroller (MCU), a pressure detection chip, a pressure detection microcontroller (MCU), a fingerprint recognition chip, and a fingerprint Identify at least one of the microcontrollers (MCU). Then, the host device is a data receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor.

本發明以基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法為基礎還提出能夠進行資料分階壓縮傳輸的電子設備。該電子設備包括行動通訊終端,平板電腦、視/音頻播放器、個人電腦、各種資料收發器、各種測量儀器、各種傳感器等。所述電子設備包括至少一主器件,以及至少一從器件,主器件與從器件之間藉助積體電路內部I2 C匯流排互相電連接。The invention also proposes an electronic device capable of data compression compression transmission based on the data compression compression transmission method based on the internal bus communication of the integrated circuit. The electronic equipment includes mobile communication terminals, tablet computers, video/audio players, personal computers, various data transceivers, various measuring instruments, various sensors, etc. The electronic device includes at least one master device and at least one slave device, and the master device and the slave device are electrically connected to each other by an I 2 C bus bar inside the integrated circuit.

從器件包括兩個以上電子元器件,從器件的各電子元器件的組成和連接結構使該從器件至少能夠完成以下從器件資料處理過程:The slave device includes more than two electronic components. The composition and connection structure of each electronic component of the slave device enable the slave device to complete at least the following slave device data processing process:

設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼;對於包括Q個資料字的傳輸資料,根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料;Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval; for transmission data that includes Q data words, according to the value of the data word The threshold interval of the data, replace the value of each data word with the threshold interval code of the threshold interval in which it is located, to form interval code data including Q interval code data words;

設置資料字壓縮/解壓協議,該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則,將壓縮資料字組成壓縮傳輸資料幀的規則,將壓縮資料幀分解為壓縮資料字的規則,以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個;依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字,使Q個區間代碼資料字壓縮成R個壓縮資料字,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀;Set the data word compression/decompression protocol. The data word compression/decompression protocol sets the rules for compressing interval code data words into compressed data words, and the compressed data words are formed into compressed transmission data frames. The compressed data frames are decomposed into compressed data. Word rules and at least one of the rules for decompressing compressed data words into interval code data words; according to the data word compression/decompression protocol, the threshold interval codes of more than two interval code data words are combined into one compressed data word , To compress Q interval code data words into R compressed data words, R<Q, the R compressed data words form a compressed transmission data frame;

將壓縮傳輸資料幀發送至主器件。Send the compressed transmission data frame to the master device.

主器件包括兩個以上電子元器件,主器件的各電子元器件的組成和連接結構使該主器件至少能夠完成以下主器件資料處理過程:The main device includes more than two electronic components. The composition and connection structure of each electronic component of the main device enable the main device to complete at least the following main device data processing process:

主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將R個壓縮資料字解壓為包括Q個區間代碼資料字的區間代碼資料。The master device parses the received compressed transmission data frame according to the data word compression/decompression protocol, and decompresses R compressed data words into interval code data including Q interval code data words.

以基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法的資料處理過程包括主器件資料處理過程和從器件資料處理過程。The data processing process based on the data compression process based on the internal bus communication of the integrated circuit includes a master device data processing process and a slave device data processing process.

為了進一步提高資料壓縮量,主器件和從器件還能夠配合完成資料分解/組合。In order to further increase the amount of data compression, the master device and the slave device can also cooperate to complete the data decomposition/combination.

從器件的各電子元器件的組成和連接結構使該從器件還能夠完成以下資料分解過程:The composition and connection structure of the electronic components of the slave device enable the slave device to complete the following data decomposition process:

將一幀傳輸資料分解成至少G子幀傳輸資料,G≥2;Decompose the transmission data of one frame into at least G subframe transmission data, G≥2;

G子幀傳輸資料經過所述從器件資料處理過程後,從器件向主器件發送G子幀壓縮傳輸資料幀。After the G subframe transmission data passes through the slave device data processing process, the slave device sends the G subframe compressed transmission data frame to the master device.

主器件的各電子元器件的組成和連接結構使主器件還能夠完成以下資料組合過程:The composition and connection structure of the electronic components of the main device enable the main device to complete the following data combination process:

主器件對G子幀壓縮傳輸資料幀分別進行所述主器件資料處理過程,從而解壓獲得G子幀區間代碼資料;The master device performs the data processing of the master device on the G subframe compressed transmission data frames respectively, so as to decompress to obtain G subframe interval code data;

主器件將G子幀區間代碼資料整合為一整幀的區間代碼資料。The master device integrates the G subframe interval code data into a whole frame of interval code data.

以基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法的傳輸資料分解/組合的過程包括以上資料分解過程和資料組合過程。The process of data decomposition/combination based on the data gradation compression transmission method based on the internal bus communication of the integrated circuit includes the above data decomposition process and data combination process.

所述主器件是資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個。所述從器件是資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器(MCU)、壓力檢測晶片、壓力檢測微型控制器(MCU)、指紋識別晶片以及指紋識別微型控制器(MCU)中的至少一個。The host device is a data receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor. The slave device is a data sending device, including a terminal, a co-processor, a touch control chip, a touch control microcontroller (MCU), a pressure detection chip, a pressure detection microcontroller (MCU), a fingerprint recognition chip, and a fingerprint Identify at least one of the microcontrollers (MCU).

本發明第一實施例,所述主器件和從器件是一對一設置。In the first embodiment of the present invention, the master device and the slave device are arranged one-to-one.

所述主器件和從器件又可以是一對多設置。本發明第五實施例,如圖10所示,所述電子設備是具有觸控螢幕、壓力偵測和指紋識別功能的電子設備4,該電子設備例如是大多數情况被稱為手機的行動通訊終端,其不僅具有觸控螢幕輸入功能,還具有對觸碰力度偵測的壓力偵測功能和指紋識別功能。該電子設備4包括一個主器件1和三個從器件2,所述主器件1是中央處理器111,所述從器件2包括分別電連接中央處理器111的用於完成觸控螢幕功能的觸控控制晶片211,用於完成壓力偵測功能的壓力檢測晶片212,以及用於完成指紋識別功能的指紋識別晶片213。電子設備4內還設置有各種實現其功能所必需其它器件。The master device and the slave device may be one-to-many. According to a fifth embodiment of the present invention, as shown in FIG. 10, the electronic device is an electronic device 4 with touch screen, pressure detection, and fingerprint recognition functions. The electronic device is, for example, a mobile communication called a mobile phone in most cases. The terminal not only has a touch screen input function, but also has a pressure detection function and a fingerprint recognition function for detecting the touch force. The electronic device 4 includes a master device 1 and three slave devices 2. The master device 1 is a central processor 111, and the slave device 2 includes touches for electrically performing touch screen functions that are electrically connected to the central processor 111, respectively. The control chip 211, the pressure detection chip 212 for completing the pressure detection function, and the fingerprint identification chip 213 for completing the fingerprint identification function. The electronic device 4 is also provided with various other devices necessary to realize its function.

而對於多個主器件需要來自同一從器件提供的資料的情况,主器件和從器件還可以是多對一設置,即兩個以上的主器件都電連接同一從器件。In the case where multiple master devices need data from the same slave device, the master device and the slave device may also be in a many-to-one configuration, that is, two or more master devices are electrically connected to the same slave device.

本申請案各實施例方法中的步驟可以根據實際需要進行順序調整、合並和删減。The steps in the methods of the embodiments of the present application can be adjusted, merged, and deleted sequentially according to actual needs.

對實施例的上述說明,使本領域技術人員能夠實現或使用本申請案。對這些實施例的多種修改對本領域技術人員來說將是顯而易見的,本文中所定義的一般原理可以在不脫離本申請案的精神或範圍的情况下,在其它實施例中實現。因此,本申請案將不會被限制於本文所示的這些實施例,而是要符合與本文所公開的原理和新穎特點相一致的最寬的範圍。The above description of the embodiments enables those skilled in the art to implement or use this application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown in this document, but shall conform to the widest scope consistent with the principles and novel features disclosed in this document.

以上所述僅是本申請的較佳實施方式,應當指出,對於本技術領域的普通技術人員來說,在不脫離本申請案原理的前提下,還可以做出若干改進和潤飾,這些改進和潤飾也應視為本申請案的保護範圍。The above is only the preferred embodiment of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of this application, a number of improvements and retouches can be made. These improvements and Retouching should also be regarded as the scope of protection of this application.

1‧‧‧主器件 2‧‧‧從器件 4‧‧‧電子設備 111‧‧‧中央處理器 211‧‧‧觸控控制晶片 212‧‧‧壓力檢測晶片 213‧‧‧指紋識別晶片 1‧‧‧Master device 2‧‧‧Slave device 4‧‧‧Electronic equipment 111‧‧‧ CPU 211‧‧‧Touch control chip 212‧‧‧Pressure detection chip 213‧‧‧Fingerprint recognition chip

圖1是本發明「資料分階壓縮傳輸方法及實現該方法的器件和電子設備」第一實施例的傳輸資料矩陣示意圖表; 圖2是圖1所示傳輸資料經過一階二值化轉換後的區間代碼資料字矩陣示意圖表; 圖3是將圖2所述區間代碼資料字變換為壓縮資料字的資料包構成示意圖表; 圖4是所述第一實施例的資料包中擴展資料由區間代碼資料字變換為壓縮資料字的壓縮資料幀示意圖表; 圖5是本發明第二實施例的傳輸資料經過四階轉換後的區間代碼資料字矩陣示意圖表; 圖6是所述第二實施例的傳輸資料經過四階轉換後的區間代碼資料字矩陣三維示意圖; 圖7是圖6所示傳輸資料經過四階轉換後的區間代碼資料字矩陣等值綫示意圖; 圖8是本發明第三實施例傳輸資料被分解兩組傳輸資料並經過一階轉換後的區間代碼資料字矩陣示意圖表; 圖9是本發明第四實施例將擴展資料作為傳輸資料的資料包結構示意圖;以及 圖10是本發明第五實施例的電原理示意圖。FIG. 1 is a schematic diagram of a transmission data matrix of the first embodiment of the “data hierarchical compression transmission method and devices and electronic equipment implementing the method” of the present invention; 2 is a schematic diagram of the interval code data word matrix after the first-order binary conversion of the transmission data shown in FIG. 1; FIG. 3 is a schematic diagram of a data packet structure that transforms the interval code data words described in FIG. 2 into compressed data words; 4 is a schematic diagram of a compressed data frame in which the extended data in the data packet of the first embodiment is converted from interval code data words to compressed data words; FIG. 5 is a schematic diagram of the interval code data word matrix after the fourth-order conversion of the transmission data according to the second embodiment of the present invention; FIG. 6 is a three-dimensional schematic diagram of the interval code data word matrix after the fourth-order conversion of the transmission data of the second embodiment; FIG. 7 is a schematic diagram of contour codes of the interval code data word matrix of the transmission data shown in FIG. 6 after fourth-order conversion; FIG. 8 is a schematic diagram of the interval code data word matrix after the transmission data is decomposed into two groups of transmission data and subjected to first-order conversion according to the third embodiment of the present invention; FIG. 9 is a schematic diagram of a data packet structure using extended data as transmission data according to a fourth embodiment of the present invention; and 10 is a schematic diagram of the electrical principle of the fifth embodiment of the present invention.

Claims (18)

一種基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法,該方法包括: 在透過積體電路內部匯流排電連接的主器件和從器件之間的通訊中,對傳輸資料進行如下數據處理過程, 設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼; 對於包括Q個資料字的傳輸資料,Q是自然數,根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料; 設置資料字壓縮/解壓協議,該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則,將壓縮資料字組成壓縮傳輸資料幀的規則,將壓縮資料幀分解為壓縮資料字的規則,以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個規則; 依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字,使Q個區間代碼資料字壓縮成R個壓縮資料字,R是自然數,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀; 該從器件將壓縮傳輸資料幀發送至該主器件;以及 該主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將R個壓縮資料字解壓為包括Q個區間代碼資料字的區間代碼資料。A data compression and transmission method based on internal bus communication in integrated circuits, which includes: In the communication between the master device and the slave device electrically connected through the internal bus of the integrated circuit, the following data processing process is performed on the transmission data, Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval; For transmission data that includes Q data words, Q is a natural number, and according to the threshold interval where the value of the data word is located, the value of each data word is replaced with the threshold interval code of the threshold interval where the data word is located, forming Q Section code data of section code data; Set the data word compression/decompression protocol. The data word compression/decompression protocol sets the rules for compressing interval code data words into compressed data words, and the compressed data words are formed into compressed transmission data frames. The compressed data frames are decomposed into compressed data. At least one of the rules of the word and the rules of decompressing the compressed data word into the interval code data word; According to the data word compression/decompression protocol, the threshold interval code of more than two interval code data words is combined 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 <Q, the R compressed data words form a compressed transmission data frame; The slave device sends the compressed transmission data frame to the master device; and The main device parses the received compressed transmission data frame according to the data word compression/decompression protocol, and decompresses R compressed data words into interval code data including Q interval code data words. 如請求項1所述之基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法,其中: 積體電路內部匯流排通訊傳輸的資料包包括基礎資料和擴展資料;該方法中的傳輸資料就是該資料包內的擴展資料。As described in claim 1, the data gradation compression transmission method based on the internal bus communication of the integrated circuit, wherein: The data packet transmitted by the bus within the integrated circuit includes basic data and extended data; the transmission data in this method is the extended data in the data packet. 如請求項2所述之基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法,其中: 該擴展資料是觸控螢幕手勢識別演算法的擴展資料、觸控螢幕接近感應演算法的擴展資料、觸控螢幕防水演算法的擴展資料、高靈敏懸空演算法的擴展資料以及壓力檢測演算法的擴展資料中的至少一種。As described in claim 2, the data gradation compression transmission method based on the internal bus communication of the integrated circuit, wherein: The extended data is the extended data of the touch screen gesture recognition algorithm, the extended data of the touch screen proximity sensing algorithm, the extended data of the touch screen waterproof algorithm, the extended data of the highly sensitive suspension algorithm and the pressure detection algorithm. At least one of the expansion materials. 如請求項3所述之基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法,其中: 該Q個資料字是包括X×Y個資料通道的資料通道矩陣,每個資料通道是一個資料字,即Q =X×Y。As described in claim 3, the data gradation compression transmission method based on the internal bus communication of the integrated circuit, wherein: The Q data words are a data channel matrix including X×Y data channels, and each data channel is a data word, that is, Q=X×Y. 如請求項1或4所述之基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法,其中: Z=1,也就是設置一個資料門檻值TH1 ,形成2個門檻值區間(-∞,TH1 ]和(TH1 ,+∞);為兩個門檻值區間分別設置的一位區間門檻值代碼是0或1; 那麽,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換就是將Q個資料字替換為Q個二值化的區間代碼資料字。As described in claim 1 or 4, the data compressing transmission method based on the internal bus communication of the integrated circuit, where: Z=1, that is, setting a data threshold TH 1 to form 2 threshold intervals (-∞ , TH 1 ] and (TH 1 , +∞); the one-bit threshold code for the two threshold intervals is 0 or 1; then, use the threshold of the threshold interval for each data word value Value interval code replacement is to replace Q data words with Q binarized interval code data words. 如請求項5所述之基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法,其中: 資料字的數值是16位二進制碼;壓縮資料字的數值是8位二進制碼; 那麽,8個區間代碼資料字壓縮成一個壓縮資料字,從而R=Q/8。As described in claim 5, the data gradation compression transmission method based on the internal bus communication of the integrated circuit, 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 interval code data words are compressed into one compressed data word, so that R=Q/8. 如請求項1或2所述之基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法,其中: 資料字壓縮/解壓協議設置以下中的至少一項, 資料字壓縮時,選取的、用於壓縮成一壓縮資料字的區間代碼資料字的規則; 資料字壓縮時,壓縮成壓縮資料字的區間代碼資料字的排序; 資料字壓縮時,各壓縮資料字的排列順序; 資料字解壓時,壓縮資料字的解壓順序; 資料字解壓時,壓縮資料字的分解成各區間代碼資料字的排序;以及, 資料字解壓時,分解成的各區間代碼資料字的還原排序。The data compressing transmission method based on the internal bus communication of the integrated circuit as described in claim 1 or 2, wherein: The data word compression/decompression protocol sets at least one of the following, When data word is compressed, the rules of the interval code data word selected to be compressed into a compressed data word; When the data word is compressed, the sequence of the data word compressed into the compressed data word is sorted; When the data words are compressed, the arrangement order of the compressed data words; When the data word is decompressed, the decompression sequence of the compressed data word; When the data word is decompressed, the compressed data word is decomposed into the order of the code data words in each interval; and, When the data word is decompressed, the data words of each interval code that are decomposed into are restored and sorted. 如請求項1或2所述之基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法,其中: 該主器件是傳輸資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個; 該從器件是傳輸資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器、壓力檢測晶片、壓力檢測微型控制器、指紋識別晶片以及指紋識別微型控制器中的至少一個。The data compressing transmission method based on the internal bus communication of the integrated circuit as described in claim 1 or 2, wherein: The main device is a receiving device for transmitting data, including at least one of a host computer, a central processor, a main processor of a touch screen, a main processor of a pressure detection device, and a main processor of a fingerprint recognition device; The slave device is a transmission data transmission device, including terminal, coprocessor, touch control chip, touch control microcontroller, pressure detection chip, pressure detection microcontroller, fingerprint recognition chip and fingerprint recognition microcontroller at least one. 如請求項1所述之基於積體電路內部匯流排通訊的資料分階壓縮傳輸方法,其中: 在對傳輸資料進行資料處理過程之前, 該從器件將一幀傳輸資料分解成至少G子幀傳輸資料,G≥2; 分別對各子幀傳輸資料進行所述資料處理過程,從而主器件獲取G子幀區間代碼資料; 主器件將G子幀區間代碼資料整合為一整幀的區間代碼資料。As described in claim 1, the data gradation compression transmission method based on the internal bus communication of the integrated circuit, wherein: Before performing data processing on the transmitted data, The slave device decomposes a frame of transmission data into at least G subframe transmission data, G≥2; Perform the data processing process on the transmission data of each subframe, so that the master device obtains the G subframe interval code data; The master device integrates the G subframe interval code data into a whole frame of interval code data. 一種能夠進行資料分階壓縮傳輸的主器件,能夠藉助積體電路內部匯流排電連接從器件,其中該主器件包括: 兩個以上電子元器件;各電子元器件的組成和連接結構使該主器件至少能夠完成以下主器件資料處理過程, 該主器件接收該從器件發送的壓縮傳輸資料幀,該主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將R個壓縮資料字解壓為包括Q個區間代碼資料字的區間代碼資料; 該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則、將壓縮資料字組成壓縮傳輸資料幀的規則、將壓縮資料幀分解為壓縮資料字的規則以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個;一個壓縮資料字是依據資料字壓縮/解壓協議將兩個以上的區間代碼資料字的門檻值區間代碼壓縮而成,使Q個區間代碼資料字壓縮成R個壓縮資料字,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀; 包括Q個區間代碼資料字的區間代碼資料由包括Q個資料字的傳輸資料經過如下處理轉換而成, 設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼;根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料。A master device capable of compressing and transmitting data in stages can be electrically connected to a slave device by means of an internal bus bar of an integrated circuit. The master device includes: 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, the master device parses the received compressed transmission data frame according to the data word compression/decompression protocol, and decompresses R compressed data words into intervals including Q interval code data words Code information The data word compression/decompression protocol sets rules for compressing interval code data words into compressed data words, rules for compressing compressed data words into compressed transmission data frames, rules for decomposing compressed data frames into compressed data words, and compressed data words Decompression is at least one of the rules of the interval code data word; one compressed data word is formed by compressing the threshold interval code of more than two interval code data words according to the data word compression/decompression protocol, so that Q interval code data words Compressed into R compressed data words, R<Q, the R compressed data words form a compressed transmission data frame; The interval code data including Q interval code data words is converted from the transmission data including Q data words through the following processing, Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval; according to the threshold interval where the value of the data word is located, each data word The value of is replaced with the threshold interval code of the threshold interval where it is located to form interval code data including Q interval code data words. 如請求項10所述之能夠進行資料分階壓縮傳輸的主器件,其中: 當該從器件將一幀傳輸資料分解成至少G子幀傳輸資料時,G≥2;該從器件向該主器件發送G子幀壓縮傳輸資料幀,那麽,該主器件的各電子元器件的組成和連接結構使該主器件還能夠完成以下資料組合過程, 該主器件對G子幀壓縮傳輸資料幀分別進行該主器件資料處理過程,從而解壓獲得G子幀區間代碼資料; 該主器件將G子幀區間代碼資料整合為一整幀的區間代碼資料。As described in claim 10, a master device capable of compressing and transmitting data in stages, wherein: When the slave device decomposes a frame of transmission data into at least G subframe transmission data, G ≥ 2; the slave device sends a G subframe compressed transmission data frame to the master device, then, the electronic components of the master device The composition and connection structure enable the master device to complete the following data combination process, The master device performs the data processing of the master device on the G subframe compressed transmission data frames, so as to decompress to obtain the G subframe interval code data; The master device integrates the G subframe interval code data into a whole frame of interval code data. 如請求項10或11所述之能夠進行資料分階壓縮傳輸的主器件,其中: 該主器件是資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個; 那麽,該從器件是資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器、壓力檢測晶片、壓力檢測微型控制器、指紋識別晶片以及指紋識別微型控制器中的至少一個。A master device capable of data compression compression transmission as described in claim 10 or 11, wherein: The host device is a data receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor; Then, the slave device is a data sending device, including a terminal, a co-processor, a touch control chip, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller, a fingerprint recognition chip, and a fingerprint recognition microcontroller At least one. 一種能夠進行資料分階壓縮傳輸的從器件,能夠藉助積體電路內部匯流排電連接主器件,其中該從器件包括: 兩個以上電子元器件;各電子元器件的組成和連接結構使該從器件至少能夠完成以下從器件資料處理過程, 設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼;對於包括Q個資料字的傳輸資料,根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料; 設置資料字壓縮/解壓協議,該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則、將壓縮資料字組成壓縮傳輸資料幀的規則、將壓縮資料幀分解為壓縮資料字的規則以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個;依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字,使Q個區間代碼資料字壓縮成R個壓縮資料字,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀;以及 將壓縮傳輸資料幀發送至該主器件。A slave device capable of compressing and transmitting data in stages can be electrically connected to a master device by means of an internal bus bar in an integrated circuit, where the slave device includes: 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, Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval; for transmission data that includes Q data words, according to the value of the data word The threshold interval of the data, replace the value of each data word with the threshold interval code of the threshold interval in which it is located, to form interval code data including Q interval code data words; Set the data word compression/decompression protocol. The data word compression/decompression protocol sets rules for compressing interval code data words into compressed data words, rules for compressing compressed data words into compressed transmission data frames, and decompression of compressed data frames into compressed data. At least one of the rules of the word and the rule of decompressing the compressed data word into the interval code data word; according to the data word compression/decompression protocol, the threshold interval code of more than two interval code data words is combined into a compressed data word, Compress Q interval code data words into R compressed data words, R<Q, the R compressed data words form a compressed transmission data frame; and Send the compressed transmission data frame to the master device. 如請求項13所述之能夠進行資料分階壓縮傳輸的從器件,其中: 該從器件的各電子元器件的組成和連接結構使該從器件還能夠完成以下資料分解過程, 將一幀傳輸資料分解成至少G子幀傳輸資料,G≥2; G子幀傳輸資料分別經過該從器件資料處理過程後,該從器件向該主器件發送G子幀壓縮傳輸資料幀。A slave device capable of performing stepwise compression transmission as described in claim 13, wherein: The composition and connection structure of the electronic components of the slave device enable the slave device to complete the following data decomposition process, Decompose the transmission data of one frame into at least G subframe transmission data, G≥2; After the G subframe transmission data respectively undergo the data processing process of the slave device, the slave device sends the G subframe compressed transmission data frame to the master device. 如請求項13或14所述之能夠進行資料分階壓縮傳輸的從器件,其中: 該從器件是資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器、壓力檢測晶片、壓力檢測微型控制器、指紋識別晶片以及指紋識別微型控制器中的至少一個; 那麽,所述主器件是資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個。A slave device capable of data compression transmission as described in claim 13 or 14, wherein: The slave device is a data sending device, including at least a terminal, a co-processor, a touch control chip, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller, a fingerprint recognition chip, and a fingerprint recognition microcontroller One; Then, the host device is a data receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor. 一種能夠進行資料分階壓縮傳輸的電子設備,其包括: 至少一主器件,以及至少一從器件,該主器件與該從器件之間藉助積體電路內部匯流排互相電連接; 該從器件包括兩個以上電子元器件;該從器件的各電子元器件的組成和連接結構使該從器件至少能夠完成以下從器件資料處理過程, 設置Z個資料門檻值,Z≥1,從而形成Z+1個門檻值區間,為每個門檻值區間分別設置門檻值區間代碼;對於包括Q個資料字的傳輸資料,根據資料字的數值所在的門檻值區間,將每個資料字的數值用其所在門檻值區間的門檻值區間代碼替換,形成包括Q個區間代碼資料字的區間代碼資料; 設置資料字壓縮/解壓協議,該資料字壓縮/解壓協議設置了將區間代碼資料字壓縮成壓縮資料字的規則、將壓縮資料字組成壓縮傳輸資料幀的規則、將壓縮資料幀分解為壓縮資料字的規則以及將壓縮資料字解壓為區間代碼資料字的規則中的至少一個;依據資料字壓縮/解壓協議,將兩個以上的區間代碼資料字的門檻值區間代碼組合成一個壓縮資料字,使Q個區間代碼資料字壓縮成R個壓縮資料字,R<Q,該R個壓縮資料字組成壓縮傳輸資料幀; 將壓縮傳輸資料幀發送至該主器件; 該主器件包括兩個以上電子元器件;該主器件的各電子元器件的組成和連接結構使該主器件至少能夠完成以下主器件資料處理過程, 該主器件依據資料字壓縮/解壓協議解析收到的壓縮傳輸資料幀,將R個壓縮資料字解壓為包括Q個區間代碼資料字的區間代碼資料。An electronic device capable of compressing and transmitting data in stages, including: At least one master device and at least one slave device, the master device and the slave device are electrically connected to each other by means of an internal bus bar of the integrated circuit; The slave device includes more than two electronic components; the composition and connection structure of each electronic component of the slave device enables the slave device to complete at least the following slave device data processing process, Set Z data thresholds, Z≥1, to form Z+1 threshold intervals, and set threshold interval codes for each threshold interval; for transmission data that includes Q data words, according to the value of the data word The threshold interval of the data, replace the value of each data word with the threshold interval code of the threshold interval in which it is located, to form interval code data including Q interval code data words; Set the data word compression/decompression protocol. The data word compression/decompression protocol sets rules for compressing interval code data words into compressed data words, rules for compressing compressed data words into compressed transmission data frames, and decompression of compressed data frames into compressed data. At least one of the rules of the word and the rule of decompressing the compressed data word into the interval code data word; according to the data word compression/decompression protocol, the threshold interval code of more than two interval code data words is combined into a compressed data word, Compress Q interval code data words into R compressed data words, R<Q, the R compressed data words form a compressed transmission data frame; Send the compressed transmission data frame to the master device; The main device includes more than two electronic components; the composition and connection structure of the electronic components of the main device enable the main device to complete at least the following main device data processing process, The main device parses the received compressed transmission data frame according to the data word compression/decompression protocol, and decompresses R compressed data words into interval code data including Q interval code data words. 如請求項16所述之能夠進行資料分階壓縮傳輸的電子設備,其中: 該從器件的各電子元器件的組成和連接結構使該從器件還能夠完成以下資料分解過程, 將一幀傳輸資料分解成至少G子幀傳輸資料,G≥2; G子幀傳輸資料經過該從器件資料處理過程後,該從器件向該主器件發送G子幀壓縮傳輸資料幀; 該主器件的各電子元器件的組成和連接結構使該主器件還能夠完成以下資料組合過程, 該主器件對G子幀壓縮傳輸資料幀分別進行該主器件資料處理過程,從而解壓獲得G子幀區間代碼資料; 該主器件將G子幀區間代碼資料整合為一整幀的區間代碼資料。An electronic device capable of performing hierarchical compression transmission of data as described in claim 16, wherein: The composition and connection structure of the electronic components of the slave device enable the slave device to complete the following data decomposition process, Decompose the transmission data of one frame into at least G subframe transmission data, G≥2; After the G subframe transmission data passes through the data processing process of the slave device, the slave device sends the G subframe compressed transmission data frame to the master device; The composition and connection structure of the electronic components of the main device enable the main device to complete the following data combination process, The master device performs the data processing of the master device on the G subframe compressed transmission data frames, so as to decompress to obtain the G subframe interval code data; The master device integrates the G subframe interval code data into a whole frame of interval code data. 如請求項16或17所述之能夠進行資料分階壓縮傳輸的電子設備,其中: 該主器件是資料接收器件,包括上位機、中央處理器、觸控螢幕主處理器、壓力偵測裝置的主處理器以及指紋識別裝置的主處理器中的至少一個; 該從器件是資料發送器件,包括終端機、協同處理器、觸控控制晶片、觸控控制微型控制器、壓力檢測晶片、壓力檢測微型控制器、指紋識別晶片以及指紋識別微型控制器中的至少一個。An electronic device capable of performing hierarchical compression transmission of data as described in claim 16 or 17, wherein: The host device is a data receiving device, including at least one of a host computer, a central processor, a touch screen host processor, a pressure detection device host processor, and a fingerprint recognition device host processor; The slave device is a data sending device, including at least a terminal, a co-processor, a touch control chip, a touch control microcontroller, a pressure detection chip, a pressure detection microcontroller, a fingerprint recognition chip, and a fingerprint recognition microcontroller One.
TW108119360A 2018-06-19 2019-06-04 Data stepped compression transmission method and device and electronic equipment for realizing the method TWI695591B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810630715.3 2018-06-19
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
TW202002527A TW202002527A (en) 2020-01-01
TWI695591B true TWI695591B (en) 2020-06-01

Family

ID=68920311

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108119360A TWI695591B (en) 2018-06-19 2019-06-04 Data stepped compression transmission method and device and electronic equipment for realizing the method

Country Status (3)

Country Link
CN (1) CN110618960B (en)
TW (1) TWI695591B (en)
WO (1) WO2019242554A1 (en)

Families Citing this family (1)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929783A (en) * 2012-10-25 2013-02-13 华为技术有限公司 Data storage method, device and system
US8806108B2 (en) * 2011-06-07 2014-08-12 Hitachi, Ltd. Semiconductor storage apparatus and method of controlling semiconductor storage apparatus
CN104202054A (en) * 2014-09-16 2014-12-10 东南大学 Hardware LZMA (Lempel-Ziv-Markov chain-Algorithm) compression system and method
US20150153878A1 (en) * 2013-12-02 2015-06-04 Samsung Electronics Co., Ltd. Method of processing data by touch screen, storage medium, and electronic device
US9946679B2 (en) * 2011-10-05 2018-04-17 Analog Devices, Inc. Distributed audio coordination over a two-wire communication bus

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9219499B2 (en) * 2014-05-16 2015-12-22 Robert Bosch Gmbh Run time compression method for a vehicle communication bus
CN105790853B (en) * 2014-12-26 2019-02-22 北京奇虎科技有限公司 A kind of method and device of sonic transmissions character data

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US9946679B2 (en) * 2011-10-05 2018-04-17 Analog Devices, Inc. Distributed audio coordination over a two-wire communication bus
CN102929783A (en) * 2012-10-25 2013-02-13 华为技术有限公司 Data storage method, device and system
US20150153878A1 (en) * 2013-12-02 2015-06-04 Samsung Electronics Co., Ltd. Method of processing data by touch screen, storage medium, and electronic device
CN104202054A (en) * 2014-09-16 2014-12-10 东南大学 Hardware LZMA (Lempel-Ziv-Markov chain-Algorithm) compression system and method

Also Published As

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

Similar Documents

Publication Publication Date Title
US11463102B2 (en) Data compression method, data decompression method, and related apparatus, electronic device, and system
JP6005834B2 (en) System, method and computer program product for decompression of block-compressed images
KR20120084180A (en) Data compression device, operation method using the same, and data processing apparatus having the same
US20160119621A1 (en) Image processing method and display apparatus
WO2020140281A1 (en) Image data processing method and transmission apparatus, image display method and storage medium
CN106713922B (en) Image processing method and electronic device
TWI695591B (en) Data stepped compression transmission method and device and electronic equipment for realizing the method
CN115567589B (en) Compression transmission method, device and equipment of JSON data and storage medium
CN113630125A (en) Data compression method, data encoding method, data decompression method, data encoding device, data decompression device, electronic equipment and storage medium
CN113220651B (en) Method, device, terminal equipment and storage medium for compressing operation data
CN103186250A (en) Remote management system and remote management method
CN105659502A (en) System and method for conserving power consumption in a memory system
WO2023061180A1 (en) Multi frequency-based data sending method and apparatus, multi frequency-based data receiving method and apparatus, and device
TWI448906B (en) Remote management system and remote management method thereof
CN107077747B (en) Graphics command compression for remote display
CN114359015A (en) Data transmission method and device and graphic processing server
US10841405B1 (en) Data compression of table rows
CN111147083A (en) Method for compressing and transmitting time information
CN114285914B (en) Video data processing system, method and device based on power safety
US7970218B1 (en) Method, system, and computer-readable medium for the adaptive filtering and compression of video data
CN117392931B (en) Display device debugging method and device
CN117692010A (en) Data compression method, assembly, device and system
EP4280487A1 (en) Communication device and data transmission method
CN117412055A (en) Image processing method, electronic device, and storage medium
CN114442951A (en) Method, device, storage medium and electronic equipment for transmitting multi-channel data