WO2017012389A1 - 链路检测方法、接收设备及计算机存储介质 - Google Patents

链路检测方法、接收设备及计算机存储介质 Download PDF

Info

Publication number
WO2017012389A1
WO2017012389A1 PCT/CN2016/081122 CN2016081122W WO2017012389A1 WO 2017012389 A1 WO2017012389 A1 WO 2017012389A1 CN 2016081122 W CN2016081122 W CN 2016081122W WO 2017012389 A1 WO2017012389 A1 WO 2017012389A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
new
serial data
data information
leaky bucket
Prior art date
Application number
PCT/CN2016/081122
Other languages
English (en)
French (fr)
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 WO2017012389A1 publication Critical patent/WO2017012389A1/zh

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

Definitions

  • the present invention relates to a high-speed serial link state detection technology, and more particularly to a link detection method, a receiving device, and a computer storage medium.
  • FIG. 1 is a schematic diagram of devices communicating with each other through a serial interface.
  • Device A transmits serial data to device B through link 0, and device A receives serial data transmitted by device B through link 1. If device A continues to send valid data to device B when the link error rate is high, data loss will occur, and device B will receive random data, which may cause serious failure of device B.
  • the current link state detection method is: device A sends a special control word to device B, and device B detects whether the received control word is the same as the control word sent by device A. If they are the same, the link is considered valid, and if it is not the same, the link is invalid.
  • this detection method the information to be transmitted must stop transmitting until the detection is completed. Therefore, this detection method can only reflect the link transmission condition during detection, and cannot reflect the actual transmission chain. The link status of the road.
  • Embodiments of the present invention are expected to provide a link detection method, a receiving device, and a computer storage medium. Quality, able to reflect the link state of the link during the actual transmission.
  • a link detection method comprising:
  • serial data information sent by the transmitting device through the link, where the serial data information includes information to be transmitted and corresponding verification information;
  • the method further includes:
  • the number of untranslated transmissions is increased by 1 as the number of new error-free transmissions
  • the number of erroneous transmissions is increased by 1 as the number of new erroneous transmissions
  • the method further includes:
  • the number of the erroneous transmissions is incremented by one as the new number of erroneous transmissions.
  • the determining the link according to the new number of untransmitted transmissions and the new number of erroneous transmissions Link status including:
  • the result of subtracting the value of the leaky bucket value by m is used as a new leaky bucket value, and the number of the new error-free transmission is cleared to zero;
  • the result of adding the leaky bucket value to n is used as a new leaky bucket value, and the new erroneous transmission number is cleared;
  • a link invalidation indication is generated, and the link invalidation indication indicates that the link state of the link is invalid.
  • the method further includes:
  • the new leaky bucket value is set to the leaky bucket maximum.
  • the verifying the serial data information according to the verification information includes:
  • serial data information includes information to be transmitted and a cyclic redundancy check code, wherein the cyclic redundancy check code is located in the Invalid information in the serial data information.
  • a receiving device comprising:
  • a receiving unit configured to receive serial data information sent by the sending device by using a link, where the serial data information includes information that needs to be transmitted and corresponding verification information;
  • a verification unit configured to verify the serial data information according to the verification information to obtain a verification result
  • a link state generating unit configured to: when the verification result indicates that the received serial data information has not been tampered with, determine that a link state of the link is a valid state; and the verification result indicates that the received When the serial data information is tampered with, it is determined that the link state of the link is an invalid state.
  • the receiving device further includes:
  • a statistical unit configured to: when the verification result indicates that the received serial data information has not been tampered with, add 1 to the number of untransferred transmissions as the number of new error-free transmissions;
  • the statistic unit is further configured to: when the verification result indicates that the received serial data information is tampered with, add 1 to the number of erroneous transmissions as the number of new erroneous transmissions;
  • the link state generating unit is further configured to determine a link state of the link according to the new number of unvoiced transmissions and the new number of erroneous transmissions.
  • the statistical unit is further configured to: when a new serial data information is not received within a preset time period after receiving the serial data information, The number of mistransmissions plus 1 is the number of new erroneous transmissions.
  • the link state generating unit is specifically configured to:
  • the result of subtracting the value of the leaky bucket value by m is used as a new leaky bucket value, and the number of the new error-free transmission is cleared to zero;
  • the result of adding the leaky bucket value to n is used as a new leaky bucket value, and the new erroneous transmission number is cleared;
  • a link invalidation indication is generated, and the link invalidation indication indicates that the link state of the link is invalid.
  • the link state generating unit is further configured to:
  • the new leaky bucket value is set to the leaky bucket maximum.
  • the verification unit is configured to:
  • serial data information includes information to be transmitted and a cyclic redundancy check code, wherein the cyclic redundancy check code is located in the Invalid information in the serial data information.
  • a third aspect of the embodiments of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used in at least one of the foregoing link detection methods.
  • Embodiments of the present invention provide a link detection method, a receiving device, and a computer storage medium, which first receive serial data information sent by a transmitting device through a link, where the serial data information includes information to be transmitted and a corresponding checksum. Information; then verifying the serial data information according to the verification information to obtain a verification result; determining whether the link state is an invalid state or an effective state according to the verification result; obviously, the verification information is serialized in this embodiment. Part of the data information, by verifying the information that needs to be transmitted to determine whether the link status is valid, obviously does not stop the transmission of the information that really needs to be transmitted, and can not stop the transmission of the information that really needs to be transmitted, obviously avoiding the stop in the prior art.
  • the interaction of the information that really needs to be transmitted is only used to transmit the link state of the detection caused by the special characters, but does not truly reflect the state of the data that needs to be transmitted in the transmission state, can improve the detection accuracy, and can avoid the real need for transmission due to the stop.
  • Data transmission specifically for the data transmission delay caused by the detection; and the same Transmission information to be transmitted and the corresponding check information, to facilitate the receiving device after receiving these two pieces of information, immediately possible to improve the detection efficiency test.
  • FIG. 1 is a schematic diagram of existing devices communicating with each other through links;
  • FIG. 2 is a flowchart of a link detection method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of another link detection method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a receiving device according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of another receiving device according to an embodiment of the present invention.
  • the embodiment of the invention provides a link detection method, which is applied to a receiving device as shown in FIG. 2 .
  • the method can include:
  • Step 101 Receive serial data information sent by a sending device through a link.
  • the serial data information includes information to be transmitted and corresponding verification information
  • the verification information is a result obtained by the transmitting device encoding the information to be transmitted according to a certain rule.
  • Step 102 Verify serial data information according to the verification information, and obtain a verification result.
  • the verification method in this embodiment may include a plurality of types, such as a message digest algorithm (MD), a Cyclic Redundancy Check (CRC) check method, and the like.
  • MD message digest algorithm
  • CRC Cyclic Redundancy Check
  • the method is not limited.
  • the verification method is a CRC check method.
  • the serial data information is verified according to a CRC check method, where the serial data information includes information to be transmitted and a CRC check code, wherein the CRC check code is located in the serial data. Invalid information in the message segment.
  • the CRC check code is the most commonly used error check code in the field of data communication, and is characterized in that the lengths of the information field and the check field can be arbitrarily selected.
  • the CRC check method is a data transmission error detection function. Polynomial calculation is performed on the information to be transmitted, and the obtained result is attached to the frame.
  • the receiving device also performs a similar algorithm to ensure the correctness and completeness of the data transmission. Sex.
  • the CRC check method in the prior art is very mature, and the corresponding algorithms and codes have been disclosed.
  • Step 103 If the verification result indicates that the received serial data information has not been tampered with, the chain is determined. The link state of the road is valid and ends the current processing flow.
  • Step 104 If the verification result indicates that the received serial data information is tampered with, it is determined that the link state of the link is an invalid state.
  • the check result when the check result is non-zero, it indicates that the received serial data information has been tampered with.
  • the receiving device can verify the serial data information according to the verification information, thereby determining the link of the link. State, in this way, the receiving device does not need to specifically receive information for detecting the link state to detect the link state of the link, but to verify the serial data information used for actual communication according to the received check code.
  • the link state of the link is determined, and therefore, the true link state of the link can be actually reacted, thereby improving the detection efficiency.
  • the method further includes: if the verification result indicates that the received serial data information has not been tampered with, adding 1 to the number of untransferred transmissions as the number of new error-free transmissions; If the received serial data information is tampered with, the number of erroneous transmissions is increased by 1 as the number of new erroneous transmissions; and the number of new erroneous transmissions and the number of new erroneous transmissions are determined.
  • the link status of the road Here, the initial number of the number of untransferred transmissions and the number of erroneous transmissions are both zero.
  • the method further includes: when the new serial data information is not received within a preset time period after receiving the serial data information, adding the number of erroneous transmissions to 1 as a new erroneous transmission.
  • the preset time period may be a predetermined time period elapsed from the time when the number of uncorrected transmissions or the number of erroneous transmissions is determined.
  • determining the link state of the link according to the new number of untransmitted transmissions and the number of the new erroneous transmissions may include: obtaining a saved leaky bucket value; and if the number of new untransmitted transmissions Wait At the first threshold, the result of subtracting the value of the leaked bucket as m is used as a new leaky bucket value, and the number of new untransmitted transmissions is cleared; if the number of new erroneous transmissions is equal to the second threshold, the value of the leaky bucket is added.
  • n is used as a new leaky bucket value to clear the number of new erroneous transmissions; if the new leaky bucket value is less than the low threshold, a link valid indication is generated, the link valid indication indicating the link The link state is valid; if the new leaky bucket value is greater than the high threshold, a link invalidation indication is generated, and the link invalidation indication indicates that the link state of the link is invalid.
  • the first threshold can be set. a larger value of 1000, thereby reducing the amount of calculation of the receiving device; because the number of erroneous transmissions is small, the second threshold can be set to a smaller value such as 1; in this embodiment, the high threshold can be 1; The low threshold can be zero. It is worth noting that the above thresholds can be adjusted according to the scene.
  • the method further includes: when the new leaky bucket value is greater than the high threshold, and the new leaky bucket value is a result of the leaky bucket value plus n, generating the link invalidation indication;
  • the leaky bucket value is set to the leaky bucket maximum. Specifically, when the new leaky bucket value is greater than the high threshold, the link invalidation indication is generated, and it is determined whether the new leaky bucket value is a result of the saved leaky bucket value plus n; if yes, a new leak is generated.
  • the bucket value is set to the maximum value of the leaky bucket.
  • the leaky bucket maximum is 63.
  • the leaky bucket value is returned to 63, so that only after a number of consecutive After the tampering transmission, it can be determined that the link state of the link is valid. Therefore, it is more accurate to determine the link state of the link.
  • An embodiment of the present invention provides a link detection method, which is applied to a serial communication system, where the system includes a device A as a transmitting device, a device B as a receiving device, and a link 0.
  • the device A sends the device A to the device B.
  • Information is done over link 0.
  • the link check Measurement methods can include:
  • Step 201 The device A performs CRC coding on the information to be transmitted to obtain a CRC check code.
  • Device A and device B pre-arrange an R-order polynomial g(x), add R zeros after the K-bit information field, and divide by the code sequence corresponding to g(x), and the obtained remainder is the check information.
  • the device A can calculate the keyword of the serial data information or the verification code of the control word, thereby reducing the workload of the CRC check code.
  • Step 202 Device B receives serial data information sent by device A through link 0.
  • the serial data information includes information to be transmitted and a CRC check code, wherein the CRC check code is attached to the information to be transmitted and stored in the invalid information segment of the serial data information.
  • Step 203 The device B performs a CRC check on the serial data information to obtain a verification result.
  • the binary code of the received serial data information is divided by the code sequence corresponding to g(x). If the remainder is 0, the serial data information is considered to have not been tampered with and transmitted. No error; if the remainder is not 0, the serial data information is considered to have been tampered with and the transmission has an error.
  • Step 204 Device B determines whether the verification result is 0. If yes, go to step 205; if no, go to step 209.
  • step 205 device B adds 1 to the number of untransferred transmissions.
  • an error-free transmission indication is generated, and the error-free transmission indication may be a high level, and the number of error-free transmissions is increased by 1 according to the error-free transmission indication.
  • the receiving device may include two counters.
  • An error-free counter is used to count the number of untransferred transmissions.
  • the error-free counter can be counted by a high-level trigger.
  • the maximum threshold of the error-free counter is 1000. When the error-free counter reaches 1000, it is automatically cleared and restarts counting.
  • Another error counter is used to count the number of erroneous transmissions.
  • the erroneous counter can be counted by a low level trigger.
  • the maximum threshold of the erroneous counter is 1. When the erroneous counter count reaches 1, it is automatically cleared. Start counting.
  • Step 206 Device B determines whether the number of untranslated transmissions is equal to 1000. If yes, go to step 207; if no, go to step 217.
  • Step 207 The device B obtains the leaky bucket value, decrements the leaky bucket value by 1 as a new leaky bucket value, and clears the number of the errorless transmissions, and then performs step 212.
  • a reduction instruction is generated, and the reduction instruction is used to decrement the leaky bucket value by 1, and the leaky bucket value is decremented by 1 as a new leaky bucket value according to the reduction instruction.
  • the decrease instruction is used to instruct the link state generation unit to decrement the current leaky bucket value by one.
  • Step 208 The device B determines whether new serial data information is received within a preset time period after receiving the serial data information. If no, step 209 is performed; if yes, step 217 is performed.
  • the serial communication does not time out; if new serial data information is not received, the serial communication timeout.
  • step 209 device B adds 1 to the number of erroneous transmissions.
  • an erroneous transmission instruction is generated, and the erroneous transmission instruction may be a low level; according to the erroneous transmission indication, the number of erroneous transmissions is increased by 1 as a new erroneous transmission number. .
  • step 210 the device B determines whether the number of erroneous transmissions is equal to 1. If yes, go to step 211; if no, go to step 217.
  • Step 211 Device B obtains a leaky bucket value, adds 1 to the leaky bucket value as a new leaky bucket value, and clears the number of erroneous transmissions.
  • the initial leaky bucket value is set in advance.
  • Step 212 Device B determines whether the new leaky bucket value is greater than 1 or less than 0.
  • 1 is the high threshold and 0 is the low threshold.
  • Step 213 If the new leaky bucket value is less than 0, the device B generates a link valid indication, and ends the current processing flow.
  • the link valid indication indicates that the link state of link 0 is valid and link 0 is a valid link.
  • Step 214 If the new leaky bucket value is greater than 1, the device B generates a link invalidation indication.
  • the link invalid indication indicates that the link state of link 0 is invalid and link 0 is an invalid link.
  • Step 215 The device B determines whether the new leaky bucket value is the result of adding the leaky bucket value to one. If yes, go to step 216; otherwise, go to step 217.
  • Step 216 Device B sets the new leaky bucket value to 63, and ends the current processing flow.
  • 63 is the maximum value of the leaky bucket value.
  • Step 217 device B waits to receive new serial data information.
  • the embodiment of the present invention provides a receiving device 30.
  • the receiving device 30 may include:
  • the receiving unit 301 is configured to receive serial data information that is sent by the sending device by using a link, where the serial data information includes information that needs to be transmitted and corresponding verification information.
  • the verification unit 302 is configured to check the serial data information according to the verification information to obtain a verification result.
  • the link state generating unit 303 is configured to: when the verification result indicates that the received serial data information has not been tampered with, determine that the link state of the link is a valid state; and the verification result indicates that the received When the serial data information is tampered with, it is determined that the link state of the link is an invalid state.
  • the receiving device can verify the serial data information according to the verification information, thereby determining the link of the link. Status, so the receiving device does not need to be specifically received for the detection chain
  • the information of the road state is used to detect the link state of the link, and the serial data information used for actual communication is verified according to the received check code to determine the link state of the link, and therefore, the actual reaction chain can be The true link state of the road, which improves the detection efficiency.
  • the receiving device 30 further includes:
  • the statistic unit 304 is configured to add 1 to the number of error-free transmissions as the number of new error-free transmissions when the verification result indicates that the received serial data information has not been tampered with.
  • the statistic unit 304 is further configured to add 1 to the number of erroneous transmissions as the number of new erroneous transmissions when the verification result indicates that the received serial data information has been tampered with.
  • the link state generating unit 303 is further configured to determine a link state of the link according to the new number of unvoiced transmissions and the new number of erroneous transmissions.
  • the statistic unit 304 is further configured to: when the new serial data information is not received within a preset time period after receiving the serial data information, add the number of erroneous transmissions to 1 as a new error. The number of transmissions.
  • the link state generating unit 303 is configured to:
  • the result of subtracting the value of the leaky bucket value by m is used as a new leaky bucket value, and the number of the new error-free transmission is cleared to zero;
  • the result of adding the leaky bucket value to n is used as a new leaky bucket value, and the new erroneous transmission number is cleared;
  • a link invalidation indication is generated, and the link invalidation indication indicates that the link state of the link is invalid.
  • the link state generating unit 303 is further configured to:
  • the new leaky bucket value is greater than the high threshold, and the new leaky bucket value is the leaky bucket value plus n Generating the link invalidation indication;
  • the new leaky bucket value is set to the leaky bucket maximum.
  • the verification unit 302 is configured to:
  • the serial data information is verified according to a CRC check method, the serial data information including information to be transmitted and a CRC check code, wherein the CRC check code is located in the serial data information Invalid information segment.
  • the receiving unit 301, the check unit 302, the link state generating unit 303, and the statistic unit 304 may each be a central processing unit (CPU) and a microprocessor (Micro) located in the receiving device 30.
  • CPU central processing unit
  • Micro microprocessor
  • Processor Unit MPU
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions, and the computer executable instructions are used in one or more of the foregoing link detection methods, for example, as shown in FIG. 2 and / or the method shown in Figure 3.
  • the computer storage medium can be any storage medium such as an optical disk or a magnetic disk, optionally a non-transitory storage medium.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction receiving device,
  • the instruction receiving device implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)
  • Communication Control (AREA)

Abstract

一种链路检测方法,以及一种接收设备和计算机存储介质,所述方法包括:接收发送设备通过链路发送的串行数据信息,所述串行数据信息包括需要传输的信息和对应的校验信息(101);根据所述校验信息校验所述串行数据信息,得到校验结果(102);若所述校验结果表示接收到的串行数据信息未被篡改,则确定所述链路的链路状态是有效状态(103);若所述校验结果表示接收到的串行数据信息被篡改,则确定所述链路的链路状态是无效状态(104)。

Description

链路检测方法、接收设备及计算机存储介质 技术领域
本发明涉及高速串行链路状态检测技术,尤其涉及一种链路检测方法、接收设备及计算机存储介质。
背景技术
串行通信是指使用一条数据线,将数据一位一位地依次传输,每一位数据占据一个固定的时间长度。串行通信只需要少数几条线就可以在系统间交换信息,因此,特别适用于计算机与计算机、计算机与外部设备之间的远距离通信。但串行通信传输过程中必然存在信道噪声和码间串扰,无法避免串行传输引起的误码。例如图1为设备间通过串行接口相互通信的示意图,设备A通过链路0将串行数据发送给设备B,同时设备A通过链路1接收设备B发送的串行数据。如果链路误码率较高时设备A继续向设备B发送有效数据,则将会导致数据丢失,同时设备B将接收到随机数据,可能导致设备B严重故障。
为了避免上述问题需要检测链路的误码率,现行的链路状态检测方法为:设备A发送特殊控制字给设备B,设备B检测接收到的控制字是否和设备A发送的控制字相同,如果相同则认为链路有效,不相同则链路无效。但是,使用这种检测方法检测时,真正要传输的信息就必须停止传输,直到检测完毕为止,因此,这种检测方法只能反应检测时的链路传输情况,并不能反应实际传输过程中链路的链路状态。
发明内容
本发明实施例期望提供一种链路检测方法、接收设备及计算机存储介 质,能够反应实际传输过程中链路的链路状态。
本发明的技术方案是这样实现的:
第一方面,提供一种链路检测方法,所述方法包括:
接收发送设备通过链路发送的串行数据信息,所述串行数据信息包括需要传输的信息和对应的校验信息;
根据所述校验信息校验所述串行数据信息,得到校验结果;
若所述校验结果表示接收到的串行数据信息未被篡改,则确定所述链路的链路状态是有效状态;
若所述校验结果表示接收到的串行数据信息被篡改,则确定所述链路的链路状态是无效状态。
结合第一方面,在第一种可实现方式中,所述校验所述串行数据信息之后,所述方法还包括:
若所述校验结果表示接收到的串行数据信息未被篡改,则将无误传输个数加1作为新的无误传输个数;
若所述校验结果表示接收到的串行数据信息被篡改,则将有误传输个数加1作为新的有误传输个数;
根据所述新的无误传输个数和所述新的有误传输个数,确定出所述链路的链路状态。
结合第一方面,在第二种可实现方式中,所述方法还包括:
在接收所述串行数据信息之后的预设时间段内,未接收新的串行数据信息时,将所述有误传输个数加1作为新的有误传输个数。
结合第一种和第二种可实现方式,在第三种可实现方式中,所述根据所述新的无误传输个数和所述新的有误传输个数,确定出所述链路的链路状态,包括:
获取保存的漏桶值;
若所述新的无误传输个数等于第一门限,则将所述漏桶值减m的结果作为新的漏桶值,将所述新的无误传输个数清零;
若所述新的有误传输个数等于第二门限,则将所述漏桶值加n的结果作为新的漏桶值,将所述新的有误传输个数清零;
若所述新的漏桶值小于低门限,则生成链路有效指示,所述链路有效指示表示所述链路的链路状态是有效;
若所述新的漏桶值大于高门限,则生成链路无效指示,所述链路无效指示表示所述链路的链路状态是无效。
结合第三种可实现方式,在第四种可实现方式中,所述方法还包括:
所述新的漏桶值大于所述高门限,且所述新的漏桶值是所述漏桶值加n的结果时,生成所述链路无效指示;
将所述新的漏桶值设置为漏桶最大值。
结合第一方面,在第五种可实现方式中,所述根据所述校验信息校验所述串行数据信息包括:
根据循环冗余校验法对所述串行数据信息进行校验,所述串行数据信息包括需要传输的信息和循环冗余校验码,其中,所述循环冗余校验码位于所述串行数据信息中的无效信息段内。
第二方面,提供一种接收设备,所述接收设备包括:
接收单元,配置为接收发送设备通过链路发送的串行数据信息,所述串行数据信息包括需要传输的信息和对应的校验信息;
校验单元,配置为根据所述校验信息校验所述串行数据信息,得到校验结果;
链路状态生成单元,配置为在所述校验结果表示接收到的串行数据信息未被篡改时,确定所述链路的链路状态是有效状态;在所述校验结果表示接收到的串行数据信息被篡改时,确定所述链路的链路状态是无效状态。
结合第二方面,在第一种可实现方式中,所述接收设备还包括:
统计单元,配置为在所述校验结果表示接收到的串行数据信息未被篡改时,将无误传输个数加1作为新的无误传输个数;
所述统计单元,还配置为在所述校验结果表示接收到的串行数据信息被篡改时,将有误传输个数加1作为新的有误传输个数;
所述链路状态生成单元,还配置为根据所述新的无误传输个数和所述新的有误传输个数,确定出所述链路的链路状态。
结合第二方面,在第二种可实现方式中,所述统计单元,还配置为在接收所述串行数据信息之后的预设时间段内,未接收新的串行数据信息时,将有误传输个数加1作为新的有误传输个数。
结合第一种和第二种可实现方式,在第三种可实现方式中,所述链路状态生成单元具体用于:
获取保存的漏桶值;
若所述新的无误传输个数等于第一门限,则将所述漏桶值减m的结果作为新的漏桶值,将所述新的无误传输个数清零;
若所述新的有误传输个数等于第二门限,则将所述漏桶值加n的结果作为新的漏桶值,将所述新的有误传输个数清零;
若所述新的漏桶值小于低门限,则生成链路有效指示,所述链路有效指示表示所述链路的链路状态是有效;
若所述新的漏桶值大于高门限,则生成链路无效指示,所述链路无效指示表示所述链路的链路状态是无效。
结合第三种可实现方式,在第四种可实现方式中,所述链路状态生成单元还用于:
所述新的漏桶值大于所述高门限,且所述新的漏桶值是所述漏桶值加n的结果时,生成所述链路无效指示;
将所述新的漏桶值设置为漏桶最大值。
结合第二方面,在第五种可实现方式中,所述校验单元配置为:
根据循环冗余校验法对所述串行数据信息进行校验,所述串行数据信息包括需要传输的信息和循环冗余校验码,其中,所述循环冗余校验码位于所述串行数据信息中的无效信息段内。
本发明实施例第三方面还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于前述链路检测方法的至少其中之一。
本发明实施例提供了一种链路检测方法、接收设备及计算机存储介质,先接收发送设备通过链路发送的串行数据信息,所述串行数据信息包括需要传输的信息和对应的校验信息;之后根据所述校验信息校验所述串行数据信息,得到校验结果;根据校验结果确定链路状态是无效状态还是有效状态;显然在本实施例中校验信息作为串行数据信息的一部分,通过校验需要传输的信息来确定链路状态是否有效,显然没有停止真正需要传输的信息的传输,且不能停止真正需要传输的信息的传输,显然避免了现有技术中停止真正需要传输的信息的交互,仅用于传输特殊字符导致的检测时的链路状态,而不能真正反映真正需要传输的数据在传输的状态,能够提升检测精度,且能够避免因停止真正需要传输的数据传输,专门进行检测导致的数据传输时延问题;且同时传输需要传输的信息和对应的校验信息,方便接收设备在接收到这两个信息之后,立即进行检验能够提高了检测效率。
附图说明
图1为现有的设备间通过链路相互通信的示意图;
图2为本发明实施例提供的一种链路检测方法的流程图;
图3为本发明实施例提供的另一种链路检测方法的流程图;
图4为本发明实施例提供的一种接收设备的结构示意图;
图5为本发明实施例提供的另一种接收设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,应当理解,以下所说明的优选实施例仅用于说明和解释本发明,并不用于限定本发明。
实施例一
本发明实施例提供一种链路检测方法,如图2所示,应用于接收设备。该方法可以包括:
步骤101、接收发送设备通过链路发送的串行数据信息。
这里,该串行数据信息包括需要传输的信息和对应的校验信息,校验信息是发送设备对需要传输的信息按照一定规则进行编码得到的结果。
步骤102、根据校验信息校验串行数据信息,得到校验结果。
本实施例的校验方法可以包括很多种,例如消息摘要算法(Message Digest Algorithm,MD)、循环冗余校验码(Cyclic Redundancy Check,CRC)校验法等,本实施例对具体的校验方法并不限定。
优选的,校验方法是CRC校验法。具体的,根据CRC校验法对所述串行数据信息进行校验,所述串行数据信息包括需要传输的信息和CRC校验码,其中,所述CRC校验码位于所述串行数据信息中的无效信息段内。这里,CRC校验码是数据通信领域中最常用的一种差错校验码,其特征是信息字段和校验字段的长度可以任意选定。CRC校验法是一种数据传输检错功能,对需要传输的信息进行多项式计算,并将得到的结果附在帧的后面,接收设备也执行类似的算法,以保证数据传输的正确性和完整性。现有技术中的CRC校验法已经非常成熟,已经公开了相应的算法和代码。
步骤103、若校验结果表示接收到的串行数据信息未被篡改,则确定链 路的链路状态是有效状态,结束当前处理流程。
例如,对于CRC校验法,当校验结果为0时,表示接收到的串行数据信息未被篡改。
步骤104、若校验结果表示接收到的串行数据信息被篡改,则确定链路的链路状态是无效状态。
例如,对于CRC校验法,当校验结果为非0时,表示接收到的串行数据信息被篡改。
这样一来,由于接收设备接收到的串行数据信息包括需要传输的信息和对应的校验信息,接收设备能够根据校验信息对串行数据信息进行校验,从而确定出链路的链路状态,如此,接收设备就无需专门接收用于检测链路状态的信息来检测链路的链路状态,而是根据接收到的校验码对用于实际通信的串行数据信息进行校验,确定链路的链路状态,因此,能够实际反应链路的真实链路状态,从而提高了检测效率。
可选地,步骤102之后,所述方法还包括:若校验结果表示接收到的串行数据信息未被篡改,则将无误传输个数加1作为新的无误传输个数;若校验结果表示接收到的串行数据信息被篡改,则将有误传输个数加1作为新的有误传输个数;根据新的无误传输个数和所述新的有误传输个数,确定出链路的链路状态。这里,无误传输个数和有误传输个数的初始值都为0。
可选地,所述方法还包括:在接收所述串行数据信息之后的预设时间段内,未接收新的串行数据信息时,将有误传输个数加1作为新的有误传输个数。这里,该预设时间段可以是从确定出无误传输个数或者有误传输个数的时刻开始,所经过预定时间段。
可选地,根据新的无误传输个数和所述新的有误传输个数,确定出所述链路的链路状态,可包括:获取保存的漏桶值;若新的无误传输个数等 于第一门限,则将漏桶值减m的结果作为新的漏桶值,将新的无误传输个数清零;若新的有误传输个数等于第二门限,则将漏桶值加n的结果作为新的漏桶值,将新的有误传输个数清零;若新的漏桶值小于低门限,则生成链路有效指示,所述链路有效指示表示所述链路的链路状态是有效;若新的漏桶值大于高门限,则生成链路无效指示,所述链路无效指示表示所述链路的链路状态是无效。
这里,由于链路上传输的信息大多未被篡改,只有少部分被篡改,未被篡改的信息数量较多,相应的无误传输个数也就是个比较大的数值,因此可将第一门限设置为1000等较大的数值,从而减少接收设备的计算量;由于有误传输个数较少,因此可将第二门限设置为1等较小的数值;本实施例中,高门限可是1;低门限可是0。值得说明的是,上述门限都可以根据所在场景进行调整。
可选地,所述方法还包括:新的漏桶值大于所述高门限,且新的漏桶值是漏桶值加n的结果时,生成所述链路无效指示;将所述新的漏桶值设置为漏桶最大值。具体的,当新的漏桶值大于所述高门限时,生成所述链路无效指示,判断该新的漏桶值是否是保存的漏桶值加n的结果;若是,则将新的漏桶值设置为漏桶最大值。优选的,漏桶最大值是63。这样,只要链路传输串行数据信息过程中,当链路的链路状态是无效时,只要串行数据信息被篡改,漏桶值就要重新回到63,从而只有经过多次连续的未被篡改的传输之后,才能确定出链路的链路状态是有效状态,因此,确定出链路的链路状态就更加准确了。
实施例二
本发明实施例提供一种链路检测方法,该方法应用于串行通信系统,该系统包括作为发送设备的设备A、作为接收设备的设备B和链路0,这里,设备A向设备B发送信息是通过链路0完成的。如图3所示,所述链路检 测方法可以包括:
步骤201、设备A将需要传输的信息进行CRC编码,得到CRC校验码。
校验信息的计算方法可以包括:假设需要传输的信息的二进制字段为K位,校验字段为R位,则码字长度为N,其中,N=K+R。设备A和设备B事先约定了一个R次多项式g(x),在K位信息字段的后面添加R个0,再除以g(x)对应的代码序列,得到的余数即为校验信息。这里,设备A可以计算串行数据信息中的关键字或者控制字的验证码,从而减少了CRC校验码的工作量。
步骤202、设备B通过链路0接收设备A发送的串行数据信息。
这里,该串行数据信息包括需要发送的信息和CRC校验码,其中,CRC校验码附着在需要发送的信息的后面,存放在串行数据信息的无效信息段内。
步骤203、设备B对串行数据信息进行CRC校验,得到校验结果。
当设备B收到串行数据信息后,用接收到的串行数据信息的二进制码与g(x)对应的代码序列相除,若余数为0,则认为串行数据信息未被篡改,传输无差错;若余数不为0,则认为串行数据信息被篡改,传输出现了错误。
步骤204、设备B判断校验结果是否为0。若是,则执行步骤205;若否,则执行步骤209。
步骤205、设备B将无误传输个数加1。
具体的,若校验结果为0,则生成无误传输指示,该无误传输指示可以是高电平,根据无误传输指示,将无误传输个数加1。
这里,接收设备可以包括两个计数器。一个无误计数器用于统计无误传输个数,该无误计数器可以通过高电平触发进行计数,该无误计数器的最大门限是1000,当无误计数器计数到达1000后自动清零,重新开始计数; 另一个有误计数器用于统计有误传输个数,该有误计数器可以通过低电平触发进行计数,该有误计数器的最大门限是1,当有误计数器计数到达1后自动清零,重新开始计数。
步骤206、设备B判断无误传输个数是否等于1000。若是,则执行步骤207;若否,则执行步骤217。
步骤207、设备B获取漏桶值,将该漏桶值减1作为新的漏桶值,将无误传输个数清零,之后执行步骤212。
具体的,若无误传输个数等于1000,则生成减少指令,减少指令用于将漏桶值减1,根据该减少指令,将漏桶值减1作为新的漏桶值。
该减少指令用于指示链路状态生成单元将当前的漏桶值减1。
步骤208、设备B判断在接收串行数据信息之后的预设时间段内,是否接收到新的串行数据信息。若否,则执行步骤209;若是,则执行步骤217。
若设备B接收到新的串行数据信息,则说明串行通信并未超时;若未接收到新的串行数据信息,则说明串行通信超时。
步骤209、设备B将有误传输个数加1。
具体的,若校验结果为非0,生成有误传输指示,该有误传输指令可以是低电平;根据有误传输指示,将有误传输个数加1作为新的有误传输个数。
步骤210、设备B判断有误传输个数是否等于1。若是,则执行步骤211;若否,则执行步骤217。
步骤211、设备B获取漏桶值,将该漏桶值加1作为新的漏桶值,将有误传输个数清零。
这里,初始的漏桶值是预先设置的。
步骤212、设备B判断新的漏桶值是否大于1或是否小于0。
这里,1是高门限,0是低门限。
步骤213、若新的漏桶值小于0,则设备B生成链路有效指示,结束当前处理流程。
该链路有效指示表示链路0的链路状态是有效,链路0是有效链路。
步骤214、若新的漏桶值大于1,则设备B生成链路无效指示。
该链路无效指示表示链路0的链路状态是无效,链路0是无效链路。
步骤215、设备B判断新的漏桶值是否是漏桶值加1的结果。若是,则执行步骤216;否则执行步骤217。
步骤216、设备B将新的漏桶值设置为63,结束当前处理流程。
这里,63是漏桶值的最大值。
步骤217、设备B等待接收新的串行数据信息。
实施例三
本发明实施例提供一种接收设备30,如图4所示,该接收设备30可以包括:
接收单元301,配置为接收发送设备通过链路发送的串行数据信息,所述串行数据信息包括需要传输的信息和对应的校验信息。
校验单元302,配置为根据所述校验信息校验所述串行数据信息,得到校验结果。
链路状态生成单元303,配置为在所述校验结果表示接收到的串行数据信息未被篡改时,确定所述链路的链路状态是有效状态;在所述校验结果表示接收到的串行数据信息被篡改时,确定所述链路的链路状态是无效状态。
这样一来,由于接收设备接收到的串行数据信息包括需要传输的信息和对应的校验信息,接收设备能够根据校验信息对串行数据信息进行校验,从而确定出链路的链路状态,如此,接收设备就无需专门接收用于检测链 路状态的信息来检测链路的链路状态,而是根据接收到的校验码对用于实际通信的串行数据信息进行校验,确定链路的链路状态,因此,能够实际反应链路的真实链路状态,从而提高了检测效率。
可选地,如图5所示,所述接收设备30还包括:
统计单元304,配置为在所述校验结果表示接收到的串行数据信息未被篡改时,将无误传输个数加1作为新的无误传输个数。
所述统计单元304,还配置为在所述校验结果表示接收到的串行数据信息被篡改时,将有误传输个数加1作为新的有误传输个数。
所述链路状态生成单元303,还用于根据所述新的无误传输个数和所述新的有误传输个数,确定出所述链路的链路状态。
可选地,统计单元304,还配置为在接收所述串行数据信息之后的预设时间段内,未接收新的串行数据信息时,将有误传输个数加1作为新的有误传输个数。
可选地,所述链路状态生成单元303配置为:
获取保存的漏桶值;
若所述新的无误传输个数等于第一门限,则将所述漏桶值减m的结果作为新的漏桶值,将所述新的无误传输个数清零;
若所述新的有误传输个数等于第二门限,则将所述漏桶值加n的结果作为新的漏桶值,将所述新的有误传输个数清零;
若所述新的漏桶值小于低门限,则生成链路有效指示,所述链路有效指示表示所述链路的链路状态是有效;
若所述新的漏桶值大于高门限,则生成链路无效指示,所述链路无效指示表示所述链路的链路状态是无效。
可选地,所述链路状态生成单元303还配置为:
所述新的漏桶值大于所述高门限,且所述新的漏桶值是所述漏桶值加n 的结果时,生成所述链路无效指示;
将所述新的漏桶值设置为漏桶最大值。
可选地,所述校验单元302配置为:
根据CRC校验法对所述串行数据信息进行校验,所述串行数据信息包括需要传输的信息和CRC校验码,其中,所述CRC校验码位于所述串行数据信息中的无效信息段内。
在实际应用中,所述接收单元301、校验单元302、链路状态生成单元303和统计单元304均可由位于接收设备30中的中央处理器(Central Processing Unit,CPU)、微处理器(Micro Processor Unit,MPU)、数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于前述链路检测方法的一个或多个,例如执行如图2和/或图3所示的方法。所述计算机存储介质可为光盘或磁盘等各种存储介质,可选地为非瞬间存储介质。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得 通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的接收设备。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令接收设备的制造品,该指令接收设备实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。

Claims (13)

  1. 一种链路检测方法,所述方法包括:
    接收发送设备通过链路发送的串行数据信息,所述串行数据信息包括需要传输的信息和对应的校验信息;
    根据所述校验信息校验所述串行数据信息,得到校验结果;
    若所述校验结果表示接收到的串行数据信息未被篡改,则确定所述链路的链路状态是有效状态;
    若所述校验结果表示接收到的串行数据信息被篡改,则确定所述链路的链路状态是无效状态。
  2. 根据权利要求1所述的方法,其中,所述校验所述串行数据信息之后,所述方法还包括:
    若所述校验结果表示接收到的串行数据信息未被篡改,则将无误传输个数加1作为新的无误传输个数;
    若所述校验结果表示接收到的串行数据信息被篡改,则将有误传输个数加1作为新的有误传输个数;
    根据所述新的无误传输个数和所述新的有误传输个数,确定出所述链路的链路状态。
  3. 根据权利要求1所述的方法,其中,所述方法还包括:
    在接收所述串行数据信息之后的预设时间段内,未接收新的串行数据信息时,将所述有误传输个数加1作为新的有误传输个数。
  4. 根据权利要求2或3所述的方法,其中,所述根据所述新的无误传输个数和所述新的有误传输个数,确定出所述链路的链路状态,包括:
    获取保存的漏桶值;
    若所述新的无误传输个数等于第一门限,则将所述漏桶值减m的结果 作为新的漏桶值,将所述新的无误传输个数清零;
    若所述新的有误传输个数等于第二门限,则将所述漏桶值加n的结果作为新的漏桶值,将所述新的有误传输个数清零;
    若所述新的漏桶值小于低门限,则生成链路有效指示,所述链路有效指示表示所述链路的链路状态是有效;
    若所述新的漏桶值大于高门限,则生成链路无效指示,所述链路无效指示表示所述链路的链路状态是无效。
  5. 根据权利要求4所述的方法,其中,所述方法还包括:
    所述新的漏桶值大于所述高门限,且所述新的漏桶值是所述漏桶值加n的结果时,生成所述链路无效指示;
    将所述新的漏桶值设置为漏桶最大值。
  6. 根据权利要求1所述的方法,其中,所述根据所述校验信息校验所述串行数据信息包括:
    根据循环冗余校验法对所述串行数据信息进行校验,所述串行数据信息包括需要传输的信息和循环冗余校验码,其中,所述循环冗余校验码位于所述串行数据信息中的无效信息段内。
  7. 一种接收设备,所述接收设备包括:
    接收单元,配置为接收发送设备通过链路发送的串行数据信息,所述串行数据信息包括需要传输的信息和对应的校验信息;
    校验单元,配置为根据所述校验信息校验所述串行数据信息,得到校验结果;
    链路状态生成单元,配置为在所述校验结果表示接收到的串行数据信息未被篡改时,确定所述链路的链路状态是有效状态;在所述校验结果表示接收到的串行数据信息被篡改时,确定所述链路的链路状态是无效状态。
  8. 根据权利要求7所述的接收设备,其中,所述接收设备还包括:
    统计单元,配置为在所述校验结果表示接收到的串行数据信息未被篡改时,将无误传输个数加1作为新的无误传输个数;
    所述统计单元,还配置为在所述校验结果表示接收到的串行数据信息被篡改时,将有误传输个数加1作为新的有误传输个数;
    所述链路状态生成单元,还配置为根据所述新的无误传输个数和所述新的有误传输个数,确定出所述链路的链路状态。
  9. 根据权利要求7所述的接收设备,其中,
    所述统计单元,还配置为在接收所述串行数据信息之后的预设时间段内,未接收新的串行数据信息时,将有误传输个数加1作为新的有误传输个数。
  10. 根据权利要求7或8所述的接收设备,其中,所述链路状态生成单元配置为:
    获取保存的漏桶值;
    若所述新的无误传输个数等于第一门限,则将所述漏桶值减m的结果作为新的漏桶值,将所述新的无误传输个数清零;
    若所述新的有误传输个数等于第二门限,则将所述漏桶值加n的结果作为新的漏桶值,将所述新的有误传输个数清零;
    若所述新的漏桶值小于低门限,则生成链路有效指示,所述链路有效指示表示所述链路的链路状态是有效;
    若所述新的漏桶值大于高门限,则生成链路无效指示,所述链路无效指示表示所述链路的链路状态是无效。
  11. 根据权利要求10所述的接收设备,其中,所述链路状态生成单元还配置为:
    所述新的漏桶值大于所述高门限,且所述新的漏桶值是所述漏桶值加n的结果时,生成所述链路无效指示;
    将所述新的漏桶值设置为漏桶最大值。
  12. 根据权利要求7所述的接收设备,其中,所述校验单元配置为:
    根据循环冗余校验法对所述串行数据信息进行校验,所述串行数据信息包括需要传输的信息和循环冗余校验码,其中,所述循环冗余校验码位于所述串行数据信息中的无效信息段内。
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至6任一项所述的方法。
PCT/CN2016/081122 2015-07-22 2016-05-05 链路检测方法、接收设备及计算机存储介质 WO2017012389A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510435546.4 2015-07-22
CN201510435546.4A CN106372026B (zh) 2015-07-22 2015-07-22 一种链路检测方法和接收设备

Publications (1)

Publication Number Publication Date
WO2017012389A1 true WO2017012389A1 (zh) 2017-01-26

Family

ID=57833613

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/081122 WO2017012389A1 (zh) 2015-07-22 2016-05-05 链路检测方法、接收设备及计算机存储介质

Country Status (2)

Country Link
CN (1) CN106372026B (zh)
WO (1) WO2017012389A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134867A (zh) * 2022-07-01 2022-09-30 白盒子(上海)微电子科技有限公司 一种自适应精度信息传输方法和装置

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112825505A (zh) * 2019-11-20 2021-05-21 西安诺瓦星云科技股份有限公司 通信状态检测方法、显示控制器以及模组控制器
CN111522757B (zh) * 2020-04-23 2023-08-22 上海琪云工业科技有限公司 一种基于i2c总线的中断读取与清除的控制方法
CN111767177B (zh) * 2020-05-15 2024-03-26 西安青松光电技术有限公司 Led显示屏控制卡的测试方法、装置、设备及存储介质
CN111857302A (zh) * 2020-06-19 2020-10-30 浪潮电子信息产业股份有限公司 一种系统管理总线的复位方法、装置以及设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889409A (zh) * 2006-07-26 2007-01-03 华为技术有限公司 一种链路状态检测方法及系统
CN102571259A (zh) * 2010-12-09 2012-07-11 中国科学院沈阳计算技术研究所有限公司 一种用于数控总线的安全可控通信方法
US8261156B2 (en) * 2008-09-11 2012-09-04 Lsi Corporation Methods and apparatuses for correcting errors in data streams
CN103427846A (zh) * 2013-07-16 2013-12-04 首都师范大学 动态可重构高速串行总线中错误控制方法
CN104184543A (zh) * 2013-05-24 2014-12-03 华为技术有限公司 一种数据传输的方法、装置和系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4096183B2 (ja) * 2003-02-27 2008-06-04 日本電気株式会社 警報転送方法及び広域イーサネット網
CN101123483B (zh) * 2007-09-11 2010-11-24 华为技术有限公司 业务链路的检测方法及装置
CN102932820A (zh) * 2011-08-09 2013-02-13 中兴通讯股份有限公司 一种链路处理方法、装置和系统
WO2012149724A1 (zh) * 2011-09-05 2012-11-08 华为技术有限公司 一种快速通道互连链路监控方法和设备及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889409A (zh) * 2006-07-26 2007-01-03 华为技术有限公司 一种链路状态检测方法及系统
US8261156B2 (en) * 2008-09-11 2012-09-04 Lsi Corporation Methods and apparatuses for correcting errors in data streams
CN102571259A (zh) * 2010-12-09 2012-07-11 中国科学院沈阳计算技术研究所有限公司 一种用于数控总线的安全可控通信方法
CN104184543A (zh) * 2013-05-24 2014-12-03 华为技术有限公司 一种数据传输的方法、装置和系统
CN103427846A (zh) * 2013-07-16 2013-12-04 首都师范大学 动态可重构高速串行总线中错误控制方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134867A (zh) * 2022-07-01 2022-09-30 白盒子(上海)微电子科技有限公司 一种自适应精度信息传输方法和装置

Also Published As

Publication number Publication date
CN106372026A (zh) 2017-02-01
CN106372026B (zh) 2020-01-31

Similar Documents

Publication Publication Date Title
WO2017012389A1 (zh) 链路检测方法、接收设备及计算机存储介质
US7073117B1 (en) Method and apparatus for generating bit errors in a forward error correction (FEC) system to estimate power dissipation characteristics of the system
JP4308297B2 (ja) 通信装置およびスイッチ処理装置
CN111953449A (zh) 校验码处理方法、电子设备及存储介质
US10009357B2 (en) Data frame for protected data transmissions
CN105528325A (zh) 一种标准spi协议高速传输的保护方法及系统
TWI650953B (zh) 資料傳輸中之累積誤差偵測
US11677495B2 (en) Safety communication device, safety communication system, safety communication method, and computer readable medium
US20170077952A1 (en) Sensor interface that provides a long package crc to improve functional safety
CN107733568B (zh) 基于fpga实现crc并行计算的方法及装置
WO2016095569A1 (zh) 降低误检率的方法、装置及存储介质
WO2016086638A1 (zh) 一种实现链路检测的方法、装置及计算机存储介质
EP3477478B1 (en) Memory architecture including response manager for error correction circuit
US9619347B2 (en) Systems and methods of fault management in electronic communications
Engdahl et al. Fast parallel CRC implementation in software
CN115695024A (zh) 一种用于plc信号的冗余检测方法及系统
CN115865281A (zh) 工业仪表通信数据丢包处理方法、系统、设备及存储介质
CN115129509A (zh) 一种数据传输方法、装置、介质
US8943393B1 (en) Distributed burst error protection
CN105227539A (zh) 汽车网络自动协商中的消息页面完整性验证
Juan et al. FPGA implementation of hamming code for increasing the frame rate of CAN communication
US9054840B2 (en) Error detection and correction of a data transmission
JP5394949B2 (ja) 伝送品質評価装置及び伝送品質評価方法
Juan et al. Utilization of High-Speed DSP Algorithms of Cyclic Redundancy Checking (CRC-15) Encoder and Decoder for Controller Area Network
CN116667971B (zh) Can数据报文发送校验方法、装置、计算机设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16827080

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16827080

Country of ref document: EP

Kind code of ref document: A1