<?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>nRF51422 HID example modification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28389/nrf51422-hid-example-modification</link><description>Hello 
 I&amp;#39;m using nRF51422 with S310 softdevice. I&amp;#39;ve been testing HID example (keyboard) for a while.
What I&amp;#39;m trying to do is to send as much as possible bytes at once in a single report.
I do like this: 
 uint8_t ucData[] = &amp;quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Dec 2017 04:11:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28389/nrf51422-hid-example-modification" /><item><title>RE: nRF51422 HID example modification</title><link>https://devzone.nordicsemi.com/thread/111964?ContentTypeID=1</link><pubDate>Wed, 27 Dec 2017 04:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4904ca9d-15e1-456a-8cad-f591c8b8ec5a</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Hi，Nikita：
I&amp;#39;m using nRF51422 with S110 softdevice.I use your Report Map(little modify,I just defined INPUT_REPORT_MAX_LEN = 8.OUTPUT_REPORT_MAX_LEN = 1)，and send data the same as you post。then all work ok。but In PC, The BusHound can&amp;#39;t received any data.Is other place need to modify? Sorry for disturb。&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51422 HID example modification</title><link>https://devzone.nordicsemi.com/thread/111965?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2014 07:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7aab89e-9c45-468f-8252-9fb9f6fc59ff</guid><dc:creator>milko</dc:creator><description>&lt;p&gt;Hi Nikita,&lt;/p&gt;
&lt;p&gt;Thank you very much, it works. Sorry for my late reply.&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: nRF51422 HID example modification</title><link>https://devzone.nordicsemi.com/thread/111963?ContentTypeID=1</link><pubDate>Wed, 17 Sep 2014 19:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40cfda71-d658-4cdb-aa06-d84a8bde3df7</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;You can use custom HID report map like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define INPUT_REPORT_MAX_LEN             20                                             /**&amp;lt; Maximum length of the Input Report characteristic. */
#define OUTPUT_REPORT_MAX_LEN            22                                             /**&amp;lt; Maximum length of Output Report. */

static uint8_t report_map_data[] =
{
    0x06, 0x00, 0xFF,       // Usage Page = 0xFF00 (Vendor Defined Page 1)
    0x09, 0x01,             // Usage (Vendor Usage 1)
    0xA1, 0x01,             // Collection (Application)
    0x19, 0x01,             //      Usage Minimum 
    0x29, INPUT_REPORT_MAX_LEN,             //      Usage Maximum 
    0x15, 0x00,             //      Logical Minimum (data bytes in the report may have minimum value = 0x00)
    0x26, 0xFF, 0x00,       //      Logical Maximum (data bytes in the report may have maximum value = 0x00FF = unsigned 255)
    0x75, 0x08,             //      Report Size: 8-bit field size
    0x95, INPUT_REPORT_MAX_LEN,             //      Report Count: Make sixty-four 8-bit fields (the next time the parser hits an &amp;quot;Input&amp;quot;, &amp;quot;Output&amp;quot;, or &amp;quot;Feature&amp;quot; item)
    0x81, 0x00,             //      Input (Data, Array, Abs): Instantiates input packet fields based on the above report size, count, logical min/max, and usage.
    0x19, 0x01,             //      Usage Minimum 
    0x29, OUTPUT_REPORT_MAX_LEN,             //      Usage Maximum
    0x91, 0x00,             //      Output (Data, Array, Abs): Instantiates output packet fields.  Uses same report size and count as &amp;quot;Input&amp;quot; fields, since nothing new/different was specified to the parser since the &amp;quot;Input&amp;quot; item.
    0xC0                    // End Collection
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And send your data like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = ble_hids_inp_rep_send(&amp;amp;m_hids, 
                                 INPUT_REPORT_KEYS_INDEX,
                                 data_len,
                                 data);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>