<?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>nrf51822 send media key to android device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28413/nrf51822-send-media-key-to-android-device</link><description>hey
I have a nRF51822 eval board and I want to use it as hid keyboard to send some media key
such as vol+/- play/pause, etc. I have used the example code ble_hid_keyboard and it works
well to send characters but I don&amp;#39;t know how to send these media</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Dec 2017 04:39:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28413/nrf51822-send-media-key-to-android-device" /><item><title>RE: nrf51822 send media key to android device</title><link>https://devzone.nordicsemi.com/thread/112138?ContentTypeID=1</link><pubDate>Wed, 20 Dec 2017 04:39:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:553d5f0b-ca66-487c-b846-63bbc95c0783</guid><dc:creator>josh</dc:creator><description>&lt;p&gt;Has anyone got the solution Kristin linked to work?&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using SDK v12.3, started with the HID example and that works, I can see the keystrokes in android. I updated hids_init() to match the github example code and replaced keys_send() calls with consumer_control_send, but so far I&amp;#39;m not having any luck getting the device to respond.&lt;/p&gt;
&lt;p&gt;Edit: I&amp;#39;ve got it working now, it was something in the report map. Since all I want to do is control media, I updated to the report map in the main.c file that is attached &lt;a href="https://devzone.nordicsemi.com/question/169476/hid-consumer-control-settings/"&gt;to this thread&lt;/a&gt;
and it&amp;#39;s working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 send media key to android device</title><link>https://devzone.nordicsemi.com/thread/112137?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2016 13:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc2ef54-76f6-4613-bc4b-ce4bc18bb1b3</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated the answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 send media key to android device</title><link>https://devzone.nordicsemi.com/thread/112136?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2016 12:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95a6db74-eec5-4c64-b17a-85fbe3b80dcd</guid><dc:creator>h.namazian</dc:creator><description>&lt;p&gt;I have cheked it before but it dosn&amp;#39;t work in android devices&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 send media key to android device</title><link>https://devzone.nordicsemi.com/thread/112135?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2016 12:31:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a48f9eb-d904-4dbb-baff-e9a7e296a792</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;From what I can see in USB HID Usage Tables on p. 56, vol +/- and play/pause has the following commands:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Volume up: 0x80&lt;/li&gt;
&lt;li&gt;Volume down: 0x81&lt;/li&gt;
&lt;li&gt;Play/pause: seems to be described in chapter 3.4.4 &amp;quot;Alternate Types&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Update 26.10.2016:
&lt;a href="https://github.com/Rallare/nrf51_ble_app_hids_kbd_consumercontrol"&gt;This&lt;/a&gt; example on github shows how to transfer vol+/-, play/pause. The example is for an older SDK, but the HID part/HID coding will be the same with a newer SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>