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?
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?
Hi
The Keyboard Power command, defined on page 56 of the HID Usage Table document, can be used to make the phone enter the lock screen.
This is defined under the Generic Device Controls page, rather than the Generic Desktop page normally used for keyboards, and we don't have any example showing how to do it out of the box.
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.
Best regards
Torbjørn
Hi,Torbjørn
OK, thank you, I can wait, The project is being pre-researched now, thank you very much for providing the source code to me
Best regards
alan11
Hi Torbjørn
I have tested that for ios, it can only be turned on, but it has no effect when it is turned off.
Is the key value useless?
Best regards
alan
Hi
Are you saying that if the phone is on and you press the button it will not turn off?
This is what I tested, but I only tested it on an Android device, not on an iPhone.
Anyway, it is possible that the iPhone ignores this key. It is up to Apple to decide how they should handle these keys.
Best regards
Torbjørn
Hi Torbjørn
I have solved it, based on project ble_APP_HIDs_mouse, and modified it as follows
// 0x09, 0xEA, // Usage (Volume Down)
0x09, 0x30, // Usage (Power)
That puts you in control of iphones and Android phones
Best regards
alan
Hi Alan
It's good to hear that you found a solution!
I will consider the case resolved then, unless you have more questions.
Best regards
Torbjørn
Hi Torbjørn
Yes, I have solved it, thank you for your method and your time
Best regards
Torbjørn
Hi Torbjørn
Yes, I have solved it, thank you for your method and your time
Best regards
Torbjørn