<?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 custom (Vendor-Defined) HID device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41834/usb-custom-vendor-defined-hid-device</link><description>Hi, Is there a usb hidapi sample code for nrf52840 somewhere? I know that there is a sample code of usbd_cdc_acm. Using the HIDAPI library link below , It will be beneficial if the device is recognized as Vendor-Defined HID devices. It is no longer need</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Jan 2019 20:09:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41834/usb-custom-vendor-defined-hid-device" /><item><title>RE: USB custom (Vendor-Defined) HID device</title><link>https://devzone.nordicsemi.com/thread/166362?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 20:09:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53d6e9ea-6f99-43c7-b384-901ad7ecab86</guid><dc:creator>grantb4</dc:creator><description>&lt;p&gt;The generic (vendor defined) HID class is an efficient method of creating bidirectional data pipes. It uses the HID drivers already built into the OS of pretty much any style of PC, I don&amp;#39;t know about tablets and phones. It&amp;#39;s nice because you don&amp;#39;t need an INF or anything like for use on a Windows PC and accessing the device by a PC application is pretty straightforward. The HID report specifies what the data pipes look like, but it should not be confused with the more specific keyboard, mouse, joystick, etc.&lt;br /&gt;&lt;br /&gt;I think the confusion here is whether the OP is talking about&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;making a hardware generic-USB-HID-peripheral connected to the nRF (nRF is USB host), or&lt;/li&gt;
&lt;li&gt;whether the nRF is part of a BLE thing that looks like a generic HID USB device over the air to a PC or whatever.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I&amp;#39;m working on the latter but am only at the learning phase of BLE. In either case it assumes that&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the nRF USB host can talk to a generic vendor defined HID device that&amp;#39;s not a keyboard, etc., or&lt;/li&gt;
&lt;li&gt;whether the BLE spec and implementation supports a generic vendor defined HID device from the BLE peripheral through to a PC&amp;#39;s OS (for example). A lot of elements need to align in this case.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB custom (Vendor-Defined) HID device</title><link>https://devzone.nordicsemi.com/thread/164812?ContentTypeID=1</link><pubDate>Thu, 10 Jan 2019 07:21:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c384147a-e902-46c6-a633-879eccd6d0ed</guid><dc:creator>junichiro okabe</dc:creator><description>&lt;p&gt;The sample provided is a code that runs as a mouse.&lt;/p&gt;
&lt;p&gt;My expectation is to send and receive 64 bytes per packet of UART like simple&amp;nbsp; communication with a PC.&lt;/p&gt;
&lt;p&gt;However, I found that there is source code&amp;nbsp; shown below that are helpful in the project provided.&lt;br /&gt;It seems to be realized by changing this.&lt;/p&gt;
&lt;p&gt;nRF5_SDK_15.2.0_9412b96\components\libraries\usbd\class\hid\generic\app_usbd_hid_generic.c&lt;/p&gt;
&lt;p&gt;thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;junichiro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB custom (Vendor-Defined) HID device</title><link>https://devzone.nordicsemi.com/thread/164507?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 12:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f826b0c-af94-4e99-9ca9-6dfdef35ff9f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;[quote user="j-okabe"][/quote]&lt;/p&gt;
&lt;p&gt;The one that is closest to what I want to achieve in the sample code that is currently published is the project below but it is not the correct answer.&lt;/p&gt;
&lt;p&gt;nRF5_SDK_15.2.0_9412b96\examples\peripheral\usbd_hid_generic&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;Not the correct answer&amp;quot;? Can you please specify what you mean?&lt;/p&gt;
&lt;p&gt;What exactly is it that you are going to make?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB custom (Vendor-Defined) HID device</title><link>https://devzone.nordicsemi.com/thread/164399?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 02:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2f95b8-a361-46d0-98b4-986d5f8e7b07</guid><dc:creator>junichiro okabe</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;but , Your understanding is wrong, whether my explanation was missing.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d like use USB-device Peripheral on nrf52840 as a Generic HID class, not over BLE.&lt;/p&gt;
&lt;p&gt;The one that is closest to what I want to achieve in the sample code that is currently published is the project below but it is not the correct answer.&lt;/p&gt;
&lt;p&gt;nRF5_SDK_15.2.0_9412b96\examples\peripheral\usbd_hid_generic&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;junichiro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB custom (Vendor-Defined) HID device</title><link>https://devzone.nordicsemi.com/thread/163367?ContentTypeID=1</link><pubDate>Wed, 02 Jan 2019 09:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19099cb4-e8e9-4669-8f6c-29fd4cec7aad</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Junichiro,&lt;/p&gt;
&lt;p&gt;I think I understand. So if your question is whether there are any examples that can show the use of the HIDAPI examples. I assume that you mean HID over BLE, is that correct?&lt;/p&gt;
&lt;p&gt;In that case I would recommend you to check out the ble_app_hids_ examples, so one of the following:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SDK15.2.0\examples\ble_peripheral\ble_app_hids_keyboard&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;SDK15.2.0\examples\ble_peripheral\ble_app_hids_mouse&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And change the HID service to match your application in hids_init() in main.c.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB custom (Vendor-Defined) HID device</title><link>https://devzone.nordicsemi.com/thread/162989?ContentTypeID=1</link><pubDate>Wed, 26 Dec 2018 01:38:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:843b08ed-dfa2-46df-944d-21d39005969e</guid><dc:creator>junichiro okabe</dc:creator><description>&lt;p&gt;Hi edvin,&lt;/p&gt;
&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;with my product already, it can be realized with a driver&amp;#39;s unnecessary with a microcomputer manufactured by another vendor.&lt;/p&gt;
&lt;p&gt;The Host OS standard driver will be installed automatically.&lt;/p&gt;
&lt;p&gt;Although the explanation may not be sufficient, it can be realized by describing the descriptor.&lt;br /&gt;Interface descriptor-&amp;gt;bInterfaceClass 0x03(HID) &lt;br /&gt;Interface descriptor-&amp;gt;bInterfaceSubClass 0 (none)&lt;br /&gt;ReportDescriptor-&amp;gt;Usage Page 0x06, 0x00, 0xff, (Vendor Defined)&lt;br /&gt;ReportDescriptor-&amp;gt;Usage Page0x09, 0x01, (Vendor Defined)&lt;br /&gt;&lt;br /&gt;I am assuming an application that creates a host PC application and uses nrf 52840 as a gateway.&lt;br /&gt;The host PC application communicates with hidapi.dll simply using 1OUT endpoint and 1IN endpoint.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;junichiro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB custom (Vendor-Defined) HID device</title><link>https://devzone.nordicsemi.com/thread/162867?ContentTypeID=1</link><pubDate>Fri, 21 Dec 2018 14:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:711ab1e9-2471-4856-a0b4-845b2bebbd4a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;For&amp;nbsp; Vendor-Defined HID services, I believe you would still need a driver, if it is not one of the standard HID devices (mouse, keyboard, gaming controller, etc). What sort of device are you intending to make?&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>