<?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>nrf24lu1p USB hid ReportDescriptor size greater than 255</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29820/nrf24lu1p-usb-hid-reportdescriptor-size-greater-than-255</link><description>I want write nrf24lu1p usb hid mouse, but ReportDescriptor size greater than 255bytes Cause cannot enumerate.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jan 2018 10:08:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29820/nrf24lu1p-usb-hid-reportdescriptor-size-greater-than-255" /><item><title>RE: nrf24lu1p USB hid ReportDescriptor size greater than 255</title><link>https://devzone.nordicsemi.com/thread/118453?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 10:08:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b40d997-16c3-48ab-b55f-4151052ef61d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Then you have to find some way to fit your descriptor in 255 bytes or less.&lt;/p&gt;
&lt;p&gt;Depending on the data you are trying to send there might be ways to optimize the descriptor.&lt;/p&gt;
&lt;p&gt;What kind of device are you making?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf24lu1p USB hid ReportDescriptor size greater than 255</title><link>https://devzone.nordicsemi.com/thread/118454?ContentTypeID=1</link><pubDate>Fri, 05 Jan 2018 02:02:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8acff083-2922-43f8-9068-a59e253917eb</guid><dc:creator>jinsheng20</dc:creator><description>&lt;p&gt;Thank you for your answer.That&amp;#39;s what I did.
if I don&amp;#39;t change  a limitation in the nRF24LU1+ USB stack. What am I supposed to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf24lu1p USB hid ReportDescriptor size greater than 255</title><link>https://devzone.nordicsemi.com/thread/118452?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 08:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:068cb4ba-25de-4ecb-81d0-510724ea63a4</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You might be able to change the hid_report_desc_size field to a uint16_t and make it work, but you will have to make additional changes to all the code that uses this field.&lt;/p&gt;
&lt;p&gt;With USB you can also some times run into endianness issues, where 16-bit values (or larger) need to be swapped. The reason for this is that the Keil C51 compiler uses big endian values, while USB uses little endian values.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf24lu1p USB hid ReportDescriptor size greater than 255</title><link>https://devzone.nordicsemi.com/thread/118451?ContentTypeID=1</link><pubDate>Thu, 04 Jan 2018 05:09:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5acc79b5-8d27-4e04-861d-778e87927aa4</guid><dc:creator>jinsheng20</dc:creator><description>&lt;p&gt;Thank you for your answer. I want to send more than 255 bytes of data, what do you suggest I do to give an example?
if I   change  uint8_t variable and so on to uint16_t ,  Is there going to be a problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf24lu1p USB hid ReportDescriptor size greater than 255</title><link>https://devzone.nordicsemi.com/thread/118450?ContentTypeID=1</link><pubDate>Wed, 03 Jan 2018 15:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6038981-33b3-4fb9-bd1e-85f7198b62e9</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This is a limitation in the nRF24LU1+ USB stack.&lt;/p&gt;
&lt;p&gt;If you take a look at the hal_usb_hid_t struct you can see that the report descriptor size is stored in a uint8_t variable, which means the maximum size is 255.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef struct {
hal_usb_hid_desc_t* hid_desc;
uint8_t* hid_report_desc;
uint8_t hid_report_desc_size;
} hal_usb_hid_t; 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn Øvrebekk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>