<?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>How to  simulate HOME key value in HID?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90250/how-to-simulate-home-key-value-in-hid</link><description>Hi, 
 I&amp;#39;m using HID mouse example in SDK17.02. 
 How to simulate HOME key in HID when the device connected with a phone?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Aug 2022 07:36:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90250/how-to-simulate-home-key-value-in-hid" /><item><title>RE: How to  simulate HOME key value in HID?</title><link>https://devzone.nordicsemi.com/thread/381695?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 07:36:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bcb1a54-c8ec-474b-9bcc-ce831951f0cb</guid><dc:creator>Thomas Friehoff</dc:creator><description>&lt;p&gt;I am using CircuitPython from adafruit as the firmware on a self made base board with a nRF52840&lt;br /&gt;In CircuitPython I am using:&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;from &lt;/span&gt;adafruit_hid.consumer_control &lt;span&gt;import &lt;/span&gt;ConsumerControl&lt;/pre&gt;
&lt;p&gt;....&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;self&lt;/span&gt;.cc = ConsumerControl(hid.devices)&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;....&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;self&lt;/span&gt;.cc.send_cc(&lt;span&gt;0x223&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;I don&amp;#39;t know (think) this helps you much if you are not using CP in your project.&lt;br /&gt;But anyway... I am very happy with the CP environment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to  simulate HOME key value in HID?</title><link>https://devzone.nordicsemi.com/thread/381673?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 06:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8bed251-e4b9-4fd4-ac50-2b4437d09aa2</guid><dc:creator>Taylor</dc:creator><description>&lt;p&gt;Hi, how do you sending&amp;nbsp;&lt;span&gt;0x223? Could you show me your control code?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to  simulate HOME key value in HID?</title><link>https://devzone.nordicsemi.com/thread/381266?ContentTypeID=1</link><pubDate>Fri, 12 Aug 2022 06:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f241c2-16a2-41fd-b860-02d2dc8e0b57</guid><dc:creator>Thomas Friehoff</dc:creator><description>&lt;p&gt;Sending Consumer Control Code 0x223&amp;nbsp; AC Home works for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to  simulate HOME key value in HID?</title><link>https://devzone.nordicsemi.com/thread/378130?ContentTypeID=1</link><pubDate>Thu, 21 Jul 2022 13:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2772779-bbff-478a-98ac-90beac0f8346</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In HID there are modifer keys that potentially can be helpful here, though I am not sure if they will work with any phone or OS. In any case I would likely have started googling for modifier keys bluetooth and see if that give you any pointers. Typically you can find in the nRF5 SDK and nRF Connect SDK that there is HID over GATT example project, so if you find that modifier keys can work, then it should simply be mapping keys to send the right combination of modifier keys to the phone. But as mentioned, you may need to look at the OS of the phone and what they support, I will assume others have tried something similar before.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;HID Usage table:&lt;a href="https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf"&gt;&lt;br /&gt;https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>