<?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>sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2556/sending-media-keys-over-the-keyboard-hid</link><description>Hi, 
 sorry if this is a stupid question, but i&amp;#39;m fairly new to BLE (nRF8001), and even newer at report descriptors. 
 I&amp;#39;m trying to send some media keys, just volume up/down to start with. 
 i&amp;#39;ve edited the HID_keyboard template file in the arduino</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jun 2014 11:33:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2556/sending-media-keys-over-the-keyboard-hid" /><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10174?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2014 11:33:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33ab1a4a-c594-44bb-9d6f-674bb09997bf</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;Hi Damian,
Glad to know my project did some help.
Good luck!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10173?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2014 12:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c072326-50a4-4964-8828-31f595d8a760</guid><dc:creator>Damian</dc:creator><description>&lt;p&gt;hey jay,
you&amp;#39;re a champion! Thanks so much, that worked nicely.
i was able to modify your code to suit my own hardware.
My next step is to try to incorporate the other media keys. But you&amp;#39;ve given me a huge help with your working example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10172?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2014 12:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:017fb7f0-b9fc-45f0-b545-260405c41d5a</guid><dc:creator>Damian</dc:creator><description>&lt;p&gt;sorry Jay, been very busy, and haven&amp;#39;t had a chance as yet to test it out.&lt;/p&gt;
&lt;p&gt;hopefully in the next couple of days. i will let you know
thanks for your interest,
Damian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10171?ContentTypeID=1</link><pubDate>Mon, 02 Jun 2014 09:20:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0328c120-fc66-4b08-91e9-cc3a0bffcfdf</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;Hi,
Just stop by to ask if my project works in your environment.
As for the xml file, I would update it as soon as possible.
Jay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10170?ContentTypeID=1</link><pubDate>Fri, 30 May 2014 02:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ab29630-c35b-4a7e-be2a-07220783c81e</guid><dc:creator>Damian</dc:creator><description>&lt;p&gt;Hi Jay,&lt;/p&gt;
&lt;p&gt;that&amp;#39;s awesome.&lt;/p&gt;
&lt;p&gt;thanks so much for posting that.
Would you also be willing to share your nRFgo studio file and report map.&lt;/p&gt;
&lt;p&gt;i&amp;#39;m just interested in why this isn&amp;#39;t working for my code.&lt;/p&gt;
&lt;p&gt;kind regards,
Damian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10168?ContentTypeID=1</link><pubDate>Fri, 30 May 2014 02:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb703a08-5772-4382-bdf9-8c3705c4f7c9</guid><dc:creator>Damian</dc:creator><description>&lt;p&gt;hey tim,&lt;/p&gt;
&lt;p&gt;thanks for the info - good to know&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10169?ContentTypeID=1</link><pubDate>Mon, 26 May 2014 08:14:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8497f327-f6c7-4af4-aa8a-56cd61427f46</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;Hello Damian,&lt;/p&gt;
&lt;p&gt;This is Jay from Monolith Studio.
I&amp;#39;ve created an open source project using Arduino+BLE Shield, which implements sending volume up message to IPhone.
Please visit our github for more detail.
&lt;a href="https://github.com/MonolithStudio/BLEShield_shutter"&gt;github.com/.../BLEShield_shutter&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10167?ContentTypeID=1</link><pubDate>Wed, 21 May 2014 16:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b4896fc-2fef-4a5a-bcf6-0f8966c8ac73</guid><dc:creator>Tim</dc:creator><description>&lt;p&gt;If you are making a BLE music remote control, I have already made one. I started off with the HID keyboard approach, but there is a fatal flaw, at least on Android - if you are connected to a bluetooth keyboard Android will never show the software keyboard.&lt;/p&gt;
&lt;p&gt;Therefore I switched to a custom BLE service and a companion app on the phone. Not as elegant, but it works. I can&amp;#39;t remember if I ever got the media keys to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10166?ContentTypeID=1</link><pubDate>Wed, 21 May 2014 15:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23d7495c-cf2d-4d86-8127-8bded7bbabca</guid><dc:creator>Damian</dc:creator><description>&lt;p&gt;Hi,
thanks for your response.&lt;/p&gt;
&lt;p&gt;Ok i wasn&amp;#39;t changing the Report reference characteristic.&lt;/p&gt;
&lt;p&gt;what should these values be set to?&lt;/p&gt;
&lt;p&gt;if i look at the HID_mouse example, the values appear to be 0101 and 0201 for ID1 and ID2.&lt;/p&gt;
&lt;p&gt;the original keyboard value was 0002&lt;/p&gt;
&lt;p&gt;thanks,
Damian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10164?ContentTypeID=1</link><pubDate>Wed, 21 May 2014 15:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b255c578-b117-42a3-94de-c38ef0211c26</guid><dc:creator>Damian</dc:creator><description>&lt;p&gt;Hi Jay,
thanks for your response.&lt;/p&gt;
&lt;p&gt;this was a copy and paste from the HID_mouse example, so i just assumed that the report size and count was correct, but you could be right. Looking at the size it appears to be set to 1 bit, but i require sending 1 byte.&lt;/p&gt;
&lt;p&gt;Is this how you interpret it?
i think i&amp;#39;ve got a lot more reading to do.&lt;/p&gt;
&lt;p&gt;thanks,
Damian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10165?ContentTypeID=1</link><pubDate>Wed, 21 May 2014 10:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:127256ae-087d-434a-ba2c-ecf8bcabda1c</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;I would suggest that you change the keyboard input report to Report ID of 1 since you are adding a new input  report. The media keys should then be made Report ID 2 (input report).&lt;/p&gt;
&lt;p&gt;You may also want to change the output report to have a Report ID of 1 (output report).&lt;/p&gt;
&lt;p&gt;You need to update the USB descriptor and the Report Reference characteristic descriptor with the above details.&lt;/p&gt;
&lt;p&gt;Let me know if any of the suggestions help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10163?ContentTypeID=1</link><pubDate>Wed, 21 May 2014 05:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71d83663-c779-4a3e-851e-1e0964f1f1ca</guid><dc:creator>Jay</dc:creator><description>&lt;p&gt;Hi Damian,&lt;/p&gt;
&lt;p&gt;I took a look at your HID report map.
In the report ID 2, where you are trying to add advanced keys, I didn&amp;#39;t see the report count and size set to your control usage(e.g. VolumeUp).&lt;/p&gt;
&lt;p&gt;For your question&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;ul&gt;
&lt;li&gt;how many bytes do i need to send (i notice the max is set to 3)
For this question, I would suggest you read some related material about HID device.
Or a quick and alternative way is taking careful look at the report map in report ID 1 about the report size and count.
In Nordic&amp;#39;s example for keyboard, you would have to send a 8-byte array.
Because there are eight counts of size 8 reports.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;And from my point of view, both of your questions are actual the same one.
Hope it helps.&lt;/p&gt;
&lt;p&gt;Jay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10162?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 14:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52382930-5d37-4c50-b65b-e1b43ba27725</guid><dc:creator>Damian</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for your quick response.&lt;/p&gt;
&lt;p&gt;Yes i have seen that video, and i believe i have implemented the report map correctly. i&amp;#39;ve now attached the nRFgo studio file.&lt;/p&gt;
&lt;p&gt;The keyboard part of it is working correctly, only the added media keys that are not working.&lt;/p&gt;
&lt;p&gt;my query is more around the transmission of the data once paired.
If you look at my function to send the data, i&amp;#39;m not sure if i&amp;#39;m sending the correct number of bytes, and if the data should be in the first byte, or second byte, etc.&lt;/p&gt;
&lt;p&gt;Or i could be completely wrong, like i said, i&amp;#39;m new at this.&lt;/p&gt;
&lt;p&gt;thanks again,
Damian&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hid_5F00_keyboard_5F00_with_5F00_media_5F00_keys.xml"&gt;hid_keyboard_with_media_keys.xml&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sending media keys over the keyboard HID</title><link>https://devzone.nordicsemi.com/thread/10161?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 13:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2176ba19-cde2-416c-8255-272aafc0e2d7</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Did you take a look at the word document and the video posted in the
&lt;a href="https://github.com/NordicSemiconductor/ble-sdk-arduino/tree/master/documentation/libraries/BLE/examples/ble_HID_template"&gt;github.com/.../ble_HID_template&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>