<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>USB HID consumer control</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69135/usb-hid-consumer-control</link><description>Hi, 
 I want to add HID consumer control to the usbd_hid_composite example in SDK16. I have seen HID consumer control in the ble_app_hids_mouse example but don&amp;#39;t know how to implement the same in the usbd_hid_composite example. Can anyone explain how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Dec 2020 06:02:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69135/usb-hid-consumer-control" /><item><title>RE: USB HID consumer control</title><link>https://devzone.nordicsemi.com/thread/283945?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 06:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17003fd7-70fa-434d-809b-6232ea8e86d4</guid><dc:creator>him</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thanks for the response.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;I have tried replacing the hid mouse descriptor with hid consumer control and changing the report buffer size. It stops responding, does not show any error nor any data on the PC.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Can you tell me what other changes need to be made?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB HID consumer control</title><link>https://devzone.nordicsemi.com/thread/283752?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 10:20:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed1725ee-0a66-4ffa-ac5f-7a8e9c308dc2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;&amp;nbsp; &amp;nbsp;I want to add HID consumer control to the usbd_hid_composite example in SDK16. I have seen HID consumer control in the ble_app_hids_mouse example but don&amp;#39;t know how to implement the same in the usbd_hid_composite example. Can anyone explain how can I achieve this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;In order to change the descriptor, you have to change the class, meaning the files that are located in this directory:&lt;/p&gt;
&lt;p&gt;SDK-dir/components/libraries/usbd/class/hid/mouse/&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is a larger job compared to using the usbd_hid_generic example and describing your own descriptor when defining the endpoint:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define MY_DESCRIPTOR { \

  0x05, 0x01, \
  .... \
}

APP_USBD_HID_GENERIC_SUBCLASS_REPORT_DESC(mouse_desc,MY_DESCRIPTOR);&lt;/pre&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;You can then call&amp;nbsp;&lt;/span&gt;&lt;/span&gt;app_usbd_hid_generic_in_report_set() with the corresponding dataf format that your descriptor expects.
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Håkon&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB HID consumer control</title><link>https://devzone.nordicsemi.com/thread/283461?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 06:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1f04b08-fa4e-4ae5-85e2-a4dae43f9883</guid><dc:creator>him</dc:creator><description>&lt;p&gt;Can anyone help me with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>