<?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>USB HID Keyboard</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110532/usb-hid-keyboard</link><description>Hello, 
 I would like to implement a simple USB HID Keyboard application on nRF52840 or nRF5340, where a button press on the dev kit sends an HID key over USB. I am using the nRF Connect SDK. It has a USB HID Mouse sample application, but I couldn&amp;#39;t find</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Apr 2024 12:41:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110532/usb-hid-keyboard" /><item><title>RE: USB HID Keyboard</title><link>https://devzone.nordicsemi.com/thread/480454?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2024 12:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d20875c-3d4e-4646-821a-20d41e59f7c4</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Check out the USB CDC example, which include both CDC, HID keyboard and HID mouse, ref:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/usb/hid-cdc/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/usb/hid-cdc/README.html&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For instance you can see it says:&lt;/p&gt;
&lt;p&gt;Welcome to CDC_ACM_1&lt;br /&gt;Enter a string and terminate it with ENTER.&lt;br /&gt;It will be sent via HID when BUTTON 2 is pressed.&lt;br /&gt;You can modify it by sending a new one here.&lt;/p&gt;
&lt;p&gt;Which means that any character received over the serial port will be fordwarded through the HID keyboard descriptor each time button 2 is pressed. The source include the HID keyboard descriptor as seen in the source:&lt;/p&gt;
&lt;p&gt;static const uint8_t hid_kbd_report_desc[] = HID_KEYBOARD_REPORT_DESC();&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/subsys/usb/hid-cdc/src/main.c#L131"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/subsys/usb/hid-cdc/src/main.c#L131&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>