<?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 bulk transfer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44342/custom-hid-device-bulk-transfer</link><description>I am setting up a custom hid device bulk transmission, which can normally send data to PC at present, but cannot receive data from PC (no data interrupt was received in the interrupt handler).</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Mar 2019 19:33:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44342/custom-hid-device-bulk-transfer" /><item><title>RE: custom hid device bulk transfer</title><link>https://devzone.nordicsemi.com/thread/174661?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 19:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf83a5d5-22d1-4ac9-b64b-fd9d2b1f9085</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;This case will now continue in this thread:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44442/how-to-transmit-bulk-via-usb-hid"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/44442/how-to-transmit-bulk-via-usb-hid&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hid device bulk transfer</title><link>https://devzone.nordicsemi.com/thread/174090?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 18:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4b49f66-b9b7-4763-969e-e0b12e6380d4</guid><dc:creator>shenwrt</dc:creator><description>&lt;p&gt;I cannot get &amp;quot;app_usbd_hid_hid_user_evt_out_report_ready&amp;quot; interrupt in &amp;quot;hid_bulk_ev_handler&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hid device bulk transfer</title><link>https://devzone.nordicsemi.com/thread/174045?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 14:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:908485f3-c8a3-465e-aa70-c63cfbc6c853</guid><dc:creator>shenwrt</dc:creator><description>&lt;p&gt;&lt;span&gt;Sending data will receive an &amp;quot;APP_USBD_HID_USER_EVT_IN_REPORT_DONE&amp;quot; interrupt, but receiving will not receive an &amp;quot;APP_USBD_HID_USER_EVT_OUT_REPORT_READY&amp;quot; interrupt&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hid device bulk transfer</title><link>https://devzone.nordicsemi.com/thread/174041?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 14:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d377fb3d-c557-44c9-935f-040fa02793b6</guid><dc:creator>shenwrt</dc:creator><description>&lt;p&gt;Sorry, Google translation error.&lt;/p&gt;
&lt;p&gt;I mean, can&amp;#39;t i read it in &amp;quot;case APP_USBD_HID_USER_EVT_OUT_REPORT_READY:&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hid device bulk transfer</title><link>https://devzone.nordicsemi.com/thread/174013?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 13:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3b31e88-28fb-458c-9738-5df52b4750a3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t understand the question, maybe you can find what you need from one of the examples?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/examples_usb"&gt;https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/examples_usb&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can your problem be related to interrupt priority?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hid device bulk transfer</title><link>https://devzone.nordicsemi.com/thread/174005?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 13:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3719b675-1a04-4b92-92cd-7049803bd2aa</guid><dc:creator>shenwrt</dc:creator><description>&lt;p&gt;Can&amp;#39;t it be interrupted?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hid device bulk transfer</title><link>https://devzone.nordicsemi.com/thread/173969?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 12:43:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d47e732c-c737-4377-9ba8-85da27e559bd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I believe that you should be able to receive the data in&amp;nbsp;APP_USBD_HID_USER_EVT_OUT_REPORT_READY by using:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;[…]

uint8_t * recv;

size_t siz;

recv = (uint8_t *)app_usbd_hid_generic_out_report_get(app_usbd_hid_generic_class_get(p_inst), &amp;amp;siz);

data[0] = recv[0];

[…]&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom hid device bulk transfer</title><link>https://devzone.nordicsemi.com/thread/173871?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 07:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e755d9c8-5318-4d85-8255-2111b7a3701a</guid><dc:creator>shenwrt</dc:creator><description>&lt;p&gt;I can get the number of bytes received with the following code.&lt;/p&gt;
&lt;p&gt;uint8_t rec = nrf_usbd_epout_size_get(NRF_DRV_USBD_EPOUT3);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;%d&amp;quot;, rec);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>