# Param getset for string types fails to be read by UAVCAN GUI tool

**URL:** <https://forum.opencyphal.org/t/param-getset-for-string-types-fails-to-be-read-by-uavcan-gui-tool/772>\
**Category:** Libcanard\
**Created:** [March 5, 2020, 4:34am UTC](https://forum.opencyphal.org/t/param-getset-for-string-types-fails-to-be-read-by-uavcan-gui-tool/772 "2020-03-05T04:34:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kent.martin](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/kent.martin/32/370_2.png) [@kent.martin](https://forum.opencyphal.org/u/kent.martin)\
**Post date:** [March 5, 2020, 4:34am UTC](https://forum.opencyphal.org/t/param-getset-for-string-types-fails-to-be-read-by-uavcan-gui-tool/772/1 "2020-03-05T04:34:09Z")

</div>

Hi,  
I am having trouble using the string type for discover able parameters.  
I checked the generated code from dsdl complier and it appears to be correct.  
However UAVCAN gui tool either does not recognise the packet or comes up with garbled name and string value. Has anyone had success using String type parameters?  
Here is a sample of my code generating the message.

uint8\_t buffer[UAVCAN\_PROTOCOL\_PARAM\_GETSET\_RESPONSE\_MAX\_SIZE];  
uavcan\_protocol\_param\_GetSetResponse source = { 0 };  
source.value.union\_tag = UAVCAN\_PROTOCOL\_PARAM\_VALUE\_STRING\_VALUE;  
source.value.string\_value.len = 2;  
source.value.string\_value.data = “Hi”;  
source.max\_value.union\_tag = UAVCAN\_PROTOCOL\_PARAM\_VALUE\_EMPTY;  
source.max\_value.integer\_value=0;  
source.min\_value.union\_tag = UAVCAN\_PROTOCOL\_PARAM\_VALUE\_EMPTY;  
source.min\_value.integer\_value = 0;  
source.default\_value.union\_tag = UAVCAN\_PROTOCOL\_PARAM\_VALUE\_EMPTY;  
source.default\_value.integer\_value = 0;  
source.name.data = “Hi”;  
source.name.len = 2;  
uint16\_t len = uavcan\_protocol\_param\_GetSetResponse\_encode(&source, buffer);  
int result = canardRequestOrRespond(ins, transfer-\>source\_node\_id,  
UAVCAN\_PROTOCOL\_PARAM\_GETSET\_SIGNATURE,  
UAVCAN\_PROTOCOL\_PARAM\_GETSET\_ID, &transfer-\>transfer\_id, transfer-\>priority, CanardResponse, &buffer[0], (uint16\_t) len);

Thanks

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [March 5, 2020, 5:28pm UTC](https://forum.opencyphal.org/t/param-getset-for-string-types-fails-to-be-read-by-uavcan-gui-tool/772/2 "2020-03-05T17:28:59Z")

</div>

This is probably caused by the known bug in PyUAVCAN v0:

[https://github.com/UAVCAN/pyuavcan/issues/32](https://github.com/UAVCAN/pyuavcan/issues/32)

We do not have any resources committed to fixing that because v1 is the focus of the current development. Have you considered migrating to v1? Libcanard v1 is already usable:

> [@Libcanard for UAVCAN/CAN v1 is released](https://forum.opencyphal.org/t/libcanard-for-uavcan-can-v1-is-released/774):
>
> Libcanard v0.100, implementing UAVCAN/CAN v1, is now available: Key features: Full test coverage and static analysis. Partial compliance with automatically enforceable MISRA C rules (compliance report not available). Detailed time complexity and memory requirement models for the benefit of real-time high-integrity applications. Purely reactive API without the need for background servicing. Support for CAN FD. Support for redundant transports. Compatibility with 8/16/32/64-bit platforms. The…

---

<div class="post-metadata">

**Author:** ![kent.martin](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/kent.martin/32/370_2.png) [@kent.martin](https://forum.opencyphal.org/u/kent.martin)\
**Post date:** [March 6, 2020, 3:09am UTC](https://forum.opencyphal.org/t/param-getset-for-string-types-fails-to-be-read-by-uavcan-gui-tool/772/3 "2020-03-06T03:09:32Z")

</div>

Hi,  
Thanks, I thought this might be a bug in the gui tool.  
We are already using V0 across mutliple platforms and code in a project under way.  
I don’t think we can change this late in the development.  
Is I use V1 on the gui tool only will it work with v0 ?  
Otherwise we might have to fix the tool until we can change everything over.  
That decision will be above me as it involves many others.  
Thanks

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [March 6, 2020, 4:10am UTC](https://forum.opencyphal.org/t/param-getset-for-string-types-fails-to-be-read-by-uavcan-gui-tool/772/4 "2020-03-06T04:10:49Z")

</div>

> [@kent.martin](#):
>
> Is I use V1 on the gui tool only will it work with v0 ?

No.

> [@kent.martin](#):
>
> Otherwise we might have to fix the tool until we can change everything over.

We would appreciate a pull request.

---

<div class="post-metadata">

**Author:** ![David\_Buzz](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/david_buzz/32/447_2.png) [@David\_Buzz](https://forum.opencyphal.org/u/David_Buzz)\
**Post date:** [March 8, 2020, 7:12am UTC](https://forum.opencyphal.org/t/param-getset-for-string-types-fails-to-be-read-by-uavcan-gui-tool/772/5 "2020-03-08T07:12:20Z")

</div>

Hi Pavel, reviewing " [https://uavcan.org/](https://uavcan.org/) “, it says " Existing deployments will benefit from our commitment to provide long-term support and maintenance of UAVCAN v0-based systems.”, so i’d like to thankyou for taking the time and looking into this support/bug issue with v0 in accordance with your own documented policy. I don’t think saying “PRs welcome” ( or equivalent) and fobbing off a known bug to maybe hopefully be fixed by a 3rd party is really appropriate in this case, especially since it’s been a known bug for nearly 2 years.

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [March 8, 2020, 12:59pm UTC](https://forum.opencyphal.org/t/param-getset-for-string-types-fails-to-be-read-by-uavcan-gui-tool/772/6 "2020-03-08T12:59:48Z")

</div>

Of course. Our resources are limited and we distribute them according to our perception of the most immediate needs of the project. If you would like to discuss commercial support options, could you please email me at [sales@zubax.com](mailto:sales@zubax.com)? Thanks!
