<?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>HID Android/Iphone</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29010/hid-android-iphone</link><description>Hi, I have implemented a firmware that allows to bonding and connecting whit android and iOs; I have added the HID service and characteristics, if I press a button I can send a parameter 0xE9(with this parameter I should increment the volume in the android</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jan 2018 08:19:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29010/hid-android-iphone" /><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114752?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2018 08:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41db92e9-09ca-484c-ab80-51d9ae9c0e4d</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;Hi @Hung Bui,&lt;/p&gt;
&lt;p&gt;I want to use volume controls but with SDK12. Is there a sample code available?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114751?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 14:24:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97998207-c1f0-4023-9cc0-ddb1a6e4d53e</guid><dc:creator>letter57</dc:creator><description>&lt;p&gt;Hi Hung Bui:
Thanks for modify the example. I have tested the code. It works. Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114750?ContentTypeID=1</link><pubDate>Wed, 09 Mar 2016 12:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5531ccb8-82ea-42ea-aa8a-24d296788ea3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi letter57,&lt;/p&gt;
&lt;p&gt;Yes, I tested with the example. But I didn&amp;#39;t test to turn it off and on on the first connection ( I disabled bluetooth on the phone instead). And yes, another bug :P , m_bonded_peer_handle should be updated when DM_EVT_SECURITY_SETUP_COMPLETE in device_manager_evt_handler().
I also updated the DISCONNECTED event so that it will not disable the button and advertise after disconnected.
I attached the updated version in the answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114749?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 16:27:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7adc3279-5a0e-4fb5-8077-3168e57e5689</guid><dc:creator>letter57</dc:creator><description>&lt;p&gt;Hi Hung BUi:
I havd modified DM_GATT_CCCD_COUNT to 4 instead of 3. I tried the sample code
『&lt;a href="https://github.com/Rallare/nrf51_ble_app_hids_kbd_consumercontrol"&gt;github.com/.../nrf51_ble_app_hids_kbd_consumercontrol&lt;/a&gt; 』. It does not improve the problem!
Do you try the sample code? I have tried the other sample code. it relly improve the problem. Maybe  can have a look at 『devzone.nordicsemi.com/.../』&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114748?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2016 10:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:638895de-41c2-4b5b-8487-059e0eee58df</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Epasta, @letter57: Thanks for reporting, it was a bug in the device_manager_cnfg.h file. If you modify DM_GATT_CCCD_COUNT to 4 instead of 3. It should work. You may also want to start advertising after disconnection, also enable a button to erase bonding information if it&amp;#39;s full. I will ask the developer to update the github repo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114747?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 14:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5db970c-41a6-405c-a048-e6177319b149</guid><dc:creator>Epasta</dc:creator><description>&lt;p&gt;Hi Hung Bui, i have seen the same problem that LETTER57 have described above
Regards Enrico&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114746?ContentTypeID=1</link><pubDate>Sun, 28 Feb 2016 10:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ac8fdfe-67c0-4c8d-8bdc-a466bf114b0d</guid><dc:creator>letter57</dc:creator><description>&lt;p&gt;Hi Hung Bui:
I am using the example that you shared. I programmed to nRF51 DK, the first time the device is connected to mobile phone.It works, but if i turn off the nRF51 DK and then turn it on.it is connected but it cound&amp;#39;t control any more. I don&amp;#39;t know what&amp;#39;s problem. If you know the problem, could you point the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114745?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2016 08:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3b97a0b-4428-427d-bb2a-cf67be76115e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;No, it&amp;#39;s with SDK 9.0 and S110 v8.0 or S130 v1.0. If you want the earlier version , please click on Commits&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114744?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2016 16:11:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e8a16ed-e3c7-4505-8cf9-86cfc446fa56</guid><dc:creator>letter57</dc:creator><description>&lt;p&gt;Hi Hung Bui:
I downloaded the example and programmed to nRF51 DK, It didn&amp;#39;t Work.
Let me check something...it still use s110 v7.1 and SDK v6.1? I found you have updated project to SDK9...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114742?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2015 09:42:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7838e39-7d77-4d33-b015-f260f1f18a84</guid><dc:creator>Epasta</dc:creator><description>&lt;p&gt;Thanks a lot for the reply! i will post the question on mbed website&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114741?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2015 09:28:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49ed14df-56cc-470f-b2cb-aa12eb054cf1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Epasta:&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not very familiar with the code on mbed. But for the consumer control HID report , what we do is to just notify the button pressed (0xE9 for volume up is already defined in the report) based on the position of the entry in the report.
You can find the define:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;typedef enum
{
    RELEASE_KEY                     = 0x00,
    CONSUMER_CTRL_PLAY              = 0x01,
    CONSUMER_CTRL_ALCCC             = 0x02,
    CONSUMER_CTRL_SCAN_NEXT_TRACK   = 0x04,
    CONSUMER_CTRL_SCAN_PREV_TRACK   = 0x08,
    CONSUMER_CTRL_VOL_DW            = 0x10,
    CONSUMER_CTRL_VOL_UP            = 0x20,
    CONSUMER_CTRL_AC_FORWARD        = 0x40,
    CONSUMER_CTRL_AC_BACK           = 0x80,    
} consumer_control_t;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;So when we want to send &amp;quot;volume up&amp;quot;, we send the notification of the characteristic with value = 0x20 (not 0xE9) (match with command number 6 in the list).&lt;/p&gt;
&lt;p&gt;I would suggest you to also post the question on mbed website.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114740?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2015 15:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d49a512-5f5d-4ba4-aab6-d535a920a69a</guid><dc:creator>Epasta</dc:creator><description>&lt;p&gt;when i click the button i sniffer that Report ID: -1 and Report Type: Reserved [-1]
but in the KeyboardReportMap[] i&amp;#39;ve implemented how you can see written above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114739?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2015 14:42:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3356679a-63ef-4a58-8cf5-c52c2829a957</guid><dc:creator>Epasta</dc:creator><description>&lt;p&gt;The compiler is on the web:
&lt;a href="https://developer.mbed.org/compiler/;"&gt;developer.mbed.org/.../;&lt;/a&gt; the Example code name is BLE_HIDKeyboard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114738?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2015 14:04:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcced933-377b-4bf3-983c-01a0dd1a0ddd</guid><dc:creator>Epasta</dc:creator><description>&lt;p&gt;const uint8_t KeyboardReportMap[] =
{&lt;br /&gt;
0x05, 0x0C,       // Usage Page (Consumer)
0x09, 0x01,       // Usage (Consumer Control)
0xA1, 0x01,       // Collection (Application)...
...0x09, 0xEA,       //     Usage (Volume Down)
0x81, 0x06,       //     Input (Data,Value,Relative,Bit Field)
0x09, 0xE9,       //     Usage (Volume Up)
0x81, 0x06,       //     Input (Data,Value,Relative,Bit Field)
...&lt;/p&gt;
&lt;p&gt;When i press the butto1 on nrf51 i do this: Hid.updateReport(0xE9, 0x00);&lt;/p&gt;
&lt;p&gt;The value is sent at the correct characteristic (2a4a), but the volume doesn&amp;#39;t work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114737?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2015 13:10:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38753096-7a96-4e48-b67a-e8ca31cc52fc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Epasta: Could you point me to the example you based your code on ? Note that to be able to control the volume, you should declare your HID report as &amp;quot;Consume Control&amp;quot; instead of normal Keyboard. Please refer to the code provided in the git hub example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114736?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2015 10:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4836a7e-fca8-419c-8928-a33d0d4aedb5</guid><dc:creator>Epasta</dc:creator><description>&lt;p&gt;I don&amp;#39;t use keil but i use mbed compiler,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID Android/Iphone</title><link>https://devzone.nordicsemi.com/thread/114743?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2015 09:42:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8042df1-45ae-446c-b989-7c5f16dcbc5d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Epasta: I&amp;#39;m not sure 0xE9 is the correct key you should send. But you can have a look at &lt;a href="https://github.com/Rallare/nrf51_ble_app_hids_kbd_consumercontrol"&gt;this example&lt;/a&gt;, pressing button 3 will send a volume up and button 4 volume down.&lt;/p&gt;
&lt;p&gt;It should be used with S110 v7.1 and SDK v6.1.&lt;/p&gt;
&lt;p&gt;Update 09Mar2016, there are some bug with the github example, we will update the repo. For now you can use this project (SDK9.0):
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf51_5F00_ble_5F00_app_5F00_hids_5F00_kbd_5F00_consumercontrol_2D00_master.zip"&gt;nrf51_ble_app_hids_kbd_consumercontrol-master.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>