Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] CRC checksum(uart protocal)

Status
Not open for further replies.

sankarapandi

Newbie
Newbie level 1
Joined
Aug 31, 2023
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
12
0x55, 0x0B, 0X03, 0X21, 0X00, 0X1A, 0X02, 0X31, 0X01, 0X03, 0X33, 0X00, 0X0A
torque sensor give this format data and 0x7B,0X9D this value crc checsum and
how to calculate the crc checksum value each step by step explain
 
Last edited by a moderator:

Solution
just to mention that with https://crccalc.com/ you can check several algortihms,
i set your data like
55 0B 03 21 00 1A 02 31 01 03 33 00 0A in HEX format

the first algorithm in CRC16 got your response:
AlgorithmResultCheckPolyInitRefInRefOutXorOut
CRC-16/ARC0x7B9D0xBB3D0x80050x0000truetrue0x0000
Hi,

This has nothing to do with UART at all. UART is no protocol and UART will not calculate CRC.

This all is software, and the sensor datasheet tells you what algorithm is used to calculate the CRC.

There are online tutorials for the algorithms and code and there are online CRC calculators.
Please do a simple internet search on your own.

And - as always - if you need help with code:
* show what you have done so far (show your code)
* what you expect it to do
* how your tested it / test conditions
* how it behaves instead
* what language / compiler you use
* what microcontroller you use

Klaus
 

just to mention that with https://crccalc.com/ you can check several algortihms,
i set your data like
55 0B 03 21 00 1A 02 31 01 03 33 00 0A in HEX format

the first algorithm in CRC16 got your response:
AlgorithmResultCheckPolyInitRefInRefOutXorOut
CRC-16/ARC0x7B9D0xBB3D0x80050x0000truetrue0x0000
 
Solution
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top