LRC verification tool
Fav纵向冗余校验(Longitudinal Redundancy Check,简称:LRC)是通信中常用的一种校验形式,也称LRC校验或纵向校验。它是一种从纵向通道上的特定比特串产生校验比特的错误检测方法。在行列格式中(如磁带),LRC经常是与VRC一起使用,这样就会为每个字符校验码。在工业领域Modbus协议Ascii模式采用该算法
具体算法如下:1、对需要校验的数据(2n个字符)两两组成一个16进制的数值求和
2、将求和结果与256求模
3、用256减去所得模值得到校验结果(另一种方法:将模值按位取反然后加1)
例如16进制数据:01 A0 7C FF 02(16进制计算) 求和:01 + A0 + 7C + FF + 02 = 21E 取模:21E % 100 = 1E 计算:100 - 1E = E2
(10进制计算) 求和:01 + 160 + 124 + 255 + 02 = 542 取模:542 % 256 = 30 计算:256 - 30 = 226
Recommended Tools
Online calculation of stainless steel plate weight
Calculate the weight of stainless steel plates online
Online equilateral triangle area calculator
Online calculation of the area of equilateral triangles
Cat Age Calculator
This tool can convert the age of cats into an age equivalent to that of humans
Blood pressure calculator
Calculate whether blood pressure is normal by measuring systolic and diastolic blood pressure
Fuel consumption calculator
Online fuel consumption calculation tool for automobiles
Cylindrical side area calculator
Online calculation of surface area on the side of a cylinder
Cone side area calculator
Online calculation of surface area on the side of a cone
Gradient Color Collection
Gradient color online query tool
CSS frosted glass effect generator
One click generation of CSS frosted glass effect code.
EASCii Code Comparison Table
Complete List of Common Symbols for EASCII Code
HTTP status code
Online query tool for HTTP status code/HTTP response code
Complete Collection of Flower Language
Search online for the meanings of various flowers
Mars Text Conversion Tool
Entertainment Tool: Martian Online Conversion Tool
Online image inversion/color reversal tool
Reverse the color of the image online
Complete Collection of Traffic Sign Images
View various traffic sign images online
Jingzi Chess Mini Game
Well shaped Chess Mini Game for Computer Battle
Pinyin to Chinese characters conversion
Search Chinese characters online through Pinyin
The Book of Songs (Alternative translations: "Classic of Poetry", "Canon of Odes")
Appreciation of the Full Text of the Book of Songs Online
Schulte Grid Game
World recognized 'strongest' concentration training game
Online Word Count
Statistically analyze numbers/letters/Chinese characters/punctuation/etc. in a string
Online Name Sorting Tool
Online name sorting tool, surname pinyin first letter sorting, surname stroke count sorting
Five Elements Dressing Guide
Daily Lucky Color Lucky Color Query Tool
Online Epilogue
Online Xiehouyu Query Tool
Online salary conversion tool for single and double rest days
Online single or monthly leave monthly salary conversion
























粤ICP备2021116614号