# Libcanard for UAVCAN/CAN v1 is released

**URL:** <https://forum.opencyphal.org/t/libcanard-for-uavcan-can-v1-is-released/774>\
**Category:** Libcanard\
**Created:** [March 8, 2020, 4:07am UTC](https://forum.opencyphal.org/t/libcanard-for-uavcan-can-v1-is-released/774 "2020-03-08T04:07:49Z")\
**Posts on this page:** 1\
**Showing post:** 35

<div class="post-metadata">

**Author:** ![ashishraste](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/ashishraste/32/734_2.png) [@ashishraste](https://forum.opencyphal.org/u/ashishraste)\
**Post date:** [December 10, 2020, 10:05am UTC](https://forum.opencyphal.org/t/libcanard-for-uavcan-can-v1-is-released/774/35 "2020-12-10T10:05:02Z")

</div>

Hi @pavel.kirienko and UAVCAN developers,

Firstly a big thanks on your awesome work, developing and implementing the UAVCAN standard and now pushing it to v1.0.

My query on the above migration guide:

Setup: A dual-stack application. I have a set of ESCs using v0 libcanard and running on STM32G4 board. I’m trying to command them from a v1 libcanard publisher. The DSDL I’ve used is the [one](https://github.com/UAVCAN/public_regulated_data_types/blob/192295c4f9b67f4a20b0eabf74757b6597415f2b/uavcan/equipment/esc/1030.RawCommand.uavcan) which worked with v0, but upgraded to v1.0 specification by

1. Included `@extent` in the DSDL file, and used Nunavut to generate appropriate serialization code.
2. Named the data-type identifier as an unregulated fixed-port type, in a different root namespace following v1 specification.

Questions:

1. Was hoping to get the reception of (v1) frames working on the ESCs as per the suggestion in the migration guide above i.e. changed the mask of `MSG_FROM_TYPE_ID(x)` from `0x7FFFU` to `0x1FFFU` (in v0 `canard.c`) to clear the most significant two-bits of the subject ID. Couldn’t get lucky with that; is there anything else I’m missing here? Would this dual-stack setup work?
2. Do I need to take care of the toggle-bit in (received) payload frames as touched upon [here](https://forum.opencyphal.org/t/uavcan-v1-0-and-ardupilot/671/9)?

Side notes:

1. Was able to verify the reception (and decoding) of v1 Canard RX transfers using SocketCAN media-layer.
2. Updating the MSB bits as above on the ESCs having v0 libcanard didn’t seem to affect much, as they behaved as expected with v0-based commands sent from `uavcan_gui_tool`.

Cheers,  
Ashish

---

_[View the full topic](https://forum.opencyphal.org/t/libcanard-for-uavcan-can-v1-is-released/774)._
