<?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>How to set VID and PID on a BLE HID device?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67362/how-to-set-vid-and-pid-on-a-ble-hid-device</link><description>Hello, 
 I am developing a composite HID peripheral based on the nRF52840 that can connect to a PC either via USB or BLE. 
 I am using SDK 15.0.0. 
 Regardless of the connection type (BLE or USB), the device is supposed to have exactly the same functionality</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Oct 2020 17:34:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67362/how-to-set-vid-and-pid-on-a-ble-hid-device" /><item><title>RE: How to set VID and PID on a BLE HID device?</title><link>https://devzone.nordicsemi.com/thread/276299?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 17:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91fa4375-8269-410d-b370-a1d9f30752ec</guid><dc:creator>Magoo</dc:creator><description>&lt;p&gt;Thank you Einar!&lt;/p&gt;
&lt;p&gt;Seeing your code snippet helped me find where these #defines are located.&lt;/p&gt;
&lt;p&gt;Stupidly, I didn&amp;#39;t find them because I searched for &amp;quot;VID&amp;quot; or &amp;quot;PID&amp;quot; respectively (in the USB examples, this is the way they are called).&lt;/p&gt;
&lt;p&gt;I should have searched for &amp;quot;VENDOR_ID&amp;quot; / &amp;quot;PRODUCT_ID&amp;quot; instead!&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f609.svg" title="Wink"&gt;&amp;#x1f609;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set VID and PID on a BLE HID device?</title><link>https://devzone.nordicsemi.com/thread/275776?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 07:57:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cfb1b34-87ee-4571-8f6b-1d9435af858f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. I do not recognise all the numbers from the SDK example, but this is from the device information service. It makes sense to put your product ID there. If you refer to the HID keyboard (and mose) example in the SDK you will see this set of defines:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define PNP_ID_VENDOR_ID_SOURCE             0x02                                       /**&amp;lt; Vendor ID Source. */
#define PNP_ID_VENDOR_ID                    0x1915                                     /**&amp;lt; Vendor ID. */
#define PNP_ID_PRODUCT_ID                   0xEEEE                                     /**&amp;lt; Product ID. */
#define PNP_ID_PRODUCT_VERSION              0x0001                                     /**&amp;lt; Product Version. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And these are used in dis_init() where the Device Information Service is initialized.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set VID and PID on a BLE HID device?</title><link>https://devzone.nordicsemi.com/thread/275681?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 14:36:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdd92ffe-82dc-4d82-a2dc-9200f725a5a4</guid><dc:creator>Magoo</dc:creator><description>&lt;p&gt;Certainly!&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a screenshot. In Device Manager, I right click on the Bluetooth keyboard implemented by my device and select Properties. The VID/PID values can be found in many property fields, for example in &amp;quot;Hardware Ids&amp;quot; (as shown in the screenshot).&lt;/p&gt;
&lt;p&gt;&lt;img alt="Device Manager screenshot" src="https://devzone.nordicsemi.com/resized-image/__size/640x233/__key/communityserver-discussions-components-files/4/Device-Manager-screenshot.png" /&gt;&lt;/p&gt;
&lt;p&gt;Windows applications running on the PC can read&amp;nbsp;these VID/PID values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set VID and PID on a BLE HID device?</title><link>https://devzone.nordicsemi.com/thread/275665?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 13:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f05393c-1a35-4433-91bf-0f1809696ad1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know where Windows gets that number from, or why it refers to VID/PID for BLE devices. Can you show me where you see it (with a screenshot)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set VID and PID on a BLE HID device?</title><link>https://devzone.nordicsemi.com/thread/275658?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 13:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1303cdb3-91e0-452a-90fd-4926a566fb94</guid><dc:creator>Magoo</dc:creator><description>&lt;p&gt;Dear Einar,&lt;/p&gt;
&lt;p&gt;thank you for your quick reply.&lt;/p&gt;
&lt;p&gt;In other words, you mean that the nRF chip currently does not send any VID/PID over BLE, and that the values shown in Windows Device Manager (&lt;span&gt;VID = 0x40C8, PID = 0x0000.&lt;/span&gt;) have been arbitrarily assigned by Windows? Based on what information?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set VID and PID on a BLE HID device?</title><link>https://devzone.nordicsemi.com/thread/275647?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 13:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be8fdf10-1ad7-43b1-a660-740b2723d6b0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;VID/PID are USB concepts which you will not find in BLE. However, there is nothing preventing you from communicating the same data over BLE in an application specific way.&amp;nbsp;For instance, if you want to be able to read this after connection to the device, you can make a custom service with a VID and a PID characteristic. And/of you cna add the information to the advertising packet as manufacturer specific data if you need this information before the connection is established.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>