<?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>nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57812/nrf52840-dk-usbhid-generic-received-message-divided-to-multi-packet</link><description>Hi, 
 I&amp;#39;m using nrf52840 DK to connect and receive usbhid message with the message size &amp;gt; 64 bytes (examples 343 bytes), so the message is divided to multi packages. I modified usb_hid_generic example, but I just received 2 packages. That is some change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Mar 2020 12:27:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57812/nrf52840-dk-usbhid-generic-received-message-divided-to-multi-packet" /><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/238515?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2020 12:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d9abd06-95fb-4dc1-8c36-5e61d4274275</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;They tried to reproduce the issue, but they were not able to get your web service to work. Instead they used the modified code to run the test:&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-d7dd025fd14f4c9787e397db5d443e45/image_2D00_2020_2D00_03_2D00_05_2D00_12_2D00_12_2D00_27_2D00_776.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The code feeds 512 Bytes into the USB stack EP1 through&amp;nbsp;app_usbd_hid_generic_in_report_set(xxx, 512) in function send_pkt().&lt;/p&gt;
&lt;p&gt;What they see on the receiving side is that the buffer gets subdivided into 8 packets and they all get transferred.&lt;/p&gt;
&lt;p&gt;They end up with the following&amp;nbsp;conclusion:&lt;/p&gt;
&lt;p&gt;They cannot reproduce the issue with their setup, but in general USB stack seems to be capable of transferring big reports.&lt;/p&gt;
&lt;p&gt;They need some input from you to investigate this further:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;can you isolate the issue so that the Chrome is not needed?;&lt;/li&gt;
&lt;li&gt;can you check and let us know how many IN frames you provide between OUT frames to convey the report (you need at least 6 IN packets to convey the message)?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/237629?ContentTypeID=1</link><pubDate>Tue, 03 Mar 2020 08:41:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c83a99f-8054-4c1f-bb42-d53e393a80c7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Albert&lt;/p&gt;
&lt;p&gt;Thanks for the added information.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just a quick update to let you know you&amp;#39;re not forgotten. The developers will try to reproduce the issue this week, so I hope to have some news for you soon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/235882?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 09:03:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe975874-980b-43d7-9eb4-4233a872d240</guid><dc:creator>AlbertNicolai</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I modify main.c in example usb_hid_generic, test it with&amp;nbsp;&lt;span&gt;macOS&amp;nbsp;10.14.6, Google Chrome&amp;nbsp;Version 80.0.3987.116 (Official Build) (64-bit). Please test with link&amp;nbsp;&lt;a href="https://www.passwordless.dev/passwordless#heroFoot"&gt;https://www.passwordless.dev/passwordless#heroFoot&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Nicolai&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/235872?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 08:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56a26a1d-0160-44c4-88ee-e93f6602dbb8</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Nicolai&lt;/p&gt;
&lt;p&gt;It would be interesting to know how you are interfacing to the HID device from the host side?&lt;/p&gt;
&lt;p&gt;Are you writing some custom software for Windows/Linux to access the HID device, or using some off the shelf test software?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/235812?ContentTypeID=1</link><pubDate>Sat, 22 Feb 2020 05:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c5a3738-2f44-4841-a6ff-6ec8ace55321</guid><dc:creator>AlbertNicolai</dc:creator><description>&lt;p&gt;Thank you, if you need anything to investigate this, I will provide for you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Nicolai&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/235730?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 13:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8ecb5ed-4325-4c4f-8a98-536f5a814265</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I will need some help from the developers to investigate this. I can&amp;#39;t promise a schedule yet unfortunately, but I will try to provide an update next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbj&amp;oslash;rn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/235299?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 02:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:742a5919-1787-4671-81ed-c9b917cc3c9d</guid><dc:creator>AlbertNicolai</dc:creator><description>&lt;p&gt;Hi, I tried to increase the REPORT_COUNT field but after that I can&amp;#39;t received anything while if it is 64, I can receive packet &amp;lt;= 64 bytes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/235237?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 14:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35052ba3-7f3b-4fd2-8d8a-4e42367175a6</guid><dc:creator>AlbertNicolai</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I checked function endpoint_out_event_handler in app_usbd_hid.c. I insert a delay 1ms at&amp;nbsp;the begin of this function and debug on nrf528240 dk. I saw that all packets is sent but sometimes p_event-&amp;gt;drv_evt.data.eptransfer.status =&amp;nbsp;NRF_USBD_EP_WAITING so&amp;nbsp;hid_user_ev_handler (in main.c) wasn&amp;#39;t called with event =&amp;nbsp;APP_USBD_HID_USER_EVT_OUT_REPORT_READY.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/235225?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 14:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e7790bc-34c3-41b0-9054-905982b41b4c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sending 343 bytes won&amp;#39;t work if your descriptor is only set up for 64 byte reports.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to increase the REPORT_COUNT field in the HID descriptor to allow for longer packets?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/234770?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 03:54:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1573b8de-4fc0-43e6-8ee2-e008e9c2f9dc</guid><dc:creator>AlbertNicolai</dc:creator><description>&lt;p&gt;Hi, it is main.c for test, please replace main.c in examples/peripheral/usbd_hid_generic and test with&amp;nbsp;&lt;a href="https://www.passwordless.dev/passwordless#heroFoot"&gt;https://www.passwordless.dev/passwordless#heroFoot&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screen-Shot-2020_2D00_02_2D00_18-at-10.52.55-AM.png" /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8750.main.c"&gt;devzone.nordicsemi.com/.../8750.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/234723?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 15:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e5b80a-bb05-49c1-8ace-0543157c49e9</guid><dc:creator>AlbertNicolai</dc:creator><description>[quote userid="2116" url="~/f/nordic-q-a/57812/nrf52840-dk-usbhid-generic-received-message-divided-to-multi-packet/234696"]report[/quote]
&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I want to setup a full-speed usb device with two 64-bits endpoints (1 IN and 1 OUT).&lt;/p&gt;
&lt;p&gt;I just changed report descriptor (&lt;span&gt;USBD_GENERIC_REPORT_DESCRIPTOR)&lt;/span&gt;&amp;nbsp;in examples/peripheral/usbd_hid_generic.&lt;/p&gt;
&lt;p&gt;I want to received a message (&amp;gt;300 bytes) but I just received 2 packets:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screen-Shot-2020_2D00_02_2D00_17-at-10.29.43-PM.png" /&gt;&lt;/p&gt;
&lt;p&gt;In Packet 1: Len = 0x0157 = 343 bytes is length of message, Data has length = 64 - 4 (CID bytes) -1 (CMD) - 2 (Len) = 57 bytes&lt;/p&gt;
&lt;p&gt;In Packet 2: index is index of continue packet, Data has length = 64 - 4 - 1 = 59 bytes&lt;/p&gt;
&lt;p&gt;Packet 3 has 59 bytes data with index = 01, but I don&amp;#39;t receive it and following packets&lt;/p&gt;
&lt;p&gt;And one more infomation, I tested on macOS&amp;nbsp;10.14.6&lt;/p&gt;
&lt;p&gt;Please help me, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52840 DK usbhid generic received message divided to multi packet</title><link>https://devzone.nordicsemi.com/thread/234696?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 14:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e2bbdca-9cda-4eca-984b-019add856736</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am a bit confused by your report descriptor. It seems to set up 64 bytes of IN data and 64 bytes of OUT data, not more than that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using a different descriptor when trying to send more than 64 bytes in one go?&lt;/p&gt;
&lt;p&gt;When you receive two packets, how much data is there in each packet?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>