<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forums.obdev.at/app.php/feed/topic/6269" />

	<title>Objective Development Forums</title>
	
	<link href="https://forums.obdev.at/index.php" />
	<updated>2012-12-27T18:07:39+02:00</updated>

	<author><name><![CDATA[Objective Development Forums]]></name></author>
	<id>https://forums.obdev.at/app.php/feed/topic/6269</id>

		<entry>
		<author><name><![CDATA[xiangrui]]></name></author>
		<updated>2012-12-27T18:07:39+02:00</updated>

		<published>2012-12-27T18:07:39+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6269&amp;p=24332#p24332</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6269&amp;p=24332#p24332"/>
		<title type="html"><![CDATA[Re: Understanding vid/pid pairs]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6269&amp;p=24332#p24332"><![CDATA[
I read from the file usbconfig.h for HIDkeys examply that &quot;We cannot use Obdev's free shared VID/PID pair because this is a HID.&quot; Does this imply that the pair 0x27db and 0x16c0 is &quot;For USB Keyboards&quot; which are not HID? It seems to me all USB keyboards I ever used are HID. Anyone can make this clear? Thanks.<br />-Xiangrui<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6201">xiangrui</a> — Thu Dec 27, 2012 6:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[xiangrui]]></name></author>
		<updated>2012-12-26T20:54:33+02:00</updated>

		<published>2012-12-26T20:54:33+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6269&amp;p=24311#p24311</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6269&amp;p=24311#p24311"/>
		<title type="html"><![CDATA[Re: Understanding vid/pid pairs]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6269&amp;p=24311#p24311"><![CDATA[
The VID/PID pair won't affect the device, unless they conflict with the existing device. This means, if you set some random numbers for the pair, it normally works fine. For more information about the pair, check the file USB-ID-FAQ.txt in the V-USB package.<br /><br />I do have a question about the VID/PID pair for the USB keyboard/mice/joystick. V-USB provides shared VID/PID pairs for these device, if they are discriminated by serial number. However, the driver of these device is provided by operating system, and according to USB-IDs-for-free.txt, we can omit the serial number. But why don't the keyboard and mouse examples from V-USB use these pairs, rather use some pairs for demonstration only? Can anyone point out what I missed? Thanks.<br /><br />-Xiangrui<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6201">xiangrui</a> — Wed Dec 26, 2012 8:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Peter Chaffe]]></name></author>
		<updated>2011-12-07T23:44:06+02:00</updated>

		<published>2011-12-07T23:44:06+02:00</published>
		<id>https://forums.obdev.at/viewtopic.php?t=6269&amp;p=20391#p20391</id>
		<link href="https://forums.obdev.at/viewtopic.php?t=6269&amp;p=20391#p20391"/>
		<title type="html"><![CDATA[Understanding vid/pid pairs]]></title>

		
		<content type="html" xml:base="https://forums.obdev.at/viewtopic.php?t=6269&amp;p=20391#p20391"><![CDATA[
Hi Gents,<br /><br />I think I'm grasping some of the usbconfig.h defines, but have a problem here!<br />As an example I want to use a keyboard.<br /><br />so;<br />USB-IDs-for-free.txt suggests preference to using &quot;discrimination by serial number string&quot;<br />Which makes me think I need to use <br /><br />discrimination by serial number string:<br />---------------+---------------+-------------------------------------------<br />10203 (0x27db) | 5824 (0x16c0) | For USB Keyboards<br />---------------+---------------+-------------------------------------------<br /><br />Yet in the statements within usbconfig.h it gives a keyboard example using &quot;discrimination by textual name&quot;<br /><br />discrimination by textual name:<br />--------------+---------------+--------------------------------------------<br />1503 (0x05df) | 5824 (0x16c0) | For generic HID class devices (which are<br />                     |               | NOT mice, keyboards or joysticks)<br />--------------+---------------+--------------------------------------------<br /><br />But as you can see above it expressly says NOT for keyboards etc.<br /><br />Can anyone shed some light? The vids are the same in both cases but the pids aren't.<br />Which should I use?<br /><br /><br />Second question is I don't understand to process to convert either of the above combinations into these hex number pairs?<br /><br />#define  USB_CFG_VENDOR_ID       0x42, 0x42<br />#define  USB_CFG_DEVICE_ID       0x31, 0xe1 (example taken from 1-key-keyboard project)<br /><br />Any help appreciated!<br /><br /><br />Edit.................<br /><br />Think I can answer my own questions!<br /><br />Q2) I think is someone elses vid/pid pair or just made up! that happens to work...<br /> <br />q1) I have ignored all else and chosen the recomended pair as per &quot;USB-IDs-for-free.txt<br /><br />10203 (0x27db) | 5824 (0x16c0) | For USB Keyboards<br /><br />#define  USB_CFG_VENDOR_ID       0xc0, 0x16<br />#define  USB_CFG_DEVICE_ID       0xdb, 0x27<br /><br />and it works fine!<p>Statistics: Posted by <a href="https://forums.obdev.at/memberlist.php?mode=viewprofile&amp;u=6086">Peter Chaffe</a> — Wed Dec 07, 2011 11:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
