# Transfer CRC is error in UAVCAN GUI

**URL:** <https://forum.zubax.com/t/transfer-crc-is-error-in-uavcan-gui/2264>\
**Category:** Support\
**Tags:** babel\
**Created:** [June 20, 2024, 9:16am UTC](https://forum.zubax.com/t/transfer-crc-is-error-in-uavcan-gui/2264 "2024-06-20T09:16:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YSL](https://forum.zubax.com/letter_avatar_proxy/v4/letter/y/4af34b/32.png) [@YSL](https://forum.zubax.com/u/YSL)\
**Post date:** [June 20, 2024, 9:16am UTC](https://forum.zubax.com/t/transfer-crc-is-error-in-uavcan-gui/2264/1 "2024-06-20T09:16:45Z")

</div>

Dear all

Tool is babel and UAVCAN GUI.  
In multi-frame. I used the crc algorithm of px4 specification but it was wrong.  
I then used the uavcan v1 crc algorithm and the result was the same as above.

Error message 1 is:  
Transfer could not be decoded:  
CRC mismatch: expected 7cae, got 29b1 for payload bytearray(b’123456789’) (DTID 1050)

Error message 2 is:  
Transfer could not be decoded:  
CRC mismatch: expected df20, got 8d16 for payload bytearray(b’\xd8\x00\x00\x00\x00\x00\x00\x01\x00\t\x80S\x19\x99B’) (DTID 1050)

What else needs to be modified for the CRC16 algorithm using px4 algorithm?

 ![a1](https://forum.zubax.com/uploads/default/original/2X/4/460800f49323b4379c1b4ffa3668884d47ef12b9.jpeg)  
 ![a2](https://forum.zubax.com/uploads/default/original/2X/6/608eed8ef127ecd2b6b671960120788face50cfd.jpeg)

---

<div class="post-metadata">

**Author:** ![pavel-kirienko](https://forum.zubax.com/user_avatar/forum.zubax.com/pavel-kirienko/32/180_2.png) [@pavel-kirienko](https://forum.zubax.com/u/pavel-kirienko)\
**Post date:** [June 20, 2024, 10:48am UTC](https://forum.zubax.com/t/transfer-crc-is-error-in-uavcan-gui/2264/2 "2024-06-20T10:48:14Z")

</div>

The rules of CRC computation are explained here:

> **[4.1 CAN bus transport layer - DroneCAN](https://dronecan.github.io/Specification/4.1_CAN_bus_transport_layer/)**
>
> DroneCAN is the primary CAN protocol used by the ArduPilot and PX4 projects for communication with CAN peripherals. It is an open protocol with open communication, specification and multiple open implementations.

---

<div class="post-metadata">

**Author:** ![YSL](https://forum.zubax.com/letter_avatar_proxy/v4/letter/y/4af34b/32.png) [@YSL](https://forum.zubax.com/u/YSL)\
**Post date:** [June 26, 2024, 2:15am UTC](https://forum.zubax.com/t/transfer-crc-is-error-in-uavcan-gui/2264/3 "2024-06-26T02:15:06Z")

</div>

Thank you.  
Confirm specs 4.1.  
Algorithm is no problem.  
The error is because my calculation has no data type signature.  
Used data type signature resolved the problem.

---

<div class="post-metadata">

**Author:** ![YSL](https://forum.zubax.com/letter_avatar_proxy/v4/letter/y/4af34b/32.png) [@YSL](https://forum.zubax.com/u/YSL)\
**Post date:** [August 13, 2024, 8:18am UTC](https://forum.zubax.com/t/transfer-crc-is-error-in-uavcan-gui/2264/5 "2024-08-13T08:18:30Z")

</div>

Hello  
There is a description in Section 4.1:" The Transfer CRC is computed from the transfer payload, prepended with a data type signature, in little-endian byte order. The diagram below illustrates the input of the transfer CRC function".

About generate the data type signature.  
There is a description in Chapter3:“The data type signature is based on CRC-64-WE”.  
(But I didn’t use this method. I use babel to analyze the UAVCAN GUI results. This is not all correct but it can work.)

Then add the data type signature in front of the original data, and then perform the crc calculation.

The data type signature is only used for calculation.  
It is not included in the transmitted data.
