<?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 + Keyboard/Consumer Control + Android7.0, both keyboard and consumer features failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37998/nrf51822-keyboard-consumer-control-android7-0-both-keyboard-and-consumer-features-failed</link><description>SDK: nRF5_SDK_12.2.0_f012efa SD: s130_nrf51_2.0.1_softdevice.hex nRF DK: nrf51822 board IDE: uVision V5.22.0.0 Code template: .\examples\ble_peripheral\ble_app_hids_keyboard Base on the above, I did two tests. 1. Only test Consumer device feature for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 29 Aug 2021 03:31:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37998/nrf51822-keyboard-consumer-control-android7-0-both-keyboard-and-consumer-features-failed" /><item><title>RE: nrf51822 + Keyboard/Consumer Control + Android7.0, both keyboard and consumer features failed</title><link>https://devzone.nordicsemi.com/thread/327069?ContentTypeID=1</link><pubDate>Sun, 29 Aug 2021 03:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:753bdad9-3cdd-4dfa-ac12-85e65c6095c4</guid><dc:creator>IJ ELECTRON</dc:creator><description>&lt;p&gt;Thank you very much. Your codes is working well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 + Keyboard/Consumer Control + Android7.0, both keyboard and consumer features failed</title><link>https://devzone.nordicsemi.com/thread/146601?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 02:15:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34fa8098-69f6-46de-8e93-cd460dfef961</guid><dc:creator>huangqiang2007</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;H&amp;aring;kon&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. yes, after&amp;nbsp;&lt;span&gt;add a keyboard descriptor afterwards; none of them work.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2. You are right. The root cause is that I&amp;nbsp;indeed ignored set &amp;#39;.is_kbd&amp;#39; to true. After corrected it, both&amp;nbsp;Consumer and Keyboard work as expected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Maybe someone would meet same or analogous problem on nRF51822 platform,&amp;nbsp; so I attach my code for reference.&lt;/p&gt;
&lt;p&gt;Note:&amp;nbsp; 4 key(s1, s2, s3, s4) events&amp;#39; define in reference code are as follows:&lt;/p&gt;
&lt;p&gt;s1:&amp;nbsp; input 14 chars (` 1 2 3 4 5 6 7 8 9 0 - = Backspace)&lt;/p&gt;
&lt;p&gt;s2: music play/pause&lt;/p&gt;
&lt;p&gt;s3: music volum down&lt;/p&gt;
&lt;p&gt;s4: music volum up&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/consumer_5F00_and_5F00_keyboard_5F00_nrf51822.c"&gt;devzone.nordicsemi.com/.../consumer_5F00_and_5F00_keyboard_5F00_nrf51822.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;my test&amp;nbsp;&lt;/span&gt;environment as below:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SDK: nRF5_SDK_12.2.0_f012efa&lt;/span&gt;&lt;br /&gt;&lt;span&gt;SD: s130_nrf51_2.0.1_softdevice.hex&lt;/span&gt;&lt;br /&gt;&lt;span&gt;nRF DK: nrf51822 board&lt;/span&gt;&lt;br /&gt;&lt;span&gt;IDE: uVision V5.22.0.0&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Code template: .\examples\ble_peripheral\ble_app_hids_keyboard&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Peer side: the phone with Android 7.1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can replace main.c in folder ble_app_hids_keyboard with attached file, and begin your own verification.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot,&lt;/p&gt;
&lt;p&gt;QiangH&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 + Keyboard/Consumer Control + Android7.0, both keyboard and consumer features failed</title><link>https://devzone.nordicsemi.com/thread/146544?ContentTypeID=1</link><pubDate>Thu, 30 Aug 2018 14:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99febd10-f298-4594-bb3f-74113cfc38cc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is the problem in your case that only the multi-media descriptor works, and if you add a keyboard descriptor afterwards; none of them work?&lt;/p&gt;
&lt;p&gt;Note that the &amp;quot;.is_kbd&amp;quot; should be set when adding a keyboard descriptor. If it still fails, could you try this example (for SDK 11) and see if this works as expected?&amp;nbsp;&lt;a href="https://github.com/Rallare/nrf51_ble_app_hids_kbd_consumercontrol/blob/SDK11/main.c"&gt;https://github.com/Rallare/nrf51_ble_app_hids_kbd_consumercontrol/blob/SDK11/main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>