Visual Basic中的8位CRC代码 [英] 8-bit CRC code in Visual Basic

查看:69
本文介绍了Visual Basic中的8位CRC代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用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

推荐答案


我想用8位CRC VB检查样本数据生成的CRC代码。

I want to check the CRC generated by the sample data with 8-bit CRC VB code.

实现CRC的方法有很多种。 您应该指出要在此示例中使用的算法以及数据类型。 例如,29CAC3是作为字符串,数字还是字节数组提供的,并且是以字符串形式返回的结果,
数字还是字节数组? 请参阅:
https://en.wikipedia.org/wiki/Cyclic_redundancy_check


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代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆