<?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>Can you configure nRF Desktop to be both a mouse and a keyboard at the same time?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92388/can-you-configure-nrf-desktop-to-be-both-a-mouse-and-a-keyboard-at-the-same-time</link><description>I&amp;#39;m working on a new nRF52840 based design that will be both a HID keyboard and a touchpad in one - so I&amp;#39;ve been working with nRF Desktop for my nRF52840 devkit, trying to merge the prj_gmouse.conf prj_keyboard.conf files into one that will pretend to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Oct 2022 20:52:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92388/can-you-configure-nrf-desktop-to-be-both-a-mouse-and-a-keyboard-at-the-same-time" /><item><title>RE: Can you configure nRF Desktop to be both a mouse and a keyboard at the same time?</title><link>https://devzone.nordicsemi.com/thread/391964?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 20:52:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb3fd56b-a8fa-44b1-9e9e-099c5adf1c2a</guid><dc:creator>Glen M</dc:creator><description>&lt;p&gt;Thanks Priyanka - I&amp;#39;m glad you got it working - that gives me a lot of confidence that our project is possible. I&amp;#39;ll try it out as soon as I can. If you don&amp;#39;t mind I&amp;#39;ll leave this issue open for now until I&amp;#39;ve had a chance to test it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: This worked - I ended up using nRF Connect version 2.1.0. Some of the items in the .conf have changed with 2.2.0 (I&amp;#39;m sure it would be easy to reconcile but I&amp;#39;ll stick with what&amp;#39;s working now). Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you configure nRF Desktop to be both a mouse and a keyboard at the same time?</title><link>https://devzone.nordicsemi.com/thread/391876?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 12:05:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6c87617-85b1-4b3e-999f-ef10b6e26a0b</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Glen,&lt;/p&gt;
&lt;p&gt;I was able to implement both mouse and keyboard on the nRF52840DK. It would be better to use simulated mouse or a motion sensor for the mouse(I tried with simulated mouse). This is because the&amp;nbsp;default values of CONFIG_DESKTOP_MOTION_XXXXX_KEY_ID are set to zero and since you just have 4 buttons on the DK, the values can get duplicated for the cases in the switch for the key IDs.&lt;/p&gt;
&lt;p&gt;You can begin, as mentioned by adding motion required CONFIG to the &lt;em&gt;prj_keyboard.conf&lt;/em&gt;. You can add the required motion configuration &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf_desktop/doc/motion.html#:~:text=The%20motion%20module%20selects%20the%20source%20of%20movement%20based%20on%20the%20following%20configuration%20options%3A"&gt;as mentioned here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t forget to add the following config:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DESKTOP_HID_REPORT_MOUSE_SUPPORT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DESKTOP_HID_MOUSE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_DESKTOP_HID_BOOT_INTERFACE_MOUSE&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If using simulated motion, then don&amp;#39;t forget to &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf_desktop/doc/motion.html#:~:text=You%20can%20configure,of%20the%20polygon."&gt;add the configuration&lt;/a&gt; for either edge impulse(which should be a value which is the power of 2) or scale factor of the mouse motion.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;Also, k&lt;/span&gt;&lt;/span&gt;eep in mind to increase number of repots supported in hids: (the following is the default value in prj_keyboard.conf)
&lt;div&gt;CONFIG_BT_HIDS_INPUT_REP_MAX=3&lt;br /&gt;CONFIG_BT_HIDS_OUTPUT_REP_MAX=1&lt;br /&gt;CONFIG_BT_HIDS_FEATURE_REP_MAX=1&lt;br /&gt;CONFIG_BT_HIDS_ATTR_MAX=32&lt;br /&gt; &lt;br /&gt;And number of supported GATT characteristics:&lt;br /&gt;CONFIG_BT_GATT_UUID16_POOL_SIZE=47&lt;br /&gt;CONFIG_BT_GATT_CHRC_POOL_SIZE=17&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;CONFIG_BT_CONN_TX_MAX&amp;nbsp; may need to be increased to prevent problems when device buffers multiple data packets in HIDS.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Once all these are done, you should be able to build and flash onto your DK and observe the required output.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;-Priyanka&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you configure nRF Desktop to be both a mouse and a keyboard at the same time?</title><link>https://devzone.nordicsemi.com/thread/391778?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 06:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a7e62e8-8c7c-485c-89b4-6398b4609192</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;It should be possible beginning with the keyboard configuration and then enable motion sensor, mouse report, etc. Then finally edit the key map to tell which key_ids should be configured as mouse buttons.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;The mouse report will be transmitted along the standard keyboard reports.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;-Priyanka&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you configure nRF Desktop to be both a mouse and a keyboard at the same time?</title><link>https://devzone.nordicsemi.com/thread/391776?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 06:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cd5a57b-9bc2-4db1-a57e-632f6dfe5a6c</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Glen,&lt;/p&gt;
&lt;p&gt;Really sorry for the delay. I haven&amp;#39;t had time to look into this as I had some other urgent cases. I will start looking into this today and will update you soon. Sorry for the delay.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you configure nRF Desktop to be both a mouse and a keyboard at the same time?</title><link>https://devzone.nordicsemi.com/thread/390496?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 15:22:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0668b96-2e33-405e-9fdf-e3f91e6b4021</guid><dc:creator>Glen M</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Priyanka,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you had any success with this?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Glen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can you configure nRF Desktop to be both a mouse and a keyboard at the same time?</title><link>https://devzone.nordicsemi.com/thread/388775?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 12:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55d8ce74-058d-41b2-8fe6-ccc2845de999</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Glen,&lt;/p&gt;
&lt;p&gt;It should be possible to achieve this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will try to reproduce this and get back to you soon.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>