<?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>Custom HID device on nRF52840.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72295/custom-hid-device-on-nrf52840</link><description>I develop my own device on nRF52840 which will be HID device. And I have made my own HID descriptor of device: 
 
 And if I send data with function from example: 
 
 
 
 
 And nothing comes, because In report ID = 1, but this function sends data with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Mar 2021 19:51:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72295/custom-hid-device-on-nrf52840" /><item><title>RE: Custom HID device on nRF52840.</title><link>https://devzone.nordicsemi.com/thread/297623?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 19:51:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93bf0721-d695-42ed-b271-17fc55b134cb</guid><dc:creator>tanyashiro</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp; In my report &lt;span&gt;REPORT_SIZE&amp;nbsp;&lt;/span&gt;and &lt;span&gt;REPORT_COUNT&lt;/span&gt; were defined. But my mistake was that I sended to function&amp;nbsp;size that was not match REPORT_SIZE. That is why nothing was sended. But in the same time function returns 0, i.e. there is no any mistake.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom HID device on nRF52840.</title><link>https://devzone.nordicsemi.com/thread/297486?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 12:19:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bcff265-588e-4ef1-a75e-aecdf8136747</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;if you include report ID to your HID descriptor, the first byte of report data should be report ID, the real data starts from the second byte.&lt;/p&gt;
&lt;p&gt;Your descriptor looks somewhat&amp;nbsp;messy, and you didn&amp;#39;t define REPORT_COUNT and REPORT_SIZE for your output report. I would suggest to try a working descriptor from example, then extend it with report ID and change as your app needs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>