CN105528325A - Protection method and system for high-speed transmission through standard SPI protocol - Google Patents

Protection method and system for high-speed transmission through standard SPI protocol Download PDF

Info

Publication number
CN105528325A
CN105528325A CN201410513526.XA CN201410513526A CN105528325A CN 105528325 A CN105528325 A CN 105528325A CN 201410513526 A CN201410513526 A CN 201410513526A CN 105528325 A CN105528325 A CN 105528325A
Authority
CN
China
Prior art keywords
spi
transmission data
crc check
main frame
crc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410513526.XA
Other languages
Chinese (zh)
Other versions
CN105528325B (en
Inventor
操冬华
胡胜发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Ankai Microelectronics Co.,Ltd.
Original Assignee
Anyka Guangzhou Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anyka Guangzhou Microelectronics Technology Co Ltd filed Critical Anyka Guangzhou Microelectronics Technology Co Ltd
Priority to CN201410513526.XA priority Critical patent/CN105528325B/en
Publication of CN105528325A publication Critical patent/CN105528325A/en
Application granted granted Critical
Publication of CN105528325B publication Critical patent/CN105528325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a protection method and system for high-speed transmission through a standard SPI protocol. A CRC algorithm is added based on a conventional standard SPI protocol, so that reliable check protection can be provided when the SPI protocol is applied to a high-frequency and high-speed data transmission environment, and the SPI protocol can be more widely, efficiently and reliably applied. The method comprises following steps: an SPI host performs cyclical redundancy check (CRC) for transmission data and generates first CRC codes; the SPI host adds the check width type of the CRC and the first CRC codes to the transmission data according to a preset rule, and checked transmission data is obtained; the SPI host sends checked transmission data to a SPI slave; the SPI slave analyzes the checked transmission data so as to acquire the transmission data, the check width type and the first CRC codes according to a preset rule; the SPI slave performs CRC for the analyzed transmission data according to the check width type, and second CRC codes are obtained; and the first CRC codes and the second CRC codes are compared, then comparison results are obtained.

Description

A kind of guard method of standard SPI protocol high-speed transfer and system
Technical field
The embodiment of the present invention relates to data processing field, is specifically related to a kind of guard method and system of standard SPI protocol high-speed transfer.
Background technology
Serial Peripheral Interface (SPI) (SerialPeripheralInterface, SPI) agreement has been widely used among conventional peripheral devices now, the SPI protocol of standard, such as SPIflash operation.
SPIflash before uses the data transmission of single line, and the clock of transmission is up to 50Mhz, very high at last frequency.Along with the development in epoch, such as present SPIflash, current not only compatible traditional SPIflash1 line data-transmission mode, further increases 2 lines, the transmission mode of 4 lines, its clock frequency is when two lines, reach 104MHz, can 80Mhz be reached when 4 lines, the communication of visible SPI interface, simply transmitted by low speed, to the data transfer direction development that high frequency is complicated fast.And due to SPI host-host protocol simple, number of pin is few, is just being widely used in the digital interface of the communication of various electronic equipment, the application of the SPI interface understood at present, comprise storer SPIflash, SPIcamerasensor, SPItvout and SPIcmmb interface etc.
But at the beginning of formulation due to SPI standard agreement, do not include the consideration that the transmission stability of SPI is too many in, do not expect that spi interface is just applied more and more widely yet, and application also becomes increasingly complex, therefore SPI interface transmission stability, by in the face of more and more serious test, also there will be increasing bottleneck problem.
Therefore existing SPI standard agreement how is improved; thus can provide stable for the complicated applications of SPI; reliable data transmission protection mechanism, SPI protocol can more extensively, efficiently and reliably be applied becomes those skilled in the art's problem in the urgent need to address.
Summary of the invention
Embodiments provide a kind of guard method and system of standard SPI protocol high-speed transfer; by setting up CRC (CyclicalRedundancyCheck on the basis of existing standard SPI protocol; CRC) mode of algorithm; can when SPI protocol be applied to high frequency and data transmission environments at a high speed; improve and verify protection reliably, SPI protocol more extensively, efficiently and is reliably applied.
The guard method of the standard SPI protocol high-speed transfer that the embodiment of the present invention provides, comprising:
SPI main frame and SPI are from machine, and wherein said SPI main frame provides communication clock;
Described SPI main frame carries out CRC check to transmission data, and produces the first CRC check code;
Described SPI main frame increases the verification width type of CRC check and described first CRC check code by setting rule to described transmission data, obtains inspection transmission data;
Described verification transmission data are sent to described SPI from machine by described SPI main frame;
Described SPI parses transmission data, verification width type and the first CRC check code by described preset rules from machine from described verification transmission data;
Described SPI carries out CRC check according to described verification width type to the transmission data parsed from machine, obtains the 2nd CRC identifying code;
Contrast described first CRC check code and described 2nd CRC identifying code, obtain comparing result;
Process according to described comparing result.
Optionally,
Described SPI main frame increases the verification width type of CRC check and described first CRC check code by setting rule to described transmission data, obtains inspection transmission data and comprises:
Described SPI main frame increases the verification width type of CRC check and described first CRC check code to the optional position of described transmission data, obtains inspection transmission data.
Optionally,
Described CRC check is realized by software mode and/or hardware mode.
Optionally,
It is consistent and contrast inconsistent that described comparing result comprises contrast.
Optionally,
Describedly carry out process according to described comparing result and comprise:
Determine that described comparing result is consistent for contrasting, then to described SPI main frame transmission and reception normal information;
Determine that described comparing result is inconsistent for contrasting, then return transmission abnormality information to described SPI main frame.
Optionally,
Describedly also to comprise after described SPI main frame returns transmission abnormality information:
Described SPI main frame resends inspection transmission data to described SPI from machine.
The protection system of the standard SPI protocol high-speed transfer that the embodiment of the present invention provides, comprising:
SPI main frame and SPI are from machine, and wherein said SPI main frame provides communication clock;
Described SPI main frame comprises correction verification module, increases module, sending module;
Described correction verification module, for carrying out CRC check to transmission data, and produces the first CRC check code;
Described increase module, for increasing the verification width type of CRC check and described first CRC check code by setting rule to described transmission data, obtains inspection transmission data;
Described sending module, for being sent to described SPI from machine by described verification transmission data;
Described SPI comprises parsing module, correction verification module, contrast module and processing module from machine;
Described parsing module, for parsing transmission data, verification width type and the first CRC check code by described preset rules from described verification transmission data;
Described correction verification module, for carrying out CRC check according to described verification width type to the transmission data parsed, obtains the 2nd CRC identifying code;
Described contrast module, for contrasting described first CRC check code and described 2nd CRC identifying code, obtains comparing result;
Described processing module, for processing according to described comparing result.
Optionally,
Described processing module comprises the first determining unit and the second determining unit:
Described first determining unit, during for determining described comparing result for contrasting consistent, to described SPI main frame transmission and reception normal information;
Described second determining unit, during for determining described comparing result for contrasting inconsistent, returns transmission abnormality information to described SPI main frame.
Optionally,
Described SPI main frame also comprises delivery module:
Described delivery module, for resending inspection transmission data to described SPI from machine.
By setting up the mode of CRC algorithm on the basis of existing standard SPI protocol; the guard method of the standard SPI protocol high-speed transfer that the embodiment of the present invention provides and system can when SPI protocol be applied to high frequency and data transmission environments at a high speed; improve and verify protection reliably, SPI protocol more extensively, efficiently and is reliably applied.
Accompanying drawing explanation
Fig. 1 is the guard method first embodiment process flow diagram of standard SPI protocol high-speed transfer of the present invention;
Fig. 2 is the guard method second embodiment process flow diagram of standard SPI protocol high-speed transfer of the present invention;
Fig. 3 is the first structural representation of the protection system of standard SPI protocol high-speed transfer of the present invention;
Fig. 4 is the second structural representation of the protection system of standard SPI protocol high-speed transfer of the present invention.
Embodiment
Embodiments provide a kind of guard method and system of standard SPI protocol high-speed transfer; by setting up CRC (CyclicalRedundancyCheck on the basis of existing standard SPI protocol; CRC) mode of algorithm; can when SPI protocol be applied to high frequency and data transmission environments at a high speed; improve and verify protection reliably, SPI protocol more extensively, efficiently and is reliably applied.
CRC English name is CyclicalRedundancyCheck, and be called for short CRC, it utilizes the principle of division and remainder to do error detection (ErrorDetecting).During practical application, dispensing device calculates crc value and together sends to receiving trap with data, and receiving trap recalculates CRC to the data received and compared with the CRC received, if two crc value differences, then illustrates that mistake appears in data communication.
Refer to Fig. 1, the first embodiment of the guard method of embodiment of the present invention Plays SPI protocol high-speed transfer comprises:
SPI main frame and SPI are from machine, and wherein SPI main frame provides communication clock;
It should be noted that; SPI main frame and SPI dividing into from machine: SPI main frame is the transmit leg of data; SPI is the take over party of data from machine; therefore namely the guard method of embodiment of the present invention Plays SPI protocol high-speed transfer can be used for SPI main frame sends data process to SPI from machine; also can be used for SPI sends data process from machine to SPI main frame from; simultaneously for SPI main frame and the SPI transmitting procedure from various data between machine, can also be not construed as limiting herein.
101, SPI main frame carries out CRC check to transmission data, and produces the first CRC check code;
Transmission data are before transmitting, and first SPI main frame carries out CRC check to transmission data, and produces the first CRC check code.
102, SPI main frame increases verification width type and the first CRC check code of CRC check to transmission data by setting rule, obtains inspection transmission data;
After obtaining the first CRC check code, SPI main frame increases verification width type and the first CRC check code of CRC check to transmission data by setting rule, obtains inspection transmission data.
Above-mentioned setting rule specifically can comprise: the verification width type increasing CRC check before transmission data, at the first CRC check code of increase below of transmission data.Concrete setting rule can set according to the actual requirements, is not construed as limiting herein.
103, verification transmission data are sent to SPI from machine by SPI main frame;
After obtaining inspection transmission data, verification transmission data can be sent to SPI from machine by SPI main frame.
104, SPI parses transmission data, verification width type and the first CRC check code by preset rules from machine from verification transmission data;
SPI, from after machine receives inspection transmission data, then parses transmission data, verification width type and the first CRC check code by preset rules from verification transmission data.
It should be noted that, the preset rules in this step can be stored in advance in SPI from machine, also can receive from SPI main frame from during machine acceptance inspection transmission data at SPI simultaneously, be not construed as limiting herein.
105, SPI carries out CRC check according to verification width type to the transmission data parsed from machine, obtains the 2nd CRC identifying code;
After obtaining transmission data and verification width type, SPI carries out CRC check according to above-mentioned verification width type to the transmission data parsed from machine, can obtain the 2nd CRC identifying code.
106, contrast the first CRC check code and the 2nd CRC identifying code, obtain comparing result;
After obtaining the 2nd CRC identifying code, contrast the first CRC check code and the 2nd CRC identifying code, obtain comparing result.
107, process according to comparing result.
The embodiment of the present invention comprises SPI main frame and SPI from machine, and wherein SPI main frame provides communication clock; First SPI main frame carries out CRC check to transmission data, and produces the first CRC check code; Then increase verification width type and the first CRC check code of CRC check by setting rule to transmission data, obtain inspection transmission data; Then verification transmission data are sent to SPI from machine; SPI parses transmission data, verification width type and the first CRC check code by preset rules from machine from verification transmission data; Then according to verification width type, CRC check is carried out to the transmission data parsed, obtain the 2nd CRC identifying code; Then contrast the first CRC check code and the 2nd CRC identifying code, obtain comparing result; Finally process according to comparing result.By setting up the mode of CRC algorithm on the basis of existing standard SPI protocol; the guard method of the standard SPI protocol high-speed transfer that the embodiment of the present invention provides can when SPI protocol be applied to high frequency and data transmission environments at a high speed; improve and verify protection reliably, SPI protocol more extensively, efficiently and is reliably applied.
Simply describe the first embodiment of the guard method of standard SPI protocol high-speed transfer of the present invention above; below the second embodiment of the guard method of standard SPI protocol high-speed transfer of the present invention is described in detail; refer to Fig. 2, guard method second embodiment of embodiment of the present invention Plays SPI protocol high-speed transfer comprises:
201, SPI main frame carries out CRC check to transmission data, and produces the first CRC check code;
Transmission data are before transmitting, and first SPI main frame carries out CRC check to transmission data, and produces the first CRC check code.
It should be noted that, CRC check of the present invention can be realized by software mode and/or hardware mode, is not construed as limiting herein.
202, SPI main frame increases verification width type and the first CRC check code of CRC check to transmission data by setting rule, obtains inspection transmission data;
After obtaining the first CRC check code, SPI main frame increases verification width type and the first CRC check code of CRC check to transmission data by setting rule, obtains inspection transmission data.
Above-mentioned setting rule specifically can comprise: the verification width type increasing CRC check before transmission data, at the first CRC check code of increase below of transmission data.Concrete setting rule can set according to the actual requirements, is not construed as limiting herein.Suppose that transmission data are eight-digit binary number data, verification width type is triad data, first CRC check code is two bit binary data, concrete is respectively 10110101,101,11, setting rule is the verification width type increasing CRC check before transmission data, at the first CRC check code of increase below of transmission data, then inspection transmission data are 1011011010111.
203, verification transmission data are sent to SPI from machine by SPI main frame;
After obtaining inspection transmission data, verification transmission data can be sent to SPI from machine by SPI main frame.Transmit normal from machine at SPI main frame and SPI, and when transmission data and rule are the data of citing in step 202, SPI receive the inspection transmission data of 1011011010111 from chance.
204, SPI parses transmission data, verification width type and the first CRC check code by preset rules from machine from verification transmission data;
SPI, from after machine receives inspection transmission data, then parses transmission data, verification width type and the first CRC check code by preset rules from verification transmission data.Transmit normal from machine at SPI main frame and SPI, and transmission data and rule are when be the data of illustrating in step 202, the inspection of SPI from chance from 1011011010111 transmit data parse the transmission data of 10110101, the verification width type of 101 and 11 the first CRC check code.
It should be noted that, the preset rules in this step can be stored in advance in SPI from machine, also can receive from SPI main frame from during machine acceptance inspection transmission data at SPI simultaneously, be not construed as limiting herein.
205, SPI carries out CRC check according to verification width type to the transmission data parsed from machine, obtains the 2nd CRC identifying code;
After obtaining transmission data and verification width type, SPI carries out CRC check according to above-mentioned verification width type to the transmission data parsed from machine, can obtain the 2nd CRC identifying code.
206, contrast the first CRC check code and the 2nd CRC identifying code, obtain comparing result;
After obtaining the 2nd CRC identifying code, contrast the first CRC check code and the 2nd CRC identifying code, obtain comparing result.
When SPI main frame and SPI are from machine transmission abnormality, extremely transmission data can be occurred in, verification width type and the first CRC check code three any one or more in, occur in if abnormal transmission data and verification both width type any one or more in, the 2nd CRC identifying code then obtained will be different with the first CRC check code, occur in the first CRC check code if abnormal, the 2nd CRC identifying code then obtained is that the first CRC check code extremely occurs, that is extremely occur in transmission data, verification width type and the first CRC check code three any one or more in, the 2nd CRC identifying code then obtained will be different with the first CRC check code.
207, process according to comparing result;
It is consistent and contrast inconsistent that above-mentioned comparing result comprises contrast.So carry out process according to comparing result can comprise:
Determine that comparing result is that contrast is consistent, then perform step 208; Determine that comparing result is that contrast is inconsistent, then return transmission abnormality information to SPI main frame and perform step 209.
208, SPI is from machine to SPI main frame transmission and reception normal information;
Determine that the 2nd CRC identifying code contrasts consistent with the first CRC check code, SPI can to SPI main frame transmission and reception normal information from machine.
209, SPI main frame resends inspection transmission data to SPI from machine.
After SPI main frame receives transmission abnormality information, inspection transmission data can be resend to SPI from machine, until determine that SPI receives correct transmission data from machine.
By setting up the mode of CRC algorithm on the basis of existing standard SPI protocol; the guard method of the standard SPI protocol high-speed transfer that the embodiment of the present invention provides can when SPI protocol be applied to high frequency and data transmission environments at a high speed; improve and verify protection reliably; SPI protocol more extensively, efficiently and is reliably applied; in addition; the follow-up process to comparing result can make the guard method of standard SPI protocol high-speed transfer of the present invention more perfect, can improve the protection of standard SPI protocol high speed transmission method further.
Simply describe the second embodiment of the guard method of standard SPI protocol high-speed transfer of the present invention above; below the protection system embodiment of standard SPI protocol high-speed transfer of the present invention is described in detail; refer to Fig. 3 and Fig. 4, the protection system embodiment of embodiment of the present invention Plays SPI protocol high-speed transfer comprises:
SPI main frame 31 and SPI are from machine 32, and wherein SPI main frame 31 provides communication clock;
SPI main frame 31 comprises correction verification module 311, increases module 312, sending module 313;
Correction verification module 311, for carrying out CRC check to transmission data, and produces the first CRC check code;
Increase module 312, for increasing verification width type and the first CRC check code of CRC check to transmission data by setting rule, obtain inspection transmission data;
Sending module 313, for being sent to SPI from machine by verification transmission data;
SPI comprises parsing module 321, correction verification module 322, contrast module 323 and processing module 324 from machine 32;
Parsing module 321, for parsing transmission data, verification width type and the first CRC check code by preset rules from verification transmission data;
Correction verification module 322, for carrying out CRC check according to verification width type to the transmission data parsed, obtains the 2nd CRC identifying code;
Contrast module 323, for contrasting the first CRC check code and the 2nd CRC identifying code, obtains comparing result;
Processing module 324, for processing according to comparing result.
Optionally,
Processing module 324 comprises the first determining unit 3241 and the second determining unit 3242:
First determining unit 3241, for determining that comparing result is when contrasting consistent, to SPI main frame transmission and reception normal information;
Second determining unit 3242, for determining that comparing result is, when contrasting inconsistent, return transmission abnormality information to SPI main frame.
Optionally,
SPI main frame also comprises delivery module 314:
Delivery module 314, for resending inspection transmission data to SPI from machine.
The protection system of standard SPI protocol high-speed transfer is the system embodiment corresponding with the first embodiment of the guard method of standard SPI protocol high-speed transfer of the present invention and the second embodiment by the embodiment of the present invention, therefore also has the first embodiment of guard method and the advantage of the second embodiment of standard SPI protocol high-speed transfer of the present invention.By setting up the mode of CRC algorithm on the basis of existing standard SPI protocol; the protection system of the standard SPI protocol high-speed transfer that the embodiment of the present invention provides can when SPI protocol be applied to high frequency and data transmission environments at a high speed; improve and verify protection reliably, SPI protocol more extensively, efficiently and is reliably applied.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, service end, or the network equipment etc.) perform all or part of step of each embodiment method of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc. various can be program code stored medium.
Above, above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (9)

1. a guard method for standard SPI protocol high-speed transfer, is characterized in that, comprising:
SPI main frame and SPI are from machine, and wherein said SPI main frame provides communication clock;
Described SPI main frame carries out CRC check to transmission data, and produces the first CRC check code;
Described SPI main frame increases the verification width type of CRC check and described first CRC check code by setting rule to described transmission data, obtains inspection transmission data;
Described verification transmission data are sent to described SPI from machine by described SPI main frame;
Described SPI parses transmission data, verification width type and the first CRC check code by described preset rules from machine from described verification transmission data;
Described SPI carries out CRC check according to described verification width type to the transmission data parsed from machine, obtains the 2nd CRC identifying code;
Contrast described first CRC check code and described 2nd CRC identifying code, obtain comparing result;
Process according to described comparing result.
2. the guard method of standard SPI protocol high-speed transfer according to claim 1; it is characterized in that; described SPI main frame increases the verification width type of CRC check and described first CRC check code by setting rule to described transmission data, obtains inspection transmission data and comprises:
Described SPI main frame increases the verification width type of CRC check and described first CRC check code to the optional position of described transmission data, obtains inspection transmission data.
3. the guard method of standard SPI protocol high-speed transfer according to claim 1, is characterized in that, described CRC check is realized by software mode and/or hardware mode.
4. the guard method of standard SPI protocol high-speed transfer according to claim 1, is characterized in that, it is consistent and contrast inconsistent that described comparing result comprises contrast.
5. the guard method of standard SPI protocol high-speed transfer according to claim 4, is characterized in that, describedly carries out process according to described comparing result and comprises:
Determine that described comparing result is consistent for contrasting, then to described SPI main frame transmission and reception normal information;
Determine that described comparing result is inconsistent for contrasting, then return transmission abnormality information to described SPI main frame.
6. the guard method of standard SPI protocol high-speed transfer according to claim 5, is characterized in that, describedly also comprises after described SPI main frame returns transmission abnormality information:
Described SPI main frame resends inspection transmission data to described SPI from machine.
7. a protection system for standard SPI protocol high-speed transfer, is characterized in that, comprising:
SPI main frame and SPI are from machine, and wherein said SPI main frame provides communication clock;
Described SPI main frame comprises correction verification module, increases module, sending module;
Described correction verification module, for carrying out CRC check to transmission data, and produces the first CRC check code;
Described increase module, for increasing the verification width type of CRC check and described first CRC check code by setting rule to described transmission data, obtains inspection transmission data;
Described sending module, for being sent to described SPI from machine by described verification transmission data;
Described SPI comprises parsing module, correction verification module, contrast module and processing module from machine;
Described parsing module, for parsing transmission data, verification width type and the first CRC check code by described preset rules from described verification transmission data;
Described correction verification module, for carrying out CRC check according to described verification width type to the transmission data parsed, obtains the 2nd CRC identifying code;
Described contrast module, for contrasting described first CRC check code and described 2nd CRC identifying code, obtains comparing result;
Described processing module, for processing according to described comparing result.
8. the guard method of standard SPI protocol high-speed transfer according to claim 7, is characterized in that, described processing module comprises the first determining unit and the second determining unit:
Described first determining unit, during for determining described comparing result for contrasting consistent, to described SPI main frame transmission and reception normal information;
Described second determining unit, during for determining described comparing result for contrasting inconsistent, returns transmission abnormality information to described SPI main frame.
9. the guard method of standard SPI protocol high-speed transfer according to claim 7, is characterized in that, described SPI main frame also comprises delivery module:
Described delivery module, for resending inspection transmission data to described SPI from machine.
CN201410513526.XA 2014-09-29 2014-09-29 A kind of guard method and system of standard SPI protocol high-speed transfer Active CN105528325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410513526.XA CN105528325B (en) 2014-09-29 2014-09-29 A kind of guard method and system of standard SPI protocol high-speed transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410513526.XA CN105528325B (en) 2014-09-29 2014-09-29 A kind of guard method and system of standard SPI protocol high-speed transfer

Publications (2)

Publication Number Publication Date
CN105528325A true CN105528325A (en) 2016-04-27
CN105528325B CN105528325B (en) 2019-01-18

Family

ID=55770562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410513526.XA Active CN105528325B (en) 2014-09-29 2014-09-29 A kind of guard method and system of standard SPI protocol high-speed transfer

Country Status (1)

Country Link
CN (1) CN105528325B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943739A (en) * 2017-12-04 2018-04-20 上海无线电设备研究所 A kind of multigroup SPI code signals detection verification method based on FPGA
CN109408447A (en) * 2018-12-11 2019-03-01 北京地平线机器人技术研发有限公司 A kind of data transmission method based on SPI, device and electronic equipment
CN110855686A (en) * 2019-11-18 2020-02-28 深圳开立生物医疗科技股份有限公司 SPI protocol communication method, system, equipment and computer storage medium
CN112445659A (en) * 2019-08-27 2021-03-05 烽火通信科技股份有限公司 Method and system for realizing multi-protocol high-speed serdes test
CN113176966A (en) * 2021-03-12 2021-07-27 青芯半导体科技(上海)有限公司 System and method for checking validity of SPI (Serial peripheral interface) received data
CN114466045A (en) * 2022-02-10 2022-05-10 武汉中旗生物医疗电子有限公司 SPI communication method, monitor and medium
CN114760008A (en) * 2022-03-29 2022-07-15 苏州联讯仪器有限公司 Communication method, device, equipment and storage medium for SPI bus
US11663100B2 (en) 2020-06-02 2023-05-30 Analog Devices International Unlimited Company Serial interface with improved diagnostic coverage

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7013354B1 (en) * 1998-10-05 2006-03-14 Canon Kabushiki Kaisha Channel protocol for IEEE 1394 data transmission
CN102263612A (en) * 2011-07-18 2011-11-30 杭州晟联通信技术有限公司 Error detection method used for data block and equipment thereof
CN102487282A (en) * 2010-12-03 2012-06-06 上海华虹集成电路有限责任公司 Circuit for realizing variable length CRC operation
CN103838691A (en) * 2012-11-27 2014-06-04 中兴通讯股份有限公司 Method for achieving high-speed data transmission and universal interface chip

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7013354B1 (en) * 1998-10-05 2006-03-14 Canon Kabushiki Kaisha Channel protocol for IEEE 1394 data transmission
CN102487282A (en) * 2010-12-03 2012-06-06 上海华虹集成电路有限责任公司 Circuit for realizing variable length CRC operation
CN102263612A (en) * 2011-07-18 2011-11-30 杭州晟联通信技术有限公司 Error detection method used for data block and equipment thereof
CN103838691A (en) * 2012-11-27 2014-06-04 中兴通讯股份有限公司 Method for achieving high-speed data transmission and universal interface chip

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943739A (en) * 2017-12-04 2018-04-20 上海无线电设备研究所 A kind of multigroup SPI code signals detection verification method based on FPGA
CN107943739B (en) * 2017-12-04 2021-01-19 上海无线电设备研究所 FPGA-based multi-group SPI code signal detection and verification method
CN109408447A (en) * 2018-12-11 2019-03-01 北京地平线机器人技术研发有限公司 A kind of data transmission method based on SPI, device and electronic equipment
CN112445659A (en) * 2019-08-27 2021-03-05 烽火通信科技股份有限公司 Method and system for realizing multi-protocol high-speed serdes test
CN110855686A (en) * 2019-11-18 2020-02-28 深圳开立生物医疗科技股份有限公司 SPI protocol communication method, system, equipment and computer storage medium
CN110855686B (en) * 2019-11-18 2022-08-16 深圳开立生物医疗科技股份有限公司 SPI protocol communication method, system, equipment and computer storage medium
US11663100B2 (en) 2020-06-02 2023-05-30 Analog Devices International Unlimited Company Serial interface with improved diagnostic coverage
CN113176966A (en) * 2021-03-12 2021-07-27 青芯半导体科技(上海)有限公司 System and method for checking validity of SPI (Serial peripheral interface) received data
CN113176966B (en) * 2021-03-12 2024-07-12 青芯半导体科技(上海)有限公司 System and method for checking SPI received data validity
CN114466045A (en) * 2022-02-10 2022-05-10 武汉中旗生物医疗电子有限公司 SPI communication method, monitor and medium
CN114760008A (en) * 2022-03-29 2022-07-15 苏州联讯仪器有限公司 Communication method, device, equipment and storage medium for SPI bus

Also Published As

Publication number Publication date
CN105528325B (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN105528325A (en) Protection method and system for high-speed transmission through standard SPI protocol
CN102567276B (en) Data transmission method based on multiple channels, related nodes and system
CN102291408B (en) Processing method and device for iSCSI (Internet small computer system interface) protocol message
EP4274127A1 (en) Data transmission method and apparatus, and device, system and computer-readable storage medium
EP3065323B1 (en) Transmission method and device based on management data input/output multi-source agreements
CN106372026B (en) link detection method and receiving equipment
CN103763067A (en) Method and device for error correction and calibration of communication data packets
CN105897689B (en) Embedded system and method thereof
CN109408447A (en) A kind of data transmission method based on SPI, device and electronic equipment
CN115208877B (en) File transmission method, device, equipment, medium and product
CN112583878A (en) Vehicle information checking method, device, equipment and medium
US12095510B1 (en) Infrared communication method and apparatus, storage medium and electronic apparatus
CN105487937A (en) RDMA (Remote Direct Memory Access) implementation method and device
CN102916781A (en) Calibration method and calibration device
CN102998994B (en) Embedded blood analyzer control system and control method thereof
CN113535578A (en) CTS (clear to send) testing method, device and testing equipment
US10574392B2 (en) System. methods and devices for transmitting and/or receiving data using an inter communication link
CN115129509B (en) Data transmission method, device and medium
CN104536926A (en) Control method and device of serial devices
CN103580953A (en) Method and devices for detecting faults
CN116027986A (en) Data storage verification method, device, equipment and storage medium
US9621339B1 (en) Host devices and data transmission methods
US9619310B2 (en) High speed data transmission methods and systems upon error detection
CN105227539A (en) Message page integrity verification in automotive networking auto negotiation
CN110381095B (en) System on chip, equipment and communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Protection method and system for high-speed transmission through standard SPI protocol

Effective date of registration: 20190621

Granted publication date: 20190118

Pledgee: Bank of China, Limited by Share Ltd, Guangzhou, Panyu branch

Pledgor: Anyka (Guangzhou) Microelectronics Technology Co., Ltd.

Registration number: 2019440000233

PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20200907

Granted publication date: 20190118

Pledgee: Bank of China Limited by Share Ltd. Guangzhou Panyu branch

Pledgor: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

Registration number: 2019440000233

PC01 Cancellation of the registration of the contract for pledge of patent right
CP01 Change in the name or title of a patent holder

Address after: 510663 3rd floor, area C1, innovation building, 182 science Avenue, Guangzhou Science City, Luogang District, Guangzhou City, Guangdong Province

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 510663 3rd floor, area C1, innovation building, 182 science Avenue, Guangzhou Science City, Luogang District, Guangzhou City, Guangdong Province

Patentee before: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP02 Change in the address of a patent holder

Address after: 510555 No. 107 Bowen Road, Huangpu District, Guangzhou, Guangdong

Patentee after: Guangzhou Ankai Microelectronics Co., Ltd

Address before: 510663 3rd floor, area C1, innovation building, 182 science Avenue, Guangzhou Science City, Luogang District, Guangzhou City, Guangdong Province

Patentee before: Guangzhou Ankai Microelectronics Co., Ltd

CP02 Change in the address of a patent holder