<?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>How add a generic HID custom communication to PC  on  generic HID mouse example?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70452/how-add-a-generic-hid-custom-communication-to-pc-on-generic-hid-mouse-example</link><description>Hi All: 
 As the topic........... 
 1.what is the relations between the HID descriptor and data IN/OUT buffer? 
 2.Is the USB generic HID receiver_Function and tansmit_Function in the HID mouse examples?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Feb 2021 02:34:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70452/how-add-a-generic-hid-custom-communication-to-pc-on-generic-hid-mouse-example" /><item><title>RE: How add a generic HID custom communication to PC  on  generic HID mouse example?</title><link>https://devzone.nordicsemi.com/thread/292792?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 02:34:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:534fdd10-144a-4ff6-8fad-7b59b371ef72</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi，Simonr:&lt;/p&gt;
&lt;p&gt;Thank you for your reply!Pls close this topic!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How add a generic HID custom communication to PC  on  generic HID mouse example?</title><link>https://devzone.nordicsemi.com/thread/289920?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2021 07:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98fa6ae5-4779-4906-b6be-5188cfbb99eb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The NRF_DRV_USBD_TRANSFER_IN is a helper macro for declaring IN transfer description in &amp;quot;normal transfer mode&amp;quot;. The tx_buff here is simple the buffer that is to be transferred using the USB peripheral.&lt;/p&gt;
&lt;p&gt;The generic USBD HID uses the APP_USBD_HID_MOUSE_REPORT_DSC_BUTTON descriptor for a HID generic class. I&amp;#39;m still not sure what you mean about &amp;quot;relation&amp;quot; between these though.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How add a generic HID custom communication to PC  on  generic HID mouse example?</title><link>https://devzone.nordicsemi.com/thread/289667?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2021 10:12:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06601ebb-3b89-4e70-b597-8f9ece690270</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi,Simonr：&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;About the buffer: the buffer what&amp;nbsp; I refer to is&amp;nbsp; p_rep_buff-&amp;gt;p_buff&amp;nbsp; &amp;nbsp;In the function NRF_DRV_USBD_TRANSFER_IN() as the picture below:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610964530208v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;As&amp;nbsp;I said before, I want to find out the relations between the Hid Decriptor Table&amp;nbsp; and the buffer mentioned just above.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How add a generic HID custom communication to PC  on  generic HID mouse example?</title><link>https://devzone.nordicsemi.com/thread/289626?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2021 08:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3151518a-aab6-4afc-b98b-62a0886618fe</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry, but I can&amp;#39;t find any references to the buffer you mention. Please be more precise, as I&amp;#39;m not able to understand which buffer you&amp;#39;re referring to.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How add a generic HID custom communication to PC  on  generic HID mouse example?</title><link>https://devzone.nordicsemi.com/thread/289541?ContentTypeID=1</link><pubDate>Sat, 16 Jan 2021 04:08:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:176070ab-b021-4fda-b29a-03134cd41174</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;HI,Simonr:&lt;/p&gt;
&lt;p&gt;1.Thank you for your replay very much!&lt;/p&gt;
&lt;p&gt;2.About the ralation,I means the USBD_HID_DESCRIPTOR&amp;nbsp; &amp;nbsp;as the Descriptor table :&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610769287985v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1610769599998v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;
&lt;p&gt;I just want to know in those two pictures,what is the relations btween the table and the buffer filled by the function.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How add a generic HID custom communication to PC  on  generic HID mouse example?</title><link>https://devzone.nordicsemi.com/thread/289366?ContentTypeID=1</link><pubDate>Fri, 15 Jan 2021 09:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:750b5686-4e8f-4898-80f6-ff7e4acb10bd</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. Please check out &lt;a href="https://eleccelerator.com/tutorial-about-usb-hid-report-descriptors/"&gt;this tutorial&lt;/a&gt; on USB HID descriptors. There are also multiple cases &lt;a href="https://devzone.nordicsemi.com/search?q=set%20up%20hid%20descriptor"&gt;here on DevZone regarding HID descriptors&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;2. Again, what do you mean by &amp;quot;relations between the descriptor and data_buffered&amp;quot;?&lt;/p&gt;
&lt;p&gt;3. No, as I said in my last reply, the USB HID Generic example do not use the receiver and transmitter functions used in the BLE HID mouse application.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How add a generic HID custom communication to PC  on  generic HID mouse example?</title><link>https://devzone.nordicsemi.com/thread/289229?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 13:43:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fab3049-e42d-4af2-a14a-0f5f2f5b042d</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi,Simonr:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Sorry! Maybe I could&amp;#39;t express my opinion clearly.&amp;nbsp; Now I learn to make a wire mouse with the&amp;nbsp;usbd_hid_generic example.&lt;/p&gt;
&lt;p&gt;and then the mouse is OK. But now I want to make another USBD_HID_CUSTOM to transfer extra data from PC to the mouse, So........&lt;/p&gt;
&lt;p&gt;1.how to setup the desciptor?&lt;/p&gt;
&lt;p&gt;2.what is relations between&amp;nbsp; the descroptor&amp;nbsp; and data_buffered ?&lt;/p&gt;
&lt;p&gt;3.&lt;span&gt;Is the USBD&amp;nbsp;HID&amp;nbsp;Custom&amp;nbsp; receiver_Function and tansmit_Function in the USBD_HID mouse examples?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How add a generic HID custom communication to PC  on  generic HID mouse example?</title><link>https://devzone.nordicsemi.com/thread/289212?ContentTypeID=1</link><pubDate>Thu, 14 Jan 2021 13:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aefa61d-0608-480a-88dd-a8e8f9748c03</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. I&amp;#39;m sorry, but I&amp;#39;m struggling to understand this question. What do you mean about the &amp;quot;relations&amp;quot; between the descriptor and data buffers? What kind of custom communication do you plan on adding? Do you mean adding I.E. additional buttons to your mouse?&lt;/p&gt;
&lt;p&gt;2. The &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_hids_mouse.html"&gt;HID mouse application&lt;/a&gt; uses BLE and the Bluetooth HID Service to communicate with a central device like a PC or smart phone, while the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/usbd_hid_generic_example.html"&gt;USB HID Generic example&lt;/a&gt; shows you how to handle a HID mouse like device using the HID generic protocol and requires a USB connection for communication, so no these examples do &lt;strong&gt;not&lt;/strong&gt; use the same receiver and transmitter functions.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>