<?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 service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75545/hid-service-makes-phone-lock-screen-how-to-go-about-the-development-is-it-a-basic-source-project</link><description>Based on nRF52 hardware，I want to develop a phone based on HID protocol to control the phone, send instructions to let the phone into the lock screen state， 
 How to go about the development, is it a basic source project？</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Aug 2021 09:23:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75545/hid-service-makes-phone-lock-screen-how-to-go-about-the-development-is-it-a-basic-source-project" /><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/324789?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 09:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27674782-de76-4b00-bb58-1771ab286a20</guid><dc:creator>alan11</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Torbj&amp;oslash;rn&lt;/span&gt;&lt;br /&gt;Yes, I have solved it, thank you for your method and your time&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/324755?ContentTypeID=1</link><pubDate>Fri, 13 Aug 2021 06:55:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b84e3126-1fd8-48c9-b06a-ef715ade1234</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Alan&lt;/p&gt;
&lt;p&gt;It&amp;#39;s good to hear that you found a solution!&lt;/p&gt;
&lt;p&gt;I will consider the case resolved then, unless you have more questions.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/324609?ContentTypeID=1</link><pubDate>Thu, 12 Aug 2021 08:46:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef7bd4b-2a54-4987-8d9d-eeb1f48536b1</guid><dc:creator>alan11</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have solved it, based on project ble_APP_HIDs_mouse, and modified it as follows&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff6600;"&gt;// 0x09, 0xEA, // Usage (Volume Down)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#ff6600;"&gt;0x09, 0x30, // Usage (Power)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;That puts you in control of iphones and Android phones&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;alan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/322374?ContentTypeID=1</link><pubDate>Thu, 29 Jul 2021 07:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff795de0-8982-4920-be79-a3124bed353f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you saying that if the phone is on and you press the button it will not turn off?&lt;/p&gt;
&lt;p&gt;This is what I tested, but I only tested it on an Android device, not on an iPhone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Anyway, it is possible that the iPhone ignores this key. It is up to Apple to decide how they should handle these keys.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/322135?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 06:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d068ba5-b88b-45a3-b2cd-654af8307862</guid><dc:creator>alan11</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I have tested that for ios, it can only be turned on, but it has no effect when it is turned off.&lt;/p&gt;
&lt;p&gt;Is the key value useless?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;alan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/322055?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 12:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:597d59db-6c17-4e63-9e49-79152ffe2a85</guid><dc:creator>alan11</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Torbj&amp;oslash;rn&lt;/span&gt;&lt;br /&gt;Thank you very much. I&amp;#39;ll try&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;alan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/322051?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 12:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30c0ba35-90a0-4b4e-b326-a2f8dee86823</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Alan&lt;/p&gt;
&lt;p&gt;Now I feel a bit stupid. After looking at this again I realized you only have to make a very small change to the ble_app_hids_keyboard example in order to support this command.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The keyboard power command is treated like any other keypress, which means you can send it in the same way that you send any other keys.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;All you have to change to support this is to change the Logical Maximum and the Usage Maximum of the key codes from 0x65 to 0x66:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1627389417337v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Once I made this change I updated the sample message to send the keyboard power command after typing &amp;quot;hello&amp;quot;, instead of sending a newline:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static uint8_t m_sample_key_press_scan_str[] = /**&amp;lt; Key pattern to be sent when the key press button has been pushed. */
{
    0x0b,       /* Key h */
    0x08,       /* Key e */
    0x0f,       /* Key l */
    0x0f,       /* Key l */
    0x12,       /* Key o */
    0x66        /* Keyboard power */
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now if you press Button 1 on the DK it should first type out hello, and then it should put the phone to sleep.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have added the full project here for your reference:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/270484_5F00_ble_5F00_app_5F00_hids_5F00_keyboard.zip"&gt;devzone.nordicsemi.com/.../270484_5F00_ble_5F00_app_5F00_hids_5F00_keyboard.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/321775?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 11:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:786c2882-f28d-400f-a956-722dd0798a8a</guid><dc:creator>alan11</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, because I am busy with the production problem of another project, I am ready to carry out this project now. Do you have any update on this problem? I need your help&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;alan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/313977?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 14:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae20cb7b-bb92-4db6-9068-c69867b97122</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Alan&lt;/p&gt;
&lt;p&gt;Do you have any updates to share on your end?&lt;/p&gt;
&lt;p&gt;As I said I can set aside some time this week to provide an example for you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/312011?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 09:31:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9d86d0d-8acf-4976-8b4d-2d7cf3c7c1c0</guid><dc:creator>alan11</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;OK, waiting for your reply. Thank you，I will try this time too&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;alan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/312009?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 09:26:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81b5ae5c-834a-42cc-8296-218e3ae3246d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi alan&lt;/p&gt;
&lt;p&gt;That is good to hear.&amp;nbsp;I am quite busy these days, but the second week of June I should have some time available.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you need me to provide an example just let me know, and I will set aside some time for it then.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/311943?ContentTypeID=1</link><pubDate>Thu, 27 May 2021 03:51:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afc5e6fb-c3cb-424c-84d4-8b5b4f91cf56</guid><dc:creator>alan11</dc:creator><description>&lt;p&gt;Hi，&lt;span&gt;Torbj&amp;oslash;rn&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;OK, thank you, I can wait, The project is being pre-researched now, thank you very much for providing the source code to me&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;alan11&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HID service makes phone lock screen? How to go about the development, is it a basic source project？</title><link>https://devzone.nordicsemi.com/thread/311849?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 14:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebc7baa7-cf9b-479c-84a3-a4a1f9bedf33</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Keyboard Power command, defined on page 56 of the &lt;a href="https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf"&gt;HID Usage Table&lt;/a&gt; document, can be used to make the phone enter the lock screen.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is defined under the Generic Device Controls page, rather than the Generic Desktop page normally used for keyboards, and we don&amp;#39;t have any example showing how to do it out of the box.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The ble_app_hids_keyboard example in the SDK gives you a good starting point for making this change, and if you give me a couple of days I can try to do this for you and send you an updated example that includes the Keyboard Power command.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>