<?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>[HOGP] Android auto-plays music when hogp devices disconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10875/hogp-android-auto-plays-music-when-hogp-devices-disconnect</link><description>Hi all,
I can control volume up/down, music play/pause with the ble_hids module. 
 static uint8_t report_map_data[] =
{
0x05, 0x0c, // Usage Page (consumer device)
0x09, 0x01, // Usage (consumer control)
0xA1, 0x01, // Collection (application) </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Dec 2015 14:40:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10875/hogp-android-auto-plays-music-when-hogp-devices-disconnect" /><item><title>RE: [HOGP] Android auto-plays music when hogp devices disconnect</title><link>https://devzone.nordicsemi.com/thread/40688?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 14:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6335c7ac-9f20-450a-9a23-0b2c08c3d7b2</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I checked around internally, and we have not heard of this issue before (we have heard of auto-play on connect, but not on disconnect).
If you provide a sniffer log when connecting to one of the phones that show the issue, I can see if this is an issue on the nRF-side or the android side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [HOGP] Android auto-plays music when hogp devices disconnect</title><link>https://devzone.nordicsemi.com/thread/40683?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 11:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8550795-b65f-4e6e-8e41-253535958e59</guid><dc:creator>knight</dc:creator><description>&lt;p&gt;We test the descriptor with the following android device:
[device]-----------[android version]--------[test result]&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;xiaomi 4             4.4.4                           auto play on disconnection&lt;/li&gt;
&lt;li&gt;huawei mate 7    4.4.4                           auto play on disconnection&lt;/li&gt;
&lt;li&gt;LG nexus5           6                                 play/pause usage is of no use&lt;/li&gt;
&lt;li&gt;samsung s4          5.0.1                          ok&lt;/li&gt;
&lt;li&gt;iphone 4s/5/6/6s                                   ok&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;We confirm that after removing &amp;quot;play&amp;quot; usage, everything goes fine.&lt;/p&gt;
&lt;p&gt;PS. The &amp;quot;auto play on disconn&amp;quot; happens on the following situations.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Turn off bluetooth switch on android.&lt;/li&gt;
&lt;li&gt;Remove power of ble peripheral.&lt;/li&gt;
&lt;li&gt;Move peripheral out of ble connection range.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [HOGP] Android auto-plays music when hogp devices disconnect</title><link>https://devzone.nordicsemi.com/thread/40682?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 10:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9eb2b6f-76e0-4e69-9628-f2b99324348e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Q1: Do you see this on all android phones? Could you add more details on the phone that you&amp;#39;re testing with to your initial reply?&lt;/p&gt;
&lt;p&gt;Q2: Could you provide a sniffer log of when the issue occurs?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [HOGP] Android auto-plays music when hogp devices disconnect</title><link>https://devzone.nordicsemi.com/thread/40685?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 09:29:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1b5e3ed-8540-47bd-95c3-44155d2acf70</guid><dc:creator>knight</dc:creator><description>&lt;p&gt;We try the &amp;quot;// Report ID 2: Advanced buttons&amp;quot; git code, stay the same problem.
&amp;quot;play&amp;quot; and &amp;quot;pause&amp;quot; cause the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [HOGP] Android auto-plays music when hogp devices disconnect</title><link>https://devzone.nordicsemi.com/thread/40687?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 08:54:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62c42ae2-7b96-4311-937c-8cf1978a7362</guid><dc:creator>knight</dc:creator><description>&lt;p&gt;I can confirm that the problem is associated with &amp;quot;play&amp;quot; usage, after removing &amp;quot;play&amp;quot;, android works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [HOGP] Android auto-plays music when hogp devices disconnect</title><link>https://devzone.nordicsemi.com/thread/40686?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 07:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97f87cc0-1c39-404f-995a-1c10a9523535</guid><dc:creator>knight</dc:creator><description>&lt;p&gt;Hi Håkon,
We must send 0x00 after every key event immediately, otherwise the android or IOS side would act abnormal behavior. For instance, the phone would be in the state of increasing volume infinitely after we send a volume key.
IOS behaves normally in our case, only android goes wrong.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: [HOGP] Android auto-plays music when hogp devices disconnect</title><link>https://devzone.nordicsemi.com/thread/40684?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2015 10:28:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32db3fd8-2790-4eed-8eff-fc30911e7bbe</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;When providing the descriptor with the &amp;quot;INPUT&amp;quot; bits that you have set (DATA, ARRAY, ABSOLUTE), are you also clearing the signal after sending a command?&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s say that you send &amp;quot;PLAY&amp;quot;, which boils down to 0x01 in this case, you will also have to send a release-key (0x00) afterwards.&lt;/p&gt;
&lt;p&gt;By default on Android, command &amp;quot;PLAY&amp;quot; will start the music player.&lt;/p&gt;
&lt;p&gt;Q1: Could you provide a sniffer trace showing the issue? You can capture this using our &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer"&gt;ble-sniffer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Q2: Do you see the same issue if you try disconnecting using this example?
&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;&lt;/p&gt;
&lt;p&gt;Cheers,
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>