# Make parameter Serial number - "Not specified" (Leonardo)

**URL:** <https://forum.arduino.cc/t/make-parameter-serial-number-not-specified-leonardo/1148165>\
**Category:** Leonardo\
**Created:** [July 14, 2023, 7:34pm UTC](https://forum.arduino.cc/t/make-parameter-serial-number-not-specified-leonardo/1148165 "2023-07-14T19:34:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unicorn79](https://avatars.discourse-cdn.com/v4/letter/u/71e660/32.png) [@unicorn79](https://forum.arduino.cc/u/unicorn79)\
**Post date:** [July 14, 2023, 7:34pm UTC](https://forum.arduino.cc/t/make-parameter-serial-number-not-specified-leonardo/1148165/1 "2023-07-14T19:34:18Z")

</div>

Hello! I'm using IDE 2.1.0 with Leonardo's board and using the USB HID keyboard and mouse emulation library. I know where i can set the "Serial Number" parameter of my USB HID Device - in PluggableUSB.cpp :

for example - the code below will set the parameter "Serial number" of the device - 01296

```arduino
virtual uint8_t getShortName(char *name) { name[0] = '0'; name[1] = '1'; name[2] = '2'; name[3] = '9'; name[4] = '6'; return 5; }

```

Well, but how can I make this parameter "Serial number" are "Not specified"? For example - I analyze real USB HID devices - this parameter it says "Not specified", i.e. the parameter is not set. [Example1](http://dl3.joxi.net/drive/2023/07/14/0013/2011/870363/63/eca9f24043.png) [Example2](http://dl3.joxi.net/drive/2023/07/14/0013/2011/870363/63/9167c15e0c.png)

I have tried ending the above line like this -

```arduino
virtual uint8_t getShortName(char *name) { name[0] = '0'; name[1] = '1'; name[2] = '2'; name[3] = '9'; name[4] = '6'; return 0; }

```

[but it had no effect](http://dl3.joxi.net/drive/2023/07/14/0013/2011/870363/63/05ec4612b3.png). - it says "String Descriptor 3 (unable to read).

Has anyone successfully resolved this issue?  
Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [January 10, 2024, 7:34pm UTC](https://forum.arduino.cc/t/make-parameter-serial-number-not-specified-leonardo/1148165/2 "2024-01-10T19:34:35Z")

</div>

Closed on January 10, 2024, 7:34pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
