ITLDG.DataCheck 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package ITLDG.DataCheck --version 1.0.2                
NuGet\Install-Package ITLDG.DataCheck -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ITLDG.DataCheck" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ITLDG.DataCheck --version 1.0.2                
#r "nuget: ITLDG.DataCheck, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ITLDG.DataCheck as a Cake Addin
#addin nuget:?package=ITLDG.DataCheck&version=1.0.2

// Install ITLDG.DataCheck as a Cake Tool
#tool nuget:?package=ITLDG.DataCheck&version=1.0.2                

数据校验框架

提供了大量的常用串口校验方式

使用示例

现成校验

ITLDG.DataCheck.Plugins.PluginCRC16_MODBUS crc16 = new ITLDG.DataCheck.Plugins.PluginCRC16_MODBUS();
byte[] result = crc16.CheckData(tempData);

自定义CRC16校验

Crc16Parameters par = new Crc16Parameters(0x8971, 0xFFFF, true, true, true, 0x4285);
ushort r = Crc16.CRC(par, DataByte);
byte[] result = r.GetBytesBigEndian();

已实现校验列举

  • BCC(Block Check Character/信息组校验码)
  • CheckSum 累加和校验
  • CheckSum 累加和校验( 0x100 - Sum 的差值)
  • CheckSum 累加和校验(0xFFFF)( 0x10000 - Sum 的差值)
  • CheckSum 累加和校验(最大65535)
  • CRC-10/ATM
  • CRC-10/CDMA2000
  • CRC-10/GSM
  • CRC-11/FLEXRAY
  • CRC-11/UMTS
  • CRC-12/CDMA2000
  • CRC-12/DECT
  • CRC-12/GSM
  • CRC-12/UMTS
  • CRC-13/BBC
  • CRC-14/DARC
  • CRC-14/GSM
  • CRC-15/CAN
  • CRC-15/MPT1327
  • CRC-16/AUG-CCITT
  • CRC-16/BUYPASS
  • CRC-16/CCITT-FALSE
  • CRC-16/CDMA2000
  • CRC-16/CMS
  • CRC-16/CRC-A
  • CRC-16/DDS-110
  • CRC-16/DECT-R
  • CRC-16/DECT-X
  • CRC-16/DNP
  • CRC-16/EN13757
  • CRC-16/GENIBUS
  • CRC-16/GSM
  • CRC-16/IBM
  • CRC-16/KERMIT
  • CRC-16/LJ1200
  • CRC-16/MAXIM
  • CRC-16/MCRF4XX
  • CRC-16/MODBUS
  • CRC-16/MODBUS 默纳克7000
  • CRC-16/OPENSAFETY-A
  • CRC-16/OPENSAFETY-B
  • CRC-16/PROFIBUS
  • CRC-16/RIELLO
  • CRC-16/T10-DIF
  • CRC-16/TELEDISK
  • CRC-16/TMS37157
  • CRC-16/USB
  • CRC-16/X-25
  • CRC-16/XMODEM
  • CRC-17/CAN-FD
  • CRC-21/CAN-FD
  • CRC-24/BLE
  • CRC-24/FLEXRAY-A
  • CRC-24/FLEXRAY-B
  • CRC-24/INTERLAKEN
  • CRC-24/LTE-A
  • CRC-24/LTE-B
  • CRC-24/OPENPGP
  • CRC-24/OS-9
  • CRC-3/GSM
  • CRC-3/ROHC
  • CRC-30/CDMA
  • CRC-31/PHILLIPS
  • CRC-32
  • CRC-32/AUTOSAR
  • CRC-32/BZIP2
  • CRC-32/C
  • CRC-32/D
  • CRC-32/JAMCRC
  • CRC-32/MPEG-2
  • CRC-32/POSIX
  • CRC-32/Q
  • CRC-32/XFER
  • CRC-4/INTERLAKEN
  • CRC-4/ITU
  • CRC-40/GSM
  • CRC-5/EPC
  • CRC-5/ITU
  • CRC-5/USB
  • CRC-6/CDMA2000-A
  • CRC-6/CDMA2000-B
  • CRC-6/DARC
  • CRC-6/GSM
  • CRC-6/ITU
  • CRC-64/ECMA-182
  • CRC-64/GO-ISO
  • CRC-64/WE
  • CRC-64/XZ
  • CRC-7
  • CRC-7/ROHC
  • CRC-7/UMTS
  • CRC-8/AUTOSAR
  • CRC-8/BLUETOOTH
  • CRC-8/CDMA2000
  • CRC-8/DARC
  • CRC-8/DVB-S2
  • CRC-8/EBU
  • CRC-8/GSM-A
  • CRC-8/GSM-B
  • CRC-8/I-CODE
  • CRC-8/ITU
  • CRC-8/LTE
  • CRC-8/MAXIM
  • CRC-8/NRSC-5
  • CRC-8/OPENSAFETY
  • CRC-8/ROHC
  • CRC-8/SAE-J1850
  • CRC-8/SMBUS
  • CRC-8/WCDMA
  • LRC 纵向冗余校验(Longitudinal Redundancy Check)
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 325 11/30/2023
1.0.2 177 9/15/2023
1.0.1 162 8/29/2023