<?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 keyboard volume up down without consumer control?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97717/hid-keyboard-volume-up-down-without-consumer-control</link><description>Hi guys. May I ask some questions for ble_app_hids_keyboard_pca10056_s113 project from 17.1.0 nRF5 SDK: 
 From this thread, 
 and a nRF Github example, 
 https://github.com/Rallare/nrf51_ble_app_hids_kbd_consumercontrol/blob/master/main.c 
 
 It sounded</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Mar 2023 10:15:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97717/hid-keyboard-volume-up-down-without-consumer-control" /><item><title>RE: HID keyboard volume up down without consumer control?</title><link>https://devzone.nordicsemi.com/thread/415940?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 10:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75493f94-6d11-4a08-ada0-36b79612ec26</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;
[quote user="MatthewKYEO"]&lt;p&gt;Hello Håkon. Here are my test results, only Android took volume up down 80 81:&lt;/p&gt;
&lt;p&gt;Android / Samsung Galaxy S10 v12: the volume key 80 81 works&lt;/p&gt;
&lt;p&gt;Macbook / macOS 13.2.1: volume key doesn&amp;#39;t work&lt;/p&gt;
&lt;p&gt;iPad air 5th Gen/ iPadOS v16.1.1: volume key doesn&amp;#39;t work&lt;/p&gt;
&lt;p&gt;Windows 10 laptop with Intel Bluetooth driver (LMP 12 / Bluetooth v5.3): volume key doesn&amp;#39;t work&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it only Android and Ubuntu that can take keyboard volume up down 0x80 81?&lt;/p&gt;
&lt;p&gt;I was creating this keyboard example for Windows and MacBook. In this case, is Consumer Control the only way to control volumes?&lt;/p&gt;[/quote]
&lt;p&gt;It highly depends on what the OS on the other side accepts.&lt;/p&gt;
&lt;p&gt;If you have a solution that works on your target platforms, I would recommend that you keep using that. You can ask on windows/mac specific forums on how to handle those specific commands when connecting over HID over GATT.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard volume up down without consumer control?</title><link>https://devzone.nordicsemi.com/thread/415796?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 16:27:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fb254ad-5e5d-4b64-a494-4fb51eed5b95</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Hello H&amp;aring;kon. Here are my test results, only Android took volume up down 80 81:&lt;/p&gt;
&lt;p&gt;Android / Samsung Galaxy S10 v12: the volume key 80 81 works&lt;/p&gt;
&lt;p&gt;Macbook / macOS 13.2.1: volume key doesn&amp;#39;t work&lt;/p&gt;
&lt;p&gt;iPad air 5th Gen/ iPadOS v16.1.1: volume key doesn&amp;#39;t work&lt;/p&gt;
&lt;p&gt;Windows 10 laptop with Intel Bluetooth driver (LMP 12 / Bluetooth v5.3): volume key doesn&amp;#39;t work&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is it only Android and Ubuntu that can take keyboard volume up down 0x80 81?&lt;/p&gt;
&lt;p&gt;I was creating this keyboard example for Windows and MacBook. In this case, is Consumer Control the only way to control volumes?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard volume up down without consumer control?</title><link>https://devzone.nordicsemi.com/thread/415649?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 10:15:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75b0ea75-4763-49bb-b76b-126b9568446a</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;I took the stock ble_app_hids_keyboard sample, adjusted the descriptor per the linked case.&lt;/p&gt;
&lt;p&gt;I changed the array &amp;quot;m_sample_key_press_scan_str&amp;quot; to send &amp;quot;test&amp;quot; + volume_up (0x80) + return.&lt;/p&gt;
&lt;p&gt;This will then be sent one byte on each button press.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This adjusted the volume on both Ubuntu 22.04 and Android 13 (OnePlus 8)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On which platform did this not work on your end?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard volume up down without consumer control?</title><link>https://devzone.nordicsemi.com/thread/415517?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 14:46:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fa1a5ea-8a6f-4803-8b6a-c9da2e9b6112</guid><dc:creator>Matthew K</dc:creator><description>&lt;p&gt;Hello H&amp;aring;kon. Thanks to Sigurd, I changed that usage and logical maximum to 0xE7&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/97439/hid-keyboard---how-to-send-windows-gui-key"&gt;HID keyboard - how to send Windows GUI key&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;so that I can send Left and Right GUI / Windows key.&lt;/p&gt;
&lt;p&gt;EX: Sending left Windows key 0xE3&lt;/p&gt;
&lt;p&gt;Key press: 00 00 &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;E3&lt;/strong&gt;&lt;/span&gt; 00 00 00 00 00&lt;/p&gt;
&lt;p&gt;Release: 00 00 &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;00&lt;/strong&gt;&lt;/span&gt; 00 00 00 00 00&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This is working. Whereas sending Volume Up 0x80 is still not working&lt;/p&gt;
&lt;p&gt;Key press: 00 00 &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;80&lt;/strong&gt;&lt;/span&gt; 00 00 00 00 00&lt;/p&gt;
&lt;p&gt;Release: 00 00 &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;00&lt;/strong&gt;&lt;/span&gt; 00 00 00 00 00&lt;/p&gt;
&lt;p&gt;May I ask why this is happening? Is using the Consumer Control the only way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID keyboard volume up down without consumer control?</title><link>https://devzone.nordicsemi.com/thread/415410?ContentTypeID=1</link><pubDate>Wed, 15 Mar 2023 10:17:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13b849e3-cf15-47db-bf10-0b4496f28554</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;The descriptor is limited to the boot descriptor for a keyboard (&amp;quot;boot keyboard&amp;quot;) as described in chapter 10 in the HID usage table:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://usb.org/sites/default/files/hut1_21.pdf"&gt;https://usb.org/sites/default/files/hut1_21.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And the consumer controls were added on top of this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]It sounded you cannot send volume up 0x80 or volume down 0x81 when only using the original ble_app_hids_keyboard_pca10056_s113 example.[/quote]
&lt;p&gt;With the stock example; you cannot send cmds greater than 0x65 (101).&lt;/p&gt;
&lt;p&gt;See the &amp;quot;Usage maximum&amp;quot; in the descriptor, which is set to 101 by default. You need to change the descriptor and test on your required platforms to see if it works as per your requirements.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>