<?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>Composite keyboard+mouse BLE HID device on Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93647/composite-keyboard-mouse-ble-hid-device-on-zephyr</link><description>Hi guys, 
 I want to make a composite Bluetooth HID device that functions as a keyboard and mouse with the nRF Connect SDK. I&amp;#39;ve combined the nrf/samples/bluetooth/peripheral_hids_keyboard and nrf/samples/bluetooth/peripheral_hids_mouse samples, but I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Nov 2022 14:02:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93647/composite-keyboard-mouse-ble-hid-device-on-zephyr" /><item><title>RE: Composite keyboard+mouse BLE HID device on Zephyr</title><link>https://devzone.nordicsemi.com/thread/395142?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 14:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7339d553-db6e-42b7-b774-28c148609cfe</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;&lt;span&gt;bt_hids_init() returns with success upon subsequent invocations.&amp;nbsp;&lt;/span&gt;Please report this issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Composite keyboard+mouse BLE HID device on Zephyr</title><link>https://devzone.nordicsemi.com/thread/395129?ContentTypeID=1</link><pubDate>Thu, 10 Nov 2022 13:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:059168ef-4310-4681-acad-7b3bc5c065f6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I would think that it would check for that, but it doesn&amp;#39;t look like it actually does. I can report this internally.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Composite keyboard+mouse BLE HID device on Zephyr</title><link>https://devzone.nordicsemi.com/thread/394998?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 19:36:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c426b142-3a90-483d-9d8a-9f22c9a7c686</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;Given the above, I think&amp;nbsp;&lt;span&gt;bt_hids_init() only expects a single invocation during the application&amp;#39;s lifetime, and it should return with a nonzero value upon the second invocation contrary to its current behavior. It should also log an error message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you agree? If so, where can I report this issue?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Composite keyboard+mouse BLE HID device on Zephyr</title><link>https://devzone.nordicsemi.com/thread/394915?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2022 13:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9683dec-7dd0-476d-a2d4-8d55c4149dec</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;That is correct. The HID over BLE is &amp;quot;simply&amp;quot; that the USB report maps is sent over BLE instead of the USB cable. However, there is only one USB report, and it must include all the devices you want to use (mouse and keyboard).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Composite keyboard+mouse BLE HID device on Zephyr</title><link>https://devzone.nordicsemi.com/thread/394736?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 14:20:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e6f0a6e-51d5-4367-bd0c-80525c63667c</guid><dc:creator>mlac</dc:creator><description>&lt;p&gt;Thanks for your help, Edvin!&lt;/p&gt;
&lt;p&gt;That was my guess. So am I correct that the API only supports a single bt_hids_init() call, so I should use not two but a single hids_obj with the reports combined from both the keyboard and mouse objects?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Composite keyboard+mouse BLE HID device on Zephyr</title><link>https://devzone.nordicsemi.com/thread/394732?ContentTypeID=1</link><pubDate>Tue, 08 Nov 2022 14:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60da4ac3-625d-4b77-8a98-1027fabd81c9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I understand the question. It is far from straight forward to work with the USB report maps.&lt;/p&gt;
&lt;p&gt;Unfortunately, I am not aware of any good tutorials/descriptions of USB reports provided by Nordic, but I have found a few good blog posts when googling &amp;quot;USB&amp;nbsp;report map&amp;quot;.&lt;/p&gt;
&lt;p&gt;Try doing that, and see if you can create a report map that covers both Keyboard and Mouse. I think the trick here is to generate a report map that covers both a keyboard and a map, and then you should be able to use both the mouse and keyboard API from the samples.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>