问题描述
嗨
我想用8位CRC VB代码检查样本数据生成的CRC。我们有24位十六进制数据以及8位CRC生成。是否有用于CRC验证的代码片段。
I want to check the CRC generated by the sample data with 8-bit CRC VB code. We have 24bits hex data along with 8 bit CRC is generating. Is there any code snippet for CRC verification.
Ex:29CAC351
Ex: 29CAC351
29CAC3是24位数据。
29CAC3 is 24bit data.
51是8位CRC
问候
B Teja
B TEJA
推荐答案
实现CRC的方法有很多种。 您应该指出要在此示例中使用的算法以及数据类型。 例如,29CAC3是作为字符串,数字还是字节数组提供的,并且是以字符串形式返回的结果,
数字还是字节数组? 请参阅:
There are many different ways of implementing a CRC. You should indicate the algorithm to be used in this example, and also data types. For instance, is 29CAC3 provided as a string, a number or a byte array, and is the result returned as a string, number or byte array? See: https://en.wikipedia.org/wiki/Cyclic_redundancy_check
这篇关于Visual Basic中的8位CRC代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!